/*
Theme Name: Night Owl Sleep Medicine Theme - Demo 3 (Smilehaus Style)
Theme URI: https://nightowlsleep.com/
Author: Antigravity
Author URI: https://github.com/google-deepmind
Description: A premium, minimalist theme inspired by Smilehaus Dental, featuring Cormorant Garamond headings, clean borders, and vibrant orange CTAs.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: night-owl-theme-v3
*/

/* CSS Variables & Design System — Night Owl Brand Guide Colors */
:root {
    /* === Official Night Owl Brand Palette === */
    --brand-navy:       #4C5F75;   /* Primary Dark Navy (darkest brand color) */
    --brand-steel:      #798EA5;   /* Medium Steel Blue */
    --brand-sky:        #A2BAC1;   /* Light Blue-Grey Accent */
    --brand-silver:     #CACDCC;   /* Subtle Silver-Grey */
    --brand-offwhite:   #F2F3F4;   /* Lightest / Background */

    /* === Semantic Tokens === */
    --primary-color:    #798EA5;   /* Steel Blue — links, highlights */
    --accent-color:     #4C5F75;   /* Navy — active states, borders */
    --cta-color:        #4C5F75;   /* Navy CTA — main buttons */
    --cta-hover:        #3a4d60;   /* Darker navy on hover */
    --dark-text:        #1e2d3d;   /* Deep navy-tinted dark text */
    --light-text:       #6b7f92;   /* Muted steel-blue text */
    --white:            #ffffff;
    --off-white:        #F2F3F4;   /* Brand off-white background */
    --border-color:     #d4dde5;   /* Hairline border (brand-tinted) */

    /* === Header & Footer Brand Colors === */
    --header-bg:        #4C5F75;   /* Dark Navy header background */
    --footer-bg:        #2e3f52;   /* Deeper navy footer (darker than header) */
    --footer-card-bg:   #3a4f65;   /* Slightly lighter card within footer */
    --announce-bg:      #798EA5;   /* Steel blue announcement bar */

    --font-heading: 'Josefin Sans', 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Poppins', 'Inter', Helvetica, Arial, sans-serif;
    --transition-speed: 0.3s;
    --cubic-bezier: cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background-color: var(--accent-color);
    color: var(--white);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--cubic-bezier);
}

a:hover {
    color: var(--dark-text);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-text);
    font-weight: 500;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    text-transform: capitalize;
}

h2 {
    font-size: 2.2rem;
    letter-spacing: 0.5px;
}

h3 {
    font-size: 1.6rem;
}

p {
    font-size: 1rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.text-white {
    color: var(--white) !important;
}

/* Buttons (Replicating Smilehaus Elementor Buttons) */
.btn {
    display: inline-block;
    padding: 18px 42px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-speed) var(--cubic-bezier);
    box-shadow: none;
}

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

.btn-primary:hover {
    background-color: var(--cta-hover);
    color: var(--dark-text) !important;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--cta-color) !important;
    border: 2px solid var(--cta-color);
    padding: 16px 40px;
}

.btn-secondary:hover {
    background-color: var(--cta-color);
    color: var(--white) !important;
}

.btn-outline {
    background-color: transparent;
    color: var(--white) !important;
    border: 2px solid var(--white);
    padding: 16px 40px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-text) !important;
}

.btn-text {
    font-family: var(--font-body);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: width var(--transition-speed);
}

.btn-text:hover::after {
    width: 0%;
}

.w-100 {
    width: 100%;
}

/* Announcement Bar — Brand Steel Blue (#798EA5) */
.announcement-bar {
    background-color: var(--announce-bg);  /* #798EA5 steel blue */
    color: var(--white);
    text-align: center;
    padding: 9px 20px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1001;
}

/* ============================================================
   HEADER — Night Owl Brand Navy #4C5F75
   ============================================================ */
.site-header {
    background-color: var(--header-bg);  /* Brand Navy #4C5F75 */
    border-bottom: none;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 6px 24px rgba(44, 62, 80, 0.45);
}

/* Three-column flex layout: left nav | center logo | right nav+btn */
.header-container {
    max-width: 1340px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 74px;
    gap: 20px;
}

/* Logo — centered column */
.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
}

.site-logo img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1); /* Force white logo on dark bg */
}

.site-logo span {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 1px;
    line-height: 1;
}

/* Left nav — justify to end so links sit near logo */
.site-nav--left {
    display: flex;
    justify-content: flex-end;
}

/* Right nav — justify to start so links sit near logo */
.site-nav--right {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.site-nav {
    display: flex;
    align-items: center;
}

/* Shared nav list styles */
.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: rgba(255,255,255,0.82);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.25s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--brand-sky);   /* #A2BAC1 light blue underline */
    transition: width 0.25s ease;
}

.nav-list a:hover {
    color: var(--white);
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list .current-menu-item > a {
    color: var(--white);
}

.nav-list .current-menu-item > a::after {
    width: 100%;
    background-color: var(--brand-sky);  /* #A2BAC1 active underline */
}

/* Patient Portal button — Brand sky-blue pill with white border on hover */
.portal-btn {
    background-color: transparent;
    color: var(--white) !important;
    border: 2px solid rgba(255,255,255,0.75);
    padding: 9px 22px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all var(--transition-speed) var(--cubic-bezier);
    white-space: nowrap;
    margin-left: 12px;
}

.portal-btn:hover {
    background-color: var(--white);
    color: var(--brand-navy) !important;  /* #4C5F75 on white hover */
    border-color: var(--white);
}

/* Mobile hamburger toggle — hidden on desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: all var(--transition-speed);
    display: block;
}

/* Mobile nav drawer — brand navy continuation */
.mobile-nav-drawer {
    display: none;
    background-color: var(--cta-hover);  /* slightly darker navy #3a4d60 */
    padding: 20px 30px 30px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.mobile-nav-drawer.open {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mobile-nav-list a {
    color: rgba(255,255,255,0.85);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: block;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.2s;
}

.mobile-nav-list a:hover {
    color: var(--cta-color);
}

.mobile-nav-list .portal-btn {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
    display: inline-block;
}

/* Hero Section with Video Background */
.hero-video-section {
    position: relative;
    height: 85vh;
    min-height: 580px;
    /* Deep night blue gradient fallback if video doesn't load */
    background: linear-gradient(135deg, #05071a 0%, #0c1445 40%, #1a0a2e 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-video-container iframe {
    width: 100vw;
    height: 56.25vw; /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 Aspect Ratio */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle directional gradient: lighter at top for stars to show, darker at bottom for text readability */
    background: linear-gradient(
        to bottom,
        rgba(5, 7, 26, 0.25) 0%,
        rgba(5, 7, 26, 0.40) 50%,
        rgba(5, 7, 26, 0.70) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

.hero-content .btn {
    margin-top: 30px;
}

/* Content Sections (Smilehaus Style) */
.section-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    margin-bottom: 24px;
    font-weight: 500;
}

/* Hairline Divider */
.hairline-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0;
}

/* Welcome Section */
.welcome-section {
    padding: 100px 40px;
}

.welcome-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;   /* Image gets MORE space than text */
    gap: 80px;
    align-items: center;
}

.welcome-img-wrapper {
    position: relative;
    width: 100%;
    min-height: 480px;
    border-radius: 20px;
    overflow: hidden;
    /* Light brand-tinted background so illustration looks great */
    background: linear-gradient(145deg, #eef2f6 0%, #dce8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 24px 64px rgba(76, 95, 117, 0.16);
}

.welcome-img-wrapper img {
    width: 100%;
    height: auto;
    min-height: 420px;
    max-height: 560px;
    object-fit: contain;      /* Show full illustration — no cropping */
    object-position: center;
    display: block;
    padding: 20px;            /* Breathing room around illustration */
    transition: transform 0.5s ease;
}

.welcome-img-wrapper:hover img {
    transform: scale(1.03);   /* Subtle zoom on hover */
}

.welcome-content-wrapper {
    padding-left: 20px;
}


.welcome-signature {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 30px;
}

/* First Visit Section */
.first-visit-section {
    padding: 100px 40px;
    background-color: var(--off-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.first-visit-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.first-visit-left {
    position: sticky;
    top: 140px;
}

.first-visit-left .section-title {
    font-size: 2.8rem;
    line-height: 1.15;
}

.first-visit-right h3 {
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.first-visit-right p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 35px;
}

/* Unique Care Section */
.unique-section {
    padding: 100px 40px;
    text-align: center;
    background-color: var(--white);
}

.unique-container {
    max-width: 800px;
    margin: 0 auto;
}

.unique-container h3 {
    font-size: 2.4rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.unique-container p {
    font-size: 1.15rem;
    margin-bottom: 35px;
}

/* Our Doctors / Specialists Grid */
.doctors-section {
    padding: 100px 40px;
    border-top: 1px solid var(--border-color);
    background-color: var(--white);
}

.doctors-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.doctors-container .section-tagline {
    margin-bottom: 10px;
}

.doctors-container .section-title {
    margin-bottom: 60px;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-content: center;
}

.doctor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.doctor-img-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 25px;
    border: 2px solid var(--border-color);
}

.doctor-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--cubic-bezier);
}

.doctor-card:hover .doctor-img-circle img {
    transform: scale(1.08);
}

.doctor-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.doctor-card .doctor-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.doctor-card .doctor-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-text);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2px;
}

.doctor-card .doctor-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Reviews / Stories Section */
.stories-section {
    padding: 100px 40px;
    background-color: var(--off-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.stories-container {
    max-width: 900px;
    margin: 0 auto;
}

.stories-slider {
    margin-bottom: 40px;
}

.story-quote {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.4;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.story-author {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}

/* Subpage Hero */
.subpage-hero {
    background-color: var(--off-white);
    border-bottom: 1px solid var(--border-color);
    padding: 80px 40px;
}

.subpage-hero-container {
    max-width: 1240px;
    margin: 0 auto;
}

.subpage-title {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.subpage-subtitle {
    font-size: 1.15rem;
    max-width: 800px;
    margin-bottom: 0;
}

/* About Subpage Styles */
.philosophy-section, .bios-section {
    padding: 90px 40px;
}

.philosophy-container, .bios-container {
    max-width: 1200px;
    margin: 0 auto;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.philosophy-card {
    border: 1px solid var(--border-color);
    padding: 30px 24px;
    border-radius: 4px;
    background-color: var(--white);
    transition: all var(--transition-speed);
}

.philosophy-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.philosophy-card .card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.philosophy-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.philosophy-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.bios-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 40px;
}

.bio-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 50px;
}

.bio-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bio-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.bio-content h3 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.bio-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 20px;
}

.bio-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.bio-quote {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    border-left: 2px solid var(--primary-color);
    padding-left: 20px;
    color: var(--primary-color);
    margin-bottom: 0;
}

/* Services Subpage Styles */
.services-list-section {
    padding: 90px 40px;
}

.services-list-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.service-detail-item {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 60px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 80px;
    align-items: center;
}

.service-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-detail-content .service-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.service-detail-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-detail-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-detail-content ul {
    list-style: none;
    margin-bottom: 0;
}

.service-detail-content li {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.service-detail-content li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--cta-color);
    font-size: 0.85rem;
}

.service-detail-icon {
    font-size: 5rem;
    color: #eef2f5;
    text-align: center;
}

/* Patient Info Subpage Styles */
.info-content-section {
    padding: 90px 40px;
}

.info-content-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
}

.info-sidebar {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.info-sidebar h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-text);
    margin-bottom: 20px;
}

.info-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-sidebar a {
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 2px solid var(--border-color);
    padding-left: 15px;
    display: block;
    transition: all var(--transition-speed);
}

.info-sidebar a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.info-main-content {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.info-block h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-block h2 i {
    color: var(--primary-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.step-card {
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 4px;
}

.step-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.insurance-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.insurance-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.insurance-list i {
    color: var(--primary-color);
}

.pricing-note {
    background-color: var(--off-white);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 4px;
}

.pricing-note p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.new-patient-steps {
    margin-top: 20px;
    margin-left: 20px;
}

.new-patient-steps li {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--light-text);
}

.new-patient-steps a {
    text-decoration: underline;
    font-weight: 500;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

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

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.faq-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Contact Subpage Styles */
.contact-section-layout {
    padding: 90px 40px;
    max-width: 1240px;
    margin: 0 auto;
}

.contact-top-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 80px;
}

.contact-intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-subheading {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.contact-quick-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quick-link-item .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-text);
    font-weight: 600;
}

.quick-link-item a {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--dark-text);
    font-weight: 500;
}

.quick-link-item a:hover {
    color: var(--primary-color);
}

.contact-illustration-wrapper {
    max-width: 250px;
    opacity: 0.85;
}

/* Contact and Portal Forms (Styled like Smilehaus Forms) */
.contact-form-card, .portal-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 50px 40px;
    border-radius: 4px;
}

.contact-form-card h2, .portal-card h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.contact-form-card p, .portal-card p {
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.custom-contact-form, .portal-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-text);
}

.custom-contact-form input,
.custom-contact-form select,
.custom-contact-form textarea,
.portal-form input {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 4px;
    background-color: var(--white);
    color: var(--dark-text);
    transition: all var(--transition-speed);
}

.custom-contact-form input:focus,
.custom-contact-form select:focus,
.custom-contact-form textarea:focus,
.portal-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Submit Form Agreement Disclaimer Styling */
.form-disclaimer {
    font-size: 0.75rem;
    color: var(--light-text);
    line-height: 1.5;
    margin-top: -10px;
    margin-bottom: 5px;
}

.form-disclaimer a {
    text-decoration: underline;
    color: var(--light-text);
}

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

/* Contact Info Details Cards Grid */
.contact-info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.info-details-card {
    display: flex;
    align-items: center;
    gap: 25px;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 4px;
    background-color: var(--white);
}

.info-details-card .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.details-content .details-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.details-content h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    font-weight: 500;
}

.details-content p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.contact-full-map-wrapper {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Portal Landing Page Styles */
.portal-section-layout {
    padding: 90px 40px;
}

.portal-container-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.portal-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.forgot-pass {
    color: var(--primary-color);
}

.forgot-pass:hover {
    text-decoration: underline;
}

.registration-card hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 30px 0;
}

.portal-help h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.portal-help p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Footer Styles (Smilehaus Style Columns with maps in sidebar) */
/* ============================================================
   FOOTER — Night Owl Brand Colors
   Deep navy #2e3f52 background — brand-consistent with header
   ============================================================ */
.site-footer {
    background-color: var(--footer-bg);  /* Deep navy #2e3f52 */
    color: var(--white);
    padding: 80px 40px 40px 40px;
    border-top: 3px solid var(--brand-sky);  /* #A2BAC1 accent top border */
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(162, 186, 193, 0.2);  /* brand-sky divider */
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-brand-col p {
    color: var(--brand-sky);   /* #A2BAC1 — brand light blue for muted text */
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 0;
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--brand-silver);  /* #CACDCC — silver grey */
}

.footer-contact-item i {
    color: var(--brand-sky);    /* #A2BAC1 icons */
    font-size: 1.1rem;
    min-width: 18px;
}

.footer-contact-item a {
    color: var(--brand-silver);
    transition: color 0.2s;
}

.footer-contact-item a:hover {
    color: var(--white);
}

/* Footer Locations Column */
.footer-locations-col {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.footer-locations-col h3 {
    color: var(--brand-sky);   /* #A2BAC1 section headers */
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(162, 186, 193, 0.25);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.location-footer-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background-color: var(--footer-card-bg);  /* #3a4f65 — slightly lighter navy card */
    padding: 22px;
    border-radius: 6px;
    border: 1px solid rgba(162, 186, 193, 0.15);
    transition: border-color 0.2s;
}

.location-footer-card:hover {
    border-color: rgba(162, 186, 193, 0.45);
}

.location-footer-card h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-body);
}

.location-footer-card p {
    color: var(--brand-sky);   /* #A2BAC1 */
    font-size: 0.84rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.location-footer-card .map-mini-wrapper {
    width: 100%;
    height: 140px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(162, 186, 193, 0.15);
    margin-top: 5px;
}

/* Footer Bottom Bar */
.footer-bottom {
    max-width: 1240px;
    margin: 36px auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--brand-steel);   /* #798EA5 */
    letter-spacing: 0.5px;
}

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

.footer-bottom-links a {
    color: var(--brand-steel);   /* #798EA5 */
    transition: color 0.2s;
}

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

/* Page General Styles */
.page-default-content {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
}

/* Responsive Utilities */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .welcome-container, .first-visit-container, .contact-top-grid, .portal-container-layout, .footer-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .first-visit-left {
        position: static;
    }
    .philosophy-grid, .doctors-grid, .contact-info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bio-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .bio-img {
        max-width: 320px;
    }
    .service-detail-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .service-detail-icon {
        order: -1;
        text-align: left;
    }
    .info-content-container {
        grid-template-columns: 1fr;
    }
    .info-sidebar {
        position: static;
        margin-bottom: 40px;
    }
    .info-sidebar ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px 25px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0 20px;
    }
    .header-container {
        grid-template-columns: auto 1fr auto;
        height: 64px;
        gap: 12px;
    }
    /* On mobile: logo moves to left, hamburger on right */
    .site-logo {
        justify-content: flex-start;
        order: 1;
    }
    .site-nav--left,
    .site-nav--right {
        display: none; /* Hide both desktop nav groups */
    }
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .hero-video-section {
        height: 60vh;
    }
    .philosophy-grid, .doctors-grid, .locations-grid, .contact-info-cards-grid, .steps-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Interactive Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background-color: #e5dacf; /* Sand/Tan color matching the screenshot */
    width: 90%;
    max-width: 580px;
    padding: 60px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transform: scale(0.9);
    transition: transform 0.3s var(--cubic-bezier);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.5rem;
    color: #888888;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--dark-text);
}

/* Modal Typography matching card screenshot */
.modal-tagline {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.modal-date {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--light-text);
    margin-bottom: 30px;
}

.modal-headline-container {
    position: relative;
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-headline-main {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.modal-headline-script {
    font-family: 'Alex Brush', cursive;
    font-size: 4.8rem;
    color: var(--dark-text);
    margin-top: -30px;
    line-height: 1;
    font-weight: 400;
    transform: rotate(-3deg);
}

.modal-details {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dark-text);
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.modal-details a {
    color: var(--dark-text);
}

.modal-phone {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-action-btn {
    margin-top: 10px;
    padding: 16px 36px;
    width: auto;
}

