/* ==========================================================================
   KBK Agency LLC: Design tokens
   Palette drawn from Colorado Springs' front-range geography:
   sandstone red rock, ponderosa pine, granite, high-altitude sky.
   ========================================================================== */

:root {
  --stone-50: #F7F5F0;
  --stone-100: #EFEBE2;
  --stone-200: #E1DBCC;
  --granite-900: #24282B;
  --granite-700: #43494D;
  --granite-500: #6B6560;
  --rock-600: #8C4A3D;
  --rock-700: #723A30;
  --pine-600: #3B5D50;
  --pine-700: #2E4A40;
  --sky-500: #5B7A99;
  --sky-700: #3F5C77;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius: 3px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--granite-900);
  background: var(--stone-50);
  line-height: 1.6;
  font-size: 17px;
}

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

a {
  color: var(--sky-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--rock-700); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--sky-700);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--granite-900);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; color: var(--granite-700); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rock-600);
  display: block;
  margin-bottom: 0.9em;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--stone-200);
  background: var(--stone-50);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--granite-900);
  text-decoration: none;
}

.brand:hover { color: var(--granite-900); }

.header-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.header-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--granite-700);
  text-decoration: none;
}

.header-nav a:hover { color: var(--rock-600); }

.header-nav .header-cta {
  background: var(--pine-700);
  color: var(--stone-50);
  padding: 9px 16px;
  border-radius: var(--radius);
}
.header-nav .header-cta:hover { background: var(--rock-700); color: var(--stone-50); }

/* ---------- Ridgeline signature motif ---------- */

.ridgeline {
  width: 100%;
  height: auto;
  display: block;
}

.hero {
  position: relative;
  padding: 72px 0 0;
  background: linear-gradient(180deg, var(--stone-100) 0%, var(--stone-50) 100%);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}

.hero-copy h1 { margin-bottom: 0.4em; }
.hero-copy .lede { font-size: 1.05rem; max-width: 46ch; }

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 1.6em;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--rock-600);
  color: var(--stone-50);
}
.btn-primary:hover { background: var(--rock-700); color: var(--stone-50); }

.btn-ghost {
  background: transparent;
  border-color: var(--granite-900);
  color: var(--granite-900);
}
.btn-ghost:hover { background: var(--granite-900); color: var(--stone-50); }

.hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pine-700);
  aspect-ratio: 8 / 7;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-ridge {
  margin-top: 8px;
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }

.section-alt { background: var(--stone-100); }

.lines-list-title { margin-bottom: 1.2em; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 1.6em;
}

.card {
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 { margin-bottom: 0.5em; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.trust-strip {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--stone-200);
  margin-top: 40px;
}

.trust-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--granite-500);
  letter-spacing: 0.02em;
}

/* ---------- Contact / quote form ---------- */

.contact-section .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 0.4em; }

.contact-detail {
  margin-top: 1.8em;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-detail div {
  font-size: 0.95rem;
}

.contact-detail .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--granite-500);
  display: block;
  margin-bottom: 2px;
}

.form-panel {
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 32px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--granite-700);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 12px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  background: var(--stone-50);
  color: var(--granite-900);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--sky-700);
}

/* Honeypot field, hidden from real visitors but present in HTML */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* SMS consent block: intentionally separate from other fields,
   sits directly below the phone number field in source order. */
.sms-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  margin-bottom: 22px;
  background: var(--stone-100);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
}

.sms-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--pine-700);
}

.sms-consent label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--granite-700);
  line-height: 1.55;
  text-transform: none;
  letter-spacing: normal;
}

.sms-consent label a { color: var(--sky-700); }

.form-submit {
  width: 100%;
  font-size: 1rem;
  padding: 13px 22px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--granite-500);
  margin-top: 14px;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--granite-900);
  color: var(--stone-100);
  padding: 48px 0 28px;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-200);
  margin: 0 0 14px;
}

.site-footer p, .site-footer address {
  color: var(--stone-200);
  font-size: 0.9rem;
  font-style: normal;
  margin: 0 0 6px;
}

.site-footer a {
  color: var(--stone-100);
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-decoration: none;
}
.site-footer a:hover { color: var(--stone-200); text-decoration: underline; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid var(--granite-700);
  font-size: 0.78rem;
  color: var(--granite-500);
}

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: 56px 0 32px;
  background: var(--stone-100);
  border-bottom: 1px solid var(--stone-200);
}

.legal-hero .eyebrow { margin-bottom: 0.6em; }

.legal-body {
  padding: 48px 0 72px;
}

.legal-body .wrap {
  max-width: 760px;
}

.legal-body h2 {
  margin-top: 2em;
  font-size: 1.3rem;
}

.legal-body h2:first-of-type { margin-top: 0; }

.legal-body ul, .legal-body ol {
  color: var(--granite-700);
  padding-left: 1.3em;
}

.legal-body li { margin-bottom: 0.5em; }

.callout {
  background: var(--stone-100);
  border-left: 3px solid var(--rock-600);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 1.6em 0;
}

.callout p { margin: 0; font-size: 0.95rem; }
.callout p + p { margin-top: 0.8em; }

.updated-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--granite-500);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-bottom: 40px; }
  .hero { padding-top: 48px; }
  .contact-section .wrap { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; }
  .header-nav { gap: 16px; }
  .header-nav a span { display: none; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  section { padding: 44px 0; }
  .form-panel { padding: 22px; }
  .header-nav .header-cta { padding: 8px 12px; font-size: 0.72rem; }
}

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