/* ===================================
   THE SURGICAL CLINIC — styles.css
   Theme: Deep Navy × Surgical Gold
   Fonts: Cormorant Garamond + Jost
=================================== */

:root {
    --navy:        #ffffff;   /* main surface */
    --navy-mid:    #f4f7fb;   /* alternating section surface */
    --navy-light:  #e9eef5;   /* raised panel */
    --gold:        #3f6794;   /* accent (blue) */
    --gold-light:  #557da9;
    --gold-dark:   #2c4a6e;
    --cream:       #f4f0e8;
    --cream-dark:  #e8e2d5;
    --white:       #16202b;   /* primary ink / foreground text */
    --text-muted:  #8a909a;
    --text-body:   #4a525e;
    --border:      rgba(20,32,46,0.08);
    --border-strong: rgba(20,32,46,0.14);
    --shadow-sm:   0 2px 12px rgba(20,32,46,0.06);
    --shadow-md:   0 8px 28px rgba(20,32,46,0.08);
    --transition:  0.35s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    background: var(--navy);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ---- Preloader ---- */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo-img {
    display: block;
    height: clamp(100px, 16vw, 140px);
    width: auto;
    max-width: min(620px, 90vw);
    margin: 0 auto 28px;
}
.preloader-line {
    width: 0; height: 1px; background: var(--gold);
    margin: 0 auto; animation: lineExpand 1.4s ease forwards 0.3s;
}
@keyframes lineExpand { to { width: 120px; } }

/* ---- Header ---- */
#header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 5%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(20,32,46,0.06);
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
#header.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(20,32,46,0.06), 0 6px 20px -12px rgba(20,32,46,0.18);
    padding-top: 0;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 80px;
    border-bottom: 1px solid rgba(20,32,46,0.08);
    transition: border-color var(--transition), height var(--transition);
}
#header.scrolled .header-inner { border-color: transparent; height: 68px; }

.logo a {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--white);
    line-height: 0;
}
.logo-img {
    display: block;
    height: 74px;
    width: auto;
    object-fit: contain;
}
#header.scrolled .logo-img { height: 62px; }
.logo-img--footer {
    height: 118px;
    margin-bottom: 4px;
}
.logo-cross { color: var(--gold); font-size: 1rem; }
.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem; font-weight: 400; letter-spacing: 0.04em;
}
.logo-accent { color: var(--gold); }

#header nav { display: flex; align-items: center; gap: 40px; }
#nav-menu {
    display: flex; gap: 36px; list-style: none;
}
#nav-menu a {
    text-decoration: none; color: var(--text-body);
    font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
    font-weight: 400; transition: color var(--transition);
    position: relative; padding-bottom: 2px;
}
#nav-menu a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 1px; background: var(--gold);
    transition: width var(--transition);
}
#nav-menu a:hover { color: var(--gold); }
#nav-menu a:hover::after { width: 100%; }

.mobile-menu-btn {
    display: none; font-size: 1.2rem; cursor: pointer; color: var(--navy);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem; font-weight: 400;
    letter-spacing: 0.2em; text-transform: uppercase;
    text-decoration: none; cursor: pointer; border: none;
    transition: all var(--transition);
}
.btn-gold {
    background: var(--gold); color: var(--navy);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
    background: transparent;
    border: 1px solid rgba(20,32,46,0.28); color: var(--white);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.6); color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--gold); border-color: #fff; }

.btn-full { width: 100%; justify-content: center; }
.nav-cta { padding: 10px 22px; font-size: 0.72rem; }

/* ---- Shared ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 5%; }

.section-eyebrow {
    display: block;
    font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 16px;
}
.section-header h2, h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400; line-height: 1.15;
}
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 em { font-style: italic; color: var(--gold); }
h1 em { font-style: italic; color: var(--gold-light); }

.section-intro {
    max-width: 580px;
    color: var(--text-body); margin-top: 16px;
    font-size: 0.95rem;
}
.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; }
.section-header--center .section-intro { margin: 16px auto 0; }

/* ---- Hero ---- */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; padding: 120px 5% 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    overflow: hidden;
}
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease;
    background-size: cover;
    background-position: center;
    animation: heroKenBurns 18s ease-in-out infinite alternate;
}
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}
.hero-slide img {
    position: absolute; width: 0; height: 0;
    opacity: 0; pointer-events: none;
}
.hero-slide:nth-child(2) { animation-delay: -6s; }
.hero-slide:nth-child(3) { animation-delay: -12s; }
.hero-slide:nth-child(4) { animation-delay: -3s; }
@keyframes heroKenBurns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1.5%, -1%); }
}
.hero-bg-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(100deg, rgba(255,255,255,0.94) 26%, rgba(255,255,255,0.72) 46%, rgba(255,255,255,0.20) 72%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 3; max-width: 660px; }
.hero-eyebrow {
    display: block;
    font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 300; line-height: 1.05;
    margin-bottom: 24px;
}
.hero-desc {
    font-size: 1rem; color: var(--text-body);
    max-width: 480px; margin-bottom: 40px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats {
    display: flex; align-items: center; gap: 0; flex-wrap: wrap;
    padding-top: 32px; border-top: 1px solid rgba(20,32,46,0.1);
}
.hero-stat { padding: 0 32px; }
.hero-stat:first-child { padding-left: 0; }
.stat-n {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 400; color: var(--gold);
}
.stat-l { display: block; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--text-muted); margin-top: 2px; }
.stat-n--text { font-variant-numeric: tabular-nums; }
.hero-stat-divider { width: 1px; height: 44px; background: rgba(20,32,46,0.12); }
.hero-scroll {
    position: absolute; bottom: 40px; right: 5%; z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text-muted); animation: scrollBounce 2s ease infinite;
    background: none; border: none; cursor: pointer;
    font-family: inherit; padding: 8px;
    transition: color var(--transition);
}
.hero-scroll:hover { color: var(--gold); }
@keyframes scrollBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ---- Services ---- */
.services {
    padding: 120px 0;
    background: var(--navy-mid);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: rgba(20,32,46,0.07);
    border: 1px solid rgba(20,32,46,0.07);
}
.service-card {
    background: var(--navy-mid);
    padding: 40px 32px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: pointer; position: relative; overflow: hidden;
    text-align: left;
}
.service-card-bg {
    position: absolute; inset: 0;
    background-image: var(--service-img);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s ease, transform 0.8s ease;
    z-index: 0;
}
.service-card-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(255,255,255,0.97) 0%, rgba(244,247,251,0.92) 55%, rgba(244,247,251,0.85) 100%);
}
.service-card:hover .service-card-bg {
    opacity: 1;
    transform: scale(1);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.service-card > *:not(.service-card-bg) {
    position: relative;
    z-index: 1;
}
.service-card:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}
.service-card::before {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--gold);
    transition: width var(--transition);
}
.service-card:hover { background: var(--navy-light); }
.service-card:hover::before { width: 100%; }
.service-icon {
    font-size: 1.6rem; color: var(--gold);
    margin-bottom: 20px; display: block;
}
.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem; font-weight: 500;
    margin-bottom: 12px; color: var(--white);
}
.service-card p {
    font-size: 0.85rem; color: var(--text-body);
    line-height: 1.7; margin-bottom: 20px;
}
.service-link {
    font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold); text-decoration: none;
    display: flex; align-items: center; gap: 8px;
    transition: gap var(--transition);
}
.service-link:hover { gap: 14px; }
.service-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

/* ---- Service detail modal ---- */
.service-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}
.service-modal.open {
    opacity: 1;
    visibility: visible;
}
.service-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22,32,43,0.55);
    backdrop-filter: blur(4px);
}
.service-modal-panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(88vh, 720px);
    background: var(--navy);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    overflow: hidden;
    transform: translateY(16px) scale(0.98);
    transition: transform var(--transition);
}
.service-modal.open .service-modal-panel {
    transform: translateY(0) scale(1);
}
.service-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--white);
    color: var(--navy);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}
.service-modal-close:hover {
    background: var(--gold);
    color: #fff;
}
.service-modal-media {
    background: var(--navy-light);
    min-height: 280px;
}
.service-modal-media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}
.service-modal-content {
    padding: 36px 32px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.service-modal-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}
.service-modal-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 14px;
    padding-right: 36px;
}
.service-modal-detail {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 22px;
}
.service-modal-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin-bottom: 28px;
}
.service-modal-features li {
    font-size: 0.82rem;
    color: var(--text-body);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.service-modal-features li i {
    color: var(--gold);
    font-size: 0.75rem;
    margin-top: 4px;
    flex-shrink: 0;
}
.service-modal-cta {
    margin-top: auto;
    padding-top: 8px;
}
.service-modal-cta .btn { width: 100%; justify-content: center; }

@media (max-width: 768px) {
    .service-modal-panel {
        grid-template-columns: 1fr;
        max-height: 92vh;
        overflow-y: auto;
    }
    .service-modal-media { min-height: 200px; }
    .service-modal-media img { min-height: 200px; }
    .service-modal-features { grid-template-columns: 1fr; }
}

/* ---- About ---- */
.about {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0; min-height: 640px;
}
.about-image-col { position: relative; overflow: hidden; }
.about-img-wrap { width: 100%; height: 100%; min-height: 500px; position: relative; }
.about-slideshow {
    position: absolute; inset: 0;
}
.about-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.about-slide.active { opacity: 1; }
.about-slide img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transform: scale(1);
    transition: transform 8s ease;
}
.about-slide.active img { transform: scale(1.06); }
.about-badge {
    position: absolute; bottom: 40px; right: -1px; z-index: 2;
    background: var(--gold); color: var(--navy);
    padding: 20px 28px; text-align: center;
}
.badge-n {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 600; line-height: 1;
}
.badge-l { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; }
.about-content {
    background: var(--navy-light);
    padding: 80px 6% 80px;
    display: flex; flex-direction: column; justify-content: center;
}
.about-content p {
    font-size: 0.92rem; color: var(--text-body);
    margin-bottom: 20px;
}
.about-features { display: flex; flex-direction: column; gap: 20px; margin: 32px 0 40px; }
.about-feature {
    display: flex; gap: 16px; align-items: flex-start;
}
.about-feature i {
    color: var(--gold); font-size: 1rem; margin-top: 3px; flex-shrink: 0;
}
.about-feature h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem; font-weight: 500; margin-bottom: 4px;
}
.about-feature p { font-size: 0.82rem; margin: 0; }

/* ---- Process ---- */
.process {
    padding: 100px 0;
    background: var(--navy);
}
.process-steps {
    display: flex; align-items: flex-start; justify-content: center;
    gap: 0; flex-wrap: wrap;
}
.process-step {
    flex: 1; min-width: 180px; max-width: 240px;
    text-align: center; padding: 0 24px;
}
.step-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem; font-weight: 300; color: var(--gold);
    line-height: 1; margin-bottom: 16px;
    border-bottom: 1px solid rgba(63,103,148,0.3);
    padding-bottom: 16px; display: inline-block; min-width: 60px;
}
.process-step h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem; font-weight: 500;
    margin-bottom: 10px; color: var(--white);
}
.process-step p { font-size: 0.82rem; color: var(--text-body); }
.process-arrow {
    color: rgba(63,103,148,0.4); font-size: 1rem;
    padding-top: 30px; flex-shrink: 0;
}

/* ---- Team ---- */
.team {
    padding: 120px 0;
    background: var(--navy-mid);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: rgba(20,32,46,0.07);
    border: 1px solid rgba(20,32,46,0.07);
}
.team-card {
    background: var(--navy-mid); overflow: hidden;
    transition: background var(--transition);
}
.team-panel {
    background: var(--navy-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
}
.team-panel-accent {
    height: 120px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.team-panel-accent::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 20%, var(--navy-light) 100%);
}
.team-panel-accent img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0.55;
}
.team-panel-body {
    padding: 28px 24px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.team-panel-body .section-eyebrow {
    margin-bottom: 10px;
    font-size: 0.62rem;
}
.team-panel-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.2;
}
.team-panel-body > p {
    font-size: 0.82rem;
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 20px;
}
.team-panel-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.team-panel-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-body);
    line-height: 1.45;
}
.team-panel-list li i {
    color: var(--gold);
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}
.team-panel-stats {
    display: flex;
    gap: 24px;
    padding: 18px 0;
    margin-bottom: 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.team-panel-stat-n {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--gold);
    line-height: 1;
}
.team-panel-stat-l {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}
.team-panel-cta {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    font-size: 0.68rem;
    padding: 11px 20px;
}
.team-card:hover { background: var(--navy-light); }
.team-card-img {
    width: 100%; aspect-ratio: 3/4; overflow: hidden;
}
.team-card-img img {
    width: 100%; height: 100%; object-fit: cover; object-position: top;
    transition: transform 0.6s ease;
}
.team-card:hover .team-card-img img { transform: scale(1.04); }
.team-card-body { padding: 24px; }
.team-card-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem; font-weight: 500; margin-bottom: 4px;
}
.team-card-body .role {
    font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gold);
}

/* ---- Gallery ---- */
.gallery {
    padding: 100px 0 80px;
    background: var(--navy-mid);
    overflow: hidden;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 48px;
}
.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    background: var(--navy-light);
    transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-md);
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(22,32,43,0.75) 0%, transparent 55%);
    display: flex; flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition);
    color: #fff;
    text-align: left;
}
.gallery-item-overlay i {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--gold-light);
}
.gallery-item-overlay span {
    font-size: 0.82rem;
    line-height: 1.4;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.gallery-marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: galleryScroll 40s linear infinite;
}
.gallery-marquee-item {
    flex-shrink: 0;
    width: 220px;
    height: 140px;
    overflow: hidden;
    opacity: 0.7;
    transition: opacity var(--transition);
}
.gallery-marquee-item:hover { opacity: 1; }
.gallery-marquee-item img {
    width: 100%; height: 100%;
    object-fit: cover;
}
@keyframes galleryScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Lightbox ---- */
.lightbox {
    position: fixed; inset: 0; z-index: 1100;
    display: flex; align-items: center; justify-content: center;
    background: rgba(22,32,43,0.92);
    backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    padding: 24px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-content {
    max-width: min(900px, 100%);
    text-align: center;
    transform: scale(0.95);
    transition: transform var(--transition);
}
.lightbox.open .lightbox-content { transform: scale(1); }
.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-md);
}
.lightbox-caption {
    margin-top: 16px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}
.lightbox-close {
    position: absolute; top: 20px; right: 20px;
    width: 44px; height: 44px;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition);
}
.lightbox-close:hover { background: var(--gold); border-color: var(--gold); }
.lightbox-nav {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    transition: all var(--transition);
}
.lightbox-nav:hover { background: var(--gold); border-color: var(--gold); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---- Testimonials ---- */
.testimonials {
    padding: 100px 0;
    background: var(--navy);
    overflow: hidden;
}
.testimonials-track { position: relative; overflow: hidden; }
.testimonial-item {
    display: none; padding: 0 2%;
    animation: testimonialFade 0.6s ease;
}
.testimonial-item.active { display: block; }
@keyframes testimonialFade {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.testimonial-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: 300; font-style: italic;
    line-height: 1.5; color: var(--white);
    margin-bottom: 32px; max-width: 860px; margin: 0 auto 32px;
    text-align: center;
}
.testimonial-quote::before { content: '\201C'; color: var(--gold); }
.testimonial-quote::after { content: '\201D'; color: var(--gold); }
.testimonial-author {
    display: flex; align-items: center; gap: 16px;
    justify-content: center;
}
.author-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    border: 2px solid var(--gold); overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-avatar--initials {
    display: flex; align-items: center; justify-content: center;
    background: var(--gold);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.author-name { font-size: 0.9rem; font-weight: 400; margin-bottom: 2px; }
.author-title { font-size: 0.72rem; color: var(--gold); letter-spacing: 0.1em; }
.testimonial-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 20px; margin-top: 48px;
}
.tctl {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(63,103,148,0.4);
    background: transparent; color: var(--gold);
    cursor: pointer; transition: all var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.tctl:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.t-dots { display: flex; gap: 8px; }
.t-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(63,103,148,0.3);
    cursor: pointer; transition: background var(--transition), transform var(--transition);
}
.t-dot.active { background: var(--gold); transform: scale(1.3); }

/* ---- CTA Banner ---- */
.cta-banner {
    background: var(--gold);
    padding: 80px 5%;
}
.cta-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.cta-banner h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--navy); font-weight: 400; margin-bottom: 12px;
}
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 32px; font-size: 0.95rem; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-banner .btn-gold { background: var(--navy); color: var(--gold); }
.cta-banner .btn-gold:hover { background: var(--navy-mid); }

/* ---- Contact ---- */
.contact {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 0; background: var(--navy-mid);
}
.contact-info {
    padding: 80px 6%;
    background: var(--navy-light);
    display: flex; flex-direction: column; justify-content: center;
}
.contact-info p { font-size: 0.9rem; color: var(--text-body); margin-bottom: 36px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item i { color: var(--gold); font-size: 1rem; margin-top: 3px; flex-shrink: 0; }
.contact-item h4 {
    font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 4px;
}
.contact-item p { font-size: 0.88rem; margin: 0; }

.contact-form-wrap { padding: 80px 6%; }
.contact-form h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem; font-weight: 400; margin-bottom: 32px;
}
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
    display: block;
    font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 8px;
}
.form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid #dfe5ec;
    color: var(--white);
    padding: 12px 16px; font-family: 'Jost', sans-serif;
    font-size: 0.9rem; font-weight: 300;
    outline: none; transition: border-color var(--transition);
    appearance: none;
}
.form-control:focus { border-color: var(--gold); background: #fff; }
.form-control::placeholder { color: #9aa0a8; }
select.form-control option { background: var(--navy-mid); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-success {
    background: rgba(63,103,148,0.08); border: 1px solid var(--gold);
    color: var(--gold); padding: 14px 16px; margin-top: 16px;
    font-size: 0.85rem; display: flex; align-items: center; gap: 10px;
}

/* ---- Footer ---- */
footer { background: var(--navy); }
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding: 72px 5% 48px;
    border-bottom: 1px solid rgba(20,32,46,0.08);
}
.footer-logo {
    margin-bottom: 16px;
    display: flex; align-items: center;
}
.footer-col p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 8px; }
.footer-col h4 {
    font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    text-decoration: none; color: var(--text-muted); font-size: 0.83rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a {
    width: 36px; height: 36px;
    border: 1px solid rgba(20,32,46,0.15);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; text-decoration: none;
    transition: all var(--transition);
}
.social-links a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-bottom {
    padding: 20px 5%;
    text-align: center;
    font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.1em;
}

/* ---- Back to top ---- */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px; z-index: 50;
    width: 44px; height: 44px;
    background: var(--gold); color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold-light); }

/* ---- Appointment page ---- */
.page-hero {
    padding: 160px 5% 80px;
    background: var(--navy-mid);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero--image {
    background: linear-gradient(135deg, rgba(255,255,255,0.94) 0%, rgba(244,247,251,0.88) 100%),
                url('images/brand-surgery.jpeg') center/cover no-repeat;
}
.page-hero--image > * { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 12px; }
.page-hero p { color: var(--text-body); font-size: 0.95rem; max-width: 540px; margin: 0 auto; }

.appt-section {
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 0; min-height: 80vh;
}
.appt-form-col { padding: 72px 5%; background: var(--navy-mid); }
.appt-info-col {
    padding: 72px 5%; background: var(--navy-light);
    display: flex; flex-direction: column; justify-content: center;
}
.appt-form-col h2, .appt-info-col h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem; font-weight: 400; margin-bottom: 32px;
}

/* ===================================
   DASHBOARDS — Admin & Doctor
=================================== */
.dash-body {
    display: flex;
    min-height: 100vh;
    background: var(--navy-mid);
    overflow-x: hidden;
}

/* ---- Sidebar ---- */
.dash-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 268px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(175deg, var(--gold-dark) 0%, #1a3350 55%, #152a42 100%);
    color: rgba(255,255,255,0.92);
    border-right: 1px solid rgba(255,255,255,0.06);
    transition: transform var(--transition);
}
.doctor-sidebar {
    background: linear-gradient(175deg, #25466a 0%, var(--gold-dark) 48%, #1a3350 100%);
}

.dash-sidebar-logo {
    flex-shrink: 0;
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dash-sidebar-logo .logo-cross {
    display: block;
    color: var(--gold-light);
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.dash-sidebar-logo .logo-text {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.25;
    color: #fff;
}
.dash-sidebar-logo .logo-accent { color: var(--gold-light); }
.dash-role {
    display: block;
    margin-top: 8px;
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

.dash-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 0 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.dash-nav::-webkit-scrollbar { width: 5px; }
.dash-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}
.dash-nav-section {
    padding: 18px 24px 8px;
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}
.dash-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 24px;
    margin: 2px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.72);
    transition: all var(--transition);
}
.dash-nav a i {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
}
.dash-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.dash-nav a:hover i { color: var(--gold-light); }
.dash-nav a.active {
    background: rgba(63,103,148,0.35);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--gold-light);
}
.dash-nav a.active i { color: var(--gold-light); }

.dash-sidebar-footer {
    flex-shrink: 0;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.dash-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(0,0,0,0.15);
}
.dash-user-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(85,125,169,0.5);
}
.dash-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-user-name {
    font-size: 0.85rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
}
.dash-user-role {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.04em;
}
.dash-logout {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 6px;
    font-size: 0.9rem;
    transition: color var(--transition);
}
.dash-logout:hover { color: #fff; }

/* ---- Main layout ---- */
.dash-main {
    flex: 1;
    margin-left: 268px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dash-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 32px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.dash-topbar-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
}
.dash-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.dash-sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-body);
    padding: 4px;
}

.dash-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--navy-mid);
    border: 1px solid var(--border-strong);
    padding: 9px 16px;
    min-width: 220px;
    transition: border-color var(--transition);
}
.dash-search:focus-within { border-color: var(--gold); }
.dash-search input {
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--white);
    width: 100%;
}
.dash-search input::placeholder { color: var(--text-muted); }

.dash-notif {
    position: relative;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    background: var(--navy);
    color: var(--text-body);
    cursor: pointer;
    transition: all var(--transition);
}
.dash-notif:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.notif-badge {
    position: absolute;
    top: -4px; right: -4px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    background: var(--gold);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.dash-content {
    padding: 28px 32px 48px;
    flex: 1;
}

/* ---- Welcome banner ---- */
.dash-welcome {
    background: var(--navy);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    padding: 28px 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}
.doctor-welcome {
    background: linear-gradient(105deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-left-color: var(--gold-light);
}
.dash-welcome-date {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}
.dash-welcome h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 8px;
}
.dash-welcome p {
    font-size: 0.92rem;
    color: var(--text-body);
    max-width: 640px;
}
.dash-welcome strong { color: var(--gold); font-weight: 400; }

/* ---- Stats ---- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--navy);
    border: 1px solid var(--border);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition);
}
.stat-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(63,103,148,0.25);
}
.stat-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}
.stat-card-icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(63,103,148,0.1);
    color: var(--gold);
    font-size: 1rem;
}
.doctor-stat-icon { background: rgba(63,103,148,0.12); }
.stat-change {
    font-size: 0.72rem;
    color: var(--gold);
    letter-spacing: 0.04em;
}
.stat-change--ok { color: #3d7a52; }
.stat-card-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-card-label {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ---- Cards & grid ---- */
.dash-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}
.dash-card {
    background: var(--navy);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.dash-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--navy-mid);
}
.dash-card-head h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--white);
}
.dash-card-head a {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}
.dash-card-head a:hover { color: var(--gold-light); }
.dash-card-body { padding: 0; }

/* ---- Tables ---- */
.appt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}
.appt-table thead {
    background: var(--navy-mid);
}
.appt-table th {
    text-align: left;
    padding: 12px 20px;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 400;
    border-bottom: 1px solid var(--border);
}
.appt-table td {
    padding: 14px 20px;
    color: var(--text-body);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.appt-table tbody tr:hover td { background: rgba(63,103,148,0.04); }
.appt-table tbody tr:last-child td { border-bottom: none; }
.appt-table strong { color: var(--white); font-weight: 400; }

.appt-status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
}
.status-confirmed {
    background: rgba(63,103,148,0.12);
    color: var(--gold-dark);
}
.status-pending {
    background: rgba(244,240,232,0.9);
    color: #8a6d3b;
    border: 1px solid var(--cream-dark);
}
.status-cancelled {
    background: rgba(180,69,47,0.08);
    color: #b4452f;
}

.appt-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.78rem;
    transition: all var(--transition);
}
.appt-action:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(63,103,148,0.06);
}

/* ---- Quick actions ---- */
.quick-actions { display: flex; flex-direction: column; }
.quick-action-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.quick-action-item:last-child { border-bottom: none; }
.quick-action-item:hover { background: rgba(63,103,148,0.05); }
.qa-icon {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(63,103,148,0.1);
    color: var(--gold);
    flex-shrink: 0;
}
.qa-text { flex: 1; min-width: 0; }
.qa-text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 2px;
}
.qa-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.qa-arrow { color: var(--text-muted); font-size: 0.75rem; }
.quick-action-item:hover .qa-arrow { color: var(--gold); }

/* ---- Mini calendar ---- */
.mini-calendar { padding: 8px 4px 4px; }
.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 8px;
}
.cal-head h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--white);
}
.cal-nav { display: flex; gap: 6px; }
.cal-nav button {
    width: 30px; height: 30px;
    border: 1px solid var(--border-strong);
    background: var(--navy);
    color: var(--text-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all var(--transition);
}
.cal-nav button:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 0.78rem;
}
.cal-day-name {
    padding: 6px 0;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-body);
    cursor: default;
    border-radius: 4px;
    transition: background var(--transition);
}
.cal-day.other-month { color: var(--text-muted); opacity: 0.45; }
.cal-day.today {
    background: var(--gold);
    color: #fff;
    font-weight: 500;
}
.cal-day.has-appt:not(.today) {
    background: rgba(63,103,148,0.12);
    color: var(--gold-dark);
    font-weight: 500;
}

/* ---- Doctor schedule & patients ---- */
.today-schedule { padding: 8px 0; }
.schedule-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.schedule-item:last-child { border-bottom: none; }
.schedule-item:hover { background: rgba(63,103,148,0.04); }
.schedule-time {
    flex-shrink: 0;
    width: 72px;
    text-align: center;
}
.schedule-time strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--white);
}
.schedule-time span {
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}
.schedule-divider {
    width: 1px;
    height: 40px;
    background: var(--border-strong);
    flex-shrink: 0;
}
.schedule-body {
    flex: 1;
    min-width: 0;
}
.schedule-body strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 2px;
}
.schedule-body span {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.schedule-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.schedule-btn {
    padding: 7px 14px;
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}
.schedule-btn-primary {
    background: var(--gold);
    color: #fff;
}
.schedule-btn-primary:hover { background: var(--gold-light); }
.schedule-btn-ghost {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-body);
}
.schedule-btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.patient-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.patient-row:last-child { border-bottom: none; }
.patient-row:hover { background: rgba(63,103,148,0.04); }
.patient-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-strong);
}
.patient-avatar img { width: 100%; height: 100%; object-fit: cover; }
.patient-info { flex: 1; min-width: 0; }
.patient-info strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--white);
}
.patient-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.patient-next {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--gold);
    flex-shrink: 0;
}

.week-stat-box {
    background: var(--navy-mid);
    border: 1px solid var(--border);
    padding: 16px;
    text-align: center;
    transition: border-color var(--transition);
}
.week-stat-box:hover { border-color: rgba(63,103,148,0.3); }
.week-stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--gold);
    line-height: 1.1;
}
.week-stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

.dash-notes-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
}

/* ---- Clinical notes ---- */
.notes-area {
    width: 100%;
    min-height: 140px;
    padding: 14px 16px;
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--white);
    background: var(--navy-mid);
    border: 1px solid var(--border-strong);
    outline: none;
    resize: vertical;
    transition: border-color var(--transition);
}
.notes-area:focus { border-color: var(--gold); }
.notes-area::placeholder { color: var(--text-muted); }
.notes-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--navy-mid);
    display: flex;
    justify-content: flex-end;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .team-panel { grid-column: span 2; }
    .team-panel-accent { height: 100px; }
    .about { grid-template-columns: 1fr; }
    .about-image-col { min-height: 400px; }
    .contact { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .appt-section { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .dash-grid { grid-template-columns: 1fr; }
    .dash-notes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .dash-sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-md);
    }
    .dash-sidebar.open { transform: translateX(0); }
    .dash-main { margin-left: 0; }
    .dash-topbar { padding: 14px 20px; }
    .dash-content { padding: 20px; }
    .dash-search { min-width: 0; flex: 1; }
}
@media (max-width: 768px) {
    .logo-img { height: 58px; }
    #header.scrolled .logo-img { height: 52px; }
    .logo-img--footer { height: 96px; }
    .preloader-logo-img { height: 88px; }
    #nav-menu, .nav-cta { display: none; }
    .mobile-menu-btn { display: block; }
    #nav-menu.open {
        display: flex; flex-direction: column;
        position: fixed; inset: 80px 0 0 0;
        background: var(--navy);
        align-items: center; justify-content: center;
        gap: 32px; z-index: 200;
    }
    .hero h1 { font-size: 2.6rem; }
    .hero-stats { gap: 16px; }
    .hero-stat { padding: 0 16px; }
    .process-steps { gap: 24px; }
    .process-arrow { display: none; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-info { padding: 48px 5%; }
    .contact-form-wrap { padding: 48px 5%; }
    .dash-search { display: none; }
    .stats-row { grid-template-columns: 1fr; }
    .schedule-item { flex-wrap: wrap; }
    .schedule-actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 480px) {
    .hero { padding: 100px 5% 60px; }
    .hero h1 { font-size: 2rem; }
    .hero-btns { flex-direction: column; }
    .services { padding: 80px 0; }
    .team { padding: 80px 0; }
    .team-grid { grid-template-columns: 1fr; }
    .team-panel { grid-column: span 1; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-nav { width: 40px; height: 40px; }
}
