/* ========================================
   Ascend Behavioral Health — Styles
   ======================================== */

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

:root {
    --charcoal: #2C2C2C;
    --charcoal-deep: #1A1A1A;
    --charcoal-light: #3D3D3D;
    --coral: #E8675B;
    --coral-light: #F08076;
    --coral-pale: #FDF0EF;
    --coral-gradient-start: #E8675B;
    --coral-gradient-end: #C4453A;
    --bg: #FAFAFA;
    --bg-white: #FFFFFF;
    --bg-warm: #F7F5F3;
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-muted: #888888;
    --line: #E8E4E0;
    --line-light: #F0ECE8;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-line {
    width: 60px;
    height: 1px;
    background: var(--coral);
    margin-bottom: 32px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 14px 32px;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.8125rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--coral);
    color: #fff;
    border-color: var(--coral);
}

.btn-primary:hover {
    background: var(--coral-light);
    border-color: var(--coral-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(232, 103, 91, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--coral);
    border-color: var(--coral);
}

.btn-outline:hover {
    background: var(--coral);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--line);
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(12px);
    padding: 14px 0;
    border-bottom: 1px solid var(--line-light);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--charcoal);
}

.logo-mark {
    width: 28px;
    height: 28px;
    background: var(--coral);
    border-radius: 50%;
    position: relative;
}

.logo-mark::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
}

.logo-text {
    font-weight: 300;
    letter-spacing: 0.04em;
}

.logo .dot {
    color: var(--coral);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--coral);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--charcoal);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

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

.mobile-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--charcoal);
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--charcoal);
    padding: 8px;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--charcoal);
    padding: 12px 24px;
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--coral);
}

.mobile-cta {
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    border: 1px solid var(--coral);
    border-radius: 100px;
    padding: 14px 32px;
    color: var(--coral);
}

.mobile-cta:hover {
    background: var(--coral);
    color: #fff;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 30%, #3D3030 60%, #4A2525 80%, var(--coral-gradient-end) 100%);
    z-index: 0;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(232, 103, 91, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(232, 103, 91, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 28px;
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 28px;
    max-width: 700px;
}

.hero-accent {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--coral-light);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 56px;
}

.hero-actions .btn-ghost {
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.85);
}

.hero-actions .btn-ghost:hover {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    background: transparent;
}

.hero-trust {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}

.trust-item svg {
    color: var(--coral-light);
    opacity: 0.8;
}

.hero-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.08);
}

.hero-line-fill {
    height: 100%;
    background: var(--coral);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-line-fill.animate {
    width: 100%;
}

/* --- Services --- */
.services {
    padding: 120px 0;
    background: var(--bg);
}

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

.services .section-line {
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    border-color: transparent;
    box-shadow: 0 16px 48px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--coral-pale);
    color: var(--coral);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--coral);
    color: #fff;
}

.service-card h3 {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--bg-warm);
}

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--coral);
    border-radius: var(--radius);
    z-index: -1;
    opacity: 0.3;
}

.about-content {
    max-width: 520px;
}

.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text em {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--charcoal);
}

.about-values {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.value-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.value-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--coral);
    opacity: 0.5;
    line-height: 1;
    min-width: 28px;
}

.value-item h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.value-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Approach --- */
.approach {
    padding: 120px 0;
    background: var(--bg);
}

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

.approach .section-line {
    margin-left: auto;
    margin-right: auto;
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.approach-step {
    text-align: center;
    padding: 0 24px;
    position: relative;
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--coral);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 20px;
}

.approach-step h3 {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.approach-step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.approach-step-connector {
    position: absolute;
    top: 36px;
    right: -12px;
    width: 24px;
    height: 1px;
    background: var(--line);
}

.approach-step:last-child .approach-step-connector {
    display: none;
}

/* --- Quote --- */
.quote-section {
    padding: 100px 0;
    background: var(--charcoal-deep);
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 103, 91, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.quote-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.quote-mark {
    color: var(--coral);
    margin-bottom: 32px;
}

.quote-wrapper blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 28px;
}

.quote-wrapper blockquote em {
    color: var(--coral-light);
}

.quote-attribution {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

/* --- FAQ --- */
.faq {
    padding: 120px 0;
    background: var(--bg);
}

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

.faq .section-line {
    margin-left: auto;
    margin-right: auto;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

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

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 28px 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--charcoal);
    transition: var(--transition);
}

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

.faq-toggle {
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--coral);
    opacity: 0.5;
}

.faq-question[aria-expanded="true"] .faq-toggle {
    transform: rotate(45deg);
    opacity: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding-bottom: 28px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--bg-warm);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

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

.contact-detail svg {
    color: var(--coral);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.contact-detail p,
.contact-detail a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-detail a:hover {
    color: var(--coral);
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    opacity: 0.85;
}

.contact-form-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 48px;
}

.contact-form-wrapper h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    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.8125rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--text-primary);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(232, 103, 91, 0.1);
}

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

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
}

.form-success svg {
    color: var(--coral);
    margin-bottom: 20px;
}

.form-success h4 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
    padding: 80px 0 0;
    background: var(--charcoal-deep);
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-brand .logo {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.footer-links a,
.footer-links p {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 0;
    transition: var(--transition);
}

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

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

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

.footer-disclaimer {
    max-width: 500px;
    font-size: 0.75rem !important;
    line-height: 1.6;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .approach-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
    
    .approach-step-connector {
        display: none;
    }
    
    .about-grid {
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 24px 60px;
    }
    
    .hero-headline {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-trust {
        gap: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image-accent {
        display: none;
    }
    
    .approach-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .services, .about, .approach, .faq, .contact {
        padding: 80px 0;
    }
    
    .quote-section {
        padding: 64px 0;
    }
}
