/* ==========================================================================
   JMKnox — Main Stylesheet
   Design system: custom properties → base → layout → components → pages
   ========================================================================== */

/* ─── Custom Properties ───────────────────────────────────────────────────── */
:root {
    /* Colors */
    --navy:        #1B2B4B;
    --navy-dark:   #111e35;
    --navy-light:  #243660;
    --gold:        #C8A951;
    --gold-dark:   #a88a3a;
    --gold-light:  #d9bc72;
    --dark:        #1a1a1a;
    --text:        #3d3d3d;
    --text-light:  #6b6b6b;
    --bg:          #F8F7F4;
    --bg-alt:      #EFEDE8;
    --border:      #E2DED6;
    --white:       #ffffff;

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Inter', system-ui, sans-serif;

    /* Spacing scale */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;
    --space-2xl: 6rem;
    --space-3xl: 9rem;

    /* Layout */
    --container:     1200px;
    --container-sm:  760px;
    --radius:        4px;
    --radius-md:     8px;

    /* Transitions */
    --transition:    0.2s ease;
    --transition-md: 0.35s ease;

    /* Shadows */
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

    /* Nav height */
    --nav-h: 72px;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--gold-dark); }

ul, ol { list-style: none; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ─── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; font-weight: 600; font-family: var(--font-body); }
h5 { font-size: 1rem;   font-weight: 600; font-family: var(--font-body); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-light);
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

/* ─── Layout ────────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-sm {
    max-width: var(--container-sm);
}

.section {
    padding: var(--space-2xl) 0;
}

.section-sm {
    padding: var(--space-xl) 0;
}

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

.section-header h2 {
    margin-bottom: var(--space-sm);
}

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

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline-navy:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2.4rem;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.55rem 1.2rem;
    font-size: 0.82rem;
}

/* ─── Navigation ─────────────────────────────────────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    transition: background var(--transition-md), box-shadow var(--transition-md);
}

.site-nav.nav-transparent {
    background: transparent;
}

.site-nav.nav-solid {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    color: var(--white);
    transition: color var(--transition);
}

.nav-solid .nav-logo {
    color: var(--navy);
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.logo-tagline {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links li a {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.85);
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}

.nav-links li.active a,
.nav-links li a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.nav-solid .nav-links li a {
    color: var(--text);
}

.nav-solid .nav-links li.active a,
.nav-solid .nav-links li a:hover {
    color: var(--navy);
    background: var(--bg);
}

.nav-links li.nav-cta a {
    background: var(--gold);
    color: var(--navy-dark);
    font-weight: 600;
    padding: 0.5rem 1.2rem;
}
.nav-links li.nav-cta a:hover {
    background: var(--gold-dark);
    color: var(--white);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-solid .nav-toggle span { background: var(--navy); }

/* ─── Hero Section ───────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--navy-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    background-image: url('../images/hero/hero-knoxville.jpg');
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(17, 30, 53, 0.82) 0%,
        rgba(27, 43, 75, 0.65) 50%,
        rgba(17, 30, 53, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: var(--space-3xl) 0 var(--space-2xl);
    max-width: 680px;
}

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

.hero h1 {
    color: var(--white);
    font-weight: 500;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.80);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

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

.hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ─── Stats Strip ────────────────────────────────────────────────────────────── */
.stats-strip {
    background: var(--navy);
    padding: var(--space-lg) 0;
}

.stats-strip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.stat-item {
    text-align: center;
    padding: var(--space-sm);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--gold);
    display: block;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}

/* ─── Service Cards ──────────────────────────────────────────────────────────── */
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: box-shadow var(--transition-md), transform var(--transition-md);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-card h3 {
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-card .card-link {
    display: inline-block;
    margin-top: var(--space-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-dark);
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 1px;
    transition: color var(--transition), border-color var(--transition);
}
.service-card .card-link:hover {
    color: var(--navy);
    border-color: var(--navy);
}

/* ─── Community Cards ────────────────────────────────────────────────────────── */
.community-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--navy-dark);
}

.community-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.community-card:hover img {
    transform: scale(1.04);
}

.community-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,30,53,0.85) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
}

.community-card-overlay h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.community-card-overlay p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: var(--space-sm);
}

.community-card-overlay .btn {
    align-self: flex-start;
}

/* ─── Split Section (Buyers / Sellers) ──────────────────────────────────────── */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}

.split-panel {
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--space-2xl) var(--space-xl);
    overflow: hidden;
}

.split-panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.split-panel-overlay {
    position: absolute;
    inset: 0;
}

.split-panel-buyers .split-panel-overlay  { background: rgba(17, 30, 53, 0.80); }
.split-panel-sellers .split-panel-overlay { background: rgba(27, 20, 10, 0.75); }

.split-panel-content {
    position: relative;
    z-index: 1;
    max-width: 360px;
}

.split-panel-content .section-label { color: var(--gold-light); }
.split-panel-content h2 { color: var(--white); margin-bottom: var(--space-sm); }
.split-panel-content p  { color: rgba(255,255,255,0.75); margin-bottom: var(--space-md); font-size: 0.95rem; }

/* ─── Valuation CTA ──────────────────────────────────────────────────────────── */
.valuation-section {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.valuation-inner {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.valuation-text { flex: 1; }
.valuation-text h2 { margin-bottom: var(--space-sm); }
.valuation-cta { flex-shrink: 0; }

/* ─── Testimonials ───────────────────────────────────────────────────────────── */
.testimonials-section {
    background: var(--navy);
}

.testimonials-section .section-label { color: var(--gold-light); }
.testimonials-section .section-header h2 { color: var(--white); }

.testimonial-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(255,255,255,0.88);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after  { content: '\201D'; }

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.testimonial-author-info strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold);
}

.testimonial-author-info span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* ─── About Snippet ──────────────────────────────────────────────────────────── */
.about-section .grid-2 {
    align-items: center;
    gap: var(--space-2xl);
}

.about-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--bg-alt);
}

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

.about-content h2 { margin-bottom: var(--space-sm); }
.about-content .lead { margin-bottom: var(--space-md); }
.about-content .credentials { margin: var(--space-md) 0; }
.about-content .credentials li {
    font-size: 0.88rem;
    color: var(--text-light);
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.about-content .credentials li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ─── Contact Form ────────────────────────────────────────────────────────────── */
.contact-section { background: var(--bg); }

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

.contact-info h2 { margin-bottom: var(--space-sm); }
.contact-info .lead { margin-bottom: var(--space-lg); }

.contact-detail {
    margin-bottom: var(--space-md);
}
.contact-detail strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.25rem;
}
.contact-detail a {
    font-size: 1.05rem;
    color: var(--navy);
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27,43,75,0.08);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

/* ─── Page Hero (Interior Pages) ─────────────────────────────────────────────── */
.page-hero {
    background: var(--navy);
    padding: calc(var(--nav-h) + var(--space-xl)) 0 var(--space-xl);
    text-align: center;
}

.page-hero .section-label { color: var(--gold); }
.page-hero h1  { color: var(--white); margin-bottom: var(--space-sm); }
.page-hero .lead { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto; }

/* ─── Content Sections (Interior) ────────────────────────────────────────────── */
.content-section p,
.content-section li {
    font-size: 0.97rem;
    line-height: 1.75;
}

.content-list {
    list-style: none;
    margin: var(--space-md) 0;
}
.content-list li {
    padding: 0.4rem 0 0.4rem 1.25rem;
    position: relative;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.content-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

/* Process steps */
.process-steps {
    counter-reset: steps;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.process-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: var(--space-md);
    align-items: start;
}
.step-number {
    counter-increment: steps;
    width: 48px;
    height: 48px;
    background: var(--navy);
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-content h4 { margin-bottom: 0.25rem; }
.step-content p   { color: var(--text-light); font-size: 0.9rem; }

/* ─── Area Guide Cards ───────────────────────────────────────────────────────── */
.area-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition-md);
}
.area-card:hover { box-shadow: var(--shadow-md); }

.area-card-image {
    aspect-ratio: 16/9;
    background: var(--bg-alt);
    overflow: hidden;
}
.area-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.area-card:hover .area-card-image img { transform: scale(1.03); }

.area-card-body {
    padding: var(--space-md);
}
.area-card-body h3 { margin-bottom: 0.4rem; }
.area-card-body p  { font-size: 0.9rem; color: var(--text-light); margin-bottom: var(--space-sm); }

/* ─── CTA Banner ─────────────────────────────────────────────────────────────── */
.cta-banner {
    background: var(--navy);
    text-align: center;
    padding: var(--space-2xl) 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: var(--space-sm); }
.cta-banner p  { color: rgba(255,255,255,0.70); max-width: 540px; margin: 0 auto var(--space-lg); font-size: 1rem; }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.65);
    padding: var(--space-2xl) 0 var(--space-lg);
    font-size: 0.88rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.15rem;
}

.footer-logo-sub {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.footer-contact a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.footer-contact a:hover { color: var(--gold); }
.footer-contact p { margin-bottom: 0.35rem; }

.footer-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}
.footer-social a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}
.footer-social a:hover { color: var(--gold); }

.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-md);
    font-family: var(--font-body);
}

.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.60); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-legal, .footer-disclaimer {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.4rem;
}

.footer-legal a { color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

.footer-powered {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-top: var(--space-sm);
}

.footer-powered a {
    color: rgba(255,255,255,0.35);
    transition: color var(--transition);
}
.footer-powered a:hover { color: rgba(255,255,255,0.6); }

/* ─── Utility Classes ────────────────────────────────────────────────────────── */
.bg-light  { background: var(--bg); }
.bg-alt    { background: var(--bg-alt); }
.bg-navy   { background: var(--navy); }
.bg-dark   { background: var(--navy-dark); }
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--text-light); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-strip .container {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

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

    /* Nav */
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-md);
        box-shadow: var(--shadow-md);
        gap: 0.15rem;
    }

    .nav-links.open { display: flex; }

    .nav-links li a {
        color: var(--text);
        padding: 0.7rem 1rem;
    }
    .nav-links li.active a,
    .nav-links li a:hover {
        color: var(--navy);
        background: var(--bg);
    }
    .nav-links li.nav-cta a {
        background: var(--gold);
        color: var(--navy-dark);
        text-align: center;
    }

    /* Grids */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .split-panel {
        padding: var(--space-xl) var(--space-md);
    }

    .valuation-inner {
        flex-direction: column;
        text-align: center;
    }

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

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

    .hero-content {
        padding-top: calc(var(--nav-h) + var(--space-xl));
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
    }

    .process-step {
        grid-template-columns: 40px 1fr;
    }
}

@media (max-width: 480px) {
    .stats-strip .container {
        grid-template-columns: 1fr 1fr;
    }
    .stat-number {
        font-size: 2rem;
    }
}

/* ── Flash Messages (contact form feedback) ───────────────────────────────── */
.form-flash {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.75rem;
    font-size: 0.925rem;
    line-height: 1.6;
    border: 1px solid transparent;
}

.form-flash--success {
    background: #f0faf4;
    border-color: #a3d9b1;
    color: #1a5c33;
}

.form-flash--error {
    background: #fdf3f3;
    border-color: #f0b8b8;
    color: #7a1f1f;
}
