/* Cape Coral Concrete — shared styles */

:root {
  --primary: #1f2a44;
  --primary-dark: #141c30;
  --accent: #d97706;
  --accent-dark: #b45f04;
  --accent-soft: #fef3e2;
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --bg-soft: #f5f4f1;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --max: 1180px;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.18s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
}
.brand-mark {
  width: 28px; height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 5px;
  text-align: center;
  font-size: 13px;
  line-height: 28px;
  font-weight: 800;
  letter-spacing: 0;
}
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  line-height: 1.1;
}
.header-call:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.header-call:active { transform: translateY(0.5px); }
.header-call .icon {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  flex-shrink: 0;
}
.header-call .text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}
.header-call .label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}
.header-call .num {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

/* ---------- Nav ---------- */
.site-nav { background: #fff; border-bottom: 1px solid var(--border); }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  min-height: 44px;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-block;
  padding: 11px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
}
.nav-link:hover { background: var(--bg-soft); color: var(--primary); }
.nav-link[aria-current="page"] { color: var(--accent-dark); }
.nav-item.has-dropdown > .nav-link::after { content: " ▾"; font-size: 10px; color: var(--muted); }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: none;
  z-index: 40;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown,
.nav-item.has-dropdown.open .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.dropdown a:hover { background: var(--bg-soft); color: var(--primary); }

/* ---------- Page layout ---------- */
main { display: block; }
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 8px;
}
.page-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.page-main { min-width: 0; }
.page-side { position: sticky; top: 70px; }

/* Article head (hero replacement) */
.article-head { margin-bottom: 22px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.article-head h1 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--primary);
}
.article-head .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 16px;
}
.hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--bg-soft);
  margin-top: 16px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 6px 0 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}
.trust svg { width: 16px; height: 16px; flex-shrink: 0; stroke: var(--accent); }

/* ---------- Prose ---------- */
.prose { padding-top: 8px; }
.prose h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 32px 0 10px;
  color: var(--primary);
  line-height: 1.22;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 24px 0 6px;
  color: var(--primary);
}
.prose p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.65;
}
.prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--primary); }
.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--accent); color: var(--accent-dark); }

/* ---------- Photo strips ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 26px;
}
.photo-strip.two { grid-template-columns: repeat(2, 1fr); }
.photo-strip.four { grid-template-columns: repeat(4, 1fr); }
.photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 10px;
}

/* ---------- Phone CTA ---------- */
.phone-cta {
  text-align: center;
  margin: 40px 0 8px;
  padding: 32px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.phone-cta .label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.phone-cta .number {
  display: inline-block;
  font-size: 38px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.phone-cta .number:hover { color: var(--accent-dark); }
.phone-cta .micro {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- Lead form ---------- */
.lead-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-sm);
}
.lead-form-wrap .form-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 4px;
}
.lead-form-wrap .form-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}
.lead-form .row { margin-bottom: 12px; }
.lead-form label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lead-form textarea { min-height: 90px; resize: vertical; }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}
.lead-form .submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s;
}
.lead-form .submit:hover { background: var(--accent-dark); }
.lead-form .err {
  font-size: 12px;
  color: #b91c1c;
  margin-top: 4px;
  display: none;
}
.lead-form .err.show { display: block; }
.form-thanks {
  display: none;
  padding: 16px 4px;
  text-align: center;
}
.form-thanks.show { display: block; }
.form-thanks h3 {
  font-size: 18px;
  color: var(--primary);
  margin: 0 0 8px;
}
.form-thanks p { font-size: 14px; color: var(--text); margin: 0; }
.form-thanks a { color: var(--accent-dark); font-weight: 600; }
.form-side-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.form-side-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Service grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.service-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
}
.service-card:hover { border-color: var(--accent); }
.service-card h3 {
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--primary);
}
.service-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary);
  color: #d8dde7;
  padding: 44px 0 24px;
  margin-top: 56px;
}
.site-footer .container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.site-footer a { color: #f3f4f6; }
.footer-phone { text-align: center; margin-bottom: 28px; }
.footer-phone .num {
  display: inline-block;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.footer-phone .num:hover { color: #fbbf6f; }
.footer-phone .micro {
  display: block;
  font-size: 12px;
  color: #a8b0c0;
  margin-top: 6px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 24px;
}
.footer-disclaimer { font-size: 13px; color: #b8c0cf; line-height: 1.55; }
.footer-area { font-size: 13px; color: #b8c0cf; margin-top: 12px; }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 12px;
  color: #a0a8b8;
}
.footer-bottom a { color: #c8cfdc; margin-right: 16px; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- Mobile sticky bottom call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--primary-dark);
  z-index: 60;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  width: 100%;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}
.mobile-call-bar svg { width: 18px; height: 18px; stroke: var(--accent); }

/* ---------- Inline FAQ + misc ---------- */
.faq-block {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 22px 0;
}
.faq-block h2 { margin-top: 0 !important; font-size: 22px !important; }
.faq-block p:last-child { margin-bottom: 0; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }

.area-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 14px 0 18px; padding: 0; list-style: none;
}
.area-list li a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  background: #fff;
}
.area-list li a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .page-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .page-main { display: contents; }
  .article-head { order: 0; margin-bottom: 14px; }
  .page-side { order: 1; position: static; margin-bottom: 28px; }
  .prose { order: 2; }
}

@media (max-width: 768px) {
  body { font-size: 16px; padding-bottom: 60px; }
  .article-head h1 { font-size: 28px; }
  .article-head .lede { font-size: 16px; }
  .header-call .label { display: none; }
  .header-call .num { font-size: 14px; color: #fff; }
  .header-call {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    padding: 8px 12px;
    box-shadow: none;
  }
  .header-call:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
  }
  .header-call .icon { stroke: #fff; }
  .brand-mark { width: 26px; height: 26px; line-height: 26px; font-size: 12px; }
  .brand { font-size: 13px; }
  .prose h2 { font-size: 22px; }
  .prose h3 { font-size: 18px; }
  .phone-cta .number { font-size: 28px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .nav-inner { gap: 0; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .nav-link { white-space: nowrap; padding: 10px 12px; font-size: 13px; }
  .nav-item.has-dropdown > .nav-link::after { display: none; }
  .nav-item .dropdown { display: none !important; }
  .mobile-call-bar { display: block; }
  .service-grid { grid-template-columns: 1fr; }
  .photo-strip, .photo-strip.four { grid-template-columns: repeat(2, 1fr); }
  .footer-phone .num { font-size: 26px; }
  .page { padding: 20px 16px 0; }
}

@media (max-width: 520px) {
  .container, .header-inner, .nav-inner { padding-left: 16px; padding-right: 16px; }
  .article-head h1 { font-size: 24px; }
  .photo-strip { grid-template-columns: 1fr; }
  .trust-row { gap: 8px 16px; }
}
