:root {
  --ink: #16283F;
  --slate: #2C4C6B;
  --rust: #C1440E;
  --rust-dark: #9A350C;
  --sand: #E7DCC7;
  --paper: #FAF7F2;
  --charcoal: #262421;
  --line: rgba(22,40,63,0.14);

  --display: "Barlow Condensed", Arial, sans-serif;
  --body: "Inter", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--charcoal);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

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

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

/* subtle paper grain so the flat sand color isn't dead flat */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 10px;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 16px;
}
.section-title.center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

.rust { color: var(--rust); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--rust);
  color: var(--paper);
}
.btn-primary:hover { background: var(--rust-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(231,220,199,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand-mark { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.nav a:hover { color: var(--rust); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: 3px;
}
.nav-cta:hover { background: var(--rust); color: var(--paper) !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* HERO */
.hero { position: relative; z-index: 1; padding: 64px 0 80px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 0.98;
  color: var(--ink);
  margin: 0 0 20px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--slate);
  max-width: 46ch;
  margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { list-style: none; display: flex; gap: 34px; padding: 0; margin: 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats .num { font-family: var(--display); font-weight: 800; font-size: 32px; color: var(--rust); line-height: 1; }
.hero-stats .label { font-family: var(--mono); font-size: 12px; color: var(--slate); margin-top: 4px; }

.drag-hint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--slate);
  text-align: right;
  margin: 0 4px 8px;
  letter-spacing: 0.04em;
}
.reveal {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 22px 50px -18px rgba(22,40,63,0.45);
  border: 1px solid var(--line);
  user-select: none;
  touch-action: pan-y;
}
.reveal-pane { position: absolute; inset: 0; }
.pane-svg { width: 100%; height: 100%; }
.reveal-after { z-index: 1; }
.reveal-before {
  z-index: 2;
  clip-path: inset(0 45% 0 0);
}
.pane-tag {
  position: absolute;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(22,40,63,0.75);
  color: var(--paper);
  padding: 5px 10px;
  border-radius: 2px;
}
.reveal-after .pane-tag { right: 14px; }
.reveal-before .pane-tag { left: 14px; }
.reveal-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 55%;
  width: 44px;
  margin-left: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  z-index: 3;
}
.reveal-handle::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 3px;
  background: var(--paper);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(22,40,63,0.3);
}
.reveal-handle span {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rust);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* SERVICES */
.services { position: relative; z-index: 1; padding: 90px 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--paper);
  padding: 36px 26px;
}
.service-icon { width: 40px; height: 40px; color: var(--rust); margin-bottom: 20px; }
.service-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 10px;
}
.service-card p { margin: 0; color: var(--slate); font-size: 15px; line-height: 1.5; }

/* PROCESS */
.process { position: relative; z-index: 1; padding: 90px 0; }
.process-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
.process-lead { color: var(--slate); font-size: 16px; line-height: 1.6; max-width: 40ch; }
.process-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process-steps li {
  counter-increment: step;
  padding: 22px 0 22px 0;
  border-top: 1px solid var(--line);
  position: relative;
  padding-left: 52px;
}
.process-steps li:last-child { border-bottom: 1px solid var(--line); }
.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--rust);
  font-weight: 600;
}
.step-mark {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  margin-bottom: 4px;
}
.process-steps p { margin: 0; color: var(--slate); font-size: 15px; }

/* AREA */
.area { position: relative; z-index: 1; padding: 90px 0; background: var(--ink); color: var(--paper); }
.area .eyebrow { color: #E8A87C; }
.area .section-title { color: var(--paper); }
.town-list {
  list-style: none;
  margin: 46px auto 0;
  padding: 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 24px;
  font-family: var(--mono);
  font-size: 15px;
  text-align: center;
}
.town-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(250,247,242,0.18);
}
.area-note { text-align: center; margin: 40px 0 0; color: rgba(250,247,242,0.7); font-size: 14px; }
.area-note a { color: #E8A87C; text-decoration: underline; }

/* CONTACT */
.contact { position: relative; z-index: 1; padding: 90px 0; background: var(--paper); }
.contact-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; }
.contact-copy p { color: var(--slate); font-size: 16px; line-height: 1.6; }
.contact-details { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.contact-details a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}
.contact-details a:hover { color: var(--rust); }

.contact-form {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
  display: grid;
  gap: 14px;
}
.contact-form label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: -8px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--charcoal);
  width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(193,68,14,0.35);
  outline-offset: 1px;
  border-color: var(--rust);
}
.contact-form textarea { resize: vertical; }

/* FOOTER */
.site-footer { position: relative; z-index: 1; padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-mark { height: 30px; width: auto; opacity: 0.85; }
.footer-inner p { font-size: 13px; color: var(--slate); margin: 0; }
.footer-links { display: flex; gap: 20px; font-family: var(--mono); font-size: 13px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--rust); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .town-list { grid-template-columns: repeat(3, 1fr); }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--sand);
    padding: 20px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .town-list { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}
