/* Leggacy Fence - same palette as the ad landing pages (dark charcoal + gold). */
:root {
  --ink: #17130f;
  --ink-2: #221c16;
  --gold: #c9a465;
  --gold-light: #e4ca96;
  --paper: #ffffff;
  --paper-muted: #faf9f6;
  --text: #1f1b16;
  --text-muted: #6b6459;
  --line: rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { background: var(--ink); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo img { height: 40px; width: auto; }
.header-phone {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--gold); }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: var(--ink) url("images/vinyl-fence-hero.jpg") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 15, 0.68);
}
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 88px; }
.hero-inner { max-width: 640px; }
.pill {
  display: inline-block;
  margin: 0 0 18px;
  padding: 4px 12px;
  border: 1px solid rgba(201, 164, 101, 0.4);
  background: rgba(201, 164, 101, 0.1);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 500;
}
.hero h1 { font-size: clamp(34px, 6vw, 52px); }
.checks { list-style: none; margin: 24px 0 0; padding: 0; }
.checks li { display: flex; gap: 10px; margin: 6px 0; }
.checks li::before { content: "\2713"; color: var(--gold); }
.hero .checks li { color: rgba(255, 255, 255, 0.9); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 6px;
  border: 2px solid var(--gold);
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--gold); color: var(--ink); }
.btn-solid { background: var(--gold); color: var(--ink); }
.btn-solid:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* Sections */
.section { padding: 56px 0; border-bottom: 1px solid var(--line); text-align: center; }
.section.muted { background: var(--paper-muted); }
.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.section h2 { margin-top: 8px; font-size: clamp(26px, 4vw, 32px); }
.lead { max-width: 640px; margin: 12px auto 0; color: var(--text-muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
  text-align: left;
}
.card {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: var(--paper);
}
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 18px 20px 22px; }
.card h3 { font-size: 21px; }
.card p { margin: 8px 0 0; color: var(--text-muted); font-size: 15px; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 4px 32px;
  max-width: 680px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
  color: var(--text-muted);
}
.check-grid li { display: flex; gap: 10px; margin: 4px 0; }
.check-grid li::before { content: "\2713"; color: var(--gold); }

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 28px auto 0;
  text-align: left;
}
.review {
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: var(--paper);
  font-size: 14px;
}
.review strong { color: var(--text); }
.review p { margin: 10px 0 0; color: var(--text-muted); }

.faq { max-width: 680px; margin: 24px auto 0; text-align: left; }
.faq details { padding: 16px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 8px 0 0; color: var(--text-muted); font-size: 15px; }

/* Contact / text messaging */
.contact-grid {
  max-width: 380px;
  margin: 28px auto 0;
  text-align: center;
}
.contact-box {
  padding: 32px 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  background: var(--paper-muted);
  box-shadow: 0 10px 30px rgba(23, 19, 15, 0.08);
  text-align: center;
}
.contact-box h3 { font-size: 24px; }
.contact-address { margin: 10px 0 0; color: var(--text-muted); font-size: 16px; }
.contact-call { margin-top: 20px; width: 100%; }
.contact-area {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  font-size: 14px;
}

/* Final CTA + footer */
.cta-band { padding: 56px 0; background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(26px, 4vw, 32px); }
.cta-band p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.75); }
.cta-band .btn-row { justify-content: center; }

.site-footer {
  padding: 40px 0;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-align: center;
}
.site-footer img { height: 40px; width: auto; margin: 0 auto 12px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--gold-light); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-links { margin-top: 12px !important; font-size: 13px; }
.footer-links a { color: rgba(255, 255, 255, 0.6); margin: 0 8px; }

/* Legal pages */
.legal { padding: 48px 0 64px; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); }
.legal .effective { margin: 8px 0 0; color: var(--text-muted); font-size: 14px; }
.legal h2 { margin: 32px 0 8px; font-size: 21px; }
.legal p, .legal li { color: #3a342c; }
.legal ul { padding-left: 20px; }
.legal .callout {
  margin: 16px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: var(--paper-muted);
}

@media (max-width: 480px) {
  .logo img { height: 32px; }
  .header-phone { font-size: 14px; }
  .btn { width: 100%; }
}
