﻿/* ================================================
   GUPTA DENTAL CLINIC - Custom Stylesheet
   ================================================ */

:root {
    --primary: #1a6fc4;
    --primary-dark: #0d5199;
    --secondary: #25d366;
    --gold: #f0a500;
    --gold-dark: #d48f00;
    --accent: #f0a500;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --bg-light: #f8f9ff;
    --bg-section: #eef4ff;
    --white: #ffffff;
    --border: #dee2e6;
    --shadow: 0 4px 20px rgba(26, 111, 196, 0.12);
    --shadow-hover: 0 8px 35px rgba(26, 111, 196, 0.22);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}
/* Show AOS content if JS/CDN fails (aos.css defaults [data-aos] to opacity:0) */
@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
h1, h2, h3, h4, h5 { font-weight: 600; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
.section-gap { padding: 56px 0; }
.section-gap-sm { padding: 36px 0; }

/* ---- Section Labels ---- */
.section-label {
    display: inline-block;
    background: rgba(26, 111, 196, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
}
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 16px;
}
.section-title span { color: var(--primary); }
.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

/* ---- Top Bar ---- */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.9);
    font-size: 13px;
}
.top-bar a { color: rgba(255,255,255,0.9); }
.top-bar a:hover { color: var(--white); }
.top-bar-left i { color: var(--accent); }
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 12px;
    margin-left: 4px;
    transition: var(--transition);
}
.social-icons a:hover { background: var(--accent); color: white; }

/* ---- Navbar ---- */
.main-navbar {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    padding: 6px 0;
    z-index: 1030;
}
.main-navbar.scrolled {
    box-shadow: 0 4px 25px rgba(0,0,0,0.12);
    padding: 4px 0;
}
.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.clinic-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}
.clinic-tagline {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.main-navbar .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 6px 12px !important;
    border-radius: 6px;
    transition: var(--transition);
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--primary) !important;
    background: rgba(26,111,196,0.07);
}
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    padding: 10px;
    min-width: 220px;
}
.dropdown-item {
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 8px 14px;
    font-weight: 500;
    transition: var(--transition);
}
.dropdown-item:hover { background: rgba(26,111,196,0.08); color: var(--primary); }
.btn-appointment {
    background: var(--primary) !important;
    border: none;
    border-radius: 30px;
    padding: 10px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white !important;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(26,111,196,0.3);
}
.btn-appointment:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,111,196,0.4);
}

/* ---- Hero Section (aligned to Bootstrap .container like nav / sections) ---- */
.hero-section {
    min-height: 0;
    position: relative;
    overflow: hidden;
    padding: 28px 0;
    background:
        radial-gradient(ellipse 80% 60% at 12% 18%, rgba(26,111,196,0.12), transparent 55%),
        linear-gradient(160deg, #f8f9ff 0%, #e8f0fc 100%);
}
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(28px, 4vw, 56px);
    width: 100%;
    height: auto;
    min-height: 0;
}
.hero-split-copy {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 0;
    background: transparent;
}
.hero-copy-inner {
    max-width: 34rem;
    width: 100%;
}
.hero-split-visual {
    position: relative;
    overflow: hidden;
    background: #eef4ff;
    flex: 0 0 auto;
    width: min(420px, 38%);
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(26,111,196,0.15);
}
.hero-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    animation: heroReveal 1.1s ease both;
}
.hero-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.01em;
    line-height: 1.05;
    margin-bottom: 8px;
}
.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 10px;
    max-width: 24ch;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 18px;
    max-width: 34rem;
}
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--primary);
    color: white !important;
    border: none;
    border-radius: 30px;
    padding: 11px 22px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(26,111,196,0.28);
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    color: white !important;
}
.btn-hero-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid rgba(26,111,196,0.4);
    border-radius: 30px;
    padding: 9px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-hero-outline:hover {
    background: rgba(26,111,196,0.08);
    border-color: var(--primary);
}

@keyframes heroReveal {
    from { opacity: 0; transform: scale(1.06); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual-img { animation: none; }
}

/* ---- Stats Bar ---- */
.stats-bar { background: var(--primary); padding: 30px 0; }
.stat-item { text-align: center; padding: 10px; }
.stat-item .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}
.stat-item .stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    margin-top: 4px;
    font-weight: 500;
}
.stat-divider {
    border-left: 1px solid rgba(255,255,255,0.2);
    height: 60px;
    align-self: center;
}

/* ---- Why Choose Us ---- */
.why-us-section { background: var(--bg-light); }
.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(26,111,196,0.06);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(26,111,196,0.15);
}
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(26,111,196,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 18px;
    transition: var(--transition);
}
.feature-card:hover .feature-icon { background: var(--primary); color: white; }
.feature-card h5 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.7; }

/* ---- Services Section ---- */
.service-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(26,111,196,0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.service-card-icon {
    background: linear-gradient(135deg, var(--primary), #2196f3);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    position: relative;
    overflow: hidden;
}
.service-card-icon::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.service-card-icon i { font-size: 2.5rem; color: white; position: relative; }
.service-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card-body h5 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.service-card-body p { font-size: 0.85rem; color: var(--text-muted); flex: 1; line-height: 1.7; }
.service-card-body .btn-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0;
    margin-top: 12px;
}
.service-card-body .btn-link:hover { color: var(--primary-dark); }

/* ---- Doctors Section ---- */
.doctors-section { background: var(--bg-section); }
.doctor-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.doctor-img-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #eef4ff, #dde8ff);
    height: 320px;
}
.doctor-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
    display: block;
}
.doctor-card:hover .doctor-img-wrap img { transform: scale(1.04); }
.doctor-placeholder-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(26,111,196,0.25);
}
.doctor-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26,111,196,0.8));
    padding: 30px 20px 20px;
    opacity: 0;
    transition: var(--transition);
}
.doctor-card:hover .doctor-overlay { opacity: 1; }
.doctor-overlay .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    margin: 0 4px;
    transition: var(--transition);
}
.doctor-overlay .social-links a:hover { background: var(--accent); color: white; }
.doctor-info { padding: 24px; }
.doctor-info h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.doctor-info .designation { color: var(--primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.doctor-info .qualification { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 14px; }
.doctor-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.doctor-tag {
    background: rgba(26,111,196,0.08);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ---- Testimonials ---- */
.testimonials-section { background: var(--bg-light); }
.testimonial-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-top: 3px solid var(--primary);
}
.testimonial-card:hover { box-shadow: var(--shadow-hover); }
.testimonial-quote { font-size: 2rem; color: var(--primary); opacity: 0.3; line-height: 1; margin-bottom: 12px; }
.testimonial-text { font-size: 0.9rem; color: #444; line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #2196f3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-role { font-size: 0.75rem; color: var(--text-muted); }
.star-rating { color: #ffc107; font-size: 0.8rem; }

/* ---- Appointment / CTA Banner ---- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-section.cta-photo {
    background-image: var(--cta-image);
    background-size: cover;
    background-position: center;
}
.cta-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13,81,153,0.88), rgba(26,111,196,0.72));
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
}
.cta-subtitle { color: rgba(255,255,255,0.8); font-size: 1rem; line-height: 1.7; margin-bottom: 30px; }
.btn-cta-white {
    background: white;
    color: var(--primary) !important;
    border: none;
    border-radius: 30px;
    padding: 14px 36px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: var(--transition);
}
.btn-cta-white:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }

/* ---- FAQ Section ---- */
.faq-section { background: var(--bg-light); }
.accordion-item { border: 1px solid rgba(26,111,196,0.1); border-radius: var(--radius) !important; margin-bottom: 12px; overflow: hidden; }
.accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: white;
    border-radius: var(--radius) !important;
}
.accordion-button:not(.collapsed) { color: var(--primary); background: rgba(26,111,196,0.04); box-shadow: none; }
.accordion-button::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a6fc4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); }
.accordion-body { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; background: white; }

/* ---- Contact Form ---- */
.contact-form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-hover);
}
.form-control, .form-select {
    border-radius: 10px;
    border: 1.5px solid var(--border);
    padding: 12px 16px;
    font-size: 0.9rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,111,196,0.1);
}
.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 14px 40px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: var(--transition);
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ---- Info Card ---- */
.info-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
    margin-bottom: 16px;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(26,111,196,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.info-card h6 { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.info-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero.page-hero-photo {
    background-image: var(--page-hero-image);
    background-size: cover;
    background-position: center;
}
.page-hero.page-hero-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,81,153,0.82), rgba(26,111,196,0.65));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: white;
    clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero h1 {
    color: white;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
}
.page-hero .breadcrumb { justify-content: center; }
.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a { color: rgba(255,255,255,0.75); font-size: 0.875rem; }
.page-hero .breadcrumb-item.active,
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ---- Gallery ---- */
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    display: block;
    background: var(--bg-section);
}
.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,111,196,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: white; font-size: 2rem; }

/* ---- About page ---- */
.about-img-wrap { position: relative; }
.about-img-main,
.about-main-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}
.about-badge {
    position: absolute;
    bottom: 30px;
    left: -15px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    padding: 16px 22px;
    text-align: center;
    box-shadow: var(--shadow-hover);
}
.about-badge .badge-number { font-size: 2rem; font-weight: 700; line-height: 1; }
.about-badge .badge-text { font-size: 0.75rem; font-weight: 500; opacity: 0.9; }

/* ---- Footer ---- */
.main-footer { background: #0b1f3a; color: rgba(255,255,255,0.75); }
.footer-top { padding: 70px 0 50px; }
.footer-brand .clinic-name { color: white; }
.footer-brand .clinic-tagline { color: rgba(255,255,255,0.5); }
.footer-brand .logo-icon { background: var(--primary); }
.footer-desc { font-size: 0.875rem; line-height: 1.8; color: rgba(255,255,255,0.65); max-width: 300px; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.75);
    margin-right: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
}
.footer-social a:hover { background: var(--primary); color: white; }
.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-links a:hover { color: white; padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 0.875rem; }
.footer-contact i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.65); }
.footer-contact a:hover { color: white; }
.footer-contact span { color: rgba(255,255,255,0.65); line-height: 1.6; }
.footer-bottom {
    background: rgba(0,0,0,0.25);
    padding: 18px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.07);
}

/* ---- Floating Buttons ---- */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 22px;
    width: 52px;
    height: 52px;
    background: #25d366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 1000;
    transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(37,211,102,0.5); }
.back-to-top {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ---- Utility ---- */
.btn-primary-custom {
    background: var(--primary);
    color: white !important;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-primary-custom:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline-primary-custom {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    border-radius: 30px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-outline-primary-custom:hover { background: var(--primary); color: white !important; }
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.divider-wave { overflow: hidden; line-height: 0; }
.divider-wave svg { display: block; }

/* ---- Map embed ---- */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 380px; border: none; display: block; }

/* ---- Alert ---- */
.alert-success-custom {
    background: rgba(37,211,102,0.1);
    border: 1px solid rgba(37,211,102,0.3);
    color: #1a7a3a;
    border-radius: var(--radius);
    padding: 14px 20px;
    font-size: 0.9rem;
}

/* ---- Location strip ---- */
.location-strip {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.loc-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    font-weight: 600;
}
.loc-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}
.loc-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.loc-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}
.btn-outline-dark-soft {
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
}
.btn-outline-dark-soft:hover { border-color: var(--primary); color: var(--primary); }
.btn-whatsapp {
    background: #25d366;
    color: white !important;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.875rem;
}
.btn-whatsapp:hover { background: #1ebe57; color: white !important; }

/* ---- Photo mosaic ---- */
.photo-mosaic {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    min-height: 420px;
}
.photo-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}
.mosaic-main {
    grid-row: 1 / span 2;
    min-height: 420px;
    animation: fadeRise 0.9s ease both;
}
.mosaic-a { animation: fadeRise 0.9s ease 0.12s both; }
.mosaic-b { animation: fadeRise 0.9s ease 0.22s both; }

@keyframes fadeRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: #444;
    font-size: 0.95rem;
}
.check-list i {
    color: var(--primary);
    margin-top: 4px;
}

.branch-pill {
    background: rgba(26,111,196,0.1);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.patient-photo {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow);
}
.patient-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.patient-photo:hover img { transform: scale(1.05); }

.mini-stat {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 14px 20px;
    text-align: center;
}
.mini-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Cormorant Garamond', serif;
}
.mini-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.branch-photo-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
}
.branch-photo-card > img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.branch-photo-body { padding: 22px 24px 26px; }

.contact-branch-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.video-frame {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    background: #000;
}
.video-frame video {
    width: 100%;
    display: block;
    max-height: 420px;
}

.gallery-filter-btn {
    border-radius: 30px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
}

.logo-icon {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(26,111,196,0.25);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 0;
    }
    .hero-section .container {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }
    .hero-split {
        flex-direction: column;
        gap: 0;
        justify-content: flex-start;
    }
    .hero-split-visual {
        order: -1;
        width: 100%;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        aspect-ratio: 1 / 1;
        max-height: 380px;
    }
    .hero-visual-img {
        object-position: center center;
    }
    .hero-split-copy {
        padding: 28px 20px 36px;
        width: 100%;
    }
    .hero-brand { margin-top: 0; }
    .photo-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        min-height: 0;
    }
    .mosaic-main {
        grid-row: auto;
        grid-column: 1 / -1;
        min-height: 280px;
        max-height: 360px;
    }
    .mosaic-a, .mosaic-b { min-height: 180px; }
    .about-badge { position: static; margin-top: 20px; display: inline-block; }
    .contact-form-card { padding: 24px; }
}
@media (max-width: 767.98px) {
    .section-gap { padding: 40px 0; }
    .hero-btns { flex-direction: column; gap: 10px; }
    .page-hero { padding: 60px 0 50px; }
    .loc-divider { display: none !important; }
}
@media (max-width: 575.98px) {
    .top-bar { display: none !important; }
    .doctor-img-wrap { height: 260px; }
    .gallery-item img { height: 200px; }
}
