/* ==========================================================================
   AMC Hungary - Homepage v3
   Loaded only on /. All page rules are scoped under .home-page, except the
   footer margin reset that targets this page through :has().
   ========================================================================== */

.home-page {
    --home-container: 1320px;
    --home-container-px: clamp(20px, 4vw, 56px);
    --home-section-y: clamp(5rem, 8vw, 8rem);
    --home-section-y-large: clamp(7rem, 10vw, 10rem);
    --home-ivory: #FAF7F2;
    --home-white: #FFFFFF;
    --home-dark: #1A1410;
    --home-ink: #0E1412;
    --home-text: #3A3530;
    --home-muted: #6B6760;
    --home-gold: #C9A961;
    --home-gold-dark: #A88A47;
    --home-border: #E8E2D5;
    --home-shadow: 0 24px 60px rgba(14, 20, 18, 0.08);
    --home-shadow-hover: 0 34px 76px rgba(14, 20, 18, 0.12);
    --home-motion-fast: var(--amc-motion-fast, 240ms);
    --home-motion-medium: var(--amc-motion-medium, 480ms);
    --home-motion-slow: var(--amc-motion-slow, 720ms);
    --home-motion-luxury: var(--amc-motion-luxury, 1000ms);
    --home-ease: var(--amc-ease-premium, cubic-bezier(0.22, 1, 0.36, 1));
    background: var(--home-ivory);
    color: var(--home-ink);
    overflow-x: clip;
}

html:has(.home-page),
body:has(.home-page) {
    overflow-x: clip;
}

main:has(.home-page) + .site-footer {
    margin-top: 0;
}

.home-page *,
.home-page *::before,
.home-page *::after {
    box-sizing: border-box;
}

.home-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

.home-page :is(h1, h2, h3, blockquote) {
    hyphens: none;
    overflow-wrap: normal;
    text-wrap: balance;
    word-break: normal;
}

.home-page p {
    text-wrap: pretty;
}

.home-page a,
.home-page button {
    -webkit-tap-highlight-color: transparent;
}

.home-page a:focus-visible,
.home-page button:focus-visible {
    outline: 2px solid var(--home-gold);
    outline-offset: 4px;
}

.home-container {
    width: min(100% - (var(--home-container-px) * 2), var(--home-container));
    margin-inline: auto;
}

.home-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.home-hairline {
    display: block;
    width: 60px;
    height: 1px;
    margin: 0 auto 24px;
    background: var(--home-gold);
}

.home-eyebrow,
.home-card-eyebrow {
    margin: 0;
    color: var(--home-gold-dark);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    line-height: 1.35;
    text-transform: uppercase;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.home-eyebrow:not(.home-eyebrow-center)::before {
    content: "";
    width: 60px;
    height: 1px;
    flex: 0 0 auto;
    background: var(--home-gold);
}

.home-eyebrow-center {
    justify-content: center;
}

.home-page :is(h1, h2, h3, blockquote) {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 0;
}

.home-page em {
    color: var(--home-gold);
    font-style: italic;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 26px;
    align-items: center;
    margin-top: 34px;
}

.home-actions-center {
    justify-content: center;
}

.home-button,
.home-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    font-family: var(--font-sans);
    text-decoration: none;
    transition:
        background-color var(--home-motion-fast) var(--home-ease),
        border-color var(--home-motion-fast) var(--home-ease),
        color var(--home-motion-fast) var(--home-ease),
        transform var(--home-motion-fast) var(--home-ease),
        box-shadow var(--home-motion-fast) var(--home-ease);
}

.home-button {
    padding: 1rem 2.25rem;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-button-primary {
    background: var(--home-gold);
    border-color: var(--home-gold);
    color: var(--home-dark);
}

.home-button-primary:hover {
    background: var(--home-gold-dark);
    border-color: var(--home-gold-dark);
    color: var(--home-dark);
    transform: translateY(-1px);
    box-shadow: var(--home-shadow);
}

.home-button-secondary {
    background: transparent;
    border-color: rgba(14, 20, 18, 0.34);
    color: var(--home-ink);
}

.home-button-secondary:hover {
    background: var(--home-dark);
    border-color: var(--home-dark);
    color: var(--home-ivory);
    transform: translateY(-1px);
}

.home-link-arrow {
    gap: 8px;
    color: var(--home-ink);
    font-size: 0.94rem;
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.home-link-arrow span {
    transition: transform var(--home-motion-fast) var(--home-ease);
}

.home-link-arrow:hover {
    color: var(--home-gold-dark);
    border-bottom-color: var(--home-gold);
}

.home-link-arrow:hover span {
    transform: translateX(4px);
}

.home-link-arrow-gold {
    color: var(--home-gold-dark);
    border-bottom-color: rgba(201, 169, 97, 0.58);
}

.home-link-arrow-light {
    color: var(--home-ivory);
    border-bottom-color: rgba(201, 169, 97, 0.7);
}

.home-link-arrow-light:hover {
    color: var(--home-gold);
}

.home-page.is-enhanced .home-reveal,
.home-page.is-enhanced .home-stagger > * {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 760ms var(--home-ease),
        transform 760ms var(--home-ease);
}

.home-page.is-enhanced .home-reveal.is-visible,
.home-page.is-enhanced .home-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.home-page.is-enhanced .home-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.home-page.is-enhanced .home-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.home-page.is-enhanced .home-stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.home-page.is-enhanced .home-stagger.is-visible > *:nth-child(5) { transition-delay: 360ms; }
.home-page.is-enhanced .home-stagger.is-visible > *:nth-child(6) { transition-delay: 450ms; }

/* Hero - full-bleed landscape image with text overlay */
.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 88vh;
    padding: 0;
    background: var(--home-dark);
    overflow: hidden;
    isolation: isolate;
}

.home-hero-media {
    position: absolute;
    inset: 0;
    margin: 0;
    overflow: hidden;
    z-index: 0;
}

.home-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(14, 20, 18, 0.55) 0%,
        rgba(14, 20, 18, 0.35) 50%,
        rgba(14, 20, 18, 0.15) 100%
    );
    pointer-events: none;
}

.home-hero-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.home-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 50%;
    animation: homeKenBurns 44s ease-in-out infinite alternate;
}

@media (max-width: 640px) {
    .home-hero-media img {
        object-position: 65% 50%;
    }
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: clamp(2rem, 6vw, 5rem);
}

.home-hero-copy {
    max-width: 640px;
}

.home-hero .home-eyebrow {
    color: var(--home-gold);
}

.home-hero-title {
    max-width: 100%;
    margin: 0;
    color: var(--home-ivory);
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.05;
}

.home-hero-title em {
    color: var(--home-gold);
    white-space: nowrap;
}

.home-hero-mobile-break {
    display: none;
}

.home-hero-title-start,
.home-hero-title-end {
    display: inline;
}

.home-hero-lead {
    max-width: 42ch;
    margin: 28px 0 0;
    color: rgba(250, 247, 242, 0.9);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.55;
}

.home-hero .home-link-arrow {
    color: var(--home-ivory);
    border-bottom-color: rgba(201, 169, 97, 0.7);
}

.home-hero .home-link-arrow:hover {
    color: var(--home-gold);
    border-bottom-color: var(--home-gold);
}

.home-hero-scroll-line {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;
    width: 1px;
    height: 24px;
    background: var(--home-gold);
    transform: translateX(-50%) scaleY(0.45);
    transform-origin: top;
    animation: homeScrollLine 3.6s var(--home-ease) infinite;
}

@keyframes homeKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

@keyframes homeScrollLine {
    0%, 100% { opacity: 0.42; transform: translateX(-50%) scaleY(0.45); }
    50% { opacity: 1; transform: translateX(-50%) scaleY(1); }
}

/* Mantra */
.home-mantra {
    padding: var(--home-section-y) var(--home-container-px);
    background: var(--home-ivory);
}

.home-mantra-inner {
    width: min(100%, 880px);
    margin-inline: auto;
    text-align: center;
}

.home-mantra .home-eyebrow {
    margin-inline: auto;
}

.home-mantra blockquote {
    margin: 28px 0 0;
    color: var(--home-ink);
    font-size: clamp(2.1rem, 4.8vw, 3.55rem);
    font-style: italic;
    line-height: 1.1;
}

.home-mantra blockquote span {
    color: var(--home-gold);
}

.home-mantra p:last-child {
    max-width: 50ch;
    margin: 28px auto 0;
    color: var(--home-text);
    font-size: 1.08rem;
    line-height: 1.65;
}

/* Shared editorial sections */
.home-system,
.home-components,
.home-guarantee,
.home-awards,
.home-trial,
.home-club {
    padding: var(--home-section-y) 0;
    padding-bottom: calc(var(--home-section-y) / 2);
}

.home-system,
.home-trial,
.home-awards {
    background: var(--home-white);
}

.home-components,
.home-guarantee,
.home-club {
    background: var(--home-ivory);
}

.home-split {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
    gap: clamp(38px, 7vw, 96px);
    align-items: center;
}

.home-split-trial {
    grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
}

.home-editorial h2,
.home-section-header h2 {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    line-height: 1.1;
}

.home-editorial p,
.home-section-header p {
    max-width: 68ch;
    margin: 24px 0 0;
    color: var(--home-text);
    font-size: clamp(1rem, 1.15vw, 1.08rem);
    line-height: 1.68;
}

.home-section-header {
    max-width: 820px;
    margin: 0 auto clamp(3rem, 5vw, 4.5rem);
}

.home-section-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-section-header-center .home-hairline {
    margin: 0 auto 1.5rem;
}

.home-section-header-center .home-eyebrow {
    display: inline-flex;
    margin: 0 auto 1.25rem;
}

.home-section-header-center h2 {
    margin: 0 auto 1rem;
}

.home-section-header-center > p:not(.home-eyebrow) {
    max-width: 50ch;
    margin: 0 auto;
}

.home-system {
    scroll-margin-top: 96px;
}

.home-components {
    scroll-margin-top: 96px;
}

.home-system-media,
.home-cookgo-media,
.home-trial-media {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 97, 0.28);
    box-shadow: var(--home-shadow);
}

.home-system-media img,
.home-cookgo-media img,
.home-trial-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 760ms var(--home-ease);
}

.home-system-media img {
    object-position: center 50%;
}

@media (hover: hover) and (pointer: fine) {
    .home-system-media:hover img,
    .home-cookgo-media:hover img,
    .home-trial-media:hover img,
    .home-guarantee-media:hover img {
        transform: scale(1.03);
    }
}

/* Components */
.home-component-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: clamp(20px, 2.5vw, 32px);
}

.home-component-card,
.home-promise-card,
.home-award-card,
.home-club-card {
    background: var(--home-white);
    border: 1px solid var(--home-border);
    transition:
        transform var(--home-motion-medium) var(--home-ease),
        box-shadow var(--home-motion-medium) var(--home-ease),
        border-color var(--home-motion-medium) var(--home-ease);
}

.home-component-card a {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.home-component-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--home-ivory);
}

.home-component-image img {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
    transition: transform 760ms var(--home-ease);
}

.home-component-image.is-contain img {
    padding: clamp(24px, 4vw, 46px);
    object-fit: contain;
}

.home-component-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    padding: clamp(24px, 3vw, 36px);
    text-align: center;
}

.home-component-title {
    display: block;
    margin-top: 0;
    color: var(--home-ink);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.18;
    text-wrap: balance;
    white-space: normal;
}

.home-component-copy {
    display: block;
    flex: 1;
    max-width: 32ch;
    margin: 14px auto 0;
    color: var(--home-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.home-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 24px;
    align-self: center;
    color: var(--home-gold-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-card-link span {
    transition: transform var(--home-motion-fast) var(--home-ease);
}

@media (hover: hover) and (pointer: fine) {
    .home-component-card:hover,
    .home-promise-card:hover,
    .home-award-card:hover,
    .home-club-card:hover {
        transform: translateY(-3px);
        border-color: rgba(201, 169, 97, 0.58);
        box-shadow: var(--home-shadow-hover);
    }

    .home-component-card:hover .home-component-image img {
        transform: scale(1.03);
    }

    .home-component-card:hover .home-card-link span {
        transform: translateX(4px);
    }
}

/* Cook & Go */
.home-cookgo {
    padding: var(--home-section-y) 0;
    background: var(--home-dark);
    color: var(--home-ivory);
}

.home-split-cookgo {
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.72fr);
}

.home-editorial-dark h2 {
    color: var(--home-ivory);
}

.home-editorial-dark p {
    color: rgba(250, 247, 242, 0.86);
}

.home-editorial-dark .home-eyebrow {
    color: var(--home-gold);
}

.home-cookgo-media {
    background: #0F0C0A;
    border-color: rgba(201, 169, 97, 0.38);
}

.home-cookgo-media img {
    object-fit: contain;
    padding: clamp(24px, 5vw, 58px);
}

/* Guarantee */
.home-guarantee-media {
    position: relative;
    margin: 0 0 clamp(2rem, 5vw, 4rem);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 97, 0.28);
    box-shadow: var(--home-shadow);
}

.home-guarantee-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(26, 20, 16, 0.18), transparent 58%);
    pointer-events: none;
}

.home-guarantee-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 760ms var(--home-ease);
}

.home-promise-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 32px);
}

.home-promise-card {
    padding: clamp(28px, 3.2vw, 42px);
}

.home-page .home-promise-icon {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto;
    object-fit: contain;
    color: var(--home-gold-dark);
}

.home-page .home-award-icon {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    color: var(--home-gold-dark);
}

.home-promise-card h3,
.home-award-card h3,
.home-club-card h3 {
    margin: 22px 0 0;
    color: var(--home-ink);
    font-size: clamp(1.24rem, 1.8vw, 1.5rem);
    line-height: 1.18;
}

.home-promise-card p,
.home-award-card p,
.home-club-card p {
    margin: 16px 0 0;
    color: var(--home-text);
    font-size: 0.96rem;
    line-height: 1.65;
}

.home-promise-card {
    text-align: center;
}

.home-promise-card p {
    max-width: 32ch;
    margin-inline: auto;
}

/* Awards */
.home-award-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: clamp(16px, 1.6vw, 24px);
}

.home-award-card {
    padding: clamp(22px, 2vw, 30px) clamp(22px, 2vw, 32px);
    border: 1.5px solid var(--home-gold);
    background:
        linear-gradient(180deg, rgba(201, 169, 97, 0.07), rgba(255, 255, 255, 0) 42%),
        var(--home-white);
}

.home-award-card .home-card-eyebrow {
    margin-top: 18px;
}

.home-award-card h3 {
    margin-top: 16px;
}

.home-award-card p {
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.55;
}

@media (min-width: 1280px) {
    .home-awards .home-container {
        width: min(100% - 32px, 1560px);
    }

    .home-award-card h3 {
        font-size: clamp(0.98rem, 1.08vw, 1.22rem);
        line-height: 1.14;
        white-space: nowrap;
    }
}

@media (min-width: 1360px) {
    .home-award-card h3 {
        font-size: clamp(1.08rem, 1.08vw, 1.22rem);
    }
}

@media (max-width: 1279px) {
    .home-award-grid {
        grid-template-columns: 1fr;
    }
}

/* Trial */
.home-trial-media {
    aspect-ratio: 16 / 10;
}

.home-trial-media img {
    object-position: center;
}

/* Club */
.home-club-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 32px);
}

.home-club-card {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: clamp(28px, 3.4vw, 44px);
    overflow: hidden;
}

.home-club-card-plus {
    border-color: var(--home-gold);
    background:
        linear-gradient(135deg, rgba(201, 169, 97, 0.08), rgba(255, 255, 255, 0) 58%),
        var(--home-white);
}

.home-club-card-plus::after,
.home-club-card-elite::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-top: 1px solid rgba(201, 169, 97, 0.72);
    border-right: 1px solid rgba(201, 169, 97, 0.72);
    pointer-events: none;
}

.home-club-card-elite {
    background: var(--home-dark);
    border-color: rgba(201, 169, 97, 0.44);
    color: var(--home-ivory);
}

.home-club-headline {
    color: var(--home-gold-dark);
    font-weight: 700;
}

/* Header zone (title, headline, intro, note) center-aligned to mirror the
   /klub-program tier-card layout. Bullets revert to left-aligned below. */
.home-club-card {
    text-align: center;
}

.home-club-card ul {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--home-border);
    list-style: none;
    text-align: left;
}

.home-club-card-plus ul {
    border-top-color: rgba(201, 169, 97, 0.4);
}

.home-club-card-elite ul {
    border-top-color: rgba(201, 169, 97, 0.3);
}

.home-club-card li {
    position: relative;
    padding-left: 22px;
    color: var(--home-text);
    font-size: 0.94rem;
    line-height: 1.55;
}

.home-club-card li::before {
    content: "◇";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--home-gold);
}

/* Elite text legibility — specificity bump (double-class selector) so these
   overrides win over the later .home-club-card li { color: --home-text } rule.
   Without this bump the source-order tie at specificity (0,2,1) would let
   the dark-text rule override the light-text intent. */
.home-club-card.home-club-card-elite h3,
.home-club-card.home-club-card-elite p,
.home-club-card.home-club-card-elite li {
    color: var(--home-ivory);
}

.home-club-card.home-club-card-elite .home-club-headline {
    color: var(--home-gold);
}

.home-club-card.home-club-card-elite .home-club-intro {
    color: rgba(250, 250, 247, 0.72);
}

/* Defensive: champagne diamond bullet markers visible on Elite's dark card */
.home-club-card.home-club-card-elite li::before {
    color: var(--home-gold);
}

.home-club-note {
    margin-top: auto;
    padding-top: 18px;
    color: var(--home-gold-dark);
    font-family: var(--font-serif);
    font-style: italic;
}

/* Klub+ intro paragraph — muted body text between the headline and bullet list.
   Reads as informative breathing context, never a bullet. The Elite-card
   override has been moved up into the legibility-specificity block above. */
.home-club-intro {
    margin: 14px 0 0;
    color: var(--home-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* Klub+ kártya: az intro a kártya alsó info-blokkjához tartozzon — nagyobb
   gap az előny-lista alatt, kisebb gap a "Gördülő..." felirat felett. */
.home-club-card-plus .home-club-intro {
    margin-top: auto;
    padding-top: 28px;
}

.home-club-card-plus .home-club-note {
    margin-top: 0;
    padding-top: 8px;
}

/* Title is the first content child of every club card (no eyebrow, no trophy).
   Override the shared promise/award/club margin-top so the title sits flush
   under the card's own padding — required for the three tier titles to align
   on a single horizontal baseline across all three cards. */
.home-club-card h3 {
    margin-top: 0;
}

/* Closing */
.home-closing {
    padding: var(--home-section-y-large) var(--home-container-px);
    padding-top: calc(var(--home-section-y-large) / 2);
    background:
        linear-gradient(180deg, var(--home-ivory), #FFFFFF);
    text-align: center;
}

.home-closing-inner {
    width: min(100%, 900px);
    margin-inline: auto;
}

.home-closing-mark {
    display: block;
    margin-bottom: 34px;
    color: var(--home-gold);
    font-size: 1rem;
}

.home-closing blockquote {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(2rem, 5vw, 4rem);
    font-style: italic;
    line-height: 1.1;
}

.home-closing p {
    margin: 34px 0 0;
    color: var(--home-gold-dark);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 1180px) {
    .home-component-grid,
    .home-promise-grid,
    .home-club-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .home-hero {
        min-height: 78vh;
    }

    .home-split,
    .home-split-cookgo,
    .home-split-trial {
        grid-template-columns: 1fr;
    }

    .home-system-media,
    .home-cookgo-media,
    .home-trial-media {
        max-width: 620px;
    }

    .home-cookgo-media {
        aspect-ratio: 4 / 3;
    }

    .home-award-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .home-component-grid,
    .home-promise-grid,
    .home-club-grid {
        grid-template-columns: 1fr;
    }

    .home-hero {
        align-items: flex-end;
        min-height: 70vh;
    }

    .home-hero-copy {
        max-width: 100%;
    }

    .home-hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .home-hero-scroll-line {
        display: none;
    }

    .home-eyebrow {
        gap: 10px;
        font-size: 0.68rem;
        letter-spacing: 0.16em;
    }

    .home-eyebrow:not(.home-eyebrow-center)::before {
        width: 34px;
    }

    .home-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-button,
    .home-link-arrow {
        width: 100%;
    }

    .home-section-header-center .home-eyebrow {
        display: flex;
    }

    .home-page .home-promise-icon {
        width: 56px;
        height: 56px;
    }

    .home-page .home-award-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 430px) {
    .home-page {
        --home-container-px: 18px;
    }

    .home-hero-title {
        font-size: clamp(2.15rem, 10vw, 2.4rem);
    }

    .home-hero-title-start,
    .home-hero-title-end {
        display: block;
    }

    .home-hero-mobile-break {
        display: block;
    }

    .home-hero-title-end {
        white-space: nowrap;
    }

    .home-button {
        padding-inline: 1.1rem;
        letter-spacing: 0.12em;
    }

    .home-component-body,
    .home-promise-card,
    .home-award-card,
    .home-club-card {
        padding: 24px;
    }

    .home-mantra blockquote {
        font-size: clamp(1.9rem, 11vw, 2.7rem);
    }
}

/* ==========================================================================
   Mobile + tablet center-alignment pass (≤1023px)
   --------------------------------------------------------------------------
   Below the desktop breakpoint, split editorial blocks (System / Cook&Go
   / Trial) stack vertically and read better when their eyebrow + h2 +
   body + arrow link all center on the column. Award cards likewise look
   premium with centered icon + eyebrow + title + body. Section headers
   that already use .home-section-header-center stay untouched.
   Desktop (≥1024px) is unaffected.
   ========================================================================== */
@media (max-width: 1023px) {
    .home-editorial {
        text-align: center;
    }

    .home-editorial .home-eyebrow:not(.home-eyebrow-center) {
        justify-content: center;
    }

    .home-editorial > p:not(.home-eyebrow) {
        max-width: 56ch;
        margin-inline: auto;
    }

    .home-editorial .home-link-arrow {
        margin-inline: auto;
    }

    .home-award-card {
        text-align: center;
    }

    .home-award-card .home-award-icon,
    .home-award-card .home-promise-icon {
        margin: 0 auto;
    }

    .home-award-card p {
        max-width: 32ch;
        margin-inline: auto;
    }

    .home-club-card h3,
    .home-club-card .home-club-headline,
    .home-club-card .home-club-intro {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .home-page.is-enhanced .home-reveal,
    .home-page.is-enhanced .home-stagger > *,
    .home-page.is-enhanced .home-reveal.is-visible,
    .home-page.is-enhanced .home-stagger.is-visible > * {
        opacity: 1;
        transform: none;
    }
}
