/* ===================================================
   Houston Iron Fence — sitewide stylesheet
   =================================================== */

:root {
  --navy: #14243D;
  --navy-light: #1F3A5F;
  --navy-lighter: #2C4D78;
  --accent: #C97D2E;
  --accent-dark: #A8631E;
  --bg: #FFFFFF;
  --bg-alt: #F6F4F0;
  --text: #1E2530;
  --text-light: #5B6472;
  --border: #E4E1DA;
  --white: #FFFFFF;

  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius: 8px;
  --shadow: 0 8px 24px rgba(20,36,61,0.10);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--navy);
}
p { margin: 0 0 1em; }
address { font-style: normal; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 2000;
}
.skip-link:focus { left: 0; }

.section { padding: 4.5rem 1.25rem; }
.section-inner { max-width: var(--container); margin: 0 auto; }
.center { text-align: center; }
.section-lede {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--text-light);
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent-dark);
  margin: 0 0 0.5em;
}
.eyebrow.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.5em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-lg { padding: 0.9em 1.9em; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.logo-text {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.1;
}
.logo-text strong { display: block; font-weight: 700; color: var(--accent-dark); }

.main-nav { flex: 1; }
.main-nav > ul { display: flex; align-items: center; gap: 1.75rem; justify-content: center; flex-wrap: wrap; }
.main-nav > ul > li > a,
.dropdown-toggle {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 0.5rem 0;
  text-align: left;
}
.main-nav > ul > li > a:hover,
.dropdown-toggle:hover { color: var(--accent-dark); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 230px;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: flex; }
.dropdown li a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text);
}
.dropdown li a:hover { background: var(--bg-alt); color: var(--accent-dark); }

.header-cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; min-height: 560px; }
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20,36,61,0.55) 0%, rgba(20,36,61,0.75) 60%, rgba(20,36,61,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  width: 100%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-content .eyebrow { color: #F0C089; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  max-width: 16ch;
  margin-bottom: 0.4em;
  text-wrap: balance;
}
.hero-sub { max-width: 46ch; font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-badges { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero-form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35);
  overflow: hidden;
  height: 560px;
  max-height: 70vh;
}
.hero-form-card iframe { width: 100%; height: 100%; border: none; display: block; }
.hero-badges li {
  font-size: 0.85rem;
  font-weight: 600;
  padding-left: 1.3em;
  position: relative;
  color: rgba(255,255,255,0.92);
}
.hero-badges li::before {
  content: "";
  position: absolute; left: 0; top: 0.35em;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy); }
.trust-strip-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.trust-item {
  display: flex; align-items: center; gap: 0.75rem;
  color: #fff; font-weight: 600; font-size: 0.92rem;
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1rem;
}
.service-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card img { aspect-ratio: 7 / 5; object-fit: cover; }
.service-card-body { padding: 1.5rem; }
.service-card-body h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.service-card-body p { color: var(--text-light); font-size: 0.93rem; }
.card-link { color: var(--accent-dark); font-weight: 600; font-size: 0.88rem; }

/* ---------- Why choose us ---------- */
.why { background: var(--bg-alt); }
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.why-list { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; }
.why-list li { display: flex; flex-direction: column; gap: 0.15em; padding-left: 1.6em; position: relative; }
.why-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.3em;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 2px;
}
.why-list strong { color: var(--navy); font-size: 1rem; }
.why-list span { color: var(--text-light); font-size: 0.92rem; }
.why-list a { color: var(--accent-dark); font-weight: 600; }
.why-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }

/* ---------- Cost banner ---------- */
.cost-banner { background: var(--navy); color: #fff; padding: 3.5rem 1.25rem; }
.cost-banner h2 { color: #fff; margin-bottom: 0.3em; }
.cost-banner p { color: rgba(255,255,255,0.85); margin: 0; }
.cost-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cost-banner-actions { display: flex; gap: 1rem; flex-wrap: wrap; flex-shrink: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.gallery-grid img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Service areas ---------- */
.areas { background: var(--bg-alt); }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}
.areas-grid a {
  display: block;
  text-align: center;
  padding: 0.85rem 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}
.areas-grid a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1rem;
}
.testimonial-card {
  margin: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.stars { color: var(--accent); letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.testimonial-card blockquote { margin: 0 0 1rem; font-size: 0.95rem; color: var(--text); }
.testimonial-card figcaption { font-size: 0.85rem; font-weight: 600; color: var(--text-light); }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 780px; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  padding-right: 2rem;
}
.accordion-trigger::after {
  content: "+";
  position: absolute;
  right: 0; top: 1.15rem;
  font-size: 1.3rem;
  color: var(--accent);
}
.accordion-trigger[aria-expanded="true"]::after { content: "\2212"; }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-panel p { padding-bottom: 1.25rem; color: var(--text-light); margin: 0; }
.accordion-item.open .accordion-panel { max-height: 300px; }

/* ---------- Quote section ---------- */
.quote-section { background: var(--navy-light); color: #fff; }
.quote-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.quote-copy h2 { color: #fff; }
.quote-copy p { color: rgba(255,255,255,0.85); }
.quote-form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 1570px;
  max-height: 80vh;
  min-height: 500px;
}
.quote-form-card iframe { width: 100%; height: 100%; border: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.85); }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--accent); }
.footer-about p { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.logo-footer .logo-text { color: #fff; }
.logo-footer .logo-text strong { color: var(--accent); }
.footer-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.25em 0.7em;
  border-radius: 999px;
  margin: 0.5rem 0 1rem;
}
address { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 0.75rem; }
address a { color: rgba(255,255,255,0.9); }
.footer-hours { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem;
}
.footer-bottom > * { max-width: var(--container); margin: 0 auto; }
.footer-bottom { display: flex; }
.footer-bottom p, .footer-legal { display: flex; align-items: center; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.82rem; margin: 0; }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.footer-legal a:hover { color: var(--accent); }

/* ---------- Mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 0.9rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .mobile-toggle { display: flex; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip-inner { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-form-card { height: 620px; max-height: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why-media { order: -1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .quote-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .mobile-call-bar { display: flex; }
  body { padding-bottom: 58px; }

  .main-nav.open {
    display: block;
    position: fixed;
    inset: 65px 0 0 0;
    background: #fff;
    padding: 1rem 1.25rem;
    overflow-y: auto;
    z-index: 999;
  }
  .main-nav.open > ul { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .main-nav.open > ul > li { width: 100%; border-bottom: 1px solid var(--border); }
  .main-nav.open > ul > li > a,
  .main-nav.open .dropdown-toggle {
    display: block; width: 100%; padding: 1rem 0; position: relative; padding-right: 1.5rem;
  }
  .main-nav.open .dropdown-toggle::after {
    content: "+";
    position: absolute; right: 0; top: 0.85rem;
    color: var(--accent); font-size: 1.1rem;
  }
  .main-nav.open .has-dropdown.open .dropdown-toggle::after { content: "\2212"; }
  .main-nav.open .dropdown {
    position: static; display: none; box-shadow: none; border: none;
    padding: 0 0 0.5rem 1rem; min-width: 0;
  }
  .main-nav.open .has-dropdown.open .dropdown { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 3rem 1.25rem; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .hero-form-card { height: 540px; }
  .cost-banner-inner { flex-direction: column; align-items: flex-start; }
}
