/* ============================================================
   Rama Maxillofacial and Dental Clinic - Main Stylesheet
   ============================================================ */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --teal: #0dcaf0;
    --teal-dark: #0aa2c0;
    --white: #ffffff;
    --light: #f8f9fa;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border: #dee2e6;
    --shadow: 0 4px 24px rgba(13,110,253,0.10);
    --shadow-hover: 0 8px 32px rgba(13,110,253,0.18);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* ---- General ---- */
* { box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #fff;
    scroll-behavior: smooth;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; }
section { padding: 80px 0; }
.section-bg { background: var(--light); }

/* ---- Section Titles ---- */
.section-title { font-size: 2rem; font-weight: 700; color: var(--dark); }
.section-subtitle { color: var(--primary); font-weight: 600; font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; }
.title-underline {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--teal));
    border-radius: 2px; margin: 12px 0 24px;
}
.title-underline.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0a4fd6);
    border: none; border-radius: 30px;
    padding: 12px 30px; font-weight: 600;
    transition: var(--transition);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #084abf);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13,110,253,0.35);
}
.btn-outline-primary {
    border-radius: 30px; padding: 10px 28px;
    font-weight: 600; border-width: 2px;
}
.btn-teal {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #fff; border: none; border-radius: 30px;
    padding: 12px 30px; font-weight: 600;
    transition: var(--transition);
}
.btn-teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13,202,240,0.35);
    color: #fff;
}
.btn-white {
    background: #fff; color: var(--primary);
    border: 2px solid #fff; border-radius: 30px;
    padding: 11px 30px; font-weight: 600;
    transition: var(--transition);
}
.btn-white:hover {
    background: transparent; color: #fff;
    transform: translateY(-2px);
}

/* ---- Navbar ---- */
.navbar {
    background: rgba(255,255,255,0.98) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 12px 0;
    transition: var(--transition);
}
.navbar-brand img { height: 48px; }
.navbar-brand .brand-name {
    font-size: 1.1rem; font-weight: 700;
    color: var(--primary); line-height: 1.2;
}
.navbar-brand .brand-sub {
    font-size: 0.7rem; color: var(--gray);
    font-weight: 400; display: block;
}
.nav-link {
    font-weight: 500; color: #333 !important;
    padding: 8px 14px !important;
    border-radius: 6px; font-size: 0.92rem;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: rgba(13,110,253,0.06);
}
.navbar .btn-appointment {
    background: linear-gradient(135deg, var(--primary), #0a4fd6);
    color: #fff !important; border-radius: 25px;
    padding: 8px 22px !important; font-weight: 600;
}
.navbar .btn-appointment:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13,110,253,0.3);
}
.top-bar {
    background: linear-gradient(135deg, var(--primary), #0a4fd6);
    color: #fff; font-size: 0.82rem; padding: 6px 0;
}
.top-bar a { color: rgba(255,255,255,0.9); }
.top-bar a:hover { color: #fff; }

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, #0d1b3e 0%, #0d6efd 50%, #0dcaf0 100%);
    min-height: 92vh; display: flex; align-items: center;
    position: relative; overflow: hidden; padding: 120px 0 80px;
}
.hero-section::before {
    content: ''; position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
}
.hero-section .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800; color: #fff; line-height: 1.2;
}
.hero-section .hero-subtitle { color: rgba(255,255,255,0.85); font-size: 1.1rem; }
.hero-badge {
    display: inline-block; background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px); color: #fff;
    padding: 6px 18px; border-radius: 20px;
    font-size: 0.85rem; font-weight: 500; border: 1px solid rgba(255,255,255,0.3);
    margin-bottom: 16px;
}
.hero-image-wrap {
    position: relative; z-index: 1;
}
.hero-stats {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius); padding: 16px 20px;
    color: #fff; margin-top: 32px;
}
.hero-stats .stat-num { font-size: 1.6rem; font-weight: 800; }
.hero-stats .stat-label { font-size: 0.75rem; opacity: 0.85; }
.floating-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-hover); padding: 16px 20px;
    position: absolute; animation: float 3s ease-in-out infinite;
}
.floating-card.card-1 { top: 20%; right: -10px; }
.floating-card.card-2 { bottom: 20%; left: -10px; animation-delay: 1.5s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---- Service Cards ---- */
.service-card {
    background: #fff; border-radius: var(--radius);
    padding: 32px 24px; border: 1px solid var(--border);
    transition: var(--transition); height: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.service-icon {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, rgba(13,110,253,0.1), rgba(13,202,240,0.1));
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--primary); margin-bottom: 20px;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--teal));
    color: #fff;
}
.service-card h5 { font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 0.92rem; line-height: 1.6; }

/* ---- Doctor Cards ---- */
.doctor-card {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
    background: #fff; border: 1px solid var(--border);
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.doctor-card .doctor-img {
    width: 100%; height: 280px; object-fit: cover;
    background: linear-gradient(135deg, #e3f0ff, #d0f5ff);
    display: flex; align-items: center; justify-content: center;
}
.doctor-card .doctor-img-placeholder {
    width: 100%; height: 280px;
    background: linear-gradient(135deg, #e3f0ff, #d0f5ff);
    display: flex; align-items: center; justify-content: center;
}
.doctor-card .doctor-info { padding: 20px; }
.doctor-card h5 { font-weight: 700; margin-bottom: 4px; }
.doctor-card .designation { color: var(--primary); font-size: 0.85rem; font-weight: 600; }
.doctor-card .qualifications { color: var(--gray); font-size: 0.82rem; margin: 8px 0; }
.doctor-card .experience-badge {
    background: linear-gradient(135deg, var(--primary), var(--teal));
    color: #fff; padding: 4px 14px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600; display: inline-block;
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
    background: #fff; border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow);
    border: 1px solid var(--border); transition: var(--transition);
    height: 100%;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.testimonial-card .quote-icon {
    font-size: 2.5rem; color: var(--primary); opacity: 0.2;
    line-height: 1; margin-bottom: 12px;
}
.testimonial-card .patient-name { font-weight: 700; }
.testimonial-card .treatment-tag {
    background: rgba(13,110,253,0.08); color: var(--primary);
    padding: 3px 12px; border-radius: 20px; font-size: 0.78rem;
    font-weight: 500; display: inline-block; margin-top: 8px;
}

/* ---- Stats Counter ---- */
.stats-section {
    background: linear-gradient(135deg, var(--primary), #0a4fd6);
    color: #fff; padding: 60px 0;
}
.stat-item { text-align: center; padding: 20px; }
.stat-item .counter { font-size: 3rem; font-weight: 800; line-height: 1; }
.stat-item .stat-suffix { font-size: 2rem; font-weight: 800; }
.stat-item p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-top: 8px; }

/* ---- Why Choose Us ---- */
.why-us-item {
    display: flex; gap: 20px; margin-bottom: 28px;
    padding: 20px; border-radius: var(--radius);
    transition: var(--transition); cursor: default;
}
.why-us-item:hover {
    background: var(--light);
    box-shadow: 0 2px 12px rgba(13,110,253,0.08);
}
.why-us-icon {
    flex-shrink: 0; width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem;
}
.why-us-item h5 { font-weight: 700; margin-bottom: 4px; }
.why-us-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, #0d1b3e, #0d6efd);
    color: #fff; padding: 80px 0;
}
.cta-section h2 { font-size: 2.2rem; font-weight: 800; }

/* ---- Blog Cards ---- */
.blog-card {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
    background: #fff; border: 1px solid var(--border); height: 100%;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.blog-card .blog-img {
    height: 200px; background: linear-gradient(135deg, #e3f0ff, #d0f5ff);
    overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.blog-card .blog-img img { width: 100%; height: 200px; object-fit: cover; }
.blog-card .blog-body { padding: 20px; }
.blog-card .blog-category {
    background: rgba(13,110,253,0.1); color: var(--primary);
    padding: 3px 12px; border-radius: 20px; font-size: 0.78rem;
    font-weight: 600; display: inline-block; margin-bottom: 10px;
}
.blog-card h5 { font-weight: 700; margin-bottom: 10px; font-size: 1rem; line-height: 1.4; }
.blog-card h5 a:hover { color: var(--primary); }
.blog-meta { color: var(--gray); font-size: 0.8rem; }

/* ---- Gallery ---- */
.gallery-item {
    border-radius: var(--radius); overflow: hidden;
    cursor: pointer; position: relative;
}
.gallery-item img {
    width: 100%; height: 220px; object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(13,110,253,0.7), rgba(13,202,240,0.7));
    opacity: 0; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 2rem; color: #fff; }

/* ---- Contact ---- */
.contact-info-item {
    display: flex; gap: 16px; margin-bottom: 24px;
    padding: 16px; border-radius: var(--radius);
    background: var(--light); border: 1px solid var(--border);
}
.contact-icon {
    flex-shrink: 0; width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem;
}

/* ---- Forms ---- */
.form-control, .form-select {
    border-radius: 10px; border: 1.5px solid var(--border);
    padding: 12px 16px; font-size: 0.93rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,0.12);
}
.form-label { font-weight: 600; font-size: 0.88rem; color: #444; }
.form-card {
    background: #fff; border-radius: 16px;
    box-shadow: var(--shadow-hover); padding: 40px;
    border: 1px solid var(--border);
}

/* ---- Page Banner ---- */
.page-banner {
    background: linear-gradient(135deg, #0d1b3e 0%, #0d6efd 70%, #0dcaf0 100%);
    padding: 100px 0 60px; color: #fff;
}
.page-banner h1 { font-size: 2.5rem; font-weight: 800; }
.breadcrumb-item { color: rgba(255,255,255,0.7); }
.breadcrumb-item.active { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }
.breadcrumb-item a { color: rgba(255,255,255,0.8); }

/* ---- Footer ---- */
footer {
    background: var(--dark); color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}
footer h5 { color: #fff; font-weight: 700; margin-bottom: 20px; font-size: 1rem; }
footer a { color: rgba(255,255,255,0.7); display: block; margin-bottom: 8px; font-size: 0.9rem; }
footer a:hover { color: var(--teal); padding-left: 4px; }
.footer-brand { font-size: 1.2rem; font-weight: 700; color: #fff; }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 40px 0 0; }
.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 16px 0; font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: #fff !important;
    margin-right: 8px; font-size: 0.95rem; transition: var(--transition);
    margin-bottom: 0 !important; padding: 0 !important;
}
.social-links a:hover {
    background: var(--primary); transform: translateY(-3px);
}

/* ---- WhatsApp Float Button ---- */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 9999;
    background: #25D366; color: #fff; width: 56px; height: 56px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: var(--transition); text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,0.6);
    color: #fff;
}

/* ---- Lightbox ---- */
.lightbox-overlay {
    display: none; position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.92);
    align-items: center; justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
    position: absolute; top: 20px; right: 28px;
    color: #fff; font-size: 2.2rem; cursor: pointer;
    line-height: 1;
}

/* ---- Alert messages ---- */
.alert { border-radius: var(--radius); border: none; }

/* ---- Misc Utilities ---- */
.text-primary { color: var(--primary) !important; }
.text-teal { color: var(--teal) !important; }
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--teal)) !important;
}
.rounded-xl { border-radius: var(--radius) !important; }
.fw-800 { font-weight: 800; }
.lh-sm { line-height: 1.3; }

/* ---- Animations ---- */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hero-section { min-height: auto; padding: 100px 0 60px; }
    section { padding: 60px 0; }
    .hero-section .hero-title { font-size: 2rem; }
    .floating-card { display: none; }
}
@media (max-width: 767px) {
    .section-title { font-size: 1.6rem; }
    .form-card { padding: 24px 16px; }
    .stats-section .stat-item .counter { font-size: 2.2rem; }
}
