/* ==========================================================================
   assets/css/style.css
   YourPath Diagnostics — Public website design system
   ========================================================================== */

/* ─── GOOGLE FONTS IMPORT ───────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ─── CSS CUSTOM PROPERTIES (DESIGN TOKENS) ─────────────────────────────── */
:root {
    /* Primary palette — medical blue */
    --color-primary-50:  #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;
    --color-primary-400: #60a5fa;
    --color-primary-500: #1d6fce;
    --color-primary-600: #1558a8;
    --color-primary-700: #1e40af;
    --color-primary-800: #1e3a8a;
    --color-primary-900: #1e2d6b;

    /* Accent palette — teal / medical green */
    --color-accent-50:  #f0fdf4;
    --color-accent-100: #dcfce7;
    --color-accent-400: #4ade80;
    --color-accent-500: #0e9f6e;
    --color-accent-600: #059669;
    --color-accent-700: #047857;

    /* Neutral palette */
    --color-neutral-50:  #f8fafc;
    --color-neutral-100: #f1f5f9;
    --color-neutral-200: #e2e8f0;
    --color-neutral-300: #cbd5e1;
    --color-neutral-400: #94a3b8;
    --color-neutral-500: #64748b;
    --color-neutral-600: #475569;
    --color-neutral-700: #334155;
    --color-neutral-800: #1e293b;
    --color-neutral-900: #0f172a;

    /* Semantic colours */
    --color-success: #059669;
    --color-warning: #d97706;
    --color-error:   #dc2626;

    /* Typography */
    --font-sans:    'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  2.25rem;
    --text-5xl:  3rem;

    --font-light:    300;
    --font-normal:   400;
    --font-medium:   500;
    --font-semibold: 600;
    --font-bold:     700;
    --font-extrabold:800;

    --leading-tight:  1.25;
    --leading-snug:   1.375;
    --leading-normal: 1.5;
    --leading-relaxed:1.625;

    /* Spacing scale */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border radius */
    --radius-sm:  0.25rem;
    --radius-md:  0.5rem;
    --radius-lg:  0.75rem;
    --radius-xl:  1rem;
    --radius-2xl: 1.5rem;
    --radius-full:9999px;

    /* Shadows */
    --shadow-sm:  0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
    --shadow-card:0 4px 20px 0 rgba(29,111,206,0.08);

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   400ms ease;

    /* Layout */
    --container-max: 1200px;
    --container-pad: var(--space-6);
    --header-height: 76px;
}

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

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

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-neutral-800);
    background-color: var(--color-neutral-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--color-primary-700);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font: inherit;
}

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.section {
    padding-block: var(--space-16);
}

.section--sm {
    padding-block: var(--space-10);
}

.section--lg {
    padding-block: var(--space-24);
}

.grid {
    display: grid;
    gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-neutral-900);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }

.text-muted  { color: var(--color-neutral-500); }
.text-primary{ color: var(--color-primary-500); }
.text-accent { color: var(--color-accent-500); }
.text-center { text-align: center; }

.section-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-extrabold);
    color: var(--color-neutral-900);
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-neutral-500);
    max-width: 580px;
    margin-inline: auto;
    line-height: var(--leading-relaxed);
}

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.65rem var(--space-5);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
    user-select: none;
}

.btn:focus-visible {
    outline: 3px solid var(--color-primary-200);
    outline-offset: 2px;
}

.btn--primary {
    background-color: var(--color-primary-500);
    color: #ffffff;
    border-color: var(--color-primary-500);
}

.btn--primary:hover {
    background-color: var(--color-primary-600);
    border-color: var(--color-primary-600);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 111, 206, 0.3);
}

.btn--accent {
    background-color: var(--color-accent-500);
    color: #ffffff;
    border-color: var(--color-accent-500);
}

.btn--accent:hover {
    background-color: var(--color-accent-700);
    border-color: var(--color-accent-700);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 159, 110, 0.3);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-primary-500);
    border-color: var(--color-primary-500);
}

.btn--outline:hover {
    background-color: var(--color-primary-500);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn--ghost {
    background-color: transparent;
    color: var(--color-neutral-700);
    border-color: transparent;
}

.btn--ghost:hover {
    background-color: var(--color-neutral-100);
    color: var(--color-neutral-900);
}

.btn--sm {
    padding: 0.4rem var(--space-4);
    font-size: var(--text-xs);
}

.btn--lg {
    padding: 0.9rem var(--space-8);
    font-size: var(--text-base);
    border-radius: var(--radius-xl);
}

/* ─── CARDS ──────────────────────────────────────────────────────────────── */
.card {
    background-color: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-neutral-100);
    overflow: hidden;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.card__body {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card__header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-neutral-100);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
}

/* ─── BADGES ─────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25em 0.7em;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    line-height: 1.4;
}

.badge--primary { background: var(--color-primary-100); color: var(--color-primary-700); }
.badge--accent  { background: var(--color-accent-100);  color: var(--color-accent-700);  }
.badge--success { background: #dcfce7; color: #15803d; }
.badge--warning { background: #fef3c7; color: #b45309; }
.badge--error   { background: #fee2e2; color: #b91c1c; }
.badge--neutral { background: var(--color-neutral-100); color: var(--color-neutral-600); }

/* ─── ALERTS ─────────────────────────────────────────────────────────────── */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-4);
    border: 1px solid transparent;
}

.alert--success { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.alert--error   { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.alert--warning { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.alert--info    { background: var(--color-primary-50); color: var(--color-primary-700); border-color: var(--color-primary-200); }

/* ─── FORMS ──────────────────────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.form-label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-neutral-700);
}

.form-control {
    width: 100%;
    padding: 0.65rem var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-neutral-800);
    background-color: #ffffff;
    border: 1.5px solid var(--color-neutral-200);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 3px rgba(29, 111, 206, 0.12);
}

.form-control::placeholder {
    color: var(--color-neutral-400);
}

/* ─── TOP NOTICE BAR ─────────────────────────────────────────────────────── */
.top-notice-bar {
    background: var(--color-neutral-900);
    color: #ffffff;
    font-size: var(--text-xs);
    padding-block: var(--space-2);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-notice-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notice-link {
    color: var(--color-primary-400);
    text-decoration: none;
    font-weight: var(--font-semibold);
}

.notice-link:hover {
    color: var(--color-primary-200);
    text-decoration: underline;
}

/* ─── PUBLIC HEADER & NAVIGATION ─────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid var(--color-neutral-100);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.site-logo__icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-accent-500));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -1px;
    box-shadow: 0 4px 12px rgba(29, 111, 206, 0.3);
}

.site-logo__text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-extrabold);
    color: var(--color-neutral-900);
}

.site-logo__text span {
    color: var(--color-primary-500);
}

/* Desktop Nav Links */
.main-nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-neutral-700);
    padding: var(--space-2) 0;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary-500);
    font-weight: var(--font-semibold);
}

/* Tests Dropdown (Desktop) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid var(--color-neutral-100);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 200;
}

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

.dropdown-item {
    display: block;
    padding: 0.5rem var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-neutral-700);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--color-primary-50);
    color: var(--color-primary-700);
}

.dropdown-item.all-tests {
    border-bottom: 1px solid var(--color-neutral-100);
    font-weight: var(--font-semibold);
    color: var(--color-primary-600);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #ffffff;
    z-index: 190;
    padding: var(--space-6);
    overflow-y: auto;
    border-top: 1px solid var(--color-neutral-100);
}

.mobile-nav-drawer.open {
    display: block;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.mobile-nav-link {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-neutral-800);
    padding-block: var(--space-2);
}

.mobile-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-neutral-800);
    padding-block: var(--space-2);
    cursor: pointer;
}

.mobile-accordion-content {
    display: none;
    padding-left: var(--space-4);
    flex-direction: column;
    gap: var(--space-2);
}

.mobile-accordion-content.open {
    display: flex;
}

/* ─── HERO SECTION ───────────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #0f1729 0%, #1e2d6b 50%, #0f1729 100%);
    color: #ffffff;
    padding-block: var(--space-20);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(29,111,206,0.25) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--color-accent-400);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-5);
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: var(--space-4);
}

.hero-title span {
    background: linear-gradient(135deg, #60a5fa, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: rgba(226, 232, 240, 0.85);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
}

.hero-search-box {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--space-2);
    display: flex;
    gap: var(--space-2);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    max-width: 540px;
}

.hero-search-input {
    border: none;
    outline: none;
    padding: 0.75rem var(--space-4);
    font-size: var(--text-base);
    color: var(--color-neutral-800);
    flex: 1;
}

/* Hero Trust Badges */
.hero-trust-list {
    display: flex;
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.7);
}

.hero-trust-icon {
    width: 24px;
    height: 24px;
    background: rgba(14, 159, 110, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-400);
    font-weight: bold;
}

/* ─── TEST / PACKAGE CARDS (PUBLIC) ─────────────────────────────────────── */
.product-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-neutral-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card__image-box {
    width: 100%;
    height: 180px;
    background: var(--color-neutral-100);
    overflow: hidden;
    position: relative;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__badge-pos {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
}

.product-card__body {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-neutral-900);
    margin-bottom: var(--space-1);
}

.product-card__desc {
    font-size: var(--text-xs);
    color: var(--color-neutral-500);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-4);
    flex: 1;
}

.product-card__specs {
    display: flex;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-neutral-600);
    margin-bottom: var(--space-4);
    background: var(--color-neutral-50);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
}

.product-card__price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-neutral-100);
    margin-top: auto;
}

.price-main {
    font-size: var(--text-xl);
    font-weight: var(--font-extrabold);
    color: var(--color-primary-700);
    font-family: var(--font-display);
}

.price-mrp {
    font-size: var(--text-xs);
    color: var(--color-neutral-400);
    text-decoration: line-through;
    margin-left: var(--space-1);
}

.discount-tag {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--color-accent-600);
    background: var(--color-accent-50);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.product-card__actions {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

/* ─── PUBLIC DETAIL PAGE STYLES ─────────────────────────────────────────── */
.detail-hero {
    background: #ffffff;
    border-bottom: 1px solid var(--color-neutral-200);
    padding-block: var(--space-10);
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-block: var(--space-6);
}

.spec-box {
    background: var(--color-neutral-50);
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.spec-box__label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    color: var(--color-neutral-400);
    margin-bottom: var(--space-1);
}

.spec-box__value {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-neutral-800);
}

/* ─── REUSABLE BOOKING MODAL DIALOG ─────────────────────────────────────── */
.booking-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.booking-modal-overlay.open {
    display: flex;
    opacity: 1;
}

.booking-modal-card {
    background: #ffffff;
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    border: 1px solid var(--color-neutral-200);
    animation: modalSlideUp 300ms cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: var(--space-6) var(--space-6) var(--space-4);
    border-bottom: 1px solid var(--color-neutral-100);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.modal-title {
    font-size: var(--text-xl);
    font-weight: var(--font-extrabold);
    color: var(--color-neutral-900);
}

.modal-subtitle {
    font-size: var(--text-xs);
    color: var(--color-neutral-500);
    margin-top: 2px;
}

.modal-close-btn {
    background: var(--color-neutral-100);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-neutral-600);
    transition: background var(--transition-fast);
}

.modal-close-btn:hover {
    background: var(--color-neutral-200);
    color: var(--color-neutral-900);
}

.modal-body {
    padding: var(--space-6);
}

.selected-item-banner {
    background: var(--color-primary-50);
    border: 1px solid var(--color-primary-200);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selected-item-name {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--color-primary-700);
}

/* ─── PUBLIC FOOTER ──────────────────────────────────────────────────────── */
.site-footer {
    background: var(--color-neutral-900);
    color: var(--color-neutral-400);
    padding-top: var(--space-16);
    padding-bottom: var(--space-8);
    margin-top: var(--space-20);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-extrabold);
    color: #ffffff;
    margin-bottom: var(--space-3);
}

.footer-brand span { color: var(--color-primary-400); }

.footer-title {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: var(--space-4);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-link {
    color: var(--color-neutral-400);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: #ffffff;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--space-6);
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-neutral-500);
}

/* ─── PHASE 5 PREMIUM COMPONENT STYLES ──────────────────────────────────── */

/* Section Header Block */
.section-header {
    margin-bottom: var(--space-10);
}
.section-header.text-center {
    text-align: center;
}
.section-header .section-subtitle {
    margin-top: var(--space-2);
}

/* Service Cards Grid (Part 3) */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.service-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid var(--color-neutral-200);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-300);
}

.service-card__icon {
    width: 52px;
    height: 52px;
    background: var(--color-primary-50);
    color: var(--color-primary-600);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: var(--space-4);
}

.service-card__title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-neutral-900);
    margin-bottom: var(--space-2);
}

.service-card__desc {
    font-size: var(--text-xs);
    color: var(--color-neutral-500);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-5);
    flex: 1;
}

.service-card__link {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-primary-600);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: auto;
}

.service-card__link:hover {
    color: var(--color-primary-800);
    gap: var(--space-2);
}

/* Category Cards Grid (Part 6) */
.category-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    border: 1px solid var(--color-neutral-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-400);
    background: var(--color-primary-50);
}

.category-card__icon {
    width: 48px;
    height: 48px;
    background: var(--color-neutral-100);
    color: var(--color-primary-600);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.category-card:hover .category-card__icon {
    background: #ffffff;
    color: var(--color-primary-700);
}

.category-card__info {
    flex: 1;
    min-width: 0;
}

.category-card__name {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--color-neutral-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card__count {
    font-size: var(--text-xs);
    color: var(--color-neutral-500);
    margin-top: 2px;
}

/* Premium Product/Package Card (Part 4 & 5) */
.card-tag-ribbon {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: var(--color-accent-600);
    color: #ffffff;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.product-specs-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-block: var(--space-3);
}

.spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-neutral-100);
    color: var(--color-neutral-700);
    font-size: var(--text-xs);
    padding: 3px 8px;
    border-radius: var(--radius-md);
    font-weight: var(--font-medium);
}

/* Why Choose Us Cards (Part 7) */
.why-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid var(--color-neutral-200);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.why-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.why-card__icon {
    font-size: 2rem;
    margin-bottom: var(--space-3);
}

.why-card__title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-neutral-900);
    margin-bottom: var(--space-2);
}

.why-card__desc {
    font-size: var(--text-xs);
    color: var(--color-neutral-500);
    line-height: var(--leading-relaxed);
}

/* Home Collection Banner (Part 8) */
.home-collection-box {
    background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-700) 100%);
    color: #ffffff;
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    position: relative;
    overflow: hidden;
}

.home-collection-box::after {
    content: '🩸';
    position: absolute;
    font-size: 10rem;
    right: -20px;
    bottom: -30px;
    opacity: 0.15;
    pointer-events: none;
}

.home-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-block: var(--space-8);
}

.home-step-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
}

.home-step-num {
    width: 36px;
    height: 36px;
    background: var(--color-accent-500);
    color: #ffffff;
    font-weight: var(--font-extrabold);
    font-size: var(--text-sm);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
}

.home-step-title {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: #ffffff;
    margin-bottom: var(--space-1);
}

.home-step-desc {
    font-size: var(--text-xs);
    color: rgba(226, 232, 240, 0.8);
    line-height: var(--leading-normal);
}

/* Timeline 4-Step Visual Process (Part 9) */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    position: relative;
}

.timeline-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid var(--color-neutral-200);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    transition: transform var(--transition-base);
}

.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.timeline-number {
    font-size: var(--text-3xl);
    font-weight: var(--font-extrabold);
    color: var(--color-primary-400);
    font-family: var(--font-display);
    margin-bottom: var(--space-2);
}

.timeline-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-neutral-900);
    margin-bottom: var(--space-2);
}

.timeline-desc {
    font-size: var(--text-xs);
    color: var(--color-neutral-500);
    line-height: var(--leading-relaxed);
}

/* Health Information Section (Part 10) */
.info-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid var(--color-neutral-200);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.info-card__badge {
    align-self: flex-start;
    margin-bottom: var(--space-3);
}

.info-card__title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-neutral-900);
    margin-bottom: var(--space-2);
}

.info-card__text {
    font-size: var(--text-xs);
    color: var(--color-neutral-500);
    line-height: var(--leading-relaxed);
}

/* Trust Section (Part 11) */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-4);
}

.trust-item-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    border: 1px solid var(--color-neutral-200);
    text-align: center;
    transition: border-color var(--transition-fast);
}

.trust-item-card:hover {
    border-color: var(--color-primary-400);
}

.trust-item-card__icon {
    font-size: 1.8rem;
    margin-bottom: var(--space-2);
}

.trust-item-card__title {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--color-neutral-800);
}

/* Call / WhatsApp CTA Section (Part 12) */
.cta-banner-v2 {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-accent-600) 100%);
    color: #ffffff;
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    text-align: center;
    box-shadow: 0 12px 32px rgba(21, 88, 168, 0.25);
}

.cta-banner-v2 h2 {
    color: #ffffff;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
}

.cta-banner-v2 p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: var(--space-8);
    font-size: var(--text-lg);
}

.cta-buttons-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}

/* 5-Column Footer (Part 20) */
.footer-grid-5 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

/* Sort & Search Bar on Catalog Pages */
.catalog-filter-bar {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-6);
    border: 1px solid var(--color-neutral-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ─── RESPONSIVE OVERRIDES FOR PHASE 5 ──────────────────────────────────── */
@media (max-width: 1200px) {
    .service-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .home-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid-5 { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
    .service-cards-grid { grid-template-columns: 1fr; }
    .home-steps-grid { grid-template-columns: 1fr; }
    .timeline-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid-5 { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
    .catalog-filter-bar { flex-direction: column; align-items: stretch; }
    .cta-banner-v2 { padding: var(--space-6); }
    .cta-buttons-group { flex-direction: column; width: 100%; }
    .cta-buttons-group .btn { width: 100%; }
}

@media (max-width: 480px) {
    .trust-grid { grid-template-columns: 1fr; }
    .footer-grid-5 { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   PHASE 8 — COMPREHENSIVE MOBILE RESPONSIVENESS
   Targets: 360px, 375px, 390px, 414px, 430px, 480px, 768px
   Principle: Desktop styles unchanged; mobile overrides via media queries only
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Global Mobile Safety ─────────────────────────────────────────────── */
html, body {
    /* Prevent horizontal overflow on all pages */
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* Responsive images and media safety */
img, video, svg, iframe {
    max-width: 100%;
    height: auto;
}

/* Safe text wrapping on mobile */
p, h1, h2, h3, h4, h5, h6, span, a, li, td, th, label {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ── Visibility Utility Classes (used throughout header.php) ──────────── */
/* hide-mobile: hide on screens <= 768px */
/* hide-desktop: hide on screens > 768px */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}
@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}
/* Flex-specific hide-mobile override for flex parents */
@media (max-width: 768px) {
    .flex.hide-mobile,
    [class*="flex"].hide-mobile {
        display: none !important;
    }
}

/* ── Full-width button utility ─────────────────────────────────────────── */
.w-full { width: 100%; }
.items-center { align-items: center; }

/* ── Container: reduce horizontal padding on mobile ──────────────────── */
@media (max-width: 576px) {
    .container {
        padding-inline: var(--space-4);
    }
}
@media (max-width: 390px) {
    .container {
        padding-inline: var(--space-3);
    }
}

/* ── Section spacing reduction on mobile ─────────────────────────────── */
@media (max-width: 768px) {
    .section      { padding-block: var(--space-10); }
    .section--lg  { padding-block: var(--space-12); }
    .section--sm  { padding-block: var(--space-8); }

    /* Section headings scale down */
    .section-title    { font-size: var(--text-2xl); }
    .section-subtitle { font-size: var(--text-base); }
}
@media (max-width: 480px) {
    .section      { padding-block: var(--space-8); }
    .section-title { font-size: var(--text-xl); }
}

/* ── Typography scaling on mobile ────────────────────────────────────── */
@media (max-width: 768px) {
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }
}
@media (max-width: 480px) {
    h1 { font-size: var(--text-2xl); }
    h2 { font-size: var(--text-xl); }
    h3 { font-size: var(--text-lg); }
}

/* ── HEADER: Mobile fixes ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .site-header {
        /* Allow height to be auto if logo overflows */
        height: auto;
        min-height: 64px;
        --header-height: 64px;
    }

    .site-header .container {
        padding-block: var(--space-3);
        flex-wrap: nowrap;
        min-width: 0;
    }

    /* Logo scaling */
    .site-logo {
        flex-shrink: 1;
        min-width: 0;
        max-width: calc(100% - 60px);
    }

    .site-logo img {
        max-height: 44px;
        width: auto;
        object-fit: contain;
    }

    .site-logo__text {
        font-size: var(--text-base);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }

    .site-logo__icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1rem;
    }

    /* Mobile hamburger button */
    #mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 8px 10px;
        font-size: 1.4rem;
        border-radius: var(--radius-md);
        flex-shrink: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 390px) {
    .site-logo__text {
        max-width: 140px;
        font-size: var(--text-sm);
    }
    .site-logo__icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}

/* ── MOBILE NAVIGATION DRAWER ────────────────────────────────────────── */
/* Backdrop overlay when mobile menu is open */
.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 185;
}
.mobile-nav-backdrop.active {
    display: block;
}

@media (max-width: 768px) {
    .mobile-nav-drawer {
        /* Safe width: never exceed viewport */
        width: 100%;
        max-width: 100vw;
        /* Scrollable drawer */
        max-height: calc(100dvh - 64px);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: var(--space-5) var(--space-4);
        box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    }

    /* Accordion open state */
    .mobile-accordion-content.open {
        display: flex;
    }

    /* Touch-friendly mobile links */
    .mobile-nav-link {
        display: block;
        padding: 12px var(--space-2);
        min-height: 44px;
        font-size: var(--text-base);
        line-height: 1.4;
        border-bottom: 1px solid var(--color-neutral-100);
    }

    .mobile-nav-list > li:last-child .mobile-nav-link {
        border-bottom: none;
    }

    .mobile-accordion-toggle {
        min-height: 44px;
        padding: 12px var(--space-2);
        border-bottom: 1px solid var(--color-neutral-100);
    }

    .mobile-accordion-content {
        border-bottom: 1px solid var(--color-neutral-100);
        padding-block: var(--space-2);
    }

    /* Book now button in drawer */
    .mobile-nav-list .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }
}

/* ── HERO SECTION ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-section {
        padding-block: var(--space-12);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .hero-search-box {
        max-width: 100%;
        flex-direction: column;
    }

    .hero-search-box .btn {
        width: 100%;
    }

    .hero-trust-list {
        flex-wrap: wrap;
        gap: var(--space-3);
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-block: var(--space-10);
    }

    .hero-title {
        font-size: clamp(1.6rem, 5vw, 2rem);
    }
}

/* ── GRIDS: 2-col on tablet, 1-col on small mobile ───────────────────── */
@media (max-width: 768px) {
    /* Generic grid utilities become 1-col on mobile */
    .grid--2, .grid--3, .grid--4 {
        grid-template-columns: 1fr;
    }
}

/* ── DETAIL PAGE (test.php / package.php) ────────────────────────────── */
@media (max-width: 768px) {
    .detail-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-hero {
        padding-block: var(--space-6);
    }
}
@media (max-width: 480px) {
    .detail-specs-grid {
        grid-template-columns: 1fr;
    }
}

/* ── PRODUCT CARDS (tests.php, packages.php) ─────────────────────────── */
@media (max-width: 768px) {
    .product-card__actions {
        flex-direction: column;
    }

    .product-card__actions .btn {
        width: 100%;
        min-height: 44px;
    }

    .product-card__price-row {
        flex-wrap: wrap;
        gap: var(--space-2);
    }
}

/* ── HOME COLLECTION BOX ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .home-collection-box {
        padding: var(--space-6);
    }

    .home-collection-box::after {
        font-size: 5rem;
    }

    .home-steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

/* ── SERVICE CARDS ───────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .service-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ── CATEGORY CARDS ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .category-card {
        padding: var(--space-4);
    }
    .category-card__icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ── BOOKING MODAL ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .booking-modal-overlay {
        padding: var(--space-3);
        align-items: flex-end; /* Bottom sheet on mobile */
    }

    .booking-modal-card {
        max-width: 100%;
        width: 100%;
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
        max-height: 92vh;
        max-height: 92dvh;
    }

    .modal-header {
        padding: var(--space-5) var(--space-4) var(--space-3);
    }

    .modal-body {
        padding: var(--space-4);
    }

    .modal-title {
        font-size: var(--text-lg);
    }

    .modal-close-btn {
        min-width: 36px;
        min-height: 36px;
    }

    /* Form controls in modal */
    .modal-body .form-control {
        min-height: 44px;
        font-size: var(--text-base);
    }

    .modal-body .btn {
        min-height: 48px;
        font-size: var(--text-base);
        width: 100%;
    }
}

@media (max-width: 390px) {
    .booking-modal-overlay {
        padding: var(--space-2);
    }
    .modal-header {
        padding: var(--space-4) var(--space-3) var(--space-2);
    }
    .modal-body {
        padding: var(--space-3);
    }
}

/* ── FORMS: mobile touch-friendly ────────────────────────────────────── */
@media (max-width: 768px) {
    .form-control {
        min-height: 44px;
        font-size: var(--text-base);
    }

    textarea.form-control {
        min-height: 100px;
    }

    select.form-control {
        min-height: 44px;
    }

    .form-group {
        margin-bottom: var(--space-4);
    }

    /* Inline form layouts → stack on mobile */
    .form-row-inline,
    .form-inline-row {
        flex-direction: column;
    }
}

/* ── CATALOG FILTER BAR ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .catalog-filter-bar {
        gap: var(--space-3);
    }

    .catalog-filter-bar .form-control,
    .catalog-filter-bar select {
        min-height: 44px;
    }
}

/* ── FOOTER: mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }

    .site-footer {
        padding-top: var(--space-10);
        margin-top: var(--space-10);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        font-size: 0.7rem;
    }
}

/* ── CTA BANNER v2 ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cta-banner-v2 h2 {
        font-size: var(--text-2xl);
    }

    .cta-banner-v2 p {
        font-size: var(--text-base);
    }
}

/* ── BUTTONS: touch targets ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
    }

    .btn--sm {
        min-height: 38px;
    }
}

/* ── TABLE RESPONSIVE WRAPPERS (public site tables) ──────────────────── */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 500px;
}

/* ── ABOUT/CONTACT PAGES ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* About page: stack timeline grid */
    .timeline-grid {
        grid-template-columns: 1fr;
    }
}

/* ── MOBILE-ONLY CTA buttons: full width ─────────────────────────────── */
@media (max-width: 480px) {
    .hero-cta-group,
    .cta-buttons-row {
        flex-direction: column;
        gap: var(--space-3);
    }

    .hero-cta-group .btn,
    .cta-buttons-row .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Prevent select/input from causing horizontal scroll ─────────────── */
input, select, textarea {
    max-width: 100%;
    box-sizing: border-box;
}

