:root {
    --primary: #0950ad;
    --primary-light: #1c6fdc;
    --secondary: #f0f4f8;
    --text: #1a202c;
    --text-muted: #4a5568;
    --bg: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --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: 'Outfit', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.header .container {
    max-width: 1400px;
}

/* Grid Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 968px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Header & Nav */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

/* Nav CTA Button */
.btn-cta-nav {
    background: linear-gradient(135deg, #0950ad 0%, #3b82f6 100%);
    color: white !important;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(9, 80, 173, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(9, 80, 173, 0.4);
}

.nav-cta-wrapper {
    display: flex;
    align-items: center;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(9, 80, 173, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
}

/* Carousel Styles */
.testimonials-container {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 20px);
}

.google-review-icon {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

/* Carousel Arrows */
.carousel-arrows {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary);
}

.carousel-arrow:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.carousel-arrow i {
    width: 20px;
    height: 20px;
}

/* Map Branded Overlay */
.map-container {
    position: relative;
}

.map-pin-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 10;
    pointer-events: none;
}

.map-pin {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(9, 80, 173, 0.4);
    animation: pinBounce 2s ease infinite;
}

.map-pin img {
    width: 30px;
    height: 30px;
    transform: rotate(45deg);
    border-radius: 50%;
}

.map-pin-label {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes pinBounce {

    0%,
    100% {
        transform: rotate(-45deg) translateY(0);
    }

    50% {
        transform: rotate(-45deg) translateY(-8px);
    }
}

@media (max-width: 968px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 600px) {
    .carousel-slide {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 60px 0;
    }
}

@media (max-width: 968px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 20px;
        font-weight: 600;
    }
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.partners-strip {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    display: block;
    height: auto;
}


.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.nav-cta-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: radial-gradient(circle at top right, #f0f7ff 0%, #ffffff 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary);
}

.hero-desc {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(9, 80, 173, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 80, 173, 0.4);
}

.btn-cta {
    background: #007bff;
    /* Vibrant blue for contrast, but still in blue family */
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.3);
}

.btn-cta:hover {
    background: #0056b3;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.btn-phone {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    font-size: 15px;
}

/* Image Styles */
.hero-image-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
}

.hero-image {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.hero-image-container:hover .hero-image {
    transform: scale(1.05);
}

.doctor-badge {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    background: white;
    padding: 16px 32px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.doctor-badge strong {
    display: block;
    font-size: 18px;
    color: var(--primary);
}

.doctor-badge span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Icon Block Utility */
.icon-block {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(9, 80, 173, 0.05);
    padding: 10px 20px;
    border-radius: 100px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid #e0efff;
    transition: all 0.3s ease;
}

.icon-block i {
    width: 18px;
    height: 18px;
}

.icon-block:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Tile Cards */
.tile-card {
    background: white;
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tile-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(9, 80, 173, 0.1);
    border-color: #e0e7ff;
}

/* Form Styles */
.feature-card {
    background: white;
    padding: 0;
    /* Tiles handle padding elsewhere if needed, but for index.html we wrap in tile-card */
    border-radius: 32px;
    text-align: left;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary);
}

.form-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(9, 80, 173, 0.1);
}

.error-message {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 6px;
    display: none;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.captcha-box {
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary);
    border: 1px dashed var(--primary);
}

/* Success Message Overlay */
#form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

#form-success i {
    width: 64px;
    height: 64px;
    color: #48bb78;
    margin-bottom: 20px;
}

/* Contact Info & CTA */
.contact-info {
    padding: 80px 0;
    transition: var(--transition);
}

.cta-overlay-section {
    position: relative;
    background: url('assets/cta_bg.jpg') center/cover no-repeat;
    overflow: hidden;
    padding: 80px 0;
    color: white;
}

.cta-overlay-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 80, 173, 0.9);
    z-index: 1;
}

.cta-overlay-section .container {
    position: relative;
    z-index: 2;
}

.cta-box h2 {
    color: white;
    margin-bottom: 16px;
    font-size: 36px;
}


.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.contact-card .icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary);
}

.contact-card a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary);
}

/* Map Section */
.content-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 16px;
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-image {
    width: 100%;
    display: block;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image-wrapper {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }

    h1 {
        font-size: 48px;
    }

    .hero-desc {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .d-none-mobile {
        display: none;
    }
}