/* ==========================================================================
   DESIGN TOKEN SYSTEM (SHRIDEVI PHARMACY - DELIVERY)
   ========================================================================== */

:root {
    /* Palette */
    --clr-ink:        #0C1B10;   /* near-black with green cast */
    --clr-forest:     #004A30;   /* primary brand — deep pharmacy green */
    --clr-leaf:       #007A45;   /* mid-tone active/hover */
    --clr-mint:       #00B060;   /* bright accent — used sparingly */
    --clr-sage:       #8FAE98;   /* muted text, borders */
    --clr-surface:    #F7F9F7;   /* page background — not pure white */
    --clr-panel:      #FFFFFF;   /* card/panel fill */
    --clr-border:     #DDE8E2;   /* dividers */
    --clr-brand-glow: rgba(0, 176, 96, 0.15); /* mint glow */

    /* Type Scale */
    --type-display:   'Plus Jakarta Sans', system-ui, sans-serif;
    --type-body:      'Inter', system-ui, sans-serif;

    --size-2xs:  0.6875rem; /* 11px */
    --size-xs:   0.8125rem; /* 13px */
    --size-sm:   0.9375rem; /* 15px */
    --size-base: 1rem;      /* 16px */
    --size-lg:   1.125rem;  /* 18px */
    --size-xl:   1.375rem;  /* 22px */
    --size-2xl:  1.75rem;   /* 28px */
    --size-3xl:  2.25rem;   /* 36px */
    --size-4xl:  clamp(2.4rem, 4.8vw, 3.8rem);
    --size-hero: clamp(1.85rem, 3.2vw, 2.5rem);

    /* Spacing Scale */
    --space-1:  0.25rem;  /* 4px */
    --space-2:  0.5rem;   /* 8px */
    --space-3:  0.75rem;  /* 12px */
    --space-4:  1rem;     /* 16px */
    --space-5:  1.25rem;  /* 20px */
    --space-6:  1.5rem;   /* 24px */
    --space-8:  2rem;     /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */

    /* Timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-fast: 180ms;
    --dur-med: 300ms;
    --dur-slow: 600ms;
}

/* Base resets & typography for delivery page */
.delivery-page {
    background-color: var(--clr-surface);
    color: var(--clr-ink);
    font-family: var(--type-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.delivery-page h1, 
.delivery-page h2, 
.delivery-page h3 {
    font-family: var(--type-display);
    color: var(--clr-forest);
    line-height: 1.2;
    margin: 0;
}

.delivery-page p {
    color: var(--clr-ink);
    opacity: 0.8;
}

/* Remove focus outlines only for mouse users, keep for keyboard */
.delivery-page :focus:not(:focus-visible) {
    outline: none;
}
.delivery-page :focus-visible {
    outline: 2px solid var(--clr-leaf);
    outline-offset: 4px;
}

/* ═══ NAV HEADER ═══════════════════════════════════════════════ */
#site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-10);
    transition: padding var(--dur-med) var(--ease-out-expo), background var(--dur-med) ease;
}
#site-header.is-scrolled {
    padding: var(--space-2) var(--space-10);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,74,48,0.05);
}

.site-logo img {
    height: 48px;
    width: auto;
    transition: height var(--dur-med) var(--ease-out-expo);
}
#site-header.is-scrolled .site-logo img {
    height: 40px;
}

#primary-nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-6);
    margin: 0;
    padding: 0;
}
#primary-nav a {
    text-decoration: none;
    color: var(--clr-ink);
    font-size: var(--size-sm);
    font-weight: 500;
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--dur-fast) ease;
}
#primary-nav a:hover {
    color: var(--clr-leaf);
}
#primary-nav a.nav-active {
    color: var(--clr-forest);
    font-weight: 600;
}
#primary-nav a.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, #007A45 0%, #00B060 50%, #00E676 100%);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 176, 96, 0.45);
}
#nav-close { display: none; }

.header-end {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--clr-forest);
    color: white;
    padding: var(--space-2) var(--space-5);
    border-radius: 40px;
    font-size: var(--size-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-spring);
}
.header-cta:hover {
    background: var(--clr-leaf);
    transform: translateY(-2px);
}
#nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 8px;
    flex-direction: column;
    justify-content: space-around;
}
.burger-bar {
    width: 100%;
    height: 2px;
    background: var(--clr-forest);
    border-radius: 2px;
}

/* ═══ HERO ═════════════════════════════════════════════════════ */
.dlv-hero {
    position: relative;
    padding: var(--space-20) var(--space-10) var(--space-24);
    background: var(--clr-panel);
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.dlv-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--clr-forest);
    opacity: 0.5;
    pointer-events: none;
}
.dlv-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin-left: 5%;
}

.dlv-status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: #FFF3CD;
    color: #856404;
    padding: var(--space-1) var(--space-3);
    border-radius: 20px;
    font-size: var(--size-xs);
    font-weight: 600;
    margin-bottom: var(--space-6);
    border: 1px solid #FFEEBA;
    /* Hero sequence start state */
    opacity: 0;
    transform: translateY(10px);
}
.dlv-status-dot {
    width: 6px;
    height: 6px;
    background: #FFC107;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

.dlv-inprocess-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #FFFDF2;
    border: 1px solid #FFE082;
    border-left: 4px solid #FF9800;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: var(--space-5);
    box-shadow: 0 4px 14px rgba(255, 152, 0, 0.08);
}

.dlv-inprocess-icon {
    color: #F57C00;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.dlv-inprocess-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.88rem;
    color: #5D4037;
    line-height: 1.45;
}

.dlv-inprocess-text strong {
    color: #E65100;
    font-weight: 700;
    font-size: 0.95rem;
}

.dlv-inprocess-text a {
    color: var(--clr-forest);
    font-weight: 600;
    text-decoration: underline;
}

.dlv-hero-heading {
    font-size: var(--size-hero);
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: var(--space-4);
    /* Hero sequence start state */
    opacity: 0;
    transform: translateY(20px);
}
.dlv-heading-accent {
    background: linear-gradient(135deg, var(--clr-forest) 0%, var(--clr-leaf) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dlv-hero-sub {
    font-size: var(--size-lg);
    line-height: 1.5;
    margin-bottom: var(--space-8);
    max-width: 580px;
    /* Hero sequence start state */
    opacity: 0;
    transform: translateY(15px);
}

.dlv-hero-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    /* Hero sequence start state */
    opacity: 0;
    transform: translateY(10px);
}
.dlv-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--clr-forest);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: 8px;
    font-size: var(--size-base);
    font-weight: 600;
    text-decoration: none;
    transition: background var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.dlv-btn-primary:hover {
    background: var(--clr-leaf);
    box-shadow: 0 4px 12px rgba(0,74,48,0.2);
}
.dlv-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: transparent;
    color: var(--clr-forest);
    padding: var(--space-3) var(--space-6);
    border-radius: 8px;
    border: 1.5px solid var(--clr-forest);
    font-size: var(--size-base);
    font-weight: 600;
    text-decoration: none;
    transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.dlv-btn-ghost:hover {
    background: var(--clr-forest);
    color: white;
}

.dlv-hero-trust {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--size-xs);
    color: var(--clr-sage);
    font-weight: 500;
    /* Hero sequence start state */
    opacity: 0;
}
.dlv-hero-trust i { color: var(--clr-leaf); }

/* Hero Graphic */
.dlv-hero-graphic {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.dlv-emblem {
    background: var(--clr-forest);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,74,48,0.2);
    position: relative;
    z-index: 3;
}
.dlv-emblem-label {
    color: white;
    font-size: 10px;
    font-family: var(--type-display);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 8px;
}
.dlv-emblem-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--clr-border);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.dlv-ring-1 { width: 280px; height: 280px; }
.dlv-ring-2 { width: 400px; height: 400px; border-style: dashed; opacity: 0.5;}

/* ═══ SECTION TITLES ═══════════════════════════════════════════ */
.dlv-section-label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--size-sm);
    font-weight: 600;
    color: var(--clr-leaf);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dlv-label-line {
    width: 40px;
    height: 2px;
    background: var(--clr-leaf);
}
.dlv-section-heading {
    font-size: var(--size-3xl);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-12);
}

/* ═══ HOW IT WORKS (TIMELINE) ══════════════════════════════════ */
.dlv-steps {
    padding: var(--space-20) var(--space-10);
    max-width: 1200px;
    margin: 0 auto;
}
.dlv-steps-track {
    display: flex;
    position: relative;
    gap: var(--space-6);
}
.dlv-steps-connector {
    position: absolute;
    top: 32px; /* center of icon */
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--clr-border);
    z-index: 1;
}
.dlv-step {
    flex: 1;
    position: relative;
    z-index: 2;
    /* JS Reveal start state */
    opacity: 0;
    transform: translateY(20px);
}
/* No-JS fallback */
.no-js .dlv-step {
    opacity: 1;
    transform: none;
}
.dlv-step-icon {
    width: 64px;
    height: 64px;
    background: var(--clr-panel);
    border: 2px solid var(--clr-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--clr-forest);
    margin-bottom: var(--space-6);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.dlv-step-body h3 {
    font-size: var(--size-xl);
    margin-bottom: var(--space-3);
}
.dlv-step-body p {
    font-size: var(--size-sm);
    max-width: 90%;
}

/* ═══ WHAT WE DELIVER (CATEGORIES) ═════════════════════════════ */
.dlv-categories {
    padding: var(--space-20) var(--space-10);
    background: var(--clr-panel);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}
.dlv-categories-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.dlv-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}
.dlv-cat-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background var(--dur-med) ease, border-color var(--dur-med) ease, transform var(--dur-med) var(--ease-out-expo);
}
.dlv-cat-card:hover {
    background: white;
    border-color: var(--clr-leaf);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,74,48,0.06);
}
.dlv-cat-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #E8F0EA;
    color: var(--clr-forest);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.dlv-cat-info h3 {
    font-size: var(--size-lg);
    margin-bottom: var(--space-1);
}
.dlv-cat-info p {
    font-size: var(--size-sm);
    margin: 0;
}
.dlv-cat-arrow {
    margin-left: auto;
    color: var(--clr-sage);
    align-self: center;
    transition: transform var(--dur-med) var(--ease-spring), color var(--dur-med) ease;
}
.dlv-cat-card:hover .dlv-cat-arrow {
    color: var(--clr-leaf);
    transform: translateX(4px);
}

/* ═══ TRUST BAR ════════════════════════════════════════════════ */
.dlv-certbar {
    padding: var(--space-10) var(--space-10);
    background: var(--clr-surface);
}
.dlv-certbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-10);
}
.dlv-certbar-label {
    font-size: var(--size-sm);
    font-weight: 600;
    color: var(--clr-sage);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    flex-shrink: 0;
}
.dlv-cert-list {
    display: flex;
    gap: var(--space-8);
    flex-wrap: wrap;
}
.dlv-cert-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.dlv-cert-item i {
    color: var(--clr-leaf);
    font-size: 24px;
}
.dlv-cert-item div {
    display: flex;
    flex-direction: column;
}
.dlv-cert-item strong {
    font-size: var(--size-sm);
    color: var(--clr-forest);
    line-height: 1.2;
}
.dlv-cert-item span {
    font-size: var(--size-2xs);
    color: var(--clr-sage);
}

/* ═══ CONTACT BLOCK ════════════════════════════════════════════ */
.dlv-contact {
    padding: var(--space-20) var(--space-10);
    background: var(--clr-panel);
    border-top: 1px solid var(--clr-border);
}
.dlv-contact-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
}
.dlv-contact-sub {
    font-size: var(--size-lg);
    margin-bottom: var(--space-8);
}

.dlv-contact-channels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}
.dlv-channel {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: 8px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--dur-med) ease;
}
.dlv-channel:not(.dlv-channel--static):hover {
    border-color: var(--clr-leaf);
}
.dlv-channel--primary {
    background: #E8F0EA;
    border-color: #B5D2BF;
}
.dlv-channel-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--clr-forest);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.dlv-channel-icon--wa { color: #25D366; }
.dlv-channel-body {
    display: flex;
    flex-direction: column;
}
.dlv-channel-body strong {
    font-size: var(--size-sm);
    color: var(--clr-forest);
    margin-bottom: 2px;
}
.dlv-channel-body span {
    font-size: var(--size-xs);
    color: var(--clr-sage);
    line-height: 1.4;
}

.dlv-hours {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--clr-surface);
    border-radius: 8px;
}
.dlv-hours i {
    color: var(--clr-leaf);
    font-size: 24px;
}
.dlv-hours div {
    display: flex;
    flex-direction: column;
}
.dlv-hours strong {
    font-size: var(--size-sm);
    color: var(--clr-forest);
}
.dlv-hours span {
    font-size: var(--size-xs);
    color: var(--clr-sage);
}

.dlv-map-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.dlv-map-wrap {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--clr-border);
}
.dlv-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.dlv-delivery-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: #FFF3CD;
    border: 1px solid #FFEEBA;
    border-radius: 8px;
    color: #856404;
}
.dlv-delivery-notice i {
    margin-top: 2px;
}
.dlv-delivery-notice p {
    margin: 0;
    font-size: var(--size-sm);
    color: inherit;
    line-height: 1.5;
}

/* ═══ DISCLAIMER ═══════════════════════════════════════════════ */
.dlv-disclaimer {
    padding: var(--space-6) var(--space-10);
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
}
.dlv-disclaimer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--clr-sage);
}
.dlv-disclaimer-inner i {
    margin-top: 4px;
}
.dlv-disclaimer-inner p {
    font-size: var(--size-xs);
    margin: 0;
    color: inherit;
}

/* ═══ MEDIA QUERIES ════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .dlv-hero-graphic {
        opacity: 0.2;
        right: -50px;
    }
    .dlv-contact-inner {
        grid-template-columns: 1fr;
    }
    .dlv-map-wrap {
        height: 300px;
    }
    .dlv-certbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
}

@media (max-width: 768px) {
    /* Mobile Nav */
    #primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--clr-panel);
        padding: var(--space-20) var(--space-6) var(--space-6);
        box-shadow: -4px 0 24px rgba(0,0,0,0.1);
        transition: right var(--dur-med) var(--ease-out-expo);
        z-index: 1000;
        display: block; /* Ensure it overrides display:none if any */
    }
    #primary-nav.is-open {
        right: 0;
    }
    #nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--dur-med) ease;
        z-index: 999;
    }
    #nav-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }
    #primary-nav ul {
        flex-direction: column;
        gap: var(--space-4);
    }
    #primary-nav a {
        font-size: var(--size-lg);
        display: block;
    }
    #nav-close {
        display: block;
        position: absolute;
        top: var(--space-4);
        right: var(--space-4);
        background: none;
        border: none;
        font-size: 24px;
        color: var(--clr-ink);
        cursor: pointer;
    }
    #nav-toggle {
        display: flex;
    }
    .header-cta span {
        display: none;
    }

    /* Hero */
    .dlv-hero {
        padding: var(--space-12) var(--space-6);
    }
    .dlv-hero-inner {
        margin-left: 0;
    }
    .dlv-hero-actions {
        flex-direction: column;
    }
    .dlv-btn-primary, .dlv-btn-ghost {
        justify-content: center;
    }
    .dlv-hero-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    .dlv-hero-trust span[aria-hidden] {
        display: none;
    }

    /* Steps */
    .dlv-steps-track {
        flex-direction: column;
    }
    .dlv-steps-connector {
        top: 0;
        bottom: 0;
        left: 32px;
        width: 2px;
        height: auto;
    }
    .dlv-step {
        display: flex;
        gap: var(--space-4);
    }
    .dlv-step-icon {
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin: 0;
        z-index: 2; /* above connector */
    }

    /* Categories */
    .dlv-cat-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .dlv-contact-channels {
        grid-template-columns: 1fr;
    }
}
