/* ReCore: a közös Bhávaná-stílus helyi kiegészítései. */
:root {
    --recore-dark: #202B24;
    --recore-paper: #ECE8DE;
    --recore-sage: #D2DDCE;
    --recore-accent: #A65236;
    --recore-hover: #85402B;
    --recore-light: #F2B99F;
}

html {
    scroll-snap-type: none;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    background: var(--recore-paper);
}

/* Fejléc, eredeti SVG és menük. */
.site-header {
    background: var(--recore-dark);
    color: #fff;
}

.recore-logo {
    object-fit: contain;
}

.desktop-nav a:hover,
.mobile-menu nav a:hover {
    color: var(--recore-light);
    border-bottom-color: var(--recore-light);
}

/* Asztali nyitókép: balról jobbra halványuló Multiply árnyékolás. */
.recore-page .hero {
    min-height: 100svh;
    padding: calc(var(--header-height) + 2rem) var(--page-gutter) clamp(3rem, 6vw, 6rem);
    background-image: linear-gradient(90deg, rgb(32 43 36 / 100%) 0%, rgb(32 43 36 / 40%) 50%, transparent 65%), url('../images/recore-hero-asztali.jpg');
    background-blend-mode: multiply, normal;
    background-size: 100% 100%, cover;
    background-position: center top, center var(--header-height);
    align-items: flex-end;
    background-repeat: no-repeat, no-repeat;
    background-color: var(--recore-dark);
    color: #fff;
}

.hero-content {
    max-width: 46rem;
}

.hero h1 {
    font-size: clamp(3.2rem, 6vw, 6rem);
    line-height: 1;
    letter-spacing: -.045em;
    margin: .6rem 0 1rem;
}

.hero .intro {
    max-width: 35rem;
    margin: 0;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    line-height: 1.4;
}

.hero-description {
    margin: .8rem 0 1.5rem;
    color: #fff;
}

/* Tartalmi ritmus és a saját ReCore-fotók. */
.content-section {
    --ink: var(--recore-dark);
    --muted: #4d5c50;
    --line: rgb(32 43 36 / 25%);
    color-scheme: light;
    padding: clamp(3rem, 6vw, 6rem) var(--page-gutter);
    color: var(--ink);
    background: var(--recore-paper);
    border-top: 1px solid var(--line);
}

.section-inner {
    max-width: 1200px;
    margin-inline: auto;
}

.content-section h2 {
    max-width: 950px;
    font-size: clamp(2rem, 3.5vw, 3.6rem);
    letter-spacing: -.035em;
    margin-bottom: 1.6rem;
}

.content-section h3 {
    font-size: 1.7rem;
    margin: 1.5rem 0 1rem;
}

.content-section p {
    max-width: 80ch;
    margin-bottom: 1.2rem;
}

.content-section ul {
    max-width: 80ch;
    padding-left: 1.4rem;
    margin: 1.2rem 0 1.8rem;
}

.content-section li {
    margin-bottom: .8rem;
}

.content-section img {
    display: block;
    max-width: 100%;
    height: auto;
}

.sage {
    background: var(--recore-sage);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.6rem, 2vw, 1.5rem);
    margin-top: 2.5rem;
    align-items: start;
}

.gallery img {
    width: 100%;
}

.split,
.registration-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.coach-photo {
    width: min(100%, 420px);
}

.logistics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: #9fae9e;
    border: 1px solid #9fae9e;
    margin: 2rem 0 3rem;
}

.logistics-grid > div {
    min-width: 0;
    padding: clamp(1rem, 2vw, 2rem);
    background: var(--recore-paper);
}

.logistics-grid h3 {
    margin-top: 0;
    font-size: clamp(1.35rem, 2vw, 2rem);
    color: var(--recore-hover);
}

.venue {
    width: min(100%, 700px);
    margin: 2rem 0;
}

/* Gombok, fókusz és űrlap. */
.hero .button,
.content-section .button:not(:disabled) {
    background: var(--recore-accent);
    color: #fff;
    border: 1px solid var(--recore-accent);
    border-radius: 3px;
    font-weight: 600;
    text-align: center;
    white-space: normal;
    max-width: 100%;
}

.hero .button:hover,
.content-section .button:not(:disabled):hover {
    background: var(--recore-hover);
    border-color: var(--recore-hover);
    color: #fff;
}

.content-section :focus-visible {
    outline: 3px solid var(--recore-hover);
    outline-offset: 4px;
}

.dark {
    --ink: #fff;
    --muted: var(--recore-paper);
    --line: rgb(255 255 255 / 30%);
    color-scheme: dark;
    background: var(--recore-dark);
    color: #fff;
}

.dark .eyebrow,
.hero .eyebrow {
    color: var(--recore-light);
    font-size: .875rem;
}

.form-field input,
.form-field textarea {
    background: #29372e;
    color: #fff;
    border-color: #879587;
}

.consent {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    font-size: .9375rem;
}

.consent input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: .25rem;
    accent-color: var(--recore-accent);
}

.consent a,
.dark p a {
    text-decoration: underline;
    text-underline-offset: .2rem;
}

.honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

#responseMessage {
    margin-top: 1rem;
}

.hero :focus-visible,
.dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.section-dots :focus-visible {
    outline: 3px solid var(--recore-light);
    outline-offset: 4px;
}

/* Közös szerkezetű Bhávaná-lábléc. */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    align-items: flex-start;
    padding: 3rem var(--page-gutter);
    background: var(--recore-dark);
    color: var(--recore-paper);
    font-size: 1rem;
}

.footer-group {
    flex: 1 1 220px;
    min-width: 0;
}

.site-footer img {
    max-width: 100%;
    object-fit: contain;
    object-position: left;
}

.site-footer h2 {
    font-size: 1.3rem;
    margin: 1rem 0;
}

.site-footer p {
    margin: 1rem 0;
}

.site-footer ul {
    padding-left: 1.2rem;
}

.site-footer a:hover {
    text-decoration: underline;
}

.copyright {
    width: 100%;
}

/* Mobilon működő szakaszjelölők és automatikusan záródó menü. */
.section-dots {
    background: rgb(32 43 36 / 92%);
}

.section-dots span {
    border-color: #fff;
}

.section-dots a[aria-current] span {
    background: var(--recore-light);
    border-color: var(--recore-light);
}

@media (max-width: 1023px) {
    .logistics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    /* Mobil nyitókép: kizárólag az álló képet használjuk. */
    .recore-page .hero {
        min-height: min(100svh, calc(var(--header-height) + env(safe-area-inset-top, 0px) + 177.7778vw));
        padding: calc(var(--header-height) + 2rem) 2.75rem 2.5rem 2rem;
        background-image:
            linear-gradient(to top, rgb(32 43 36 / 100%) 0%, rgb(32 43 36 / 40%) 30%, transparent 60%),
            url('../images/recore-hero-mobile.jpg');
        background-blend-mode: multiply, normal;
        background-size: 100% 100%, 100% auto;
        background-position: center top, center calc(var(--header-height) + env(safe-area-inset-top, 0px));
        background-repeat: no-repeat, no-repeat;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 4.5rem);
    }

    .hero .intro {
        font-size: 1.2rem;
    }

    .content-section,
    .site-footer {
        padding: 3rem 2.75rem 3rem 2rem;
    }

    .content-section h2 {
        font-size: clamp(2rem, 8vw, 2.8rem);
        overflow-wrap: anywhere;
    }

    .split,
    .registration-grid,
    .gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .mobile-menu nav a {
        font-size: .9375rem;
        border-bottom: 1px solid rgb(255 255 255 / 15%);
    }

    .section-dots a {
        width: 28px;
        height: 32px;
    }
}

@media (max-width: 380px) {
    .logistics-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
