/* Valley Site Co — Forest & Timber (palette 1)
   Primary #1A4D36  Secondary #7A5A32  Accent #C4A26A
   Neutral #F3EFE7  Ink #1C1916
*/

:root {
  --forest: #1A4D36;
  --timber: #7A5A32;
  --accent: #C4A26A;
  --paper: #F3EFE7;
  --ink: #1C1916;
  --white: #ffffff;
  --muted: #5c5348;
  --line: rgba(28, 25, 22, 0.12);
  --forest-deep: #123828;
  --header-h: 4.25rem;
  --wrap: 68rem;
  --fh: "Barlow Condensed", "Arial Narrow", sans-serif;
  --fb: "Barlow", "Segoe UI", sans-serif;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--fb);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn:disabled,
.btn:disabled:hover {
  transform: none;
  box-shadow: none;
  background: #8aa395;
  color: var(--white);
  cursor: not-allowed;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--forest);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 6px;
}
.skip:focus { top: 0.75rem; }

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

h1, h2, h3 {
  font-family: var(--fh);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 600;
}

h2 { font-size: clamp(2rem, 5vw, 3.15rem); }

.eyebrow {
  font-family: var(--fb);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--timber);
  margin-bottom: 0.55rem;
}

.sec { padding: 4.25rem 0; scroll-margin-top: calc(var(--header-h) + 1.25rem); }
.sec-head { max-width: 38rem; margin-bottom: 2.25rem; }
.sec-head p { color: var(--muted); margin-top: 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a { text-decoration: none; }
.nav a:hover { color: var(--forest); }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  position: relative;
  border-radius: 1px;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 8px 22px -10px rgba(26, 77, 54, 0.7);
}
.btn-primary:hover { background: var(--forest-deep); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-outline:hover { background: var(--paper); }

.header-cta { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--forest);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero .wrap {
  padding: 3.25rem 0 calc(clamp(4.5rem, 18vw, 9.5rem) + 3rem);
  position: relative;
  z-index: 1;
}

.hero .eyebrow { color: var(--accent); }

.hero h1 {
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  font-weight: 600;
  max-width: 16ch;
  margin-bottom: 1.1rem;
}

.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  max-width: 36rem;
  opacity: 0.92;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero .btn-primary {
  background: var(--paper);
  color: var(--forest);
  box-shadow: none;
}
.hero .btn-primary:hover { background: var(--white); }

.hero .price-line {
  margin-top: 1.35rem;
  font-size: 0.95rem;
  color: var(--paper);
  opacity: 0.9;
}

.horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(4.5rem, 18vw, 9.5rem);
  color: var(--paper);
  z-index: 0;
  pointer-events: none;
}

/* ---------- How it works ---------- */
.how { background: var(--paper); }

.steps {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.6rem;
  position: relative;
}

.step .num {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
}

.step h3 { font-size: 1.55rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 1rem; }

/* ---------- Pricing ---------- */
.build-band {
  display: grid;
  gap: 0.75rem;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  margin-bottom: 1.5rem;
}

.build-band .label {
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
}

.build-band .amt {
  font-family: var(--fh);
  font-size: clamp(2.6rem, 8vw, 4rem);
  font-weight: 600;
  line-height: 1;
}

.build-band .amt span {
  font-family: var(--fb);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 0.35rem;
  opacity: 0.85;
}

.build-band p { max-width: 34rem; opacity: 0.92; }

.plans {
  display: grid;
  gap: 1rem;
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.6rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.plan.featured {
  border: 2px solid var(--forest);
  background: var(--paper);
}

.plan h3 {
  font-size: 1.65rem;
  margin-bottom: 0.15rem;
}

.plan .rate {
  font-family: var(--fh);
  font-size: 2.15rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1;
  margin: 0.55rem 0 0.85rem;
}

.plan .rate span {
  font-family: var(--fb);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.plan .yearly {
  font-size: 0.92rem;
  color: var(--timber);
  font-weight: 600;
  margin: -0.4rem 0 0.85rem;
}

.plan ul { display: grid; gap: 0.5rem; }
.plan li {
  padding-left: 1.2rem;
  position: relative;
  color: var(--ink);
  font-size: 0.98rem;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--forest);
}

.plan-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Examples ---------- */
.examples { background: var(--paper); }

.demos {
  display: grid;
  gap: 0.85rem;
}

.demo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.3rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 8.5rem;
}

.demo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(28, 25, 22, 0.35);
}

.demo-card h3 { font-size: 1.55rem; }
.demo-card p { color: var(--muted); font-size: 0.95rem; margin-top: 0.2rem; }
.demo-card .go {
  font-weight: 600;
  color: var(--forest);
  font-size: 0.95rem;
}
.demo-card .go::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.35rem;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.65rem; max-width: 46rem; }

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 0.15rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 1.15rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--fh);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1;
  flex: none;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
  max-width: 42rem;
}

/* ---------- Contact ---------- */
.contact { background: var(--paper); }

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-card,
form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
}

.phone-placeholder {
  font-family: var(--fh);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 600;
  color: var(--forest);
  margin: 0.4rem 0 0.75rem;
  line-height: 1.15;
}

.contact-card p { color: var(--muted); }

.form-note {
  background: var(--paper);
  border-left: 3px solid var(--accent);
  padding: 0.7rem 0.85rem;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.field { display: grid; gap: 0.3rem; margin-bottom: 0.85rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  background: var(--white);
}
.field textarea { min-height: 7rem; resize: vertical; }

.form-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.form-actions .hint { font-size: 0.88rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest);
  color: var(--paper);
  padding: 2.25rem 0 2rem;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer .logo img { height: 40px; }

.site-footer p {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .wrap { width: min(var(--wrap), calc(100% - 3rem)); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .demos { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { padding: 4.5rem 0 calc(clamp(4.5rem, 18vw, 9.5rem) + 3.25rem); }
}

@media (min-width: 880px) {
  .menu-btn { display: none; }
  .nav { display: flex; }
  .header-cta { display: inline-flex; padding: 0.6rem 1.1rem; }
  .demos { grid-template-columns: repeat(3, 1fr); }
  .demos .demo-card:nth-child(4),
  .demos .demo-card:nth-child(5) { /* keep last two tidy on 3-col */ }
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 2rem; align-items: start; }
  .build-band {
    grid-template-columns: auto 1fr;
    gap: 1.5rem 2.25rem;
    align-items: end;
    padding: 1.85rem 2rem;
  }
  .build-band p { grid-column: 2; }
}

@media (min-width: 880px) {
  .nav.is-open { display: flex; }
}

/* Mobile drawer */
@media (max-width: 879px) {
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1.1rem;
    gap: 0.9rem;
  }
  .site-header { position: sticky; }
}
