/* ==============================================
   ESR — Endocrine Society of Rajkot
   Token system: OKLCH, semantic naming, custom only
   Fonts: Sorts Mill Goudy (headings) + Public Sans (body)
   ============================================== */

/* ---------- TOKENS: Colors (OKLCH) ---------- */
:root {
    /* Brand: deep teal-green */
    --color-primary:       oklch(41% 0.055 188);
    --color-primary-light: oklch(48% 0.055 188);
    --color-primary-dark:  oklch(31% 0.045 188);

    /* Accent: warm gold */
    --color-accent:        oklch(70% 0.11 82);
    --color-accent-dark:   oklch(60% 0.10 82);
    --color-accent-light:  oklch(82% 0.07 82);

    /* Neutrals — tinted toward brand green */
    --color-bg:            oklch(98.5% 0.003 175);
    --color-bg-alt:        oklch(96% 0.005 175);
    --color-surface:       oklch(99.2% 0.002 175);
    --color-text:          oklch(18% 0.008 200);
    --color-text-secondary:oklch(42% 0.012 190);
    --color-text-muted:    oklch(55% 0.010 185);
    --color-border:        oklch(87% 0.008 185);
    --color-border-light:  oklch(92% 0.005 180);

    /* Feedback */
    --color-success: oklch(55% 0.12 160);
    --color-warning: oklch(58% 0.14 75);
    --color-error:   oklch(48% 0.18 25);

    /* Shadows — brand-tinted */
    --shadow-color: 189 20% 12%;
    --shadow-xs:  0 1px 2px oklch(18% 0.008 190 / 0.04);
    --shadow-sm:  0 1px 4px oklch(18% 0.008 190 / 0.06);
    --shadow-md:  0 4px 12px oklch(18% 0.008 190 / 0.08);
    --shadow-lg:  0 8px 24px oklch(18% 0.008 190 / 0.10);
    --shadow-xl:  0 12px 36px oklch(18% 0.008 190 / 0.12);
}

/* ---------- TOKENS: Typography ---------- */
:root {
    --font-heading: 'Sorts Mill Goudy', 'Georgia', serif;
    --font-body:    'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* 6-step type scale — ratio >= 1.25 between steps
       Body fixed at 1rem; headings fluid for content pages */
    --text-label:   0.6875rem;           /* 11px — tiny labels, badges */
    --text-caption: 0.8125rem;           /* 13px — footer, small print */
    --text-sm:      0.875rem;            /* 14px — secondary, cards, FAQ answers */
    --text-body:    1rem;                /* 16px — all body copy, fixed not fluid */
    --text-subhead: 1.25rem;             /* 20px — card titles, lead-ins */
    --text-heading-section: clamp(1.5rem, 1.375rem + 0.75vw, 1.875rem);   /* 24-30px — section headers */
    --text-heading-page:   clamp(2rem, 1.75rem + 1.5vw, 2.75rem);         /* 32-44px — page/event titles */
    --text-heading-hero:   clamp(2.75rem, 2.25rem + 2vw, 3.75rem);        /* 44-60px — hero */

    --leading-heading:  1.18;
    --leading-tight:    1.3;
    --leading-normal:   1.55;
    --leading-relaxed:  1.65;
    --leading-loose:    1.75;

    --tracking-tight: -0.015em;
    --tracking-label:  0.04em;

    /* Line length — set in ch to scale with font size */
    --measure-body: 65ch;
    --measure-narrow: 55ch;
}

/* ---------- TOKENS: Spacing (4pt scale) ---------- */
:root {
    --space-xs: 0.25rem;   /*   4px */
    --space-sm: 0.5rem;    /*   8px */
    --space-md: 0.75rem;   /*  12px */
    --space-base: 1rem;    /*  16px */
    --space-lg: 1.5rem;    /*  24px */
    --space-xl: 2rem;      /*  32px */
    --space-2xl: 3rem;     /*  48px */
    --space-3xl: 4rem;     /*  64px */
    --space-4xl: 5rem;     /*  80px */
    --space-5xl: 6.5rem;   /* 104px */

    /* Fluid section padding */
    --section-pad: clamp(3rem, 2rem + 5vw, 5rem);
}

/* ---------- TOKENS: Borders & Radius ---------- */
:root {
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-xl: 16px;

    --border-thin: 1px solid var(--color-border);
}

/* ---------- TOKENS: Transitions ---------- */
:root {
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-base: 250ms var(--ease-out);
    --transition-slow: 400ms var(--ease-out);
}

/* ==============================================
   RESET & BASE
   ============================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-kerning: normal;
    overflow-x: hidden;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--color-primary-light); }

::selection {
    background: oklch(70% 0.04 188 / 0.2);
    color: var(--color-text);
}

/* ---------- Focus ---------- */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ---------- Layout ---------- */
.esr-container {
    max-width: 72rem;
    margin: 0 auto;
    padding-left: clamp(1rem, 3vw, var(--space-xl));
    padding-right: clamp(1rem, 3vw, var(--space-xl));
}

.esr-container--narrow { max-width: 44rem; }
.esr-container--wide   { max-width: 60rem; }

/* Large screens: let content breathe */
@media (min-width: 1600px) {
    .esr-container           { max-width: 80rem; }
    .esr-container--narrow   { max-width: 50rem; }
    .esr-container--wide     { max-width: 68rem; }
}

@media (min-width: 2000px) {
    .esr-container           { max-width: 88rem; }
    .esr-container--narrow   { max-width: 54rem; }
    .esr-container--wide     { max-width: 76rem; }
}

.esr-skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-base);
    background: var(--color-primary);
    color: var(--color-surface);
    padding: var(--space-sm) var(--space-base);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 1000;
    font-size: var(--text-sm);
    font-weight: 600;
}
.esr-skip-link:focus-visible {
    top: 0;
    outline: none;
    box-shadow: var(--shadow-lg);
}

/* ==============================================
   HEADER
   ============================================== */
.esr-header {
    background: var(--color-surface);
    border-bottom: var(--border-thin);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(8px);
    background: oklch(99.2% 0.002 175 / 0.92);
}

.esr-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

.esr-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    color: inherit;
}

.esr-logo__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: var(--color-surface);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.esr-logo__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.esr-logo__text {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    max-width: 200px;
}

/* Nav Toggle */
.esr-nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 300;
}
.esr-nav-toggle:active {
    transform: scale(0.95);
    transition: transform 160ms var(--ease-out);
}
.esr-nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform var(--transition-slow),
                opacity var(--transition-slow);
}
.esr-nav-toggle[aria-expanded="true"] .esr-nav-toggle__bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.esr-nav-toggle[aria-expanded="true"] .esr-nav-toggle__bar:nth-child(2) {
    opacity: 0;
}
.esr-nav-toggle[aria-expanded="true"] .esr-nav-toggle__bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav */
.esr-nav__list {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
}

.esr-nav__link {
    display: flex; align-items: center;
    min-height: 44px;
    padding: 0 var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast),
                background var(--transition-fast);
}
.esr-nav__link:hover,
.esr-nav__link--active {
    color: var(--color-primary);
    background: var(--color-bg-alt);
}
.esr-nav__link--active { font-weight: 600; }

/* Dropdown */
.esr-nav__dropdown { position: relative; }
.esr-nav__dropdown-toggle {
    background: none;
    border: none;
    min-height: 44px;
    padding: 0 var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: color var(--transition-fast),
                background var(--transition-fast);
}
.esr-nav__dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -2px;
    margin-left: 2px;
    transition: transform var(--transition-fast);
}
.esr-nav__dropdown:hover .esr-nav__dropdown-toggle::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.esr-nav__dropdown-toggle:hover {
    color: var(--color-primary);
    background: var(--color-bg-alt);
}

.esr-nav__dropdown-menu {
    display: block;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--color-surface);
    border: var(--border-thin);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 260px;
    padding: var(--space-xs) 0;
    z-index: 200;
    list-style: none;
    opacity: 0;
    transform: scale(0.95) translateY(-4px);
    pointer-events: none;
    transition: opacity 200ms var(--ease-out),
                transform 200ms var(--ease-out);
}
.esr-nav__dropdown:hover .esr-nav__dropdown-menu,
.esr-nav__dropdown--open .esr-nav__dropdown-menu {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}
.esr-nav__dropdown-menu .esr-nav__link {
    padding: var(--space-md) var(--space-lg);
    white-space: nowrap;
    border-radius: 0;
}

/* ==============================================
   HERO
   ============================================== */
.esr-hero {
    background: linear-gradient(
        160deg,
        oklch(46% 0.06 188) 0%,
        oklch(30% 0.045 188) 100%
    );
    color: var(--color-surface);
    padding: var(--space-5xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.esr-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 25% 40%, oklch(50% 0.05 188 / 0.15), transparent),
        radial-gradient(ellipse 40% 30% at 75% 60%, oklch(75% 0.08 82 / 0.06), transparent);
    z-index: -1;
}

.esr-hero__title {
    font-family: var(--font-heading);
    font-size: var(--text-heading-hero);
    font-weight: 500;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-heading);
    opacity: 0;
    animation: esr-fade-up 0.6s var(--ease-out) 0.1s forwards;
}

.esr-hero__subtitle {
    font-size: var(--text-subhead);
    opacity: 0;
    color: oklch(95% 0.003 175 / 0.85);
    max-width: 36rem;
    margin: var(--space-lg) auto 0;
    line-height: var(--leading-tight);
    animation: esr-fade-up 0.6s var(--ease-out) 0.3s forwards;
}

.esr-hero__line {
    width: 48px;
    height: 2px;
    background: var(--color-accent);
    margin: var(--space-xl) auto 0;
    transform: scaleX(0);
    animation: esr-line-in 0.6s var(--ease-out) 0.5s forwards;
}

/* ==============================================
   PAGE HEADERS
   ============================================== */
.esr-page-header {
    background: linear-gradient(
        160deg,
        oklch(44% 0.055 188) 0%,
        oklch(30% 0.04 188) 100%
    );
    color: var(--color-surface);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.esr-page-header__title {
    font-family: var(--font-heading);
    font-size: var(--text-heading-page);
    font-weight: 500;
    line-height: var(--leading-heading);
    opacity: 0;
    animation: esr-fade-up 0.5s var(--ease-out) 0.1s forwards;
}

.esr-page-header__line {
    width: 40px;
    height: 2px;
    background: var(--color-accent);
    margin: var(--space-lg) auto 0;
    transform: scaleX(0);
    animation: esr-line-in 0.5s var(--ease-out) 0.3s forwards;
}

/* ==============================================
   EVENT HERO
   ============================================== */
.esr-event-hero {
    background: linear-gradient(
        160deg,
        oklch(44% 0.055 188) 0%,
        oklch(28% 0.04 188) 100%
    );
    color: var(--color-surface);
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
}

.esr-event-hero__title {
    font-family: var(--font-heading);
    font-size: var(--text-heading-page);
    font-weight: 500;
    line-height: var(--leading-heading);
    opacity: 0;
    animation: esr-fade-up 0.5s var(--ease-out) 0.1s forwards;
}

.esr-event-hero__date {
    font-size: var(--text-sm);
    color: oklch(93% 0.003 175 / 0.8);
    margin-top: var(--space-sm);
    opacity: 0;
    animation: esr-fade-up 0.5s var(--ease-out) 0.2s forwards;
}

.esr-event-hero__line {
    width: 40px;
    height: 2px;
    background: var(--color-accent);
    margin: var(--space-lg) auto 0;
    transform: scaleX(0);
    animation: esr-line-in 0.5s var(--ease-out) 0.35s forwards;
}

.esr-event-hero__intro {
    max-width: 44rem;
    margin: var(--space-base) auto 0;
    font-size: var(--text-body);
    color: oklch(95% 0.003 175 / 0.8);
    line-height: var(--leading-relaxed);
    opacity: 0;
    animation: esr-fade-up 0.5s var(--ease-out) 0.25s forwards;
}

/* ==============================================
   SECTIONS
   ============================================== */
.esr-section {
    padding: var(--section-pad) 0;
}

.esr-section--alt {
    background: var(--color-bg-alt);
}

.esr-section__title {
    font-family: var(--font-heading);
    font-size: var(--text-heading-section);
    font-weight: 500;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-sm);
    letter-spacing: var(--tracking-tight);
}

.esr-section__title + .esr-section__title {
    margin-top: var(--space-2xl);
}

.esr-section__subtitle {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 36rem;
}

.esr-section__line {
    width: 32px;
    height: 2px;
    background: var(--color-accent);
    margin-bottom: var(--space-xl);
}

/* ==============================================
   TIPS — Horizontal scroll on mobile, grid on desktop
   ============================================== */
.esr-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-base);
}

.esr-tip {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base),
                box-shadow var(--transition-base);
}
@media (hover: hover) and (pointer: fine) {
    .esr-tip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
}

.esr-tip__number {
    font-family: var(--font-heading);
    font-size: var(--text-heading-section);
    font-weight: 500;
    color: var(--color-accent-dark);
    flex-shrink: 0;
    line-height: 0.9;
    opacity: 0.85;
    font-variant-numeric: tabular-nums;
}

.esr-tip__text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
    align-self: center;
}

/* ==============================================
   MYTHS — No side-stripe. Typographic layout.
   ============================================== */
.esr-myths-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-base);
}

.esr-myth {
    padding: var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-base);
}

.esr-myth__tag-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.esr-myth__label {
    display: inline-block;
    font-size: var(--text-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    line-height: 1.5;
}

.esr-myth__label--myth {
    background: oklch(54% 0.18 55 / 0.12);
    color: oklch(45% 0.15 55);
}

.esr-myth__label--fact {
    background: oklch(55% 0.12 165 / 0.12);
    color: oklch(40% 0.08 165);
}

.esr-myth__claim {
    color: var(--color-text-secondary);
    font-size: var(--text-body);
    line-height: var(--leading-normal);
}

.esr-myth__truth {
    color: var(--color-primary-dark);
    font-size: var(--text-body);
    font-weight: 600;
    line-height: var(--leading-normal);
}

/* ==============================================
   CONTENT CARD — de-emphasized, fewer borders
   ============================================== */
.esr-card {
    padding: var(--space-xl) 0;
}

.esr-card + .esr-card {
    border-top: 1px solid var(--color-border-light);
}

.esr-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-subhead);
    font-weight: 500;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-sm);
}

.esr-card__text {
    color: var(--color-text-secondary);
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
    max-width: var(--measure-body);
}

.esr-card__text + .esr-card__text {
    margin-top: var(--space-base);
}

/* ==============================================
   CONDITIONS — Asymmetric grid, varied cards
   ============================================== */
.esr-conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-base);
}

.esr-condition {
    position: relative;
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    transition: transform var(--transition-base),
                box-shadow var(--transition-base);
}
@media (hover: hover) and (pointer: fine) {
    .esr-condition:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}

.esr-condition::after {
    content: '';
    position: absolute;
    top: 0;
    left: var(--space-lg);
    right: var(--space-lg);
    height: 2px;
    background: var(--color-accent);
    opacity: 0.5;
    border-radius: 1px;
}

.esr-condition__title {
    font-family: var(--font-heading);
    font-size: var(--text-subhead);
    font-weight: 500;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-xs);
}

.esr-condition__text {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    max-width: 30rem;
}

/* ==============================================
   FAQ — Borderless, divider-separated
   ============================================== */
.esr-faq-list {
    display: flex;
    flex-direction: column;
}

.esr-faq {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--color-border-light);
}
.esr-faq:first-child { padding-top: 0; }
.esr-faq:last-child { border-bottom: none; padding-bottom: 0; }

.esr-faq__question {
    font-family: var(--font-heading);
    font-size: var(--text-subhead);
    font-weight: 500;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-xs);
}

.esr-faq__answer {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    max-width: var(--measure-narrow);
}

/* ==============================================
   CTA
   ============================================== */
.esr-cta {
    background: oklch(30% 0.04 188);
    color: var(--color-surface);
    text-align: center;
    padding: var(--space-4xl) 0;
}

.esr-cta__title {
    font-family: var(--font-heading);
    font-size: var(--text-heading-section);
    font-weight: 500;
    margin-bottom: var(--space-base);
    letter-spacing: var(--tracking-tight);
}

.esr-cta__text {
    max-width: 34rem;
    margin: 0 auto;
    color: oklch(94% 0.002 175 / 0.85);
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
}

/* ==============================================
   EVENT BODY
   ============================================== */
.esr-event-body {
    padding: var(--space-2xl) 0 var(--space-4xl);
}

.esr-event-body__lead {
    font-size: var(--text-subhead);
    color: var(--color-text);
    line-height: var(--leading-loose);
    margin-bottom: var(--space-xl);
    font-family: var(--font-heading);
    font-weight: 500;
}

.esr-event-body__text {
    color: var(--color-text-secondary);
    font-size: var(--text-body);
    line-height: var(--leading-loose);
    margin-bottom: var(--space-base);
    max-width: 40rem;
}

.esr-event-body__heading {
    font-family: var(--font-heading);
    font-size: var(--text-subhead);
    font-weight: 500;
    color: var(--color-primary-dark);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-base);
}
.esr-event-body__heading:first-of-type { margin-top: 0; }

/* Sessions list — flat dividers, no borders */
.esr-sessions {
    list-style: none;
    padding: 0;
}

.esr-sessions__item {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
    border-bottom: 1px solid var(--color-border-light);
}
.esr-sessions__item:first-child { padding-top: 0; }
.esr-sessions__item:last-child { border-bottom: none; }

.esr-sessions__num {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-primary);
    min-width: 24px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.esr-event-note { margin-top: var(--space-base); }
.esr-event-note strong { color: var(--color-text); }

/* ==============================================
   GALLERY
   ============================================== */
.esr-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.esr-gallery__item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--color-bg-alt);
}

.esr-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .esr-gallery__item:hover .esr-gallery__img { transform: scale(1.04); }
}
.esr-gallery__item:hover .esr-gallery__img {
    transform: scale(1.04);
}

.esr-gallery-placeholder {
    color: var(--color-text-muted);
    font-style: italic;
    padding: var(--space-xl) 0;
}

/* ==============================================
   ABOUT PAGE
   ============================================== */
.esr-about-intro {
    font-size: var(--text-subhead);
    color: var(--color-text);
    margin-bottom: var(--space-2xl);
    line-height: var(--leading-loose);
    max-width: 40rem;
    font-family: var(--font-heading);
    font-weight: 500;
}

/* ---------- Section Image ---------- */
.esr-section-img {
    width: 100%;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-2xl);
    object-fit: cover;
    max-height: 420px;
    background: var(--color-bg-alt);
}

/* ==============================================
   BUTTON
   ============================================== */
.esr-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    background: var(--color-primary);
    color: var(--color-surface);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-body);
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast),
                transform var(--transition-fast);
    letter-spacing: 0.01em;
}
.esr-button:hover {
    background: var(--color-primary-light);
    color: var(--color-surface);
    transform: translateY(-1px);
}
.esr-button:active {
    transform: scale(0.97);
    transition: transform 160ms var(--ease-out);
}

.esr-button--center {
    display: block;
    text-align: center;
}

/* ==============================================
   FOOTER
   ============================================== */
.esr-footer {
    background: oklch(22% 0.03 188);
    color: oklch(92% 0.002 175 / 0.8);
    padding: var(--space-3xl) 0 0;
}

.esr-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
}

.esr-footer__brand-title {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-surface);
    font-size: var(--text-subhead);
    margin-bottom: var(--space-sm);
}

.esr-footer__brand-text {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

.esr-footer__heading {
    font-size: var(--text-caption);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-light);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.esr-footer__list { list-style: none; }
.esr-footer__list li { margin-bottom: var(--space-sm); }

.esr-footer__link {
    color: oklch(88% 0.002 175 / 0.65);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}
.esr-footer__link:hover { color: var(--color-accent-light); }

.esr-footer__bottom {
    border-top: 1px solid oklch(40% 0.01 188 / 0.2);
    margin-top: var(--space-2xl);
    padding: var(--space-lg) 0;
}

.esr-footer__copy {
    font-size: var(--text-caption);
    color: oklch(80% 0.002 175 / 0.4);
}

/* ==============================================
   ANIMATIONS
   ============================================== */
@keyframes esr-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes esr-line-in {
    from { transform: scaleX(0.1); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
}

/* Staggered section reveal */
.esr-section [data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out),
                transform 0.6s var(--ease-out);
}

.esr-section [data-animate].esr-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.esr-stagger > *:nth-child(1) { transition-delay: 0ms; }
.esr-stagger > *:nth-child(2) { transition-delay: 50ms; }
.esr-stagger > *:nth-child(3) { transition-delay: 100ms; }
.esr-stagger > *:nth-child(4) { transition-delay: 150ms; }
.esr-stagger > *:nth-child(5) { transition-delay: 200ms; }
.esr-stagger > *:nth-child(6) { transition-delay: 250ms; }
.esr-stagger > *:nth-child(7) { transition-delay: 300ms; }
.esr-stagger > *:nth-child(8) { transition-delay: 350ms; }
.esr-stagger > *:nth-child(9) { transition-delay: 400ms; }
.esr-stagger > *:nth-child(10) { transition-delay: 450ms; }

.esr-section [data-animate].esr-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    html { scroll-behavior: auto; }
    .esr-section [data-animate] {
        opacity: 1;
        transform: none;
        transition: opacity 0.2s ease;
    }
}

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

/* Tablet — 920px */
@media (max-width: 920px) {
    .esr-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

/* Mobile — 680px */
@media (max-width: 680px) {
    .esr-nav-toggle { display: flex; }

    .esr-nav {
        display: block;
        position: fixed;
        inset: 0;
        background: var(--color-surface);
        padding: 80px var(--space-lg) var(--space-lg);
        overflow-y: auto;
        z-index: 200;
        opacity: 0;
        pointer-events: none;
        transition: opacity 250ms var(--ease-out);
    }
    .esr-nav--open {
        opacity: 1;
        pointer-events: auto;
    }

    .esr-nav__list {
        flex-direction: column;
        align-items: stretch;
    }

    .esr-nav__link,
    .esr-nav__dropdown-toggle {
        font-size: var(--text-body);
        padding: var(--space-md) var(--space-base);
        width: 100%;
        text-align: left;
    }

    .esr-nav__dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        padding-left: var(--space-base);
    }
    .esr-nav__dropdown--open .esr-nav__dropdown-menu { display: block; }

    .esr-hero { padding: var(--space-4xl) 0; }

    .esr-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .esr-tips-grid,
    .esr-conditions-grid { grid-template-columns: 1fr; }

    .esr-logo__text {
        font-size: var(--text-sm);
        max-width: 140px;
    }
}

/* ==============================================
   LARGE SCREENS — 1600px+ (1440p, 2.5K, 4K)
   ============================================== */
@media (min-width: 1600px) {
    .esr-tips-grid       { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
    .esr-conditions-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
    .esr-gallery         { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .esr-footer__grid    { grid-template-columns: 2fr 1fr 1fr 1fr; }

    .esr-hero            { padding: var(--space-5xl) 0; }
    .esr-hero__subtitle  { font-size: var(--text-subhead); }
}

@media (min-width: 2000px) {
    .esr-tips-grid       { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
    .esr-conditions-grid { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
    .esr-gallery         { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
    .esr-footer__grid    { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
