/* Umbraco-specific overrides on top of Stitch / Tailwind */

.grit-overlay {
    position: relative;
}

.grit-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.contact-map-embed {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 260px;
    border: 0;
    filter: grayscale(0.15) contrast(1.05);
}

.contact-form-card {
    width: 100%;
}

.contact-form-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-card label {
    display: block;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e5e2e1;
    margin-bottom: 0.35rem;
}

.contact-form-card input,
.contact-form-card textarea,
.contact-form-card select {
    width: 100%;
    background: #0e0e0e;
    border: 1px solid #353534;
    color: #e5e2e1;
    padding: 0.85rem 1rem;
    border-radius: 0;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus,
.contact-form-card select:focus {
    outline: none;
    border-color: #e60000;
    box-shadow: 0 0 0 1px #e60000;
}

.contact-form-card button[type="submit"] {
    background: #e60000;
    color: #fff7f5;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.85rem 1.75rem;
    border: 2px solid transparent;
    transform: skewX(-12deg);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.4);
}

.contact-form-card button[type="submit"] span {
    display: inline-block;
    transform: skewX(12deg);
}

.rich-text,
.blog-body,
.about-text,
.service-body {
    color: #e5e2e1;
}

/* About hero — wide landscape frame (actual trainer photo is ~1024×876, not 3:4 portrait) */
.about-hero-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 876;
    overflow: hidden;
    background: #201f1f;
    border: 1px solid #353534;
    box-shadow: 0 0 40px rgba(230, 0, 0, 0.15);
}

.about-hero-media::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e60000;
    z-index: 3;
    box-shadow: 0 0 20px rgba(230, 0, 0, 0.6);
}

.about-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-bottom: 4px solid #e60000;
    pointer-events: none;
    z-index: 3;
}

.about-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.about-hero-media__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(19, 19, 19, 0.75) 0%, transparent 45%);
    pointer-events: none;
    z-index: 2;
}

@media (min-width: 768px) {
    .about-hero-layout {
        align-items: center;
    }

    .about-hero-media {
        min-height: 280px;
    }
}

.rich-text p,
.blog-body p,
.about-text p,
.service-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.rich-text h2,
.blog-body h2,
.service-body h2 {
    font-family: Anton, sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    margin: 2rem 0 1rem;
    color: #e5e2e1;
}

.rich-text h3,
.blog-body h3,
.service-body h3 {
    font-family: Anton, sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 1.5rem 0 0.75rem;
}

.rich-text ul,
.blog-body ul,
.service-body ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.rich-text li,
.blog-body li,
.service-body li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.rich-text li::before,
.blog-body li::before,
.service-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 0.45rem;
    height: 0.45rem;
    background: #e60000;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.carousel-dot.is-active {
    background: #e60000;
}

.carousel-slide {
    display: none;
}

.carousel-slide.is-active {
    display: block;
}

/* Progress Spotlight gallery — Stitch: tight brutalist frames, orientation-aware sizing */
.progress-gallery {
    position: relative;
    max-width: 90rem;
    margin-inline: auto;
}

.progress-gallery__stage {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-gallery__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    outline: none;
}

.progress-gallery__viewport:focus-visible {
    box-shadow: 0 0 0 2px #e60000;
}

.progress-gallery__track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.progress-gallery__slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    opacity: 0.4;
    transform: scale(0.92);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.progress-gallery__slide.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Border hugs the image — no fill, no fixed aspect box */
.progress-gallery__frame {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    line-height: 0;
    border: 2px solid #353534;
    background: transparent;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.progress-gallery__slide.is-active .progress-gallery__frame {
    border-color: #e60000;
    box-shadow: 0 0 28px rgba(230, 0, 0, 0.35);
}

.progress-gallery__frame picture,
.progress-gallery__frame img,
.progress-gallery__image {
    display: block;
    width: auto !important;
    height: auto !important;
    vertical-align: top;
}

.progress-gallery__frame--landscape .progress-gallery__image,
.progress-gallery__frame--landscape img {
    max-width: min(92vw, 80rem);
    max-height: min(68vh, 42rem);
}

.progress-gallery__frame--portrait .progress-gallery__image,
.progress-gallery__frame--portrait img {
    max-width: min(78vw, 22rem);
    max-height: min(78vh, 48rem);
}

.progress-gallery__frame--square .progress-gallery__image,
.progress-gallery__frame--square img {
    max-width: min(85vw, 36rem);
    max-height: min(72vh, 36rem);
}

.progress-gallery__frame-accent {
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: #e60000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.progress-gallery__slide.is-active .progress-gallery__frame-accent {
    opacity: 1;
}

.progress-gallery__open {
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    color: inherit;
    font: inherit;
    line-height: 0;
}

.progress-gallery__open:focus-visible {
    outline: 2px solid #e60000;
    outline-offset: 4px;
}


.progress-gallery__arrow {
    flex-shrink: 0;
    align-self: center;
    transform: skewX(-12deg);
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e60000;
    color: #fff7f5;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.progress-gallery__arrow span {
    transform: skewX(12deg);
}

.progress-gallery__arrow:hover,
.progress-gallery__arrow:focus-visible {
    background: #c00000;
    border-color: #fff7f5;
    outline: none;
}

.progress-gallery__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-inline: 0.25rem;
}

.progress-gallery__dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.progress-gallery__dot {
    width: 0.75rem;
    height: 0.75rem;
    border: 2px solid #353534;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.progress-gallery__dot.is-active,
.progress-gallery__dot:hover,
.progress-gallery__dot:focus-visible {
    background: #e60000;
    border-color: #e60000;
    outline: none;
}

.progress-gallery__counter {
    margin: 0;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e5e2e1;
    white-space: nowrap;
}

.progress-gallery__counter-sep {
    color: #e60000;
    margin-inline: 0.35rem;
}

@media (min-width: 768px) {
    .progress-gallery__stage {
        gap: 1rem;
    }

    .progress-gallery__arrow {
        width: 3.5rem;
        height: 3.5rem;
    }

    .progress-gallery__slide {
        flex: 0 0 auto;
        width: auto;
    }

    .progress-gallery__frame--landscape .progress-gallery__image,
    .progress-gallery__frame--landscape img {
        max-width: min(78vw, 72rem);
        max-height: min(72vh, 44rem);
    }

    .progress-gallery__frame--portrait .progress-gallery__image,
    .progress-gallery__frame--portrait img {
        max-width: min(32vw, 26rem);
        max-height: min(80vh, 52rem);
    }

    .progress-gallery__frame--square .progress-gallery__image,
    .progress-gallery__frame--square img {
        max-width: min(42vw, 40rem);
        max-height: min(72vh, 40rem);
    }
}

@media (min-width: 1024px) {
    .progress-gallery__frame--portrait .progress-gallery__image,
    .progress-gallery__frame--portrait img {
        max-width: min(28vw, 28rem);
        max-height: min(82vh, 54rem);
    }
}

/* Gallery lightbox */
body.gallery-lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(14, 14, 14, 0.92);
    cursor: pointer;
}

.gallery-lightbox__panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 96rem);
    max-height: calc(100vh - 2rem);
    pointer-events: none;
}

.gallery-lightbox__figure {
    margin: 0;
    max-width: 100%;
    max-height: calc(100vh - 5rem);
    pointer-events: auto;
}

.gallery-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 4rem);
    width: auto;
    height: auto;
    margin-inline: auto;
    border: 2px solid #e60000;
    box-shadow: 0 0 40px rgba(230, 0, 0, 0.25);
    background: #131313;
}

.gallery-lightbox__close,
.gallery-lightbox__arrow {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e60000;
    color: #fff7f5;
    border: 2px solid transparent;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__arrow:hover,
.gallery-lightbox__arrow:focus-visible {
    background: #c00000;
    border-color: #fff7f5;
    outline: none;
}

.gallery-lightbox__close {
    top: 0;
    right: 0;
    width: 2.75rem;
    height: 2.75rem;
    transform: skewX(-12deg);
}

.gallery-lightbox__close .material-symbols-outlined {
    transform: skewX(12deg);
}

.gallery-lightbox__arrow {
    top: 50%;
    width: 3rem;
    height: 3rem;
    transform: translateY(-50%) skewX(-12deg);
}

.gallery-lightbox__arrow .material-symbols-outlined {
    transform: skewX(12deg);
}

.gallery-lightbox__arrow--prev {
    left: -0.25rem;
}

.gallery-lightbox__arrow--next {
    right: -0.25rem;
}

@media (min-width: 768px) {
    .gallery-lightbox {
        padding: 2rem;
    }

    .gallery-lightbox__arrow {
        width: 3.5rem;
        height: 3.5rem;
    }

    .gallery-lightbox__arrow--prev {
        left: -1.5rem;
    }

    .gallery-lightbox__arrow--next {
        right: -1.5rem;
    }
}

/* Stitch design utilities */
.noise-bg {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

.text-glow-red {
    text-shadow: 0 0 10px rgba(230, 0, 0, 0.5), 0 0 20px rgba(230, 0, 0, 0.3);
}

.box-glow-red {
    box-shadow: 0 0 20px rgba(230, 0, 0, 0.15);
}

/* Mobile navigation (Stitch: Mobile Navigation - Open State) */
.mobile-nav-panel {
    background-color: #131313;
}

.mobile-nav-panel__backdrop {
    background-color: #131313;
}

.mobile-nav-panel__content {
    padding-top: calc(var(--site-header-height, 5.5rem) + 2.75rem);
}

.mobile-nav-panel__content > ul {
    padding-top: 0.5rem;
}

.mobile-nav-link {
    display: block;
    font-family: Anton, sans-serif;
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.25;
    font-weight: 400;
    text-transform: uppercase;
    color: #e9bcb5;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: #ffb4a8;
}

.mobile-nav-link--active {
    color: #ffb4a8;
    border-left: 4px solid #e60000;
    padding-left: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: #1c1b1b;
    text-shadow: 0 0 15px rgba(230, 0, 0, 0.4);
}

.mobile-nav-item {
    opacity: 0;
    transform: translateX(-20px);
    transition:
        opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-item--visible {
    opacity: 1;
    transform: translateX(0);
}

html.mobile-nav-open,
html.mobile-nav-open body {
    overflow: hidden;
}

.stitch-gallery-grid {
    display: grid;
    grid-auto-rows: minmax(200px, auto);
}

@media (min-width: 768px) {
    .stitch-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(240px, auto);
    }
}

.hero-gradient {
    background: radial-gradient(circle at center, rgba(230, 0, 0, 0.15) 0%, rgba(19, 19, 19, 1) 70%);
}

/* Stacked hero headline — extra leading for Hungarian diacritics (Á, É, Ő, etc.) */
.stitch-hero-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
    text-wrap: balance;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.45));
}

.stitch-hero-headline__line {
    display: block;
    line-height: 1.22;
    padding-block: 0.06em;
}

.stitch-hero-headline__line--accent {
    line-height: 1.18;
    padding-block: 0.1em 0.04em;
}

@media (min-width: 768px) {
    .stitch-hero-headline {
        gap: 0.22em;
    }

    .stitch-hero-headline__line {
        line-height: 1.2;
        letter-spacing: -0.01em;
    }

    .stitch-hero-headline__line--accent {
        line-height: 1.16;
    }
}

.stitch-hero-headline--start {
    align-items: flex-start;
    text-align: left;
}

.bg-noise {
    background-color: #131313;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

.slant-btn {
    transform: skewX(-12deg);
}

.slant-btn > span {
    display: inline-block;
    transform: skewX(12deg);
}

.skew-action {
    transform: skewX(-3deg);
}

.skew-action > * {
    transform: skewX(3deg);
}

.card-hover-effect:hover {
    box-shadow: 0 0 24px rgba(230, 0, 0, 0.15);
}

.blog-filter-bar select {
    width: 100%;
    background: #0e0e0e;
    border: 1px solid #353534;
    color: #e5e2e1;
    padding: 0.85rem 1rem;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.blog-filter-bar select:focus {
    outline: none;
    border-color: #e60000;
}

.blog-body blockquote {
    background: #201f1f;
    border-left: 4px solid #e60000;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    transform: skewX(-3deg);
}

.blog-body blockquote p {
    transform: skewX(3deg);
    font-style: italic;
    margin: 0;
}

.notfound-page {
    background-color: #131313;
}

.notfound-giant {
    font-size: clamp(7rem, 22vw, 15rem);
    line-height: 1;
    color: rgba(229, 226, 225, 0.08);
    user-select: none;
    animation: notfound-pulse 3s ease-in-out infinite;
}

@keyframes notfound-pulse {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.14; }
}

.skewed-btn {
    transform: skewX(-12deg);
    display: inline-block;
}

.skewed-btn > span {
    display: inline-flex;
    transform: skewX(12deg);
}

.contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.contact-form-feedback {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #353534;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 16px;
}

.contact-form-feedback--success {
    border-color: #e60000;
    color: #e5e2e1;
    background: rgba(230, 0, 0, 0.08);
}

.contact-form-feedback--error {
    border-color: #93000a;
    color: #ffdad6;
    background: rgba(147, 0, 10, 0.2);
}

.contact-form-card button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
