/* BETTDAT, LLC — site stylesheet
   Aesthetic: surveyor's spec sheet — blueprint grid, spirit-level motif,
   condensed industrial display type over a warm paper ground. */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@500;600;700;800;900&family=Libre+Franklin:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --paper: #f5f2ea;
  --paper-dim: #ece7d8;
  --ink: #16221f;
  --ink-soft: #45524c;
  --ink-faint: #7c8781;
  --line: #cfc8b3;
  --teal: #1c6f66;
  --teal-deep: #0f4a44;
  --bubble: #c9d94a;
  --card: #fffdf6;
  --radius: 2px;
  --measure: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Libre Franklin', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Big Shoulders Display', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
  color: var(--ink);
}

a {
  color: var(--teal-deep);
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--teal-deep);
}

.tag.on-dark {
  color: #a9c9c2;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 242, 234, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.brand span {
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--teal-deep);
}

.nav-phone {
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid var(--ink);
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  text-decoration: none !important;
  color: var(--ink) !important;
}

.nav-phone:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

.nav-back {
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  background-position: -1px -1px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 78% 12%, rgba(28, 111, 102, 0.14), transparent 65%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  padding: 5.5rem 1.75rem 3.5rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  max-width: 16ch;
  margin: 0.9rem 0 1.4rem;
  animation: rise 0.7s ease both;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero .lede {
  max-width: 46ch;
  font-size: 1.1rem;
  animation: rise 0.7s 0.08s ease both;
}

.hero .tag {
  animation: rise 0.7s ease both;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.75rem 0 3rem;
  animation: rise 0.7s 0.16s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Spirit level bar */

.level {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 30rem;
}

.level-track {
  position: relative;
  flex: 1;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

.level-bubble {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bubble);
  border: 2px solid var(--ink);
  transform: translate(-50%, -50%);
}

.level-labels {
  display: flex;
  justify-content: space-between;
  max-width: 30rem;
  margin-top: 0.6rem;
}

.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink);
  background: var(--card);
}

.stat {
  padding: 1.1rem 1.3rem;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: none;
}

.stat .num {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: none;
}

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

section {
  padding: 5rem 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.6rem 0 1rem;
}

.section-head p {
  font-size: 1.05rem;
  max-width: 52ch;
}

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Services grid ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--card);
  padding: 2rem;
  grid-column: span 12;
}

@media (min-width: 780px) {
  .service-card.s-7 { grid-column: span 7; }
  .service-card.s-5 { grid-column: span 5; }
  .service-card.s-4 { grid-column: span 4; }
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}

.service-card.dark {
  background: var(--ink);
}

.service-card.dark h3,
.service-card.dark p {
  color: var(--paper);
}

.service-card.dark p {
  opacity: 0.75;
}

.callout {
  margin-top: 1.5rem;
  border-left: 3px solid var(--teal);
  padding: 1rem 1.5rem;
  background: var(--paper-dim);
}

.callout p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.step .tag {
  display: block;
  margin-bottom: 0.8rem;
}

.step h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
}

/* ---------- Pricing ---------- */

.pricing-band {
  background: var(--ink);
  color: var(--paper);
}

.pricing-band .section-head p {
  color: #b9c2be;
}

.price-figure {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 800;
  color: var(--bubble);
  margin: 0.4rem 0 2.5rem;
  line-height: 0.9;
}

.driver-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
  margin-bottom: 2.5rem;
}

.driver {
  display: flex;
  gap: 1rem;
  border-top: 1px solid #33423e;
  padding-top: 1.1rem;
}

.driver .idx {
  font-family: 'JetBrains Mono', monospace;
  color: var(--bubble);
  font-size: 0.85rem;
  padding-top: 0.15rem;
}

.driver h4 {
  font-family: 'Libre Franklin', sans-serif;
  text-transform: none;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--paper);
}

.driver p {
  font-size: 0.92rem;
  color: #b9c2be;
  margin: 0;
}

.payment-note {
  border: 1px solid #33423e;
  padding: 1.5rem 1.75rem;
  font-size: 0.95rem;
}

.payment-note p {
  color: #cfd6d3;
  margin: 0;
}

.payment-note strong {
  color: var(--paper);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.checklist {
  border: 1px solid var(--line);
  background: var(--card);
}

.checklist li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}

.checklist li:first-child {
  border-top: none;
}

.checklist .check {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  border: 1.5px solid var(--teal);
  position: relative;
}

.checklist .check::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(40deg);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
}

form.quote-form {
  border: 1px solid var(--ink);
  padding: 2.25rem;
  background: var(--card);
}

.field {
  margin-bottom: 1.4rem;
}

.field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.75rem 0.9rem;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  border-radius: var(--radius);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.contact-card {
  border: 1px solid var(--line);
  background: var(--paper-dim);
  padding: 2rem;
}

.contact-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.contact-line {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.contact-line:first-of-type {
  border-top: none;
}

.contact-line span:first-child {
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-line a {
  text-decoration: none;
}

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

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

footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .brand {
  margin-bottom: 0.9rem;
}

.footer-grid h4 {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}

.footer-grid li {
  margin-bottom: 0.6rem;
}

.footer-grid a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-grid a:hover {
  color: var(--teal-deep);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---------- Policy pages ---------- */

.policy-page {
  padding: 4rem 0 5rem;
}

.policy-page .tag {
  margin-bottom: 0.6rem;
}

.policy-page h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.6rem;
}

.updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 2.5rem;
}

.policy-body {
  max-width: 42rem;
  border-top: 2px solid var(--ink);
  padding-top: 2.5rem;
}

.policy-body h2 {
  font-family: 'Libre Franklin', sans-serif;
  text-transform: none;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.2rem 0 0.8rem;
}

.policy-body h2:first-child {
  margin-top: 0;
}

.policy-body p,
.policy-body li {
  font-size: 1rem;
  color: var(--ink-soft);
}

.policy-body ul {
  margin-bottom: 1em;
}

.policy-body li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.policy-body li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--teal);
}

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink-soft);
}

.back-link:hover {
  color: var(--teal-deep);
}

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

@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .driver-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }
  .stat-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3) {
    border-left: none;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
