/* Neurosurgery & Diagnostic Center - Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Clinical Color Palette */
    --primary: #1E3A8A;
    /* Deep Blue */
    --primary-soft: #DBEAFE;
    --secondary: #3B82F6;
    /* Soft Blue */
    --accent: #0EA5E9;
    /* Cyan */
    --text-heading: #0F172A;
    --text-body: #475569;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;

    /* Spacing Units */
    --s1: 0.5rem;
    /* 8px */
    --s2: 1rem;
    /* 16px */
    --s3: 1.5rem;
    /* 24px */
    --s4: 2rem;
    /* 32px */
    --s6: 3rem;
    /* 48px */
    --s8: 4rem;
    /* 64px */
    --s12: 6rem;
    /* 96px */
    --s16: 8rem;
    /* 128px */

    /* UX Elements */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--s4);
}

/* --- Layout Components --- */

/* Header */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--s2) 0;
    /* Slightly tighter header */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--s2);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-links {
    display: flex;
    gap: var(--s4);
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 700;
}

/* Mobile Widget */
.mobile-widget {
    position: fixed;
    bottom: var(--s4);
    left: var(--s4);
    z-index: 1100;
    display: none;
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.widget-btn {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.4);
    transition: var(--transition);
}

.widget-btn:hover {
    transform: scale(1.1);
    background: var(--secondary);
}

@keyframes scaleIn {
    from {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-soft);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: var(--s12) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--s8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-bottom: var(--s2);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--s3);
}

/* --- Components --- */

/* Hero */
.hero {
    padding: var(--s16) 0;
    background: radial-gradient(circle at top right, var(--primary-soft), white 50%);
    position: relative;
    overflow: hidden;
}

/* Hero & Grid Adjustments - Professional Standard Scaling */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--s12);
    align-items: stretch;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--s12) 0;
    /* Professional 96px padding */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--s4);
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: var(--s6);
}

.hero-image {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 500px;
    /* Locked professional height */
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background-color: var(--primary-soft);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s4);
}

.card {
    background: var(--white);
    padding: var(--s6);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--s3);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--s2);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: var(--s12) 0 var(--s6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--s8);
    margin-bottom: var(--s8);
}

.footer-about h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--s3);
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: var(--s4);
}

.footer-links ul li {
    margin-bottom: var(--s2);
}

.footer-links ul li a {
    color: var(--primary-soft);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-newsletter p {
    color: var(--primary-soft);
    margin-bottom: var(--s3);
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: var(--s2);
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem var(--s3);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

.newsletter-form button {
    background: white;
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--s6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--primary-soft);
}

/* --- Page Specifics --- */

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--s12);
}

.contact-info-list {
    display: grid;
    gap: var(--s6);
}

.contact-item {
    display: flex;
    gap: var(--s3);
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form-box {
    background: white;
    padding: var(--s8);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: var(--s3);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--s1);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--s4);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--s6);
        text-align: center;
        align-items: center;
    }

    .hero-content {
        padding: 0;
        margin-bottom: var(--s4);
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        max-height: 400px;
    }

    .hero-image img {
        height: 400px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Reverse columns on mobile for better flow if needed */
    .hero-grid[style*="direction: rtl"] {
        display: flex;
        flex-direction: column;
    }

    .hero-grid[style*="direction: rtl"] .hero-content {
        order: 1;
    }

    .hero-grid[style*="direction: rtl"] .hero-image {
        order: 2;
        margin-top: var(--s4);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .header-btn {
        display: none;
    }

    .mobile-widget {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    section {
        padding: var(--s8) 0;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--s3);
        text-align: center;
    }

    .hero-image img,
    .hero-image {
        height: 300px;
    }

    .container {
        padding: 0 var(--s2);
    }
}