/* ========== CSS VARIABLES ========== */
:root {
  --primary-color: #0B5ED7;
  --secondary-color: #F8FAFF;
  --accent-color: #20C997;
  --text-color: #333333;
  --text-muted: #6c757d;
  --bg-color: #ffffff;
  --white: #ffffff;
  --font-family: 'Inter', 'Poppins', sans-serif;
  --transition: all 0.3s ease-in-out;
  --box-shadow: 0 10px 30px rgba(11, 94, 215, 0.08);
  --border-radius: 16px;
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    padding-bottom: 60px; /* Space for mobile action bar */
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

a:hover {
    color: var(--accent-color);
}

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

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 60px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 80px 0;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(11, 94, 215, 0.3);
}

.btn-primary:hover {
    background-color: #094eb8;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.3);
}

.btn-accent:hover {
    background-color: #1aab80;
    color: var(--white);
    transform: translateY(-2px);
}

/* ========== HEADER & NAVIGATION ========== */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--white);
}

.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: inline;
    }
}

.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .logo a {
        font-size: 1.8rem;
    }
}

.nav-links {
    list-style: none;
    display: none; /* Mobile hidden by default */
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--box-shadow);
    list-style: none;
    min-width: 220px;
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
}
.dropdown-menu li a:hover {
    background: var(--secondary-color);
}

.header-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-sm-hide {
    display: none;
}

.mobile-menu-btn {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

@media (min-width: 992px) {
    .nav-links {
        display: flex;
        gap: 20px;
        align-items: center;
    }
    .nav-links li a {
        font-weight: 500;
        color: var(--text-color);
        padding: 5px 0;
    }
    .nav-links li a:hover {
        color: var(--primary-color);
    }
    .btn-sm-hide {
        display: inline-flex;
    }
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Nav Active */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}
.nav-links.active .dropdown-menu {
    position: relative;
    box-shadow: none;
    padding-left: 15px;
    display: block; /* Show automatically on mobile if we want, or toggle */
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(255,255,255,1) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

@media (min-width: 768px) {
    .hero {
        padding: 100px 0;
    }
    .hero .container {
        flex-direction: row;
        text-align: left;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .hero-btns {
        flex-direction: row;
        width: auto;
    }
    .hero-image {
        flex: 1;
    }
    .hero-content {
        flex: 1;
    }
}

/* ========== TRUST METRICS ========== */
.trust-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.metric-item {
    text-align: center;
}

.metric-item h4 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.metric-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (min-width: 768px) {
    .trust-metrics {
        grid-template-columns: repeat(4, 1fr);
        padding: 40px;
    }
    .metric-item h4 {
        font-size: 2.5rem;
    }
    .metric-item p {
        font-size: 1rem;
    }
}

/* ========== SERVICES/TREATMENTS CARDS ========== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #f0f4f8;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: var(--secondary-color);
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ========== DOCTOR CARDS ========== */
.doctor-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}
.doctor-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: top;
}
.doctor-info {
    padding: 25px;
    text-align: center;
}

/* ========== MOBILE ACTION BAR ========== */
.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    z-index: 1000;
}

.action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 500;
    border-right: 1px solid #eee;
}
.action-btn i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.action-btn:last-child {
    border-right: none;
}

.call-btn { color: var(--primary-color); }
.whatsapp-btn { color: #25D366; }
.book-btn { color: var(--accent-color); }

@media (min-width: 768px) {
    .mobile-action-bar {
        display: none;
    }
}

/* ========== FOOTER ========== */
.footer {
    background-color: #f8f9fa;
    color: var(--text-color);
    padding: 60px 0 20px;
    border-top: 1px solid #eee;
}

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

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.footer-widget h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: var(--text-muted);
}

/* Forms */
.form-control {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    margin-bottom: 20px;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--secondary-color);
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #094eb8 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.page-header h1 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* Layout Utilities */
.flex-column-gap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .flex-row-gap {
        display: flex;
        flex-direction: row;
        gap: 20px;
    }
    .flex-1 {
        flex: 1;
    }
}
