/* =====================================================
   Farmacia 24 — Farmasib
   Refined editorial redesign
   Palette: cream + deep apothecary green + tan-gold
   ===================================================== */

/* =====================================================
   Self-hosted fonts (subset to the characters this site uses).
   Served from our own domain: no request reaches Google, so no
   visitor IP is shared with a third party (GDPR), and the page
   no longer waits on an external stylesheet.
   ===================================================== */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/playfair-display-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/playfair-display-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/fonts/playfair-display-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/fonts/playfair-display-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/playfair-display-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/playfair-display-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/source-sans-3-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/source-sans-3-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../assets/fonts/source-sans-3-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../assets/fonts/source-sans-3-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/fonts/source-sans-3-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/fonts/source-sans-3-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/source-sans-3-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/source-sans-3-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Buttons: fully rounded, like the status pills */
    --radius-btn: 999px;

    /* Brand palette */
    --cream: #faf9f7;
    --cream-2: #f3efe7;
    --paper: #ffffff;

    --green: #2d5f50;
    --green-dark: #244a3e;
    --green-soft: #e8efe9;

    --gold: #b8a67d;
    --gold-text: #7a6639; /* gold for text: 5.3:1 on cream (WCAG AA) */
    --gold-soft: #d4c5a9;

    --ink: #1a1a1a;
    --ink-2: #2b2b2b;
    --muted: #6b6b6b;
    --muted-2: #696969;
    --line: #e5e2dc;
    --line-soft: #efece6;

    /* Status */
    --ok: #2d5f50;
    --ok-bg: #e8efe9;
    --warn: #7a5f22;
    --warn-bg: #f7f1de;
    --err: #8b2e2e;
    --err-bg: #f4e3e3;

    /* Map pins: red, readable on pale map tiles (4.9:1 on white) */
    --pin: #c62828;
    --pin-dark: #8b2e2e;

    /* Legacy aliases (kept for safety with existing HTML) */
    --primary-color: var(--green);
    --primary-dark: var(--green-dark);
    --primary-light: var(--gold);
    --text-dark: var(--ink);
    --text-light: var(--muted);
    --bg-light: var(--cream);
    --bg-white: var(--paper);
    --border-color: var(--line);
}

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-2);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

[hidden] {
    display: none !important;
}

:focus-visible {
    /* Two rings: the dark one carries on pale backgrounds, the white one on
       photos and the green sections, so one always clears 3:1 (WCAG 1.4.11).
       The gold ring it replaced was only 2.3:1 on cream. */
    outline: 3px solid var(--ink);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--paper);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    background: var(--green-dark);
    color: #fff;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
    color: #fff;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--green-dark);
}

h1, h2, h3, h4, h5, h6 {
    /* long German/Hungarian compounds may hyphenate instead of overflowing small screens */
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.005em;
}

p {
    color: var(--muted);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

/* =====================================================
   Top utility bar
   ===================================================== */
.pre-header {
    background-color: var(--green-dark);
    height: 36px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1001;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

.pre-header .container {
    width: 100%;
}

.pre-header-contacts {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.pre-header-contacts a {
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.pre-header-contacts a:hover {
    color: var(--gold-soft);
}

.pre-header-contacts i {
    font-size: 0.75rem;
    color: var(--gold-soft);
}

.pre-header__label::after { content: ':'; }

/* Language dropdown next to the menu button (tablets and phones) */
.lang-dropdown {
    display: none;
    position: relative;
}

.lang-dropdown summary {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s ease;
}

.lang-dropdown summary::-webkit-details-marker { display: none; }
.lang-dropdown summary:hover,
.lang-dropdown[open] summary { border-color: var(--green); }
.lang-dropdown summary .fa-globe { color: var(--green); }

.lang-dropdown__chevron {
    font-size: 0.6rem;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.lang-dropdown[open] .lang-dropdown__chevron { transform: rotate(180deg); }

.lang-dropdown__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 1100;
    min-width: 170px;
    list-style: none;
    padding: 0.4rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 40px -20px rgba(36, 74, 62, 0.35);
    animation: dropdownIn 0.18s ease;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.lang-dropdown__menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--ink-2);
    border-radius: var(--radius-btn);
}

.lang-dropdown__menu a:hover { background: var(--cream); color: var(--green); }

.lang-dropdown__menu a.active {
    background: var(--green-soft);
    color: var(--green);
    font-weight: 600;
}

.lang-dropdown__code {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--muted);
}

/* Language switcher (right side of the top bar) */
.pre-header .container {
    position: relative;
}

.lang-switcher {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.15rem;
}

.lang-switcher a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-btn);
    line-height: 1.4;
}

.lang-switcher a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.lang-switcher a.active {
    color: var(--green-dark);
    background: var(--gold-soft);
}

/* =====================================================
   Header / Navigation
   ===================================================== */
header {
    background-color: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 36px;
    z-index: 1000;
}

.navbar {
    padding: 1.1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo { flex-shrink: 0; }

.logo a { display: block; }

.logo img {
    height: 54px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.4rem;
    align-items: center;
}

.nav-menu a {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--green);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 6px;
    background: none;
    border: 0;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--ink);
    transition: all 0.3s ease;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2.2rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background-color: var(--green);
    color: #fff;
    border-color: var(--green);
}

.btn-primary:hover {
    background-color: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-secondary:hover {
    border-color: var(--green);
    color: var(--green);
    background-color: transparent;
}

/* =====================================================
   Hero (homepage)
   ===================================================== */
.hero {
    background-color: var(--cream);
    padding: 6rem 0 5rem;
    border-bottom: 1px solid var(--line);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-content {
    padding: 1rem 0;
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.hero-description {
    font-size: 1.02rem;
    color: var(--muted);
    margin-bottom: 2.25rem;
    line-height: 1.8;
    max-width: 540px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 30px 60px -30px rgba(36, 74, 62, 0.3);
}

/* Hero: photo on the right melts into the cream background towards the left */
.hero-photo {
    position: relative;
    background: var(--cream);
    /* no bottom border: the photo melts into the section below (same cream) */
    overflow: hidden;
    padding: 6rem 0;
    min-height: min(80vh, 700px);
    display: flex;
    align-items: center;
}

.hero-photo__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 8%, rgba(0,0,0,0.35) 26%, rgba(0,0,0,0.85) 44%, #000 62%);
    mask-image: linear-gradient(to right, transparent 0%, transparent 8%, rgba(0,0,0,0.35) 26%, rgba(0,0,0,0.85) 44%, #000 62%);
}

.hero-photo__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 8% 45%;
}

/* soft fade of the photo's lower edge into the cream below */
@media (min-width: 961px) {
    .hero-photo::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 170px;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(to bottom, rgba(250, 249, 247, 0), var(--cream) 92%);
    }
}

.hero-photo__inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-photo__content { max-width: 34rem; }

.hero-photo h1 {
    /* "pentru" must not be split across lines */
    -webkit-hyphens: manual;
    hyphens: manual;
    font-size: clamp(2.4rem, 4.6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin: 0.75rem 0 1.35rem;
}

.hero-photo__lead {
    font-size: 1.05rem;
    color: var(--ink-2);
    line-height: 1.8;
    max-width: 44ch;
    margin-bottom: 2.25rem;
}

.hero-photo__cuewrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.75rem;
    z-index: 3;
}

.hero-photo .hero-photo__cue {
    flex-direction: row;
    gap: 0.6rem;
    color: var(--green);
}

.hero-photo .hero-photo__cue:hover { color: var(--green-dark); }

.hero-photo .hero-photo__cue i { color: var(--green); }

.hero-photo__status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--ink-2);
}

.hero-photo__status .status-badge { margin: 0; }

.hero-photo__status .status-badge::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 0.5rem;
    vertical-align: 1px;
}

@media (max-width: 960px) {
    /* on narrow screens the photo sits above the text and melts downwards */
    .hero-photo { display: block; padding: 0 0 3rem; min-height: 0; }
    .hero-photo__media {
        position: relative;
        width: 100%;
        height: 20rem;
        -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    }
    .hero-photo__inner { margin-top: -2.5rem; }

    /* stacked layout: the cue follows the text instead of floating over it */
    .hero-photo__cuewrap {
        position: static;
        margin-top: 1.5rem;
    }
}

.pharmacist-placeholder {
    width: 100%;
    max-width: 480px;
    height: 480px;
    background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.pharmacist-placeholder i {
    font-size: 130px;
    color: rgba(255, 255, 255, 0.18);
}

/* =====================================================
   Section base + titles
   ===================================================== */
.products-section,
.locations-section,
.about-section,
.products-detail-section,
.locations-detail-section,
.timeline-section,
.offers-section,
.optical-intro-section,
.optical-services-section,
.optical-products-section,
.optical-location-section,
.loyalty-how-section,
.loyalty-terms-section,
.loyalty-faq-section,
.recipes-preview-section,
.recipes-intro-section,
.recipes-services-section,
.recipes-process-section,
.cta-section {
    padding: 6rem 0;
}

/* alternate background rhythm */
.products-section,
.about-section,
.optical-services-section,
.loyalty-how-section,
.loyalty-faq-section,
.products-detail-section,
.optical-products-section,
.recipes-services-section {
    background-color: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.locations-section,
.recipes-preview-section,
.timeline-section,
.offers-section,
.optical-intro-section,
.optical-location-section,
.loyalty-terms-section,
.locations-detail-section,
.recipes-intro-section,
.recipes-process-section {
    background-color: var(--cream);
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

/* tan underline accent under section titles */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 1.25rem auto 2.5rem;
}

/* =====================================================
   Products grid (homepage)
   ===================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.product-card {
    background: transparent;
    padding: 1rem 1rem 0;
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-icon {
    width: 96px;
    height: 96px;
    background: var(--green); /* the icons are white line art */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.6rem;
    overflow: hidden;
    transition: background 0.25s ease;
}

.product-card:hover .product-icon {
    background: var(--green-dark);
}

.product-icon img {
    width: 64%;
    height: 64%;
    object-fit: contain;
    border-radius: 50%;
}

.product-icon i {
    font-size: 2rem;
    color: var(--green);
}

.product-card h3 {
    font-size: 1.08rem;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 0.85rem;
    letter-spacing: 0.01em;
}

.product-card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
}

.product-card p a {
    color: var(--green);
    font-weight: 500;
    border-bottom: 1px solid var(--gold-soft);
}

.product-card p a:hover {
    border-bottom-color: var(--green);
}

/* =====================================================
   Locations list (homepage)
   ===================================================== */
.locations-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-row {
    display: grid;
    grid-template-columns: 380px minmax(16rem, 1.4fr) minmax(13rem, 1fr) auto;
    gap: clamp(1.25rem, 3vw, 3rem);
    align-items: center;
    padding: 1.75rem clamp(1rem, 2vw, 1.75rem);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px -18px rgba(36, 74, 62, 0.28), 0 2px 6px rgba(36, 74, 62, 0.06);
}

.location-row__thumb {
    width: 380px;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.location-row__who h3 {
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.location-row__addr {
    font-size: 1rem;
    color: var(--muted);
}

.location-row__hours > div {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.2rem 0;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.location-row__hours dt { color: var(--muted); }
.location-row__hours dd { color: var(--ink); }

/* today's row, pulled forward with a tone step */
.location-row__hours .is-today {
    margin: 0 -0.75rem;
    padding: 0.2rem 0.75rem;
    background: var(--green-soft);
}

.location-row__hours .is-today dt,
.location-row__hours .is-today dd {
    color: var(--green-dark);
    font-weight: 600;
}

.location-row__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    text-align: right;
}

.location-row__tel {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    color: var(--green-dark);
    white-space: nowrap;
}

.location-row__map {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--green);
    white-space: nowrap;
}

.location-row__map:hover { text-decoration: underline; text-underline-offset: 3px; }

/* no colour change on hover anywhere in this list; the map link underlines instead */
.location-row .address-link:hover {
    color: inherit;
    border-bottom-color: var(--line);
}

/* open / closed here reads as text with a dot, not as a pill */
.location-row .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.location-row .status-badge[hidden] { display: none; }

.location-row .status-badge::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.location-row .status-badge.open,
.location-row .status-badge.closed,
.location-row .status-badge.holiday { background: none; }

@media (max-width: 1100px) {
    .location-row {
        grid-template-columns: minmax(240px, 40%) 1fr;
        row-gap: 1.25rem;
        align-items: start;
    }

    /* photo keeps its own 4:3 shape so nothing is cropped */
    .location-row__thumb {
        grid-row: 1 / span 3;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        align-self: start;
    }

    .location-row__hours,
    .location-row__actions { grid-column: 2; }

    .location-row__actions {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .location-row {
        grid-template-columns: 1fr;
        padding: 1.5rem 1.25rem;
    }

    .location-row__thumb {
        width: 100%;
        height: 180px;
    }

    .location-row__hours,
    .location-row__actions { grid-column: 1; }

    .location-row__actions {
        justify-content: space-between;
        width: 100%;
    }
}

.status,
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0.5rem 0;
    border: 1px solid transparent;
}

.status.open,
.status-badge.open {
    background: var(--ok-bg);
    color: var(--ok);
    border-color: rgba(45, 95, 80, 0.18);
}

.status.closed,
.status-badge.closed {
    background: var(--err-bg);
    color: var(--err);
    border-color: rgba(139, 46, 46, 0.18);
}

.status-badge.holiday {
    background: var(--warn-bg);
    color: var(--warn);
    border-color: rgba(138, 109, 44, 0.2);
}

.holiday-warning {
    background: var(--warn-bg);
    color: var(--warn);
    padding: 0.85rem 1.25rem;
    margin-bottom: 2rem;
    border-left: 3px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.address-link {
    color: inherit;
    border-bottom: 1px solid var(--line);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.address-link:hover {
    color: var(--green);
    border-bottom-color: var(--green);
}






/* =====================================================
   Recipes preview (homepage)
   ===================================================== */
.recipes-preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

.recipes-preview-image {
    overflow: hidden;
    border-radius: 2px;
}

.recipes-preview-image img {
    width: 100%;
    height: auto;
    display: block;
}

.recipes-placeholder {
    width: 100%;
    height: 380px;
    background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipes-placeholder i {
    font-size: 110px;
    color: rgba(255, 255, 255, 0.22);
}

.recipes-preview-content p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 2rem;
}

/* =====================================================
   About section
   ===================================================== */
.about-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5rem;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Before / After slider */
.before-after-slider {
    width: 100%;
    max-width: 540px;
}

.before-after-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    border-radius: 2px;
    box-shadow: 0 25px 50px -25px rgba(36, 74, 62, 0.35);
    --pos: 50%;
}

.before-after-container.is-dragging {
    cursor: grabbing;
}

.before-after-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

.after-image { z-index: 1; }

.before-image-wrapper {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
    z-index: 2;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: var(--pos);
    width: 4px;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
}

.slider-line {
    flex: 1;
    width: 2px;
    background: #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.slider-button {
    width: 46px;
    height: 46px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.slider-button i {
    color: var(--green);
    font-size: 1.05rem;
}

.slider-handle:focus {
    outline: none;
}

.slider-handle:focus-visible .slider-button {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.before-after-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0 0.25rem;
}

.before-after-labels span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.pharmacy-placeholder,
.pharmacy-interior-placeholder {
    width: 100%;
    height: 440px;
    background: linear-gradient(160deg, #8a7558 0%, #5e4a31 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.pharmacy-placeholder i,
.pharmacy-interior-placeholder i {
    font-size: 110px;
    color: rgba(255, 255, 255, 0.25);
}

.about-content,
.about-content h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.about-content h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin-top: 1.25rem;
}

.about-content p {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
    line-height: 1.85;
}

/* =====================================================
   Page hero (interior pages)
   ===================================================== */
/* =====================================================
   Product detail cards
   ===================================================== */
.products-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.product-detail-card {
    background: var(--paper);
    padding: 2.5rem;
    border: 1px solid var(--line);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.product-detail-card:hover {
    border-color: var(--green);
    transform: translateY(-3px);
}

.product-detail-icon {
    width: 64px;
    height: 64px;
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.product-detail-icon i {
    font-size: 1.5rem;
    color: var(--green);
}

.product-detail-card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.85rem;
    color: var(--ink);
}

.product-detail-card p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

.product-features {
    list-style: none;
    padding: 0;
    border-top: 1px solid var(--line-soft);
    padding-top: 1rem;
}

.product-features li {
    padding: 0.55rem 0;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
}

.product-features li i {
    color: var(--gold);
    font-size: 0.85rem;
}

/* =====================================================
   Location detail cards
   ===================================================== */
.locations-detail-grid {
    display: grid;
    gap: 2rem;
}

.location-detail-card {
    background: var(--paper);
    padding: 2.5rem;
    border: 1px solid var(--line);
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.location-detail-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--ink);
}

.address {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--muted);
}

.address i {
    color: var(--gold);
}

.schedule h4 {
    font-size: 0.82rem;
    margin-bottom: 1rem;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule h4 i {
    color: var(--gold);
}

.schedule-table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.schedule-table tr {
    border-bottom: 1px solid var(--line-soft);
}

.schedule-table tr:last-child {
    border-bottom: none;
}

.schedule-table td {
    padding: 0.75rem 0;
    color: var(--muted);
    font-size: 1rem;
}

.schedule-table td:first-child {
    font-weight: 500;
    color: var(--ink-2);
}

.schedule-table td:last-child {
    text-align: right;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.special-note {
    background: var(--warn-bg);
    padding: 1.1rem 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: start;
    border-left: 3px solid var(--gold);
}

.special-note i {
    color: var(--warn);
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

.special-note p {
    color: var(--warn);
    font-weight: 500;
    margin: 0;
    font-size: 1rem;
}

/* =====================================================
   Timeline (about page)
   ===================================================== */
.timeline {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: var(--gold-soft);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    width: 13px;
    height: 13px;
    background: var(--gold);
    border-radius: 50%;
    border: 3px solid var(--cream);
    z-index: 1;
}

.timeline-date {
    text-align: right;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--green);
    padding-top: 0;
    letter-spacing: 0.02em;
}

.timeline-content {
    background: var(--paper);
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--line);
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.timeline-content p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 1rem;
}

/* =====================================================
   Offers
   ===================================================== */
.offers-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 4rem;
}

.offer-badge {
    width: 64px;
    height: 64px;
    background: var(--green-soft);
    color: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.offer-badge i {
    font-size: 1.4rem;
    color: var(--green);
}

.offers-intro h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.offers-intro p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.offer-card {
    background: var(--paper);
    padding: 2.25rem 2rem;
    border: 1px solid var(--line);
    transition: border-color 0.25s ease, transform 0.25s ease;
    position: relative;
}

.offer-card:hover {
    border-color: var(--green);
    transform: translateY(-3px);
}

.offer-card.featured {
    border-color: var(--green);
    border-width: 1px;
    box-shadow: 0 1px 0 var(--green) inset;
}

.offer-ribbon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--green);
    color: #fff;
    padding: 0.3rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.offer-icon {
    width: 60px;
    height: 60px;
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.offer-icon i {
    font-size: 1.4rem;
    color: var(--green);
}

.offer-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
    color: var(--ink);
}

.offer-discount {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 1rem;
}

.offer-card > p {
    color: var(--muted);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
}

.offer-features {
    list-style: none;
    padding: 1rem 0 0;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--line-soft);
}

.offer-features li {
    padding: 0.45rem 0;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.offer-features li i {
    color: var(--gold);
    font-size: 0.85rem;
}

.offers-notice {
    background: var(--warn-bg);
    padding: 1.75rem 2rem;
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    border-left: 3px solid var(--gold);
}

.notice-icon i {
    font-size: 1.6rem;
    color: var(--warn);
}

.notice-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
    color: var(--warn);
}

.notice-content ul {
    list-style: none;
    padding: 0;
}

.notice-content li {
    padding: 0.35rem 0;
    color: var(--warn);
    padding-left: 1.25rem;
    position: relative;
    font-size: 1rem;
}

.notice-content li::before {
    content: '·';
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
}

/* =====================================================
   Optical
   ===================================================== */
.optical-highlight {
    background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
    padding: 3.5rem 2.5rem;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.highlight-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.optical-highlight h2 {
    font-size: 1.9rem;
    color: #fff;
    max-width: 800px;
    line-height: 1.4;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--paper);
    padding: 2.25rem 1.75rem;
    border: 1px solid var(--line);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
    border-color: var(--green);
    transform: translateY(-3px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
}

.service-icon i {
    font-size: 1.4rem;
    color: var(--green);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.85rem;
    color: var(--ink);
}

.service-card p {
    color: var(--muted);
    margin-bottom: 1.25rem;
    line-height: 1.75;
    font-size: 1rem;
}

.service-features {
    list-style: none;
    padding: 1rem 0 0;
    border-top: 1px solid var(--line-soft);
}

.service-features li {
    padding: 0.45rem 0;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.service-features li i {
    color: var(--gold);
    font-size: 0.85rem;
}

.products-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-showcase-card {
    background: var(--cream);
    padding: 2rem;
    border: 1px solid var(--line);
}

.product-showcase-icon {
    width: 50px;
    height: 50px;
    background: var(--paper);
    color: var(--green);
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.product-showcase-icon i {
    font-size: 1.2rem;
    color: var(--green);
}

.product-showcase-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.product-showcase-card p {
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

.product-showcase-card ul {
    list-style: none;
    padding: 0;
}

.product-showcase-card li {
    padding: 0.35rem 0;
    color: var(--muted);
    padding-left: 1.4rem;
    position: relative;
    font-size: 0.95rem;
}

.product-showcase-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.location-info-box {
    background: var(--paper);
    padding: 3rem;
    border: 1px solid var(--line);
    max-width: 820px;
    margin: 0 auto;
}

.location-info-box h2 {
    font-size: 1.9rem;
    margin-bottom: 2rem;
    color: var(--ink);
    text-align: center;
}

.location-info-box h2 i {
    color: var(--gold);
    margin-right: 0.5rem;
}

.location-details h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.location-details .address {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.schedule-info h4 {
    font-size: 0.82rem;
    margin-bottom: 0.85rem;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
}

.schedule-info p {
    color: var(--muted);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.contact-info {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =====================================================
   Loyalty
   ===================================================== */
.card-placeholder {
    width: 100%;
    height: 320px;
    background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    box-shadow: 0 25px 50px -25px rgba(36, 74, 62, 0.4);
}

.loyalty-card-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 25px 50px -25px rgba(36, 74, 62, 0.4);
    display: block;
}

.card-placeholder i {
    font-size: 70px;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.card-placeholder h3 {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    color: #fff;
}

.benefit-highlight {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--green-soft);
    color: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 1.2rem;
    color: var(--green);
}

.benefit-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
    color: var(--ink);
}

.benefit-text p {
    color: var(--muted);
    font-size: 1rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 0.7rem 0;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.98rem;
    border-bottom: 1px solid var(--line-soft);
}

.benefits-list li:last-child { border-bottom: none; }

.benefits-list li i {
    color: var(--gold);
    font-size: 1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    background: var(--paper);
    padding: 2.5rem 1.75rem 2rem;
    border: 1px solid var(--line);
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    border: 4px solid var(--paper);
}

.step-icon {
    width: 64px;
    height: 64px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.25rem auto 1.5rem;
}

.step-icon i {
    font-size: 1.4rem;
    color: var(--green);
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
    color: var(--ink);
}

.step-card p {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
}

.terms-content {
    display: grid;
    gap: 1.5rem;
}

.terms-card {
    background: var(--paper);
    padding: 2rem 2.25rem;
    border: 1px solid var(--line);
}

.terms-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.terms-card h3 i {
    color: var(--gold);
}

.terms-card ul {
    list-style: none;
    padding: 0;
}

.terms-card li {
    padding: 0.85rem 0;
    color: var(--muted);
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.75;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1rem;
}

.terms-card li:last-child { border-bottom: none; }

.terms-card li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1;
    top: 0.6rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.faq-item {
    background: var(--paper);
    padding: 1.75rem 1.85rem;
    border: 1px solid var(--line);
    transition: border-color 0.25s ease;
}

.faq-item:hover { border-color: var(--gold-soft); }

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
    color: var(--ink);
    display: flex;
    align-items: start;
    gap: 0.7rem;
}

.faq-item h3 i {
    color: var(--gold);
    margin-top: 0.2rem;
}

.faq-item p {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
}

/* =====================================================
   CTA
   ===================================================== */
.cta-section {
    background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
    padding: 5rem 0;
    color: #fff;
}

.cta-content {
    text-align: center;
    color: #fff;
}

.cta-content h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--gold-soft);
    margin: 1.25rem auto 0;
}

.cta-content p {
    font-size: 1.05rem;
    margin: 1.5rem 0 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.social-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--green);
    border-color: #fff;
}

.cta-section .btn-primary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.cta-section .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-section .btn-secondary:hover {
    background: #fff;
    color: var(--green);
    border-color: #fff;
}

/* =====================================================
   Footer
   ===================================================== */
footer {
    background-color: var(--cream-2);
    color: var(--ink-2);
    padding: 2.75rem 0 1.25rem;
    border-top: 1px solid var(--line);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--line);
}

.footer-section h3 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.82rem;
    margin-bottom: 0.85rem;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
}

.footer-section p {
    color: var(--ink-2);
    margin-bottom: 0.3rem;
    font-size: 1rem;
    line-height: 1.55;
}

.footer-section p i {
    margin-right: 0.55rem;
    color: var(--green);
    width: 14px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    transition: all 0.25s ease;
}

.footer-section .social-links a { color: var(--green); }
.footer-section .social-links a:hover { color: var(--green-dark); }

.social-links a:hover {
    background: var(--green-soft);
    border-color: var(--green-dark);
    color: var(--green-dark);
    transform: translateY(-2px);
}

.footer-section a {
    color: inherit;
}

.footer-section a:hover {
    color: var(--green);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
}

.footer-bottom p {
    color: var(--muted);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
}

.footer-bottom a {
    color: var(--green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom a:hover { color: var(--green-dark); }

@media (max-width: 600px) {
    .footer-bottom { justify-content: center; text-align: center; }
}

/* =====================================================
   Recipes page
   ===================================================== */
.recipes-highlight {
    background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
    padding: 3.5rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.recipes-highlight h2 {
    font-size: 1.9rem;
    color: #fff;
}

.recipes-highlight p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 760px;
    font-size: 1.02rem;
    line-height: 1.8;
}

.recipes-services-section .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =====================================================
   Premium page components (optician, compounding, about)
   ===================================================== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
}

/* pale gold measured 2.9:1 over the hero photos, below the 4.5:1 this size needs */
.eyebrow--light { color: #fff; }

.section-head { text-align: center; }
.section-head .eyebrow { justify-content: center; }

/* Centred labels get a dash on both sides */
.section-head .eyebrow::after {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
}

.btn-light {
    background: #fff;
    color: var(--green-dark);
    border-color: #fff;
}

.btn-light:hover {
    background: var(--gold-soft);
    border-color: var(--gold-soft);
    color: var(--green-dark);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: #fff;
    color: #fff;
}

@keyframes heroIn {
    from { opacity: 0; translate: 0 24px; }
    to { opacity: 1; translate: 0 0; }
}

@keyframes heroZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

/* Full-bleed photo hero */
.photo-hero {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--green-dark);
    isolation: isolate;
}

.photo-hero__media,
.photo-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.photo-hero__media img {
    object-fit: cover;
    animation: heroZoom 14s ease-out both;
}

.photo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(100deg, rgba(20, 44, 37, 0.95) 0%, rgba(20, 44, 37, 0.82) 42%, rgba(20, 44, 37, 0.25) 100%),
        linear-gradient(0deg, rgba(16, 34, 28, 0.6) 0%, transparent 45%);
}

/* One height for every page hero except the home page's.
   It is the height Optică's hero always had: the split heroes' padding (13rem) plus
   the 3:2 picture in their right-hand column, which is a third of the container
   width once its 2 x 32px padding and the 80px column gap are taken out.
   Below 981px the heroes stack and keep their natural height. */
@media (min-width: 981px) {
    :root { --hero-h: calc(13rem + (min(100vw, 1240px) - 144px) / 3 + 1px); }

    .photo-hero,
    .split-hero { min-height: var(--hero-h); }

    .split-hero {
        display: flex;
        align-items: center;
    }

    .split-hero > .container { width: 100%; }

    /* the stacked-photo collage (recipes) fills what is left after the padding */
    .split-hero .split-hero__media:not(.split-hero__media--center) { min-height: calc(var(--hero-h) - 13rem - 1px); }
}

.photo-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.photo-hero__content {
    max-width: 620px;
    animation: heroIn 0.9s 0.1s ease both;
}

.photo-hero h1 {
    color: #fff;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.photo-hero__lead {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: 2.25rem;
}

.photo-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-badge {
    max-width: 310px;
    /* a dark panel, not a pale one: white text on the old 10% white wash
       dropped to 3.3:1 over the brighter parts of the photo */
    background: rgba(14, 30, 25, 0.62);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 1.6rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: heroIn 0.9s 0.35s ease both;
}

.hero-badge__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-badge p {
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.12rem;
    line-height: 1.45;
}

.scroll-cue {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-cue:hover { color: #fff; }

.scroll-cue i {
    color: var(--gold-soft);
    animation: cueBounce 2s ease-in-out infinite;
}

@keyframes cueBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Photo with an offset gold frame */
.framed-photo {
    position: relative;
    margin: 0;
}

.framed-photo::before {
    content: '';
    position: absolute;
    inset: 1.25rem -1.25rem -1.25rem 1.25rem;
    border: 1px solid var(--gold);
    pointer-events: none;
}

.framed-photo img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 30px 60px -30px rgba(36, 74, 62, 0.35);
}

/* Alternating photo + text rows */
.feature-section {
    padding: 7rem 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.feature {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 5.5rem;
    align-items: center;
}

.feature + .feature { margin-top: 7rem; }

.feature--reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.feature--reverse .feature__media { order: 2; }
.feature--reverse .framed-photo::before { inset: 1.25rem 1.25rem -1.25rem -1.25rem; }

.feature__media img { aspect-ratio: 4 / 5; }
.feature--reverse .feature__media img { aspect-ratio: 4 / 3; }

.feature__content h2 {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    margin-bottom: 1.25rem;
}

.feature__content > p {
    font-size: 1.02rem;
    line-height: 1.85;
    margin-bottom: 1.75rem;
}

.check-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 1.5rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink-2);
    font-size: 1rem;
}

.check-list i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    font-size: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-list--compact {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    border-top: 1px solid var(--line-soft);
    padding-top: 1.1rem;
    margin-top: auto;
}

.check-list--compact li {
    font-size: 0.95rem;
    color: var(--muted);
}

/* Photo mosaic */
.gallery-section {
    padding: 6rem 0;
    background: var(--cream);
}

.photo-mosaic {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.25rem;
    height: 520px;
    margin-top: 1rem;
}

.photo-mosaic__item {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: var(--cream-2);
}

.photo-mosaic__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.photo-mosaic__item:hover img { transform: scale(1.05); }

.photo-mosaic__item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 1.25rem 1.1rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: linear-gradient(0deg, rgba(14, 28, 23, 0.92) 0%, rgba(14, 28, 23, 0.72) 55%, transparent 100%);
}

/* Category cards */
.categories-section {
    padding: 6rem 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.category-grid,
.prep-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--cream);
    border: 1px solid var(--line);
    padding: 2.25rem 2rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    width: 0;
    background: var(--gold);
    transition: width 0.5s ease;
}

.category-card:hover {
    background: var(--paper);
    border-color: var(--gold-soft);
    box-shadow: 0 24px 48px -28px rgba(36, 74, 62, 0.35);
    transform: translateY(-4px);
}

.category-card:hover::after { width: 100%; }

.category-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--gold-soft);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.4rem;
}

.category-card h3,
.prep-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.65rem;
}

.category-card > p,
.prep-card > p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.4rem;
}

/* Visit card */
.visit-section {
    padding: 6rem 0;
    background: var(--cream);
}

.visit-card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 40px 80px -50px rgba(36, 74, 62, 0.4);
    overflow: hidden;
}

.visit-card__media {
    margin: 0;
    min-height: 440px;
}

.visit-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visit-card__body {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.visit-card__body h2 {
    font-size: 2.1rem;
    margin-bottom: 0.75rem;
}

.visit-card__address {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink-2);
}

.visit-card__address i { color: var(--gold); }

.hours-list {
    width: 100%;
    margin: 1.25rem 0 2rem;
    border-top: 1px solid var(--line-soft);
}

.hours-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1rem;
}

.hours-list dt { color: var(--muted); }

.hours-list dd {
    color: var(--ink);
    font-weight: 600;
}

.visit-card__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Split hero with stacked photos */
.split-hero {
    background: var(--cream);
    padding: 6rem 0 7rem;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.split-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5rem;
    align-items: center;
}

.split-hero__content { animation: heroIn 0.9s 0.1s ease both; }

.split-hero h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.split-hero__lead {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 2.25rem;
    max-width: 520px;
}

.split-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.split-hero__media {
    position: relative;
    min-height: 480px;
}

/* One hero for every page: text on the left, picture on the right */
.split-hero__media--center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.split-hero__photo {
    width: 100%;
    margin: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(36, 74, 62, 0.45);
    animation: heroIn 1s 0.2s ease both;
}

.split-hero__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* loyalty: give the benefit box room under the title */
.split-hero h1 + .benefit-highlight { margin-top: 1.9rem; }

/* Compact hero (Oferte, Card de fidelitate): smaller padding and picture; the shared
   hero height above keeps the content in the middle. */
.split-hero--compact { padding: 4.5rem 0 3.5rem; }
.split-hero--compact .split-hero__grid { gap: 4rem; }
.split-hero--compact .split-hero__media--center .loyalty-card-img { max-width: 380px; }

.split-hero--compact h1 { margin-bottom: 1.25rem; }
.split-hero--compact .split-hero__lead { max-width: none; }
.split-hero__lead--tight { margin-bottom: 1rem; }
.split-hero__lead--tight + .scroll-cue { margin-top: 0.75rem; }
.split-hero--compact .benefits-list {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
}
.split-hero--compact .benefits-list li { padding: 0.5rem 0; align-items: flex-start; }
.split-hero--compact .benefits-list li i { margin-top: 0.3rem; }
@media (max-width: 980px) {
    .split-hero--compact .benefits-list { grid-template-columns: minmax(0, 1fr); }
}

/* loyalty: the card, not a photo */
.split-hero__media--center .loyalty-card-img {
    max-width: 520px;
    animation: heroIn 1s 0.2s ease both;
}

/* legal pages: title only, shorter */
.split-hero--text { padding: 4.5rem 0 3.5rem; }
.split-hero--text h1 { margin-bottom: 0; }
.split-hero--text h1 + .split-hero__lead { margin: 1.25rem 0 0; }

/* No hard rule under a split hero: its cream fades into the next section */
.split-hero {
    position: relative;
    border-bottom: 0;
}

.split-hero + section { border-top: 0; }

/* next section is the same cream: nothing to fade into */
.split-hero:has(+ .history)::after,
.split-hero:has(+ .legal)::after { display: none; }

.split-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 7rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

/* the offers hero is text only: keep it hero-sized and centred */
.split-hero--text.split-hero--compact {
    display: flex;
    align-items: center;
}

.split-hero--text.split-hero--compact > .container { width: 100%; }

@media (max-width: 980px) {
    .split-hero--text.split-hero--compact { min-height: 30rem; }
}

/* the "journey through history" cue, on a light background */
.split-hero .scroll-cue {
    flex-direction: row;
    gap: 0.6rem;
    color: var(--green);
}
.split-hero .scroll-cue:hover { color: var(--green-dark); }

.stack-photo {
    position: absolute;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(36, 74, 62, 0.45);
}

.stack-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-photo--main {
    top: 0;
    right: 0;
    width: 100%;
    aspect-ratio: 3 / 2;
    z-index: 1;
    animation: heroIn 1s 0.2s ease both;
}

.stat-card {
    position: absolute;
    right: 1.5rem;
    bottom: -1.75rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    min-width: 170px;
    padding: 1.4rem 1.6rem;
    background: var(--green);
    box-shadow: 0 20px 40px -20px rgba(36, 74, 62, 0.6);
    animation: heroIn 1s 0.7s ease both;
}

.stat-card__value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--gold-soft);
}

.stat-card__label {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
}

/* Editorial statement + stats */
.statement-section {
    padding: 6.5rem 0;
    background: var(--paper);
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.statement__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--gold-soft);
    color: var(--green);
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.statement {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    line-height: 1.6;
    color: var(--ink);
    max-width: 900px;
    margin: 0 auto 3.5rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 2rem 1rem 0;
}

.stat + .stat { border-left: 1px solid var(--line); }

.stat__value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.4rem;
    line-height: 1.1;
    color: var(--green);
}

.stat__label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Compounding cards */
.recipes-services-section {
    background: var(--cream);
    border-top: 0;
}

.recipes-process-section {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.prep-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 2.5rem 2rem 2rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.prep-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-soft);
    box-shadow: 0 28px 56px -32px rgba(36, 74, 62, 0.4);
}

.prep-grid { counter-reset: prep; }

/* Decorative 01-06: generated by CSS so it is not read out or counted as text */
.prep-card::before {
    counter-increment: prep;
    content: counter(prep, decimal-leading-zero);
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--cream-2);
    transition: color 0.35s ease;
}

.prep-card:hover::before { color: var(--gold-soft); }

.prep-card__num {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--cream-2);
    transition: color 0.35s ease;
}

.prep-card:hover .prep-card__num { color: var(--gold-soft); }

.prep-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Process steps */
.process {
    list-style: none;
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.process::before,
.process::after {
    content: '';
    position: absolute;
    top: 32px;
    left: 16.67%;
    right: 16.67%;
    height: 1px;
    background: var(--line);
}

.process::after {
    background: var(--gold);
    transform-origin: left;
    transition: transform 1.6s cubic-bezier(0.6, 0, 0.2, 1);
}

.process__step {
    position: relative;
    z-index: 1;
    text-align: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.process__dot {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--green);
    border: 1px solid var(--green);
    color: #fff;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
    transition-delay: inherit;
}

.process__step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.process__step p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 240px;
    margin: 0 auto;
}

/* Animated only when JS is running (content stays visible otherwise) */
.js .process::after { transform: scaleX(0); }
.js .process.is-visible::after { transform: scaleX(1); }

.js .process__step {
    opacity: 0.35;
    transform: translateY(12px);
}

.js .process__dot {
    background: var(--paper);
    border-color: var(--gold-soft);
    color: var(--green);
}

.js .process.is-visible .process__step {
    opacity: 1;
    transform: none;
}

.js .process.is-visible .process__dot {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.js .process.is-visible .process__step:nth-child(2) { transition-delay: 0.4s; }
.js .process.is-visible .process__step:nth-child(3) { transition-delay: 0.8s; }

/* Full-width photo band with parallax */
.photo-band {
    position: relative;
    height: 460px;
    overflow: hidden;
    background: var(--green-dark);
}

.photo-band__img {
    position: absolute;
    left: 0;
    top: -15%;
    width: 100%;
    height: 130%;
    object-fit: cover;
    transform: translate3d(0, var(--parallax, 0px), 0);
}

.photo-band__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(25, 52, 44, 0.88) 0%, rgba(25, 52, 44, 0.35) 100%);
}

.photo-band__quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.2;
    color: #fff;
    max-width: 640px;
}

.photo-band__quote::before {
    content: '\201C';
    display: block;
    font-size: 4rem;
    line-height: 0.6;
    color: var(--gold-soft);
    margin-bottom: 0.75rem;
}

.photo-band__caption {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

/* About: journey through time */
.history {
    padding: 7rem 0 6rem;
    background: var(--cream);
}

.history__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 1.5rem;
}

.history__stage { display: none; }

.history__list {
    list-style: none;
    position: relative;
    padding-left: 3rem;
}

.history__list::before,
.history__list::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--line);
}

.history__list::after {
    background: linear-gradient(180deg, var(--gold), var(--green));
    transform-origin: top;
    transform: scaleY(var(--progress, 0));
}

.history__item {
    position: relative;
    padding-bottom: 3.5rem;
}

.history__item::before {
    content: '';
    position: absolute;
    left: calc(-3rem + 1px);
    top: 0.45rem;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--cream);
    border: 1px solid var(--gold);
    box-shadow: 0 0 0 4px var(--cream);
    z-index: 1;
    transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.history__item.is-past::before {
    background: var(--green);
    border-color: var(--green);
}

.history__item.is-active::before {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.15);
    box-shadow: 0 0 0 4px var(--cream), 0 0 0 10px rgba(184, 166, 125, 0.25);
}

.history__date {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    line-height: 1.1;
    color: var(--green);
    margin-bottom: 0.35rem;
}

.history__item h3 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin-bottom: 0.75rem;
}

.history__item p:not(.history__date) {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 480px;
}

.history__photo {
    margin: 1.5rem 0 0;
    max-width: 520px;
}

.history__photo img {
    width: 100%;
    height: auto;
    box-shadow: 0 24px 48px -28px rgba(36, 74, 62, 0.4);
}

.history__year {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(4rem, 7vw, 6.5rem);
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--green);
    margin-bottom: 1.5rem;
    min-height: 1em;
    transition: color 0.8s ease;
}

.history__stage[data-era="archive"] .history__year { color: #7a6243; }

.history__frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9e1d3;
    box-shadow: 0 40px 80px -40px rgba(36, 74, 62, 0.45);
}

.history__frame::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    pointer-events: none;
    z-index: 5;
}

.history__slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    clip-path: inset(0 0 0 100%);
    transition: clip-path 1s cubic-bezier(0.7, 0, 0.2, 1), opacity 0s linear 1s;
}

.history__slide.is-active {
    z-index: 3;
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition: clip-path 1s cubic-bezier(0.7, 0, 0.2, 1);
}

.history__slide.is-leaving {
    z-index: 2;
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition: none;
}

.history__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transition: transform 6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 1.6s ease;
}

.history__slide.is-active img { transform: scale(1); }

.history__slide--archive img { filter: sepia(0.55) contrast(1.05) brightness(0.97); }
.history__slide--modern img { filter: grayscale(1) sepia(0.3); }

/* Modern photos bloom from sepia into full colour */
.history__slide--modern.is-active img {
    filter: none;
    transition-delay: 0s, 0.5s;
}

.history__slide--card {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(0deg, rgba(122, 98, 67, 0.035) 0 1px, transparent 1px 4px),
        radial-gradient(ellipse at center, #f6efe0 0%, #e4d5b8 100%);
}

.archive-card {
    width: 78%;
    padding: 2.5rem 2rem;
    text-align: center;
    color: #6b5436;
    border: 1px solid rgba(122, 98, 67, 0.4);
    outline: 1px solid rgba(122, 98, 67, 0.22);
    outline-offset: 6px;
}

.archive-card::before {
    content: '\2726';
    display: block;
    margin-bottom: 1rem;
    color: rgba(122, 98, 67, 0.6);
}

.archive-card__text {
    display: block;
    margin-top: 1rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    line-height: 1.5;
}

.archive-card__title {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.history__caption {
    margin-top: 1.25rem;
    min-height: 1.4em;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.history__sources {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
}

.history__sources h3 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 0.75rem;
}

.history__sources ol {
    display: grid;
    gap: 0.3rem;
    padding-left: 1.2rem;
    color: var(--muted);
}

.history__sources a {
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.history__sources a:hover { color: var(--green); }

.history--enhanced .history__stage {
    display: block;
    position: sticky;
    top: var(--stage-top, 150px);
    z-index: 4;
}

.history--enhanced .history__photo { display: none; }

.history--enhanced .history__item { min-height: 40vh; }

/* Inactive milestones are quieter but stay readable (no opacity: keeps WCAG contrast) */
.history--enhanced .history__date,
.history--enhanced .history__item h3 { transition: color 0.4s ease; }
.history--enhanced .history__item:not(.is-active) .history__date,
.history--enhanced .history__item:not(.is-active) h3 { color: var(--muted); }

.history--enhanced .history__item:last-child { min-height: 0; }

@media (min-width: 981px) {
    .history--enhanced .history__layout {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        gap: 5rem;
        align-items: start;
    }
}

/* Tablets and phones: the stage pins above the timeline as a compact bar */
@media (max-width: 980px) {
    .history--enhanced .history__stage {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: end;
        column-gap: 1rem;
        padding: 0.5rem 0 1rem;
        margin-bottom: 1.5rem;
        background: var(--cream);
        /* full-bleed background without changing the layout width */
        box-shadow: 0 0 0 100vmax var(--cream);
        clip-path: inset(0 -100vmax -28px);
    }

    .history--enhanced .history__stage::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 28px;
        background: linear-gradient(var(--cream), rgba(250, 249, 247, 0));
        pointer-events: none;
    }

    .history--enhanced .history__year {
        font-size: 2.6rem;
        margin-bottom: 0.5rem;
    }

    .history--enhanced .history__caption {
        grid-row: 1;
        grid-column: 2;
        margin: 0 0 0.85rem;
        min-height: 0;
        text-align: right;
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .history--enhanced .history__frame {
        grid-row: 2;
        grid-column: 1 / -1;
        width: 100%;
        max-height: 30vh;
    }

    .history--enhanced .history__item { min-height: 34vh; }

    .archive-card {
        width: 88%;
        padding: 1rem 0.75rem;
        outline-offset: 4px;
    }

    .archive-card::before { margin-bottom: 0.35rem; }

    .archive-card__text {
        margin-top: 0.5rem;
        font-size: 1rem;
        line-height: 1.4;
    }
}

@media (max-width: 980px) {
    .photo-hero .photo-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding-top: 4rem;
        padding-bottom: 3.5rem;
    }

    .hero-badge { max-width: 100%; }

    .feature,
    .feature--reverse {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
    }

    .feature--reverse .feature__media { order: 0; }
    .feature + .feature { margin-top: 5rem; }
    .feature__media img,
    .feature--reverse .feature__media img { aspect-ratio: 4 / 3; }

    .photo-mosaic {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }

    .photo-mosaic__item--wide {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 9;
    }

    .photo-mosaic__item:not(.photo-mosaic__item--wide) { aspect-ratio: 3 / 4; }

    .category-grid,
    .prep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .visit-card { grid-template-columns: minmax(0, 1fr); }

    .visit-card__media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .split-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 3.5rem;
    }

}

@media (max-width: 768px) {
    .photo-hero { min-height: 0; }

    /* .container (below) resets the sides to 24px with a shorthand that would also
       zero the top and bottom, so this needs the extra specificity */
    .photo-hero .photo-hero__inner {
        padding-top: 3.5rem;
        padding-bottom: 3rem;
    }

    .feature-section,
    .gallery-section,
    .categories-section,
    .visit-section,
    .statement-section,
    .history { padding: 4rem 0; }

    .split-hero { padding: 3.5rem 0 4.5rem; }

    .framed-photo::before,
    .feature--reverse .framed-photo::before { inset: 0.75rem -0.75rem -0.75rem 0.75rem; }

    .check-list { grid-template-columns: 1fr; }

    .photo-mosaic { grid-template-columns: 1fr; }
    /* the sunglasses stand is a portrait photo: keep it portrait instead of cropping it wide */
    .photo-mosaic__item:not(.photo-mosaic__item--wide) {
        aspect-ratio: 3 / 4;
        width: 100%;
        max-width: 420px;
        justify-self: center;
    }

    .category-grid,
    .prep-grid { grid-template-columns: minmax(0, 1fr); }

    .visit-card__body { padding: 2rem 1.5rem; }

    .stat-card {
        min-width: 0;
        padding: 1rem 1.2rem;
    }

    .stat-card__value { font-size: 1.9rem; }

    .stats-row { grid-template-columns: minmax(0, 1fr); }

    .stat {
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--line);
    }

    .stat + .stat { border-left: 0; }

    .process { grid-template-columns: minmax(0, 1fr); }

    .photo-band { height: 360px; }

    .history__list { padding-left: 2.25rem; }
    .history__item::before { left: calc(-2.25rem + 1px); }
}

/* =====================================================
   Back to top + scroll reveal
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--green);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top.visible:hover {
    transform: translateY(-5px);
    background-color: var(--green-dark);
}

/* Uses `translate` so it never conflicts with the cards' hover `transform` */
.reveal:not(.is-visible) {
    opacity: 0;
}

.reveal.is-visible {
    animation: reveal 0.6s ease both;
}

@keyframes reveal {
    from { opacity: 0; translate: 0 20px; }
    to { opacity: 1; translate: 0 0; }
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 980px) {
    .hero-title { font-size: 2.8rem; }

    .container { padding: 0 24px; }

    .hero-container,
    .about-container,
    .recipes-preview-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image .before-after-slider { max-width: none; }


    .pre-header-contacts { gap: 1.75rem; }
    .pre-header .lang-switcher { display: none; }
}

@media (max-width: 1100px) {
    .nav-menu { gap: 1.35rem; }
}

/* Dropdown navigation (hamburger) */
@media (max-width: 980px) {
    .nav-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        background-color: var(--paper);
        text-align: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        padding: 1.5rem 0;
        gap: 0;
        border-top: 1px solid var(--line);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu li { padding: 0.85rem 0; }

    .hamburger { display: flex; }

    .navbar .container { gap: 0.75rem; }
    .logo { margin-right: auto; }
    .lang-dropdown { display: block; }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

@media (max-width: 768px) {
    .pre-header-contacts {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }

    .pre-header-contacts a {
        flex-direction: column;
        gap: 0.1rem;
        padding: 0 0.25rem;
        line-height: 1.25;
        text-align: center;
    }

    .pre-header-contacts a + a { border-left: 1px solid rgba(255, 255, 255, 0.14); }
    .pre-header-contacts i { display: none; }

    .pre-header__label {
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--gold-soft);
    }

    .pre-header__label::after { content: none; }

    .pre-header__number {
        font-size: 0.85rem;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    /* Phone bar scrolls away on mobile; only the nav bar stays sticky */
    .pre-header {
        position: static;
        height: auto;
        padding: 0.55rem 0;
    }

    header { top: 0; }

    html { scroll-padding-top: 100px; }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .hero { padding: 4rem 0 3.5rem; }
    .hero-title { font-size: 2.2rem; }

    .products-section,
    .locations-section,
    .about-section,
    .products-detail-section,
    .locations-detail-section,
        .timeline-section,
    .offers-section,
    .optical-intro-section,
    .optical-services-section,
    .optical-products-section,
    .optical-location-section,
        .loyalty-how-section,
    .loyalty-terms-section,
    .loyalty-faq-section,
    .cta-section,
    .recipes-preview-section,
    .recipes-intro-section,
    .recipes-services-section,
    .recipes-process-section {
        padding: 4rem 0;
    }

    .timeline::before { left: 0; }
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding-left: 2rem;
    }
    .timeline-item::before { left: 0; }
    .timeline-date { text-align: left; }

    .products-grid,
    .products-detail-grid,
    .services-grid,
    .products-showcase,
    .steps-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .contact-buttons,
    .contact-info,
    .social-cta-buttons {
        flex-direction: column;
    }

    .btn { width: 100%; }
    .product-detail-card,
    .location-detail-card,
    .terms-card,
    .location-info-box {
        padding: 1.75rem;
    }
}

/* Very small phones (iPhone SE and similar): keep logo, language and menu on one row */
@media (max-width: 400px) {
    .logo img { height: 42px; }
    .navbar .container { gap: 0.5rem; }

    .lang-dropdown summary {
        gap: 0.3rem;
        padding: 0.45rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-title { font-size: 1.85rem; }
    .section-title,
    .cta-content h2,
    .about-content h2 { font-size: 1.7rem; }

    .offers-notice,
    .special-note {
        flex-direction: column;
        text-align: left;
    }
}

/* =====================================================
   "Ce găsiți la noi" (homepage): unequal picture panels that widen on hover
   ===================================================== */
.goods,
.places {
    --m: 6vw;
    --g: clamp(12px, 1.7vw, 24px);
    --step: calc((100vw - 2 * var(--m) - 11 * var(--g)) / 12 + var(--g));
    --t-h2: clamp(36px, 4.4vw, 64px);
    --t-statement: clamp(22px, 2.1vw, 30px);
    --t-body: 18px;
    --t-small: 15px;
    --goods-ink: #1c2622;
    --goods-soft: #4a5550;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    background-color: var(--cream);
    padding: 160px 0 180px;
    color: var(--goods-ink);
    font-size: var(--t-body);
    line-height: 1.55;
}

.band {
    display: flex;
    height: 68svh;
    min-height: 460px;
}

.band__panel {
    position: relative;
    flex: var(--grow) 1 0;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    transition: flex-grow 500ms var(--ease-in-out);
}

.band__panel:hover { color: #fff; }

.band__panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms var(--ease-out);
}

/* keep the glasses in view when the optics panel is a narrow slice */
.band__panel:nth-child(4) img { object-position: 66% 50%; }

/* neutral scrim under the label only */
.band__name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 24px 22px;
    font: 400 var(--t-statement)/1.15 'Playfair Display', Georgia, serif;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.62) 45%, rgba(0, 0, 0, 0) 100%);
}

.band__panel:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}

@media (hover: hover) and (min-width: 900px) {
    .band__panel:hover { flex-grow: 6; }
    .band__panel:hover img { transform: scale(1.04); }
}

@media (prefers-reduced-motion: no-preference) {
    .js .goods [data-reveal],
    .js .places [data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
        transition-delay: calc(var(--d, 0) * 80ms);
    }

    .js .goods [data-reveal].is-in,
    .js .places [data-reveal].is-in {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 900px) {
    .goods,
    .places {
        --m: 20px;
        padding: 96px 0 120px;
    }

    .places { padding: 0; }

    .band {
        flex-wrap: wrap;
        height: 84svh;
        min-height: 520px;
    }

    .band__panel {
        flex: none;
        height: 50%;
    }

    .band__panel:nth-child(1),
    .band__panel:nth-child(4) { width: 64%; }
    .band__panel:nth-child(2),
    .band__panel:nth-child(3) { width: 36%; }

    .band__name {
        font-size: var(--t-body);
        padding: 36px 14px 14px;
    }
}

/* "Pe același colț din 1899", under the Despre Noi heading */
.about-content .about-tagline {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--green-dark);
    margin: -0.25rem 0 1.5rem;
}

/* =====================================================
   Footer: legal links
   ===================================================== */
.footer-legal {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.75rem;
    padding-bottom: 0.5rem;
}

.footer-legal a {
    color: var(--ink-2);
    font-size: 0.9rem;
    text-decoration: underline;
    text-decoration-color: var(--gold-soft);
    text-underline-offset: 4px;
}

.footer-legal a:hover {
    color: var(--green);
    text-decoration-color: var(--green);
}

/* =====================================================
   Legal pages (terms, privacy, returns): one calm reading column
   ===================================================== */
.legal {
    padding: 4rem 0 6rem;
    background-color: var(--cream);
}

.legal__inner {
    /* left edge on the same line as the hero title above it */
    max-width: 46rem;
    margin: 0;
}

.legal .legal__updated {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 2.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.legal h2 {
    font-size: 1.55rem;
    margin: 2.6rem 0 0.9rem;
    -webkit-hyphens: manual;
    hyphens: manual;
}

.legal h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.legal p,
.legal li {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--ink-2);
}

.legal p + p { margin-top: 0.9rem; }

.legal p { margin-bottom: 0.9rem; }

.legal ul {
    margin: 0 0 1rem;
    padding-left: 1.3rem;
}

.legal li { margin-bottom: 0.55rem; }

.legal li::marker { color: var(--gold-text); }

.legal a {
    color: var(--green);
    text-decoration: underline;
    text-decoration-color: var(--gold-soft);
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.legal a:hover { text-decoration-color: var(--green); }

/* returns page: "can" / "cannot" cards */
.legal__split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
    margin: 0.4rem 0 1.5rem;
}

.legal__card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 14px;
    padding: 1.4rem 1.5rem 1rem;
}

.legal__card p { font-size: 0.98rem; }

@media (max-width: 768px) {
    .legal { padding: 2.75rem 0 4rem; }
    .legal__split { grid-template-columns: 1fr; }
    /* three short links sit side by side and wrap, instead of one per line */
    .footer-legal {
        justify-content: center;
        gap: 0.3rem 1.1rem;
        padding-bottom: 0.6rem;
    }
    .footer-legal a {
        font-size: 0.82rem;
        font-weight: 400;
        text-underline-offset: 3px;
    }
}

/* =====================================================
   404: a pharmacy cross where the zero would be
   ===================================================== */
.notfound {
    background-color: var(--cream);
    padding: 5rem 0 6.5rem;
    text-align: center;
}

.notfound__code {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: clamp(0.4rem, 2vw, 1.2rem);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-variant-numeric: lining-nums;
    font-size: clamp(6rem, 22vw, 11rem);
    line-height: 1;
    color: var(--green);
}

/* the cross is drawn from two bars, the same shape as the favicon */
.notfound__cross {
    --bar: 0.2em;
    position: relative;
    display: inline-block;
    width: 0.68em;
    height: 0.68em;
    background:
        linear-gradient(var(--gold), var(--gold)) center / 100% var(--bar) no-repeat,
        linear-gradient(var(--gold), var(--gold)) center / var(--bar) 100% no-repeat;
    border-radius: 6px;
}

.notfound h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.9rem;
    -webkit-hyphens: manual;
    hyphens: manual;
}

.notfound__lead {
    max-width: 34rem;
    margin: 0 auto 2.25rem;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--ink-2);
}

.notfound__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.notfound__links {
    max-width: 40rem;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.notfound__links p {
    margin-bottom: 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.notfound__links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    padding: 0;
}

.notfound__links a {
    display: inline-block;
    padding: 0.55rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: var(--paper);
    color: var(--ink-2);
    font-size: 0.95rem;
}

.notfound__links a:hover {
    border-color: var(--green);
    color: var(--green);
}

@media (max-width: 768px) {
    .notfound { padding: 3rem 0 4rem; }
    .notfound__actions .btn { flex: 1 1 100%; }
}

/* =====================================================
   Map: the three locations on OpenStreetMap (homepage)
   ===================================================== */
/* "Preparare rețete" and "Despre noi" read as one continuous cream block */
.recipes-preview-section + .about-section {
    background-color: var(--cream);
    border-top: 0;
}

.places {
    /* just the map now (no title), so no section padding: it sits as a band */
    padding: 0;
    border-top: 1px solid var(--line);
}

.goods {
    padding: 72px 0 80px;
}

@media (max-width: 900px) {
    .goods { padding: 48px 0 56px; }
}

.places__map {
    position: relative;
    z-index: 0; /* keep Leaflet panes under the sticky header */
    height: 300px;
    background: #e9e5dc;
}

/* calmer tiles, closer to the brand's cream and green */
.places__map .leaflet-tile-pane { filter: grayscale(0.55) sepia(0.12) contrast(0.95); }
.places__map.leaflet-container { font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.places__map .leaflet-control-attribution { font-size: 12px; }

/* pins: the marker is the dot; the label hangs beside it */
.map-pin {
    border-radius: 50%;
    background: var(--pin);
    border: 5px solid #fff;
    box-sizing: border-box;
    /* solid ring, not a blur: keeps the pin readable over pale streets */
    box-shadow: 0 0 0 2px var(--pin);
    transition: background-color 0.25s ease; /* never transform: Leaflet positions markers with it */
}

.map-pin__label {
    position: absolute;
    top: 50%;
    left: calc(100% + 9px);
    transform: translateY(-50%);
    padding: 5px 11px;
    background: var(--pin);
    color: #fff;
    font: 700 15px/1.2 'Source Sans 3', sans-serif;
    white-space: nowrap;
}

.map-pin--left .map-pin__label {
    left: auto;
    right: calc(100% + 9px);
}

.map-pin.is-active,
.map-pin:hover {
    background: var(--pin-dark);
    box-shadow: 0 0 0 2px var(--pin-dark);
    z-index: 1000 !important;
}

.map-pin.is-active .map-pin__label,
.map-pin:hover .map-pin__label { background: var(--pin-dark); }

.places__map .leaflet-popup-content-wrapper { border-radius: 0; }
.places__map .leaflet-popup-content { margin: 16px 18px; font-size: 15px; line-height: 1.45; color: var(--goods-ink); }
.places__map .leaflet-popup-content strong { display: block; font: 400 20px/1.2 'Playfair Display', Georgia, serif; color: var(--green-dark); margin-bottom: 4px; }
.places__map .leaflet-popup-content a { color: var(--green); font-weight: 600; }

/* open / closed line inside the popup */
.map-popup__status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 6px 0 2px;
    font-weight: 600;
    color: var(--ok);
}

.map-popup__status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.map-popup__status.closed { color: var(--err); }
.map-popup__status.holiday { color: var(--warn); }

@media (max-width: 900px) {
}

/* Phones: the small label above a hero title is dropped altogether */
@media (max-width: 768px) {
    .hero-photo .eyebrow,
    .photo-hero .eyebrow,
    .split-hero .eyebrow {
        display: none;
    }
}

/* Stacked hero (below 981px): the picture sets the media column's height, so the
   "100+" card anchors to the picture's own bottom corner instead of to a taller,
   empty box. */
@media (max-width: 980px) {
    .split-hero__media:not(.split-hero__media--center) { min-height: 0; }
    .stack-photo--main { position: relative; }
    .split-hero__media:has(.stat-card) { margin-bottom: 1.5rem; }
    .stat-card {
        right: 1rem;
        bottom: -1.5rem;
    }
}
