/* ========================================
   Exodus Family Practice — Styles
   ======================================== */

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

:root {
    --navy-950: #0a1628;
    --navy-900: #0f2140;
    --navy-800: #152d58;
    --navy-700: #1c3a70;
    --navy-600: #244a8a;
    --gold-500: #C5A059;
    --gold-400: #d4b06a;
    --gold-300: #e2c48a;
    --gold-200: #f0dfa8;
    --gold-100: #f9f2e0;
    --white: #ffffff;
    --off-white: #faf9f7;
    --gray-50: #f7f7f5;
    --gray-100: #f0efed;
    --gray-200: #e2e1dd;
    --gray-300: #d1d0cc;
    --gray-400: #a8a7a2;
    --gray-500: #787773;
    --gray-600: #5c5b57;
    --gray-700: #3d3c39;
    --gray-800: #252422;
    --gray-900: #141312;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-med: 0.35s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Typography
   ======================================== */

.label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--navy-900);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.75;
    max-width: 560px;
}

.body-text {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 1.5px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--gold-500);
    color: var(--navy-950);
    border-color: var(--gold-500);
}

.btn-primary:hover {
    background-color: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(197, 160, 89, 0.3);
}

.btn-ghost {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-ghost-dark {
    background-color: transparent;
    color: var(--navy-900);
    border-color: var(--gray-300);
}

.btn-ghost-dark:hover {
    border-color: var(--navy-900);
    color: var(--navy-900);
}

.btn-full {
    width: 100%;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color var(--transition-med), box-shadow var(--transition-med);
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 var(--gray-200);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold-500);
    transition: color var(--transition-fast);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-primary {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.logo-secondary {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
}

.site-header:not(.scrolled) .logo-primary,
.site-header:not(.scrolled) .logo-secondary {
    color: var(--white);
}

.site-header.scrolled .logo-primary,
.site-header.scrolled .logo-secondary {
    color: var(--navy-900);
}

.site-header:not(.scrolled) .logo-mark {
    color: var(--gold-500);
    border-color: var(--gold-500);
}

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-menu a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold-500);
    transition: width var(--transition-fast);
}

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

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

.site-header.scrolled .nav-menu a {
    color: var(--gray-600);
}

.site-header.scrolled .nav-menu a:hover {
    color: var(--navy-900);
}

.nav-cta {
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 8px 20px !important;
    border-radius: 2px;
    transition: all var(--transition-fast) !important;
}

.nav-cta:hover {
    background-color: var(--gold-500) !important;
    border-color: var(--gold-500) !important;
    color: var(--navy-950) !important;
}

.nav-cta::after {
    display: none !important;
}

.site-header.scrolled .nav-cta {
    border-color: var(--navy-900) !important;
    color: var(--navy-900) !important;
}

.site-header.scrolled .nav-cta:hover {
    background-color: var(--navy-900) !important;
    color: var(--white) !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--white);
    transition: all var(--transition-fast);
}

.site-header.scrolled .nav-toggle-line {
    background-color: var(--navy-900);
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ========================================
   Hero
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--navy-950);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.88) 0%,
        rgba(15, 33, 64, 0.78) 50%,
        rgba(10, 22, 40, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
    max-width: 720px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
    max-width: 680px;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--gold-500), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ========================================
   Intro Section
   ======================================== */

.intro-section {
    padding: 120px 0;
    background-color: var(--white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.intro-text .section-title {
    margin-bottom: 24px;
}

.intro-text .body-text + .body-text {
    margin-top: 8px;
}

.intro-image {
    position: relative;
}

.intro-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 2px;
}

.intro-image::before {
    content: '';
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold-500);
    border-radius: 2px;
    z-index: -1;
}

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

.services-section {
    padding: 120px 0;
    background-color: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.service-card {
    background-color: var(--white);
    padding: 48px 36px;
    transition: all var(--transition-med);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-med);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.08);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--gold-500);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--navy-900);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.75;
}

/* ========================================
   Travel Section
   ======================================== */

.travel-section {
    padding: 120px 0;
    background-color: var(--white);
}

.travel-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.travel-text .section-title {
    margin-bottom: 24px;
}

.travel-text .body-text + .body-text {
    margin-top: 8px;
}

.travel-list {
    list-style: none;
    margin: 32px 0 40px;
    display: grid;
    gap: 14px;
}

.travel-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.list-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 1.5px solid var(--gold-500);
    border-radius: 50%;
    position: relative;
}

.list-check::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 6px;
    width: 5px;
    height: 8px;
    border: 1.5px solid var(--gold-500);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.travel-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 2px;
}

/* ========================================
   Approach Section
   ======================================== */

.approach-section {
    padding: 120px 0;
    background-color: var(--navy-900);
}

.approach-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.approach-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 2px;
}

.approach-text .label {
    color: var(--gold-500);
}

.approach-text .section-title {
    color: var(--white);
    margin-bottom: 24px;
}

.approach-text .body-text {
    color: rgba(255, 255, 255, 0.6);
}

.approach-features {
    margin-top: 48px;
    display: grid;
    gap: 40px;
}

.approach-feature {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 20px;
}

.feature-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gold-500);
    line-height: 1;
    padding-top: 4px;
}

.approach-feature h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 8px;
}

.approach-feature p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.75;
}

/* ========================================
   CTA / Contact Section
   ======================================== */

.cta-section {
    padding: 120px 0;
    background-color: var(--gray-50);
}

.cta-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.cta-content .label {
    color: var(--gold-500);
}

.cta-content .section-title {
    margin-bottom: 20px;
}

.cta-content .body-text {
    color: var(--gray-600);
    margin-bottom: 40px;
}

.cta-contact {
    display: grid;
    gap: 24px;
}

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

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--gold-500);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 0.9375rem;
    color: var(--gray-800);
    line-height: 1.6;
}

.contact-value a {
    color: var(--navy-900);
    border-bottom: 1px solid var(--gray-300);
    transition: border-color var(--transition-fast);
}

.contact-value a:hover {
    border-color: var(--gold-500);
    color: var(--gold-500);
}

/* Form */
.cta-form-wrap {
    background-color: var(--white);
    padding: 48px;
    border-radius: 2px;
    box-shadow: 0 4px 24px rgba(10, 22, 40, 0.06);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--navy-900);
    margin-bottom: 32px;
}

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

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--gray-800);
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 2px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

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

.form-notice {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 16px;
    text-align: center;
    line-height: 1.6;
}

.form-success {
    text-align: center;
    padding: 48px 24px;
}

.success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    color: var(--gold-500);
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--navy-900);
    margin-bottom: 12px;
}

.form-success p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 32px;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
    background-color: var(--navy-950);
    padding: 80px 0 0;
}

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

.footer-brand .logo-primary {
    color: var(--white);
}

.footer-brand .logo-secondary {
    color: rgba(255, 255, 255, 0.5);
}

.footer-brand .logo-mark {
    color: var(--gold-500);
    border-color: var(--gold-500);
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.75;
    margin-top: 20px;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.footer-links li a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

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

.footer-contact address {
    font-style: normal;
    display: grid;
    gap: 8px;
}

.footer-contact p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--gold-500);
    border-color: var(--gold-500);
}

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

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-legal {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.2) !important;
}

/* ========================================
   Scroll Reveal (progressive enhancement)
   ======================================== */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

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

@media (max-width: 1024px) {
    .intro-grid,
    .travel-content,
    .approach-grid {
        gap: 48px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-section .container {
        gap: 48px;
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        background-color: var(--navy-950);
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-med);
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        flex-direction: column;
        gap: 28px;
        text-align: center;
    }

    .nav-menu a {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .nav-menu a:hover {
        color: var(--white) !important;
    }

    .nav-cta {
        border-color: rgba(255, 255, 255, 0.4) !important;
        margin-top: 8px;
    }

    .hero-content {
        padding: 100px 0 60px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .scroll-indicator {
        display: none;
    }

    .intro-section,
    .services-section,
    .travel-section,
    .approach-section,
    .cta-section {
        padding: 80px 0;
    }

    .intro-grid,
    .travel-content,
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-image::before {
        display: none;
    }

    .intro-image img,
    .travel-image img,
    .approach-image img {
        height: 300px;
    }

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

    .service-card {
        padding: 36px 28px;
    }

    .cta-section .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cta-form-wrap {
        padding: 32px 24px;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

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

    .cta-form-wrap {
        padding: 24px 20px;
    }
}
