/* ==========================================================================
   Kenneth Management Group, Inc. — Landing page styles
   Most section styling is inline in the HTML; this file holds shared rules,
   the quote form, the legal pages and responsive behavior.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #F7F3EA; font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif; color: #1B2629; }
img { max-width: 100%; height: auto; }
a { color: #0B3A46; }
a:hover { color: #8A6A2F; }
input:focus, select:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #D8BA7E; outline-offset: 2px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: #0B3A46; color: #FFFFFF; padding: 12px 18px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #FFFFFF; }

.gold { background: linear-gradient(100deg, #D2AE6C 0%, #EBD29C 35%, #FAF0D2 55%, #E6C989 80%, #D2AE6C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
.faq-plus { transition: transform .2s ease; }
details[open] .faq-plus { transform: rotate(45deg); }

@media (max-width: 820px) {
  .stat-cell { border-right: 0 !important; border-bottom: 1px solid rgba(217,180,106,0.2); }
  .stat-cell:last-child { border-bottom: 0; }
  .process-line { display: none; }
}

@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .hdr-call { padding: 0 !important; font-size: 14px !important; gap: 8px !important; white-space: nowrap; }
  .site-logo { height: 40px !important; }
}

/* Phones: show the quote form before the headline so it is visible right away */
@media (max-width: 860px) {
  .hero-row { flex-direction: column; }
  .hero-row #quote { order: -1; max-width: none !important; width: 100%; transform: none !important; }
}

/* --------------------------------------------------------------------------
   Quote form
   -------------------------------------------------------------------------- */
.quote-card { flex: 1 1 380px; max-width: 450px; min-width: 0; background: #FFFFFF; color: #1B2629; border-radius: 18px; padding: clamp(22px, 5vw, 34px); transform: translateY(-10px); border-top: 4px solid #E6C989; box-shadow: 0 0 0 1px rgba(233,207,149,0.35), 0 2px 4px rgba(0,0,0,0.12), 0 14px 28px rgba(0,0,0,0.22), 0 40px 70px rgba(0,0,0,0.38), 0 70px 120px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.9); }
.eyebrow-gold-dark { margin: 0; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: #8A6A2F; font-weight: 700; }
.quote-title { margin: 10px 0 0; font-family: 'Libre Baskerville', Georgia, serif; font-weight: 400; font-size: clamp(24px, 4vw, 30px); line-height: 1.2; color: #0B3A46; }
.quote-sub { margin: 8px 0 0; font-size: 14px; color: #4A5A5F; }
.progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 22px 0 8px; }
.progress span { height: 4px; border-radius: 2px; background: #E8E1D3; }
.progress span.is-done { background: #D8BA7E; }
.step-label { margin: 0 0 16px; font-size: 12px; color: #4A5A5F; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

#quoteForm fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
#quoteForm fieldset[hidden] { display: none; }
#quoteForm .form-step { display: flex; flex-direction: column; gap: 14px; }
.legend { font-weight: 600; font-size: 15px; margin-bottom: 12px; padding: 0; }
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.type-btn { min-height: 58px; padding: 10px 14px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; line-height: 1.3; border: 1px solid #DCD2BF; background: #FBF8F2; color: #1B2629; transition: border-color .15s, background .15s; }
.type-btn:hover { border-color: #0B3A46; }
.type-btn[aria-pressed="true"] { border: 2px solid #0B3A46; background: #E6EEF0; color: #0B3A46; }

.req-note { margin: 0; font-size: 12px; color: #4A5A5F; }
.req { color: #C62828; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 14px; font-weight: 600; }
.field-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 10px; }
#quoteForm input[type=text], #quoteForm input[type=email], #quoteForm input[type=tel], #quoteForm select {
  min-height: 48px; padding: 0 12px; border-radius: 8px; font: inherit; font-size: 16px; font-weight: 400; width: 100%;
  background: #FFFFFF; color: #1B2629; border: 1px solid #CFC6B5; -webkit-appearance: none; appearance: none;
}
#quoteForm select { background-image: linear-gradient(45deg, transparent 50%, #4A5A5F 50%), linear-gradient(135deg, #4A5A5F 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
#quoteForm .is-error { border: 2px solid #C62828 !important; background-color: #FFF8F7 !important; }
.field-err { margin: 0; font-size: 13px; color: #B3261E; font-weight: 500; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: #4A5A5F; padding: 10px 12px; border-radius: 8px; border: 1px solid #E3DACA; background: #FBF8F2; font-weight: 400 !important; }
.consent input { margin-top: 2px; width: 20px; height: 20px; flex-shrink: 0; accent-color: #0B3A46; }
.form-alert { margin: 0; padding: 10px 12px; border-radius: 8px; background: #FDECEA; color: #8C1D18; font-size: 13px; font-weight: 600; }
.form-nav { display: flex; gap: 10px; margin-top: 4px; }
.btn-back { min-height: 50px; padding: 0 18px; border: 1px solid #CFC6B5; background: #FFFFFF; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; color: #1B2629; }
.btn-primary { flex: 1; min-height: 50px; border: 0; background: #0B3A46; color: #FFFFFF; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.btn-gold { flex: 1; min-height: 52px; border: 0; background: linear-gradient(100deg, #DDBB7C, #F2DCAA 55%, #E0C084); color: #1B1406; border-radius: 8px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.btn-gold:disabled { opacity: .7; cursor: wait; }
.fine { margin: 0; font-size: 12px; color: #5A686C; line-height: 1.5; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@keyframes kmgShake { 0%,100% { transform: translateX(0); } 15% { transform: translateX(-8px); } 30% { transform: translateX(7px); } 45% { transform: translateX(-6px); } 60% { transform: translateX(5px); } 75% { transform: translateX(-3px); } 90% { transform: translateX(2px); } }
.shake { animation: kmgShake .45s ease-in-out; background: #B3261E !important; color: #FFFFFF !important; }
@media (prefers-reduced-motion: reduce) { .shake { animation: none; } }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.legal h1 { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 400; font-size: clamp(32px, 5vw, 44px); line-height: 1.2; color: #072F38; margin: 0; }
.legal h2 { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 400; font-size: clamp(21px, 3vw, 25px); line-height: 1.3; color: #072F38; margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid #E3D8C2; }
.legal h3 { font-size: 16px; font-weight: 700; color: #0B3A46; margin: 22px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; color: #2E3A3D; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .meta { font-size: 14px; color: #5A686C; margin-top: 10px; }
.legal .callout { background: #FFFFFF; border: 1px solid #E3D8C2; border-radius: 12px; padding: 18px 22px; margin: 24px 0; box-shadow: 0 10px 26px rgba(11,58,70,0.06); }
.legal .callout p { margin: 0; }

/* --------------------------------------------------------------------------
   Cookie consent
   -------------------------------------------------------------------------- */
.cc { position: fixed; left: 20px; bottom: 20px; z-index: 1000; width: min(440px, calc(100vw - 40px)); }
.cc[hidden] { display: none; }
.cc-card { position: relative; background: #FFFFFF; color: #1B2629; border-radius: 16px; border-top: 4px solid #E6C989; padding: 22px 22px 18px; box-shadow: 0 0 0 1px rgba(11,58,70,0.08), 0 12px 28px rgba(5,34,41,0.18), 0 40px 80px rgba(5,34,41,0.22); max-height: calc(100vh - 40px); overflow-y: auto; }
.cc-title { margin: 0 32px 8px 0; font-family: 'Libre Baskerville', Georgia, serif; font-weight: 400; font-size: 20px; line-height: 1.3; color: #072F38; }
.cc-text { margin: 0; font-size: 14px; line-height: 1.6; color: #2E3A3D; }
.cc-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #0B3A46; background: #E6EEF0; border-radius: 8px; padding: 8px 10px; }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.cc-btn { min-height: 46px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cc-btn-solid { background: #0B3A46; color: #FFFFFF; border: 0; }
.cc-btn-solid:hover { background: #072F38; }
.cc-link { grid-column: 1 / -1; justify-self: center; min-height: 44px; background: none; border: 0; padding: 0 8px; font: inherit; font-size: 14px; font-weight: 600; color: #0B3A46; text-decoration: underline; cursor: pointer; }
.cc-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; font-size: 26px; line-height: 1; color: #4A5A5F; cursor: pointer; }
.cc-close[hidden] { display: none; }
.cc-panel { margin-top: 14px; border-top: 1px solid #EADFC8; }
.cc-panel[hidden] { display: none; }
.cc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #F0E9DA; }
.cc-row label { cursor: pointer; }
.cc-row-title { display: block; margin: 0; font-size: 14px; font-weight: 700; color: #0B3A46; }
.cc-row-text { display: block; margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: #4A5A5F; }
.cc-row input[type=checkbox] { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 46px; height: 26px; margin-top: 2px; border-radius: 999px; background: #CFC6B5; position: relative; cursor: pointer; transition: background .15s; }
.cc-row input[type=checkbox]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform .15s; }
.cc-row input[type=checkbox]:checked { background: #0B3A46; }
.cc-row input[type=checkbox]:checked::after { transform: translateX(20px); }
.cc-row input[type=checkbox]:disabled { opacity: .55; cursor: not-allowed; }
.cc-save { width: 100%; margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .cc-row input[type=checkbox], .cc-row input[type=checkbox]::after { transition: none; } }
@media (max-width: 640px) {
  .cc { left: 0; right: 0; bottom: 0; width: 100%; }
  .cc-card { border-radius: 16px 16px 0 0; padding: 18px 18px 14px; max-height: 80vh; }
  .cc-title { font-size: 18px; }
  .cc-text { font-size: 13px; }
}
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #E9CF95; text-decoration: underline; cursor: pointer; }
