/* =========================================================
   Curb Edge — landing page
   Mobile-first. Neutral cream base + one warm accent.
   ========================================================= */

:root {
  --bg:           #FAF7F2;   /* warm cream */
  --bg-alt:       #F2EDE2;   /* slightly deeper cream for alt bands */
  --surface:      #FFFFFF;
  --ink:          #141414;   /* near-black text */
  --ink-2:        #3F3F3F;
  --muted:        #6F6A60;
  --line:         #E4DDCD;   /* hairline border */
  --line-2:       #D5CDB9;

  --accent:       #C84B22;   /* warm terracotta — the one accent */
  --accent-ink:   #FFFFFF;
  --accent-dark:  #A33C19;
  --accent-soft:  #F8E8E0;

  --radius:       10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 2px rgba(20,20,20,.04), 0 1px 1px rgba(20,20,20,.03);
  --shadow-md:    0 8px 24px rgba(20,20,20,.08);

  --serif:  'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:   'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --maxw:   1100px;
  --gutter: 20px;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* leave room for sticky mobile callbar */
  padding-bottom: 72px;
}
@media (min-width: 720px) {
  body { padding-bottom: 0; }
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.muted { color: var(--muted); }
.accent { color: var(--accent); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 10px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform .08s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: var(--accent-dark); }
.btn--solid:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--lg { padding: 14px 22px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.topbar__cta { display: flex; gap: 8px; }

/* ---------- hero ---------- */
.hero {
  padding: 28px 0 36px;
  background:
    radial-gradient(900px 320px at 80% 0%, rgba(200,75,34,0.06), transparent 60%),
    var(--bg);
}
.hero__grid { display: grid; gap: 28px; }
.hero__title {
  font-size: clamp(34px, 7vw, 56px);
  margin: 6px 0 14px;
}
.hero__sub {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 52ch;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 14px;
  color: var(--ink-2);
}
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.hero__visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.curb-illo { width: 100%; height: auto; border-radius: 8px; }
.hero__photo { width: 100%; height: auto; border-radius: 8px; display: block; object-fit: cover; }

@media (min-width: 880px) {
  .hero { padding: 56px 0 72px; }
  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 56px;
  }
}

/* ---------- trust strip ---------- */
.strip {
  background: var(--ink);
  color: var(--bg);
}
.strip__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 0;
}
.strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.strip__item:nth-child(2n) { border-right: none; }
.strip__item:nth-last-child(-n+2) { border-bottom: none; }
.strip__item strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--bg);
}
.strip__item span {
  font-size: 12px;
  color: rgba(250,247,242,0.7);
  letter-spacing: 0.02em;
}
@media (min-width: 720px) {
  .strip__inner { grid-template-columns: repeat(4, 1fr); }
  .strip__item { border-bottom: none; padding: 22px 12px; }
  .strip__item:last-child { border-right: none; }
  .strip__item strong { font-size: 28px; }
  .strip__item span { font-size: 13px; }
}

/* ---------- generic section ---------- */
.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 0 28px; }
.section__head--centered { text-align: center; margin-left: auto; margin-right: auto; }
.section__head h2 {
  font-size: clamp(26px, 4.4vw, 36px);
  margin: 4px 0 8px;
}
.section__lede { color: var(--ink-2); font-size: 16px; }

@media (min-width: 720px) {
  .section { padding: 80px 0; }
}

/* ---------- before / after ---------- */
.ba {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) {
  .ba { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .ba { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}
.ba__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.ba__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ba__img {
  position: relative;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  aspect-ratio: 3 / 2;
}
.ba__img .ph,
.ba__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__img figcaption {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(20,20,20,0.85);
  color: var(--bg);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.ba__img--after figcaption { background: var(--accent); }
.ba__meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------- services ---------- */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .services { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.service {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow-md);
}
.service__badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.service__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.service h3 { font-size: 20px; }
.service p { color: var(--ink-2); font-size: 15px; }
.service__price {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ---------- process / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: step;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.step__num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 10px;
}
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p  { color: var(--ink-2); font-size: 15px; }

/* ---------- why us ---------- */
.why {
  display: grid;
  gap: 28px;
}
@media (min-width: 880px) {
  .why { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
}
.why__copy h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 16px; }
.why__list { display: grid; gap: 12px; margin-top: 6px; }
.why__list li {
  position: relative;
  padding: 14px 14px 14px 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink-2);
}
.why__list li::before {
  content: "";
  position: absolute;
  left: 16px; top: 18px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.why__list li strong { color: var(--ink); margin-right: 4px; }

.why__quote {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.why__quote::before {
  content: "“";
  position: absolute;
  top: -10px; left: 18px;
  font-family: var(--serif);
  font-size: 90px;
  line-height: 1;
  color: var(--accent);
}
.why__quote blockquote {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--bg);
}
.why__quote cite {
  font-style: normal;
  font-size: 13px;
  color: rgba(250,247,242,0.7);
}

/* ---------- quote / form ---------- */
.section--quote {
  background:
    radial-gradient(700px 240px at 50% 0%, rgba(200,75,34,0.07), transparent 60%),
    var(--bg);
}
.quote { max-width: 640px; margin: 0 auto; }
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 14px;
}
@media (min-width: 720px) {
  .form { padding: 28px; }
}
.form__row { display: grid; gap: 6px; }
.form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.form input,
.form select,
.form textarea {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23141414' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form textarea { resize: vertical; min-height: 90px; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}
.form input[aria-invalid="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.form__fineprint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}
.form__success {
  background: #EAF6EC;
  color: #1F5D2C;
  border: 1px solid #C7E4CC;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
}

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(250,247,242,0.85);
  padding: 36px 0 100px; /* extra bottom for sticky callbar */
}
@media (min-width: 720px) { .footer { padding: 44px 0 36px; } }
.footer__inner {
  display: grid;
  gap: 22px;
}
@media (min-width: 720px) {
  .footer__inner {
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 36px;
  }
  .footer__legal { grid-column: 1 / -1; }
}
.footer__brand strong {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--bg);
  display: block;
  margin-bottom: 4px;
}
.footer__brand span { font-size: 14px; color: rgba(250,247,242,0.65); }
.footer__contact { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.footer__contact a {
  color: var(--bg);
  border-bottom: 1px dashed rgba(250,247,242,0.35);
  width: max-content;
  padding-bottom: 1px;
}
.footer__contact a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.footer__area .muted { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(250,247,242,0.55); }
.footer__area p { font-size: 14px; margin-top: 6px; line-height: 1.5; color: rgba(250,247,242,0.8); }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: rgba(250,247,242,0.55);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
}

/* ---------- sticky mobile callbar ---------- */
.callbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 1px;
  background: var(--line);
  padding: 0;
  box-shadow: 0 -2px 16px rgba(20,20,20,0.08);
  /* iOS safe area */
  padding-bottom: env(safe-area-inset-bottom);
}
.callbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.callbar__btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.callbar__btn:active { transform: translateY(1px); }
@media (min-width: 720px) {
  .callbar { display: none; }
}

/* ---------- accessibility helpers ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
