/* ==========================================================================
   ARIYAN HOSPITAL - WORLD-CLASS LUXURY MEDICAL DESIGN SYSTEM
   Designed with High-End Healthcare Aesthetics, Precision & Fluid Responsiveness
   ========================================================================== */

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

:root {
    /* Core Brand Color Tokens */
    --primary-red: #d90429;
    --primary-red-hover: #ef233c;
    --primary-red-glow: rgba(217, 4, 41, 0.45);
    --primary-red-subtle: rgba(217, 4, 41, 0.12);

    /* Deep Luxury Obsidian & Midnight Slate Theme */
    --navy-deepest: #030814;
    --navy-dark: #07101e;
    --navy-card: #0c182d;
    --navy-card-hover: #12213d;
    --navy-surface: #101e38;
    --navy-border: rgba(255, 255, 255, 0.09);
    --navy-border-glow: rgba(0, 240, 255, 0.25);

    /* Vibrant Clinical Accent Accents */
    --accent-cyan: #00f0ff;
    --accent-cyan-glow: rgba(0, 240, 255, 0.4);
    --accent-blue: #2563eb;
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.4);
    --accent-gold: #f59e0b;

    /* Clean Clinical Light Theme Tokens */
    --bg-body: #f8fafc;
    --bg-surface-white: #ffffff;
    --border-light: #e2e8f0;
    --border-light-hover: #cbd5e1;

    /* High-Contrast Typography Colors */
    --text-primary-dark: #0f172a;
    --text-secondary-dark: #475569;
    --text-muted-dark: #64748b;
    --text-primary-light: #ffffff;
    --text-secondary-light: #cbd5e1;
    --text-muted-light: #94a3b8;

    /* Typography Families */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

    /* Radius System */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transition Curves */
    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Elevation & Ambient Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.14);
    --shadow-dark-card: 0 25px 60px rgba(0, 0, 0, 0.55);
    --shadow-glow-red: 0 0 24px rgba(217, 4, 41, 0.45);
    --shadow-glow-cyan: 0 0 24px rgba(0, 240, 255, 0.35);
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-primary-dark);
    background-color: var(--bg-body);
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    line-height: 1.65;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    background-color: var(--bg-body);
    color: var(--text-primary-dark);
}

img, video, iframe, canvas {
    max-width: 100%;
    height: auto;
}

.page-view {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--primary-red);
    color: #ffffff;
}

/* Container Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* ==========================================================================
   NAVIGATION & HEADER (FROSTED GLASS HUD)
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(3, 8, 20, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 20px;
    width: 100%;
}

/* Brand Logo (Emblem Top, Text Stacked Below) */
.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    gap: 3px;
    flex-shrink: 0;
    line-height: 1;
    transition: transform var(--transition-fast);
}

.brand-logo:hover {
    transform: translateY(-1px);
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid var(--primary-red);
    box-shadow: 0 0 14px rgba(217, 4, 41, 0.5);
    flex-shrink: 0;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-logo:hover .brand-icon {
    transform: scale(1.06);
    box-shadow: 0 0 20px rgba(217, 4, 41, 0.7);
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
    font-family: var(--font-heading);
}

.brand-text .brand-name {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.brand-text .brand-sub {
    color: var(--primary-red);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Nav Links Menu */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0 auto;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition-fast);
    padding: 6px 2px;
    position: relative;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--primary-red));
    border-radius: 2px;
    transition: width var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Standard Sleek Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition-smooth);
    white-space: nowrap;
    user-select: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), #990000);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-red-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(217, 4, 41, 0.55);
    background: linear-gradient(135deg, #ef233c, var(--primary-red));
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

.btn-emergency {
    background: linear-gradient(135deg, #d90429, #990000);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(217, 4, 41, 0.5);
    border: 1px solid #ff4d6d;
    animation: pulseGlow 2s infinite;
}

.btn-appointment {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-appointment:hover {
    background: var(--accent-cyan);
    color: #030814;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
    transform: translateY(-1px);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(217, 4, 41, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(217, 4, 41, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 4, 41, 0); }
}

/* Mobile Toggle Hamburger */
.mobile-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 6px 12px;
    min-width: 44px;
    min-height: 44px;
    line-height: 1;
}

/* Real-Time Continuous Ticker Ribbon */
.ticker-services-bar {
    width: 100%;
    background: #020610;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    padding: 9px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: tickerInfiniteScroll 25s linear infinite;
}

.ticker-item {
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.ticker-dot {
    color: var(--primary-red);
    font-size: 1.1rem;
}

@keyframes tickerInfiniteScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   PAGE VIEW ROUTER & SECTION TYPOGRAPHY
   ========================================================================== */

.page-view {
    display: none;
    animation: fadeInPage 0.35s ease-out;
}

.page-view.active {
    display: block;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-padding {
    padding: 85px 0;
}

.section-header, .section-title-wrap {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    background: var(--primary-red-subtle);
    color: var(--primary-red);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.76rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    border: 1px solid rgba(217, 4, 41, 0.25);
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--navy-darkest);
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}

.section-subtitle {
    color: var(--text-muted-dark);
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   HERO SECTION (LUXURY MEDICAL SHOWCASE)
   ========================================================================== */

.hero-main {
    position: relative;
    min-height: calc(92vh - 70px);
    height: 92vh;
    max-height: 820px;
    display: flex;
    align-items: flex-start;
    background: var(--navy-deepest);
    color: #ffffff;
    overflow: hidden;
    padding: 30px 0;
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(3, 8, 20, 0.6) 0%, rgba(3, 8, 20, 0.3) 50%, rgba(3, 8, 20, 0.1) 100%);
    pointer-events: none;
}

.hero-content-wrap {
    max-width: 660px;
    position: relative;
    z-index: 3;
    padding: 20px 0;
}

.hero-compact-top-left {
    max-width: 480px;
    position: relative;
    z-index: 3;
    padding: 10px 0;
    margin: 0;
}

.hero-compact-top-left .hero-brand-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.015em;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.hero-brand-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.015em;
    color: #ffffff;
    margin-bottom: 14px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero-tagline {
    font-size: 0.95rem; /* Clean and legible text */
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 22px;
    max-width: 560px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (SUPREME FLUID LAYOUT & MOBILE-FIRST OPTIMIZATION)
   ========================================================================== */

/* Laptops & Standard Desktops (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-link {
        font-size: 0.86rem;
    }

    .hero-brand-title {
        font-size: 2.4rem;
    }
}

/* Tablet Screens (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }

    .navbar {
        padding: 10px 0;
    }

    .mobile-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 3;
        margin-left: 6px;
    }

    .nav-actions {
        order: 2;
        margin-left: auto;
        gap: 10px;
    }

    /* Mobile Glass Drawer */
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 64px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: rgba(3, 8, 20, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: stretch;
        padding: 24px 20px 80px 20px;
        gap: 12px;
        border-bottom: 2px solid rgba(0, 240, 255, 0.3);
        transform: translateY(-150%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.15rem;
        font-weight: 700;
        width: 100%;
        padding: 14px 16px;
        border-radius: var(--radius-sm);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: block;
    }

    .nav-link:hover, .nav-link.active {
        background: rgba(0, 240, 255, 0.12);
        color: var(--accent-cyan);
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-glass-box {
        padding: 34px 28px;
        max-width: 100%;
    }

    .hero-main {
        min-height: 78vh;
        height: auto;
        padding: 24px 0;
    }

    .hero-compact-top-left {
        max-width: 360px;
        padding: 12px 0;
    }

    .hero-compact-top-left .hero-brand-title {
        font-size: 1.35rem;
        line-height: 1.22;
    }
}

/* Medium & Small Mobile Screens (<= 767px) */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    .navbar {
        padding: 8px 0;
        gap: 8px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .brand-text .brand-name {
        font-size: 0.82rem;
    }

    .brand-text .brand-sub {
        font-size: 0.62rem;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-actions .btn {
        padding: 7px 12px;
        font-size: 0.76rem;
    }

    .section-padding {
        padding: 45px 0;
    }

    .section-header, .section-title-wrap {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .section-subtitle {
        font-size: 0.92rem;
    }

    .hero-main {
        min-height: 68vh;
        height: auto;
        padding: 18px 0;
    }

    .hero-compact-top-left {
        max-width: 300px;
        padding: 8px 0;
    }

    .hero-compact-top-left .hero-brand-title {
        font-size: 1.15rem;
        line-height: 1.25;
        letter-spacing: -0.01em;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
    }

    .hero-tagline {
        font-size: 0.92rem;
        line-height: 1.55;
        margin-bottom: 20px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
        padding: 12px 18px;
        font-size: 0.88rem;
    }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 6px 0;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
    }

    .brand-text .brand-name {
        font-size: 0.76rem;
    }

    .brand-text .brand-sub {
        font-size: 0.58rem;
    }

    .nav-actions .btn-appointment {
        display: none; /* Accessible in the mobile drawer & hero CTAs to preserve space */
    }

    .btn-emergency {
        padding: 6px 10px;
        font-size: 0.72rem;
    }

    .mobile-toggle-btn {
        padding: 5px 10px;
        min-width: 38px;
        min-height: 38px;
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero-main {
        min-height: 62vh;
        height: auto;
        padding: 14px 0;
    }

    .hero-compact-top-left {
        max-width: 250px;
        padding: 6px 0;
    }

    .hero-compact-top-left .hero-brand-title {
        font-size: 1.05rem;
        line-height: 1.25;
    }

    .modal-content-box {
        max-width: 95vw !important;
        width: 100% !important;
        margin: 6px auto !important;
        border-radius: 18px !important;
    }

    .modal-body {
        padding: 16px 14px !important;
    }

    input, select, textarea {
        font-size: 16px !important; /* Prevents iOS focus auto-zoom */
    }
}
