/* ==================================================
   GOLD FENCING CLUB
   FINAL STYLESHEET
================================================== */

:root {
    --gold: #d3a52f;
    --gold-dark: #b8891e;
    --gold-light: #f4df9c;

    --navy: #173652;
    --navy-dark: #102a41;

    --blue: #4d92c6;
    --sky: #eaf5fb;

    --ivory: #fffdf7;
    --cream: #faf6eb;
    --white: #ffffff;

    --text: #263746;
    --muted: #687783;

    --border: #e7e4da;

    --shadow:
        0 18px 50px rgba(22, 52, 78, 0.10);

    --max-width: 1180px;
}


/* ==================================================
   RESET
================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    margin: 0;

    background: var(--ivory);

    color: var(--text);

    font-family:
        Inter,
        "Noto Sans SC",
        "PingFang SC",
        "Microsoft YaHei",
        Arial,
        sans-serif;

    line-height: 1.65;
}

body.modal-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--navy);
    line-height: 1.08;
}

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}


/* ==================================================
   GENERAL
================================================== */

.section {
    padding: 68px 0 76px;
}

.eyebrow {
    margin-bottom: 10px;

    color: var(--gold-dark);

    font-size: 0.72rem;
    font-weight: 850;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 38px;
}

.section-heading.centered {
    margin-right: auto;
    margin-bottom: 42px;
    margin-left: auto;

    text-align: center;
}

.section-heading h2 {
    margin-bottom: 16px;

    font-size: clamp(2.2rem, 5vw, 4rem);

    letter-spacing: -0.04em;
}

.section-heading p:last-child {
    max-width: 650px;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;

    color: var(--muted);
}


/* ==================================================
   BUTTONS
================================================== */

.button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 21px;

    border-radius: 10px;

    font-size: 0.86rem;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-gold {
    background: var(--gold);
    color: var(--navy-dark);

    box-shadow:
        0 10px 24px rgba(211, 165, 47, 0.23);
}

.button-gold:hover {
    background: var(--gold-light);
}

.button-outline {
    border: 1px solid rgba(23, 54, 82, 0.22);

    background: rgba(255, 255, 255, 0.7);

    color: var(--navy);
}

.button-outline:hover {
    background: white;
}

.button-navy {
    background: var(--navy);
    color: white;
}


/* ==================================================
   HEADER
================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 2000;

    background: rgba(255, 253, 247, 0.96);

    border-bottom:
        1px solid rgba(23, 54, 82, 0.08);

    backdrop-filter: blur(15px);
}

.nav-container {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}


/* BRAND */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    flex-shrink: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--navy);

    color: var(--gold);

    font-size: 1.25rem;
}

.brand-logo {
    width: 48px;
    height: 54px;

    object-fit: contain;

    flex: 0 0 auto;
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1;
}

.brand-text strong {
    color: var(--navy);

    font-size: 1.05rem;

    letter-spacing: 0.14em;
}

.brand-text > span {
    margin-top: 4px;

    color: var(--gold-dark);

    font-size: 0.57rem;
    font-weight: 850;

    letter-spacing: 0.17em;
}


/* NAV */

.nav-links {
    display: flex;
    align-items: center;
    gap: 23px;
}

.nav-links > a {
    position: relative;

    color: var(--navy);

    font-size: 0.78rem;
    font-weight: 750;

    white-space: nowrap;
}

.nav-links > a:not(.nav-cta)::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;

    height: 2px;

    background: var(--gold);

    transform: scaleX(0);

    transition: transform 0.2s ease;
}

.nav-links > a:hover::after,
.nav-links > a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    padding: 10px 15px;

    border-radius: 8px;

    background: var(--gold);

    color: var(--navy-dark) !important;
}

.nav-cta:hover {
    background: var(--gold-light);
}


/* LANGUAGE */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 4px;

    white-space: nowrap;
}

.lang-btn {
    padding: 4px;

    border: 0;

    background: transparent;

    color: var(--muted);

    font-size: 0.72rem;
    font-weight: 750;

    cursor: pointer;

    transition: color 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--gold-dark);
}

.lang-btn.active {
    font-weight: 900;
}

.language-switcher > span {
    color: var(--border);
}


/* MOBILE BUTTON */

.menu-button {
    width: 44px;
    height: 44px;

    display: none;

    padding: 10px;

    border: 0;
    border-radius: 8px;

    background: transparent;

    cursor: pointer;
}

.menu-button span {
    width: 100%;
    height: 2px;

    display: block;

    margin: 5px 0;

    background: var(--navy);
}


/* ==================================================
   HERO
================================================== */

.hero {
    position: relative;

    min-height: 650px;

    overflow: hidden;

    background: var(--cream);
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;

    width: 100%;
    height: 100%;

    background-image:
        url("../images/hero-growth.png");

    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(255, 253, 247, 0.98) 0%,
            rgba(255, 253, 247, 0.94) 23%,
            rgba(255, 253, 247, 0.78) 38%,
            rgba(255, 253, 247, 0.30) 53%,
            rgba(255, 253, 247, 0) 74%
        );
}

.hero-container {
    position: relative;
    z-index: 2;

    min-height: 650px;

    display: flex;
    align-items: flex-start;
}

.hero-content {
    width: min(580px, 48%);

    padding-top: 72px;
    padding-bottom: 50px;
}

.hero .eyebrow {
    margin-bottom: 10px;
}

.hero h1 {
    max-width: 580px;

    margin: 0;

    font-size: clamp(3.1rem, 5.5vw, 5.6rem);

    line-height: 1.01;

    letter-spacing: -0.045em;
}

.hero-title-main,
.hero-title-gold {
    display: block;
}

.hero-title-main {
    color: var(--navy);
}

.hero-title-gold {
    color: var(--gold-dark);
}

.hero-tagline {
    max-width: 500px;

    margin-top: 23px;
    margin-bottom: 12px;

    color: var(--navy);

    font-size: 1.15rem;
    font-weight: 800;
}

.hero-description {
    max-width: 450px;

    margin-bottom: 28px;

    color: var(--muted);

    font-size: 0.98rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* ==================================================
   JOURNEY
================================================== */

.journey {
    background: var(--ivory);
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.journey-card {
    position: relative;

    min-height: 265px;

    padding: 28px 25px;

    overflow: hidden;

    border:
        1px solid rgba(23, 54, 82, 0.08);

    border-radius: 18px;

    background: white;

    box-shadow: var(--shadow);
}

.journey-number {
    position: absolute;
    top: 16px;
    right: 19px;

    color: rgba(211, 165, 47, 0.24);

    font-size: 2.4rem;
    font-weight: 900;
}

.journey-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    margin-bottom: 28px;

    border-radius: 50%;

    background: var(--sky);

    color: var(--blue);

    font-weight: 900;
}

.journey-card h3 {
    margin-bottom: 12px;

    font-size: 1.25rem;
}

.journey-card p {
    margin-bottom: 0;

    color: var(--muted);

    font-size: 0.88rem;
}


/* ==================================================
   VALUES
================================================== */

.values {
    background: var(--sky);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.value-card {
    min-height: 300px;

    padding: 40px 35px;

    border-radius: 20px;

    background: white;

    box-shadow: var(--shadow);
}

.value-card.featured {
    background: var(--navy);

    color: white;
}

.value-icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    margin-bottom: 28px;

    border-radius: 50%;

    background: var(--cream);

    color: var(--gold-dark);

    font-size: 1.2rem;
    font-weight: 900;
}

.value-card.featured .value-icon {
    background: rgba(255, 255, 255, 0.1);

    color: var(--gold-light);
}

.value-card h3 {
    margin-bottom: 14px;

    font-size: 1.55rem;
}

.value-card.featured h3 {
    color: white;
}

.value-card p {
    margin-bottom: 0;

    color: var(--muted);
}

.value-card.featured p {
    color: rgba(255, 255, 255, 0.72);
}


/* ==================================================
   LEGACY / COACH
================================================== */

.legacy {
    background: var(--ivory);
}

.legacy-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;

    gap: 70px;
}

.legacy-image-wrap {
    position: relative;
}

.legacy-image-wrap img {
    height: 520px;

    object-fit: cover;

    border-radius: 24px;

    box-shadow: var(--shadow);
}

.legacy-badge {
    position: absolute;
    right: -20px;
    bottom: 28px;

    min-width: 145px;

    padding: 20px;

    border-radius: 16px;

    background: var(--gold);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.15);
}

.legacy-badge strong,
.legacy-badge span {
    display: block;
}

.legacy-badge strong {
    color: var(--navy-dark);

    font-size: 1.15rem;
}

.legacy-badge span {
    color: rgba(16, 42, 65, 0.72);

    font-size: 0.8rem;
    font-weight: 750;
}

.legacy-content h2 {
    margin-bottom: 22px;

    font-size: clamp(2.3rem, 4.5vw, 4rem);

    letter-spacing: -0.04em;
}

.legacy-content > p:not(.eyebrow) {
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-top: 15px;

    color: var(--navy);

    font-weight: 850;
}


/* ==================================================
   PROGRAMS
================================================== */

.programs {
    background: var(--cream);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.program-card {
    position: relative;

    padding: 34px;

    border:
        1px solid rgba(23, 54, 82, 0.08);

    border-radius: 19px;

    background: white;

    box-shadow:
        0 12px 35px rgba(22, 52, 78, 0.06);
}

.program-label {
    position: absolute;
    top: 24px;
    right: 26px;

    color: rgba(211, 165, 47, 0.35);

    font-size: 1.55rem;
    font-weight: 900;
}

.program-card h3 {
    margin-bottom: 14px;

    font-size: 1.55rem;
}

.program-card p {
    max-width: 520px;

    color: var(--muted);
}

.program-card a {
    display: inline-flex;
    gap: 8px;

    margin-top: 8px;

    color: var(--gold-dark);

    font-size: 0.83rem;
    font-weight: 850;
}




/* ==================================================
   GALLERY
================================================== */

.life {
    background: var(--ivory);
}

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(12, 1fr);

    grid-auto-rows: 220px;

    gap: 14px;
}

.gallery-item {
    position: relative;

    grid-column: span 4;

    margin: 0;

    overflow: hidden;

    border-radius: 17px;

    background: var(--cream);
}

.gallery-large {
    grid-column: span 8;
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 8;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(16, 42, 65, 0.65)
        );
}

.gallery-item figcaption {
    position: absolute;
    right: 18px;
    bottom: 15px;
    left: 18px;
    z-index: 2;

    color: white;

    font-size: 0.84rem;
    font-weight: 850;

    letter-spacing: 0.06em;
}


/* ==================================================
   TRIAL
================================================== */

.trial {
    background: var(--sky);
}

.trial-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;

    align-items: center;

    gap: 70px;
}

.trial-content h2 {
    margin-bottom: 20px;

    font-size: clamp(2.4rem, 5vw, 4.3rem);

    letter-spacing: -0.045em;
}

.trial-content > p:not(.eyebrow) {
    max-width: 580px;

    color: var(--muted);
}

.trial-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 22px;

    margin-top: 28px;

    color: var(--navy);

    font-size: 0.84rem;
    font-weight: 800;
}

.trial-highlights > span {
    display: inline-flex;
    gap: 6px;
}

.trial-card {
    padding: 35px;

    border-radius: 22px;

    background: white;

    box-shadow: var(--shadow);
}

.trial-card-label {
    margin-bottom: 8px;

    color: var(--gold-dark);

    font-size: 0.65rem;
    font-weight: 850;

    letter-spacing: 0.17em;
}

.trial-card h3 {
    margin-bottom: 8px;

    font-size: 1.7rem;
}


/* CONTACT BUTTONS */

.contact-buttons {
    display: grid;
    gap: 13px;

    margin-top: 24px;
}

.contact-button {
    width: 100%;
    min-height: 82px;

    display: grid;
    grid-template-columns: 52px 1fr auto;

    align-items: center;

    gap: 17px;

    padding: 13px 20px;

    border: 0;
    border-radius: 16px;

    text-align: left;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-button:hover {
    transform: translateY(-3px);
}

.contact-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    font-size: 1.15rem;
}

.contact-button-content {
    display: flex;
    flex-direction: column;
}

.contact-button small {
    font-size: 0.61rem;

    letter-spacing: 0.13em;

    opacity: 0.65;
}

.contact-button strong {
    font-size: 1rem;
}

.contact-detail {
    margin-top: 3px;

    font-size: 0.78rem;

    opacity: 0.72;
}

.contact-arrow {
    font-size: 1.25rem;
}

.text-coach {
    background: var(--navy);

    color: white;
}

.text-coach .contact-icon {
    background:
        rgba(255, 255, 255, 0.12);
}

.email-coach {
    border:
        1px solid rgba(211, 165, 47, 0.3);

    background: var(--cream);

    color: var(--navy);
}

.email-coach .contact-icon {
    background: white;

    color: var(--gold-dark);
}

.trial-note {
    margin-top: 18px;
    margin-bottom: 0;

    padding-top: 16px;

    border-top:
        1px solid var(--border);

    color: var(--muted);

    font-size: 0.82rem;
}


/* ==================================================
   FINAL CTA
================================================== */

.final-cta {
    padding: 68px 0;

    background: var(--gold);
}

.final-cta-inner {
    text-align: center;
}

.final-cta p {
    margin-bottom: 9px;

    color: rgba(16, 42, 65, 0.72);

    font-size: 0.68rem;
    font-weight: 900;

    letter-spacing: 0.17em;
}

.final-cta h2 {
    margin-bottom: 25px;

    font-size: clamp(2.3rem, 5vw, 4rem);

    letter-spacing: -0.04em;
}


/* ==================================================
   FOOTER
================================================== */

.site-footer {
    padding-top: 58px;

    background: var(--navy-dark);

    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.6fr 0.8fr 0.8fr 0.9fr;

    gap: 45px;
}

.footer-logo .brand-mark {
    background: rgba(255, 255, 255, 0.08);
}

.footer-logo .brand-text strong {
    color: white;
}

.footer-brand > p {
    max-width: 310px;

    margin-top: 20px;

    font-size: 0.86rem;
}

.footer-location {
    color: rgba(255, 255, 255, 0.48);
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 9px;
}

.footer-column h3 {
    margin-bottom: 7px;

    color: white;

    font-size: 0.76rem;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.63);

    font-size: 0.82rem;
}

.footer-column a:hover {
    color: var(--gold-light);
}

.social-placeholder {
    color: rgba(255, 255, 255, 0.48);

    font-size: 0.8rem;
}

.footer-bottom {
    margin-top: 45px;

    padding: 20px 0;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);

    font-size: 0.75rem;
}


/* ==================================================
   CONTACT MODALS
================================================== */

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;
}

.contact-modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(16, 42, 65, 0.64);

    backdrop-filter: blur(6px);
}

.modal-card {
    position: relative;
    z-index: 1;

    width: min(100%, 560px);
    max-height: 90vh;

    overflow-y: auto;

    padding: 44px;

    border-radius: 26px;

    background: var(--ivory);

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.28);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    background: var(--cream);

    color: var(--navy);

    font-size: 1.7rem;

    cursor: pointer;
}

.modal-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    margin-bottom: 22px;

    border-radius: 50%;

    background: var(--gold);

    font-size: 1.4rem;
}

.modal-eyebrow {
    margin-bottom: 9px;

    color: var(--gold-dark);

    font-size: 0.68rem;
    font-weight: 850;

    letter-spacing: 0.18em;
}

.modal-card h2 {
    margin-bottom: 17px;

    font-size: clamp(2.1rem, 5vw, 3.2rem);
}

.modal-intro {
    color: var(--muted);
}

.modal-contact-info {
    margin-top: 25px;

    padding: 18px 20px;

    display: flex;
    flex-direction: column;

    border-radius: 14px;

    background: var(--sky);
}

.modal-contact-info span {
    color: var(--blue);

    font-size: 0.63rem;
    font-weight: 850;

    letter-spacing: 0.16em;
}

.modal-contact-info strong {
    color: var(--navy);

    font-size: 1.15rem;

    word-break: break-word;
}

.modal-help {
    margin-top: 25px;
}

.modal-help > strong {
    color: var(--navy);
}

.modal-help ul {
    margin-top: 10px;

    padding-left: 20px;

    color: var(--muted);
}

.suggested-message {
    margin-top: 24px;

    padding: 18px 20px;

    border-left:
        3px solid var(--gold);

    background: var(--cream);
}

.suggested-message span {
    color: var(--gold-dark);

    font-size: 0.62rem;
    font-weight: 850;

    letter-spacing: 0.15em;
}

.suggested-message p {
    margin-top: 7px;
    margin-bottom: 0;

    color: var(--muted);

    font-size: 0.9rem;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-top: 28px;
}

.modal-actions .button {
    width: 100%;

    border: 0;

    cursor: pointer;

    text-align: center;
}

.button-copy {
    background: white;

    color: var(--navy);

    border:
        1px solid rgba(23, 54, 82, 0.18) !important;
}


/* ==================================================
   CHINESE MODE
================================================== */

html[lang="zh-CN"] body {
    letter-spacing: 0;
}

html[lang="zh-CN"] .hero h1 {
    line-height: 1.15;
}

html[lang="zh-CN"] .hero-title-main,
html[lang="zh-CN"] .hero-title-gold {
    letter-spacing: -0.02em;
}

html[lang="zh-CN"] .section-heading h2,
html[lang="zh-CN"] .legacy-content h2,
html[lang="zh-CN"] .trial-content h2,
html[lang="zh-CN"] .final-cta h2 {
    line-height: 1.2;

    letter-spacing: -0.02em;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1050px) {

    .nav-links {
        gap: 15px;
    }

    .nav-links > a {
        font-size: 0.72rem;
    }

    .hero-content {
        width: 54%;
    }

    .journey-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 900px) {

    .legacy-grid,
    .trial-grid {
        gap: 45px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-column:last-child {
        grid-column: 2;
    }

}


@media (max-width: 780px) {

    .section {
        padding: 52px 0 58px;
    }


    /* MOBILE NAV */

    .menu-button {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 78px;
        right: 20px;
        left: 20px;

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 14px;

        border:
            1px solid rgba(23, 54, 82, 0.08);

        border-radius: 16px;

        background: var(--ivory);

        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links > a {
        padding: 12px 10px;

        font-size: 0.88rem;
    }

    .nav-links > a::after {
        display: none;
    }

    .nav-cta {
        margin-top: 6px;

        text-align: center;
    }

    .language-switcher {
        margin: 5px 0;

        padding: 9px 7px;

        border-top:
            1px solid var(--border);

        border-bottom:
            1px solid var(--border);
    }


    /* HERO */

    .hero,
    .hero-container {
        min-height: 620px;
    }

    .hero-image {
        background-position: 62% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(255, 253, 247, 0.98) 0%,
                rgba(255, 253, 247, 0.92) 48%,
                rgba(255, 253, 247, 0.30) 100%
            );
    }

    .hero-content {
        width: 68%;

        padding-top: 60px;
    }

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


    /* SECTIONS */

    .values-grid {
        grid-template-columns: 1fr;
    }

    .legacy-grid,
    .trial-grid {
        grid-template-columns: 1fr;
    }

    .legacy-image-wrap {
        max-width: 650px;
    }

    .legacy-badge {
        right: 20px;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }


    /* GALLERY */

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);

        grid-auto-rows: 230px;
    }

    .gallery-item,
    .gallery-large,
    .gallery-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-large {
        grid-column: span 2;
    }


    /* FOOTER */

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-column:last-child {
        grid-column: auto;
    }

}


@media (max-width: 600px) {

    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .section {
        padding: 45px 0 50px;
    }

    .nav-container {
        min-height: 70px;
    }

    .nav-links {
        top: 70px;
        right: 14px;
        left: 14px;
    }

    .brand-mark {
        width: 39px;
        height: 39px;
    }

    .brand-text strong {
        font-size: 0.94rem;
    }


    /* HERO */

    .hero,
    .hero-container {
        min-height: 610px;
    }

    .hero-image {
        background-position: 68% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(255, 253, 247, 0.98) 0%,
                rgba(255, 253, 247, 0.91) 55%,
                rgba(255, 253, 247, 0.46) 100%
            );
    }

    .hero-content {
        width: 82%;

        padding-top: 52px;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 12vw, 4rem);
    }

    html[lang="zh-CN"] .hero h1 {
        font-size: clamp(2.5rem, 11vw, 3.8rem);
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-buttons {
        align-items: flex-start;
        flex-direction: column;
    }


    /* JOURNEY */

    .journey-grid {
        grid-template-columns: 1fr;
    }


    /* LEGACY */

    .legacy-image-wrap img {
        height: 400px;
    }

    .legacy-badge {
        right: 12px;
        bottom: 15px;
    }


    /* GALLERY */

    .gallery-grid {
        grid-template-columns: 1fr;

        grid-auto-rows: 240px;
    }

    .gallery-item,
    .gallery-large,
    .gallery-wide {
        grid-column: span 1;
    }


    /* CONTACT */

    .trial-card {
        padding: 25px 20px;
    }

    .contact-button {
        grid-template-columns: 45px 1fr auto;

        gap: 12px;

        padding: 12px 14px;
    }

    .contact-icon {
        width: 43px;
        height: 43px;
    }


    /* MODAL */

    .modal-card {
        padding: 36px 24px 27px;
    }

    .modal-actions {
        grid-template-columns: 1fr;
    }


    /* FOOTER */

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

}

/* ==================================================
   GALLERY PAGE LINK
================================================== */

.gallery-more {
    margin-top: 30px;
    text-align: center;
}

.gallery-more .button {
    min-width: 220px;
}
