/* ═══════════════════════════════════════════
   Adam Kitt — The Singing Realtor
   Stylesheet
   ═══════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1a2e2b;
    background: #faf8f4;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── FONT FAMILIES ── */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.2; }

/* ── COLOR TOKENS ── */
:root {
    --emerald: #047857;
    --emerald-dark: #035c43;
    --emerald-light: #d1fae5;
    --cream: #faf8f4;
    --cream-dark: #f0ece4;
    --navy: #0f2b26;
    --text: #1a2e2b;
    --text-muted: #5a6e6b;
    --white: #ffffff;
    --border: #e2ebe8;
    --shadow-sm: 0 1px 3px rgba(4,120,87,0.08);
    --shadow-md: 0 4px 20px rgba(4,120,87,0.10);
    --shadow-lg: 0 8px 40px rgba(4,120,87,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 50px;
    padding: 14px 32px;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn--emerald {
    background: var(--emerald);
    color: var(--white);
    border: 2px solid var(--emerald);
}
.btn--emerald:hover {
    background: var(--emerald-dark);
    border-color: var(--emerald-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn--cream {
    background: var(--cream);
    color: var(--emerald);
    border: 2px solid var(--cream);
}
.btn--cream:hover {
    background: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn--outline-emerald {
    background: transparent;
    color: var(--emerald);
    border: 2px solid var(--emerald);
}
.btn--outline-emerald:hover {
    background: var(--emerald);
    color: var(--white);
    transform: translateY(-2px);
}
.btn--outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}
.btn--outline-light:hover {
    background: var(--white);
    color: var(--emerald);
    border-color: var(--white);
    transform: translateY(-2px);
}
.btn--sm { padding: 10px 24px; font-size: 0.875rem; }
.btn--lg { padding: 16px 36px; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── SECTION HEADERS ── */
.section-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--emerald);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy);
    margin-bottom: 16px;
}
.section-sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 560px;
}
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-header .section-sub { margin: 0 auto; }

/* ───────── HEADER ───────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250,248,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: 76px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--navy);
}
.logo svg { color: var(--emerald); }
.logo--light { color: var(--white); }
.logo--light svg { color: var(--cream); }

.nav ul { display: flex; align-items: center; gap: 8px; }
.nav a {
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 50px;
    transition: all var(--transition);
}
.nav a:hover { color: var(--emerald); background: var(--emerald-light); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ───────── HERO ───────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,43,38,0.82) 0%, rgba(4,120,87,0.65) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 24px 80px;
    max-width: 800px;
}
.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(250,248,244,0.8);
    margin-bottom: 20px;
}
.hero-headline {
    font-size: clamp(2.75rem, 6vw, 5rem);
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero-sub {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    color: rgba(250,248,244,0.85);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 40px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 64px;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}
.stat { display: flex; align-items: baseline; gap: 2px; }
.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}
.stat-plus {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(250,248,244,0.7);
}
.stat-label {
    font-size: 0.8125rem;
    color: rgba(250,248,244,0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-left: 4px;
}
.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(250,248,244,0.25);
}
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(250,248,244,0.6);
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(8px); }
    60% { transform: translateX(-50%) translateY(4px); }
}

/* ───────── ABOUT ───────── */
.about { padding: 120px 0; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-images { position: relative; }
.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; height: 480px; object-fit: cover; }
.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--cream);
}
.about-img-secondary img { width: 240px; height: 180px; object-fit: cover; }
.about-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--emerald);
    color: var(--white);
    padding: 14px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}
.about-text .lead {
    font-size: 1.125rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 20px;
}
.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}
.about-credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}
.credential {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--cream-dark);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}
.credential svg { color: var(--emerald); flex-shrink: 0; }

/* ───────── SERVICES ───────── */
.services {
    padding: 120px 0;
    background: var(--white);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    padding: 40px 32px;
    background: var(--cream);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--emerald);
}
.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-light);
    border-radius: var(--radius);
    color: var(--emerald);
    margin-bottom: 24px;
    transition: all var(--transition);
}
.service-card:hover .service-icon {
    background: var(--emerald);
    color: var(--white);
}
.service-card h3 {
    font-size: 1.375rem;
    color: var(--navy);
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}
.service-link {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--emerald);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition);
}
.service-card:hover .service-link { gap: 10px; }

/* ───────── LISTINGS ───────── */
.listings { padding: 120px 0; }
.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}
.listing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.listing-img {
    position: relative;
    overflow: hidden;
    height: 240px;
}
.listing-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.listing-card:hover .listing-img img { transform: scale(1.05); }
.listing-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--emerald);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.listing-info { padding: 24px; }
.listing-address {
    font-family: 'Playfair Display', serif;
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}
.listing-location {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.listing-specs {
    display: flex;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 16px;
}
.spec-sep { color: var(--emerald); }
.listing-price {
    font-weight: 600;
    color: var(--emerald);
    font-size: 1.0625rem;
}
.listings-cta {
    text-align: center;
    padding: 48px;
    background: var(--cream-dark);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.listings-cta p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ───────── TESTIMONIALS ───────── */
.testimonials {
    padding: 120px 0;
    background: var(--navy);
}
.testimonials .section-eyebrow { color: var(--emerald-light); }
.testimonials .section-title { color: var(--white); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition);
}
.testimonial-card:hover {
    background: rgba(255,255,255,0.10);
    transform: translateY(-4px);
}
.testimonial-stars {
    display: flex;
    gap: 4px;
    color: #fbbf24;
    margin-bottom: 24px;
}
.testimonial-card blockquote {
    font-size: 1.0625rem;
    color: rgba(250,248,244,0.88);
    line-height: 1.8;
    margin-bottom: 28px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.author-avatar {
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--emerald);
}
.author-avatar img { width: 40px; height: 40px; object-fit: cover; }
.author-name {
    font-weight: 600;
    color: var(--white);
    font-size: 0.9375rem;
}
.author-detail {
    font-size: 0.8125rem;
    color: rgba(250,248,244,0.55);
}

/* ───────── CTA BANNER ───────── */
.cta-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}
.cta-bg {
    position: absolute;
    inset: 0;
}
.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,43,38,0.88) 0%, rgba(4,120,87,0.75) 100%);
}
.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
}
.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--white);
    margin-bottom: 20px;
}
.cta-content p {
    font-size: 1.125rem;
    color: rgba(250,248,244,0.85);
    margin-bottom: 40px;
    line-height: 1.7;
}
.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ───────── CONTACT ───────── */
.contact { padding: 120px 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contact-info .lead {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-light);
    border-radius: var(--radius);
    color: var(--emerald);
    flex-shrink: 0;
}
.contact-label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.contact-item p, .contact-item a {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.6;
}
.contact-item a:hover { color: var(--emerald); }

.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--cream);
    transition: all var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(4,120,87,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #a0b4b0; }
.form-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

/* Success state */
.form-success {
    text-align: center;
    padding: 40px 20px;
}
.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-light);
    border-radius: 50%;
    color: var(--emerald);
}
.form-success h3 {
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 12px;
}
.form-success p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* ───────── FOOTER ───────── */
.footer {
    background: var(--navy);
    color: rgba(250,248,244,0.7);
    padding: 80px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 64px;
}
.footer-brand p {
    margin-top: 16px;
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 280px;
}
.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cream);
    margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
    font-size: 0.9375rem;
    color: rgba(250,248,244,0.6);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--cream); }
.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 4px;
}
.footer-contact a { color: rgba(250,248,244,0.6); transition: color var(--transition); }
.footer-contact a:hover { color: var(--cream); }

.footer-bottom {
    border-top: 1px solid rgba(250,248,244,0.1);
    padding: 24px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(250,248,244,0.45);
}
.footer-legal { font-size: 0.75rem; }

/* ───────── ANIMATIONS ───────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 1024px) {
    .about-grid { gap: 48px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .listings-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(250,248,244,0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav ul { flex-direction: column; gap: 4px; }
    .nav a { display: block; padding: 14px 16px; }

    .hero-content { padding: 140px 24px 100px; }
    .hero-stats { flex-direction: column; gap: 20px; align-items: flex-start; }
    .stat-divider { display: none; }

    .about-grid { grid-template-columns: 1fr; gap: 64px; }
    .about-img-secondary { right: 16px; bottom: -24px; }
    .about-img-main img { height: 360px; }
    .about-credentials { grid-template-columns: 1fr; }

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

    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-form-wrap { padding: 32px 24px; }
    .form-row { grid-template-columns: 1fr; }

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

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