/* =================================================================
   Professional Foundation Repair — Site Stylesheet
   Designed for readability (larger type, high contrast) and
   easy navigation for all ages.
   ================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --navy: #0e3a5f;
  --navy-dark: #0a2c48;
  --blue: #1c6fb0;
  --blue-bright: #2e90d8;
  --blue-light: #e8f2fa;
  --accent: #f08a24;        /* call-to-action orange (Call buttons) */
  --accent-dark: #d8741a;
  --green: #1f9d55;         /* free-inspection / estimate CTA */
  --green-dark: #17864a;
  --ink: #1f2933;
  --muted: #51606e;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --border: #d9e2ec;
  --success: #2e7d32;
  --star: #f5a623;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 6px rgba(14, 58, 95, 0.08);
  --shadow: 0 8px 24px rgba(14, 58, 95, 0.12);
  --shadow-lg: 0 16px 48px rgba(14, 58, 95, 0.18);

  --container: 1180px;
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Base / Reset ---------- */
* { box-sizing: border-box; }

html {
  font-size: 112.5%;          /* ~18px base for readability */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }

p { margin: 0 0 1.1em; }

a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

ul { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.5em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: 70px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #eaf2f9; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding: 48px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--blue);
  background: var(--blue-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section--navy .eyebrow { color: #cfe6f8; background: rgba(255,255,255,0.12); }

.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.section--navy .section-head p { color: #cfe0ee; }

.lead { font-size: 1.18rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--navy); color: #fff; }
.btn--green { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--green:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--lg { font-size: 1.18rem; padding: 18px 34px; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cfe0ee;
  font-size: 0.92rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;   /* equal gaps between the three items = symmetrical */
  align-items: center;
  gap: 14px;
  min-height: 40px;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--accent); }
.topbar__left, .topbar__center, .topbar__right { white-space: nowrap; }
.topbar__center { font-weight: 600; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}
.brand__mark { height: 37px; width: auto; display: block; flex-shrink: 0; }
.brand__name { font-family: "Oswald", var(--font-head); font-weight: 700; line-height: 1.0; font-size: 1.08rem; color: var(--navy); text-transform: uppercase; letter-spacing: 0.02em; }
.brand__name span { display: block; font-size: 0.94rem; font-weight: 700; letter-spacing: 0.03em; color: var(--blue); text-transform: uppercase; }
.brand__logo { height: 56px; width: auto; display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1px;
  list-style: none;
  margin: 0 auto 0 4px;
  padding: 0;
}
.nav__links a {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 7px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav__links a:hover { background: var(--blue-light); color: var(--blue); }
.nav__links a.is-active { color: var(--blue); background: var(--blue-light); }

.nav__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__cta .btn { padding: 12px 20px; font-size: 1rem; }
.nav__phone {
  display: flex; flex-direction: column; align-items: flex-end;
  text-decoration: none; line-height: 1.05;
}
.nav__phone small { font-size: 0.64rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.nav__phone strong { font-family: var(--font-head); font-size: 1.02rem; color: var(--navy); }
.nav__phone:hover strong { color: var(--accent-dark); }

.nav__toggle {
  display: none;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(10,44,72,0.92) 0%, rgba(14,58,95,0.78) 48%, rgba(28,111,176,0.55) 100%),
    var(--navy) center/cover no-repeat;
  color: #fff;
}
.hero--photo {
  background:
    linear-gradient(115deg, rgba(10,44,72,0.92) 0%, rgba(14,58,95,0.78) 48%, rgba(28,111,176,0.55) 100%),
    url('../images/foundation-underpinning-interior.jpg') center/cover no-repeat;
}
.hero__inner { padding: 84px 0 96px; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { font-size: 1.25rem; color: #e6f0f9; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 20px 28px; font-weight: 600; }
.hero__trust span { display: flex; align-items: center; gap: 8px; color: #fff; }
.hero__trust .ck { color: #7bd389; font-size: 1.2rem; }
/* Yelp + BBB seals in the hero's open right space */
.hero .container { position: relative; }
.hero__badges { position: absolute; top: 50%; right: 24px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 16px; align-items: center; z-index: 2; }
.hero__badges img { display: block; width: 138px; height: auto; background: #fff; border-radius: 12px; padding: 10px; box-shadow: var(--shadow); }
@media (max-width: 980px) {
  .hero__badges { position: static; transform: none; flex-direction: row; justify-content: flex-start; gap: 14px; margin-top: 26px; }
  .hero__badges img { width: 116px; }
}

/* page hero (inner pages) */
.page-hero {
  background: linear-gradient(115deg, var(--navy-dark), var(--blue));
  color: #fff;
  padding: 60px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #dcebf7; font-size: 1.18rem; margin: 0; max-width: 720px; }
.breadcrumbs { font-size: 0.92rem; margin-bottom: 14px; color: #b8d4ea; }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Trust strip ---------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--border); }
.trust-strip .container {
  display: flex; flex-wrap: wrap; justify-content: space-around; gap: 16px;
  padding-top: 26px; padding-bottom: 26px; text-align: center;
}
.trust-strip .stat strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--blue); line-height: 1; }
.trust-strip .stat span { font-size: 0.95rem; color: var(--muted); font-weight: 600; }

/* ---------- Grid helpers ---------- */
.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); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 58px; height: 58px; border-radius: 14px;
  background: var(--blue-light); color: var(--blue);
  display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 16px;
}
.card--link { display: block; text-decoration: none; color: inherit; }
.card--link .more { color: var(--blue); font-weight: 700; font-family: var(--font-head); }
.card--link:hover .more { color: var(--accent-dark); }

/* media + text split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split img.tall { aspect-ratio: 4/3; }

/* ---------- Feature list with checks ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li {
  position: relative; padding-left: 36px; margin-bottom: 14px; font-size: 1.06rem;
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--success); color: #fff;
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 700;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 70px; margin-bottom: 30px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: 4px; }

/* ---------- Testimonials ---------- */
.review { background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.review .stars { color: var(--star); font-size: 1.15rem; letter-spacing: 2px; margin-bottom: 12px; }
.review blockquote { margin: 0 0 16px; font-size: 1.06rem; }
.review cite { font-style: normal; font-weight: 700; color: var(--navy); font-family: var(--font-head); }

/* ---------- Service area columns ---------- */
.area-grid { columns: 4; column-gap: 28px; }
.area-grid a { display: flex; align-items: center; gap: 9px; padding: 8px 0; text-decoration: none; color: var(--ink); font-weight: 600; break-inside: avoid; }
.area-grid a::before {
  content: "";
  flex: 0 0 auto;
  width: 18px; height: 18px;
  background-color: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.area-grid a:hover { color: var(--blue); }

/* ---------- FAQ / accordion ---------- */
.faq-item { background:#fff; border:1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 56px 22px 24px; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 1.7rem; color: var(--blue); line-height: 1; font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--muted); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--accent), var(--accent-dark)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { font-size: 1.15rem; color: #fff8f0; max-width: 640px; margin: 0 auto 26px; }
.cta-band .btn--ghost { background:#fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.info-list .ico { background: var(--blue-light); color: var(--blue); width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.card__icon svg, .info-list .ico svg { display: block; }
.info-list strong { display:block; font-family: var(--font-head); color: var(--navy); }
.info-list a { font-size: 1.15rem; }

form .field { margin-bottom: 18px; }
form label { display:block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-family: var(--font-head); }
form input, form select, form textarea {
  width: 100%; padding: 14px 16px; font-size: 1.05rem; font-family: var(--font-body);
  border: 2px solid var(--border); border-radius: 10px; background:#fff; color: var(--ink);
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.form-card { background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9cfe2; padding: 56px 0 0; font-size: 0.98rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer a { color: #cddff0; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name span { color: var(--blue-bright); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 44px; padding: 22px 0; font-size: 0.88rem; color: #8fa8bf; }
.footer-bottom .container { display:flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Sticky mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; color: var(--blue); }
.prose img { border-radius: var(--radius-lg); box-shadow: var(--shadow); margin: 1.5em 0; }
.tag { display:inline-block; background: var(--blue-light); color: var(--blue); font-weight:600; font-size:0.85rem; padding:5px 12px; border-radius:999px; margin:0 6px 6px 0; font-family: var(--font-head); }

/* anchor jump offset so the sticky header doesn't cover section headings */
section[id] { scroll-margin-top: 92px; }

/* Services "jump to" quick list (top of Services page) */
.service-jump { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.service-jump a {
  display: block; background: var(--blue-light); color: var(--blue);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 12px 20px; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; transition: background .12s ease, color .12s ease;
}
.service-jump a:hover { background: var(--blue); color: #fff; }

/* Embedded map (Service Areas) */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); line-height: 0; }
.map-embed iframe { display: block; width: 100%; height: 460px; border: 0; }
@media (max-width: 560px) { .map-embed iframe { height: 320px; } }

/* Trust / validation badges (home page) */
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.trust-badge {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-sm); padding: 20px 14px; min-width: 148px; flex: 1 1 168px; max-width: 210px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px; text-align: center;
}
.trust-badge .stars { color: var(--star); letter-spacing: 2px; font-size: 1.05rem; line-height: 1; }
.trust-badge strong { font-family: var(--font-head); color: var(--navy); font-size: 1.02rem; line-height: 1.15; }
.trust-badge small { color: var(--muted); font-size: 0.85rem; }
.badge-logo { font-family: "Oswald", var(--font-head); font-weight: 700; font-size: 1.6rem; line-height: 1; letter-spacing: 0.01em; }
.trust-badge .ico { color: var(--blue); }
.trust-badge .ico svg { width: 42px; height: 42px; display: block; }
.trust-badge .big-num { font-family: "Oswald", var(--font-head); font-weight: 700; font-size: 1.9rem; color: var(--blue); line-height: 1; }

/* Photo gallery grid */
.gallery-cat { margin-bottom: 44px; }
.gallery-cat:last-child { margin-bottom: 0; }
.gallery-cat .eyebrow { margin-bottom: 6px; }
.gallery-cat h3 { color: var(--navy); margin-bottom: 18px; font-size: 1.5rem; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--bg-alt); }
.photo-grid img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform .3s ease; }
.photo-grid figure:hover img { transform: scale(1.05); }
@media (max-width: 860px){ .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .photo-grid { grid-template-columns: 1fr; } .photo-grid img { height: 250px; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .area-grid { columns: 3; }
  .topbar__left { display: none; }   /* keep CSLB centered + phone as space tightens */
}
@media (max-width: 860px) {
  .nav__links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; padding: 12px; gap: 4px;
    box-shadow: var(--shadow); border-top: 1px solid var(--border);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 16px; font-size: 1.1rem; border-bottom: 1px solid var(--bg-alt); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__toggle { display: block; }
  /* On phones the header CTA is redundant with the sticky bottom call bar — hide it so the
     hamburger always has room. */
  .nav__cta .btn { display: none; }
  .nav__phone { display: none; }
  .site-header { position: sticky; }
  .nav { position: relative; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .area-grid { columns: 2; }
  body { padding-bottom: 76px; }   /* room for call bar */
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.18);
  }
  .callbar a { display:flex; align-items:center; justify-content:center; gap:8px; padding: 16px; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; text-decoration:none; color:#fff; }
  .callbar .call { background: var(--accent); }
  .callbar .quote { background: var(--blue); }
}
@media (max-width: 560px) {
  html { font-size: 108%; }
  .topbar__center { display: none; }
  .topbar .container { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .area-grid { columns: 1; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .trust-strip .stat { flex: 1 1 40%; }
}

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