/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Colors */
    --color-white: #FFFFFF;
    --color-blue: #2C6EAD;
    --color-green: #4CAF87;
    --color-grey: #F5F7FA;
    --color-text-dark: #1A202C;
    --color-text-light: #4A5568;
    --color-urgent: #E53E3E;
    --color-border: #E2E8F0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Manrope', sans-serif;

    /* Spacing */
    --spacing-section: 80px;
    --spacing-element: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-light);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--color-blue);
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: var(--spacing-section) 0;
}

.bg-light {
    background-color: var(--color-grey);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-green);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.link-secondary:hover {
    color: var(--color-blue);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.navbar {
    background-color: var(--color-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: none;
}

.nav-links a {
    color: var(--color-text-dark);
    font-weight: 500;
    margin: 0 16px;
}

.nav-links a:hover {
    color: var(--color-blue);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: var(--spacing-section) 0;
    background-color: var(--color-grey);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
}

.badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(76, 175, 135, 0.1);
    color: var(--color-green);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    width: 100%;
    height: auto;
    max-height: 500px;
}

/* ==========================================================================
   SOCIAL PROOF
   ========================================================================== */
.social-proof {
    background-color: var(--color-blue);
    padding: 40px 0;
    color: var(--color-white);
}

.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    text-align: center;
}

@media (min-width: 768px) {
    .social-proof-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    border: 1px solid var(--color-border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-blue);
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-top: 16px;
}

/* Urgency card highlights */
.urgency-card {
    border-color: rgba(229, 62, 62, 0.3);
    background-color: rgba(229, 62, 62, 0.02);
}

.urgency-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--color-urgent);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.75rem;
}

.urgency-card .service-icon {
    color: var(--color-urgent);
}

/* ==========================================================================
   MEDICAL TEAM
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-card {
    text-align: center;
}

.team-image-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto 24px auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.team-hover-action {
    position: absolute;
    inset: 0;
    background: rgba(44, 110, 173, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.team-image-wrapper:hover .team-hover-action {
    opacity: 1;
}

.team-image-wrapper:hover .team-img {
    transform: scale(1.05);
}

.team-info h3 {
    margin-bottom: 4px;
}

.team-info .specialty {
    color: var(--color-blue);
    font-weight: 500;
    margin-bottom: 4px;
}

.team-info .credentials {
    font-size: 0.875rem;
    color: #718096;
}

/* ==========================================================================
   BOOKING PROCESS
   ========================================================================== */
.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

@media (min-width: 992px) {
    .booking-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.booking-steps {
    margin-top: 32px;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-blue);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-text h4 {
    margin-bottom: 4px;
}

.step-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Form Styles */
.booking-form-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text-dark);
}

input,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    background-color: #fff;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(44, 110, 173, 0.1);
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    display: none;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background-color: rgba(76, 175, 135, 0.1);
    color: var(--color-green);
    border: 1px solid var(--color-green);
}

.form-message.error {
    display: block;
    background-color: rgba(229, 62, 62, 0.1);
    color: var(--color-urgent);
    border: 1px solid var(--color-urgent);
}

.form-note {
    text-align: center;
    font-size: 0.875rem;
    margin-top: 16px;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials {
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 300%;
    /* For 3 slides */
}

.testimonial-card {
    width: 33.333%;
    /* 100% / 3 cards */
    padding: 0 20px;
    flex-shrink: 0;
}

.testimonial-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.patient-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.patient-info h4 {
    margin-bottom: 2px;
    font-size: 1.125rem;
}

.patient-info span {
    display: block;
    font-size: 0.875rem;
    color: var(--color-blue);
}

.patient-info .date {
    color: #718096;
    font-size: 0.8rem;
    margin-top: 2px;
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.stars {
    color: #FFB800;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-border);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.dot.active {
    background-color: var(--color-blue);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: #0F172A;
    color: #CBD5E1;
    padding: 80px 0 24px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-logo {
    color: var(--color-white);
    margin-bottom: 24px;
}

.brand-col p {
    margin-bottom: 24px;
    max-width: 300px;
}

.emergency-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.emergency-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.emergency-phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-urgent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.emergency-phone:hover {
    color: #FC8181;
}

.site-footer h4 {
    color: var(--color-white);
    margin-bottom: 24px;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-table tr:last-child td {
    border-bottom: none;
}

.hours-table td:last-child {
    text-align: right;
    font-weight: 500;
    color: var(--color-white);
}

.map-container {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.address-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-links a {
    color: #CBD5E1;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--color-white);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    font-size: 1.25rem;
}