/* ===================================================================
   Dunglina Spa — refined luxury theme
   Aesthetic: warm, editorial, quietly opulent. Cream paper, bronze ink,
   gold hairlines. Matched to the printed spa menu, elevated for the web.
   =================================================================== */

:root {
    --cream:     #F4EADA;   /* page paper */
    --cream-2:   #FBF5E9;   /* lighter section */
    --cream-3:   #ECDDC4;   /* deeper panel */
    --card:      #FFFDF8;   /* card surface */
    --ink:       #271809;   /* deep espresso */
    --brown:     #3A2917;   /* headings */
    --text:      #5C4B36;   /* body copy */
    --text-soft: #8A7559;   /* muted copy */
    --bronze:    #A57A49;   /* accent */
    --bronze-d:  #6B4F2E;   /* badges, strong accent */
    --gold:      #BE9A5A;   /* luminous accent */
    --gold-soft: #E2CD98;   /* hairline gold */
    --line:      #E0CEAA;   /* hairline rule */

    --serif:  'Cormorant Garamond', 'Times New Roman', serif;
    --script: 'Dancing Script', cursive;
    --sans:   'Be Vietnam Pro', system-ui, -apple-system, Segoe UI, sans-serif;

    --nav-h: 68px;
    --ease: cubic-bezier(.22, .68, .28, 1);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-weight: 400;
    color: var(--text);
    background: var(--cream);
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* paper grain — barely-there warmth over everything */
body::before {
    content: "";
    position: fixed; inset: 0; z-index: 1;
    pointer-events: none; opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: #fff; }

a { color: var(--bronze-d); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--bronze); }

h1, h2, h3 {
    font-family: var(--serif); color: var(--brown);
    margin: 0; font-weight: 600; letter-spacing: .2px;
}

/* refined scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--cream-3); }
::-webkit-scrollbar-thumb {
    background: var(--bronze); border-radius: 6px;
    border: 3px solid var(--cream-3);
}

/* ---------- Boot / loading ---------- */
.boot { text-align: center; padding-top: 17vh; position: relative; z-index: 2; }
.boot-mono {
    width: 84px; height: 84px; margin: 0 auto;
    border: 1px solid var(--gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 2.1rem; font-weight: 600;
    color: var(--bronze-d); letter-spacing: 2px;
    box-shadow: inset 0 0 0 5px var(--cream), inset 0 0 0 6px var(--gold-soft);
}
.boot-name {
    font-family: var(--serif); font-size: 1.65rem; font-weight: 600;
    color: var(--brown); margin-top: .7rem; letter-spacing: 1.5px;
}
.loading-progress {
    position: relative; display: block; width: 5.5rem; height: 5.5rem;
    margin: 1.5rem auto .3rem;
}
.loading-progress circle {
    fill: none; stroke: var(--line); stroke-width: .35rem;
    transform-origin: 50% 50%; transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: var(--gold);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray .15s ease-in-out;
}
.loading-progress-text {
    font-size: .78rem; color: var(--text-soft);
    letter-spacing: 2px; text-transform: uppercase;
}
.loading-progress-text:after { content: var(--blazor-load-percentage-text, "Đang tải"); }

/* ---------- Navigation ---------- */
.nav {
    position: sticky; top: 0; z-index: 40;
    background: rgba(251, 245, 233, .92);
    backdrop-filter: blur(10px) saturate(1.2);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: 1180px; margin: 0 auto; height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.3rem; gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.nav-mono {
    width: 40px; height: 40px; border: 1px solid var(--gold);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-weight: 600; color: var(--bronze-d);
    font-size: 1.1rem; letter-spacing: 1px;
    box-shadow: inset 0 0 0 3px var(--cream-2), inset 0 0 0 4px var(--gold-soft);
}
.nav-brandtext {
    font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
    color: var(--brown); letter-spacing: .6px;
}
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links > a {
    font-size: .82rem; color: var(--text); white-space: nowrap;
    letter-spacing: .3px; padding: .3rem 0; position: relative;
}
.nav-links > a::after {
    content: ""; position: absolute; left: 50%; right: 50%; bottom: -2px;
    height: 1.5px; background: var(--gold);
    transition: left .28s var(--ease), right .28s var(--ease);
}
.nav-links > a:hover { color: var(--bronze-d); }
.nav-links > a:hover::after { left: 0; right: 0; }

.nav-lang {
    display: inline-flex; border: 1px solid var(--line);
    border-radius: 999px; overflow: hidden; margin-left: .2rem; background: var(--cream);
}
.nav-lang button {
    border: 0; background: transparent; cursor: pointer;
    font-family: var(--sans); font-size: .76rem; font-weight: 600;
    letter-spacing: .8px; color: var(--text-soft); padding: .34rem .72rem;
    transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-lang button.on { background: var(--bronze-d); color: var(--cream-2); }

.nav-burger {
    display: none; flex-direction: column; gap: 4.5px;
    background: transparent; border: 0; cursor: pointer; padding: .4rem;
}
.nav-burger span {
    width: 24px; height: 1.6px; background: var(--bronze-d); border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative; text-align: center; overflow: hidden;
    padding: 5rem 1.3rem 4.5rem;
    background:
        radial-gradient(ellipse 60% 50% at 50% -5%, rgba(190,154,90,.22), transparent 70%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(190,154,90,.14), transparent 70%),
        var(--cream);
}
.hero-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 2; }
.hero-mono {
    width: 96px; height: 96px; margin: 0 auto 1.4rem;
    border: 1px solid var(--gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-weight: 600; font-size: 2.6rem;
    color: var(--bronze-d); letter-spacing: 2px;
    box-shadow: inset 0 0 0 6px var(--cream), inset 0 0 0 7px var(--gold-soft);
}
.hero-name {
    font-size: clamp(3rem, 8vw, 4.8rem); font-weight: 600;
    line-height: 1.04; letter-spacing: .5px; color: var(--brown);
}
.hero-tagline {
    font-family: var(--script); font-size: clamp(1.6rem, 4.4vw, 2.3rem);
    color: var(--bronze); margin: .25rem 0 1.1rem; font-weight: 600;
}
.hero-intro {
    font-size: 1.04rem; margin: 0 auto 1.9rem; max-width: 540px; color: var(--text);
}
.hero-cta { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }
.hero-photo {
    position: relative; margin: 2.6rem auto 0; max-width: 360px;
    border-radius: 220px 220px 16px 16px; overflow: hidden;
    box-shadow: 0 24px 50px rgba(39, 24, 9, .26);
}
.hero-photo img { width: 100%; display: block; }
.hero-photo::after {
    content: ""; position: absolute; inset: 9px;
    border: 1px solid rgba(255, 253, 248, .65);
    border-radius: 210px 210px 9px 9px; pointer-events: none;
}
.hero-where {
    margin-top: 1.9rem; font-size: .82rem; color: var(--text-soft);
    letter-spacing: .4px;
}

/* ---------- Buttons ---------- */
.btn {
    position: relative; display: inline-block; overflow: hidden;
    padding: .82rem 1.9rem; border: 0; border-radius: 999px;
    font-family: var(--sans); font-size: .82rem; font-weight: 600;
    letter-spacing: 1.3px; text-transform: uppercase; cursor: pointer;
    background: transparent;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn-solid {
    background: linear-gradient(135deg, #7A5A33, var(--bronze-d));
    color: var(--cream-2); box-shadow: 0 10px 24px rgba(107, 79, 46, .35);
}
.btn-solid::before {
    content: ""; position: absolute; top: 0; left: -120%;
    width: 60%; height: 100%; transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
    transition: left .6s var(--ease);
}
.btn-solid:hover { color: #fff; box-shadow: 0 14px 30px rgba(107, 79, 46, .45); }
.btn-solid:hover::before { left: 130%; }
.btn-ghost {
    border: 1px solid var(--bronze); color: var(--bronze-d);
    background: transparent;
}
.btn-ghost:hover { background: var(--bronze-d); color: var(--cream-2); border-color: var(--bronze-d); }

/* ---------- Section ---------- */
.section { position: relative; padding: 4.6rem 1.3rem; overflow: hidden; }
.section.tint { background: var(--cream-2); }
.section::before {
    content: ""; position: absolute; width: 460px; height: 460px;
    top: -180px; right: -160px; pointer-events: none;
    background: radial-gradient(circle, rgba(190,154,90,.13), transparent 68%);
}
.section:nth-of-type(even)::before { right: auto; left: -160px; top: auto; bottom: -180px; }
.section-inner { max-width: 1080px; margin: 0 auto; position: relative; z-index: 2; }

/* ---------- Section header ---------- */
.sec-head { text-align: center; margin-bottom: 2.6rem; }
.sec-script {
    font-family: var(--script); font-size: 1.55rem; font-weight: 600;
    color: var(--bronze); display: block; line-height: 1;
}
.sec-title {
    font-size: clamp(2rem, 5vw, 3rem); font-weight: 600;
    margin-top: .1rem; line-height: 1.1;
}
.sec-duration {
    display: inline-block; margin-top: .7rem; padding: .26rem 1.1rem;
    border: 1px solid var(--line); color: var(--bronze-d);
    border-radius: 999px; font-size: .74rem; font-weight: 600;
    letter-spacing: 1.5px; background: var(--cream);
}
.sec-subtitle { margin: .7rem auto 0; max-width: 540px; font-size: .98rem; }
.sec-rule {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; margin: 1.15rem auto 0;
}
.sec-rule::before, .sec-rule::after {
    content: ""; width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.sec-rule::after { transform: scaleX(-1); }
.sec-rule span { color: var(--gold); font-size: 1.05rem; }

/* ---------- Group ---------- */
.group { margin-bottom: 2.2rem; }
.group:last-child { margin-bottom: 0; }
.group-label {
    display: inline-flex; align-items: center; gap: .55rem;
    margin-bottom: 1.15rem; color: var(--bronze-d);
    font-size: .78rem; font-weight: 600; letter-spacing: 2.5px;
    text-transform: uppercase;
}
.group-label::before {
    content: ""; width: 26px; height: 1px; background: var(--gold);
}
.cards {
    display: grid; gap: 1.15rem;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

/* ---------- Card ---------- */
.card {
    position: relative; background: var(--card);
    border: 1px solid var(--line); border-radius: 4px;
    padding: 1.35rem 1.4rem;
    box-shadow: 0 6px 18px rgba(39, 24, 9, .06);
    display: flex; flex-direction: column;
    transition: transform .38s var(--ease), box-shadow .38s var(--ease),
                border-color .38s var(--ease);
}
.card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px; background: var(--gold-soft);
    transition: background .38s var(--ease);
}
.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 42px rgba(39, 24, 9, .15);
    border-color: var(--gold);
}
.card:hover::before { background: var(--gold); }
.card-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: .8rem; flex-wrap: wrap;
}
.card-name {
    font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
    line-height: 1.28; color: var(--brown); flex: 1 1 58%;
}
.card-prices { display: flex; flex-wrap: wrap; gap: .42rem; }
.badge {
    display: inline-flex; align-items: baseline; gap: .4rem;
    background: linear-gradient(135deg, #7A5A33, var(--bronze-d));
    color: var(--cream-2); border-radius: 999px;
    padding: .32rem .82rem; white-space: nowrap;
    box-shadow: 0 3px 9px rgba(107, 79, 46, .28);
}
.badge-meta {
    font-size: .66rem; letter-spacing: .6px; opacity: .82;
    text-transform: uppercase;
}
.badge-price {
    font-family: var(--serif); font-size: 1.08rem; font-weight: 600;
}
.card-note {
    margin: .85rem 0 0; font-size: .9rem; font-style: italic;
    color: var(--text-soft); line-height: 1.6;
}
.card-steps {
    margin: .95rem 0 0; padding: 0; list-style: none;
    columns: 2; column-gap: 1.6rem;
}
.card-steps li {
    font-size: .87rem; padding-left: 1.1rem; position: relative;
    margin-bottom: .26rem; break-inside: avoid; color: var(--text);
}
.card-steps li::before {
    content: "\2666"; color: var(--gold);
    position: absolute; left: 0; font-size: .62rem; top: .2rem;
}
.card-perks {
    margin-top: .95rem; padding-top: .8rem; border-top: 1px dashed var(--line);
    display: flex; flex-direction: column; gap: .3rem;
}
.perk { font-size: .85rem; font-style: italic; color: var(--bronze-d); }
.perk::first-letter { color: var(--gold); }

/* ---------- Section & gallery photos ---------- */
.sec-photo {
    position: relative; margin: 0 auto 2.4rem; max-width: 900px;
    aspect-ratio: 23 / 10; border-radius: 6px; overflow: hidden;
    box-shadow: 0 16px 36px rgba(39, 24, 9, .18);
}
.sec-photo::after {
    content: ""; position: absolute; inset: 10px;
    border: 1px solid rgba(255, 253, 248, .55);
    border-radius: 3px; pointer-events: none;
}
.sec-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sec-photo.compact { max-width: 470px; aspect-ratio: 3 / 2; }

.gallery {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.05rem; margin: 1.8rem 0 .4rem;
}
.gallery img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
    border-radius: 6px; box-shadow: 0 8px 20px rgba(39, 24, 9, .14);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.gallery img:hover {
    transform: scale(1.035) translateY(-3px);
    box-shadow: 0 16px 32px rgba(39, 24, 9, .22);
}

/* ---------- Price tables ---------- */
.tables {
    display: grid; gap: 1.7rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin-bottom: 2rem;
}
.ptable {
    background: var(--card); border: 1px solid var(--line);
    border-radius: 4px; overflow: hidden;
    box-shadow: 0 6px 18px rgba(39, 24, 9, .07);
}
.ptable-cap {
    background: linear-gradient(135deg, var(--bronze), var(--bronze-d));
    color: var(--cream-2); font-family: var(--serif);
    font-size: 1.35rem; font-weight: 600; letter-spacing: 1px;
    text-align: center; padding: .6rem;
}
.ptable table { width: 100%; border-collapse: collapse; }
.ptable th {
    background: var(--cream-3); color: var(--bronze-d);
    font-size: .7rem; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; padding: .6rem .6rem; text-align: center;
}
.ptable td {
    padding: .58rem .6rem; text-align: center; font-size: .9rem;
    border-bottom: 1px solid var(--cream-3);
}
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tbody tr { transition: background .2s var(--ease); }
.ptable tbody tr:hover { background: var(--cream-2); }
.ptable .ptable-label {
    text-align: left; font-weight: 600; color: var(--brown);
    font-family: var(--serif); font-size: 1rem;
}

/* ---------- Price note ---------- */
.price-note {
    max-width: 680px; margin: 0 auto; padding: 2rem 1.3rem 0;
    text-align: center; font-size: .82rem; font-style: italic;
    color: var(--text-soft); line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact-note {
    text-align: center; max-width: 540px; margin: 0 auto 2rem;
    font-size: 1rem;
}
.contact-grid {
    display: grid; gap: 1.05rem; max-width: 780px; margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.contact-item {
    background: var(--card); border: 1px solid var(--line);
    border-radius: 4px; padding: 1.15rem 1.3rem;
    display: flex; flex-direction: column; gap: .3rem;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(39, 24, 9, .12);
}
.contact-k {
    font-size: .68rem; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--bronze);
}
.contact-v { font-size: .96rem; color: var(--text); }
.contact .hero-cta { margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    background:
        radial-gradient(ellipse 50% 80% at 50% 0%, rgba(190,154,90,.16), transparent 70%),
        var(--ink);
    color: var(--cream);
}
.footer-inner {
    max-width: 760px; margin: 0 auto; padding: 3.2rem 1.3rem;
    text-align: center; position: relative; z-index: 2;
}
.footer-logo {
    font-family: var(--serif); font-size: 1.9rem; font-weight: 600;
    color: var(--cream-2); letter-spacing: 1px;
}
.footer-tag {
    font-family: var(--script); font-size: 1.4rem;
    color: var(--gold); margin: .35rem 0 1.3rem; font-weight: 600;
}
.footer-contact { font-size: .85rem; opacity: .82; margin: .35rem 0; line-height: 1.7; }
.footer-contact a { color: var(--gold-soft); }
.footer-copy {
    font-size: .72rem; opacity: .5; margin-top: 1.4rem;
    letter-spacing: 1.5px; text-transform: uppercase;
}

/* ---------- Blazor error UI ---------- */
#blazor-error-ui {
    background: var(--bronze-d); color: var(--cream-2);
    bottom: 0; box-shadow: 0 -2px 10px rgba(0,0,0,.3);
    display: none; left: 0; padding: .85rem 1.3rem; position: fixed;
    width: 100%; z-index: 1000; font-size: .88rem;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1.1rem; top: .75rem; }
#blazor-error-ui .reload { color: var(--gold-soft); }

/* ===================================================================
   Motion — page-load choreography + scroll-reveal (CSS-only)
   =================================================================== */
@media (prefers-reduced-motion: no-preference) {

    /* hero: staggered entrance */
    .hero-inner > * { animation: heroRise .9s var(--ease) both; }
    .hero-mono    { animation: heroRise .9s var(--ease) .05s both,
                                monoGlow 5s ease-in-out 1.4s infinite; }
    .hero-name    { animation-delay: .16s; }
    .hero-tagline { animation-delay: .27s; }
    .hero-intro   { animation-delay: .38s; }
    .hero-cta     { animation-delay: .49s; }
    .hero-photo   { animation-delay: .60s; }
    .hero-where   { animation-delay: .70s; }

    /* hero photo: slow Ken Burns drift */
    .hero-photo img { animation: kenburns 24s ease-in-out 1.6s infinite alternate; }

    /* nav gains a shadow as the page scrolls */
    @supports (animation-timeline: scroll()) {
        .nav { animation: navLift linear both; animation-timeline: scroll(root); animation-range: 0 90px; }
    }

    /* scroll-reveal for content blocks */
    @supports (animation-timeline: view()) {
        .sec-head, .sec-photo, .group-label, .card,
        .ptable, .gallery img, .price-note, .contact-item {
            animation: revealUp .85s var(--ease) both;
            animation-timeline: view();
            animation-range: entry 0% entry 32%;
        }
    }
}

@keyframes heroRise {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes revealUp {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes navLift {
    to { box-shadow: 0 8px 28px rgba(39, 24, 9, .14); }
}
@keyframes kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.075); }
}
@keyframes monoGlow {
    0%, 100% { box-shadow: inset 0 0 0 6px var(--cream), inset 0 0 0 7px var(--gold-soft),
                           0 0 0 0 rgba(190, 154, 90, 0); }
    50%      { box-shadow: inset 0 0 0 6px var(--cream), inset 0 0 0 7px var(--gold-soft),
                           0 0 26px 5px rgba(190, 154, 90, .42); }
}
@keyframes tickPop {
    from { transform: scale(0); }
    60%  { transform: scale(1.18); }
    to   { transform: scale(1); }
}

/* ===================================================================
   Scroll-progress bar — a thin gold meter across the very top
   =================================================================== */
.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
    transform: scaleX(0); transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--bronze));
}
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: scroll()) {
        .scroll-progress {
            animation: scrollProg linear both;
            animation-timeline: scroll(root);
        }
    }
}
@keyframes scrollProg { to { transform: scaleX(1); } }

/* ===================================================================
   Booking modal
   =================================================================== */
.modal-root {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center;
    padding: 1.3rem; opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
}
.modal-root.open { opacity: 1; visibility: visible; }
.modal-overlay {
    position: absolute; inset: 0;
    background: rgba(39, 24, 9, .56);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.modal-dialog {
    position: relative; z-index: 2;
    width: min(560px, 100%); max-height: 90vh; overflow-y: auto;
    background: var(--cream-2);
    border: 1px solid var(--gold-soft); border-radius: 8px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 32px 72px rgba(39, 24, 9, .5);
    transform: translateY(48px) scale(.95); opacity: 0;
    transition: transform .45s var(--ease), opacity .4s var(--ease);
}
.modal-root.open .modal-dialog { transform: translateY(0) scale(1); opacity: 1; }
.modal-x {
    position: absolute; top: .7rem; right: 1rem;
    background: transparent; border: 0; cursor: pointer;
    font-size: 1.8rem; line-height: 1; color: var(--bronze-d);
    transition: color .2s var(--ease), transform .2s var(--ease);
}
.modal-x:hover { color: var(--bronze); transform: rotate(90deg); }
.modal-script {
    font-family: var(--script); font-size: 1.4rem; color: var(--bronze);
    display: block; text-align: center; line-height: 1;
}
.modal-title {
    font-family: var(--serif); font-size: 2rem; font-weight: 600;
    text-align: center; margin-top: .1rem;
}
.modal-intro {
    text-align: center; font-size: .92rem; color: var(--text);
    margin: .55rem auto 1.4rem; max-width: 410px;
}
.modal-calls { display: flex; gap: .7rem; }
.modal-calls .btn { flex: 1; text-align: center; padding: .8rem 1rem; }
.modal-or {
    display: flex; align-items: center; gap: .85rem;
    margin: 1.35rem 0 1.1rem; color: var(--text-soft);
    font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px;
}
.modal-or::before, .modal-or::after {
    content: ""; flex: 1; height: 1px; background: var(--line);
}
.modal-form { display: flex; flex-direction: column; gap: .85rem; }
.modal-row { display: flex; gap: .85rem; }
.modal-row > label { flex: 1; min-width: 0; }
.modal-form label { display: flex; flex-direction: column; gap: .32rem; }
.modal-form label > span {
    font-size: .73rem; font-weight: 600; color: var(--bronze-d);
    letter-spacing: .5px;
}
.modal-form input, .modal-form select, .modal-form textarea {
    font-family: var(--sans); font-size: .92rem; color: var(--text);
    background: var(--card); border: 1px solid var(--line);
    border-radius: 4px; padding: .62rem .72rem; width: 100%;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.modal-form textarea { resize: vertical; }
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(190, 154, 90, .18);
}
.modal-submit { margin-top: .4rem; width: 100%; }
.modal-submit:disabled { opacity: .6; cursor: progress; }
.modal-err {
    color: #9C3B2E; font-size: .85rem; margin: 0;
    background: #F6E3DC; border-radius: 4px; padding: .5rem .7rem;
}
.modal-done { text-align: center; padding: 1.4rem 0 .6rem; }
.modal-tick {
    width: 66px; height: 66px; margin: 0 auto 1rem;
    border-radius: 50%; background: var(--gold); color: #fff;
    font-size: 2rem; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(190, 154, 90, .45);
    animation: tickPop .55s var(--ease) both;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav-burger { display: flex; }
    .nav-brandtext { font-size: 1.15rem; }
    .nav-links {
        position: absolute; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--cream-2); border-bottom: 1px solid var(--line);
        padding: .3rem 0; display: none;
        box-shadow: 0 14px 30px rgba(39, 24, 9, .12);
    }
    .nav-links.open { display: flex; }
    .nav-links > a { padding: .82rem 1.5rem; border-bottom: 1px solid var(--line); }
    .nav-links > a::after { display: none; }
    .nav-links > a:hover { background: var(--cream); }
    .nav-lang { margin: .7rem 1.5rem; align-self: flex-start; }
    .card-steps { columns: 1; }
    .gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    /* legibility on phones — make prices prominent */
    .badge { padding: .46rem 1rem; }
    .badge-meta { font-size: .75rem; opacity: .9; }
    .badge-price { font-size: 1.25rem; }

    /* price tables: bigger text, horizontal scroll if needed */
    .ptable { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .ptable td { font-size: 1rem; padding: .72rem .58rem; }
    .ptable th { font-size: .78rem; padding: .72rem .58rem; letter-spacing: .8px; }
    .ptable .ptable-label { font-size: 1.08rem; }

    /* a bit more breathing room around card prices */
    .card-name { font-size: 1.22rem; }
    .card-prices { gap: .55rem; }
}

@media (max-width: 500px) {
    .section { padding: 3.2rem 1rem; }
    .hero { padding: 3.6rem 1rem 3.4rem; }
    .card-top { flex-direction: column; }
    .gallery { grid-template-columns: 1fr; }
    .modal-row { flex-direction: column; gap: .85rem; }
    .modal-dialog { padding: 2.2rem 1.3rem 1.5rem; }
    .modal-calls { flex-direction: column; }
}
