/* PedTrauma Design System */
:root {
    /* Color Palette */
    --color-primary: #1A3C5E;
    /* Institutional Deep Blue */
    --color-primary-light: #2C527A;
    --color-secondary: #4A90E2;
    /* Calm Hospital Blue */
    --color-accent: #00BCD4;
    --color-bg-white: #FFFFFF;
    --color-bg-light: #F8FAFC;
    --color-text-dark: #1E293B;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;

    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows & Radius */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: #0F766E;
    color: #FFFFFF;
    font-weight: 600;
    border: 1px solid #0F766E;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background: #084C47;
    color: #FFFFFF;
    border-color: #084C47;
    box-shadow: 0 8px 20px rgba(8, 76, 71, 0.24);
    transform: translateY(-1px);
}

.btn-primary:focus,
.btn-primary:active {
    background: #063C38;
    color: #FFFFFF;
    border-color: #063C38;
    outline: none;
}

.btn-outline {
    background: #FFFFFF;
    color: #0F766E;
    font-weight: 600;
    border: 1px solid #0F766E;
    transition: all 0.25s ease;
}

.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active {
    background: #0F766E;
    color: #FFFFFF;
    border-color: #0F766E;
    box-shadow: 0 6px 18px rgba(15,118,110,0.25);
    transform: translateY(-1px);
    outline: none;
}

.btn-secondary {
    background-color: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-bg-light);
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

/* Header & Nav */
header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    margin-right: 40px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: 24px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-dark);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    /* Header height */
    background-color: var(--color-bg-light);
    padding: 6.8rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 620px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Features/Services */
.features {
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.feature-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

/* Team Section - Expandable */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.team-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.team-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

/* Compact layout for collapsed state */
.team-photo-placeholder {
    width: 100px;
    height: 100px;
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid var(--color-primary-light);
    overflow: hidden;
}

.team-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--color-primary);
}

.team-card .crm {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-card .specialty {
    font-size: 0.9rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

/* Hidden by default */
.team-card .bio-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-in;
}

.team-card .bio {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
    padding-top: var(--spacing-xs);
    border-top: 1px solid var(--color-bg-light);
}

.team-card .bio-list {
    text-align: left;
    list-style: disc inside;
    margin-top: var(--spacing-xs);
    padding-left: var(--spacing-xs);
}

.team-card .bio-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

.team-card .expand-icon {
    margin-top: var(--spacing-xs);
    color: var(--color-primary-light);
    transition: transform 0.3s ease;
}

/* Expanded State */
.team-card.expanded {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.team-card.expanded .bio-content {
    max-height: 1000px;
    opacity: 1;
}

.team-card.expanded .team-photo-placeholder {
    transform: scale(1.1);
    /* Slightly grow on expand */
    border: 2px solid var(--color-secondary);
}

.team-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.social-links {
    margin-top: var(--spacing-sm);
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.social-links a {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--color-secondary);
    transform: scale(1.2);
}


/* Cards Section (Parents/Physicians) */
.info-cards {
    background-color: var(--color-bg-light);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.info-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.info-card ul {
    margin: var(--spacing-md) 0;
}

.info-card li {
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: 1.5rem;
}

.info-card li::before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: var(--spacing-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-primary);
}

.faq-question {
    padding: var(--spacing-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--color-text-dark);
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--color-primary);
    background-color: var(--color-bg-light);
}

.faq-question i {
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-in, padding 0.4s ease-out;
    padding: 0 var(--spacing-md);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
}

.faq-answer p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Contact/Footer */
footer {
    background-color: var(--color-text-dark);
    color: white;
    padding: var(--spacing-lg) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.footer-col h4 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    display: block;
    color: #B0BEC5;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: var(--spacing-lg);
    border-top: 1px solid #37474F;
    padding-top: var(--spacing-md);
    text-align: center;
    color: #B0BEC5;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-sm);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        margin: 0 auto var(--spacing-md);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    animation: whatsappPulse 8s infinite;
}

.whatsapp-float i {
    color: white;
    font-size: 28px;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

@keyframes whatsappPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 56px;
        height: 56px;
    }
}