/* =========================================================
   Waco Fence Pros — site stylesheet
   Mobile-first. Earthy Texas palette. Plain CSS, no framework.
   ========================================================= */

:root {
  /* Palette */
  --bg:          #f6f2ea;   /* warm cream */
  --surface:    #fbf8f1;
  --surface-2:  #efe8d9;
  --ink:        #1f241f;    /* near-black charcoal w/ green undertone */
  --ink-2:      #3a4138;
  --muted:      #6b6f66;
  --line:       #d9d2c1;
  --primary:    #2e5339;    /* deep forest green */
  --primary-2:  #1f3a27;
  --accent:     #b4561c;    /* cedar/rust */
  --accent-2:   #8d3f10;
  --gold:       #c9a35a;    /* subtle warm tone */
  --success:    #437a22;
  --error:      #a23a2a;

  --radius:     10px;
  --radius-lg:  18px;
  --shadow-sm:  0 1px 2px rgba(31,36,31,.06), 0 1px 1px rgba(31,36,31,.04);
  --shadow-md:  0 4px 14px rgba(31,36,31,.10), 0 2px 4px rgba(31,36,31,.06);

  --maxw:       1140px;
  --pad:        clamp(1rem, 2.5vw, 1.5rem);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary-2); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: .35rem; }
small { color: var(--muted); }

/* Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--primary); color: #f4ead6; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: #f7d9a8; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.grid--hero { gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) {
  .grid--hero { grid-template-columns: 1.15fr .85fr; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, color .15s ease, border-color .15s ease;
  line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); color: #fff; }
.btn--secondary { background: var(--primary); color: #fff; }
.btn--secondary:hover { background: var(--primary-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--lg { padding: 1rem 1.5rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.brand:hover { color: var(--primary); }
.brand-logo { width: 36px; height: 36px; color: var(--primary); flex: 0 0 auto; }
.brand-name { line-height: 1; }
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
  align-items: center;
}
.nav-list a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  white-space: nowrap;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--primary); }

.nav-cta { display: none; align-items: center; gap: .5rem; }
.nav-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: .5rem .65rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  font-size: .92rem;
}
.nav-toggle:hover { border-color: var(--ink); }

@media (min-width: 920px) {
  .nav-list { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

@media (min-width: 920px) and (max-width: 1100px) {
  .brand { font-size: 1.05rem; }
  .brand-name small { font-size: .62rem; letter-spacing: .1em; }
  .nav-list { gap: .7rem; }
  .nav-list a { font-size: .9rem; }
  .nav-cta .btn { padding-left: .9rem; padding-right: .9rem; }
}

/* Mobile nav drawer */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: .5rem 0 1rem;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu li { margin: 0; }
.mobile-menu a {
  display: block;
  padding: .75rem var(--pad);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.mobile-menu a:hover { background: var(--surface-2); color: var(--primary); }

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 380px at 85% -10%, rgba(180, 86, 28, .14), transparent 60%),
    radial-gradient(900px 460px at 0% 110%, rgba(46, 83, 57, .10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
  max-width: 56ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  font-size: .95rem;
  color: var(--ink-2);
}
.hero-meta div { display: flex; align-items: center; gap: .5rem; }
.hero-meta svg { width: 18px; height: 18px; color: var(--primary); flex: 0 0 auto; }

/* Decorative fence-slat panel (no images needed) */
.fence-panel {
  position: relative;
  background:
    repeating-linear-gradient(
      90deg,
      #c2895a 0 22px,
      #b27a4d 22px 24px,
      #c2895a 24px 46px,
      #aa6f44 46px 48px
    );
  border-radius: var(--radius-lg);
  padding: 0;
  height: clamp(220px, 40vw, 360px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid #8c5a32;
}
.fence-panel::before, .fence-panel::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 14px;
  background: #6f4727;
  box-shadow: 0 1px 0 rgba(0,0,0,.15) inset;
}
.fence-panel::before { top: 18%; }
.fence-panel::after  { bottom: 18%; }
.fence-panel-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-md);
  font-size: .95rem;
  max-width: 86%;
  text-align: center;
}
.fence-panel-card strong { color: var(--primary); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #c1b89e; }
.card h3 { margin-top: .25rem; }
.card p { color: var(--ink-2); }
.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
  margin-top: .5rem;
}
.card a.card-link:hover { color: var(--accent-2); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(46, 83, 57, .08);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
}
.card-icon svg { width: 24px; height: 24px; }

/* List with checkmarks (inline SVG via background-image) */
.checks { list-style: none; padding: 0; margin: 0 0 1rem; }
.checks li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: .55rem;
  color: var(--ink-2);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .35em;
  width: 18px; height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e5339' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}
.checks--accent li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4561c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>");
}

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 1rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1rem 1.1rem 3.2rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: .9rem; top: 1rem;
  width: 1.85rem; height: 1.85rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-size: .98rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.step p { font-size: .95rem; color: var(--ink-2); margin: 0; }

/* FAQ accordion */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform .15s ease;
  font-family: var(--font-body);
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-top: .75rem; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Form */
.lead-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-md);
}
.lead-form h3 { margin-top: 0; }
.form-row { display: grid; gap: .75rem; margin-bottom: .9rem; }
@media (min-width: 600px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.lead-form label {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .3rem;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .7rem .8rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 83, 57, .15);
}
.lead-form textarea { min-height: 110px; resize: vertical; }
.lead-form .req { color: var(--accent); }
.lead-form .optional { color: var(--muted); font-size: .82em; font-weight: 500; }
.form-note {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .75rem;
}
.form-note a { color: var(--muted); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.form-status {
  margin: .85rem 0 0;
  padding: .75rem .9rem;
  border-radius: 10px;
  background: rgba(67, 122, 34, .1);
  color: var(--primary-2);
  font-weight: 600;
  font-size: .95rem;
}
.form-status--error {
  background: rgba(162, 58, 42, .1);
  color: var(--error);
}

/* Trust band */
.trust {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 720px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: .15rem;
}
.trust-item span { font-size: .9rem; color: var(--ink-2); }

/* CTA banner */
.cta-banner {
  background: var(--primary);
  color: #f4ead6;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 720px) {
  .cta-banner { grid-template-columns: 1.4fr .9fr; }
}
.cta-banner h2 { color: #fff; margin: 0; }
.cta-banner p { margin: .35rem 0 0; color: #e9dfc4; }
.cta-banner .actions {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-start;
}
@media (min-width: 720px) { .cta-banner .actions { justify-content: flex-end; } }

/* Material chips */
.chips {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none; padding: 0; margin: 0 0 1rem;
}
.chips li {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .8rem;
  font-size: .88rem;
  color: var(--ink-2);
  font-weight: 500;
  margin: 0;
}

/* Footer */
.site-footer {
  background: #1c2520;
  color: #d2cfc6;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer a { color: #f3d8a8; }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 .65rem;
  letter-spacing: .02em;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .35rem; }
.footer-grid a {
  color: #c5c1b6;
  text-decoration: none;
  font-size: .95rem;
}
.footer-grid a:hover { color: #fff; }
.footer-brand .brand { color: #fff; font-size: 1.2rem; }
.footer-brand .brand-logo { color: #c9a35a; }
.footer-brand p { color: #b6b2a6; margin-top: .75rem; max-width: 38ch; font-size: .95rem; }

.legal {
  margin-top: 2rem;
  border-top: 1px solid #2c3530;
  padding-top: 1.25rem;
  font-size: .82rem;
  color: #999588;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
}
.legal a { color: #c5c1b6; text-decoration: underline; text-underline-offset: 3px; }

/* Sticky mobile CTA bar */
.mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--primary);
  border-top: 1px solid #14241a;
  box-shadow: 0 -4px 16px rgba(0,0,0,.15);
}
.mobile-cta a {
  padding: .9rem 1rem;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-size: 1rem;
}
.mobile-cta a { background: var(--accent); }
.mobile-cta svg { width: 18px; height: 18px; }
@media (min-width: 920px) { .mobile-cta { display: none; } }
@media (max-width: 919px) { body { padding-bottom: 64px; } }

/* Misc */
.muted { color: var(--muted); }
.center { text-align: center; }
.kicker {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: .5rem;
}
.divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2rem 0;
}
.notice {
  background: #fff8e8;
  border: 1px solid #e9d59a;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-size: .95rem;
  color: #5b4a13;
}
.notice strong { color: #4a3b08; }

/* Accessibility */
:focus-visible { outline: 3px solid #b4561c; outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Print */
@media print {
  .site-header, .site-footer, .mobile-cta, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}

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