/* ==========================================================================
   Nouvelle Clinique Du Nord — Official Design System (V1.3.1)
   Brand Guide: NCdN_logo guidelines.pdf (Feb 2024)
   Colors: Navy (#274052), Official Red (#ED3237 / #A91C30), Ice Blue (#E1EDF3)
   ========================================================================== */

:root {
    --brand-navy: #274052;
    --brand-navy-dark: #192b37;
    --brand-navy-light: #37546a;
    --brand-red: #ED3237;
    --brand-red-hover: #d22227;
    --brand-red-deep: #A91C30;
    --brand-red-soft: rgba(237, 50, 55, 0.08);
    --brand-blue-surface: #E1EDF3;
    --brand-blue-subtle: #F0F6F9;
    --brand-blue-border: #D2E2EA;
    --text-primary: #274052;
    --text-muted: #566E7F;
    --text-subtle: #7A909F;
    --bg-white: #FFFFFF;
    --bg-surface: #F8FAFC;
    --border-light: #E2EBF0;
    --border-card: #DCE6EC;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --shadow-sm: 0 2px 8px rgba(39, 64, 82, 0.04);
    --shadow-md: 0 8px 24px -4px rgba(39, 64, 82, 0.08);
    --shadow-lg: 0 16px 36px -8px rgba(39, 64, 82, 0.12);
    --shadow-hover: 0 20px 42px -10px rgba(39, 64, 82, 0.14);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    color: var(--text-primary);
    background: var(--bg-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    transition: color var(--ease-out) 0.2s;
}

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

figure {
    margin: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Top Utility Bar & Skip Link
   -------------------------------------------------------------------------- */
.skip {
    position: absolute;
    top: -120px;
    left: 20px;
    background: var(--brand-red);
    color: #fff;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    z-index: 1000;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: top 0.2s ease;
}

.skip:focus {
    top: 16px;
}

.top-bar {
    background: var(--brand-navy-dark);
    color: #d1dde3;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 9px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.top-bar-contacts {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d8e5ec;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

.top-bar-item svg {
    color: var(--brand-red);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.top-bar-item:hover {
    color: #ffffff;
}

.top-bar-item:hover svg {
    transform: scale(1.12);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-emergency a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 4px 11px;
    border-radius: 4px;
    background: rgba(237, 50, 55, 0.16);
    border: 1px solid rgba(237, 50, 55, 0.4);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.top-bar-emergency a svg {
    color: var(--brand-red);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.top-bar-emergency a strong {
    font-weight: 700;
    color: #ffffff;
}

.top-bar-emergency a:hover,
.top-bar-emergency a:focus-visible {
    color: #ffffff;
    background: var(--brand-red);
    border-color: var(--brand-red);
    box-shadow: 0 2px 10px rgba(237, 50, 55, 0.4);
    transform: translateY(-1px);
}

.top-bar-emergency a:hover svg,
.top-bar-emergency a:focus-visible svg {
    color: #ffffff;
    transform: scale(1.15);
}

.top-bar-facebook {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    color: #d1dde3;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: all 0.2s ease;
}

.top-bar-facebook svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.top-bar-facebook:hover,
.top-bar-facebook:focus-visible {
    color: #ffffff;
    background: #1877f2;
    border-color: #1877f2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.35);
}

.top-bar-facebook:hover svg,
.top-bar-facebook:focus-visible svg {
    transform: scale(1.1);
}

.review-banner {
    background: #192834;
    color: #d1dde3;
    text-align: center;
    padding: 10px 24px;
    font-size: 12.5px;
    letter-spacing: 0.3px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.review-banner a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.2s ease;
}

.review-banner a:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* --------------------------------------------------------------------------
   Layout Containers
   -------------------------------------------------------------------------- */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 32px;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 12px rgba(39, 64, 82, 0.04);
}

header {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.brand img {
    width: 230px;
    height: auto;
    max-width: none;
    transition: transform 0.2s ease;
}

.brand:hover img {
    transform: scale(1.01);
}

nav {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

nav a {
    text-decoration: none;
    color: var(--brand-navy);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

nav a:not(.button):hover {
    color: var(--brand-red-deep);
    background: rgba(39, 64, 82, 0.05);
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-navy);
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-toggle::before {
    content: "☰";
    font-size: 15px;
    line-height: 1;
}

.menu-toggle[aria-expanded="true"]::before {
    content: "✕";
}

.menu-toggle:hover {
    background: var(--brand-blue-subtle);
    border-color: var(--brand-navy);
}

/* --------------------------------------------------------------------------
   Typography & Eyebrows
   -------------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-red-deep);
    background: var(--brand-red-soft);
    padding: 6px 14px;
    border-radius: 999px;
    margin: 0 0 18px;
    border: 1px solid rgba(169, 28, 48, 0.12);
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-red);
    display: inline-block;
}

h1, h2, h3 {
    color: var(--brand-navy);
    line-height: 1.2;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(38px, 4.6vw, 60px);
    font-weight: 700;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 700;
}

h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.lead {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 0 20px;
}

.muted {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Buttons & Links
   -------------------------------------------------------------------------- */
.actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-red);
    color: #fff;
    text-decoration: none;
    padding: 13px 26px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(237, 50, 55, 0.28);
    transition: all var(--ease-out) 0.2s;
    border: none;
    cursor: pointer;
}

.button:hover {
    background: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 50, 55, 0.38);
    color: #fff;
    text-decoration: none;
}

.button:active {
    transform: translateY(0);
}

.button span {
    margin-left: 10px;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.button:hover span {
    transform: translateX(3px);
}

.small {
    padding: 9px 18px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.text-link {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--brand-navy);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: rgba(39, 64, 82, 0.05);
    border: 1px solid rgba(39, 64, 82, 0.12);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.text-link:hover {
    background: rgba(39, 64, 82, 0.1);
    color: var(--brand-navy-dark);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
    padding-top: 54px;
    padding-bottom: 54px;
}

.hero .eyebrow {
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(30px, 3.8vw, 48px);
    font-weight: 700;
    line-height: 1.18;
    color: var(--brand-navy);
    letter-spacing: -0.025em;
    margin: 0 0 14px;
}

.tagline {
    font-size: 20px;
    font-weight: 600;
    color: var(--brand-red);
    letter-spacing: -0.01em;
    margin: 0 0 18px;
}

.hero figure {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero figure:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.hero img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

figcaption {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 12px 20px;
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

figcaption::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-red);
    display: inline-block;
}

/* --------------------------------------------------------------------------
   Dr Mike Feature Section
   -------------------------------------------------------------------------- */
.feature,
.feature.wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 56px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-md);
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
}

@media (max-width: 1240px) {
    .feature.wrap {
        width: calc(100% - 48px);
    }
}

.doctor img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 4px solid #ffffff;
    outline: 1px solid var(--border-card);
}

.doctor h2 {
    font-size: clamp(30px, 3.4vw, 42px);
    line-height: 1.15;
    margin-bottom: 12px;
}

.doctor .lead {
    font-size: 18px;
    font-weight: 500;
    color: var(--brand-red-deep);
    margin: 8px 0 16px;
}

.doctor p {
    margin: 12px 0;
    color: var(--text-muted);
}

.doctor-actions {
    margin-top: 22px;
}

.doctor .muted {
    background: var(--brand-blue-subtle);
    border-left: 3px solid var(--brand-navy);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 18px;
    font-size: 13px;
    margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services {
    background: var(--brand-blue-surface);
    border-top: 1px solid var(--brand-blue-border);
    border-bottom: 1px solid var(--brand-blue-border);
}

.services .wrap {
    padding-top: 72px;
    padding-bottom: 72px;
}

.section-note {
    max-width: 680px;
    font-size: 16px;
    color: var(--text-muted);
    margin: 0 0 36px;
    line-height: 1.6;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 32px;
}

.service-list article {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: all var(--ease-out) 0.25s;
    position: relative;
}

.service-list article:hover {
    transform: translateY(-4px);
    border-color: #cbdce4;
    box-shadow: 0 14px 32px -6px rgba(39, 64, 82, 0.12), 0 0 0 1px rgba(237, 50, 55, 0.16);
}

.service-list article > span {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-navy);
    background: rgba(39, 64, 82, 0.05);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(39, 64, 82, 0.08);
    transition: all 0.2s ease;
}

.service-list article:hover > span {
    background: var(--brand-red);
    color: #ffffff;
    border-color: var(--brand-red);
}

.service-list h3 {
    font-size: 18.5px;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0 0 8px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.service-list p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Videos Section
   -------------------------------------------------------------------------- */
.videos {
    padding-top: 72px;
    padding-bottom: 72px;
}

.videos > p:not(.eyebrow):not(.muted) {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 0 28px;
}

.videos .muted {
    margin-top: 24px;
}

/* Featured Welcome Video */
.featured-video {
    background: #ffffff;
    border: 1px solid var(--brand-blue-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 32px 0 36px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-video:hover {
    box-shadow: var(--shadow-hover);
}

.featured-video.is-unpublished {
    display: grid;
    grid-template-columns: 380px 1fr;
}

.featured-video.is-published {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.featured-video .video-media {
    height: 100%;
    min-height: 260px;
    background: var(--brand-blue-surface);
    overflow: hidden;
    position: relative;
}

.featured-video .video-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-video:hover .video-media img {
    transform: scale(1.02);
}

.featured-video .video-body {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-video .video-number {
    display: inline-flex;
    align-items: center;
    background: var(--brand-red-soft);
    color: var(--brand-red);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 999px;
    width: fit-content;
    margin: 0 0 14px;
}

.featured-video .video-body h3 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 14px;
}

.featured-video .video-body p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 20px;
}

.featured-video .video-status {
    background: var(--brand-blue-subtle);
    color: var(--brand-navy);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-card);
    width: fit-content;
    margin: 0;
}

/* Video Grid for 10 Service Videos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 24px 0 36px;
}

.video-card {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--ease-out) 0.2s;
    min-width: 0;
}

.video-card:hover {
    transform: translateY(-2px);
    border-color: #cbdce4;
    box-shadow: var(--shadow-md);
}

.video-card.is-unpublished {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    padding: 16px;
    gap: 18px;
    align-items: start;
}

.is-unpublished .video-media {
    width: 110px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--brand-blue-subtle);
    flex-shrink: 0;
}

.is-unpublished .video-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.is-unpublished .video-body {
    padding: 0;
}

.video-number {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px;
}

.is-unpublished .video-body h3 {
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.is-unpublished .video-body > p:not(.video-number):not(.video-status) {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.video-status {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-red-deep);
    background: var(--brand-red-soft);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin: 0;
}

/* Published Video State */
.is-published .video-media {
    min-height: 220px;
}

.is-published .video-media iframe {
    border: 0;
    width: 100%;
    height: 100%;
}

.is-published .video-body {
    padding: 22px;
}

.video-body .button {
    margin: 14px 0 8px;
}

.video-body a {
    font-size: 13.5px;
    color: var(--brand-navy);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Contact Section & Plan Your Visit Form
   -------------------------------------------------------------------------- */
.contact {
    background: #ffffff;
    border-top: 1px solid var(--border-light);
}

.contact .wrap {
    background: linear-gradient(135deg, #EBF3F7 0%, #F5F9FB 100%);
    border: 1px solid var(--brand-blue-border);
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    box-shadow: var(--shadow-sm);
    margin-top: 36px;
    margin-bottom: 36px;
}

@media (max-width: 1240px) {
    .contact .wrap {
        width: calc(100% - 48px);
    }
}

@media (max-width: 768px) {
    .contact .wrap {
        width: calc(100% - 32px);
        padding: 32px 20px;
    }
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 52px;
    align-items: start;
}

@media (max-width: 960px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

.contact-info h2 {
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.15;
    margin: 14px 0 18px;
}

.contact-info .lead {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.contact-map {
    width: 100%;
    margin: 20px 0 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-card);
    line-height: 0;
    background: #eef2f5;
}

.contact-map iframe {
    width: 100%;
    height: 320px;
    display: block;
    border: 0;
}

@media (max-width: 600px) {
    .contact-map iframe {
        height: 260px;
    }
}

#contact-pending {
    background: #ffffff;
    border-left: 3px solid var(--brand-red);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 20px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--brand-navy);
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
    max-width: 600px;
}

#contact-details p {
    font-size: 15px;
    margin: 10px 0;
}

#contact-details a {
    color: var(--brand-red-deep);
    font-weight: 600;
    text-decoration: underline;
}

/* Visit Form Styling */
.contact-form-container {
    width: 100%;
}

.visit-form {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-md);
}

.visit-form h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0 0 6px;
}

.form-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 24px;
    line-height: 1.5;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .visit-form {
        padding: 24px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-navy);
}

.form-group .required {
    color: var(--brand-red);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    padding: 11px 14px;
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--brand-navy);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-subtle);
    opacity: 0.8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--brand-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(237, 50, 55, 0.12);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.visit-form .button {
    width: 100%;
    margin-top: 8px;
    padding: 13px 20px;
    font-size: 14.5px;
}

.form-success {
    margin-top: 16px;
    padding: 14px 16px;
    background: #eef7f0;
    border-left: 3px solid #28a745;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13.5px;
    color: #155724;
    font-weight: 600;
}

.form-disclaimer {
    margin: 16px 0 0;
    color: var(--text-subtle);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Footer (4-Column Layout)
   -------------------------------------------------------------------------- */
.site-footer,
footer {
    background: var(--brand-navy-dark);
    color: #d1dde3;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 48px;
    width: 100%;
}

.footer-wrap {
    padding-top: 48px;
    padding-bottom: 18px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr 1.05fr 1.15fr;
    gap: 40px;
    margin-bottom: 28px;
}

@media (max-width: 1080px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 32px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

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

.footer-logo {
    display: inline-block;
    background: #ffffff;
    /* padding: 8px 14px; */
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
    width: fit-content;
    line-height: 0;
    transition: transform 0.2s ease;
}

.footer-logo:hover {
    transform: scale(1.02);
}

.footer-logo img {
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgb(203, 203, 203), 0 6px 20px 0 rgba(255, 255, 255, 0.79);
    width: 190px;
    height: auto;
}

.footer-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}

.footer-tagline {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-red);
    margin: 0 0 14px;
}

.footer-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a4c0cf;
    font-size: 13.5px;
    margin: 0;
}

.footer-address svg {
    color: var(--brand-red);
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #d1dde3;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social-link svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    color: #ffffff;
    background: #1877f2;
    border-color: #1877f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}

.footer-social-link:hover svg,
.footer-social-link:focus-visible svg {
    transform: scale(1.08);
}

.footer-heading {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--brand-red);
    border-radius: 2px;
}

.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: #a4cbe0;
    text-decoration: none;
    font-size: 13.5px;
    display: inline-block;
    transition: all 0.2s ease;
}

.footer-nav a:hover {
    color: #ffffff;
    transform: translateX(3px);
    text-decoration: none;
}

.footer-contact-details p {
    margin: 0 0 12px;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a4cbe0;
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s ease;
}

.footer-contact-link svg {
    color: var(--brand-red);
    flex-shrink: 0;
}

.footer-contact-link:hover {
    color: #ffffff;
}

#footer-contacts p {
    margin: 6px 0;
    font-size: 13.5px;
    color: #a4cbe0;
}

#social-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
}

#social-links a {
    color: #a4cbe0;
    font-size: 13px;
    text-decoration: none;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    transition: all 0.2s ease;
}

#social-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.footer-cta-wrapper {
    margin-top: 18px;
}

.footer-cta-wrapper .button {
    font-size: 12.5px;
    padding: 9px 16px;
}

/* Footer Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #8da6b5;
    flex-wrap: wrap;
}

.footer-copyright-line {
    margin: 0;
    font-size: 12.5px;
    color: #8da6b5;
}

.footer-bottom a {
    color: #a4cbe0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.privacy {
    margin: 0;
    padding: 0;
    border: none;
}

.privacy summary {
    cursor: pointer;
    font-weight: 500;
    font-size: 12.5px;
    color: #a4cbe0;
    padding: 2px 0;
    outline: none;
    transition: color 0.2s ease;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.privacy summary::-webkit-details-marker {
    display: none;
}

.privacy summary::after {
    content: "▾";
    font-size: 10px;
    transition: transform 0.2s ease;
}

.privacy[open] summary::after {
    transform: rotate(180deg);
}

.privacy summary:hover {
    color: #ffffff;
}

.privacy[open] {
    flex-basis: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-content p {
    color: #9ab4c2;
    line-height: 1.6;
    max-width: 900px;
    margin: 8px 0;
    font-size: 12px;
}

[hidden] {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1050px) {
    .service-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        gap: 40px;
    }

    .feature {
        gap: 36px;
    }

    .featured-video.is-unpublished {
        grid-template-columns: 300px 1fr;
    }
}

@media (max-width: 820px) {
    .top-bar-wrap {
        padding: 8px 24px;
    }

    header {
        padding: 14px 24px;
        flex-wrap: wrap;
    }

    .brand img {
        width: 190px;
    }

    .js .menu-toggle {
        display: inline-flex;
    }

    .js nav:not(.open) {
        display: none;
    }

    .js nav.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding-top: 16px;
        border-top: 1px solid var(--border-light);
        gap: 6px;
    }

    .js nav.open a {
        padding: 10px 14px;
        background: var(--brand-blue-subtle);
    }

    .js nav.open .button {
        margin-top: 8px;
        text-align: center;
    }

    .wrap {
        padding: 48px 24px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .hero figure {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

    .hero img {
        height: 320px;
    }

    .feature,
    .feature.wrap {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        text-align: left;
        gap: 28px;
        width: calc(100% - 32px);
    }

    .doctor img {
        max-width: 220px;
        margin: 0;
    }

    .featured-video.is-unpublished,
    .featured-video.is-published {
        grid-template-columns: 1fr;
    }

    .featured-video .video-media {
        min-height: 220px;
        height: 220px;
    }

    .featured-video .video-body {
        padding: 24px;
    }

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

    .contact .wrap {
        padding: 36px 24px;
    }

    .footer-wrap {
        padding-top: 48px;
        padding-bottom: 32px;
    }
}

@media (max-width: 580px) {
    .top-bar-wrap {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
    }

    .top-bar-contacts {
        justify-content: center;
        gap: 12px 18px;
        font-size: 12px;
    }

    .top-bar-right {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .top-bar-emergency a {
        font-size: 11.5px;
        padding: 4px 10px;
    }

    .top-bar-facebook {
        width: 26px;
        height: 26px;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .hero-subtitle {
        font-size: 26px;
    }

    .tagline {
        font-size: 17px;
    }

    .video-card.is-unpublished {
        grid-template-columns: 90px 1fr;
        gap: 14px;
        padding: 14px;
    }

    .is-unpublished .video-media {
        width: 90px;
        height: 90px;
    }

    .brand img {
        width: 175px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
