/* ============================================
   TRIPLEDSHOUSES — Styles
   Palette: Terracotta (#B5694E) + Sand (#E8DCC8)
   Fonts: Cormorant Garamond + Inter
   ============================================ */

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

:root {
    --terracotta: #B5694E;
    --terracotta-dark: #9A5539;
    --terracotta-light: #C9856C;
    --sand: #E8DCC8;
    --sand-light: #F2EBE0;
    --sand-dark: #D4C4AE;
    --cream: #FAF7F2;
    --white: #FFFFFF;
    --charcoal: #2A2520;
    --charcoal-light: #4A423A;
    --gray: #7A7068;
    --gray-light: #A89F96;
    --line: rgba(181, 105, 78, 0.15);
    --line-strong: rgba(181, 105, 78, 0.3);

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, 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: 4px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--charcoal);
    background: var(--cream);
    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 var(--space-lg);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--transition);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(42, 37, 32, 0.06);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo svg {
    color: var(--terracotta);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal-light);
    position: relative;
    transition: color var(--transition);
}

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

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

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

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--charcoal);
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.nav-overlay-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.nav-overlay-links a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--charcoal);
    letter-spacing: -0.01em;
    transition: color var(--transition);
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(42, 37, 32, 0.55) 0%,
        rgba(42, 37, 32, 0.70) 50%,
        rgba(42, 37, 32, 0.82) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: var(--space-xl) var(--space-lg);
    color: var(--white);
}

.hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 401;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: var(--space-md);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.hero-accent {
    color: var(--sand);
    font-style: italic;
    font-weight: 300;
}

.hero-sub {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(242, 235, 224, 0.85);
    max-width: 560px;
    margin: 0 auto var(--space-lg);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 401;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--sand);
    border-color: rgba(232, 220, 200, 0.4);
}

.btn-ghost:hover {
    border-color: var(--sand);
    color: var(--white);
    background: rgba(232, 220, 200, 0.08);
}

.btn-full {
    width: 100%;
}

.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: 6px;
    color: rgba(242, 235, 224, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ============================================
   TRUST STRIP
   ============================================ */
.trust-strip {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: var(--space-lg) 0;
}

.trust-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    align-items: center;
}

.trust-item {
    text-align: center;
}

.trust-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--terracotta);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 4px;
}

.trust-label {
    font-size: 0.75rem;
    font-weight: 401;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--line-strong);
    align-self: center;
}

/* ============================================
   SECTION SHARED
   ============================================ */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 401;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--charcoal);
    margin-bottom: var(--space-lg);
}

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

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

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

.about-text p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--charcoal-light);
    margin-bottom: var(--space-md);
}

.about-image {
    position: relative;
}

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

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

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

.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto var(--space-2xl);
}

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

.service-card {
    padding: var(--space-xl);
    background: var(--cream);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(42, 37, 32, 0.06);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--terracotta);
    margin-bottom: var(--space-md);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--gray);
    margin-bottom: var(--space-md);
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-list li {
    font-size: 0.85rem;
    color: var(--charcoal-light);
    padding-left: 16px;
    position: relative;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    background: var(--terracotta);
    border-radius: 50%;
}

/* ============================================
   NEIGHBORHOODS
   ============================================ */
.neighborhoods {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

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

.neighborhood-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.neighborhood-card img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.neighborhood-card:hover img {
    transform: scale(1.05);
}

.neighborhood-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(42, 37, 32, 0.80) 0%,
        rgba(42, 37, 32, 0.20) 50%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
    transition: background var(--transition);
}

.neighborhood-card:hover .neighborhood-overlay {
    background: linear-gradient(
        0deg,
        rgba(42, 37, 32, 0.90) 0%,
        rgba(42, 37, 32, 0.30) 60%,
        transparent 100%
    );
}

.neighborhood-overlay h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.neighborhood-overlay p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(242, 235, 224, 0.80);
}

/* ============================================
   PROCESS
   ============================================ */
.process {
    padding: var(--space-3xl) 0;
    background: var(--charcoal);
    color: var(--white);
}

.process .section-eyebrow {
    color: var(--sand-dark);
}

.process .section-title {
    color: var(--white);
}

.process .text-accent {
    color: var(--sand);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.process-step {
    position: relative;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--line-strong);
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--terracotta);
    line-height: 1;
    margin-bottom: var(--space-sm);
    display: block;
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.process-step p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(242, 235, 224, 0.65);
}

/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial {
    padding: var(--space-3xl) 0;
    background: var(--sand-light);
}

.testimonial-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    color: var(--terracotta);
    opacity: 0.3;
    margin-bottom: var(--space-md);
}

.testimonial blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--charcoal);
    letter-spacing: -0.01em;
}

.testimonial-author {
    margin-top: var(--space-md);
    font-size: 0.82rem;
    font-weight: 401;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
}

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

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

.contact-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--charcoal-light);
    margin-bottom: var(--space-lg);
    max-width: 440px;
}

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

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.92rem;
    color: var(--charcoal-light);
    line-height: 1.6;
}

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

.contact-detail a:hover {
    color: var(--terracotta-dark);
    text-decoration: underline;
}

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

/* Form */
.contact-form-wrap {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

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

.form-group label {
    font-size: 0.78rem;
    font-weight: 401;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--charcoal);
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 12px 14px;
    outline: none;
    transition: border-color var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
}

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

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl);
    gap: var(--space-md);
}

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

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

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--charcoal);
}

.form-success p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ============================================
   MAP
   ============================================ */
.map-section {
    background: var(--charcoal);
}

.map-section iframe {
    filter: grayscale(0.4) contrast(1.05);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--charcoal);
    color: rgba(242, 235, 224, 0.7);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-sm);
}

.footer-logo svg {
    color: var(--terracotta);
}

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

.footer h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

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

.footer-links a {
    font-size: 0.88rem;
    color: rgba(242, 235, 224, 0.6);
    transition: color var(--transition);
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-contact a {
    font-size: 0.92rem;
    color: var(--terracotta-light);
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(232, 220, 200, 0.1);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(242, 235, 224, 0.4);
}

/* ============================================
   SCROLL REVEAL (below-fold only)
   ============================================ */
@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);
    }
}

/* Fallback: always visible if JS is disabled */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    :root {
        --space-3xl: 5rem;
        --space-2xl: 3.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .trust-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .trust-divider {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-image img {
        height: 360px;
    }

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

    .neighborhood-card img {
        height: 260px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

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

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

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

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

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

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