/* ==========================================================================
   Smile Life Dental Clinic Stylesheet
   Design System, Components & Responsive Grid
   ========================================================================== */

/* --- Custom CSS Variables --- */
:root {
    /* Color Palette */
    --color-primary: #0f172a;       /* Slate / Midnight Blue (Trust & Professionalism) */
    --color-primary-light: #1e293b; /* Medium Slate Blue */
    --color-accent: #0ea5e9;        /* Vibrant Sky Blue (Clean, Fresh & Water) */
    --color-accent-hover: #0284c7;  /* Sky Blue Hover */
    --color-gold: #10b981;          /* Fresh Mint Green (Health & Life) */
    --color-gold-hover: #059669;    /* Dark Mint Hover */
    --color-text-dark: #334155;     /* Slate Charcoal for body readability */
    --color-text-muted: #64748b;    /* Cool Grey for captions */
    --color-bg-light: #f0f9ff;      /* Softest Ice Blue clinical background */
    --color-bg-warm: #fafaf9;       /* Soft warm paper-white background */
    --color-white: #ffffff;
    --color-success: #10b981;       /* Safe clinical green */
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(15, 23, 42, 0.97) 0%, rgba(14, 165, 233, 0.88) 100%);
    --gradient-accent: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    --gradient-gold: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 20px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 32px 64px rgba(14, 165, 233, 0.15);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.04);

    /* Border Radii */
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-round: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Reset & Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.25;
}

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

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

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-bg-light);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* --- Reusable Components --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px; /* Rounded pill style for a softer friendly look */
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-gold-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Section Common Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
}

.section-tag {
    display: inline-block;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--color-accent);
    padding: 6px 18px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.section-tag.text-white {
    background-color: rgba(255, 255, 255, 0.18);
    color: var(--color-white);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    letter-spacing: -0.5px;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    margin: 16px auto 0 auto;
    border-radius: var(--radius-sm);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
}

/* --- Navbar Design --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(2, 44, 34, 0.05);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 88px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    transition: var(--transition-normal);
}

.navbar.scrolled .nav-container {
    height: 72px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    color: var(--color-primary);
    filter: drop-shadow(0 2px 6px rgba(2, 44, 34, 0.15));
    transition: var(--transition-normal);
}

.logo:hover .logo-icon {
    transform: rotate(-12deg) scale(1.08);
    color: var(--color-gold);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--color-accent);
    margin-top: 1px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--color-primary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--color-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-gold);
}

.nav-cta {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* Hamburger menu button */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition-normal);
    background-color: var(--color-primary);
    border-radius: var(--radius-sm);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 180px 0 110px 0;
    background: var(--gradient-hero);
    color: var(--color-white);
    min-height: 95vh;
    display: flex;
    align-items: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 75% 25%, rgba(217, 119, 6, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    animation: fadeInDown 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.google-badge .stars {
    color: #f59e0b;
    font-size: 1.25rem;
    margin-right: 8px;
    letter-spacing: 2px;
}

.google-badge .badge-text {
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--color-white);
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    animation: fadeInLeft 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.1s both;
}

.highlight-text {
    background: linear-gradient(to right, #34d399, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.2rem;
    line-height: 1.65;
    margin-bottom: 44px;
    color: rgba(255, 255, 255, 0.88);
    max-width: 580px;
    animation: fadeInLeft 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInLeft 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s both;
}

/* Hero Images & Floating Cards */
.hero-image-container {
    position: relative;
    animation: fadeInRight 1s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.hero-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 5px solid rgba(255, 255, 255, 0.08);
    transform: rotate(1.5deg);
    transition: var(--transition-slow);
}

.hero-image-container:hover .hero-img {
    transform: rotate(0deg) scale(1.03);
}

.hero-floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    color: var(--color-text-dark);
}

.card-experience {
    bottom: -20px;
    left: -25px;
    flex-direction: column;
    align-items: flex-start;
    animation: bounceFloating 6s ease-in-out infinite;
}

.card-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-gold);
    line-height: 1.1;
}

.card-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
}

.card-hygiene {
    top: 40px;
    right: -25px;
    gap: 12px;
    animation: bounceFloating 6s ease-in-out infinite 3s;
}

.card-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.floating-card-text {
    display: flex;
    flex-direction: column;
}

.floating-card-title {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.floating-card-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* --- Stats Banner --- */
.stats-banner {
    position: relative;
    z-index: 10;
    margin-top: -50px;
    padding-bottom: 40px;
}

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

.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 28px 36px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(2, 44, 34, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background-color: rgba(13, 148, 136, 0.06);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.stat-icon svg {
    width: 26px;
    height: 26px;
}

.stat-card:hover .stat-icon {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: scale(1.08) rotate(-5deg);
}

.stat-info h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* --- About Section --- */
.about-section {
    padding: 90px 0;
    background-color: var(--color-white);
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    position: relative;
    height: 520px;
}

.image-wrapper {
    position: absolute;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-slow);
}

.main-img-wrapper {
    width: 78%;
    height: 410px;
    top: 0;
    left: 0;
    z-index: 2;
    border: 6px solid var(--color-white);
}

.sub-img-wrapper {
    width: 68%;
    height: 310px;
    bottom: 20px;
    right: 0;
    z-index: 3;
    border: 6px solid var(--color-white);
}

.about-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-images:hover .main-img-wrapper {
    transform: translateY(-10px) rotate(-1.5deg);
}

.about-images:hover .sub-img-wrapper {
    transform: translateY(10px) scale(1.03) rotate(1.5deg);
}

.about-text h2 {
    font-size: 2.35rem;
    margin-bottom: 24px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-size: 1rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 36px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background-color: var(--color-gold);
    color: var(--color-white);
    border-radius: var(--radius-round);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 3px;
    box-shadow: 0 4px 8px rgba(217, 119, 6, 0.25);
}

.feature-item h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* --- Services Section --- */
.services-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

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

.service-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(2, 44, 34, 0.02);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 20px;
}

.service-icon {
    width: 52px;
    height: 52px;
    color: var(--color-accent);
    transition: var(--transition-normal);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card:hover .service-icon {
    transform: scale(1.12) rotate(6deg);
    color: var(--color-gold);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin-bottom: 28px;
    flex-grow: 1;
    line-height: 1.6;
}

.service-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
}

.service-card:hover .service-link {
    color: var(--color-gold);
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 100px 0;
    background-color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

/* Grid layout rules for premium mosaic look */
.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    border: 1px solid rgba(2, 44, 34, 0.05);
}

.gallery-item:nth-child(1) {
    grid-column: span 3;
    grid-row: span 2;
}

.gallery-item:nth-child(2) {
    grid-column: span 3;
    grid-row: span 1;
}

.gallery-item:nth-child(3) {
    grid-column: span 3;
    grid-row: span 1;
}

.gallery-item:nth-child(4) {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-item:nth-child(5) {
    grid-column: span 4;
    grid-row: span 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 44, 34, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-overlay span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--color-white);
    font-size: 0.95rem;
    padding: 12px 24px;
    border: 2px solid var(--color-white);
    border-radius: 50px;
    transform: translateY(15px);
    transition: var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* --- Reviews Carousel Section --- */
.reviews-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

.reviews-carousel {
    position: relative;
    height: 290px;
    overflow: hidden;
}

.review-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.review-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.review-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 44px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(2, 44, 34, 0.02);
    position: relative;
}

.review-card::after {
    content: '"';
    position: absolute;
    top: -20px;
    right: 44px;
    font-family: 'Montserrat', sans-serif;
    font-size: 8rem;
    color: rgba(217, 119, 6, 0.05);
    line-height: 1;
}

.review-stars {
    color: #f59e0b;
    font-size: 1.3rem;
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text-dark);
    font-style: italic;
    margin-bottom: 24px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-round);
    background-color: var(--color-primary);
    color: var(--color-gold);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    box-shadow: 0 4px 8px rgba(2, 44, 34, 0.2);
}

.author-info h4 {
    font-size: 0.98rem;
    font-weight: 800;
}

.author-info p {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* Carousel controls */
.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.carousel-btn {
    background-color: var(--color-white);
    border: 1px solid rgba(2,44,34,0.06);
    box-shadow: var(--shadow-sm);
    color: var(--color-primary);
    width: 46px;
    height: 46px;
    border-radius: var(--radius-round);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--gradient-gold);
    color: var(--color-white);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-round);
    background-color: rgba(2, 44, 34, 0.15);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--color-gold);
    width: 24px;
    border-radius: 4px;
}

/* --- Contact & Appointment Section --- */
.contact-section {
    padding: 100px 0;
    background-color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(2, 44, 34, 0.05);
}

/* Left panel: details */
.contact-info-panel {
    background: var(--gradient-hero);
    color: var(--color-white);
    padding: 56px;
    display: flex;
    flex-direction: column;
}

.contact-info-panel h2 {
    color: var(--color-white);
    font-size: 2.1rem;
    margin-bottom: 16px;
}

.panel-lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-details span {
    font-size: 0.72rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.contact-link {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
}

.contact-link:hover {
    color: var(--color-gold);
}

.contact-details p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.directions-btn {
    display: inline-flex;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-gold);
}

.directions-btn:hover {
    text-decoration: underline;
    color: var(--color-white);
}

/* Right panel: form */
.booking-card {
    padding: 56px;
    display: flex;
    flex-direction: column;
}

.booking-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.form-instructions {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    margin-bottom: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
}

input[type="text"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 0.92rem;
    background-color: var(--color-bg-light);
    border: 1px solid rgba(2, 44, 34, 0.08);
    border-radius: var(--radius-sm);
    color: var(--color-text-dark);
    transition: var(--transition-fast);
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

textarea {
    resize: vertical;
}

/* Validation Messages */
.error-msg {
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 4px;
    display: none;
}

.form-group.invalid input,
.form-group.invalid select {
    border-color: #dc2626;
}

.form-group.invalid .error-msg {
    display: block;
}

.form-error-banner {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
    font-size: 0.875rem;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}
.form-error-banner.hidden {
    display: none;
}

/* Loader Styles */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--color-white);
    animation: spin 0.8s ease-in-out infinite;
}

.spinner.hidden {
    display: none;
}

.btn-text.hidden {
    display: none;
}

/* Form Booking Success state */
.booking-success {
    text-align: center;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(22, 163, 74, 0.1);
    color: var(--color-success);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(22,163,74,0.15);
}

.booking-success h3 {
    color: var(--color-success);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.booking-success p {
    color: var(--color-text-dark);
    font-size: 0.95rem;
    margin-bottom: 16px;
    max-width: 420px;
}

.booking-success .success-note {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    background: var(--color-bg-light);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.hidden {
    display: none !important;
}

/* --- Footer Design --- */
.main-footer {
    background-color: #011410;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 20px;
}

.text-white {
    color: var(--color-white);
}

.opacity-8 {
    opacity: 0.8;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-rating-summary {
    font-size: 0.78rem;
    background: rgba(255,255,255,0.04);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-white);
}

.footer-rating-summary .stars {
    color: #f59e0b;
}

.footer-links h3,
.footer-contact-info h3 {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    font-family: 'Montserrat', sans-serif;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.88rem;
}

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

.footer-contact-info p {
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.footer-landmark {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

/* --- Lightbox Modal --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 44, 34, 0.97);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 4px solid var(--color-white);
    animation: zoomIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--color-gold);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-white);
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-round);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.lightbox-nav:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    text-align: center;
    color: var(--color-white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
}

/* --- Keyframe Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounceFloating {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(1.5deg);
    }
}

/* Doctors Section Styles */
.doctors-header {
    text-align: center;
    margin: 56px 0 32px 0;
}

.doctors-header h3 {
    font-size: 1.75rem;
    position: relative;
    display: inline-block;
}

.doctors-header h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-gold);
    margin: 8px auto 0 auto;
    border-radius: var(--radius-sm);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.doctor-card {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(2, 44, 34, 0.04);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.doctor-card:hover {
    transform: translateY(-5px);
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    border-color: rgba(217, 119, 6, 0.25);
}

.doctor-meta {
    border-bottom: 2px solid rgba(2, 44, 34, 0.05);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.doctor-card h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.doctor-specialty {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doctor-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doctor-info-list li {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.doctor-info-list li strong {
    color: var(--color-primary);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet Viewports (Below 1024px) */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }
    
    .hero-container {
        gap: 30px;
    }
    
    .about-grid {
        gap: 40px;
    }
    
    .about-images {
        height: 380px;
    }
    
    .main-img-wrapper {
        height: 300px;
    }
    
    .sub-img-wrapper {
        height: 220px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 200px;
    }
    
    .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .gallery-item:nth-child(2) { grid-column: span 2; grid-row: span 1; }
    .gallery-item:nth-child(3) { grid-column: span 2; grid-row: span 1; }
    .gallery-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
    .gallery-item:nth-child(5) { grid-column: span 4; grid-row: span 1; }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-panel,
    .booking-card {
        padding: 40px;
    }
    
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Viewports (Below 768px) */
@media (max-width: 768px) {
    /* Mobile Nav Menu */
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--color-white);
        width: 80%;
        max-width: 320px;
        height: 100vh;
        padding: 100px 30px 30px 30px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
        align-items: flex-start;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 16px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0,0,0,0.04);
    }
    
    .nav-cta {
        margin-top: 24px;
        width: 100%;
        align-self: stretch;
    }
    
    /* Hero Adjustments */
    .hero-section {
        padding: 120px 0 60px 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-lead {
        margin-bottom: 24px;
        font-size: 1rem;
    }
    
    .hero-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    /* Stats banner */
    .stats-banner {
        margin-top: 0;
        padding-bottom: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 16px 20px;
    }
    
    /* About section */
    .about-section {
        padding: 60px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-images {
        height: 320px;
    }
    
    .main-img-wrapper {
        width: 80%;
        height: 250px;
    }
    
    .sub-img-wrapper {
        width: 60%;
        height: 180px;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 24px;
    }
    
    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
    
    .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .gallery-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
    .gallery-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
    .gallery-item:nth-child(4) { grid-column: span 1; grid-row: span 1; }
    .gallery-item:nth-child(5) { grid-column: span 1; grid-row: span 1; }
    
    /* Testimonial slider */
    .reviews-carousel {
        height: 370px;
    }
    
    .review-card {
        padding: 24px;
    }
    
    .review-text {
        font-size: 0.95rem;
    }
    
    .carousel-container {
        padding: 0 10px;
    }
    
    /* Forms row */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    /* Lightbox */
    .lightbox {
        padding: 16px;
    }
    
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 16px;
        right: 16px;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
    }
}
