/* ============================================
   DENTISSIMO DENTAL CLINIC - MAIN STYLESHEET
   Complete responsive CSS for hero section & full website
   ============================================ */

/* ---------- RESET & GLOBAL ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif; */
    font-family: 'Rethink Sans', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

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

/* Container Utility */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ---------- TYPOGRAPHY ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.2;
}

/* ---------- HEADER / NAVIGATION (Refined) ---------- */
.header-top {
    padding: 16px 0;
    background: #ffffff;
    border-bottom: 1px solid #eef2f4;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0a2b32;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.logo img {
    display: block;
    max-height: 72px;
    width: auto;
    object-fit: contain;
}

/* desktop navigation */
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-right: auto;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e42;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: #1b6b6f;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1a2c32;
    font-weight: 500;
    font-size: 14px;
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 60px;
    transition: all 0.2s;
}

.phone-link i {
    color: #1b6b6f;
    font-size: 14px;
}

.phone-link:hover {
    background: #eef2f4;
    color: #0f4e52;
}

.btn-book {
    background: #1b6b6f;
    color: white !important;
    padding: 10px 28px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-book:hover {
    background: #12565a;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(27, 107, 111, 0.2);
}

/* mobile menu button (hamburger / close) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #1b6b6f;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    flex-shrink: 0;
    /* Prevent button from shifting */
}

.mobile-menu-btn:hover {
    background: #f0f4f5;
}

/* ============================================
   FIXED MOBILE STYLES - Logo TOP-LEFT, Button TOP-RIGHT
   ============================================ */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .header-top {
        padding: 12px 0;
    }

    .header-flex {
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-start;
        /* TOP ALIGN - prevents vertical centering */
        min-height: auto;
    }

    /* Hide navigation and actions by default on mobile */
    .nav-links,
    .header-actions {
        display: none;
    }

    /* Mobile menu button - STAYS TOP RIGHT CORNER */
    .mobile-menu-btn {
        display: flex;
        order: 2;
        margin: 0;
        margin-left: auto;
        align-self: flex-start;
        /* TOP ALIGN */
        flex-shrink: 0;
        position: relative;
        top: 0;
        right: 0;
        transform: none;
    }

    /* Fix for icon line-height - prevents vertical misalignment */
    .mobile-menu-btn i {
        line-height: 1;
    }

    /* Logo - STAYS TOP LEFT CORNER */
    .logo {
        display: flex !important;
        order: 1;
        margin: 0;
        align-self: flex-start;
        /* TOP ALIGN */
        justify-content: flex-start;
        transform: none;
        position: relative;
        left: 0;
        top: 0;
    }

    .logo img {
        max-height: 60px;
    }

    @media (max-width: 992px) {

        .nav-links {
            position: absolute;
            top: 78px;
            left: 0;
            width: 100%;
            background: #fff;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            padding: 24px;
            gap: 22px;

            transform: translateY(-20px);
            opacity: 0;
            visibility: hidden;

            transition: all .3s ease;

            border-top: 1px solid #eef2f4;
            box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
            z-index: 999;
        }

        .nav-links.show-mobile {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .nav-links a {
            width: 100%;
            text-align: left;
            font-size: 17px;
            padding: 10px 0;
            border-bottom: 1px solid #f2f2f2;
        }

        .header-actions {
            display: none;
        }

    }

    .nav-links.show-mobile a {
        font-size: 18px;
        padding: 8px 0;
        width: 100%;
        text-align: center;
        font-weight: 500;
    }

    .header-actions.show-mobile .btn-book {
        width: 80%;
        text-align: center;
    }

    @keyframes fadeSlideDown {
        0% {
            opacity: 0;
            transform: translateY(-12px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Extra small adjustments for smoothness */
@media (max-width: 480px) {
    .logo img {
        max-height: 55px;
    }

    .phone-link span {
        font-size: 13px;
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* Hero section (just for demonstration & visual completeness) */
.hero {
    background: linear-gradient(135deg, #f9fcfe 0%, #f0f7f5 100%);
    padding: 70px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #0a2b32;
    margin-bottom: 18px;
}

.hero p {
    font-size: 1.2rem;
    color: #3a5c64;
    max-width: 680px;
    margin: 0 auto 32px;
}

.btn-primary {
    background: #1b6b6f;
    color: white;
    padding: 14px 36px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #0e5559;
    transform: translateY(-2px);
}

section {
    padding: 70px 0;
    border-bottom: 1px solid #eef2f4;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0a2b32;
    margin-bottom: 40px;
    text-align: center;
}

.grid-3 {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: #ffffff;
    border-radius: 28px;
    padding: 32px 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef2f4;
    text-align: center;
    flex: 1;
    min-width: 240px;
    transition: all 0.2s;
}

.card i {
    font-size: 40px;
    color: #1b6b6f;
    margin-bottom: 20px;
}

.contact-info {
    background: #f8fafc;
    border-radius: 32px;
    padding: 40px;
    text-align: center;
}

footer {
    background: #0a2b32;
    color: #cddfe3;
    padding: 36px 0;
    text-align: center;
}

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

    section {
        padding: 50px 0;
    }
}

.mobile-email {
    display: none;
}

@media (max-width: 992px) {
    .mobile-email {
        display: flex;
        margin-top: 16px;
    }
}

/* ---------- HERO SECTION (100% matching reference UI) ---------- */
.hero-section {
    padding: 40px 0 60px;
    background: #ffffff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: stretch;
}

/* Left image card */
.hero-image-card {
    border-radius: 40px;
    overflow: hidden;
    background: #f4f9fc;
    height: 100%;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.07);
}

.hero-image-card img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-image-card:hover img {
    transform: scale(1.02);
}

/* Right dark teal card - exactly like Dentissimo design */
.hero-text-card {
    background: #003f4a;
    border-radius: 40px;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.1);
}

.hero-text-card .subheading {
    color: #b2dfdb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-text-card h1 {
    color: white;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.3px;
    margin: 0;
}

/* ---------- STATE OF THE ART SECTION (second screenshot) ---------- */
.state-section {
    padding: 60px 0;
    background: #ffffff;
}

.state-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.state-text h2 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #10262e;
    letter-spacing: -1px;
}

.state-text p {
    color: #4a5b62;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.state-call-us {
    background: #eef5f3;
    border-radius: 28px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.state-call-us span {
    font-size: 24px;
    font-weight: 700;
    color: #10262e;
}

.state-call-us .phone-box {
    border: 2px solid #1b6b6f;
    border-radius: 40px;
    padding: 10px 28px;
    font-weight: 700;
    font-size: 18px;
    color: #1b6b6f;
    background: transparent;
}

.state-image-card {
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}

.state-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 380px;
}

/* ---------- PROACTIVE CARE SECTION ---------- */
.proactive-section {
    background: #f8fafc;
    padding: 80px 0 60px;
    text-align: center;
}

.proactive-section .tooth-icon {
    font-size: 72px;
    color: #1b6b6f;
    margin-bottom: 24px;
}

.proactive-section h2 {
    font-size: 36px;
    line-height: 1.4;
    max-width: 1000px;
    margin: 0 auto 32px;
    color: #222222;
    font-weight: 400;
}

.proactive-section p {
    color: #222222;
    font-size: 22px;
}

/* ---------- EQUIPMENT SECTION ---------- */
.equipment-section {
    background: #f8fafc;
    padding: 0 0 80px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.equipment-card {
    border-radius: 32px;
    overflow: hidden;
}

.equipment-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

/* ---------- FEATURES CARDS SECTION ---------- */
.features-section {
    padding: 80px 0;
}

.features-title h2 {
    font-size: 44px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 48px;
    color: #1a1a1a;
    /* max-width: 900px; */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.feature-card {
    background: #f8fafc;
    border-radius: 32px;
    padding: 44px;
    border: 1px solid #eef2f4;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: #1b6b6f;
}

.feature-card h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #10262e;
}

.feature-card p {
    color: #5a6870;
    font-size: 16px;
    line-height: 1.7;
}

/* ---------- MODERN DENTAL OFFICE SECTION ---------- */
.modern-office-section {
    padding: 80px 0;
}

.modern-office-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.modern-office-text .subheading {
    color: #88959c;
    font-size: 12px;
    /* font-weight: 700; */
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.modern-office-text h2 {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #10262e;
}

.modern-office-text p {
    color: #5a6870;
    font-size: 16px;
    line-height: 1.8;
}

.modern-office-quote {
    background: #e0f2ef;
    border-radius: 32px;
    padding: 36px;
    margin-top: 40px;
    max-width: 480px;
}

.modern-office-quote p {
    color: #1a2c32;
    font-size: 18px;
    line-height: 1.6;
    font-style: normal;
}

.modern-office-quote .author {
    margin-top: 16px;
    color: #1b6b6f;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.modern-office-image-card {
    border-radius: 32px;
    overflow: hidden;
}

/* ---------- MEET OUR TEAM SECTION ---------- */
.team-section {
    background: #003f4a;
    padding: 60px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.team-image-card {
    border-radius: 32px;
    overflow: hidden;
}

.team-text-card {
    background: #80cbc4;
    border-radius: 32px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-text-card .subheading {
    color: #003f4a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.team-text-card h2 {
    color: #003f4a;
    font-size: 40px;
    line-height: 1.3;
    margin-bottom: 32px;
    font-weight: 600;
}

.team-text-card p {
    color: #1a2c32;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.team-text-card .view-link {
    color: #003f4a;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-text-card .view-link:hover {
    opacity: 0.85;
}

/* ---------- SERVICES SECTION ---------- */
.services-section {
    background: #f8fafc;
    padding: 80px 0 60px;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 20px;
}

.services-header h2 {
    font-size: 44px;
    font-weight: 400;
    color: #10262e;
}

.services-header .view-all {
    color: #10262e;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.services-header .view-all:hover {
    color: #1b6b6f;
}

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

.service-card {
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    min-height: 480px;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
    position: absolute;
    top: 0;
    left: 0;
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 28px 24px;
    color: white;
    z-index: 2;
}

.service-card-content .tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 12px;
}

.service-card-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.service-card-content .btn-view {
    border: 1px solid white;
    padding: 10px 22px;
    border-radius: 24px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-block;
    transition: all 0.2s;
}

.service-card-content .btn-view:hover {
    background: white;
    color: #1b6b6f;
}

/* ---------- TESTIMONIAL SECTION (slider version) ---------- */
.testimonial-section {
    background: #f8fafc;
    padding: 60px 0 80px;
}

.testimonial-section .subheading {
    text-align: center;
    color: #88959c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 48px;
}

/* Slider wrapper (carousel container) */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cards container - overflow hidden to show only one card at a time */
.testimonial-cards-container {
    overflow: hidden;
    width: 100%;
    border-radius: 48px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    will-change: transform;
}

/* Each testimonial card – exact same visual as original, but flexible width */
.testimonial-card {
    background: #ffffff;
    border-radius: 48px;
    padding: 48px 32px;
    border: 1px solid #eef2f4;
    text-align: center;
    margin: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex: 0 0 100%;
    /* each card takes full width of container */
    width: 100%;
}

/* Tooth icon / logo area (unchanged) */
.testimonial-card .tooth-icon {
    font-size: 48px;
    color: #1b6b6f;
    margin-bottom: 24px;
}

.testimonial-card .tooth-icon img {
    max-width: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.testimonial-card p {
    font-size: 22px;
    line-height: 1.5;
    color: #1a2c32;
    margin-bottom: 32px;
    font-weight: 400;
}

.testimonial-card .author {
    color: #5a6870;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* Navigation Buttons (left & right arrows) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 60px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(0px);
    color: #1a6e72;
    font-size: 24px;
    font-weight: 500;
    background-color: #ffffff;
}

.slider-btn:hover {
    background-color: #f0f6fa;
    border-color: #cbdbe0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.96);
}

.btn-prev {
    left: -20px;
}

.btn-next {
    right: -20px;
}

/* Dots / Indicators (optional but improves UX, also responsive) */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #cbd5e1;
    border-radius: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dot.active {
    width: 26px;
    background-color: #1b6b6f;
}

/* Responsive adjustments: keep card padding comfortable */
@media (max-width: 768px) {
    .testimonial-section {
        padding: 48px 0 60px;
    }

    .testimonial-card {
        padding: 32px 24px;
    }

    .testimonial-card p {
        font-size: 18px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .btn-prev {
        left: -12px;
    }

    .btn-next {
        right: -12px;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 560px) {
    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .btn-prev {
        left: -8px;
    }

    .btn-next {
        right: -8px;
    }

    .testimonial-card .tooth-icon img {
        max-width: 60px;
    }

    .testimonial-card p {
        font-size: 16px;
    }
}

.testimonial-cards-container {
    overflow: hidden;
    width: 100%;
}

.testimonial-track {
    display: flex;
    transition: transform .4s ease;
    width: 100%;
}

.testimonial-card {
    flex: 0 0 100%;
    min-width: 100%;
}

/* ========== OUR TEAM SECTION (replaces stats section) ========== */
.team-section {
    background: #003f4a;
    /* keeping same brand depth as original stats section */
    padding: 80px 24px;
    transition: all 0.2s ease;
}

/* container with max-width for large screens */
.team-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* section header – optional but adds real‑world polish */
.team-header {
    text-align: center;
    margin-bottom: 56px;
}

.team-header .badge {
    display: inline-block;
    background: rgba(128, 203, 196, 0.2);
    backdrop-filter: blur(2px);
    color: #80cbc4;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.team-header h2 {
    font-size: 2.6rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.team-header h2 span {
    color: #80cbc4;
    border-bottom: 3px solid #80cbc4;
    display: inline-block;
    padding-bottom: 4px;
}

.team-header .subhead {
    color: #cfd8dc;
    font-size: 1.1rem;
    margin-top: 16px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* 4‑card grid — fully responsive */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* ---------- MODERN CARD DESIGN (real‑world style) ---------- */
.doctor-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 48px -16px rgba(0, 0, 0, 0.3);
}

/* image container — ensures consistent aspect ratio */
.card-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #d9e2e8;
    aspect-ratio: 1 / 1;
    /* 1:1 square like professional medical cards */
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: brightness(1) saturate(1);
}

.doctor-card:hover .card-img-wrapper img {
    transform: scale(1.05);
    filter: brightness(1.02) saturate(1.02);
}

/* card content area */
.card-info {
    padding: 24px 20px 26px;
    background: white;
    text-align: center;
    transition: background 0.2s;
}

.doctor-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e2a32;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    transition: color 0.2s;
}

/* specialization default style */
.doctor-specialty {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c7a6e;
    background: #e0f2f1;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 40px;
    margin-bottom: 0;
    transition: all 0.25s ease;
}

/* Hover effect: name + specialty become more prominent,
           but we also want "hover, doctor ka name aur specialization show hona chahiye"
           they are already visible by default, but we enhance clarity + subtle additional glow.
           To meet requirement: on hover, name and specialty become extra highlighted.
           Also we can slightly elevate text.
        */
.doctor-card:hover .doctor-name {
    color: #003f4a;
    text-shadow: 0 1px 2px rgba(0, 63, 74, 0.08);
}

.doctor-card:hover .doctor-specialty {
    background: #003f4a;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 63, 74, 0.2);
    transform: translateY(-2px);
}

/* optional small extra description for real‑world feel (but main requirement: name+specialty appear on hover)
           But they already appear. To be safe and rich, we add short bio/hover micro-animation on specialty.
           Also we can include a subtle badge for experience years (optional but adds realism) */
.doctor-bio {
    font-size: 0.8rem;
    color: #5b6f7e;
    margin-top: 14px;
    line-height: 1.5;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.doctor-card:hover .doctor-bio {
    opacity: 1;
    color: #2c3e42;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media screen and (max-width: 1100px) {
    .doctors-grid {
        gap: 24px;
    }

    .doctor-name {
        font-size: 1.3rem;
    }

    .card-info {
        padding: 20px 16px;
    }
}

@media screen and (max-width: 900px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .team-section {
        padding: 60px 20px;
    }

    .team-header h2 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 550px) {
    .doctors-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
        gap: 28px;
    }

    .team-header h2 {
        font-size: 1.9rem;
    }

    .team-header .subhead {
        font-size: 1rem;
        padding: 0 8px;
    }

    .card-img-wrapper {
        aspect-ratio: 4 / 3;
    }

    .doctor-name {
        font-size: 1.4rem;
    }
}

/* additional touch: if needed any container smoothness */
.team-container {
    width: 100%;
}

/* micro animation on load */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.doctor-card {
    animation: fadeSlideUp 0.5s ease backwards;
}

.doctor-card:nth-child(1) {
    animation-delay: 0.05s;
}

.doctor-card:nth-child(2) {
    animation-delay: 0.1s;
}

.doctor-card:nth-child(3) {
    animation-delay: 0.15s;
}

.doctor-card:nth-child(4) {
    animation-delay: 0.2s;
}

/* ---------- CONTACT SECTION (converted from appointment) ---------- */
.contact-section {
    padding: 80px 0;
    background: #ffffff;
}

/* Keep original .appointment-grid structure but adapt for single column on mobile + two column layout on desktop */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Heading style — identical to original appointment h2 */
.contact-section h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #10262e;
    margin: 0;
}

/* Simple contact form — reusing original form styling but simplified fields */
.contact-form {
    width: 100%;
}

/* Form row grid — keeps original two-column layout for name/email row */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Full-width row for message (textarea) */
.contact-form .form-group-full {
    margin-bottom: 20px;
}

/* Labels — uppercase, small, bold, consistent with original */
.contact-form .form-group label,
.contact-form .form-group-full label {
    display: block;
    color: #5a6870;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Inputs, selects (we only use text/email but keep same styling) */
.contact-form .form-group input,
.contact-form .form-group-full textarea,
.contact-form .form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #d9e0e3;
    border-radius: 16px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
}

/* Textarea specific — keep consistent radius and padding, allow resize */
.contact-form .form-group-full textarea {
    resize: vertical;
    min-height: 120px;
}

/* Focus states for better accessibility */
.contact-form .form-group input:focus,
.contact-form .form-group-full textarea:focus {
    border-color: #9fcbc2;
    box-shadow: 0 0 0 3px rgba(161, 207, 194, 0.2);
}

/* Button — original .btn-submit styling intact */
.contact-form .btn-submit {
    background: #cbe5e0;
    border: none;
    padding: 16px 40px;
    border-radius: 16px;
    color: #003f4a;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    margin-top: 20px;
    transition: all 0.2s;
    display: inline-block;
    font-family: inherit;
    width: auto;
}

.contact-form .btn-submit:hover {
    background: #b2dbd4;
    transform: translateY(-1px);
}

.contact-form .btn-submit:active {
    transform: translateY(1px);
}

/* Simple feedback message style */
.form-feedback {
    margin-top: 18px;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 0 0 0;
    color: #2b6e4f;
}

.form-feedback.error {
    color: #bc4e2c;
}

/* responsiveness — stack on tablets and mobile */
@media (max-width: 992px) {
    .contact-section h2 {
        font-size: 36px;
    }

    .contact-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .contact-section h2 {
        text-align: center;
        font-size: 32px;
    }

    .contact-form {
        max-width: 100%;
    }

    /* keep form row two columns on larger phones? but for small phones better stack */
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form .btn-submit {
        width: 100%;
        text-align: center;
    }
}

/* very small devices fine tuning */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .contact-section h2 {
        font-size: 28px;
    }
}

/* ensure message area looks neat */
.contact-form .form-group-full textarea::placeholder {
    color: #b9c4ca;
    font-weight: 400;
}

.contact-form .form-group input::placeholder {
    color: #b9c4ca;
}

/* ---------- FOOTER ---------- */
footer {
    background: #f8fafc;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-nav a {
    display: block;
    color: #5a6870;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-nav a:hover {
    color: #1b6b6f;
}

.footer-about p {
    color: #5a6870;
    font-size: 15px;
    line-height: 1.8;
}

.footer-contact p {
    color: #5a6870;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 0px !important;
}

.footer-contact a {
    color: #5a6870;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #1b6b6f;
}

.footer-contact .btn-book-footer {
    background: #1b6b6f;
    color: white;
    padding: 10px 28px;
    border-radius: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 16px;
}

.footer-contact .btn-book-footer:hover {
    background: #80cbc4;
    color: #003f4a;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e8ec;
    padding-top: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #88959c;
    font-size: 13px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    color: #1b6b6f;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s;
}

.social-links a:hover {
    background: #1b6b6f;
    color: white;
}

/* ---------- RESPONSIVE MEDIA QUERIES (FULLY RESPONSIVE) ---------- */
@media (max-width: 1200px) {
    .state-text h2 {
        font-size: 44px;
    }

    .features-title h2 {
        font-size: 38px;
    }
}

@media (max-width: 992px) {

    .hero-grid,
    .state-grid,
    .modern-office-grid,
    .team-grid,
    .appointment-grid {
        grid-template-columns: 1fr;
    }

    .hero-text-card {
        padding: 40px 32px;
    }

    .hero-text-card h1 {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-content {
        grid-template-columns: repeat(2, 1fr);
        padding: 60px 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .modern-office-text h2 {
        font-size: 36px;
    }

    .team-text-card h2 {
        font-size: 32px;
    }

    .state-text h2 {
        font-size: 38px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .state-call-us {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .hero-text-card h1 {
        font-size: 24px;
    }

    .state-text h2 {
        font-size: 32px;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .equipment-card img {
        height: 320px;
    }

    .proactive-section h2 {
        font-size: 24px;
    }

    .feature-card {
        padding: 28px 24px;
    }

    .feature-card h3 {
        font-size: 22px;
    }

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

    .services-header h2 {
        font-size: 32px;
    }

    .testimonial-card {
        padding: 32px 20px;
    }

    .testimonial-card p {
        font-size: 18px;
    }

    .appointment-section h2 {
        font-size: 28px;
    }

    .appointment-form .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav a {
        font-size: 22px;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .logo {
        font-size: 24px;
    }

    .state-image-card img {
        min-height: 280px;
    }

    .modern-office-quote {
        padding: 24px;
    }
}

/* Fix for any horizontal overflow */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.hero-image-card,
.state-image-card,
.modern-office-image-card,
.team-image-card,
.equipment-card,
.service-card {
    max-width: 100%;
    overflow: hidden;
}