/* ── Avtant Hospitals — Main Stylesheet ───────────────────── */
/* @import component stylesheets */
@import url('components/header.css');
@import url('components/hero.css');
@import url('components/about.css');
@import url('components/stats.css');
@import url('components/specialities.css');
@import url('components/care-strip.css');
@import url('components/emergency.css');
@import url('components/footer.css');

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset ─────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    /* Primary palette */
    --color-navy: #03182A;
    --color-navy-light: #071D36;
    --color-teal: #16899A;
    --color-teal-dark: #127584;
    --color-teal-light: rgba(22, 137, 154, 0.12);
    --color-gold: #C9964A;
    --color-gold-light: rgba(201, 150, 74, 0.15);

    /* Backgrounds */
    --color-white: #FFFFFF;
    --color-bg-clinical: #F2F7F9;
    --color-bg-overlay: rgba(3, 24, 42, 0.75);
    --color-bg-stats: rgba(3, 24, 42, 0.88);

    /* Text */
    --color-text-primary: #071D36;
    --color-text-secondary: #344963;
    --color-text-muted: #6E7D8C;
    --color-text-on-dark: #FFFFFF;
    --color-text-on-dark-muted: rgba(255, 255, 255, 0.7);

    /* Borders */
    --color-border: #E2E8F0;
    --color-border-subtle: rgba(255, 255, 255, 0.12);

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Sizes */
    --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: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.25rem;
    --text-6xl: 4rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max: 1280px;
    --container-wide: 1400px;
    --header-height: 80px;

    /* Effects */
    --transition: 250ms ease-in-out;
    --transition-slow: 400ms ease-in-out;
    --shadow-sm: 0 1px 3px rgba(3, 24, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(3, 24, 42, 0.08);
    --shadow-lg: 0 8px 24px rgba(3, 24, 42, 0.10);
    --shadow-card: 0 2px 8px rgba(3, 24, 42, 0.06);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
}

/* ── Base ──────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-white);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
}

/* ── Utility: Container ────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-wide {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ── Utility: Buttons ──────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-teal);
    color: var(--color-text-on-dark);
    border: 1px solid var(--color-teal);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary-dark {
    background: transparent;
    color: var(--color-text-on-dark);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-teal {
    background: transparent;
    color: var(--color-navy);
    border: 1px solid var(--color-teal);
}

.btn .btn-arrow {
    transition: transform var(--transition);
}

@media (hover: hover) {
    .btn-primary:hover {
        background: var(--color-teal-dark);
        border-color: var(--color-teal-dark);
    }

    .btn-secondary:hover {
        border-color: var(--color-teal);
        color: var(--color-teal);
    }

    .btn-secondary-dark:hover {
        border-color: var(--color-text-on-dark);
    }

    .btn-outline-teal:hover {
        background: var(--color-teal);
        color: var(--color-text-on-dark);
    }

    .btn:hover .btn-arrow {
        transform: translateX(4px);
    }
}

/* ── Utility: Eyebrow ──────────────────────────────────────── */
.eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
}

/* ── Utility: Section heading ──────────────────────────────── */
.section-heading {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-navy);
}

.section-heading .accent {
    color: var(--color-teal);
}

/* ── Utility: Gold divider ─────────────────────────────────── */
.gold-divider {
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-gold);
    border: none;
    margin: var(--space-lg) 0;
}

/* ── Utility: Screen-reader only ───────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Toast notification ────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--color-navy);
    color: var(--color-text-on-dark);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    transition: all var(--transition-slow);
    pointer-events: none;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ── Demo notice ───────────────────────────────────────────── */
.demo-notice {
    position: fixed;
    bottom: 12px;
    right: 12px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    background: var(--color-white);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    z-index: 9998;
    opacity: 0.7;
}

/* ── Scroll reveal animation ──────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}