/* =========================================================
   MEDICURE Hospital — Main Stylesheet
   Premium, clean, mobile-first design system
   ========================================================= */

:root {
    --primary: #1849A2;
    --secondary: #008DC1;
    --deep-blue: #00588C;
    --light-blue: #88C0DF;
    --bg-light: #F5FAFD;
    --white: #FFFFFF;
    --text: #172033;
    --text-muted: #667085;
    --emergency: #DC2626;
    --border: #E5EDF5;
    --shadow-sm: 0 2px 8px rgba(23, 32, 51, 0.05);
    --shadow-md: 0 8px 24px rgba(23, 32, 51, 0.08);
    --shadow-lg: 0 20px 48px rgba(23, 32, 51, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --transition: 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 600;
}

p {
    color: var(--text-muted);
}

/* ---------- Layout primitives ---------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 88px 0;
    position: relative;
}

.section-sm {
    padding: 56px 0;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 14px;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-header p {
    margin-top: 14px;
    font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform var(--transition), box-shadow var(--transition),
        background var(--transition), color var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--deep-blue);
    box-shadow: 0 10px 24px rgba(24, 73, 162, 0.28);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text);
    padding: 12px 18px;
}

.btn-ghost:hover {
    color: var(--primary);
}

.btn-emergency {
    background: var(--emergency);
    color: var(--white);
}

.btn-emergency:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.32);
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition), color var(--transition);
}

.btn-arrow:hover {
    gap: 12px;
    color: var(--deep-blue);
}

/* ---------- Top Bar ---------- */
.topbar {
    background: var(--deep-blue);
    color: var(--white);
    font-size: 0.85rem;
    padding: 10px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar-item svg {
    width: 16px;
    height: 16px;
}

.topbar a:hover {
    color: var(--light-blue);
}

/* ---------- Header / Navigation ---------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

.logo img {
    height: 56px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-menu a {
    display: inline-block;
    padding: 10px 14px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: var(--bg-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.emergency-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(220, 38, 38, 0.08);
    color: var(--emergency);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.emergency-pill svg {
    width: 16px;
    height: 16px;
}

.emergency-pill:hover {
    background: var(--emergency);
    color: var(--white);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-light);
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    position: relative;
    border-radius: 2px;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition);
}

.nav-toggle span::before {
    top: -7px;
}

.nav-toggle span::after {
    top: 7px;
}

.nav-toggle.open span {
    background: transparent;
}

.nav-toggle.open span::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Mobile Drawer ---------- */
.mobile-drawer {
    position: fixed;
    inset: 0;
    background: rgba(23, 32, 51, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 200;
}

.mobile-drawer.open {
    opacity: 1;
    visibility: visible;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 86vw);
    height: 100%;
    background: var(--white);
    padding: 28px 24px;
    transform: translateX(100%);
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-drawer.open .drawer-panel {
    transform: translateX(0);
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.drawer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drawer-menu a {
    display: block;
    padding: 14px 12px;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 10px;
    color: var(--text);
}

.drawer-menu a.active,
.drawer-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.drawer-foot {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- Sticky Mobile Action Bar ---------- */
.sticky-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    z-index: 90;
    padding: 10px 12px;
    gap: 8px;
    box-shadow: 0 -10px 24px rgba(23, 32, 51, 0.08);
}

.sticky-action-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.82rem;
}

.sticky-action-bar a svg {
    width: 16px;
    height: 16px;
}

.sticky-action-bar .call-btn {
    background: var(--bg-light);
    color: var(--primary);
}

.sticky-action-bar .wa-btn {
    background: #25D366;
    color: var(--white);
}

.sticky-action-bar .appt-btn {
    background: var(--primary);
    color: var(--white);
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
}

.hero::before {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--light-blue), transparent 70%);
    top: -120px;
    right: -120px;
}

.hero::after {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, var(--secondary), transparent 70%);
    bottom: -100px;
    left: -100px;
    opacity: 0.18;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    margin-bottom: 22px;
}

.hero-text h1 .accent {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.08rem;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
    background: var(--bg-light);
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-decor {
    position: absolute;
    border-radius: 24px;
    z-index: -1;
}

.hero-decor.one {
    width: 240px;
    height: 240px;
    background: var(--light-blue);
    opacity: 0.45;
    top: -28px;
    right: -28px;
}

.hero-decor.two {
    width: 180px;
    height: 180px;
    background: var(--primary);
    opacity: 0.1;
    bottom: -28px;
    left: -28px;
}

.hero-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--white);
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 260px;
}

.hero-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-badge-text strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.hero-badge-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ---------- Quick Actions ---------- */
.quick-actions {
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

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

.quick-card {
    background: var(--white);
    padding: 26px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition),
        border-color var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--light-blue);
}

.quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--bg-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-card h3 {
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.quick-card p {
    font-size: 0.86rem;
    margin: 0;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 5 / 4;
    box-shadow: var(--shadow-md);
    background: var(--bg-light);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h2 {
    margin-bottom: 18px;
}

.about-text > p {
    margin-bottom: 28px;
    font-size: 1.02rem;
}

.trust-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text);
    font-weight: 500;
}

.trust-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.trust-check svg {
    width: 14px;
    height: 14px;
}

/* ---------- Departments ---------- */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dept-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition),
        border-color var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dept-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--light-blue);
}

.dept-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--bg-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}

.dept-card:hover .dept-icon {
    background: var(--primary);
    color: var(--white);
}

.dept-icon svg {
    width: 28px;
    height: 28px;
}

.dept-card h3 {
    font-size: 1.12rem;
    margin-bottom: 0;
}

.dept-card p {
    font-size: 0.92rem;
    margin: 0;
    flex: 1;
}

.dept-arrow {
    margin-top: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Doctors ---------- */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 920px;
    margin: 0 auto;
}

.doctor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.doctor-photo {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-light);
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.doctor-name {
    font-size: 1.3rem;
    font-weight: 700;
}

.doctor-qual {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.doctor-dept {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    align-self: flex-start;
}

.doctor-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.doctor-actions .btn {
    padding: 11px 20px;
    font-size: 0.88rem;
}

/* ---------- Why Choose ---------- */
.why-section {
    background: var(--bg-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.why-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: left;
    transition: transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.why-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--bg-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

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

.why-card h3 {
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.why-card p {
    font-size: 0.92rem;
    margin: 0;
}

/* ---------- Visual Banner ---------- */
.visual-banner {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.visual-banner-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--deep-blue);
}

.visual-banner-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 88, 140, 0.85);
}

.visual-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.visual-banner-inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.visual-banner h2 {
    color: var(--white);
    margin-bottom: 18px;
}

.visual-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    height: 520px;
}

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

.gallery-grid .g-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    background: var(--bg-light);
}

.gallery-grid .g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.gallery-grid .g-item:hover img {
    transform: scale(1.06);
}

.gallery-grid .g-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.25));
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-grid .g-item:hover::after {
    opacity: 1;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(23, 32, 51, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    padding: 24px;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: min(960px, 90vw);
    max-height: 86vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
    background: var(--white);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: background var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
    top: 24px;
    right: 24px;
}

.lightbox-prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    background: rgba(0, 0, 0, 0.35);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
}

/* ---------- Appointment CTA ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-buttons .btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* ---------- Blog ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-thumb {
    aspect-ratio: 16 / 10;
    background: var(--bg-light);
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.blog-cat {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    align-self: flex-start;
}

.blog-card h3 {
    font-size: 1.1rem;
    line-height: 1.35;
    margin: 0;
}

.blog-card p {
    font-size: 0.92rem;
    margin: 0;
    flex: 1;
}

.blog-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 4px;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
}

.contact-list {
    list-style: none;
    margin: 24px 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.contact-list strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-list span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.map-wrap {
    margin-top: 32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-light);
    position: relative;
    border: 1px solid var(--border);
}

.map-wrap .map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
}

.map-wrap .map-placeholder svg {
    width: 36px;
    height: 36px;
    color: var(--primary);
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Forms ---------- */
.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

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

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(24, 73, 162, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.form-submit {
    width: 100%;
    margin-top: 8px;
}

.form-success {
    background: rgba(24, 73, 162, 0.08);
    color: var(--primary);
    border-radius: 12px;
    padding: 16px;
    font-weight: 500;
    display: none;
    margin-top: 14px;
}

.form-success.visible {
    display: block;
}

.form-error {
    color: var(--emergency);
    font-size: 0.82rem;
    margin-top: 4px;
    display: none;
}

.form-error.visible {
    display: block;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #0F1B33;
    color: rgba(255, 255, 255, 0.78);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 56px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 18px;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--light-blue);
}

.footer-brand img {
    height: 52px;
    margin-bottom: 16px;
    background: var(--white);
    padding: 6px 10px;
    border-radius: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    margin-bottom: 18px;
    max-width: 280px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .footer-links {
    display: flex;
    gap: 22px;
}

.footer-bottom .footer-links a:hover {
    color: var(--light-blue);
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 14px;
}

.page-hero p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

/* ---------- FAQ (About page) ---------- */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--text);
    padding: 4px 0;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms ease;
    color: var(--text-muted);
}

.faq-item.open .faq-answer {
    max-height: 320px;
    padding-top: 12px;
}

/* ---------- Doctor detail page ---------- */
.doctor-detail {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: flex-start;
}

.doctor-detail-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--bg-light);
    box-shadow: var(--shadow-md);
}

.doctor-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0 18px;
}

.doctor-meta span {
    padding: 6px 14px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.detail-section {
    margin: 28px 0;
}

.detail-section h3 {
    margin-bottom: 10px;
    color: var(--text);
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-section ul li {
    padding-left: 26px;
    position: relative;
    color: var(--text-muted);
}

.detail-section ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.doctor-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* ---------- Placeholder image ---------- */
.ph {
    background: linear-gradient(135deg, #E5F0F8 0%, #D6E8F2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
}

.ph svg {
    width: 28px;
    height: 28px;
    opacity: 0.6;
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Utility ---------- */
.text-center {
    text-align: center;
}

.mt-24 {
    margin-top: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}