@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* --- Customized Premium Clinical Palette --- */
:root {
    --primary: #0f172a; /* Deep Slate (Midnight Blue) */
    --primary-light: #f0fdfa; /* Soft Teal Tint */
    --primary-accent: #0ea5e9; /* Sky Blue */
    --primary-accent-hover: #0284c7;
    --teal: #0d9488; /* Active Clinical Teal */
    --teal-glow: rgba(13, 148, 136, 0.1);
    --secondary-accent: #f97316; /* Warm Coral Orange */
    --dark: #0f172a;
    --dark-muted: #64748b; /* Slate Gray */
    --light: #f8fafc; /* Crisp Ice White */
    --border-color: rgba(226, 232, 240, 0.8);
    --white: #ffffff;
    --red: #ef4444;
    --green: #10b981;
    
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 30px 60px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 10px 25px rgba(13, 148, 136, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 9999px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.65;
    overflow-x: hidden;
    /* Soft, warm clinical ambient background glow */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(13, 148, 136, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.03) 0%, transparent 40%);
    padding-top: 110px; /* Space for the floating header */
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--teal), var(--primary-accent));
    z-index: 1001;
    transition: width 0.1s ease-out;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.25;
}

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

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

ul {
    list-style: none;
}

input, select, textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 100%;
    padding: 0.95rem 1.25rem;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
    color: var(--dark);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px var(--teal-glow);
}

/* --- Apple-Style Badges (Replacing Monospace Badges) --- */
.badge {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--teal);
    font-weight: 700;
    background-color: var(--primary-light);
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.badge .dot {
    width: 6px;
    height: 6px;
    background-color: var(--teal);
    border-radius: 50%;
    display: inline-block;
}

.badge .dot.orange {
    background-color: var(--secondary-accent);
}

/* --- Layout Container --- */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    gap: 0.5rem;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--teal);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.25);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--dark);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    border-color: rgba(13, 148, 136, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
}

.btn-outline:hover {
    background-color: var(--teal);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Apple-Style Floating Header & Navigation --- */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1100px;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-pill);
    height: 70px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

header.header-scrolled {
    top: 10px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.92);
    border-color: rgba(13, 148, 136, 0.15);
    box-shadow: var(--shadow-lg);
}

header.header-scrolled .logo img {
    height: 38px !important;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 1.25rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--teal);
    letter-spacing: -1.2px;
}

.logo span {
    color: var(--dark);
    font-weight: 500;
}

.logo::after {
    content: '';
    width: 5px;
    height: 5px;
    background-color: var(--secondary-accent);
    border-radius: 50%;
    display: inline-block;
    margin-left: 2px;
}

/* Capsule Navigation Styles */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-muted);
    font-family: var(--font-heading);
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--teal);
    background-color: rgba(13, 148, 136, 0.05);
}

.nav-links a.active {
    color: var(--teal);
    border-color: var(--teal);
    background-color: var(--primary-light);
}


.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--dark);
}

/* --- Scroll Surfing Transitions --- */
.surf-section {
    opacity: 0;
    transform: scale(0.97) translateY(40px);
    transition: var(--transition-slow);
    will-change: transform, opacity;
}

.surf-section.surfing-active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* --- Hero Section --- */
.hero {
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.25rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    color: var(--primary);
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--dark-muted);
    margin-bottom: 2.5rem;
    max-width: 580px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 4.5rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--teal);
    font-weight: 800;
}

.stat-item p {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-image-container {
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 1.25rem;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
}

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

.hero-image-container:hover img {
    transform: scale(1.01);
}

/* --- Section Formatting --- */
.section {
    padding: 8rem 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: left;
    max-width: 750px;
    margin-bottom: 4.5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--primary);
    letter-spacing: -1.5px;
}

.section-header p {
    color: var(--dark-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Feature Grid (Rounded Glassmorphic Cards) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    padding: 3rem 2.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-lg);
    background-color: var(--white);
    transform: translateY(-6px);
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    background-color: var(--primary-light);
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
    color: var(--white);
    background-color: var(--teal);
}

.feature-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    font-weight: 700;
}

.feature-card p {
    color: var(--dark-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* --- Doctor Section --- */
.doctor-profile {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    box-shadow: var(--shadow-md);
}

.doc-img {
    height: 100%;
    min-height: 480px;
    object-fit: cover;
}

.doc-info {
    padding: 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doc-info h3 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.doc-info .title {
    font-family: var(--font-heading);
    color: var(--secondary-accent);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-bottom: 1.75rem;
    text-transform: uppercase;
}

.doc-info p {
    color: var(--dark-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.65;
}

.doc-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.meta-item h5 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.meta-item p {
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
}

/* --- Dynamic Listing Grid (Treatments & Blogs) --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-lg);
    background-color: var(--white);
    transform: translateY(-5px);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.03);
}

.card-body {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.card-body p {
    color: var(--dark-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    margin-top: auto;
}

.card-footer .link-btn {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--teal);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.card-footer .link-btn:hover {
    color: var(--secondary-accent);
}

.card-footer .date {
    font-size: 0.85rem;
    color: var(--dark-muted);
    font-weight: 500;
}

/* --- Gallery Page (Neat Uniform Tiles) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-tile {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-tile:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-lg);
    background-color: var(--white);
    transform: translateY(-6px);
}

.gallery-img-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

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

.gallery-tile:hover .gallery-img-wrapper img {
    transform: scale(1.02);
}

.gallery-desc {
    padding: 1.5rem;
}

.gallery-desc h4 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.5px;
}

.gallery-desc p {
    font-size: 0.85rem;
    color: var(--dark-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* --- Detail Content Page Layout (Treatment & Blog Detail) --- */
.detail-layout {
    display: grid;
    grid-template-columns: 1.95fr 1.05fr;
    gap: 4rem;
    padding: 7rem 0;
}

.detail-main {
    background-color: var(--white);
    padding: 4rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.detail-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.detail-main h2 {
    font-size: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.detail-main p {
    color: var(--dark-muted);
    margin-bottom: 2rem;
    font-size: 1.08rem;
    line-height: 1.75;
}

.detail-meta {
    display: flex;
    gap: 3rem;
    font-size: 0.95rem;
    color: var(--dark-muted);
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--teal);
}

.quick-list li {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed var(--border-color);
}

.quick-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.quick-list a {
    display: block;
    font-weight: 600;
    color: var(--dark-muted);
}

.quick-list a:hover {
    color: var(--teal);
    padding-left: 5px;
}

.contact-card-widget {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.contact-card-widget h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.contact-card-widget p {
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

/* --- Call To Action banner (Stark Modern) --- */
.cta-banner {
    background-color: var(--primary);
    color: var(--white);
    padding: 7rem 5rem;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 6rem auto;
    box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.cta-banner p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.85;
    line-height: 1.65;
}

/* --- Modals (Global Styles for Forms & Lightbox) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--white);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 540px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 2rem 2.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--dark);
    background-color: var(--border-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2.5rem;
    overflow-y: auto;
}

/* --- Form inside Modals --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: var(--dark);
}

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

/* --- Lightbox Modal (Image View from Gallery) --- */
.modal-overlay.lightbox-overlay .modal-container {
    max-width: 850px;
    background-color: transparent;
    border: none;
    overflow: visible;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-img-wrapper {
    background-color: #000000;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 70vh;
    border: 1px solid #222222;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-caption {
    background-color: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-color);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
    width: 100%;
    text-align: center;
}

.lightbox-caption h4 {
    color: var(--white);
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.lightbox-caption p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.lightbox-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--white);
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close-btn:hover {
    transform: rotate(90deg);
}

/* --- Footer --- */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 7rem 0 3rem;
    margin-top: 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.05fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-widget p {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #94a3b8;
    font-weight: 500;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-contact svg {
    color: var(--teal);
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 600;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* --- Admin Panel --- */
.admin-login-body,
.admin-layout-body {
    padding-top: 0 !important;
}

.admin-login-body {
    background: #f5f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.admin-login-card {
    background-color: var(--white);
    padding: 4rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border-color);
}

.admin-login-card h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background-color: var(--dark);
    color: var(--white);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
}

.admin-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 4rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #1e293b;
}

.admin-logo span {
    color: var(--teal);
}

.admin-menu li {
    margin-bottom: 0.75rem;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.25rem;
    border-radius: var(--radius-md);
    color: #94a3b8;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    transition: var(--transition);
}

.admin-menu-link:hover,
.admin-menu-link.active {
    color: var(--white);
    background-color: #1e293b;
}

.admin-logout {
    margin-top: auto;
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
}

.admin-main {
    background-color: var(--light);
    padding: 2.5rem 5rem 5rem;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.admin-header h1 {
    font-size: 2rem;
}

.admin-header .user-info {
    font-weight: 600;
    color: var(--dark-muted);
}

/* --- Admin Tabs --- */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* --- Admin Dashboard Cards --- */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.stat-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--teal);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-card p {
    color: var(--dark-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- Admin Tables --- */
.table-responsive {
    overflow-x: auto;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 4rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #fafafa;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-pending,
.status-unread {
    background-color: #fef3c7;
    color: #d97706;
}

.status-confirmed,
.status-read {
    background-color: #dcfce7;
    color: #15803d;
}

.status-cancelled,
.status-replied {
    background-color: #fee2e2;
    color: #b91c1c;
}

.actions-cell {
    display: flex;
    gap: 0.75rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    border-radius: var(--radius-pill);
}

/* --- Admin Content Manage Grids --- */
.admin-manage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.admin-manage-header h2 {
    font-size: 1.6rem;
}

/* Alert Boxes */
.alert {
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.alert-success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    header {
        width: calc(100% - 30px);
        top: 15px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3.5rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .doctor-profile {
        grid-template-columns: 1fr;
    }
    
    .doc-img {
        height: 380px;
    }
    
    .features-grid,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
    }
    
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }
    
    header {
        border-radius: 24px;
        height: auto;
        padding: 1rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        padding: 2rem 1.5rem;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        margin-top: 10px;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .nav-links.mobile-active {
        display: flex;
    }
    
    .features-grid,
    .grid-3,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-info {
        padding: 3rem 1.5rem;
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        padding: 2.5rem 2rem;
    }
    
    .admin-main {
        padding: 2.5rem 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Public page layout compositions */
.page-header .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem 3rem;
}
.page-header .badge { grid-column: 1; margin-bottom: 0; }
.page-header h1 { grid-column: 1; margin: 0; max-width: 760px; }
.page-header .breadcrumb { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

/* Homepage: asymmetric editorial landing layout */
.hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); }
.hero-content { position: relative; z-index: 1; }
.hero-content .badge { margin-bottom: 1.15rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 620px; }
.hero-stats .stat-item { min-width: 0; }
#specialities-container { gap: 1rem !important; }
#specialities-container .card {
    justify-content: center;
    min-height: 220px;
    text-align: left !important;
    border-radius: 18px !important;
    border-top: 4px solid #a9d2b6 !important;
}

/* About: image-led two-column story panels */
body:has(.page-header + .section) .grid-responsive > img,
.grid-responsive > div > img {
    height: 100%;
    min-height: 370px;
    object-fit: cover;
    box-shadow: 16px 16px 0 #dceee1;
}
.grid-responsive > div[style*="background-color: var(--white)"] {
    box-shadow: var(--shadow-sm);
    border-radius: 22px !important;
}

/* Treatments: searchable directory with clear category tiles */
.section > .container > div[style*="max-width: 600px"] {
    max-width: 760px !important;
    margin: 0 auto 4.5rem !important;
    padding: .65rem !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-md) !important;
}
.grid-4 .card, #specialities-container .card {
    position: relative;
    overflow: hidden;
}
.grid-4 .card::after, #specialities-container .card::after {
    content: 'Explore';
    color: var(--teal);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-top: .8rem;
}

/* Articles: magazine cards in 2 columns with side image layout */
.blog-list-horizontal { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; max-width: none !important; gap: 1.5rem !important; }
.blog-item-horizontal { display: flex !important; flex-direction: row !important; border-radius: 22px !important; overflow: hidden !important; align-items: stretch !important; }
.blog-item-horizontal .blog-img-side { width: 180px !important; min-width: 180px !important; height: auto !important; aspect-ratio: 1 / 1 !important; }
.blog-item-horizontal .blog-content-side { padding: 1.5rem !important; display: flex !important; flex-direction: column !important; justify-content: space-between !important; flex-grow: 1 !important; min-height: 0 !important; }
.category-tabs-container { justify-content: flex-start !important; max-width: 1000px; margin-left: auto; margin-right: auto; }

/* Gallery: a varied, editorial mosaic without changing gallery data */
.gallery-grid { grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; }
.gallery-tile { grid-column: span 4; }
.gallery-tile:nth-child(5n + 1) { grid-column: span 8; }
.gallery-tile:nth-child(5n + 1) .gallery-img-wrapper { aspect-ratio: 16 / 8; }
.gallery-tile:nth-child(5n + 4) { grid-column: span 5; }
.gallery-tile:nth-child(5n + 5) { grid-column: span 3; }
.gallery-desc { padding: 1.2rem 1.35rem; }

/* Contact: deliberate two-panel contact experience */
.contact-grid {
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr) !important;
    gap: 0 !important;
    border: 1px solid #d7e5da;
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-md);
}
.contact-grid > :first-child {
    padding: clamp(2rem, 5vw, 4rem);
    background: #e8f3ea;
}
.contact-grid > :last-child {
    padding: clamp(2rem, 5vw, 4rem) !important;
    border: 0 !important;
    border-radius: 0 !important;
}
.contact-method-list > div { padding: .9rem 0; border-bottom: 1px solid rgba(19,35,31,.1); }

@media (max-width: 768px) {
    .page-header .container { display: block; }
    .page-header .badge { margin-bottom: 1rem; }
    .page-header .breadcrumb { margin-top: 1.25rem; }
    .hero-stats { grid-template-columns: 1fr; gap: 1rem !important; }
    .hero-stats .stat-item { border-left: 0; border-top: 1px solid #cedbd2; padding: 1rem 0 0; }
    .blog-list-horizontal { grid-template-columns: 1fr !important; }
    .blog-item-horizontal { flex-direction: column !important; }
    .blog-item-horizontal .blog-img-side { width: 100% !important; min-width: 0 !important; aspect-ratio: 16 / 9 !important; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-tile, .gallery-tile:nth-child(n) { grid-column: span 1; }
    .gallery-tile:nth-child(5n + 1) { grid-column: span 2; }
    .contact-grid { grid-template-columns: 1fr !important; }
}

/* Homepage Clinic Overview: compact, touch-friendly phone layout */
@media (max-width: 768px) {
    .hero.surf-section { padding: 2.5rem 0 3.5rem; }
    .hero-grid { display: flex; flex-direction: column; gap: 2.25rem; text-align: left; }
    .hero-content { width: 100%; }
    .hero-content .badge { margin-bottom: 1rem; }
    .hero-content h1 {
        font-size: clamp(2.35rem, 11vw, 3.25rem) !important;
        line-height: 1.08;
        word-break: normal;
    }
    .hero-content p { margin: 1.25rem 0 1.75rem; font-size: 1rem; line-height: 1.7; }
    .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; gap: .75rem; }
    .hero-actions .btn { width: 100%; min-height: 52px; }
    .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding-top: .25rem; }
    .hero-stats .stat-item {
        border: 1px solid #d5e4d9;
        border-radius: 14px;
        background: rgba(255,255,255,.72);
        padding: 1rem !important;
    }
    .hero-stats .stat-item:nth-child(3) { grid-column: span 2; }
    .hero-stats .stat-item h3 { font-size: 1.55rem; line-height: 1.15; overflow-wrap: anywhere; }
    .hero-stats .stat-item p { margin: .3rem 0 0; font-size: .7rem; line-height: 1.35; }
    .hero-stats .clinic-location-stat h3 { font-size: 1.15rem; letter-spacing: -.02em; }
    .hero-image-container { width: calc(100% - 1rem); align-self: center; margin: 0; }
}

/* --- Floating Action Buttons (Call, WhatsApp, Scroll to Top) --- */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.floating-btn svg {
    width: 22px;
    height: 22px;
}

.call-btn {
    background-color: var(--teal);
}

.call-btn:hover {
    background-color: var(--primary-accent-hover);
    transform: scale(1.1);
}

.whatsapp-btn {
    background-color: #25d366;
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
}

.scroll-top-btn {
    background-color: var(--primary);
    color: var(--white);
}

.scroll-top-btn:hover {
    background-color: var(--dark-muted);
    transform: scale(1.1);
}

/* --- Contact Section Styles --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: stretch;
}

.contact-info-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.contact-method-list {
    margin-top: 2rem;
}

.contact-method-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-method-item:last-child {
    margin-bottom: 0;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.contact-method-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.contact-method-text p {
    color: var(--dark-muted);
    font-size: 0.95rem;
    margin: 0;
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Responsive adjustment */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ==========================================================================
   Responsive Layout Utilities & Mobile Friendliness Enhancements
   ========================================================================= */

/* Grid & Flex Responsive helper classes */
.grid-responsive {
    display: grid !important;
    grid-template-columns: var(--grid-cols, 1fr) !important;
    gap: var(--grid-gap, 4rem) !important;
    align-items: var(--grid-align, center) !important;
}

.grid-2-col {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--grid-gap, 3rem) !important;
}

.flex-responsive {
    display: flex !important;
    align-items: var(--flex-align, center) !important;
    gap: var(--flex-gap, 2rem) !important;
    flex-wrap: var(--flex-wrap, wrap) !important;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .grid-responsive {
        gap: var(--grid-gap-tablet, 3rem) !important;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
}

/* Mobile Portrait & Landscape adjustments */
@media (max-width: 768px) {
    /* Layout components stacking */
    .grid-responsive {
        grid-template-columns: 1fr !important;
        gap: var(--grid-gap-mobile, 2rem) !important;
    }
    
    .grid-2-col {
        grid-template-columns: 1fr !important;
        gap: var(--grid-gap-mobile, 2rem) !important;
    }
    
    .flex-responsive {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }
    
    /* Hero Heading scale down for mobile viewports */
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    
    /* Detail page layout paddings and spaces */
    .detail-layout {
        padding: 3rem 0 !important;
        gap: 2.5rem !important;
    }
    
    .detail-main {
        padding: 2.5rem 1.25rem !important;
    }

    /* Modal padding optimizations for phone screens */
    .modal-header {
        padding: 1.5rem 1.5rem !important;
    }
    
    .modal-body {
        padding: 1.5rem !important;
    }
    
    .admin-login-card {
        padding: 2.5rem 1.5rem !important;
    }

    /* Sticky Horizontal Admin Navbar on Mobile (replaces vertical sidebar) */
    .admin-layout {
        grid-template-columns: 1fr !important;
    }
    
    .admin-sidebar {
        padding: 1rem 1.5rem !important;
        position: sticky;
        top: 0;
        z-index: 100;
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        background-color: var(--dark);
        border-bottom: 1px solid #1e293b;
    }
    
    .admin-logo {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
        font-size: 1.25rem !important;
    }
    
    .admin-menu {
        display: flex !important;
        overflow-x: auto;
        white-space: nowrap;
        gap: 1rem;
        margin: 0 1rem;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
    }
    
    .admin-menu::-webkit-scrollbar {
        display: none;
    }
    
    .admin-menu li {
        margin-bottom: 0 !important;
    }
    
    .admin-menu-link {
        padding: 0.5rem 1rem !important;
        border-radius: var(--radius-sm);
        font-size: 0.9rem !important;
    }
    
    .admin-logout {
        margin-top: 0 !important;
    }
    
    .admin-logout a {
        width: auto !important;
        white-space: nowrap;
        padding: 0.5rem 1rem !important;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-bottom: 3rem !important;
    }
}

/* Extra small device configurations (e.g. iPhone SE) */
@media (max-width: 576px) {
    .hero-stats {
        flex-wrap: wrap !important;
        gap: 2rem !important;
    }
    
    button.btn {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
    }
}

/* --- FAQ Accordion Interactive Aesthetics --- */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    transition: border-color var(--transition);
}

.faq-question {
    outline: none;
    user-select: none;
}

.faq-question:focus-visible {
    color: var(--teal) !important;
    text-decoration: underline;
}

.faq-question:hover {
    color: var(--teal) !important;
}

.faq-question:hover .faq-icon {
    transform: scale(1.2);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ======================================================================
   2026 Visual Refresh — presentation only; existing markup and behavior
   remain unchanged.
   ====================================================================== */
:root {
    --primary: #13231f;
    --primary-light: #edf6f0;
    --primary-accent: #37a780;
    --primary-accent-hover: #247e5e;
    --teal: #168260;
    --teal-glow: rgba(22, 130, 96, 0.16);
    --secondary-accent: #e77d44;
    --dark: #17211e;
    --dark-muted: #61706a;
    --light: #f7f7f2;
    --border-color: #dfe8e1;
    --shadow-sm: 0 8px 24px rgba(19, 35, 31, 0.05);
    --shadow-md: 0 18px 48px rgba(19, 35, 31, 0.09);
    --shadow-lg: 0 28px 70px rgba(19, 35, 31, 0.15);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 40px;
}

body {
    background-color: #f7f7f2;
    background-image:
        radial-gradient(circle at 4% 2%, rgba(148, 202, 166, 0.27), transparent 26rem),
        radial-gradient(circle at 96% 30%, rgba(250, 206, 163, 0.22), transparent 24rem),
        linear-gradient(135deg, rgba(255,255,255,0.54), rgba(255,255,255,0));
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.34;
    background-image: linear-gradient(rgba(19, 35, 31, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 35, 31, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
}

::selection { background: #bfe7d3; color: var(--primary); }

h1, h2, h3, h4, h5, h6 { letter-spacing: -0.045em; }

/* Readability-first typography adjustment */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600 !important;
    letter-spacing: -0.028em;
    line-height: 1.2;
}

.hero-content h1,
.page-header h1,
.section-header h2,
.cta-banner h2 {
    font-weight: 600 !important;
    letter-spacing: -0.04em;
}

.hero-content p,
.section-header p,
.card-body p,
.detail-main p,
.doc-info p,
.footer-widget p {
    font-weight: 400;
    line-height: 1.75;
}

.nav-links a,
.btn,
.badge,
.card-footer .link-btn,
.stat-item p {
    font-weight: 600;
}

.container { max-width: 1220px; }

.badge {
    border: 1px solid #cce4d6;
    background: rgba(237, 246, 240, 0.82);
    box-shadow: none;
    letter-spacing: 0.12em;
    padding: 0.5rem 0.95rem;
}

.btn {
    min-height: 48px;
    padding: 0.78rem 1.5rem;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, #168260, #246b54);
    box-shadow: 0 12px 24px rgba(22, 130, 96, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #126d51, #1d5945);
    box-shadow: 0 16px 30px rgba(22, 130, 96, 0.28);
}

.btn-secondary { background: rgba(255,255,255,0.8); }

header {
    top: 14px;
    width: calc(100% - 48px);
    max-width: 1180px;
    height: 76px;
    border-radius: 20px;
    background: rgba(250, 252, 248, 0.82);
    border-color: rgba(206, 223, 212, 0.88);
    box-shadow: 0 10px 32px rgba(19, 35, 31, 0.08);
}

header.header-scrolled {
    top: 8px;
    height: 66px;
    border-radius: 16px;
    background: rgba(250, 252, 248, 0.95);
}

.nav-links { gap: 0.15rem; }
.nav-links a { padding: 0.52rem 0.8rem; font-size: 0.9rem; }
.nav-links a.active { border-color: transparent; background: #e4f1e8; }
.nav-links .btn { min-height: 40px; padding: 0.5rem 1rem; margin-left: 0.35rem; }

.hero { padding: 5.5rem 0 6rem; }
.hero::after {
    content: '';
    position: absolute;
    width: 29rem;
    height: 29rem;
    right: -13rem;
    bottom: -15rem;
    border-radius: 50%;
    background: #deefdf;
    z-index: -1;
}

.hero-grid { gap: 5.5rem; }
.hero-content h1 {
    max-width: 720px;
    font-size: clamp(3.25rem, 6vw, 5.55rem);
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.hero-content p { max-width: 560px; font-size: 1.13rem; }
.hero-stats { gap: 0; border: 0; padding-top: 1.4rem; }
.stat-item { padding: 0 2rem; border-left: 1px solid #cedbd2; }
.stat-item:first-child { padding-left: 0; border-left: 0; }
.stat-item h3 { font-size: 2.15rem; color: #247e5e; }

.hero-image-container {
    padding: 0.7rem;
    border-radius: 32px 32px 32px 110px;
    background: #fff;
    border-color: #d7e4db;
    box-shadow: 18px 22px 0 #d9eadd, var(--shadow-lg);
}
.hero-image-container img { border-radius: 25px 25px 25px 104px; }

.section { padding: 7rem 0; border-top: 0; }
.section:nth-of-type(even) { background: rgba(255,255,255,0.38); }
.section-header { margin-bottom: 3.5rem; }
.section-header h2 { font-size: clamp(2.35rem, 4vw, 3.6rem); max-width: 700px; }

.features-grid, .grid-3 { gap: 1.35rem; }
.feature-card, .card, .gallery-tile {
    background: rgba(255,255,255,0.84);
    backdrop-filter: none;
    border-color: #dce8df;
    box-shadow: none;
}
.feature-card { padding: 2.25rem 2rem; border-radius: 22px; }
.feature-card:hover, .card:hover, .gallery-tile:hover {
    border-color: #b7d8c3;
    box-shadow: 0 18px 38px rgba(19,35,31,0.09);
    transform: translateY(-7px);
}
.feature-icon-wrapper { width: 58px; height: 58px; border-radius: 16px; margin-bottom: 1.5rem; }

.doctor-profile { border: 0; border-radius: 30px; box-shadow: var(--shadow-md); }
.doc-img { min-height: 520px; }
.doc-info { padding: 4rem; background: #fff; }
.doc-info .title { color: var(--teal); }

.card { border-radius: 22px; }
.card-img-wrapper { aspect-ratio: 16 / 9; }
.card-body { padding: 1.65rem; }
.card-body h3 { font-size: 1.35rem; }
.card-footer { padding-top: 1rem; }

.gallery-grid { gap: 1.35rem; }
.gallery-tile { border-radius: 20px; }
.gallery-img-wrapper { aspect-ratio: 4 / 3; }

.page-header {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 4.25rem !important;
    background: #eaf3ec !important;
    border-bottom: 1px solid #d8e6da;
}
.page-header::after {
    content: '';
    position: absolute;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background: #d0e6d4;
    right: -5rem;
    top: -11rem;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(2.75rem, 5vw, 4.5rem); }

.detail-layout { gap: 2rem; padding: 5rem 0; }
.detail-main, .sidebar-widget { border-radius: 22px; border-color: #dce8df; box-shadow: none; }
.detail-main { padding: clamp(1.5rem, 4vw, 3.5rem); }
.sidebar-widget { padding: 2rem; }
.contact-card-widget, .cta-banner {
    background: linear-gradient(135deg, #183a30, #245b49);
    border-radius: 28px;
}
.cta-banner { padding: 5.5rem 2rem; position: relative; overflow: hidden; }
.cta-banner::before {
    content: '';
    position: absolute;
    width: 25rem;
    height: 25rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    right: -9rem;
    top: -14rem;
}
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); text-transform: none; }

input, select, textarea {
    border-radius: 10px;
    border-color: #d8e4dc;
    background: #fcfdfb;
}
input:focus, select:focus, textarea:focus { background: #fff; }
.modal-container { border-radius: 22px; border-color: #dce8df; box-shadow: var(--shadow-lg); }
.modal-header { background: #f3f8f3; }

footer {
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
    padding: 6rem 0 2.5rem;
    background: #132b24;
}
footer::before {
    content: '';
    position: absolute;
    width: 36rem;
    height: 36rem;
    top: -26rem;
    right: -11rem;
    border: 1px solid rgba(154, 213, 179, 0.22);
    border-radius: 50%;
    box-shadow: 0 0 0 4rem rgba(154, 213, 179, 0.035), 0 0 0 8rem rgba(154, 213, 179, 0.025);
}
footer .container { position: relative; }
.footer-widget h3 { font-size: 1.35rem; }
.footer-links a:hover { color: #c5f2d5; }

.floating-btn { width: 50px; height: 50px; border: 2px solid rgba(255,255,255,0.75); }

@media (max-width: 1024px) {
    .hero-grid { gap: 3rem; }
    .nav-links a { padding: 0.45rem 0.55rem; }
    .nav-links .btn { padding: 0.45rem 0.7rem; }
}

@media (max-width: 768px) {
    body { padding-top: 88px; }
    header { top: 9px; width: calc(100% - 24px); height: 62px; border-radius: 16px; }
    .hero { padding: 3.5rem 0 4.5rem; }
    .hero-content h1 { font-size: clamp(2.8rem, 13vw, 4rem) !important; }
    .hero-stats { gap: 0; }
    .stat-item { padding: 0 1rem; }
    .stat-item h3 { font-size: 1.7rem; }
    .hero-image-container { margin: 0 0.8rem; box-shadow: 12px 15px 0 #d9eadd, var(--shadow-md); }
    .section { padding: 4.5rem 0; }
    .section-header { margin-bottom: 2.4rem; }
    .doc-info { padding: 2.25rem 1.5rem; }
    .page-header { padding: 3.75rem 0 3.1rem !important; }
    .cta-banner { padding: 4rem 1.4rem; border-radius: 22px; }
    .footer-grid { gap: 2.5rem; }
}

/* Custom styles for the revised hero layout */
.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 1.5rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
}

.hero-features {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 720px !important;
    gap: 2rem 3rem !important;
    border-top: 1px solid var(--border-color);
    margin-top: 3.5rem !important;
    padding-top: 2rem !important;
}

.hero-features .stat-item {
    border-left: none !important;
    padding: 0 !important;
}

.hero-features .stat-item h3 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #247e5e !important;
    margin-bottom: 0.35rem !important;
    letter-spacing: -0.02em !important;
    line-height: 1.25 !important;
}

.hero-features .stat-item p {
    text-transform: none !important;
    font-size: 0.92rem !important;
    font-weight: 400 !important;
    color: var(--dark-muted) !important;
    font-family: var(--font-body) !important;
    letter-spacing: normal !important;
    line-height: 1.55 !important;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.85rem !important;
        margin-top: 2rem !important;
        padding-top: 1.5rem !important;
        border-top: 1px solid var(--border-color) !important;
    }
    
    .hero-features .stat-item {
        border: 1px solid #d5e4d9 !important;
        border-radius: 14px !important;
        background: rgba(255,255,255,.72) !important;
        padding: 1rem !important;
    }
    
    .hero-features .stat-item:nth-child(3) {
        grid-column: span 1 !important;
    }
    
    .hero-features .stat-item h3 {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-features .stat-item p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin-top: 0.25rem !important;
    }
}

