/* ==========================================================================
   AutoRepairKingman.com styles.
   The public site uses a warmer desert-road visual system so the referral
   brand feels specific to Kingman instead of generic lead-generation chrome.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
    --color-ink: #201d19;
    --color-ink-soft: #372f28;
    --color-muted: #6b5a4b;
    --color-muted-soft: #8d7b69;
    --color-sand: #efe2d0;
    --color-cream: #fbf7f0;
    --color-surface: rgba(255, 250, 243, 0.9);
    --color-surface-strong: #fffdfa;
    --color-line: rgba(95, 73, 50, 0.18);
    --color-line-strong: rgba(95, 73, 50, 0.3);
    --color-accent: #b5532c;
    --color-accent-strong: #8a391c;
    --color-accent-soft: #ffe1c8;
    --color-gold: #d6a060;
    --color-success: #25754b;
    --color-warning: #8a5c18;
    --color-danger: #b1402a;
    --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-body: "Instrument Sans", "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 32px;
    --shadow-sm: 0 14px 36px rgba(43, 31, 23, 0.08);
    --shadow-md: 0 24px 50px rgba(43, 31, 23, 0.12);
    --shadow-lg: 0 34px 72px rgba(32, 29, 25, 0.18);
    --container-max: 1180px;
    --container-padding: 1.25rem;
}

/* --------------------------------------------------------------------------
   Reset and base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-ink);
    background:
        radial-gradient(circle at top left, rgba(214, 160, 96, 0.22), transparent 30%),
        linear-gradient(180deg, #efe4d4 0%, #f8f2e8 18%, #fbf8f3 100%);
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

main, section, footer, header, nav, article, aside {
    position: relative;
}

img, svg {
    display: block;
    max-width: 100%;
}

button, input, select, textarea {
    font: inherit;
}

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

a:hover {
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid rgba(181, 83, 44, 0.45);
    outline-offset: 3px;
}

::selection {
    background: rgba(181, 83, 44, 0.18);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 0.95;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(3.4rem, 7vw, 6rem);
}

h2 {
    font-size: clamp(2.25rem, 4vw, 3.75rem);
}

h3 {
    font-size: clamp(1.6rem, 2.2vw, 2.1rem);
}

p {
    margin: 0 0 1rem;
}

ul, ol {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

li {
    margin-bottom: 0.75rem;
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: rgba(95, 73, 50, 0.08);
    padding: 0.125rem 0.375rem;
    border-radius: 6px;
}

.container {
    width: min(100%, var(--container-max));
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.main-content {
    min-height: calc(100vh - 340px);
}

.section-kicker,
.eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--color-accent-strong);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 42rem;
    margin-bottom: 2.25rem;
}

.section-heading p:last-child {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 247, 240, 0.86);
    border-bottom: 1px solid rgba(95, 73, 50, 0.12);
    backdrop-filter: blur(18px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 5.2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.logo-icon {
    width: 3.5rem;
    height: 3.5rem;
    flex: none;
}

.logo-icon circle {
    fill: rgba(255, 251, 245, 0.9);
    stroke: rgba(95, 73, 50, 0.2);
    stroke-width: 2;
}

.logo-icon path {
    stroke: var(--color-accent-strong);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.logo-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.02em;
    line-height: 0.95;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.main-nav a {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: var(--color-ink-soft);
    font-size: 0.95rem;
    font-weight: 600;
    transition:
        background-color 0.24s ease,
        color 0.24s ease,
        transform 0.24s ease;
}

.main-nav a:hover {
    background: rgba(181, 83, 44, 0.08);
    color: var(--color-ink);
    transform: translateY(-1px);
}

.main-nav .btn {
    margin-left: 0.35rem;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.35rem;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(95, 73, 50, 0.18);
    border-radius: 999px;
    background: rgba(255, 251, 245, 0.9);
    cursor: pointer;
    transition: border-color 0.24s ease, background-color 0.24s ease;
}

.mobile-menu-toggle:hover {
    border-color: rgba(181, 83, 44, 0.4);
    background: rgba(255, 247, 239, 1);
}

.mobile-menu-toggle span {
    width: 1.35rem;
    height: 2px;
    background: var(--color-ink);
    border-radius: 999px;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.25rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.97rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        background-color 0.24s ease,
        color 0.24s ease,
        border-color 0.24s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--color-cream);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-strong) 100%);
    box-shadow: 0 18px 36px rgba(138, 57, 28, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 22px 42px rgba(138, 57, 28, 0.32);
}

.btn-secondary {
    color: var(--color-ink);
    background: rgba(255, 251, 245, 0.78);
    border-color: rgba(95, 73, 50, 0.18);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(95, 73, 50, 0.28);
}

.btn-lg {
    min-height: 3.55rem;
    padding: 0.95rem 1.8rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    min-height: 2.5rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    overflow: hidden;
    padding: clamp(4.2rem, 7vw, 6.5rem) 0 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0 auto auto -12%;
    width: 34rem;
    height: 34rem;
    background: radial-gradient(circle, rgba(214, 160, 96, 0.28) 0%, rgba(214, 160, 96, 0) 72%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% 5% auto;
    width: 30rem;
    height: 30rem;
    background: radial-gradient(circle, rgba(181, 83, 44, 0.14) 0%, rgba(181, 83, 44, 0) 72%);
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.hero-copy {
    max-width: 42rem;
}

.hero-copy h1 {
    margin-bottom: 1rem;
}

.hero-subtitle {
    max-width: 36rem;
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 1.18rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 2rem 0;
}

.hero-meta {
    display: grid;
    gap: 0.85rem;
    max-width: 40rem;
    padding: 0;
    list-style: none;
}

.hero-meta li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0.95rem 1rem;
    background: rgba(255, 250, 243, 0.72);
    border: 1px solid rgba(95, 73, 50, 0.14);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
    color: var(--color-ink-soft);
}

.hero-meta li::before {
    content: "";
    flex: none;
    width: 0.7rem;
    height: 0.7rem;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
}

.hero-band {
    margin-top: 3rem;
    padding: 1rem 0 1.15rem;
    background: rgba(255, 252, 247, 0.7);
    border-top: 1px solid rgba(95, 73, 50, 0.12);
    border-bottom: 1px solid rgba(95, 73, 50, 0.12);
    backdrop-filter: blur(18px);
}

.hero-band-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hero-band-grid p {
    margin: 0;
    color: var(--color-ink-soft);
    font-size: 0.95rem;
}

.reveal-up {
    animation: reveal-up 0.7s ease forwards;
}

.reveal-delay {
    animation-delay: 0.12s;
    opacity: 0;
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Shared section layouts
   -------------------------------------------------------------------------- */
.how-it-works,
.services,
.cta-section,
.content-section,
.faq-section,
.form-section,
.thank-you-section {
    padding: clamp(3.5rem, 6vw, 5rem) 0;
}

.how-it-works {
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.48), rgba(255, 252, 247, 0));
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.step {
    min-height: 100%;
    padding: 1.6rem;
    background: var(--color-surface);
    border: 1px solid rgba(95, 73, 50, 0.16);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.step:hover {
    transform: translateY(-4px);
    border-color: rgba(181, 83, 44, 0.26);
    box-shadow: var(--shadow-md);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4rem;
    min-height: 2.25rem;
    margin-bottom: 1.1rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    color: var(--color-accent-strong);
    background: var(--color-accent-soft);
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.14em;
}

.step h3 {
    margin-bottom: 0.55rem;
}

.step p {
    margin: 0;
    color: var(--color-muted);
}

.services {
    background: linear-gradient(180deg, rgba(246, 239, 228, 0.72), rgba(251, 247, 240, 0.15));
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
    min-height: 100%;
    padding: 1.5rem;
    color: var(--color-ink);
    background: var(--color-surface-strong);
    border: 1px solid rgba(95, 73, 50, 0.16);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(181, 83, 44, 0.34);
    box-shadow: var(--shadow-md);
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.service-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
    min-height: 2.2rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    color: var(--color-cream);
    background: var(--color-ink);
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.16em;
}

.service-tag {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.service-card h3 {
    font-size: 2rem;
}

.service-card p:last-child {
    margin: 0;
    color: var(--color-muted);
}

.cta-section .section-kicker {
    color: rgba(214, 160, 96, 0.92);
}

.quote-checklist,
.quote-notes {
    padding: 0;
    list-style: none;
}

.quote-checklist li,
.quote-notes li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
}

.quote-checklist li + li,
.quote-notes li + li {
    margin-top: 0.8rem;
}

.quote-checklist li::before,
.quote-notes li::before {
    content: "";
    flex: none;
    width: 0.7rem;
    height: 0.7rem;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
}

.cta-section {
    overflow: hidden;
    color: var(--color-cream);
    text-align: center;
    background:
        radial-gradient(circle at top center, rgba(214, 160, 96, 0.18), transparent 42%),
        linear-gradient(135deg, rgba(42, 37, 32, 0.98), rgba(32, 29, 25, 0.98));
}

.cta-section .container {
    max-width: 48rem;
}

.cta-section p:last-of-type {
    margin-bottom: 0;
    color: rgba(251, 247, 240, 0.82);
    font-size: 1.05rem;
}

.cta-section .hero-cta {
    justify-content: center;
    margin: 2rem 0 0;
}

.cta-section .btn-secondary {
    color: var(--color-cream);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Content pages
   -------------------------------------------------------------------------- */
.page-hero {
    overflow: hidden;
    padding: clamp(3.2rem, 6vw, 4.7rem) 0;
    background: linear-gradient(180deg, rgba(255, 249, 241, 0.88), rgba(246, 239, 229, 0.6));
    border-bottom: 1px solid rgba(95, 73, 50, 0.12);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: auto auto -9rem -6rem;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, rgba(214, 160, 96, 0.2), rgba(214, 160, 96, 0));
    pointer-events: none;
}

.page-hero .container {
    max-width: 54rem;
}

.page-intro {
    max-width: 42rem;
    margin-top: 0.85rem;
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 1.08rem;
}

.content-wrapper {
    max-width: 50rem;
}

.content-wrapper p,
.content-wrapper li {
    color: var(--color-ink-soft);
}

.content-wrapper a,
.faq-item a,
.quote-card a {
    color: var(--color-accent-strong);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.16em;
}

.content-wrapper a:hover,
.faq-item a:hover,
.quote-card a:hover {
    color: var(--color-accent);
}

.content-wrapper h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content-wrapper h2:first-child {
    margin-top: 0;
}

.content-wrapper h3 {
    margin-top: 1.6rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
}

.content-wrapper ul,
.content-wrapper ol {
    padding-left: 1.2rem;
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--color-surface-strong);
    border: 1px solid rgba(95, 73, 50, 0.16);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cost-table th,
.cost-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(95, 73, 50, 0.1);
}

.cost-table th {
    color: var(--color-ink);
    background: rgba(239, 226, 208, 0.46);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cost-table tr:last-child td {
    border-bottom: none;
}

.cost-table tr:hover {
    background: rgba(255, 248, 239, 0.72);
}

.disclaimer {
    color: var(--color-muted);
    font-size: 0.92rem;
    font-style: italic;
}

.faq-section {
    background: linear-gradient(180deg, rgba(246, 239, 229, 0.58), rgba(251, 247, 240, 0.1));
}

.faq-list {
    display: grid;
    gap: 1rem;
    max-width: 56rem;
    margin: 0 auto;
}

.faq-item {
    padding: 1.4rem 1.45rem;
    background: var(--color-surface-strong);
    border: 1px solid rgba(95, 73, 50, 0.16);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    margin-bottom: 0.7rem;
    font-family: var(--font-body);
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
}

.faq-item p {
    margin: 0;
    color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Quote flow
   -------------------------------------------------------------------------- */
.quote-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    gap: 1.5rem;
    align-items: start;
}

.quote-sidebar {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 7rem;
}

.quote-card {
    padding: 1.4rem;
    background: var(--color-surface);
    border: 1px solid rgba(95, 73, 50, 0.16);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.quote-card h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.quote-card .section-kicker {
    margin-bottom: 0.65rem;
}

.quote-notes {
    margin-bottom: 0;
}

.quote-notes li,
.quote-checklist li {
    color: var(--color-ink-soft);
}

.form-wrapper {
    max-width: none;
}

.quote-form {
    padding: 2rem;
    background: var(--color-surface-strong);
    border: 1px solid rgba(95, 73, 50, 0.16);
    border-radius: 30px;
    box-shadow: var(--shadow-md);
}

.quote-form-header {
    margin-bottom: 1.8rem;
}

.quote-form-header h2 {
    margin-bottom: 0.7rem;
    font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.quote-form-header p:last-child {
    margin-bottom: 0;
    color: var(--color-muted);
}

.quote-form-section {
    min-width: 0;
    margin: 0 0 1.5rem;
    padding: 0 0 1.5rem;
    border: none;
    border-bottom: 1px solid rgba(95, 73, 50, 0.14);
}

.quote-form-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.quote-form-section legend {
    padding: 0;
    margin-bottom: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-section-intro {
    margin-bottom: 1.2rem;
    color: var(--color-muted);
}

.form-group {
    margin-bottom: 1.05rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--color-ink-soft);
    font-size: 0.95rem;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea,
.admin-filters select {
    width: 100%;
    padding: 0.9rem 1rem;
    color: var(--color-ink);
    background: #fffdfb;
    border: 1px solid rgba(95, 73, 50, 0.16);
    border-radius: 16px;
    transition:
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        background-color 0.24s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.admin-filters select:focus {
    outline: none;
    border-color: rgba(181, 83, 44, 0.64);
    box-shadow: 0 0 0 4px rgba(181, 83, 44, 0.14);
    background: #ffffff;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: rgba(177, 64, 42, 0.64);
    background: #fff3ef;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-messages {
    margin-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   Thank you and legal pages
   -------------------------------------------------------------------------- */
.thank-you-content {
    max-width: 46rem;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(37, 117, 75, 0.12);
}

.success-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-success);
}

.thank-you-message {
    margin-top: 0.9rem;
    color: var(--color-muted);
    font-size: 1.12rem;
}

.next-steps {
    margin: 2rem 0;
    padding: 1.6rem;
    text-align: left;
    background: var(--color-surface);
    border: 1px solid rgba(95, 73, 50, 0.16);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.next-steps h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.next-steps ol {
    margin-bottom: 0;
}

.next-steps li {
    color: var(--color-ink-soft);
}

.next-steps strong {
    display: block;
    margin-bottom: 0.2rem;
}

.next-steps p {
    margin: 0;
    color: var(--color-muted);
}

.return-links {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 2rem;
}

.legal-content h2 {
    padding-top: 1.2rem;
    border-top: 1px solid rgba(95, 73, 50, 0.12);
}

.legal-content h2:first-child {
    padding-top: 0;
    border-top: none;
}

/* --------------------------------------------------------------------------
   Admin
   -------------------------------------------------------------------------- */
.admin-dashboard {
    max-width: 62rem;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.4rem;
    text-align: center;
    background: var(--color-surface-strong);
    border: 1px solid rgba(95, 73, 50, 0.16);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.stat-card h3 {
    margin-bottom: 0.5rem;
    color: var(--color-muted);
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.stat-number {
    color: var(--color-accent);
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 0.04em;
}

.admin-table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
    background: var(--color-surface-strong);
    border: 1px solid rgba(95, 73, 50, 0.16);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table th,
.admin-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(95, 73, 50, 0.1);
}

.admin-table th {
    color: var(--color-ink);
    background: rgba(239, 226, 208, 0.46);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background: rgba(255, 248, 239, 0.72);
}

.admin-filters {
    margin-bottom: 1.25rem;
}

.admin-filters label {
    display: inline-block;
    margin-right: 0.5rem;
    font-weight: 700;
}

.admin-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.lead-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
}

.lead-info,
.lead-actions,
.lead-events,
.add-form {
    padding: 1.4rem;
    background: var(--color-surface-strong);
    border: 1px solid rgba(95, 73, 50, 0.16);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.lead-actions {
    height: fit-content;
}

.lead-events {
    grid-column: 1 / -1;
}

.info-list {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 0.45rem 1rem;
}

.info-list dt {
    color: var(--color-muted);
    font-weight: 700;
}

.info-list dd {
    margin: 0;
}

.problem-description {
    padding: 1rem;
    background: rgba(255, 248, 239, 0.82);
    border-radius: 16px;
    white-space: pre-wrap;
}

.status-form .form-group {
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-new { background: #dbeafe; color: #1e40af; }
.status-needs_review { background: #fef3c7; color: #92400e; }
.status-qualified { background: #dcfce7; color: #166534; }
.status-forwarded { background: #e0e7ff; color: #3730a3; }
.status-spam_rejected { background: #fee2e2; color: #991b1b; }
.status-partner_accepted { background: #dcfce7; color: #166534; }
.status-partner_disputed { background: #fee2e2; color: #991b1b; }
.status-closed_won { background: #dcfce7; color: #166534; }
.status-closed_lost { background: #f3f4f6; color: #6b7280; }
.status-invoiced { background: #e0e7ff; color: #3730a3; }
.status-paid { background: #dcfce7; color: #166534; }
.status-trial { background: #fef3c7; color: #92400e; }
.status-active { background: #dcfce7; color: #166534; }
.status-inactive { background: #f3f4f6; color: #6b7280; }

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.add-form.hidden {
    display: none;
}

.partner-form .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    margin-top: 4rem;
    padding: clamp(3rem, 6vw, 4rem) 0 2rem;
    color: var(--color-cream);
    background:
        radial-gradient(circle at top left, rgba(214, 160, 96, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(42, 37, 32, 0.98), rgba(32, 29, 25, 1));
}

.site-footer .container {
    display: grid;
    gap: 1.5rem;
}

.footer-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 1.5rem;
    align-items: center;
    padding: 1.35rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
}

.footer-links a {
    color: rgba(251, 247, 240, 0.84);
    font-size: 0.92rem;
}

.footer-links a:hover,
.footer-contact-link:hover {
    color: var(--color-gold);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: flex-start;
}

.footer-contact-link {
    color: rgba(251, 247, 240, 0.92);
    font-weight: 700;
}

.copyright {
    margin: 0;
    color: rgba(251, 247, 240, 0.56);
    font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .hero-layout,
    .quote-shell,
    .footer-meta,
    .lead-detail {
        grid-template-columns: 1fr;
    }

    .service-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quote-sidebar {
        position: static;
    }

    .lead-events {
        grid-column: auto;
    }
}

@media (max-width: 820px) {
    .hero-band-grid,
    .steps,
    .service-cards,
    .partner-form .form-row {
        grid-template-columns: 1fr;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .section-heading {
        max-width: none;
    }

    .hero-band-grid p {
        padding-bottom: 0.8rem;
        border-bottom: 1px solid rgba(95, 73, 50, 0.1);
    }

    .hero-band-grid p:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    .info-list {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
        min-height: auto;
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        padding: 1rem;
        background: rgba(255, 252, 247, 0.98);
        border: 1px solid rgba(95, 73, 50, 0.14);
        border-radius: 24px;
        box-shadow: var(--shadow-md);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
    }

    .main-nav .btn {
        margin-left: 0;
    }

    .hero h1 {
        font-size: clamp(3rem, 13vw, 4.8rem);
    }

    .hero-cta,
    .return-links {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn,
    .return-links .btn {
        width: 100%;
    }

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

    .cost-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 560px) {
    :root {
        --container-padding: 1rem;
    }

    .logo-text {
        font-size: 1.6rem;
    }

    .section-kicker,
    .eyebrow,
    .service-tag {
        letter-spacing: 0.12em;
    }

    .quote-form,
    .quote-card,
    .step,
    .service-card,
    .next-steps,
    .lead-info,
    .lead-actions,
    .lead-events,
    .add-form {
        padding: 1.25rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
