/* Self-hosted fonts */
@font-face {
  font-family: 'Barlow';
  src: url('/fonts/barlow-v13-latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('/fonts/barlow-v13-latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('/fonts/barlow-v13-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-v13-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-v13-latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-v13-latin-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --ink: #221b14;
  --ink-soft: #4a4136;
  --paper: #fbf7ef;
  --sand: #f0e5cf;
  --sand-deep: #e3d2b0;
  --rim: #c97a1b;
  --rim-dark: #a35f0f;
  --sky: #38597b;
  --sky-deep: #27415c;
  --white: #ffffff;
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Barlow', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }

a { color: var(--sky); }

img, iframe { max-width: 100%; }

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

section { padding: 70px 0; }

.eyebrow {
  display: inline-block;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rim-dark);
  border-left: 4px solid var(--rim);
  padding-left: 10px;
  margin-bottom: 12px;
}

/* Topbar */
.topbar {
  background: var(--ink);
  color: var(--sand);
  font-size: 0.92rem;
  padding: 8px 0;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: #f3c87e; font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--rim);
  box-shadow: 0 2px 10px rgba(34, 27, 20, 0.08);
}
.navbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  gap: 16px;
}
.brand {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.1;
}
.brand span { color: var(--rim-dark); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.nav-links a {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav-links a:hover { color: var(--rim-dark); }
.nav-call {
  background: var(--rim);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 6px;
}
.nav-call:hover { background: var(--rim-dark); color: var(--white) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-size: 1.3rem;
  padding: 4px 12px;
  cursor: pointer;
  color: var(--ink);
}

/* Hero */
.hero {
  background: linear-gradient(rgba(34, 27, 20, 0.78), rgba(39, 65, 92, 0.82)), var(--sky-deep);
  color: var(--white);
  text-align: center;
  padding: 90px 0 110px;
  position: relative;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero p {
  font-size: 1.2rem;
  max-width: 720px;
  margin: 0 auto 30px;
  color: #f0e9dc;
}
.hero .btn-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Rimrock strata divider: the signature element */
.strata {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26px;
  background:
    linear-gradient(to bottom,
      var(--rim) 0 6px,
      var(--sand-deep) 6px 12px,
      var(--rim-dark) 12px 16px,
      var(--sand) 16px 26px);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 8px;
  transition: background 0.2s;
}
.btn-amber { background: var(--rim); color: var(--white); }
.btn-amber:hover { background: var(--rim-dark); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); }

/* CTA band */
.cta-band {
  background: var(--rim);
  color: var(--white);
  text-align: center;
  padding: 40px 0;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { margin-bottom: 18px; font-size: 1.1rem; }
.cta-band .btn { background: var(--ink); color: var(--white); }
.cta-band .btn:hover { background: #000; }

/* Main intro */
.intro { background: var(--paper); }
.intro .wrap { max-width: 860px; }
.intro p { margin-bottom: 18px; }

/* Calculator */
.calc { background: var(--sand); }
.calc-card {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-top: 6px solid var(--rim);
  border-radius: 12px;
  padding: 36px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 6px 24px rgba(34, 27, 20, 0.08);
}
.calc-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.calc-amount {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sky-deep);
  margin-bottom: 10px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--rim);
  height: 8px;
  margin-bottom: 24px;
  cursor: pointer;
}
.calc-result {
  background: var(--paper);
  border: 1px dashed var(--rim-dark);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}
.calc-result .fee {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--rim-dark);
}
.calc-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 14px; }

/* Why Choose Us */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 36px;
}
.card {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: 10px;
  padding: 28px;
}
.card h3 { margin-bottom: 10px; }
.card .tick {
  display: inline-block;
  width: 38px; height: 38px;
  background: var(--sky);
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  line-height: 38px;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

/* Locations */
.locations { background: var(--sky-deep); color: var(--white); }
.locations h2, .locations h3 { color: var(--white); }
.locations .eyebrow { color: #f3c87e; border-color: var(--rim); }
.loc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.loc-grid a {
  display: block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 16px;
  text-align: center;
  transition: background 0.2s;
}
.loc-grid a:hover { background: var(--rim); border-color: var(--rim); }

/* Steps */
.steps .grid-3 { counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: 10px;
  padding: 30px;
  position: relative;
}
.step .num {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--rim);
  line-height: 1;
  margin-bottom: 12px;
}

/* History */
.history { background: var(--sand); }
.history .wrap { max-width: 860px; }
.history p { margin-bottom: 18px; }

/* Maps */
.maps .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 36px;
}
.map-card {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: 10px;
  overflow: hidden;
}
.map-card iframe { width: 100%; height: 300px; border: 0; display: block; }
.map-card .map-body { padding: 24px; }
.map-card h3 { margin-bottom: 8px; }
.map-card p { margin-bottom: 14px; color: var(--ink-soft); }
.dir-link {
  display: inline-block;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rim-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--rim);
}
.dir-link:hover { color: var(--ink); }

/* FAQ: open cards, no accordions */
.faq { background: var(--paper); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 36px;
}
.faq-card {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-left: 5px solid var(--rim);
  border-radius: 8px;
  padding: 24px;
}
.faq-card h3 { margin-bottom: 8px; }
.faq-card p { color: var(--ink-soft); }

/* Footer */
footer { background: var(--ink); color: #d8cfc0; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 60px 0 40px;
}
footer h3 {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: #f3c87e; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid #3d342a;
  padding: 18px 0;
  font-size: 0.9rem;
}
.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 880px) {
  .grid-3, .maps .grid-2, .faq-grid { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    gap: 14px;
    border-bottom: 3px solid var(--rim);
    box-shadow: 0 10px 20px rgba(34, 27, 20, 0.12);
  }
  .nav-links.open { display: flex; }
}

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

/* Subpage header */
.page-hero {
  background: linear-gradient(rgba(34, 27, 20, 0.78), rgba(39, 65, 92, 0.82)), var(--sky-deep);
  color: var(--white);
  text-align: center;
  padding: 60px 0 70px;
  position: relative;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: #f0e9dc; font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

/* Legal and info content */
.page-content { background: var(--paper); }
.page-content .wrap { max-width: 860px; }
.page-content h2 { margin: 34px 0 12px; }
.page-content h2:first-of-type { margin-top: 0; }
.page-content p { margin-bottom: 16px; }
.page-content ul { margin: 0 0 16px 24px; }
.page-content li { margin-bottom: 8px; }
.updated { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 28px; }
