/* Cumberland Fence Co — concept build. One stylesheet for every page. */
:root {
  --cedar: #8A4B2A;
  --cedar-dark: #6B3820;
  --forest: #1F3B2D;
  --forest-light: #2C5440;
  --tag: #F4C430;          /* price-tag yellow: prices and main CTAs ONLY */
  --tag-dark: #D9A800;
  --paper: #F7F3EC;
  --card: #FFFDF9;
  --charcoal: #222;
  --muted: #5A534C;
  --line: #E2D9CB;
  --good: #2E8B3E;         /* survey green */
  --iffy: #E08A1E;         /* survey orange */
  --gone: #C8352B;         /* survey red */
  --head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 6px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--cedar); }
a:hover { color: var(--cedar-dark); }
h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 99; }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--charcoal);
  color: #fff;
  font-size: .95rem;
  position: sticky; top: 0; z-index: 50;
}
.utility .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 44px; flex-wrap: wrap; }
.utility a { color: #fff; text-decoration: none; font-weight: 600; }
.utility .booking { opacity: .85; }
.utility .util-cta { color: var(--tag); }
@media (max-width: 640px) { .utility .booking { display: none; } }

/* ---------- Header / brand ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--charcoal); }
.brand:hover { color: var(--charcoal); }
.brand-logo { width: 44px; height: 44px; flex: none; }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.6rem; line-height: 1; display: block; }
.brand-tag { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); margin-top: 3px; }

/* ECO badge: solid green leaf, same height as the lowercase word, leaf on the left */
.eco {
  display: inline-flex;
  align-items: baseline;
  gap: .12em;
  font-family: var(--head);
  font-weight: 300;
  text-transform: lowercase;
  letter-spacing: .04em;
  color: var(--forest);
  line-height: 1;
  white-space: nowrap;
}
.eco svg { height: 1ex; width: auto; fill: var(--good); flex: none; overflow: visible; }
.eco-lg { font-size: 2.6rem; }
.on-dark .eco, .eco.on-dark { color: #fff; }
.on-dark .eco svg, .eco.on-dark svg { fill: #6BC07A; }

/* Nav */
.nav-toggle {
  display: none;
  font: 700 1rem var(--body);
  background: none; border: 2px solid var(--charcoal); border-radius: var(--radius);
  padding: 6px 12px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.site-nav a { text-decoration: none; color: var(--charcoal); font-weight: 600; font-size: .98rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--cedar); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0 4px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 700 1.05rem var(--body);
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-tag { background: var(--tag); color: var(--charcoal); border-color: var(--tag); }
.btn-tag:hover { background: var(--tag-dark); border-color: var(--tag-dark); color: var(--charcoal); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: #fff; }
.on-dark .btn-outline { color: #fff; border-color: #fff; }
.on-dark .btn-outline:hover { background: #fff; color: var(--forest); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-white { background: var(--card); }
.section-forest { background: var(--forest); color: #F1EEE6; }
.section-forest h2, .section-forest h3 { color: #fff; }
.section-forest a { color: var(--tag); }
.section-cedar { background: var(--cedar); color: #fff; }
.eyebrow { font: 700 .85rem var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--cedar); margin-bottom: 10px; display: block; }
.section-forest .eyebrow { color: #9FD3AA; }
.lead { font-size: 1.25rem; max-width: 46ch; }
.fine { font-size: .9rem; color: var(--muted); }
.section-forest .fine { color: #C9D6CC; }

/* Cedar slat divider: six cedar browns in random order, hard stops — never a gradient */
.slats {
  height: 14px;
  background: repeating-linear-gradient(90deg,
    #9C5A35 0 36px, #7A3F22 36px 38px,
    #B06B41 38px 74px, #7A3F22 74px 76px,
    #8A4B2A 76px 112px, #7A3F22 112px 114px,
    #A9653B 114px 150px, #7A3F22 150px 152px,
    #94522E 152px 188px, #7A3F22 188px 190px,
    #BB7A4C 190px 226px, #7A3F22 226px 228px);
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .lead { margin-bottom: 0; }
.hero-area { font-size: .95rem; color: var(--muted); font-style: italic; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Photo slot placeholders (no stock photos) */
.photo-slot {
  position: relative;
  border-radius: var(--radius);
  min-height: 260px;
  background:
    linear-gradient(to bottom, #CFE3D2 0 55%, transparent 55%),
    repeating-linear-gradient(90deg, #9C5A35 0 26px, #6B3820 26px 28px, #B06B41 28px 54px, #6B3820 54px 56px, #8A4B2A 56px 82px, #6B3820 82px 84px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
}
.photo-slot::before { /* posts */
  content: ""; position: absolute; inset: 30% 0 0 0;
  background: repeating-linear-gradient(90deg, transparent 0 128px, #4A2A18 128px 140px);
}
.photo-slot span {
  position: relative;
  background: rgba(255,255,255,.92); color: var(--charcoal);
  font-size: .82rem; padding: 6px 10px; margin: 12px; border-radius: 4px;
}

/* ---------- Price tags ---------- */
.tags { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .tags { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tags { grid-template-columns: 1fr; } }
.tag {
  position: relative;
  background: var(--tag);
  color: var(--charcoal);
  border-radius: 8px 8px 8px 8px;
  padding: 24px 20px 20px 30px;
  text-decoration: none;
  display: block;
  box-shadow: 0 2px 0 var(--tag-dark);
}
.tag::before { /* the tag hole */
  content: ""; position: absolute; left: 11px; top: 16px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 2px var(--tag-dark);
}
a.tag:hover { color: var(--charcoal); transform: translateY(-2px); }
.tag .price { font-family: var(--head); font-weight: 800; font-size: 3rem; line-height: 1; display: block; }
.tag .unit { font-weight: 700; display: block; margin: 4px 0 8px; }
.tag .say { font-size: .95rem; display: block; }
.price-inline { background: var(--tag); padding: 0 .3em; border-radius: 3px; font-weight: 700; white-space: nowrap; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; background: var(--card); min-width: 620px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--head); font-size: 1.3rem; background: var(--charcoal); color: #fff; }
.compare thead th.fix { background: var(--forest); }
.compare tbody th { width: 30%; font-weight: 700; }
.compare td.fixcol { background: #F1F6F1; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card.core { border-top: 6px solid var(--cedar); }
.card.minor { border-top: 6px solid var(--line); }
.section-forest .card { background: var(--forest-light); border-color: #3C6A52; color: #F1EEE6; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { color: inherit; }
.card-link:hover .card { border-color: var(--cedar); }
.more { font-weight: 700; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cedar); color: #fff;
  font: 800 1.3rem var(--head); margin-bottom: 10px;
}
.steps strong { display: block; font-family: var(--head); font-size: 1.35rem; margin-bottom: 4px; }

/* Fence-map graphic: posts as green / orange / red dots */
.fence-map { display: block; width: 100%; max-width: 560px; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .92rem; margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* Callouts */
.callout { border-left: 6px solid var(--cedar); background: var(--card); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; }
.callout.eco-note { border-left-color: var(--good); }
.finebox { border: 1px dashed var(--muted); padding: 16px 20px; border-radius: var(--radius); font-size: .95rem; background: var(--card); }
.finebox strong:first-child { display: block; margin-bottom: 4px; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--good); border-bottom: 3px solid var(--good); transform: rotate(-45deg); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Page header (inner pages) */
.page-head { padding: 52px 0 36px; background: var(--card); border-bottom: 1px solid var(--line); }
.page-head .lead { max-width: 60ch; }
.page-head .big-price { font-family: var(--head); font-weight: 800; font-size: 4rem; line-height: 1; background: var(--tag); display: inline-block; padding: 6px 16px 4px; border-radius: 6px; margin: 6px 0 14px; }
.big-price small { font-size: 1.3rem; font-weight: 700; }

/* Price list */
.price-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.price-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 20px 22px; border-bottom: 1px solid var(--line); align-items: start; }
.price-list li:last-child { border-bottom: 0; }
.price-list h3 { margin: 0 0 4px; font-size: 1.45rem; }
.price-list p { margin: 0; color: var(--muted); font-size: .97rem; }
.price-list .amt { font-family: var(--head); font-weight: 800; font-size: 2rem; background: var(--tag); padding: 2px 12px; border-radius: 4px; white-space: nowrap; text-align: right; }
.price-list .amt.plain { background: none; font-size: 1.4rem; color: var(--muted); }
.price-list .amt small { display: block; font-size: .85rem; font-family: var(--body); font-weight: 600; }
@media (max-width: 560px) { .price-list li { grid-template-columns: 1fr; } .price-list .amt { justify-self: start; } }

/* ---------- Forms / quote tool ---------- */
form .field { margin-bottom: 18px; }
label, .label { display: block; font-weight: 700; margin-bottom: 6px; }
.help { display: block; font-weight: 400; font-size: .92rem; color: var(--muted); margin-top: 2px; }
input[type=number], input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; font: inherit; padding: 11px 12px; border: 2px solid #CFC5B6; border-radius: var(--radius); background: #fff; color: var(--charcoal);
}
input:focus, textarea:focus, select:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--forest-light); outline-offset: 2px; }
input[type=number] { max-width: 160px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 2px solid #CFC5B6; padding: 8px 14px; border-radius: 999px; cursor: pointer; margin: 0; }
.radio-row input { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.results { position: sticky; top: 60px; }
.option { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.option h3 { font-size: 1.3rem; margin-bottom: 2px; }
.option .opt-price { font-family: var(--head); font-weight: 800; font-size: 2.2rem; line-height: 1.1; background: var(--tag); display: inline-block; padding: 2px 10px; border-radius: 4px; margin: 6px 0; }
.option .opt-price.muted { background: none; color: var(--muted); font-size: 1.3rem; padding: 0; }
.option ul { margin: 6px 0 0; padding-left: 20px; font-size: .95rem; }
.option.best { border: 2px solid var(--forest); }
.savings { background: var(--forest); color: #fff; padding: 14px 18px; border-radius: var(--radius); font-weight: 600; margin-bottom: 14px; }
.savings.honest { background: var(--cedar); }
.note { font-size: .95rem; background: #F1F6F1; border-left: 4px solid var(--good); padding: 10px 14px; margin-bottom: 10px; border-radius: 0 4px 4px 0; }
.err { color: var(--gone); font-weight: 600; font-size: .95rem; }

/* ---------- Final CTA / footer ---------- */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.final-cta .btn-row { justify-content: center; }
.towns { font-size: .95rem; opacity: .9; }
.site-footer { background: var(--forest); color: #DCE5DE; padding: 48px 0 28px; font-size: .97rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-brand { font-family: var(--head); font-weight: 800; font-size: 1.6rem; color: #fff; display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.footer-base { border-top: 1px solid #3C6A52; margin-top: 32px; padding-top: 18px; font-size: .88rem; color: #B5C6B9; }

.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .center { text-align: center; }
.brand-tag .eco { font-size: 1.35rem; }
