/* ============================================================
   Kalyani IVF — Public Website CSS
   Font: Poppins | Framework: Bootstrap 5.3 + AOS + Swiper 11
   ============================================================ */

/* ---- Root / Custom Properties -------------------------------- */
:root {
    /* These fallbacks are overridden by get_theme_vars() inline style */
    --primary:      #c0392b;
    --secondary:    #2c3e50;
    --accent:       #e74c3c;
    --text:         #333333;
    --bg:           #ffffff;
    --font:         'Poppins', sans-serif;

    /* Derived / utility */
    --primary-light:   rgba(192, 57, 43, 0.1);
    --primary-dark:    #a93226;
    --soft-bg:         #fdf5f5;
    --light-bg:        #f8f9fa;
    --border-radius:   12px;
    --transition:      0.3s ease;
    --shadow-sm:       0 2px 12px rgba(0,0,0,0.08);
    --shadow-md:       0 8px 32px rgba(0,0,0,0.12);
    --shadow-lg:       0 16px 48px rgba(0,0,0,0.16);
}

/* ---- Global Reset ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; transition: color var(--transition); }

/* ---- Typography Helpers ------------------------------------- */
.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-padding { padding: 90px 0; }

.bg-light-soft { background-color: var(--soft-bg); }

/* ---- Buttons ----------------------------------------------- */
.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-primary-cta:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.35);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.web-navbar {
    background: transparent;
    padding: 18px 0;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
    z-index: 1050;
}

.web-navbar.scrolled {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.10);
    padding: 10px 0;
}

/* Brand */
.web-brand { font-size: 1.3rem; }

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.brand-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary);
    transition: color var(--transition);
}

.web-navbar:not(.scrolled) .brand-name { color: #fff; }
.web-navbar:not(.scrolled) .brand-icon { background: rgba(255,255,255,0.2); }

.navbar-logo-img { height: 48px; width: auto; object-fit: contain; }

/* Nav Links */
.web-nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: #fff;
    position: relative;
    padding: 8px 12px !important;
    transition: color var(--transition);
}

.web-navbar.scrolled .web-nav-link { color: var(--secondary); }

.web-nav-link::after {
    content: '';
    position: absolute;
    left: 12px;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
    border-radius: 2px;
}
.web-nav-link:hover::after,
.web-nav-link.active::after { width: calc(100% - 24px); }
.web-nav-link:hover { color: var(--primary) !important; }

/* Book Appointment button */
.btn-book-appt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-book-appt:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(192, 57, 43, 0.35);
}

/* Custom hamburger */
.web-toggler {
    border: none;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
}
.toggler-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}
.web-navbar.scrolled .toggler-bar { background: var(--secondary); }

/* Mobile nav background */
@media (max-width: 991px) {
    .web-navbar.show,
    .web-navbar:has(.navbar-collapse.show) {
        background: #fff;
        box-shadow: 0 2px 20px rgba(0,0,0,0.10);
    }
    .web-nav-link { color: var(--secondary) !important; }
    .navbar-collapse { background: #fff; border-radius: var(--border-radius); padding: 10px 0; }
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-swiper { width: 100%; height: 100%; }

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-slide-static {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a2a3a 50%, #2d1b1b 100%);
}
.hero-slide-static-2 {
    background: linear-gradient(135deg, #1a2a3a 0%, var(--secondary) 50%, var(--primary-dark) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.55) 60%,
        rgba(0,0,0,0.70) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-top: 80px;
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.88);
    max-width: 600px;
    margin: 0 auto 32px;
    font-weight: 400;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.btn-hero-primary {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
}
.btn-hero-primary:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Swiper hero arrows */
.hero-prev, .hero-next {
    width: 50px !important;
    height: 50px !important;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
}
.hero-prev:hover, .hero-next:hover { background: var(--primary); }
.hero-prev::after, .hero-next::after { display: none; }
.hero-prev { left: 20px !important; }
.hero-next { right: 20px !important; }

.hero-pagination { bottom: 24px !important; }
.hero-pagination .swiper-pagination-bullet {
    width: 8px; height: 8px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
}
.hero-pagination .swiper-pagination-bullet-active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* Scroll-down indicator */
.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    animation: bounceDown 2s infinite;
    cursor: pointer;
}
@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}


/* ============================================================
   STATS BAR
   ============================================================ */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.stat-item {
    text-align: center;
    padding: 48px 20px;
    color: #fff;
    position: relative;
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255,255,255,0.2);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.85;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.03em;
}


/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background: var(--bg); }

.about-img-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.about-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: block;
}

.about-img-placeholder {
    background: linear-gradient(135deg, var(--soft-bg), #f0d9d9);
    border-radius: 16px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.4;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: #fff;
    border-radius: 16px;
    padding: 18px 22px;
    text-align: center;
    box-shadow: var(--shadow-md);
    min-width: 110px;
}
.badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.badge-text {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.4;
}

.about-accent-dot {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    z-index: -1;
}

.about-content {
    color: #555;
    font-size: 0.97rem;
    line-height: 1.85;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.about-features li strong { display: block; font-size: 0.95rem; color: var(--secondary); }
.about-features li p { margin: 0; font-size: 0.85rem; color: #777; }


/* ============================================================
   WHAT IS IVF?
   ============================================================ */
.ivf-section { background: var(--soft-bg); }

.ivf-steps { display: flex; flex-direction: column; gap: 12px; }

.ivf-step {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(192, 57, 43, 0.3);
}

.step-card {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.step-icon {
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}

.step-info h5 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; color: var(--secondary); }
.step-info p  { font-size: 0.8rem; color: #777; margin: 0; line-height: 1.5; }

.ivf-info-box { padding: 10px 0 10px 20px; }

.ivf-info-content {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.ivf-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #444;
}
.highlight-item i {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}


/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section { background: var(--bg); }

.service-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 36px 28px;
    border-top: 3px solid var(--primary);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: background var(--transition), color var(--transition);
}
.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
}

.service-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 10px;
}
.service-desc {
    font-size: 0.87rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 18px;
}
.service-link {
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}
.service-link:hover { gap: 8px; color: var(--primary-dark); }


/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-us-section { background: var(--soft-bg); }

.why-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 36px 24px;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.why-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin: 0 auto 20px;
}
.why-icon-1 { background: rgba(192, 57, 43, 0.12); color: var(--primary); }
.why-icon-2 { background: rgba(44, 62, 80, 0.12);  color: var(--secondary); }
.why-icon-3 { background: rgba(231, 76, 60, 0.12);  color: var(--accent); }
.why-icon-4 { background: rgba(39, 174, 96, 0.12);  color: #27ae60; }

.why-card h4 { font-size: 1rem; font-weight: 600; color: var(--secondary); margin-bottom: 10px; }
.why-card p  { font-size: 0.86rem; color: #666; line-height: 1.7; margin: 0; }


/* ============================================================
   TEAM SECTION
   ============================================================ */
.team-section { background: var(--bg); }

.team-card {
    text-align: center;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.team-photo-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: linear-gradient(135deg, var(--soft-bg), #f0d9d9);
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.team-card:hover .team-photo { transform: scale(1.05); }

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.35;
}

/* Hover overlay */
.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(192, 57, 43, 0.9) 0%, rgba(44, 62, 80, 0.85) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.team-card:hover .team-overlay {
    opacity: 1;
    transform: translateY(0);
}
.team-bio { font-size: 0.8rem; line-height: 1.6; margin-bottom: 0; text-align: center; }

.team-info { padding: 18px 16px 20px; }
.team-name         { font-size: 0.95rem; font-weight: 600; color: var(--secondary); margin-bottom: 4px; }
.team-designation  { font-size: 0.78rem; color: var(--primary); font-weight: 500; margin-bottom: 4px; }
.team-qualification { font-size: 0.72rem; color: #888; margin: 0; }


/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section {
    background: linear-gradient(135deg, var(--soft-bg) 0%, #fff 100%);
}

.testimonials-swiper { padding-bottom: 50px !important; }

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    position: relative;
    height: 100%;
}

.testimonial-quote-icon {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: 12px;
    line-height: 1;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
}
.testimonial-stars i {
    font-size: 0.9rem;
    color: #f4c542;
}
.testimonial-stars .far.fa-star { color: #ddd; }

.testimonial-text {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--secondary); }
.testimonial-author span  { font-size: 0.78rem; color: #888; }

.testimonials-pagination { bottom: 8px !important; }
.testimonials-pagination .swiper-pagination-bullet {
    background: var(--primary);
    opacity: 0.3;
}
.testimonials-pagination .swiper-pagination-bullet-active { opacity: 1; }


/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--secondary) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Ccircle cx='100' cy='100' r='80' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='2'/%3E%3Ccircle cx='100' cy='100' r='50' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='2'/%3E%3C/svg%3E") center/400px repeat;
}

.cta-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.btn-cta-white {
    background: #fff;
    color: var(--primary);
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 16px 38px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition);
}
.btn-cta-white:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.2);
}

.btn-cta-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50px;
    padding: 16px 38px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition);
}
.btn-cta-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-3px);
}


/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section { background: var(--bg); }

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}
.contact-info-card:hover { transform: translateX(4px); }

.ci-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.ci-content h5 { font-size: 0.88rem; font-weight: 600; color: var(--secondary); margin-bottom: 3px; }
.ci-content p  { font-size: 0.85rem; color: #666; margin: 0; }
.ci-content a  { color: #666; transition: color var(--transition); }
.ci-content a:hover { color: var(--primary); }

/* Map */
.map-embed iframe {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    border: none;
}
.map-placeholder {
    background: linear-gradient(135deg, var(--soft-bg), #f0d9d9);
    border-radius: 10px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--secondary);
}
.map-placeholder i { font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; opacity: 0.6; }
.map-placeholder p { font-size: 0.9rem; color: #666; margin: 0; line-height: 1.5; }

/* Contact Form */
.contact-form-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary);
}
.contact-form-box h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary);
}

.form-floating label { font-size: 0.87rem; color: #888; }
.form-control, .form-select {
    border-radius: 8px;
    border-color: #e0e0e0;
    font-family: var(--font);
    font-size: 0.9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.btn-submit {
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--secondary, #2c3e50);
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
}

.footer-top { padding: 70px 0 50px; }

.footer-logo-img { height: 50px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }

.footer-brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.footer-tagline {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background var(--transition), color var(--transition), transform var(--transition);
    border: 1px solid rgba(255,255,255,0.12);
}
.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--primary);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.87rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition), gap var(--transition);
}
.footer-links a i { font-size: 0.65rem; color: var(--primary); transition: transform var(--transition); }
.footer-links a:hover { color: #fff; gap: 12px; }

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255,255,255,0.65);
    font-size: 0.87rem;
    line-height: 1.5;
}
.footer-contact-list i {
    color: var(--primary);
    font-size: 0.95rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}
.footer-contact-list a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-contact-list a:hover { color: #fff; }

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 18px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}
.footer-bottom p { margin: 0; }
.footer-credits i { margin: 0 2px; }


/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}


/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */

/* Tablet ≤992px */
@media (max-width: 992px) {
    .section-padding { padding: 70px 0; }
    .about-badge { right: 0; bottom: -14px; }
    .ivf-info-box { padding: 0; }
    .stat-item:not(:last-child)::after { display: none; }
    .stat-item { padding: 36px 12px; }
}

/* Mobile ≤768px */
@media (max-width: 768px) {
    .section-padding { padding: 56px 0; }

    .hero-title { font-size: clamp(1.8rem, 8vw, 2.5rem); }
    .hero-subtitle { font-size: 0.95rem; }
    .btn-hero-primary,
    .btn-hero-outline { padding: 12px 22px; font-size: 0.88rem; }
    .hero-prev, .hero-next { display: none !important; }

    .about-badge { display: none; }
    .about-img-placeholder { height: 280px; }

    .contact-form-box { padding: 28px 20px; }

    .cta-title { font-size: 1.8rem; }
    .btn-cta-white, .btn-cta-outline { padding: 13px 24px; font-size: 0.9rem; }

    .team-photo-wrap { height: 200px; }

    .hero-scroll-down { display: none; }

    .stats-section .col-6 { border-bottom: 1px solid rgba(255,255,255,0.15); }

    .footer-top { padding: 50px 0 36px; }
}

/* Small mobile ≤576px */
@media (max-width: 576px) {
    .section-padding { padding: 48px 0; }
    .section-title { font-size: 1.5rem; }

    .hero-buttons { flex-direction: column; align-items: center; gap: 10px; }
    .hero-buttons .ms-3 { margin-left: 0 !important; }

    .cta-buttons { display: flex; flex-direction: column; align-items: center; gap: 12px; }
    .cta-buttons .ms-3 { margin-left: 0 !important; }

    .service-card { padding: 24px 20px; }

    .why-card { padding: 28px 18px; }

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

    .ivf-step { flex-wrap: wrap; }
    .step-badge { align-self: flex-start; margin-top: 4px; }

    .stat-number { font-size: 2rem; }
    .stat-label  { font-size: 0.8rem; }
    .stat-icon   { font-size: 1.5rem; }

    .footer-bottom { text-align: center; }
    .footer-bottom .col-md-6:last-child { text-align: center !important; }
}
