/* Bynum Web Design
   Warm, plain-spoken, easy to read. Larger type on purpose. */

:root {
  --paper: #f6f1e7;
  --card: #fffaf0;
  --tint: #ece4d3;
  --ink: #22302a;
  --ink-soft: #4a5a52;
  --green: #2f4f3e;
  --green-dark: #1e3529;
  --rust: #a84a24;
  --rust-dark: #8a3a1a;
  --gold: #d9a441;
  --line: #d8cdb6;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 12px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem; /* 19px: comfortable for every age */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.015em; }
h3 { font-size: 1.6rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--rust); }
a:hover { color: var(--rust-dark); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

.eyebrow {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  font: 700 1.1rem var(--sans);
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--rust);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); transform: translateY(-1px); }
.btn-ghost, .btn-ghost:hover { background: transparent; color: var(--rust); }
.btn:hover { color: #fff; }
.btn-ghost:hover { background: rgba(168, 74, 36, 0.08); border-color: var(--rust-dark); color: var(--rust-dark); }
.btn-small { padding: 0.5rem 1.1rem; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { font: 700 1.3rem var(--serif); white-space: nowrap; }
.brand-text span { font-weight: 500; color: var(--ink-soft); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.site-nav a:not(.btn):hover { color: var(--rust); }
.site-nav .btn { color: #fff; }

.nav-toggle {
  display: none;
  font: 700 1rem var(--sans);
  background: none; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.4rem 1rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(6rem, 12vw, 10rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content h1 { max-width: 12ch; }
.hero-content h1 span { color: var(--rust); font-style: italic; }
.hero .eyebrow { color: var(--green-dark); }
.hero .lede { font-size: clamp(1.3rem, 2.5vw, 1.6rem); max-width: 32ch; color: var(--ink-soft); font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; font-weight: 600; color: var(--ink-soft); }
.hero-points li::before { content: "✓"; color: var(--rust); font-weight: 700; margin-right: 0.45rem; }

/* CSS Mockup */
.hero-visual { position: relative; perspective: 1000px; }
.mockup {
  background: #fff;
  border: 8px solid var(--ink);
  border-radius: 24px;
  width: 300px;
  height: 540px;
  margin: 0 auto;
  transform: rotateY(-15deg) rotateX(5deg) rotateZ(-2deg);
  box-shadow: 20px 30px 40px rgba(34, 48, 42, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mockup-header {
  background: var(--green-dark);
  color: #fff;
  padding: 1rem 1.25rem;
  text-align: left;
}
.mockup-header h4 { font-size: 1.2rem; margin: 0; }
.mockup-body {
  padding: 1.5rem;
  flex: 1;
  background: var(--paper);
}
.mockup-img { background: var(--tint); height: 120px; border-radius: 8px; margin-bottom: 1rem; }
.mockup-text { background: var(--line); height: 12px; border-radius: 6px; margin-bottom: 0.5rem; }
.mockup-text.short { width: 60%; }
.mockup-btn {
  background: var(--rust);
  color: #fff;
  text-align: center;
  padding: 0.8rem;
  border-radius: 99px;
  margin-top: 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.stamp {
  position: absolute;
  top: -20px;
  right: 0;
  background: var(--gold);
  color: var(--green-dark);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  transform: rotate(10deg);
  box-shadow: 0 10px 20px rgba(217, 164, 65, 0.3);
  z-index: 10;
  border: 4px solid var(--paper);
}
.stamp span { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.stamp strong { font-size: 1.8rem; line-height: 1; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 10vw, 7rem) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--green-dark); color: #f1f5f2; }
.section-dark .eyebrow { color: var(--gold); }
.section h2 { max-width: 24ch; margin-bottom: 1.6rem; }

/* ---------- Pull Quotes (Sound Familiar) ---------- */
.pull-quotes { display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.quote-card {
  position: relative;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.quote-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 1;
  color: rgba(168, 74, 36, 0.15);
  font-weight: 700;
}
.quote-card h3 { color: var(--rust); font-size: 1.8rem; margin-bottom: 1rem; position: relative; z-index: 1; }
.quote-card p { color: var(--ink); margin: 0; position: relative; z-index: 1; }

/* ---------- Bento Grid (Services) ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.bento-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.bento-card.feature {
  grid-column: span 2;
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}
.bento-card.feature h3 { color: var(--gold); font-size: 2.2rem; }
.bento-card.feature p { color: #dbe5df; font-size: 1.3rem; }
.bento-card h3 { color: var(--green-dark); }
.bento-card p { color: var(--ink-soft); margin: 0; }

.icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--green); display: grid; place-items: center; margin-bottom: 1.5rem;
}
.bento-card.feature .icon { background: rgba(255,255,255,0.1); }
.icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.who { margin-top: 4rem; }
.tags { list-style: none; padding: 0; margin: 0.8rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tags li {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 1rem; font-weight: 600; font-size: 1.05rem;
}

/* ---------- Timeline (Process) ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding-left: 0;
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 2rem;
  padding-top: 2rem;
}
.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 22px;
  right: -2rem;
  height: 2px;
  background: var(--green);
  z-index: -1;
}
.timeline-step {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: var(--green-dark);
  font: 700 1.3rem var(--serif); margin-bottom: 1.5rem;
  border: 4px solid var(--tint);
}
.timeline-step h3 { color: var(--green-dark); }
.timeline-step p { color: var(--ink-soft); margin: 0; }

/* ---------- Pricing Panels ---------- */
.pricing-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.price-panel {
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
}
.price-panel.build {
  background: var(--green-dark);
  color: #fff;
}
.price-panel.upkeep {
  background: var(--card);
  border: 1px solid var(--line);
}
.price-panel h3 { font-size: 2rem; margin-bottom: 0.5rem; }
.price-panel.build h3 { color: var(--gold); }
.price-panel.upkeep h3 { color: var(--green-dark); }

.price { font: 700 4.5rem/1 var(--serif); margin: 0; }
.price-panel.build .price { color: #fff; }
.price-panel.upkeep .price { color: var(--rust); }

.price-from, .price-per { font: 600 1.2rem var(--sans); }
.price-panel.build .price-from { color: rgba(255,255,255,0.7); display: block; margin-bottom: 0.5rem; }
.price-panel.upkeep .price-per { color: var(--ink-soft); }

.price-term { font-weight: 600; margin: 1rem 0 2rem; font-size: 1.2rem; }
.price-panel.build .price-term { color: rgba(255,255,255,0.9); }
.price-panel.upkeep .price-term { color: var(--ink-soft); }

.checks { list-style: none; padding: 0; margin: 0 auto 0 0; display: grid; gap: 1rem; flex: 1; }
.checks li { padding-left: 2rem; position: relative; font-size: 1.1rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.price-panel.build .checks li::before { color: var(--gold); }
.price-panel.upkeep .checks li::before { color: var(--green); }

.price-note { margin: 2rem 0 0; font-weight: 600; color: var(--ink-soft); text-align: center; }
.pricing-cta { text-align: center; margin-top: 2rem; }

/* ---------- Divider Hills ---------- */
.divider-hills { width: 100%; height: 40px; display: block; background: var(--paper); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; align-items: center; }
.about-grid p { color: #dbe5df; max-width: 52ch; font-size: 1.25rem; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.promises li {
  background: rgba(255,255,255,0.05);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem;
}
.promises strong { color: #fff; }

/* ---------- Area ---------- */
.area-grid { display: grid; gap: 1.5rem; grid-template-columns: 1.2fr 1fr; }
.area-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.area-block h3 { color: var(--green-dark); }
.towns { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.towns li { padding: 0.3rem 0; break-inside: avoid; }
.towns li::before { content: "•"; color: var(--rust); font-weight: 700; margin-right: 0.5rem; }
.area-note { margin: 1.5rem 0 0; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- FAQ ---------- */
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
summary {
  cursor: pointer; list-style: none;
  font: 600 1.3rem var(--serif); color: var(--green-dark);
  padding: 1.2rem 3rem 1.2rem 1.5rem; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%);
  font: 400 2rem var(--sans); color: var(--rust);
}
details[open] summary::after { content: "–"; }
details p { padding: 0 1.5rem 1.5rem; margin: 0; color: var(--ink-soft); }

/* ---------- Quote builder ---------- */
.contact-intro { max-width: 52ch; font-size: 1.25rem; margin-bottom: 2rem; }

.quote-form {
  display: grid; gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}
.quote-form > fieldset, .quote-actions { grid-column: 1; }

fieldset {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 1.6rem; margin: 0; min-width: 0;
}
legend {
  font: 600 1.5rem var(--serif); color: var(--green-dark);
  padding: 0; margin-bottom: 1.2rem; float: left; width: 100%;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem;
}
legend + * { clear: both; }
legend small { font: 400 1rem var(--sans); color: var(--ink-soft); }
.legend-num {
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: var(--green-dark); font-size: 1.1rem; font-weight: 700;
}

.options { display: grid; gap: 0.8rem; }
.options.two-col { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.option {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 2px solid var(--line); border-radius: 10px;
  padding: 1rem 1.2rem; cursor: pointer; min-height: 70px;
}
.option:hover { border-color: var(--green); }
.option:has(input:checked) { border-color: var(--green); background: #eef4ef; }
.option:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.option input { width: 24px; height: 24px; flex: none; accent-color: var(--green); margin: 0; }
.option-text { flex: 1; min-width: 0; line-height: 1.3; }
.option-text strong { display: block; font-size: 1.1rem; }
.option-text small { color: var(--ink-soft); font-size: 0.95rem; }
.option-price { flex: none; font-weight: 700; color: var(--rust); white-space: nowrap; }

.estimate {
  grid-column: 2; grid-row: 1 / span 6;
  position: sticky; top: 100px;
  background: var(--green-dark); color: #f1f5f2;
  border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 20px 40px rgba(30, 53, 41, 0.1);
}
.estimate h3 { color: var(--gold); font: 700 1rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.estimate-total { font: 700 3.5rem/1 var(--serif); color: #fff; margin: 0; }
.estimate-total small { font: 600 1.1rem var(--sans); color: #dbe5df; }
.estimate-monthly { font-weight: 600; color: #dbe5df; margin: 0.5rem 0 1.5rem; font-size: 1.1rem; }
.estimate-lines { list-style: none; padding: 1.5rem 0 0; margin: 0 0 1.5rem; border-top: 1px solid rgba(255,255,255,0.2); display: grid; gap: 0.6rem; font-size: 1.05rem; }
.estimate-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.estimate-lines li span:last-child { font-weight: 700; }
.estimate-custom { background: rgba(217,164,65,0.18); border-left: 4px solid var(--gold); padding: 0.8rem 1rem; border-radius: 0 8px 8px 0; font-size: 1.05rem; margin-bottom: 1.5rem; }
.estimate-note { font-size: 0.95rem; color: #c5d3cb; margin: 0; }

.fields { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label, .field-label { font-weight: 700; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: 8px;
  padding: 0.8rem 1rem; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.reach { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.reach label { font-weight: 600; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.reach input { width: 24px; height: 24px; accent-color: var(--green); margin: 0; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.quote-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 1rem; }
.text-instead { font-weight: 600; }
.form-note { flex-basis: 100%; margin: 0; font-weight: 600; color: var(--green); min-height: 1.6em; }
.form-note.error { color: var(--rust-dark); }

.contact-list {
  list-style: none; padding: 2.5rem 0 0; margin: 3rem 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1.5rem 4rem;
}
.contact-list li { font-size: 1.3rem; font-weight: 600; }
.contact-list a { text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.contact-label { display: block; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #dbe5df; padding: 3rem 0; font-size: 1.1rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.footer-row p { margin: 0; }
.footer-row strong { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card.feature { grid-column: span 2; }
  .quote-form { grid-template-columns: 1fr; }
  .estimate { grid-column: 1; grid-row: auto; position: static; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero { text-align: center; }
  .hero-content h1 { max-width: 100%; }
  .hero .lede { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-visual { max-width: 340px; margin-inline: auto; padding-top: 2.5rem; }
  .stamp { top: -10px; right: -4px; }
  .about-grid, .area-grid, .pricing-panels { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.2rem; }
  .site-nav .btn { margin-top: 1rem; text-align: center; }
}

@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.feature { grid-column: span 1; }
  .timeline { flex-direction: column; gap: 2rem; }
  .timeline-step:not(:last-child)::before { top: 22px; bottom: -2rem; left: 21px; right: auto; width: 2px; height: auto; }
  .timeline-step { display: flex; gap: 1.5rem; text-align: left; }
  .step-num { margin-bottom: 0; flex: none; }
}

@media (max-width: 480px) {
  body { font-size: 1.125rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .fields { grid-template-columns: 1fr; }
  fieldset { padding: 1.2rem; }
  .quote-actions .btn { width: 100%; }
  .brand-text { font-size: 1.2rem; }
  .price-panel { padding: 2rem; }
  .price { font-size: 3.5rem; }
}

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