/* ============================================
   David Miller, LMFT, LPCC — Therapy Practice
   Clean Minimalist | Deep Navy + Warm Gold
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy-950: #0a1628;
    --navy-900: #1a2744;
    --navy-800: #243656;
    --navy-700: #2e4468;
    --navy-600: #3d5a80;
    --navy-500: #4b6b96;
    --gold-500: #c9a84c;
    --gold-400: #d4b85e;
    --gold-300: #e0c970;
    --gold-200: #e8d89a;
    --gold-100: #f2e8c4;
    --gold-50:  #faf5e6;
    --white:    #ffffff;
    --gray-50:  #f8f7f4;
    --gray-100: #f0eee9;
    --gray-200: #e2dfd8;
    --gray-300: #c8c4bb;
    --gray-400: #9e9a90;
    --gray-500: #747068;
    --gray-600: #524f48;
    --gray-700: #3a3730;
    --gray-800: #252320;
    --gray-900: #141210;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--gold-500);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--navy-900);
}

.section-eyebrow {
    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: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--navy-900);
    margin-bottom: var(--space-md);
}

.section-title--center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto var(--space-xl);
    text-align: center;
    line-height: 1.7;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
    color: var(--navy-950);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

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

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

.btn-full {
    width: 100%;
}

/* ---------- HEADER ---------- */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}

#site-header.scrolled {
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--navy-900);
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-500);
    border: 1px solid var(--gold-500);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.4rem;
    letter-spacing: 0.05em;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--navy-900);
}

#main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

#main-nav a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-600);
    letter-spacing: 0.02em;
    position: relative;
}

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

#main-nav a:hover {
    color: var(--navy-900);
}

#main-nav a:hover::after {
    width: 100%;
}

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

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--navy-900);
    transition: all var(--transition);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.92) 0%,
        rgba(26, 39, 68, 0.85) 50%,
        rgba(46, 68, 104, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: var(--space-3xl) var(--space-lg);
    max-width: 720px;
}

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

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.hero-headline em {
    font-style: italic;
    color: var(--gold-400);
    font-weight: 300;
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ---------- INTRO / ABOUT ---------- */
.intro {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
    align-items: center;
}

.intro-image {
    position: relative;
}

.intro-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.intro-image::after {
    content: '';
    position: absolute;
    top: -12px;
    right: -12px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold-200);
    border-radius: var(--radius-md);
    z-index: -1;
}

.intro-text {
    padding: var(--space-md) 0;
}

.intro-text .section-title {
    margin-bottom: var(--space-md);
}

.intro-stats {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
}

.stat {
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--navy-900);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.stat-divider {
    width: 1px;
    background: var(--gray-200);
    align-self: stretch;
}

/* ---------- SERVICES ---------- */
.services {
    padding: var(--space-3xl) 0;
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--navy-900);
    margin-bottom: var(--space-md);
}

.service-icon svg {
    color: var(--gold-400);
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: var(--space-sm);
}

.service-card > p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.service-tags li {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--navy-700);
    background: var(--gray-100);
    padding: 0.3rem 0.65rem;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

/* ---------- APPROACH ---------- */
.approach {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.approach-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.approach-content .section-title {
    margin-bottom: var(--space-lg);
}

.approach-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.approach-item {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: var(--space-md);
}

.approach-item-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold-500);
    line-height: 1;
    padding-top: 0.25rem;
}

.approach-item-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy-900);
    margin-bottom: 0.35rem;
}

.approach-item p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

.approach-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* ---------- CREDENTIALS ---------- */
.credentials {
    padding: var(--space-2xl) 0;
    background: var(--navy-900);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.credential {
    text-align: center;
    padding: var(--space-md);
}

.credential svg {
    color: var(--gold-400);
    margin: 0 auto var(--space-sm);
}

.credential-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.35rem;
}

.credential-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.3;
}

/* ---------- FAQ ---------- */
.faq {
    padding: var(--space-3xl) 0;
    background: var(--gray-50);
}

.faq-list {
    max-width: 780px;
    margin: var(--space-xl) auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-md) 0;
    text-align: left;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--navy-900);
    line-height: 1.4;
}

.faq-question:hover {
    color: var(--gold-500);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--gray-400);
}

.faq-item[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
    color: var(--gold-500);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition);
}

.faq-item[aria-expanded="true"] .faq-answer {
    max-height: 300px;
    padding-bottom: var(--space-md);
}

.faq-answer p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.8;
}

.faq-answer a {
    color: var(--navy-600);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-answer a:hover {
    color: var(--gold-500);
}

/* ---------- CONTACT ---------- */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-2xl);
}

.contact-info .section-title {
    margin-bottom: var(--space-md);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.contact-detail {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.contact-detail svg {
    flex-shrink: 0;
    color: var(--gold-500);
    margin-top: 0.2rem;
}

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

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

.contact-detail-value a {
    color: var(--navy-600);
}

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

/* Contact Form */
.contact-form-wrap {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--gray-200);
}

.contact-form-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--gray-800);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: 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(201, 168, 76, 0.12);
}

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

.form-note {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-align: center;
    margin-top: var(--space-sm);
}

.form-success {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--navy-900);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.9375rem;
    margin-top: var(--space-md);
}

.form-success svg {
    flex-shrink: 0;
    color: var(--gold-400);
}

/* ---------- FOOTER ---------- */
#site-footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-mark {
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--white);
    display: block;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
    max-width: 320px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: var(--space-md);
}

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

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.6;
}

.footer-disclaimer {
    max-width: 480px;
    text-align: right;
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .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; }
}

/* ---------- MOBILE NAV ---------- */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    #main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        padding: var(--space-md) var(--space-lg);
        transform: translateY(-110%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
        z-index: 999;
    }

    #main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    #main-nav ul {
        flex-direction: column;
        gap: var(--space-sm);
    }

    #main-nav a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    #main-nav a::after {
        display: none;
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .intro-grid,
    .approach-split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .intro-image {
        order: -1;
    }

    .intro-image img {
        height: 350px;
    }

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

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

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-disclaimer {
        text-align: left;
    }
}

@media (max-width: 640px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2.5rem;
        --space-2xl: 4rem;
        --space-3xl: 5rem;
    }

    .hero-content {
        padding: var(--space-2xl) var(--space-md);
    }

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

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

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

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

    .intro-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .stat-divider {
        display: none;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: var(--space-md);
    }
}
