/* ============================================================
   Foristell Fence Co. — Foristell, MO
   Shared stylesheet for all pages
   Palette: electric blue + brushed silver + black (from logo)
   ============================================================ */

:root {
  --blue:        #0E9BEC;   /* primary brand blue */
  --blue-dark:   #0A6FA8;
  --blue-deep:   #06557F;
  --blue-light:  #3BB4FB;
  --ink:         #0C0E10;   /* near-black brand */
  --ink-2:       #15181C;   /* dark section bg */
  --steel:       #8A949C;   /* muted metallic */
  --silver:      #C9D2D9;   /* light metallic */
  --gray-bg:     #EEF3F7;   /* light section background */
  --line:        #E2E8EE;   /* borders */
  --charcoal:    #1A1F24;   /* body text */
  --muted:       #5C666E;   /* muted text */
  --gold:        #F6B01E;   /* review stars only */
  --white:       #ffffff;
  --shadow:      0 8px 30px rgba(12,14,16,0.14);
  --shadow-sm:   0 3px 12px rgba(12,14,16,0.10);
  --radius:      12px;
  --maxw:        1180px;
  --font-head:   'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body:   'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: .6rem; }
h3 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--gray { background: var(--gray-bg); }
.section--dark { background: var(--ink-2); color: #d7dee4; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; font-weight: 700; color: var(--blue);
  margin-bottom: .6rem;
}
.section--dark .eyebrow { color: var(--blue-light); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.text-center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  padding: 14px 28px; border-radius: 50px; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; font-size: 1rem; text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: #e9f1f7; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.15); color: var(--white); }
.btn--lg { padding: 16px 38px; font-size: 1.08rem; }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #000; border-bottom: 3px solid var(--blue); }
.topbar { background: #000; color: #aeb8c0; font-size: .88rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .topbar-tag { color: var(--blue-light); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand .brand-logo { height: 50px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { color: #e7edf2; font-weight: 600; padding: 8px 13px; border-radius: 8px; font-size: .97rem; }
.nav-links a:hover { background: rgba(255,255,255,.09); text-decoration: none; color: #fff; }
.nav-links a.active { color: var(--blue-light); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone { font-family: var(--font-head); font-weight: 700; color: #fff; white-space: nowrap; }
.nav-phone:hover { color: var(--blue-light); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 3px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  background: linear-gradient(rgba(8,10,12,.55), rgba(8,10,12,.72)), var(--hero-img, linear-gradient(125deg, #0C0E10 0%, #0A2A40 52%, #0E9BEC 150%));
  background-size: cover; background-position: center;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr .9fr; gap: 44px; align-items: center; padding: 88px 0; }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero p.lead { color: #e4edf3; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 22px 0 26px; list-style: none; }
.hero .badges li { font-weight: 600; font-size: .95rem; }
.hero .badges li::before { content: "✔"; color: var(--blue-light); margin-right: 8px; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Quote form card ---------- */
.quote-card { background: var(--white); color: var(--charcoal); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--blue); }
.quote-card h3 { color: var(--ink); margin-bottom: 4px; }
.quote-card p.small { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #cfd9e1; border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem; background: #fbfdff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14,155,236,.14);
}
.form-consent { font-size: .78rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* ---------- Trust bar ---------- */
.trustbar { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: var(--white); }
.trustbar .container { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 18px; padding: 24px 22px; text-align: center; }
.trustbar .stat { flex: 1 1 180px; }
.trustbar .stat strong { display: block; font-family: var(--font-head); font-size: 1.8rem; line-height: 1.1; }
.trustbar .stat span { font-size: .92rem; color: #e3f1fb; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { width: 54px; height: 54px; border-radius: 12px; background: #e6f4fd; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1.6rem; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--blue-dark); }
a.card:hover .card-link { text-decoration: underline; }

.feature-list { list-style: none; }
.feature-list li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.feature-list li::before { content: "✔"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 700; }

/* ---------- Split section (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; aspect-ratio: 4/3; background: var(--gray-bg); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 0; bottom: 0; right: 0; background: linear-gradient(transparent, rgba(8,10,12,.82)); color: #fff; padding: 26px 14px 12px; font-size: .9rem; font-weight: 600; }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--blue); }
.testimonial .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.testimonial p { font-style: italic; color: var(--charcoal); }
.testimonial .who { font-weight: 700; color: var(--ink); font-style: normal; margin-top: 6px; }
.testimonial .who span { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); }

/* ---------- Service area columns ---------- */
.area-cols { columns: 3; column-gap: 30px; }
.area-cols a { display: block; padding: 6px 0; color: var(--charcoal); font-weight: 500; break-inside: avoid; }
.area-cols a:hover { color: var(--blue-dark); }

/* ---------- FAQ accordion ---------- */
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 22px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-q::after { content: "+"; font-size: 1.5rem; color: var(--blue); flex: 0 0 auto; transition: transform .2s; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 22px; }
.faq-item.open .faq-a { max-height: 600px; padding-bottom: 18px; }
.faq-a p { color: var(--muted); margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--ink) 0%, var(--blue-dark) 100%); color: #fff; border-radius: var(--radius); padding: 46px; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dCeaf4; max-width: 640px; margin: 0 auto 22px; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #9aa6af; padding: 56px 0 24px; font-size: .95rem; }
.site-footer h4 { color: var(--white); margin-bottom: 14px; font-size: 1.05rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer a { color: #9aa6af; }
.site-footer a:hover { color: var(--blue-light); text-decoration: none; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-brand .footer-logo { height: 76px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: #8893; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.13); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: #7e8a93; }
.placeholder-flag { color: var(--blue-light); font-weight: 600; }

/* ---------- Maps ---------- */
.footer-map { margin-top: 40px; }
.footer-map iframe { width: 100%; height: 220px; border: 0; display: block; border-radius: var(--radius); filter: grayscale(35%); }
.footer-map-link { margin-top: 10px; font-size: .88rem; }
.contact-map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .88rem; color: var(--muted); padding: 16px 0; }
.breadcrumbs a { color: var(--blue-dark); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(rgba(8,10,12,.58), rgba(8,10,12,.72)), var(--hero-img, linear-gradient(125deg, #0C0E10 0%, #0A2A40 55%, #0E9BEC 155%)); background-size: cover; background-position: center; color: #fff; padding: 72px 0; text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #e4edf3; max-width: 720px; margin: 12px auto 0; font-size: 1.12rem; }

/* ---------- Prose helpers ---------- */
.prose p { margin-bottom: 1rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; margin-bottom: .4rem; color: var(--ink); }
.inline-links { margin-top: 8px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 26px; }
.hide { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 0; }
  .split { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .area-cols { columns: 2; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: #000;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px;
    box-shadow: var(--shadow); display: none; border-bottom: 3px solid var(--blue);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; border-radius: 8px; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .area-cols { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-map iframe { height: 180px; }
  .contact-map iframe { height: 300px; }
  .cta-band { padding: 32px 20px; }
  .topbar .container { justify-content: center; }
  .nav-phone { display: none; }
}
