/* ============================================
   CHARIS KNIGHT — REAL ESTATE WEBSITE STYLES
   Palette: Charcoal (#2D2D2D) + Coral (#FF6B4A)
   Fonts: Montserrat (headings) + Inter (body)
   ============================================ */

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

:root {
    --charcoal: #2D2D2D;
    --charcoal-light: #3A3A3A;
    --charcoal-dark: #1E1E1E;
    --coral: #FF6B4A;
    --coral-dark: #E8553A;
    --coral-light: #FF8F75;
    --white: #FFFFFF;
    --off-white: #F7F5F3;
    --gray-100: #F0EDEA;
    --gray-200: #E2DED9;
    --gray-400: #999490;
    --gray-600: #6B6662;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(45,45,45,0.08);
    --shadow-md: 0 8px 30px rgba(45,45,45,0.12);
    --shadow-lg: 0 20px 60px rgba(45,45,45,0.18);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; line-height: 1.15; color: var(--charcoal); }

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 12px;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

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

.lead {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-coral {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}
.btn-coral:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,107,74,0.35);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-coral {
    background: transparent;
    color: var(--coral);
    border-color: var(--coral);
}
.btn-outline-coral:hover {
    background: var(--coral);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm { padding: 10px 22px; font-size: 0.82rem; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- HEADER / NAV ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--coral);
    clip-path: polygon(50% 0%, 100% 40%, 85% 100%, 15% 100%, 0% 40%);
    flex-shrink: 0;
}
.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--charcoal);
    letter-spacing: -0.02em;
}
.logo-sub {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--coral);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-links a:hover { color: var(--coral); background: rgba(255,107,74,0.07); }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: var(--charcoal);
    overflow: hidden;
    padding: 120px 0 80px;
}

/* Geometric shapes */
.geo { position: absolute; pointer-events: none; }

.geo-circle-1 {
    width: 520px; height: 520px;
    border-radius: 50%;
    background: var(--coral);
    opacity: 0.08;
    top: -120px; right: -100px;
}
.geo-rect-1 {
    width: 280px; height: 280px;
    background: var(--coral);
    opacity: 0.06;
    bottom: 60px; left: -60px;
    transform: rotate(25deg);
    border-radius: var(--radius-lg);
}
.geo-triangle-1 {
    width: 0; height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 170px solid var(--coral);
    opacity: 0.07;
    top: 200px; left: 80px;
    transform: rotate(-15deg);
}
.geo-dot-grid {
    width: 120px; height: 120px;
    top: 160px; right: 320px;
    background-image: radial-gradient(circle, var(--coral) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.3;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 44px;
    box-shadow: var(--shadow-lg);
    max-width: 560px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,107,74,0.12);
    color: var(--coral);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2rem, 4vw, 2.85rem);
    color: var(--charcoal);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Floating stat cards */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 22px 28px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
    animation: float 4s ease-in-out infinite;
}
.stat-card-2 { animation-delay: -1.3s; }
.stat-card-3 { animation-delay: -2.6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--coral);
    letter-spacing: -0.02em;
}
.stat-suffix { font-size: 1.1rem; }
.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 0.02em;
}

/* ---------- ABOUT ---------- */
.about {
    padding: 110px 0;
    background: var(--white);
}

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

.about-visual { position: relative; }

.about-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}
.about-img-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    width: 200px; height: 200px;
    background: var(--coral);
    opacity: 0.15;
    border-radius: var(--radius-lg);
    bottom: -30px; right: -30px;
    z-index: 1;
}

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

.about-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 28px 0 36px;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--charcoal);
    line-height: 1.5;
}

.check-icon {
    width: 20px; height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--coral);
}

/* ---------- SERVICES ---------- */
.services {
    padding: 110px 0;
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.services-bg-shape {
    position: absolute;
    width: 400px; height: 400px;
    background: var(--coral);
    opacity: 0.04;
    border-radius: 50%;
    top: -100px; right: -100px;
    pointer-events: none;
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 36px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--coral);
}

.service-icon {
    width: 56px; height: 56px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ---------- AREAS ---------- */
.areas {
    padding: 110px 0;
    background: var(--white);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.area-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: var(--white);
}
.area-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.area-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.area-img img { display: none; }
.area-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45,45,45,0.55) 0%, transparent 60%);
}
.area-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.area-card:hover .area-img::before { transform: scale(1.06); }

.area-info {
    padding: 24px 28px;
    background: var(--white);
}

.area-info h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.area-info p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.65;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    padding: 110px 0;
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
}
.testimonials::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: var(--coral);
    opacity: 0.05;
    border-radius: 50%;
    top: -200px; left: -150px;
    pointer-events: none;
}

.testimonials .section-title { color: var(--white); }
.testimonials .section-subtitle { color: var(--gray-400); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background: var(--charcoal-light);
    border-radius: var(--radius-md);
    padding: 36px 32px;
    border: 1px solid rgba(255,255,255,0.07);
    transition: var(--transition);
}
.testimonial-card:hover {
    border-color: var(--coral);
    transform: translateY(-4px);
}

.testimonial-stars { display: flex; gap: 4px; margin-bottom: 20px; }

.testimonial-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author { display: flex; flex-direction: column; gap: 4px; }
.author-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
}
.author-detail {
    font-size: 0.8rem;
    color: var(--coral);
    font-weight: 500;
}

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

.cta-shape-1 {
    position: absolute;
    width: 300px; height: 300px;
    background: var(--white);
    opacity: 0.08;
    border-radius: 50%;
    top: -80px; left: -80px;
    pointer-events: none;
}
.cta-shape-2 {
    position: absolute;
    width: 180px; height: 180px;
    background: var(--white);
    opacity: 0.06;
    border-radius: var(--radius-lg);
    bottom: -40px; right: 10%;
    transform: rotate(20deg);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.88);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

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

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

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--charcoal);
    transition: var(--transition);
}
.contact-item:hover { color: var(--coral); }
.contact-item:not(a) { cursor: default; }

.contact-icon {
    width: 44px; height: 44px;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

/* Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 7px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--off-white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255,107,74,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }

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

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(255,107,74,0.08);
    border: 1px solid rgba(255,107,74,0.25);
    border-radius: var(--radius-sm);
    color: var(--coral-dark);
    font-weight: 600;
    font-size: 0.9rem;
}
.form-success svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--coral); }

/* ---------- FOOTER ---------- */
.footer {
    background: var(--charcoal-dark);
    color: var(--white);
    padding: 64px 0 0;
}

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

.footer-tagline {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-top: 16px;
    line-height: 1.65;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: var(--transition);
}
.footer-links a:hover { color: var(--coral); }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-phone, .footer-email {
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: var(--transition);
}
.footer-phone:hover, .footer-email:hover { color: var(--coral); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
}
.footer-bottom p {
    font-size: 0.82rem;
    color: var(--gray-400);
    text-align: center;
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: row; flex-wrap: wrap; margin-top: 32px; }
    .stat-card { flex: 1; min-width: 140px; }
    .about-inner { grid-template-columns: 1fr; gap: 40px; }
    .about-content { max-width: 100%; }
    .contact-inner { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: 0;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 100px 32px 40px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { padding: 14px 16px; font-size: 1rem; }

    .hero { padding: 100px 0 60px; }
    .hero-card { padding: 32px 28px; }
    .hero-headline { font-size: 1.85rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { justify-content: center; }

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

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

    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom p { text-align: left; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-card { padding: 28px 22px; }
    .stat-card { min-width: 100%; }
    .about-img-wrap img { height: 320px; }
}
