/* ============================================
   DONNA KIRKPATRICK — REAL ESTATE WEBSITE
   Charcoal + Coral | Editorial Design
   ============================================ */

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

:root {
    --charcoal: #1a1a1a;
    --charcoal-light: #2d2d2d;
    --charcoal-mid: #3d3d3d;
    --coral: #E86A4B;
    --coral-dark: #D4593A;
    --coral-light: #F2896E;
    --cream: #FAF7F4;
    --cream-dark: #F0EBE5;
    --white: #FFFFFF;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border: #E5E0DA;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(26,26,26,0.06);
    --shadow-md: 0 4px 20px rgba(26,26,26,0.08);
    --shadow-lg: 0 12px 40px rgba(26,26,26,0.12);
    --radius: 4px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--sans);
    color: var(--text-primary);
    background-color: var(--cream);
    line-height: 1.6;
    -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 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* ---------- Eyebrow & Headlines ---------- */
.section-eyebrow {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 16px;
}

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

.section-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

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

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

.btn-primary:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 106, 75, 0.3);
}

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

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

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

.btn-ghost-light:hover {
    background: var(--charcoal);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

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

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

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--charcoal);
    color: var(--white);
    font-family: var(--serif);
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
    border-radius: var(--radius);
}

.logo-text {
    font-family: var(--serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: -0.01em;
}

/* Nav */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

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

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

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

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

.nav-cta {
    background: var(--charcoal);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 0.8125rem !important;
    letter-spacing: 0.04em;
    transition: all var(--transition) !important;
}

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

.nav-cta:hover {
    background: var(--coral) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    box-shadow: 0 7px 0 var(--charcoal), 0 -7px 0 var(--charcoal);
    transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
    box-shadow: 0 0 0 transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    transform: rotate(-45deg);
}

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

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/3958953/pexels-photo-3958953.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    opacity: 0.55;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26,26,26,0.3) 0%,
        rgba(26,26,26,0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding-top: 72px;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral-light);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeUp 0.8s 0.6s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s 0.8s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 120px 0;
    background: var(--cream);
}

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

.about-image-wrap {
    position: relative;
}

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

.about-image-wrap::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 60%;
    height: 60%;
    border: 2px solid var(--coral);
    border-radius: var(--radius);
    z-index: -1;
}

.about-content {
    padding: 24px 0;
}

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

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

.stat-number {
    display: block;
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--coral);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 120px 0;
    background: var(--white);
}

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

.services-header .section-sub {
    margin: 0 auto;
}

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

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

.service-card:hover {
    border-color: var(--coral);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 56px;
    height: 56px;
    color: var(--coral);
    margin-bottom: 24px;
}

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

.service-title {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--charcoal);
}

.service-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

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

.service-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

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

/* ============================================
   NEIGHBORHOODS
   ============================================ */
.neighborhoods {
    padding: 120px 0;
    background: var(--charcoal);
}

.neighborhoods .section-headline {
    color: var(--white);
}

.neighborhoods .section-sub {
    color: rgba(255,255,255,0.6);
}

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

.neighborhoods-header .section-sub {
    margin: 0 auto;
}

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

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

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

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

.neighborhood-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 24px 24px;
    background: linear-gradient(to top, rgba(26,26,26,0.9) 0%, transparent 100%);
}

.neighborhood-info h3 {
    font-size: 1.375rem;
    color: var(--white);
    margin-bottom: 8px;
}

.neighborhood-info p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: 120px 0;
    background: var(--cream);
}

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

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

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.testimonial-card:hover {
    border-color: var(--coral);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.testimonial-quote {
    width: 32px;
    height: 32px;
    color: var(--coral);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--charcoal);
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: 120px 0;
    background: var(--coral);
    position: relative;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

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

.cta-headline {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    color: var(--white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 40px;
}

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

.cta-actions .btn-ghost-light {
    border-color: var(--white);
    color: var(--white);
}

.cta-actions .btn-ghost-light:hover {
    background: var(--white);
    color: var(--coral);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 120px 0;
    background: var(--white);
}

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

.contact-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    color: var(--text-secondary);
}

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

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

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--coral);
    flex-shrink: 0;
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.form-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
    color: var(--charcoal);
}

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

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

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

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

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

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

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

.form-success svg {
    width: 48px;
    height: 48px;
    color: var(--coral);
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--charcoal);
    padding: 64px 0 32px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 0.8125rem;
}

.footer-name {
    font-family: var(--serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
}

.footer-tagline {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
    margin-left: auto;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

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

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

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

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

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

.footer-contact span {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

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

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }

    .services-grid {
        gap: 24px;
    }

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

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrap img {
        height: 500px;
    }

    .about-image-wrap::after {
        display: none;
    }

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

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

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--cream);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        transform: translateX(100%);
        transition: transform var(--transition);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu a {
        font-size: 1.125rem;
    }

    .nav-toggle {
        display: block;
    }

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

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

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

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

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

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

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .footer-brand {
        flex-wrap: wrap;
    }

    .footer-tagline {
        margin-left: 0;
    }

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

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

    .about,
    .services,
    .neighborhoods,
    .testimonials,
    .cta,
    .contact {
        padding: 80px 0;
    }

    .service-card {
        padding: 28px;
    }

    .hero-scroll {
        display: none;
    }
}
