/* ============================================
   A Fresh Start Rehab Center — Stylesheet
   Palette: Terracotta + Sand | Minimalist
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta: #B8654A;
    --color-terracotta-dark: #9A5038;
    --color-terracotta-light: #D4917B;
    --color-sand: #F5EDE3;
    --color-sand-light: #FAF6F1;
    --color-sand-dark: #E8DDD0;
    --color-text: #2C2420;
    --color-text-light: #6B5E56;
    --color-text-muted: #9B8E86;
    --color-white: #FFFFFF;
    --color-bg: #FDFBF9;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.4s var(--ease-out);
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

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

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 300;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 24px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 251, 249, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    border-bottom-color: var(--color-sand-dark);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.01em;
}

.nav-logo-mark {
    width: 28px;
    height: 28px;
    background: var(--color-terracotta);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.nav-logo-mark::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 10px;
    background: var(--color-white);
    border-radius: 2px;
}

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

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--color-text-light);
    transition: color var(--transition);
    position: relative;
}

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

.nav-links a:hover {
    color: var(--color-terracotta);
}

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

.nav-cta {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--color-terracotta) !important;
    border: 1px solid var(--color-terracotta);
    padding: 8px 20px;
    border-radius: 100px;
    transition: all var(--transition) !important;
}

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

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

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

.nav-toggle-line {
    width: 22px;
    height: 1.5px;
    background: var(--color-text);
    transition: all 0.3s ease;
    transform-origin: center;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

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

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 300;
    color: var(--color-text);
    transition: color var(--transition);
}

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

.mobile-menu-cta {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-terracotta);
    border: 1px solid var(--color-terracotta);
    padding: 12px 32px;
    border-radius: 100px;
    letter-spacing: 0.04em;
    transition: all var(--transition);
}

.mobile-menu-cta:hover {
    background: var(--color-terracotta);
    color: var(--color-white);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding: 120px 0 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 72px);
}

.hero-content {
    padding-right: 20px;
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: 28px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 300;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 28px;
}

.hero-headline em {
    font-style: italic;
    color: var(--color-terracotta);
}

.hero-subtitle {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--color-text-light);
    max-width: 480px;
    margin-bottom: 40px;
}

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

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.hero-detail svg {
    color: var(--color-terracotta);
    flex-shrink: 0;
}

.hero-detail a {
    color: var(--color-text-light);
    transition: color var(--transition);
}

.hero-detail a:hover {
    color: var(--color-terracotta);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: calc(100vh - 72px);
}

.hero-image-stack {
    position: relative;
    height: 100%;
}

.hero-image {
    overflow: hidden;
    border-radius: 2px;
}

.hero-image-main {
    width: 85%;
    height: 75%;
    position: absolute;
    top: 5%;
    left: 0;
}

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

.hero-image-accent {
    width: 55%;
    height: 35%;
    position: absolute;
    bottom: 8%;
    right: 0;
    border: 4px solid var(--color-bg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

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

.hero-image-badge {
    position: absolute;
    bottom: 38%;
    right: 18%;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 16px 24px;
    font-family: var(--font-serif);
    font-size: 15px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.02em;
    z-index: 2;
}

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

.hero-line::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: var(--color-sand-dark);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    padding: 14px 32px;
    border-radius: 100px;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-terracotta);
    color: var(--color-white);
    border: 1px solid var(--color-terracotta);
}

.btn-primary:hover {
    background: var(--color-terracotta-dark);
    border-color: var(--color-terracotta-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(184, 101, 74, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-sand-dark);
}

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

.btn-white {
    background: var(--color-white);
    color: var(--color-terracotta);
    border: 1px solid var(--color-white);
}

.btn-white:hover {
    background: var(--color-sand);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-outline-white {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-terracotta);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- About Section --- */
.about {
    padding: 140px 0;
    background: var(--color-bg);
}

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

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

.about-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--color-sand-dark);
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 300;
    color: var(--color-terracotta);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.about-stat-divider {
    width: 1px;
    height: 48px;
    background: var(--color-sand-dark);
}

.about-image {
    position: relative;
}

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

.about-image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--color-sand);
    z-index: -1;
}

/* --- Services Section --- */
.services {
    padding: 140px 0;
    background: var(--color-sand-light);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 72px;
}

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

.service-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: 2px;
    border: 1px solid var(--color-sand-dark);
    transition: all var(--transition);
}

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

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-sand);
    color: var(--color-terracotta);
    margin-bottom: 24px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 12px;
}

.service-description {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-light);
}

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

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

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

.approach-accent {
    font-style: italic;
    color: var(--color-terracotta);
}

.approach-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 48px;
}

.approach-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.approach-list li {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.approach-list-marker {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 300;
    color: var(--color-terracotta-light);
    line-height: 1;
    flex-shrink: 0;
    width: 36px;
}

.approach-list div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.approach-list strong {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
}

.approach-list-desc {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-light);
}

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

/* --- CTA Section --- */
.cta {
    padding: 120px 0;
    background: var(--color-terracotta);
}

.cta-content {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-eyebrow {
    color: rgba(255,255,255,0.7) !important;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 300;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: 24px;
}

.cta-title em {
    font-style: italic;
    color: var(--color-sand);
}

.cta-text {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Contact Section --- */
.contact {
    padding: 140px 0;
    background: var(--color-sand-light);
}

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

.contact-info {
    max-width: 480px;
}

.contact-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 48px;
}

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

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

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

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

.contact-detail-value,
.contact-detail a {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text);
    transition: color var(--transition);
}

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

/* Form */
.contact-form-wrapper {
    background: var(--color-white);
    padding: 48px;
    border-radius: 2px;
    border: 1px solid var(--color-sand-dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.form-input {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text);
    background: var(--color-sand-light);
    border: 1px solid var(--color-sand-dark);
    border-radius: 2px;
    padding: 14px 16px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}

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

.form-input:focus {
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px rgba(184, 101, 74, 0.1);
}

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

.form-privacy {
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
}

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

.form-success.show {
    display: flex;
}

.form-success svg {
    color: var(--color-terracotta);
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-text);
}

.form-success p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-light);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 64px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-logo-mark {
    width: 24px;
    height: 24px;
    background: var(--color-terracotta);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.footer-logo-mark::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--color-white);
    border-radius: 2px;
}

.footer-tagline {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-contact a {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-terracotta-light);
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,0.35);
}

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

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
    }
    
    .about-grid,
    .approach-grid,
    .contact-grid {
        gap: 48px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding-top: 96px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero-visual {
        height: 500px;
    }
    
    .hero-image-main {
        width: 100%;
        height: 65%;
    }
    
    .hero-image-accent {
        width: 60%;
        height: 30%;
    }
    
    .hero-image-badge {
        right: 10%;
        bottom: 35%;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .about,
    .services,
    .approach,
    .contact {
        padding: 80px 0;
    }
    
    .about-grid,
    .approach-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .approach-visual img {
        height: 400px;
    }
    
    .about-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .footer-disclaimer {
        text-align: left;
        max-width: 100%;
    }
    
    .cta {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-inner {
        padding: 0 20px;
    }
    
    .hero-headline {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
