/* Corbett Claims - Premium Polished Styles */

:root {
    --primary: #1e3a5f;
    --primary-dark: #0f2744;
    --primary-soft: #3b82f6;
    --text: #111827;
    --muted: #4b5563;
    --soft-bg: #f9fafb;
    --border: #e5e7eb;
    --focus-ring: #3b82f6;
    --danger: #b91c1c;
    --success: #047857;
}

/* ---------- Vertical density presets ----------
   The page ships at "compact" spacing (set via data-density="compact" on <html>).
   The other presets are retained but no longer user-switchable — the toggle was
   removed once the owner settled on compact. */
:root,
:root[data-density="comfortable"] {
    --pad-section: 2.75rem;
    --pad-hero: 3.25rem;
    --gap-head: 1.5rem;
    --gap-grid: 1.5rem;
}
:root[data-density="spacious"] {
    --pad-section: 4rem;
    --pad-hero: 4.5rem;
    --gap-head: 2.25rem;
    --gap-grid: 2rem;
}
:root[data-density="compact"] {
    --pad-section: 2.25rem;
    --pad-hero: 2.75rem;
    --gap-head: 1.25rem;
    --gap-grid: 1.35rem;
}
:root[data-density="tight"] {
    --pad-section: 1.75rem;
    --pad-hero: 2.25rem;
    --gap-head: 1rem;
    --gap-grid: 1.2rem;
}

html {
    scroll-behavior: smooth;
    /* Keep focused elements / anchor targets clear of the sticky nav (WCAG 2.4.11). */
    scroll-padding-top: 72px;
}

/* Skip link — first interactive element, visible only when focused */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 12px 18px;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    text-decoration: none;
    z-index: 200;
}
.skip-link:focus {
    left: 0;
}

/* Focus visibility — applies everywhere unless an element opts out */
*:focus {
    outline: none;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
.chip-button:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 4px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none; /* the box-shadow ring below replaces it */
}

/* Honor user motion preferences */
@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;
        scroll-behavior: auto !important;
    }
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
    color: var(--text);
}

/* ---------- Layout helpers ---------- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--pad-section) 1.5rem;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.section-alt {
    background: white;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
}

.section-head {
    text-align: center;
    margin-bottom: var(--gap-head);
}

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

/* ---------- Logo ---------- */
.brand-stack {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 900;
    font-size: 1.9rem;
    letter-spacing: 1px;
    color: var(--primary);
    line-height: 1;
}

.logo-script {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.55rem;
    line-height: 1;
    color: var(--primary);
    margin-top: -0.55rem;     /* kiss into bottom of CORBETT */
    margin-left: 1.1rem;
    -webkit-text-stroke: 2.5px #ffffff;  /* white halo separates Claims from CORBETT */
    paint-order: stroke fill;
    position: relative;
    z-index: 2;
}

@media (max-width: 600px) {
    .logo-text   { font-size: 1.45rem; }
    .logo-script { font-size: 1.2rem; margin-top: -0.45rem; margin-left: 0.85rem; -webkit-text-stroke-width: 2px; }
}

/* ---------- Nav ---------- */
nav {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.desktop-nav {
    display: none;
    gap: 1rem;
    font-size: 0.95rem;
}

@media (min-width: 960px) {
    .desktop-nav { gap: 2rem; }
}

nav a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--primary);
}

/* scoped to `nav` so its specificity (0,1,1) beats `.btn` (0,1,0) — otherwise
   .btn's display leaks the header CTA onto mobile and overflows at 320px */
nav .nav-cta {
    display: none;
}

#menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px 14px;
    min-width: 44px;
    min-height: 44px;
    line-height: 1;
    color: var(--primary);
}

#mobile-menu {
    display: none;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

#mobile-menu .mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .desktop-nav { display: flex; }
    nav .nav-cta { display: inline-flex; }
    #menu-btn { display: none; }
    #mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
header.hero {
    background:
        linear-gradient(135deg, var(--primary), var(--primary-dark)),
        radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 60%);
    background-blend-mode: overlay;
    color: white;
    text-align: center;
    padding: var(--pad-hero) 1.5rem;
    position: relative;
    overflow: hidden;
}

header.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(59,130,246,0.18), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06), transparent 50%);
    pointer-events: none;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--primary, #1e3a5f) center / cover no-repeat;
    background-image: url("images/hero-poster.jpg");
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Soft-focus look (owner's brief) + slight scale so the blur has no transparent edge */
    filter: blur(3px);
    transform: scale(1.06);
}
/* Navy scrim so the white hero text stays legible over the footage */
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 28, 46, 0.66), rgba(15, 28, 46, 0.84));
}
@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.9rem;
    line-height: 1.1;
    margin: 0 0 1.25rem;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.hero p.lede {
    font-size: 1.25rem;
    max-width: 620px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.hero-meta {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
    background: white;
    border-bottom: 1px solid var(--border);
}

.trust-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
}

.trust-label {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap-grid);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--gap-grid);
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
                border-color 0.3s ease;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.1);
    border-color: #bfdbfe;
}

.card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 58, 95, 0.08);
    border-radius: 12px;
}
.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.15rem;
}

.card p {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

.step {
    text-align: center;
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.9rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.step h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
}

.btn-lg {
    padding: 16px 34px;
    font-size: 1.1rem;
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.85);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ---------- Team ---------- */
.team-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

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

.team-avatar {
    width: 160px;
    height: 160px;
    background: #e5e7eb;
    border-radius: 9999px;
    margin: 0 auto 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #9ca3af;
    font-weight: 600;
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.25);
    border: 3px solid #ffffff;
    outline: 1px solid var(--border);
}
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-name { margin-bottom: 0.2rem; font-size: 1.25rem; }
.team-role { color: var(--primary); font-weight: 600; font-size: 0.95rem; margin: 0; }
.team-bio  { color: var(--muted); max-width: 600px; margin: 1.5rem auto 0; font-size: 0.95rem; text-align: center; }

/* ---------- Service Area ---------- */
#service-map {
    height: 420px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.leaflet-tooltip.state-tooltip {
    background: rgba(30, 58, 95, 0.92);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 4px 10px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.leaflet-tooltip.state-tooltip::before { display: none; }

.area-chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 1rem;
}

.chip {
    background: #f3f4f6;
    padding: 6px 16px;
    border-radius: 9999px;
}

.chip-accent {
    background: rgba(30, 58, 95, 0.08);
    color: var(--primary);
    font-weight: 600;
}

.map-fallback {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* ---------- Reviews ---------- */
.reviews-cta {
    background: white;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.reviews-cta p { color: var(--muted); margin: 0 0 1rem; }

/* ---------- FAQ ---------- */
.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    float: right;
    font-weight: 400;
    color: var(--muted);
    transition: transform 0.2s;
}

.faq-item[open] summary::after { content: "−"; }

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

/* ---------- Contact / form ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* grid item: allow it to shrink to its cell instead of its content min-width */
    min-width: 0;
}

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

@media (min-width: 480px) {
    .form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* let grid/flex children shrink below their intrinsic min-width (no 320px overflow) */
.field { min-width: 0; }

.field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

input, textarea, select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #6b7280;
    border-radius: 10px;
    padding: 14px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 14px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.18);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.field-hint {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.85rem;
}

/* File-attachment field (Photos / PDFs) */
.file-input {
    padding: 10px 14px;
    cursor: pointer;
    line-height: 1.4;
}
.file-input::file-selector-button {
    margin-right: 12px;
    padding: 8px 14px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: rgba(30, 58, 95, 0.06);
    color: var(--primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.file-input::file-selector-button:hover {
    background: rgba(30, 58, 95, 0.12);
}
.file-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.file-list:empty { display: none; }
.file-list li {
    font-size: 0.85rem;
    color: var(--text);
    background: rgba(30, 58, 95, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    word-break: break-word;
}

.field-error {
    display: block;
    margin-top: 0.35rem;
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 1.1em;
}

.form-status {
    margin: 0.5rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}
.form-status[data-state="success"] {
    display: block;
    background: rgba(4, 120, 87, 0.08);
    border: 1px solid var(--success);
    color: var(--success);
}
.form-status[data-state="error"] {
    display: block;
    background: rgba(185, 28, 28, 0.06);
    border: 1px solid var(--danger);
    color: var(--danger);
}
.form-status[data-state="loading"] {
    display: block;
    background: var(--soft-bg);
    border: 1px solid var(--border);
    color: var(--muted);
}

.required-mark {
    color: var(--danger);
    margin-left: 2px;
    font-weight: 700;
}

.field[hidden] { display: none; }

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.contact-card {
    background: var(--soft-bg);
    padding: 2rem;
    border-radius: 1rem;
}

.contact-card h3 { margin-top: 0; margin-bottom: 1.25rem; }
.contact-card .phone {
    font-size: 1.45rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.contact-card a { color: var(--primary); text-decoration: underline; }
.contact-card .stack { margin-bottom: 1.25rem; }
.contact-card .divider {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
}

/* ---------- File upload ---------- */
.file-upload {
    border: 2px dashed #6b7280;
    border-radius: 10px;
    padding: 1rem;
    background: var(--soft-bg);
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}
.file-upload:hover,
.file-upload:focus-within {
    border-color: var(--primary);
    background: #fff;
}
.file-upload input[type="file"] {
    border: 0;
    padding: 0;
    background: transparent;
    width: 100%;
    cursor: pointer;
}
.file-upload-label {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.35rem;
}
.file-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text);
}
.file-list li {
    padding: 4px 0;
    color: var(--muted);
}

/* ---------- Form progress meter ---------- */
.form-progress {
    margin-bottom: 1.25rem;
    background: var(--soft-bg);
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.form-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-soft));
    transition: width 0.3s ease;
}
.form-progress-meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ---------- State picker ---------- */
.state-picker {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.06);
}
.state-picker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
}
.state-picker-row .field {
    flex: 1 1 220px;
    margin: 0;
}
.state-picker-result {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    display: none;
    line-height: 1.5;
}
.state-picker-result[data-state="anchor"] {
    display: block;
    background: rgba(4, 120, 87, 0.08);
    border-left: 3px solid var(--success);
    color: #064e3b;
}
.state-picker-result[data-state="adjacent"] {
    display: block;
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid #d97706;
    color: #78350f;
}
.state-picker-result[data-state="outside"] {
    display: block;
    background: rgba(30, 58, 95, 0.06);
    border-left: 3px solid var(--primary);
    color: var(--primary);
}

/* ---------- Interactive timeline (How It Works) ---------- */
.steps-grid .step {
    position: relative;
    border: 1px solid var(--border);
    background: white;
    border-radius: 14px;
    padding: 1.5rem 1.25rem 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}
.steps-grid .step:hover,
.steps-grid .step:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 12px 18px -8px rgba(30, 58, 95, 0.15);
    border-color: #bfdbfe;
}
.step-detail {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
    color: var(--muted);
    font-size: 0.9rem;
    text-align: left;
    display: none;
}
.step[aria-expanded="true"] .step-detail {
    display: block;
}
.step-toggle-hint {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.step[aria-expanded="true"] .step-toggle-hint::after { content: " −"; }
.step[aria-expanded="false"] .step-toggle-hint::after { content: " +"; }

/* ---------- Floating Button ---------- */
.floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--primary);
    color: white;
    padding: 14px 24px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.25);
    transition: all 0.2s ease;
    z-index: 50;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.2);
}

.floating-btn[hidden] {
    display: none;
}


/* ---------- Footer ---------- */
footer {
    background: #111827;
    color: #9ca3af;
}

footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

footer .footer-nav {
    margin: 0 0 0.75rem;
}
footer .footer-nav a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
}
footer .footer-nav a:hover {
    text-decoration: underline;
}

/* Secret door — the © glyph links to the owner view but reads as ordinary text
   until you hover/focus the glyph itself (mirrors the chateaudelesigny footer). */
.ft__door {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    border-radius: 2px;
}
.ft__door:hover {
    color: #e5e7eb;
}
.ft__door:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Raven Power logo credit (matches the chateaudelesigny footer) */
.ft__built {
    display: flex;
    justify-content: center;
    padding-bottom: 1.25rem;
}
.ft__rc {
    display: inline-flex;
    padding: 0.4rem;
    border-radius: 6px;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}
.ft__rc:hover {
    opacity: 1;
}
.ft__rc-mark {
    display: block;
    width: 40px;
    height: auto;
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 600px) {
    .hero h1 { font-size: 2.15rem; }
    .hero p.lede { font-size: 1.05rem; }
    .form-row { grid-template-columns: 1fr; }
    .section-title { font-size: 1.85rem; }
    /* Proportional to the active density so mobile can never end up taller than desktop. */
    .container { padding: calc(var(--pad-section) * 0.8) 1.25rem; }
}

/* ---------- Print ---------- */
@media print {
    nav,
    #menu-btn,
    #mobile-menu,
    .nav-cta,
    .floating-btn,
    #service-map,
    .hero-ctas,
    .contact-form,
    .state-picker,
    .skip-link {
        display: none !important;
    }
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
    }
    body { font-size: 12pt; line-height: 1.4; }
    a { color: #000 !important; text-decoration: underline; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
    a[href^="tel:"]::after,
    a[href^="mailto:"]::after,
    .nav-brand a::after { content: ""; }
    .container,
    .container-wide { max-width: 100% !important; }
    section,
    .trust-bar { padding: 1rem 0 !important; }
    .card,
    .faq-item,
    .team-member { break-inside: avoid; }
}
