/* ===========================
   Editorial Precision — Institutional Edition
   Fonts: Instrument Serif (display) + Plus Jakarta Sans (body)
   Palette: Midnight + Institutional Blue
   =========================== */

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

:root {
    /* Fonts */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

    /* Backgrounds */
    --bg: #ffffff;
    --bg-warm: #f8f9fb;
    --surface: #ffffff;

    /* Borders */
    --border: #e5e7eb;
    --border-hover: #cbd5e1;

    /* Text */
    --text: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-on-dark: #f3f4f6;
    --text-on-dark-muted: rgba(255, 255, 255, 0.55);

    /* Dark surfaces */
    --dark: #0a0f1c;
    --dark-surface: #131a2b;

    /* Accent — Institutional Blue */
    --accent: #1d5ba6;
    --accent-hover: #174d91;
    --accent-soft: #edf4fc;
    --accent-light: #5b9bd5;
    --accent-glow: rgba(29, 91, 166, 0.12);

    /* Functional */
    --whatsapp: #25d366;
    --whatsapp-hover: #1ead57;
    --open: #16a34a;
    --closed: #dc2626;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.04);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Accessibility
   =========================== */

*:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
*:focus:not(:focus-visible) { outline: none; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-tagline, .hero h1, .hero-credentials,
    .hero-subtitle, .hero-stats, .hero-actions, .hero-visual {
        opacity: 1 !important;
        transform: none !important;
    }
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 var(--radius-sm) 0;
    font-family: var(--font-body);
}
.skip-link:focus { top: 0; }

/* ===========================
   Header
   =========================== */

.header {
    background: var(--dark);
    color: white;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.logo-icon { opacity: 0.6; }

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 36px;
    align-items: center;
}

.header-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.header-nav a:hover {
    color: rgba(255, 255, 255, 0.95);
}

/* Status Badge */
.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fbbf24;
    animation: pulse 2s infinite;
}

.status-badge.open .status-dot { background: var(--open); }
.status-badge.closed .status-dot { background: var(--closed); animation: none; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.status-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===========================
   Hero — Dark, Split Layout
   =========================== */

.hero {
    background: var(--dark);
    padding: 72px 32px 80px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 64px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-tagline {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 3.8rem;
    color: var(--text-on-dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.hero-credentials {
    color: var(--text-on-dark-muted);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
}

.stat { text-align: center; padding: 0 28px; }
.stat:first-child { padding-left: 0; }

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.6rem;
    color: var(--text-on-dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-on-dark-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hero visual — photo with blue glow */
.hero-visual {
    flex-shrink: 0;
    position: relative;
}

.hero-photo {
    position: relative;
    width: 300px;
    height: 360px;
}

.hero-photo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(29, 91, 166, 0.04) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Hero entrance animations */
@keyframes heroReveal {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.hero-tagline {
    opacity: 0;
    animation: heroReveal 0.7s ease-out 0.15s forwards;
}

.hero h1 {
    opacity: 0;
    animation: heroReveal 0.7s ease-out 0.25s forwards;
}

.hero-credentials {
    opacity: 0;
    animation: heroReveal 0.6s ease-out 0.35s forwards;
}

.hero-subtitle {
    opacity: 0;
    animation: heroReveal 0.6s ease-out 0.4s forwards;
}

.hero-stats {
    opacity: 0;
    animation: heroReveal 0.6s ease-out 0.45s forwards;
}

.hero-actions {
    opacity: 0;
    animation: heroReveal 0.6s ease-out 0.55s forwards;
}

.hero-visual {
    opacity: 0;
    animation: heroPhotoReveal 0.9s ease-out 0.2s forwards;
}

.hero.fade-in-section {
    opacity: 1;
    transform: none;
    transition: none;
}

/* ===========================
   Specialties Strip
   =========================== */

.specialties-strip {
    background: var(--accent);
    padding: 16px 32px;
}

.specialties-strip.fade-in-section {
    opacity: 1;
    transform: none;
    transition: none;
}

.strip-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.strip-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.strip-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

/* ===========================
   Buttons
   =========================== */

.btn {
    padding: 14px 28px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
    letter-spacing: -0.01em;
    cursor: pointer;
    border: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(29, 91, 166, 0.3);
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(29, 91, 166, 0.35);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-dark {
    background: var(--dark);
    color: white;
}
.btn-dark:hover {
    background: var(--dark-surface);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--text-on-dark);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

@media (hover: none) and (pointer: coarse) {
    .btn:hover { transform: none; box-shadow: none; }
    .btn:active { transform: scale(0.97); transition: transform 0.1s ease; }
    .btn-ghost:hover { background: transparent; }
    a, button { -webkit-tap-highlight-color: rgba(0, 0, 0, 0.06); }
}

/* ===========================
   Section Titles
   =========================== */

.section-title {
    font-family: var(--font-display);
    text-align: center;
    font-size: 2.4rem;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--accent);
    margin: 18px auto 0;
    border-radius: 1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    margin-top: 18px;
    font-size: 0.95rem;
    font-weight: 400;
}

/* ===========================
   Services
   =========================== */

.services {
    padding: 96px 32px;
    background: var(--bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1140px;
    margin: 0 auto;
}

.service-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    text-align: center;
    border: 1px solid var(--border);
    border-top: 3px solid transparent;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, border-top-color 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    border-top-color: var(--accent);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--accent);
    transition: background 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: white;
}

.service-card h3 {
    font-family: var(--font-body);
    color: var(--text);
    margin-bottom: 8px;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 0.88rem;
    line-height: 1.65;
    font-weight: 400;
}

.price {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: -0.02em;
}

/* ===========================
   About Doctor / Our Medical Team
   =========================== */

.about-doctor {
    padding: 96px 32px;
    background: var(--bg-warm);
}

.about-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 64px;
    align-items: center;
}

.doctor-image { text-align: center; }

.about-photo {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

.doctor-details .section-title { text-align: left; }
.doctor-details .section-title::after { margin-left: 0; }

.doctor-role {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 22px;
    margin-bottom: 6px;
}

.doctor-name-about {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 4px;
}

.doctor-qualification {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 18px;
    font-weight: 500;
}

.doctor-bio {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-weight: 400;
}

.credentials { display: grid; gap: 18px; }

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

.credential-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.credential-item h4 {
    color: var(--text);
    margin-bottom: 2px;
    font-size: 0.9rem;
    font-weight: 600;
}

.credential-item p {
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.5;
}

/* ===========================
   Google Reviews
   =========================== */

.google-reviews {
    background: var(--bg);
    padding: 80px 32px;
}

.google-reviews-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.google-reviews-card {
    background: var(--bg-warm);
    padding: 44px;
    border-radius: var(--radius-lg);
    margin-top: 36px;
    border: 1px solid var(--border);
}

.google-reviews-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.google-logo-img { height: 26px; }

.google-stars {
    font-size: 1.5rem;
    color: #f59e0b;
    letter-spacing: 2px;
}

.google-reviews-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 400;
}

/* ===========================
   Clinic Information
   =========================== */

.clinic-info {
    padding: 96px 32px;
    background: var(--bg-warm);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1140px;
    margin: 0 auto;
}

.info-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--border);
}

.info-card h3 {
    font-family: var(--font-display);
    color: var(--text);
    margin-bottom: 16px;
    font-size: 1.3rem;
    font-weight: 400;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.info-card-content { margin-top: 12px; }

.info-card-content p {
    color: var(--text-secondary);
    padding: 6px 0 6px 16px;
    font-size: 0.88rem;
    font-weight: 400;
    position: relative;
}

.info-card-content p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

.info-card-subtitle {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 600;
}

.timing-table {
    background: var(--bg-warm);
    padding: 12px;
    border-radius: var(--radius-sm);
}

.timing-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 10px;
    border-bottom: 1px solid var(--border);
}
.timing-row:last-child { border-bottom: none; }

.timing-row--sunday {
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    margin-top: 2px;
}

.timing-day {
    font-weight: 600;
    color: var(--text);
    font-size: 0.84rem;
}

.timing-hours {
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 400;
}

.timing-hours--sunday { font-weight: 600; }
.closed { color: var(--closed); font-weight: 600; }

/* ===========================
   Booking
   =========================== */

.booking-section {
    background: var(--bg);
    padding: 96px 32px;
}

.booking-container {
    max-width: 820px;
    margin: 0 auto;
}

.booking-notice {
    background: #fef2f2;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 28px;
    text-align: center;
    border: 1px solid #fecaca;
}

.booking-notice-text {
    color: var(--closed);
    font-weight: 600;
    font-size: 0.88rem;
}

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

.booking-card {
    background: var(--bg-warm);
    padding: 32px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.booking-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.booking-card-title {
    font-family: var(--font-display);
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 400;
}

.booking-card-text {
    color: var(--text-secondary);
    margin-bottom: 22px;
    font-size: 0.84rem;
    line-height: 1.6;
    font-weight: 400;
}

.booking-card-note {
    color: var(--text-muted);
    font-size: 0.76rem;
    margin-top: 14px;
    font-weight: 400;
}

.booking-info {
    margin-top: 28px;
    padding: 24px;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
}

.booking-info-title {
    color: var(--text);
    margin-bottom: 14px;
    font-size: 0.92rem;
    font-weight: 600;
}

.booking-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    text-align: left;
    max-width: 520px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 400;
}

/* ===========================
   Map
   =========================== */

.map-section {
    background: var(--bg-warm);
    padding: 80px 32px;
    text-align: center;
}

.map-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 36px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.address-details {
    text-align: left;
    margin: 20px 0;
    padding: 22px;
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

.address-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    font-weight: 400;
}

.address-title {
    font-family: var(--font-display);
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 400;
}

.address-landmark { margin-top: 10px; }

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dark);
    color: white;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    font-family: var(--font-body);
    transition: all 0.2s ease;
    margin-top: 8px;
}

.map-btn:hover {
    background: var(--dark-surface);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ===========================
   Contact
   =========================== */

.contact {
    padding: 96px 32px;
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-warm);
    padding: 36px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent);
}

.contact-card h3 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.contact-card a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
}

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

.contact-card-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 8px;
    font-weight: 400;
}

/* ===========================
   Footer — Rich Institutional
   =========================== */

footer {
    background: var(--dark);
    color: white;
    padding: 56px 32px 28px;
}

.footer-content {
    max-width: 1140px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-logo-icon { opacity: 0.5; }

.footer-tagline {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.86rem;
    margin-bottom: 18px;
    line-height: 1.5;
}

.footer-phone,
.footer-email {
    margin-bottom: 6px;
}

.footer-phone a,
.footer-email a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-phone a:hover,
.footer-email a:hover {
    color: white;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.75);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.84rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-hours {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.84rem;
    font-weight: 600;
    margin-top: 8px;
}

.footer-hours:first-of-type { margin-top: 0; }

.footer-hours-detail {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
    margin-top: 2px;
}

.footer-closed {
    color: rgba(220, 38, 38, 0.65);
    margin-top: 10px;
}

.footer-appt-title {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 22px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.75);
}

.footer-appt-number a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.footer-appt-number a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    text-align: center;
}

.footer-copyright {
    opacity: 0.45;
    font-size: 0.8rem;
    font-weight: 400;
}

.footer-attribution {
    margin-top: 6px;
    opacity: 0.25;
    font-size: 0.76rem;
    font-weight: 400;
}

/* ===========================
   Animations — Scroll Reveal
   =========================== */

.fade-in-section {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.services-grid .service-card,
.contact-grid .contact-card {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.services-grid.visible .service-card,
.contact-grid.visible .contact-card {
    opacity: 1;
    transform: translateY(0);
}

.services-grid.visible .service-card:nth-child(1),
.contact-grid.visible .contact-card:nth-child(1) { transition-delay: 0.05s; }
.services-grid.visible .service-card:nth-child(2),
.contact-grid.visible .contact-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid.visible .service-card:nth-child(3),
.contact-grid.visible .contact-card:nth-child(3) { transition-delay: 0.15s; }
.services-grid.visible .service-card:nth-child(4) { transition-delay: 0.2s; }
.services-grid.visible .service-card:nth-child(5) { transition-delay: 0.25s; }
.services-grid.visible .service-card:nth-child(6) { transition-delay: 0.3s; }

/* ===========================
   Back to Top
   =========================== */

.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease;
    z-index: 998;
    font-family: var(--font-body);
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--dark-surface); }
.back-to-top:active { transform: scale(0.93); }

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

@media (max-width: 768px) {
    .hero { padding: 48px 20px 56px; }

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

    .hero-visual { order: -1; }

    .hero-photo {
        width: 200px;
        height: 240px;
        margin: 0 auto;
    }

    .hero h1 { font-size: 2.6rem; }

    .hero-tagline {
        font-size: 0.72rem;
        letter-spacing: 0.15em;
    }

    .hero-stats { justify-content: center; }
    .stat { padding: 0 20px; }
    .stat-value { font-size: 2rem; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn { width: 100%; justify-content: center; }

    .header-nav { display: none; }

    .section-title { font-size: 1.9rem; }

    .services-grid { grid-template-columns: 1fr; }

    .about-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .doctor-details .section-title { text-align: center; }
    .doctor-details .section-title::after { margin: 18px auto 0; }
    .doctor-role { text-align: center; }
    .doctor-name-about { text-align: center; }
    .about-photo { margin: 0 auto; display: block; max-width: 280px; }
    .credentials { text-align: left; }

    .booking-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    .services, .about-doctor, .clinic-info,
    .booking-section, .contact { padding: 72px 20px; }

    .google-reviews, .map-section { padding: 64px 20px; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .strip-inner { gap: 12px; }
    .strip-item { font-size: 0.72rem; }
}

@media (max-width: 480px) {
    .header-content {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        padding: 0 16px;
    }

    .logo { font-size: 1.05rem; }
    .status-text { font-size: 0.72rem; }
    .status-badge { padding: 6px 14px; }

    .hero { padding: 36px 16px 48px; }
    .hero h1 { font-size: 2.1rem; }
    .hero-credentials { font-size: 0.9rem; }

    .hero-photo {
        width: 160px;
        height: 200px;
    }

    .stat-value { font-size: 1.7rem; }
    .stat { padding: 0 16px; }
    .stat-divider { height: 36px; }

    .section-title { font-size: 1.6rem; }

    .services, .about-doctor, .clinic-info,
    .booking-section, .contact { padding: 56px 16px; }

    .google-reviews, .map-section { padding: 52px 16px; }

    .google-reviews-card { padding: 28px 20px; }
    .map-card { padding: 24px 16px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .specialties-strip { padding: 14px 16px; }
    .strip-item { font-size: 0.68rem; letter-spacing: 0.04em; }
    .strip-dot { width: 3px; height: 3px; }
    .strip-inner { gap: 8px; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
