/* =========================================================
   ARASO RESTORAN TERAPUNG
   ENHANCEMENTS.CSS  ·  Premium Polish Layer
   Purely visual & UX refinements — palette untouched.
   ========================================================= */


/* =========================================================
   00. PREMIUM TYPOGRAPHY
   Distinctive editorial pairing (Fraunces + Outfit)
   ========================================================= */


:root {
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans:  "Outfit", Arial, Helvetica, sans-serif;

    /* Refined tokens layered on top */
    --ring-gold: 0 0 0 1px rgba(201, 168, 106, .35);
    --hairline:  rgba(24, 60, 50, .10);
    --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.24 0 0 0 0 0.20 0 0 0 .15 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

html { font-family: var(--sans); }

body {
    font-family: var(--sans);
    font-weight: 400;
    letter-spacing: .005em;
}

h1, h2, h3, .display {
    font-family: var(--serif);
    font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 96;
    font-weight: 400;
}

h1, .display { letter-spacing: -.03em; }
h2 { letter-spacing: -.025em; }

.eyebrow, .kicker,
.number, .detail-label,
.category, .footer-title,
.btn, .logo-name, .logo-name small,
.main-nav a, .login-link,
.hero-scroll, .landing-hero-scroll {
    font-family: var(--sans);
    font-weight: 600;
}


/* =========================================================
   01. GLOBAL MEDIA
   ========================================================= */

img, svg, video { max-width: 100%; height: auto; }


/* =========================================================
   02. ACCESSIBILITY
   ========================================================= */

.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;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }


/* =========================================================
   03. HEADER · sticky refinement
   ========================================================= */

.site-header {
    background: rgba(245, 241, 232, .78);
    border-bottom: 1px solid transparent;
    transition:
        background-color .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, .92);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 22px rgba(16,43,36,.06);
}

.logo-name { letter-spacing: .18em; }
.logo-name small { letter-spacing: .22em; opacity: .78; }

.main-nav a { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.login-link { letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }


/* =========================================================
   04. MOBILE NAV
   ========================================================= */

.nav-toggle { display: none; }

@media (max-width: 768px) {
    .nav-container { position: relative; min-height: 66px; flex-wrap: nowrap; }
    .nav-toggle {
        display: grid; width: 42px; height: 42px;
        margin-left: auto; place-content: center; gap: 5px;
        border: 1px solid var(--forest);
        background: var(--white); cursor: pointer;
    }
    .nav-toggle > span:not(.sr-only) {
        display: block; width: 18px; height: 1px; background: var(--forest);
        transition: transform .2s ease, opacity .2s ease;
    }
    .nav-toggle.is-active > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle.is-active > span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-active > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .main-nav {
        display: none;
        position: absolute; top: 66px; right: 0; left: 0; z-index: 20;
        flex-direction: column; gap: 0; padding: 8px 0;
        background: var(--white); border: 1px solid var(--line);
        box-shadow: 0 14px 28px rgba(16,43,36,.12);
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 13px 18px; }
    .main-nav a::after { right: auto; bottom: 7px; left: 18px; width: 30px; }
    .login-link { margin-left: 0; }
}


/* =========================================================
   05. ORNAMENTS  ·  gold divider & corner brackets
   ========================================================= */

.ornament {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; margin: 0 auto;
    color: var(--gold);
}
.ornament::before,
.ornament::after {
    content: ""; flex: 0 0 60px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament .diamond {
    width: 6px; height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
}

.ornament-left::before { display: none; }
.ornament-left { justify-content: flex-start; }


/* =========================================================
   06. SECTION HEAD refinement
   ========================================================= */

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 40px; flex-wrap: wrap; margin-bottom: 70px;
}
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.section-head .eyebrow::before {
    content: ""; width: 34px; height: 1px; background: var(--gold);
}
.section-head h2 { margin-top: 8px; }
.section-head .lede { max-width: 460px; }


/* =========================================================
   07. HERO refinement · Fraunces display + gold sweep + grain
   ========================================================= */

.hero,
.home-hero,
.page-hero,
.location-hero,
.landing-hero {
    position: relative; isolation: isolate;
}

.hero::before,
.home-hero::before,
.page-hero::before,
.location-hero::before,
.landing-hero::before {
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background-image: var(--grain);
    background-size: 240px;
    mix-blend-mode: overlay;
    opacity: .55; pointer-events: none;
}

.hero .container,
.home-hero .container,
.page-hero .container,
.location-hero .container,
.landing-hero .container { position: relative; z-index: 2; }

.hero-copy .display,
.landing-hero h1,
.home-hero h1,
.page-hero h1,
.location-hero h1 {
    font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 144;
    font-weight: 400;
}

.hero-copy .display span,
.landing-hero h1 span,
.location-hero h1 span {
    font-style: italic;
    font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
    font-weight: 300;
}

/* animated gold underline on hero */
.hero-copy .display::after,
.page-hero h1::after,
.location-hero h1::after {
    content: "";
    display: block;
    width: 0; height: 2px;
    margin-top: 32px;
    background: var(--gold);
    animation: arasoSweep 1.2s .3s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes arasoSweep {
    to { width: 96px; }
}

/* decorative corner brackets on hero */
.hero .container::before,
.hero .container::after,
.page-hero .container::before,
.page-hero .container::after {
    content: "";
    position: absolute; width: 26px; height: 26px;
    border: 1px solid rgba(201, 168, 106, .55);
    pointer-events: none;
}
.hero .container::before,
.page-hero .container::before {
    top: 40px; left: 0;
    border-right: 0; border-bottom: 0;
}
.hero .container::after,
.page-hero .container::after {
    bottom: 40px; right: 0;
    border-left: 0; border-top: 0;
}

.hero-scroll span,
.landing-hero-scroll .scroll-line {
    position: relative; overflow: hidden;
}
.hero-scroll span::after,
.landing-hero-scroll .scroll-line::after {
    content: "";
    position: absolute; top: 0; left: -50%;
    width: 50%; height: 100%;
    background: var(--gold);
    animation: arasoScrollHint 2.4s ease-in-out infinite;
}

@keyframes arasoScrollHint {
    0%   { transform: translateX(0);    opacity: 0; }
    50%  { opacity: 1; }
    100% { transform: translateX(300%); opacity: 0; }
}


/* =========================================================
   08. LEDE refinement
   ========================================================= */

.lede {
    font-family: var(--sans);
    font-weight: 400;
    letter-spacing: .002em;
}

.intro-lede {
    font-family: var(--serif);
    font-variation-settings: "SOFT" 60, "opsz" 32;
    font-style: italic;
    font-weight: 300;
}


/* =========================================================
   09. BUTTONS refinement
   ========================================================= */

.btn {
    position: relative; overflow: hidden;
    letter-spacing: .16em;
    transition:
        background-color .3s ease,
        color .3s ease,
        border-color .3s ease,
        transform .3s cubic-bezier(.22,1,.36,1),
        box-shadow .3s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(16,43,36,.16); }

.btn-gold {
    background: var(--gold);
    background-image: linear-gradient(180deg, #d4b378 0%, var(--gold) 100%);
    color: var(--water);
}
.btn-gold:hover { background-image: linear-gradient(180deg, var(--gold-light) 0%, #d4b378 100%); }

.btn::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
    transform: translateX(-100%); transition: transform .55s ease;
    pointer-events: none;
}
.btn:hover::after { transform: translateX(100%); }

.text-arrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, color .3s ease, gap .3s ease;
}
.text-arrow:hover { border-bottom-color: var(--gold); gap: 16px; }


/* =========================================================
   10. EXPERIENCE  ·  huge serif numeral watermark
   ========================================================= */

.experience { position: relative; overflow: hidden; }
.experience > .number {
    display: block;
    font-family: var(--serif);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1;
    font-weight: 300;
    font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
    letter-spacing: -.02em;
    color: var(--gold);
    text-transform: none;
    margin-bottom: 40px;
    opacity: .85;
}
.experience h3 {
    position: relative; padding-bottom: 12px; margin-bottom: 14px;
}
.experience h3::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 28px; height: 1px; background: var(--gold);
    transition: width .4s ease;
}
.experience:hover h3::after { width: 60px; }


/* =========================================================
   11. FOOD / MENU CARDS refinement
   ========================================================= */

.food-card,
.menu-card {
    position: relative;
    border-radius: 0;
    border: 1px solid var(--line);
    transition:
        transform .4s cubic-bezier(.22,1,.36,1),
        box-shadow .4s ease,
        border-color .4s ease;
}
.food-card:hover,
.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(16,43,36,.14);
    border-color: rgba(201,168,106,.5);
}

.food-card::before,
.menu-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0;
    height: 2px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform .5s cubic-bezier(.22,1,.36,1);
    z-index: 4;
}
.food-card:hover::before,
.menu-card:hover::before { transform: scaleX(1); }

.food-image,
.menu-card .food-image { position: relative; overflow: hidden; }
.food-image::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
    background: linear-gradient(180deg, transparent, rgba(16,43,36,.55));
    opacity: .0; transition: opacity .4s ease; pointer-events: none;
}
.food-card:hover .food-image::after,
.menu-card:hover .food-image::after { opacity: 1; }

.food-image img,
.menu-card .food-image img { transition: transform .8s cubic-bezier(.22,1,.36,1); }
.food-card:hover .food-image img,
.menu-card:hover .food-image img { transform: scale(1.06); }

.food-card-content h3 {
    font-variation-settings: "SOFT" 50, "opsz" 40;
}

.category, .food-card-content .eyebrow {
    display: inline-block;
    padding: 5px 10px;
    background: var(--sand);
    color: var(--forest);
    font-size: 10px;
    letter-spacing: .18em;
}

.price {
    display: inline-block;
    padding-top: 14px;
    border-top: 1px solid var(--hairline);
    margin-top: 18px;
    font-family: var(--serif);
    font-variation-settings: "SOFT" 60, "opsz" 24;
    font-size: 20px; font-weight: 500;
    color: var(--forest);
    letter-spacing: 0;
}


/* =========================================================
   12. WIDE VISUAL  ·  keyline frame + ornament
   ========================================================= */

.wide-visual {
    position: relative; isolation: isolate;
}
.wide-visual::before {
    content: ""; position: absolute; inset: 40px;
    border: 1px solid rgba(245,241,232,.18);
    pointer-events: none;
    z-index: 1;
}
.wide-visual::after {
    content: ""; position: absolute; inset: 0;
    background-image: var(--grain); background-size: 240px;
    mix-blend-mode: overlay; opacity: .5; pointer-events: none; z-index: 0;
}
.wide-visual .container,
.wide-visual-content { position: relative; z-index: 2; text-align: center; }
/* Re-center the 900px content block inside .container
   (original layout relied on .wide-visual being flex-centered) */
.wide-visual .container { display: flex; justify-content: center; }

.wide-visual-content {
    width: min(900px, 100%);
    margin-left: auto;
    margin-right: auto;
}
.wide-visual-content .hero-actions { justify-content: center; }

.wide-visual-content {
    width: min(900px, 100%);
    margin-left: auto;
    margin-right: auto;
}
.wide-visual-content .hero-actions { justify-content: center; }

.wide-visual h2 {
    font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
    font-weight: 300;
    font-style: italic;
}


/* =========================================================
   13. HERITAGE  ·  refined timeline with diamond markers
   ========================================================= */

.heritage-timeline {
    display: grid; gap: 42px;
    padding-left: 36px;
    border-left: 1px solid var(--gold);
    position: relative;
}
.heritage-story {
    position: relative;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 32px;
    align-items: start;
}
.heritage-story::before {
    content: "";
    position: absolute;
    left: -42px; top: 14px;
    width: 10px; height: 10px;
    background: var(--gold);
    transform: rotate(45deg);
    box-shadow: 0 0 0 6px var(--cream);
}
.section-sand .heritage-story::before { box-shadow: 0 0 0 6px var(--sand); }

.heritage-number {
    font-family: var(--serif);
    font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: .95;
    color: var(--gold);
    font-weight: 300;
    letter-spacing: -.02em;
}
.heritage-story-content h3 {
    margin: 6px 0 12px;
    font-variation-settings: "SOFT" 50, "opsz" 40;
}
.heritage-story-content p {
    color: var(--muted); line-height: 1.8; max-width: 560px;
}

.heritage-feature,
.heritage-secondary {
    min-height: 480px;
}
.heritage-secondary { min-height: 520px; }


/* =========================================================
   14. GALLERY  ·  premium overlay
   ========================================================= */

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery-item {
    position: relative; overflow: hidden;
    min-height: 300px; background: var(--sand);
    grid-column: span 4;
}
.gallery-item.gallery-large { grid-column: span 8; min-height: 480px; }

.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s cubic-bezier(.22,1,.36,1),
                filter .6s ease;
}
.gallery-item::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, transparent 55%, rgba(16,43,36,.65));
    opacity: 0; transition: opacity .45s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { opacity: 1; }

.gallery-item::before {
    content: "";
    position: absolute; left: 20px; bottom: 20px;
    width: 24px; height: 1px; background: var(--gold);
    transform: translateY(20px); opacity: 0;
    transition: transform .45s ease .1s, opacity .45s ease .1s;
    z-index: 2;
}
.gallery-item:hover::before { transform: translateY(0); opacity: 1; }

@media (max-width: 850px) {
    .gallery-item,
    .gallery-item.gallery-large { grid-column: span 12; min-height: 300px; }
}


/* =========================================================
   15. LOCATION  ·  refined info block
   ========================================================= */

.location-scenic {
    position: relative;
    box-shadow: 0 30px 60px rgba(16,43,36,.18);
}
.location-scenic::before {
    content: ""; position: absolute;
    top: -24px; left: -24px; right: 24px; bottom: 24px;
    border: 1px solid var(--gold);
    z-index: -1; pointer-events: none;
}

.visit-details article {
    padding: 22px 0;
    border-top: 1px solid var(--hairline);
    transition: padding-left .3s ease;
}
.visit-details article:hover { padding-left: 8px; }
.visit-details article:last-child { border-bottom: 1px solid var(--hairline); }
.detail-label {
    color: var(--gold);
    letter-spacing: .18em;
    font-size: 10.5px;
    margin-bottom: 8px;
    display: block;
}

.location-card {
    position: relative;
    padding: 44px;
    background: var(--forest);
    color: var(--cream);
    border-left: 3px solid var(--gold);
    box-shadow: 0 24px 60px rgba(16,43,36,.18);
    overflow: hidden;
}
.location-card::before {
    content: ""; position: absolute; inset: 12px;
    border: 1px solid rgba(201,168,106,.16);
    pointer-events: none;
}
.location-card h3 {
    color: var(--cream); margin: 12px 0 6px;
    font-variation-settings: "SOFT" 50, "opsz" 40;
}
.location-card p { color: rgba(245,241,232,.82); }
.location-card .btn { margin-top: 26px; }

.map-placeholder {
    position: relative;
    min-height: 420px;
    display: grid; place-items: center;
    padding: 60px 40px;
    background:
        linear-gradient(135deg, rgba(24,60,50,.85), rgba(16,43,36,.9)),
        linear-gradient(135deg, #d4c49d, #769587);
    color: var(--cream);
    overflow: hidden;
}
.map-placeholder::before {
    content: ""; position: absolute; inset: 20px;
    border: 1px solid rgba(201,168,106,.28);
    pointer-events: none;
}
.map-placeholder > div { max-width: 500px; text-align: center; }
.map-placeholder h2 {
    color: var(--cream); margin: 14px 0 12px;
    font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
    font-style: italic; font-weight: 300;
}
.map-placeholder p { color: rgba(245,241,232,.82); }
.map-placeholder .text-link {
    display: inline-block; margin-top: 22px;
    padding-bottom: 4px;
    color: var(--gold);
    font: 600 11px var(--sans);
    letter-spacing: .18em; text-transform: uppercase;
    border-bottom: 1px solid var(--gold);
    transition: color .3s ease, letter-spacing .3s ease;
}
.map-placeholder .text-link:hover { color: var(--gold-light); letter-spacing: .22em; }


/* =========================================================
   16. INTRO NUMBER refinement
   ========================================================= */

.intro-number {
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--gold);
    letter-spacing: .18em;
}
.intro-number::before {
    content: ""; width: 40px; height: 1px; background: var(--gold);
}


/* =========================================================
   17. LIGHTBOX (kept)
   ========================================================= */

.lightbox {
    position: fixed; inset: 0; z-index: 100;
    display: grid; place-items: center; padding: 30px;
    background: rgba(16,43,36,.94); color: var(--white);
    backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; cursor: pointer; }
.lightbox-content { position: relative; z-index: 2; width: min(1000px, 94vw); max-height: 90vh; }
.lightbox-image {
    display: block; width: 100%; max-height: 72vh;
    object-fit: contain; background: var(--water);
    box-shadow: 0 25px 70px rgba(0,0,0,.35);
}
.lightbox-close {
    position: absolute; top: -52px; right: 0;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.45);
    background: transparent; color: var(--white);
    font-size: 28px; line-height: 1; cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.lightbox-close:hover { background: var(--white); color: var(--forest); }
.lightbox-caption { padding-top: 18px; }
.lightbox-title { margin-bottom: 4px; color: var(--gold); font-family: var(--serif); font-style: italic; }
.lightbox-description { color: rgba(255,255,255,.8); font-size: 14px; }


/* =========================================================
   18. FOOTER refinement
   ========================================================= */

.site-footer {
    position: relative;
    padding-top: 90px;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(201,168,106,.08), transparent 60%),
        var(--water);
}
.site-footer::before {
    content: "";
    position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 70px; height: 1px;
    background: var(--gold);
}
.footer-title {
    display: flex; align-items: center; gap: 12px;
    color: var(--gold) !important;
}
.footer-title::before {
    content: ""; width: 22px; height: 1px; background: var(--gold);
}
.footer-brand .footer-logo .logo-name { color: var(--cream); }
.footer-brand .footer-logo .logo-name small { color: rgba(245,241,232,.6); }
.footer-visit h3 {
    color: var(--cream);
    font-family: var(--serif);
    font-variation-settings: "SOFT" 50, "opsz" 32;
    font-size: 22px; font-style: italic; font-weight: 300;
    margin: 8px 0 4px;
}
.footer-cta {
    display: inline-flex !important; align-items: center; gap: 10px;
    margin-top: 16px !important;
    padding-bottom: 4px;
    color: var(--gold) !important;
    font: 600 11px var(--sans);
    letter-spacing: .18em; text-transform: uppercase;
    border-bottom: 1px solid var(--gold);
    transition: color .3s ease, gap .3s ease;
}
.footer-cta:hover { color: var(--gold-light) !important; gap: 16px; }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap;
    gap: 12px; align-items: center;
}


/* =========================================================
   19. REVEAL  ·  scroll-triggered
   ========================================================= */

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
    transition:
        opacity .9s cubic-bezier(.22,1,.36,1),
        transform .9s cubic-bezier(.22,1,.36,1),
        filter .9s cubic-bezier(.22,1,.36,1);
}
[data-reveal].is-visible {
    opacity: 1; transform: none; filter: blur(0);
}
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }


/* =========================================================
   20. FORM CARD (auth)
   ========================================================= */

.form-card {
    border-top: 3px solid var(--gold);
    box-shadow: 0 40px 80px rgba(16,43,36,.28);
}
.form-card h1, .form-card h2 {
    font-variation-settings: "SOFT" 60, "opsz" 40;
}


/* =========================================================
   21. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1; transform: none; filter: none; }
}


/* =========================================================
   22. RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {
    .location-destination { grid-template-columns: 1fr; gap: 40px; }
    .location-scenic { min-height: 400px; }
    .location-scenic::before { top: -14px; left: -14px; right: 14px; bottom: 14px; }
    .heritage-story { grid-template-columns: 60px 1fr; gap: 20px; }
    .heritage-number { font-size: clamp(2.2rem, 8vw, 3.2rem); }
    .hero .container::before, .hero .container::after,
    .page-hero .container::before, .page-hero .container::after {
        width: 18px; height: 18px;
    }
    .wide-visual::before { inset: 20px; }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    .lede { font-size: 16px; }
    .display { font-size: clamp(43px, 13vw, 55px); }
    h1 { font-size: clamp(36px, 10vw, 48px); }
    h2 { font-size: clamp(30px, 8.5vw, 40px); }
    h3 { font-size: 25px; }
    .btn { min-height: 46px; padding: 13px 18px; }
    .hero { min-height: 580px; }
    .footer-grid { gap: 32px; }
    .form-card { padding: 28px 22px; }
    .location-hero { min-height: 360px; padding: 50px 0; }
    .location-scenic { min-height: 300px; }
    .map-section { padding-bottom: 65px; }
    .lightbox { padding: 18px; }
    .lightbox-image { max-height: 68vh; }
    .location-card { padding: 30px 24px; }
    .location-card::before { inset: 8px; }
    .heritage-timeline { padding-left: 24px; }
    .heritage-story { grid-template-columns: 1fr; gap: 8px; }
    .heritage-story::before { left: -30px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Authentication and account controls */
.account-nav{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.account-greeting{font-size:13px;font-weight:700;color:var(--forest)}
.favourite-form{margin:0}
.food-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px}
.favourite-button{width:42px;height:42px;border:1px solid var(--line);background:var(--cream);color:var(--forest);display:grid;place-items:center;font-size:25px;line-height:1;cursor:pointer;transition:.2s ease;text-decoration:none}
.favourite-button:hover,.favourite-button.is-favourite{border-color:var(--gold);background:var(--gold);color:#fff}
.favourite-login{color:var(--forest)}

/* =========================================================
   CUSTOMER PROFILE / ACCOUNT
   ========================================================= */
.profile-nav-link {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--forest);
    border-radius: 50%;
    background: var(--cream);
    color: var(--forest);
    font: 700 12px/1 var(--sans);
    letter-spacing: .04em;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.profile-nav-link:hover {
    transform: translateY(-1px);
    border-color: var(--gold);
    box-shadow: 0 7px 18px rgba(16,43,36,.12);
}
.profile-nav-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mobile-profile-link { display: none; }

.profile-page { background: var(--cream); }
.profile-shell { padding: 88px 0 110px; }
.profile-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.profile-panel {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(16,43,36,.05);
}
.profile-panel h2 { margin: 7px 0 18px; }
.profile-panel > .lede { font-size: 15px; }
.profile-identity { text-align: center; }
.profile-avatar {
    width: 148px;
    height: 148px;
    margin: 0 auto 22px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: var(--forest);
    color: var(--cream);
    font: 400 44px/1 var(--serif);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font: 400 32px/1.05 var(--serif); color: var(--forest); }
.profile-email { margin-top: 8px; color: var(--muted); font-size: 14px; word-break: break-word; }
.profile-stat {
    display: flex; justify-content: space-between; gap: 20px;
    margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
    color: var(--muted); font-size: 13px;
}
.profile-stat strong { color: var(--forest); font-size: 20px; }
.profile-actions { display: grid; gap: 10px; margin-top: 24px; }
.profile-actions .btn { width: 100%; }
.profile-form { display: grid; gap: 16px; }
.profile-form .form-group { display: grid; gap: 7px; }
.profile-form label { color: var(--forest); font-size: 13px; font-weight: 700; }
.profile-form input:not([type="hidden"]) {
    width: 100%; padding: 13px 14px; border: 1px solid var(--line);
    background: var(--white); color: var(--ink); outline: none;
}
.profile-form input:not([type="hidden"]):focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,106,.16); }
.profile-form small { color: var(--muted); font-size: 12px; }
.profile-form .btn { justify-self: start; }
.profile-notice { margin: 0 0 20px; }
.profile-favourites { margin-top: 28px; }
.profile-favourites-head {
    display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px;
}
.profile-favourites-head h2 { margin: 5px 0 0; }
.profile-favourites-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.profile-favourite-card {
    display: grid; grid-template-columns: 105px minmax(0,1fr); min-height: 105px;
    overflow: hidden; border: 1px solid var(--line); background: var(--white);
}
.profile-favourite-card .food-image { height: 100%; min-height: 105px; }
.profile-favourite-card .food-card-content { padding: 17px; display: flex; flex-direction: column; justify-content: space-between; }
.profile-favourite-card h3 { font-size: 21px; margin: 5px 0; }
.profile-favourite-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.profile-favourite-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.profile-favourite-bottom .price { font-weight: 700; color: var(--forest); font-size: 13px; }
.profile-favourite-bottom .favourite-button { width: 36px; height: 36px; font-size: 21px; }
.crop-editor {
    display: grid; grid-template-columns: minmax(260px, 360px) minmax(0,1fr); gap: 28px; align-items: start;
    margin-top: 10px;
}
.crop-stage {
    position: relative; width: 100%; aspect-ratio: 1; overflow: hidden;
    border: 1px solid var(--line); background: var(--water); cursor: grab; touch-action: none;
}
.crop-stage.is-dragging { cursor: grabbing; }
.crop-stage img {
    position: absolute; max-width: none; transform-origin: center center; user-select: none; pointer-events: none;
}
.crop-stage::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 0 0 999px rgba(16,43,36,.08);
}
.crop-controls { display: grid; gap: 18px; }
.crop-control { display: grid; gap: 8px; }
.crop-control label { font-size: 12px; font-weight: 700; color: var(--forest); text-transform: uppercase; letter-spacing: .12em; }
.crop-control input[type="range"] { width: 100%; accent-color: var(--forest); }
.crop-help { color: var(--muted); font-size: 13px; line-height: 1.6; }
.crop-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.file-picker {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 16px;
    border: 1px solid var(--forest); color: var(--forest); background: transparent;
    font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.file-picker:hover { background: var(--forest); color: var(--white); }
.file-picker input { display: none; }
.remove-photo { color: #8d3a31; border-color: #c99a93; }
.remove-photo:hover { background: #8d3a31; color: var(--white); }
.profile-empty { padding: 28px; border: 1px dashed var(--line); background: rgba(255,255,255,.6); color: var(--muted); }

@media (max-width: 900px) {
    .profile-layout { grid-template-columns: 1fr; }
    .profile-identity { display: grid; grid-template-columns: 120px 1fr; grid-template-areas: "avatar details" "actions actions"; text-align: left; align-items: center; column-gap: 22px; }
    .profile-identity .profile-avatar { grid-area: avatar; width: 120px; height: 120px; margin: 0; }
    .profile-identity .profile-details { grid-area: details; }
    .profile-identity .profile-actions { grid-area: actions; }
    .profile-stat { margin-top: 16px; }
    .crop-editor { grid-template-columns: minmax(240px, 330px) minmax(0,1fr); }
}

@media (max-width: 768px) {
    .nav-container { gap: 12px; }
    .profile-nav-link { order: 2; }
    .nav-toggle { order: 3; margin-left: 0; }
    .main-nav { order: 4; }
    .desktop-login-link { display: none; }
    .mobile-profile-link { display: block; }
    .profile-shell { padding: 62px 0 80px; }
    .profile-favourites-grid { grid-template-columns: 1fr; }
    .crop-editor { grid-template-columns: 1fr; }
    .crop-stage { width: min(100%, 360px); margin: 0 auto; }
}

@media (max-width: 480px) {
    .profile-panel { padding: 22px; }
    .profile-identity { grid-template-columns: 88px 1fr; column-gap: 16px; }
    .profile-identity .profile-avatar { width: 88px; height: 88px; font-size: 30px; }
    .profile-name { font-size: 25px; }
    .profile-favourite-card { grid-template-columns: 90px minmax(0,1fr); }
    .profile-favourite-card .food-image { min-height: 90px; }
}

/* ============================================================
   Accessibility, responsive & phase 2+ additions
   ============================================================ */

/* Screen-reader-only helper (used on filter labels). */
.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;
}

/* Respect user preference for reduced motion. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Focus visibility: always show a clear ring for keyboard users. */
:focus-visible {
    outline: 3px solid #d4a24c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Footer legal row. */
.footer-legal { margin-top: 12px; font-size: 0.85rem; opacity: 0.85; }
.footer-legal a { color: inherit; text-decoration: underline; }

/* Danger zone (profile delete). */
.danger-panel { border: 1px solid rgba(190, 60, 60, 0.35); }
.danger-panel h2 { color: #b83232; }
.btn-danger {
    background: #b83232; color: #fff; border: 1px solid #b83232;
    padding: 12px 22px; border-radius: 999px; font-weight: 600;
    cursor: pointer; transition: background 0.2s ease;
}
.btn-danger:hover, .btn-danger:focus-visible { background: #8b1f1f; }

/* Admin — two-column layout for dashboard secondary panels. */
.admin-two-col {
    display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 24px;
}
@media (min-width: 900px) {
    .admin-two-col { grid-template-columns: 1fr 1fr; }
}
.admin-simple-list { list-style: none; padding: 0; margin: 0; }
.admin-simple-list li {
    padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex; flex-direction: column;
}
.admin-simple-list li:last-child { border-bottom: none; }
.admin-simple-list small { opacity: 0.7; margin-top: 2px; font-size: 0.85rem; }

/* Admin — responsive: turn tables into stacked cards on very small screens. */
@media (max-width: 640px) {
    .admin-table thead { display: none; }
    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
    .admin-table tr {
        margin-bottom: 14px;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 10px;
        padding: 10px 14px;
        background: #fff;
    }
    .admin-table td {
        padding: 8px 0;
        border: none;
        display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
    }
    .admin-table td[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        opacity: 0.7;
        margin-right: 12px;
    }
    .admin-table .table-actions { flex-wrap: wrap; gap: 10px; }
}

/* Filter row: wrap gracefully on mobile. */
.admin-filter { flex-wrap: wrap; gap: 10px; }
.admin-filter select, .admin-filter input { min-width: 160px; }

/* ============================================================
   Menu search bar (v4)
   ============================================================ */
.menu-search {
    position: relative;
    max-width: 520px;
    margin: 24px 0 28px;
}
.menu-search input[type="search"] {
    width: 100%;
    padding: 14px 44px 14px 44px;
    border: 1px solid rgba(24, 60, 50, 0.25);
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.menu-search input[type="search"]:focus {
    outline: none;
    border-color: #183c32;
    box-shadow: 0 0 0 3px rgba(212, 162, 76, 0.35);
}
.menu-search input[type="search"]::-webkit-search-cancel-button {
    display: none;
}
.menu-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    opacity: 0.55;
    pointer-events: none;
}
.menu-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #183c32;
    opacity: 0.7;
    transition: background 0.15s ease, opacity 0.15s ease;
}
.menu-search-clear:hover, .menu-search-clear:focus-visible { opacity: 1; background: rgba(24, 60, 50, 0.08); }
.menu-search-count {
    margin: 8px 4px 0;
    font-size: 13px;
    color: rgba(24, 60, 50, 0.7);
    letter-spacing: 0.02em;
}

/* ============================================================
   Password eye toggle (v5) — premium replacement for the "Show" text button
   ============================================================ */
.password-field { position: relative; }
.password-field input { padding-right: 48px !important; }
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #183c32;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.password-toggle:hover, .password-toggle:focus-visible {
    opacity: 1;
    background: rgba(24, 60, 50, 0.08);
    color: #183c32;
}
.password-toggle.is-showing {
    color: #d4a24c;
    opacity: 1;
}
.password-toggle svg {
    transition: transform 0.25s ease;
}
.password-toggle:active svg { transform: scale(0.92); }

/* ============================================================
   Premium menu category chips (v5) — squared, uppercase, scrollable
   ============================================================ */
.menu-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    padding: 4px 2px;
    margin: 12px -2px 0;
    border-top: 1px solid rgba(24, 60, 50, 0.08);
    border-bottom: 1px solid rgba(24, 60, 50, 0.08);
}
.menu-filter::-webkit-scrollbar { display: none; }

.menu-filter [data-filter] {
    flex: 0 0 auto;
    padding: 14px 22px;
    background: transparent;
    color: rgba(24, 60, 50, 0.6);
    border: none;
    border-right: 1px solid rgba(24, 60, 50, 0.08);
    border-radius: 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease;
}
.menu-filter [data-filter]:last-child { border-right: none; }
.menu-filter [data-filter]::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 8px;
    height: 2px;
    background: #d4a24c;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s cubic-bezier(0.6, 0.2, 0.2, 1);
}
.menu-filter [data-filter]:hover,
.menu-filter [data-filter]:focus-visible {
    color: #183c32;
    background: rgba(24, 60, 50, 0.03);
}
.menu-filter [data-filter].active {
    color: #183c32;
}
.menu-filter [data-filter].active::after,
.menu-filter [data-filter]:hover::after {
    transform: scaleX(1);
}

/* Fade edges to hint at overflow scroll. */
.menu-filter-wrap {
    position: relative;
}
.menu-filter-wrap::before,
.menu-filter-wrap::after {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: 32px;
    pointer-events: none;
    z-index: 2;
}
.menu-filter-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--menu-bg, #fbf8f2), transparent);
}
.menu-filter-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--menu-bg, #fbf8f2), transparent);
}
