/* ============================================
   Carson Blackwell | Real Estate Website
   Charcoal + Coral | Confident Corporate
   ============================================ */

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

:root {
    --charcoal: #1C1C1E;
    --charcoal-light: #2C2C2E;
    --charcoal-mid: #3A3A3C;
    --neutral-100: #F5F5F7;
    --neutral-200: #E8E8ED;
    --neutral-300: #D2D2D7;
    --neutral-400: #86868B;
    --coral: #E8634B;
    --coral-dark: #D14E36;
    --coral-light: #F07860;
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(28,28,30,0.08);
    --shadow-md: 0 4px 16px rgba(28,28,30,0.10);
    --shadow-lg: 0 8px 32px rgba(28,28,30,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--charcoal);
    background: var(--white);
    overflow-x: hidden;
}

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

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

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

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

/* SKIP LINK */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--coral);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-size: 14px;
    font-weight: 500;
}
.skip-link:focus {
    top: 16px;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-200);
    transition: box-shadow var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--charcoal);
}
.logo:hover { color: var(--coral); }

.logo-text { letter-spacing: -0.01em; }

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    transition: color var(--transition);
    position: relative;
}
.main-nav a:not(.btn):hover { color: var(--coral); }
.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width var(--transition);
}
.main-nav a:not(.btn):hover::after { width: 100%; }

/* NAV TOGGLE */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.btn--coral {
    background: var(--coral);
    color: var(--white);
}
.btn--coral:hover {
    background: var(--coral-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232,99,75,0.35);
}
.btn--ghost {
    background: transparent;
    color: var(--charcoal);
    border: 1.5px solid var(--neutral-300);
}
.btn--ghost:hover {
    border-color: var(--coral);
    color: var(--coral);
}
.btn--outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.5);
}
.btn--outline-light:hover {
    background: var(--white);
    color: var(--charcoal);
}
.btn--full { width: 100%; }

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.text-center { text-align: center; }
.section-header { margin-bottom: 56px; }

/* ============================================
   HERO
   ============================================ */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--neutral-100);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 48px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}
.hero-content { padding-right: 8px; }
.hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 20px;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: 24px;
    letter-spacing: -0.025em;
}
.hero-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--charcoal-mid);
    margin-bottom: 36px;
    max-width: 520px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding-top: 32px;
    border-top: 1px solid var(--neutral-200);
}
.stat {
    flex: 1;
    text-align: left;
}
.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 13px;
    color: var(--neutral-400);
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--neutral-300);
    margin: 0 24px;
    flex-shrink: 0;
}

/* HERO IMAGE */
.hero-image {
    position: relative;
}
.hero-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 160px;
    height: 160px;
    background: var(--coral);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.15;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 100px 0;
    background: var(--white);
}
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 56px;
    align-items: center;
}
.about-image {
    position: relative;
}
.about-image img {
    width: 100%;
    height: 640px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.about-image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    border: 3px solid var(--coral);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.4;
}
.about-content { max-width: 520px; }
.about-content p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--charcoal-mid);
    margin-bottom: 16px;
}
.about-signature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--neutral-200);
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
}
.about-signature .sig-icon { flex-shrink: 0; }

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 100px 0;
    background: var(--neutral-100);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid var(--neutral-200);
    transition: all var(--transition);
}
.service-card:hover {
    border-color: var(--coral);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.service-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232,99,75,0.08);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}
.service-card-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.service-card > p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--charcoal-mid);
    margin-bottom: 20px;
}
.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.service-list li {
    font-size: 14px;
    color: var(--charcoal-mid);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}
.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background: var(--coral);
    border-radius: 50%;
}

/* ============================================
   AREAS
   ============================================ */
.areas {
    padding: 100px 0;
    background: var(--white);
}
.areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.area-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    cursor: default;
}
.area-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.area-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.area-card:hover img { transform: scale(1.05); }
.area-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(28,28,30,0.85) 0%, transparent 100%);
    color: var(--white);
}
.area-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}
.area-card p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: 100px 0;
    background: var(--charcoal);
    color: var(--white);
}
.testimonials .section-eyebrow { color: var(--coral-light); }
.testimonials .section-title { color: var(--white); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--charcoal-light);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--charcoal-mid);
    position: relative;
    transition: all var(--transition);
}
.testimonial-card:hover {
    border-color: rgba(232,99,75,0.3);
    transform: translateY(-2px);
}
.testimonial-quote {
    position: absolute;
    top: 24px;
    right: 24px;
    opacity: 0.5;
}
.testimonial-text {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--coral-light);
    letter-spacing: 0.02em;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    padding: 80px 0;
    background: var(--coral);
}
.cta-inner {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}
.cta-heading {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.cta-text {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
}
.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 100px 0;
    background: var(--neutral-100);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: start;
}
.contact-intro {
    font-size: 16px;
    line-height: 1.75;
    color: var(--charcoal-mid);
    margin-bottom: 32px;
}
.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    color: var(--charcoal);
    line-height: 1.6;
}
.contact-item a {
    color: var(--charcoal);
    transition: color var(--transition);
}
.contact-item a:hover { color: var(--coral); }
.contact-icon { flex-shrink: 0; margin-top: 2px; }
.contact-affiliation p {
    font-size: 14px;
    color: var(--neutral-400);
}
.contact-affiliation strong { color: var(--charcoal); }

/* FORM */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}
.form-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 24px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--charcoal);
    background: var(--neutral-100);
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(232,99,75,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--neutral-400);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-note {
    font-size: 13px;
    color: var(--neutral-400);
    margin-top: 12px;
    text-align: center;
}
.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(232,99,75,0.08);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--coral-dark);
}
.form-success[hidden] { display: none; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.7);
    padding: 56px 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
    max-width: 280px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--coral-light); }
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}
.footer-contact a {
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.footer-contact a:hover { color: var(--coral-light); }

.footer-bottom {
    padding: 20px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: var(--coral-light); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.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.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 0.7fr;
        gap: 32px;
    }
    .hero-title { font-size: clamp(28px, 3.5vw, 44px); }
    .about-grid { gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid .service-card:last-child { grid-column: span 2; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid .testimonial-card:last-child { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; z-index: 101; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 88px 32px 32px;
        transition: right var(--transition);
        z-index: 100;
    }
    .main-nav.open { right: 0; }
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .main-nav a { font-size: 16px; }
    .main-nav .btn { width: 100%; justify-content: flex-start; }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-image { order: -1; }
    .hero-img-wrap img { height: 400px; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .stat-divider { display: none; }
    .stat { flex: none; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-image img { height: 400px; }
    .about-image-accent { display: none; }

    .services-grid { grid-template-columns: 1fr; }
    .services-grid .service-card:last-child { grid-column: span 1; }

    .areas-grid { grid-template-columns: 1fr; }
    .area-card img { height: 220px; }

    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonials-grid .testimonial-card:last-child { grid-column: span 1; }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-form-wrap { padding: 28px; }
    .form-row { grid-template-columns: 1fr; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding-top: 72px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 280px; }
}
