/* ==========================================================================
   Self-hosted fonts (@fontsource 5.3.0, latin subset).
   Google Fonts is unreachable from mainland China.
   ========================================================================== */

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-300-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
}

/* ==========================================================================
   Jade Dragon DMC — IMEX 2026 one-page redesign
   Mobile first. No framework: plain CSS, loaded once.
   ========================================================================== */

:root {
    --ink: #0F172A;
    --ink-soft: #475569;        /* body copy on ivory (7.5:1) */
    --jade: #064E3B;
    --jade-deep: #0F2E25;
    --gold: #B89B5E;            /* decorative on light, text only on dark */
    --ivory: #F8FAFC;
    --white: #FFFFFF;
    --line: rgba(15, 23, 42, 0.12);
    --line-light: rgba(248, 250, 252, 0.18);
    --error: #B91C1C;

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --gutter: 1.25rem;
    --section-y: 4.5rem;
    --header-h: 4rem;
}

@media (min-width: 768px) {
    :root {
        --gutter: 2.5rem;
        --section-y: 7rem;
        --header-h: 5rem;
    }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.15;
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: inherit;
}

::selection {
    background: var(--jade);
    color: var(--white);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-y);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    background: var(--ink);
    color: var(--ivory);
    font-size: 0.875rem;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* ---------- Shared typography ---------- */

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--jade);
}

.section-title {
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--ink);
}

.section-intro {
    margin-top: 1.25rem;
    max-width: 40rem;
    color: var(--ink-soft);
    font-weight: 300;
    font-size: 1.0625rem;
}

.rule {
    width: 3rem;
    height: 1px;
    margin: 1.75rem 0 0;
    border: 0;
    background: var(--gold);
}

.todo {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border: 1px dashed var(--error);
    color: var(--error);
    font-family: var(--sans);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Neutral block standing in for a photo that does not exist yet */
.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        repeating-linear-gradient(135deg, transparent 0 14px, rgba(15, 23, 42, 0.035) 14px 15px),
        #E7E9E4;
    color: var(--ink-soft);
    font-size: 0.8125rem;
    text-align: center;
    line-height: 1.5;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: 3rem;
    padding: 0.875rem 1.75rem;
    border: 1px solid transparent;
    border-radius: 0;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
    background: var(--jade);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--jade-deep);
}

.btn-dark {
    background: var(--ink);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--jade);
}

.btn-outline {
    border-color: var(--ink);
    color: var(--ink);
    background: transparent;
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--white);
}

.btn[disabled] {
    opacity: 0.6;
    cursor: wait;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 250, 252, 0.94);
    border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(8px)) {
    .site-header {
        background: rgba(248, 250, 252, 0.82);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--ink);
}

.brand img {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
}

.brand-name {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.site-nav ul {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    transition: color 0.3s ease;
}

.site-nav a:hover {
    color: var(--jade);
}

.header-cta {
    min-height: 2.5rem;
    padding: 0.625rem 1rem;
}

/* Very narrow phones (320–359px): keep brand and button on one line */
@media (max-width: 359px) {
    .brand-name {
        font-size: 1.0625rem;
    }
    .header-cta {
        padding-inline: 0.75rem;
        letter-spacing: 0.12em;
    }
}

@media (min-width: 960px) {
    .site-nav {
        display: flex;
        align-items: center;
        gap: 2.5rem;
    }
    .site-nav ul {
        display: flex;
        gap: 2rem;
    }
}

/* === SECTIONS === */

/* ---------- Hero ---------- */

.btn-gold {
    background: var(--gold);
    color: var(--ink);
}

.btn-gold:hover {
    background: var(--ivory);
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100svh - var(--header-h));
    padding-block: 3.5rem;
    overflow: hidden;
    background: var(--jade-deep);
    color: var(--ivory);
    text-align: center;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 46, 37, 0.78) 100%);
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 8.5rem;
    height: auto;
    margin-bottom: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero-title {
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hero-lead {
    max-width: 36rem;
    margin: 1.5rem 0 2.5rem;
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(248, 250, 252, 0.9);
}

@media (min-width: 768px) {
    .hero-logo {
        width: 11rem;
    }
    .hero-lead {
        font-size: 1.25rem;
    }
}

/* ---------- Why Jade Dragon ---------- */

.why {
    background: var(--white);
}

.pillars {
    display: grid;
    gap: 2.75rem;
    margin-top: 3rem;
}

.pillar {
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.pillar-index {
    display: block;
    margin-bottom: 0.75rem;
    font-family: var(--serif);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--gold);
}

.pillar h3 {
    font-size: 1.75rem;
    margin-bottom: 0.875rem;
}

.pillar p {
    color: var(--ink-soft);
    font-weight: 300;
}

/* ---------- Signature Programs ---------- */

.cards {
    display: grid;
    gap: 1.75rem;
    margin-top: 3rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
}

.card-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #E7E9E4;        /* shown while the lazy image loads */
}

.card-body {
    padding: 1.75rem 1.5rem 2rem;
}

.card-meta {
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--jade);
}

.card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.875rem;
}

.card-body > p:last-child {
    color: var(--ink-soft);
    font-weight: 300;
}

.programs-note {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.375rem;
    font-style: italic;
    color: var(--ink);
    text-align: center;
}

@media (min-width: 900px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 4rem;
    }
}

/* ---------- Recently delivered ---------- */

.delivered {
    background: var(--jade-deep);
    color: var(--ivory);
}

.delivered-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 3rem;
    background: rgba(248, 250, 252, 0.08);
}

@media (min-width: 768px) {
    .delivered-photo {
        margin-bottom: 4rem;
    }
}

.delivered .eyebrow {
    color: var(--gold);
}

.delivered .section-title {
    color: var(--ivory);
}

.delivered-list {
    display: grid;
    gap: 0;
    margin: 3rem 0 0;
    padding: 0;
    list-style: none;
}

.delivered-list li {
    display: grid;
    gap: 0.375rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line-light);
}

.delivered-list li:last-child {
    border-bottom: 1px solid var(--line-light);
}

.delivered-figure {
    font-family: var(--serif);
    font-size: 2rem;
    line-height: 1.1;
    color: var(--gold);
}

.delivered-text {
    font-weight: 300;
    color: rgba(248, 250, 252, 0.88);
}

.delivered-note {
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: rgba(248, 250, 252, 0.7);
}

@media (min-width: 768px) {
    .delivered-list {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 3rem;
    }
    .delivered-list li:nth-last-child(2) {
        border-bottom: 1px solid var(--line-light);
    }
}

/* ---------- Moments in Yunnan (gallery, no JS) ---------- */

.gallery {
    background: var(--white);
}

/* Mobile: horizontal strip with scroll-snap, bleeding to the screen edges */
.gallery-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    gap: 0.875rem;
    margin: 3rem calc(-1 * var(--gutter)) 0;
    padding: 0 var(--gutter) 0.75rem;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}

.gallery-strip li {
    scroll-snap-align: start;
}

.gallery-strip img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #E7E9E4;
}

@media (min-width: 600px) {
    .gallery-strip {
        grid-auto-columns: 40%;
    }
}

/* Desktop: five columns, no scrolling */
@media (min-width: 960px) {
    .gallery-strip {
        grid-auto-flow: row;
        grid-template-columns: repeat(5, 1fr);
        grid-auto-columns: auto;
        gap: 1rem;
        margin: 4rem 0 0;
        padding: 0;
        overflow: visible;
        scroll-snap-type: none;
    }
}

/* ---------- About ---------- */

.about {
    background: var(--ivory);
}

.about-grid {
    display: grid;
    gap: 2.5rem;
}

/* 266×266 source: shown at 160px at most, never upscaled */
.about-photo {
    width: 160px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #E7E9E4;
}

.about-cn {
    display: block;
    margin-top: 0.5rem;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    font-size: 0.55em;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
}

.about-role {
    margin-top: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--jade);
}

.about-text > p:not(.about-role) {
    margin-top: 1.25rem;
    max-width: 36rem;
    color: var(--ink-soft);
    font-weight: 300;
    font-size: 1.0625rem;
}

.about-text .about-license {
    padding-left: 1rem;
    border-left: 2px solid var(--gold);
    color: var(--ink);
    font-weight: 400;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 160px minmax(0, 40rem);
        justify-content: center;
        align-items: start;
        gap: 3.5rem;
    }
    .about-photo {
        margin-top: 0.5rem;
    }
}

/* ---------- Contact ---------- */

.contact {
    background: var(--white);
    border-top: 1px solid var(--line);
}

.contact-grid {
    display: grid;
    gap: 3.5rem;
}

.contact-list {
    display: grid;
    gap: 1.25rem;
    margin: 2rem 0 2.25rem;
}

.contact-list dt {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.contact-list dd {
    margin: 0.125rem 0 0;
    font-family: var(--serif);
    font-size: 1.5rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.contact-list a {
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: var(--jade);
}

.contact-form-wrap {
    padding: 2rem 1.25rem;
    background: var(--ivory);
    border: 1px solid var(--line);
}

.form-title {
    font-size: 1.875rem;
}

.form-intro {
    margin: 0.875rem 0 2rem;
    color: var(--ink-soft);
    font-weight: 300;
}

.form {
    display: grid;
    gap: 1.75rem;
}

.form-row {
    display: grid;
    gap: 1.75rem;
}

.field {
    position: relative;
    display: flex;
    flex-direction: column;
}

.field label {
    margin-bottom: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.5rem 0;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.35);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;           /* 16px avoids zoom on iOS */
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.3s ease;
}

.field textarea {
    resize: vertical;
}

.field input::placeholder {
    color: rgba(15, 23, 42, 0.45);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--jade);
    box-shadow: 0 1px 0 0 var(--jade);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.field-select select {
    padding-right: 1.75rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230F172A' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.25rem center;
}

.form-submit {
    width: 100%;
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    .form-submit {
        width: auto;
        justify-self: start;
        padding-inline: 3rem;
    }
    .contact-form-wrap {
        padding: 2.75rem;
    }
}

@media (min-width: 960px) {
    .contact-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 5rem;
        align-items: start;
    }
}

/* ---------- Footer ---------- */

.site-footer {
    padding-block: 3rem;
    background: var(--ink);
    color: rgba(248, 250, 252, 0.72);
    text-align: center;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
}

.footer-logo {
    width: 4.5rem;
    height: auto;
    margin: 0 auto 1.5rem;
}

/* ---------- Thank-you page ---------- */

.page-thanks {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
}

.thanks {
    flex: 1;
    display: flex;
    align-items: center;
    padding-block: var(--section-y);
    text-align: center;
}

.thanks-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 40rem;
}

.thanks-logo {
    width: 6rem;
    height: auto;
    margin-bottom: 2rem;
}

.thanks .rule {
    margin-inline: auto;
}

.thanks-lead {
    margin-top: 1.75rem;
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--ink);
}

.thanks-direct {
    margin-top: 1rem;
    color: var(--ink-soft);
    font-weight: 300;
}

.thanks-direct a {
    color: var(--ink);
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}

.thanks-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (min-width: 768px) {
    .pillars {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        margin-top: 4rem;
    }
}

/* Le bouton Contact de l'en-tête héritait de la couleur des liens du menu */
.site-nav a.btn-dark,
.site-nav a.btn-dark:hover {
    color: var(--white);
}
