/* Reece Pole Barns — first-draft landing page */
:root {
  --green: #1c4a32;
  --green-dark: #10291c;
  --green-mid: #2a6848;
  --cream: #f3eee5;
  --paper: #fbf8f3;
  --ink: #1b1814;
  --muted: #5a544b;
  --tan: #a57a3c;
  --line: #e0d7c9;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(27, 24, 20, 0.12);
  --radius: 14px;
  --max: 1120px;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); }
a:hover { color: var(--green-dark); }

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

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--green-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 3px solid var(--tan);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand {
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}
.brand:hover { color: #fff; }
.brand strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand span {
  display: block;
  font-size: 0.78rem;
  color: #d8e4db;
  font-weight: 400;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: flex-end;
}
.nav a {
  color: #f3eee5;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.nav a:hover,
.nav a:focus { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Hero */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: grid;
  align-items: end;
  color: #fff;
  background: #243328 center / cover no-repeat;
  background-image: linear-gradient(180deg, rgba(16, 25, 18, 0.15) 20%, rgba(12, 20, 14, 0.78) 100%), image-set(url("images/hero-shop-front.webp") type("image/webp"), url("images/hero-shop-front.jpg") type("image/jpeg"));
}
.hero-inner {
  padding: 4.5rem 0 3.2rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f0d9a6;
  margin-bottom: 0.7rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 560;
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin: 0 0 0.85rem;
  max-width: 18ch;
  text-wrap: balance;
}
.hero p.lead {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  font-size: 1.15rem;
  color: #f3eee5;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
}
.btn-primary {
  background: #e8c36a;
  color: var(--green-dark);
  border-color: #e8c36a;
}
.btn-primary:hover { background: #f3d58a; color: var(--green-dark); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.75);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-green:hover { background: var(--green-mid); color: #fff; }
.btn-wide { min-width: 16rem; padding-block: 1rem; font-size: 1.08rem; }

/* Trust bar */
.trust {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.trust ul {
  list-style: none;
  margin: 0;
  padding: 1.1rem 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem 1.25rem;
}
.trust li {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
  padding-left: 1.3rem;
  position: relative;
  text-wrap: pretty;
}
.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--tan);
}

/* Sections */
section { padding: 4rem 0; }
.section-kicker {
  color: var(--tan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
h2 {
  font-family: var(--font-serif);
  font-weight: 560;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 0.7rem;
  color: var(--green-dark);
}
.intro {
  max-width: 40rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

/* Gallery */
#gallery { background: var(--paper); }
.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
}
.gallery-grid figure {
  margin: 0;
  background: #ddd;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.85rem 0.7rem;
  background: linear-gradient(transparent, rgba(12,20,14,0.8));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}
.gallery-grid .wide { grid-column: 1 / 2; grid-row: 1 / 3; min-height: 420px; }
.gallery-grid .portrait img { aspect-ratio: 3/4; }
.gallery-grid .land img { aspect-ratio: 16/10; }
.note {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Builder */
#design {
  background: var(--green-dark);
  color: #f3eee5;
}
#design h2 { color: #fff; }
#design .intro { color: #d5ddd7; }
.builder-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: #173526;
  border: 1px solid #2b5a40;
  border-radius: 18px;
  padding: 1.6rem;
}
.builder-copy p { margin: 0 0 1.1rem; }
.builder-copy .fine {
  font-size: 0.88rem;
  color: #c4d0c8;
}
.builder-visual {
  border-radius: 12px;
  overflow: hidden;
  min-height: 220px;
  background: #10291c center / cover no-repeat;
  background-image: linear-gradient(180deg, rgba(16,41,28,0.1), rgba(16,41,28,0.55)), image-set(url("images/example-40x100-shop.webp") type("image/webp"), url("images/example-40x100-shop.jpg") type("image/jpeg"));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.builder-visual span {
  background: rgba(251,248,243,0.95);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

/* Quote form */
#quote { background: var(--cream); }
.form-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.25rem;
  align-items: start;
}
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 0.9rem; }
.hint { font-weight: 500; color: var(--muted); font-size: 0.8rem; }
input, select, textarea {
  font: inherit;
  padding: 0.65rem 0.7rem;
  border: 1px solid #cfc6b8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid #cde3d4;
  border-color: var(--green-mid);
}
textarea { min-height: 7rem; resize: vertical; }
.honey { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-error {
  display: none;
  grid-column: 1 / -1;
  background: #fde8e4;
  color: #7a1f12;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
}
.form-error.show { display: block; }
button.btn { border-style: solid; }

/* Areas */
#areas { background: var(--paper); }
.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.towns li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* FAQ */
#faq { background: var(--cream); }
.faq-list { display: grid; gap: 0.7rem; max-width: 46rem; }
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--green-dark);
}
details p { margin: 0.6rem 0 0.15rem; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: #d5ddd7;
  padding: 2.2rem 0 2.6rem;
  font-size: 0.95rem;
}
.site-footer strong { color: #fff; }
.site-footer a { color: #e8c36a; }
.site-footer p { margin: 0 0 0.55rem; }

@media (max-width: 860px) {
  .trust ul { grid-template-columns: 1fr 1fr; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-grid .wide { grid-column: 1 / -1; grid-row: auto; min-height: 260px; }
  .builder-panel, .form-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .hero { min-height: 0; align-items: end; }
  .hero-inner { padding: 3.2rem 0 2.4rem; }
  .header-inner { flex-direction: column; align-items: flex-start; padding-block: 0.8rem; }
  .nav { justify-content: flex-start; gap: 0.2rem 0.9rem; }
}
@media (max-width: 560px) {
  .trust ul { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .portrait img { aspect-ratio: 4/5; max-height: 26rem; }
  .btn-wide { min-width: 0; width: 100%; }
}


/* Structure types */
#structures { background: var(--cream); }
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.type-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.05rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 100%;
}
.type-card svg {
  width: 44px;
  height: 44px;
  color: var(--green);
  margin-bottom: 0.35rem;
}
.type-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-dark);
}
.type-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.coming-soon {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: #e8c36a;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  margin-bottom: 0.6rem;
}

@media (max-width: 860px) {
  .type-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .type-grid { grid-template-columns: 1fr; }
}

/* Town pages and linked service areas */
.hero-town { min-height: min(58vh, 560px); }
.hero-town h1 { max-width: 22ch; }
.town-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.town-copy { max-width: 46rem; }
.town-copy p { margin: 0 0 1.05rem; }
.town-copy p:last-child { margin-bottom: 0; }
.town-uses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.town-uses li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.town-photo {
  margin: 0;
  background: #ddd;
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 5rem;
}
.town-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.town-photo figcaption {
  padding: 0.75rem 0.9rem 0.95rem;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.88rem;
}
.towns li { padding: 0; }
.towns a,
.towns span {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  color: var(--green-dark);
  text-decoration: none;
}
.towns a:hover,
.towns a:focus {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.towns li.is-current {
  background: var(--green);
  border-color: var(--green);
}
.towns li.is-current span { color: #fff; }

@media (max-width: 860px) {
  .town-layout { grid-template-columns: 1fr; }
  .town-photo { position: static; }
  .town-photo img { aspect-ratio: 16/10; }
}
@media (max-width: 560px) {
  .town-uses { grid-template-columns: 1fr; }
}
