/* ===========================
   Navya Sai Children's Hospital
   Notion-inspired design language

   Color Palette:
   - Orange:      #E8842C
   - Blue:        #4B7BEC (lighter, friendlier)
   - Notion warm grays + playful accents

   Notion-style traits:
   - Inter font
   - Generous whitespace
   - Tight letter-spacing on headings
   - Subtle borders, minimal shadows
   - Color-coded cards (like Notion feature blocks)
   - Scroll-triggered fade-in animations
   - Soft, warm background tones
   =========================== */

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

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

:root {
    --orange: #E8842C;
    --orange-light: #F0993E;
    --orange-hover: #D4751F;
    --orange-bg: #FEF6EE;
    --blue: #1B2A6B;
    --blue-light: #2A3D8F;
    --blue-soft: #1B2A6B;
    --blue-dark: #111C4E;
    --blue-bg: #EEF0F8;
    --white: #FFFFFF;
    --warm-white: #FFFCF9;
    --notion-bg: #FBFBFA;
    --gray-50: #F7F6F3;
    --gray-100: #EEEDED;
    --gray-200: #E3E2E0;
    --gray-300: #D3D1CB;
    --gray-400: #AEACA6;
    --gray-500: #787774;
    --gray-600: #5A5856;
    --gray-700: #37352F;
    --gray-900: #191919;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-700);
    line-height: 1.65;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--orange);
}

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

/* ===== Scroll Animations ===== */
.fade-in,
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible,
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in grids */
.about-highlights .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.about-highlights .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }

.services-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.services-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.services-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.services-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.services-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.4s; }

.doctors-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.12s; }

/* ===== Container ===== */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--gray-100);
}

.nav-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.nav-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 50%;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.hospital-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.hospital-tagline {
    font-size: 0.72rem;
    color: var(--orange);
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-top: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-links a {
    padding: 7px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: 6px;
    transition: all var(--transition);
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    color: var(--gray-900);
    background: var(--gray-50);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 1px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 32px 100px;
    background: var(--blue-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(75, 123, 236, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 50%, rgba(232, 132, 44, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 15% 80%, rgba(232, 132, 44, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 30% 30% at 50% 100%, rgba(108, 155, 242, 0.2) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 32px;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.2));
    animation: gentle-float 6s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.hero-motto {
    font-size: 1.05rem;
    color: var(--orange-light);
    margin-bottom: 44px;
    font-style: italic;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange-hover);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
    transform: translateY(-1px);
}

/* ===== Sections ===== */
.section {
    padding: 112px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.1rem;
    margin-bottom: 64px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ===== About Section ===== */
.about {
    background: var(--white);
}

.about-text {
    max-width: 680px;
    margin: 0 auto 64px;
    text-align: center;
}

.about-text p {
    color: var(--gray-600);
    font-size: 1.05rem;
    margin-bottom: 18px;
    line-height: 1.8;
    letter-spacing: -0.01em;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Notion-style color-coded cards with top accent border */
.highlight-card {
    text-align: center;
    padding: 40px 28px;
    border-radius: var(--radius-xl);
    background: var(--accent-bg, var(--notion-bg));
    border: 1px solid var(--gray-100);
    border-top: 3px solid var(--accent, var(--orange));
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-200);
    border-top-color: var(--accent, var(--orange));
}

.highlight-icon {
    font-size: 2.25rem;
    margin-bottom: 18px;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.15);
}

.highlight-card h3 {
    font-size: 1.05rem;
    color: var(--gray-900);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.highlight-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ===== Services Section ===== */
.services {
    background: var(--notion-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Notion-style: each card has its own accent color */
.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: var(--card-accent, var(--orange));
    border-radius: 0 0 3px 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-200);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 1.75rem;
    margin-bottom: 18px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-accent-bg, var(--orange-bg));
    border-radius: 14px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.08) rotate(-3deg);
}

.service-card h3 {
    font-size: 1.05rem;
    color: var(--gray-900);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.service-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== Doctors Section ===== */
.doctors {
    background: var(--white);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 760px;
    margin: 0 auto;
}

.doctor-card {
    text-align: center;
    padding: 48px 36px 44px;
    border-radius: var(--radius-xl);
    background: var(--notion-bg);
    border: 1px solid var(--gray-100);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-200);
}

.doctor-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.doctor-avatar-alt {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
}

.doctor-card:hover .doctor-avatar {
    transform: scale(1.08);
}

.doctor-avatar span {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.doctor-card h3 {
    font-size: 1.15rem;
    color: var(--gray-900);
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.doctor-title {
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.doctor-qualifications {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.doctor-qualifications li {
    color: var(--gray-500);
    font-size: 0.85rem;
    padding: 5px 14px;
    background: var(--white);
    border-radius: 6px;
    border: 1px solid var(--gray-100);
    letter-spacing: -0.01em;
    transition: all var(--transition);
}

.doctor-qualifications li:hover {
    border-color: var(--blue-light);
    background: var(--blue-bg);
    color: var(--blue-dark);
}

/* ===== Contact Section ===== */
.contact {
    background: var(--notion-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 18px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-100);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-item:hover .contact-icon {
    transform: scale(1.08) rotate(-3deg);
    border-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.contact-item h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.contact-item p {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.65;
    letter-spacing: -0.01em;
}

.contact-item a {
    color: var(--blue);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--orange);
}

.contact-map iframe {
    width: 100%;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
}

/* ===== Footer ===== */
.footer {
    background: var(--blue-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 48px 0 28px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
}

.footer-brand p {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.footer-motto {
    font-size: 0.75rem !important;
    color: var(--orange-light) !important;
    font-weight: 400 !important;
    margin-top: 2px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    transition: color var(--transition);
    letter-spacing: -0.01em;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: -0.01em;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-container {
        height: 68px;
    }

    .nav-links {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 12px 20px;
        gap: 2px;
        border-bottom: 1px solid var(--gray-100);
        transform: translateY(-120%);
        transition: transform var(--transition);
    }

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

    .nav-links a {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .hero {
        min-height: auto;
        padding: 140px 24px 80px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-logo {
        width: 120px;
        height: 120px;
    }

    .section {
        padding: 72px 0;
    }

    .container {
        padding: 0 20px;
    }

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

    .section-subtitle {
        margin-bottom: 44px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .hospital-name {
        font-size: 0.95rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    .nav-logo img {
        width: 52px;
        height: 52px;
    }

    /* Simplify hover effects on touch devices */
    .highlight-card:hover,
    .service-card:hover,
    .doctor-card:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.85rem;
    }

    .nav-logo-text {
        display: none;
    }

    .nav-logo img {
        width: 46px;
        height: 46px;
    }

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-logo {
        animation: none;
    }

    .highlight-card,
    .service-card,
    .doctor-card,
    .contact-icon,
    .highlight-icon,
    .service-icon,
    .doctor-avatar {
        transition: none;
    }
}
