/*
Theme Name: Bedrock Foundation Repair
Theme URI: https://bedrockfoundationny.com
Author: Bedrock Foundation Repair
Description: One-page site for Bedrock Foundation Repair — Ulster County foundation repair, historical restoration, waterproofing, storm recovery, building, and insurance-claim documentation.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: bedrock-foundation
*/

:root {
  --bg: #f3efe6;
  --bg-warm: #ebe4d6;
  --surface: #faf7f1;
  --ink: #1c1917;
  --muted: #6b675e;
  --faint: #8a8478;
  --line: #d9d0c0;
  --slate: #243038;
  --slate-deep: #1a2329;
  --cream: #faf7f1;
  --stone: #c4b8a4;
  --danger: #8f3d32;
  --display: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 0 0 1px rgba(28,25,23,.06), 0 1px 2px -1px rgba(28,25,23,.06), 0 2px 4px 0 rgba(28,25,23,.04);
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; line-height: 1.15; margin: 0; }
p { text-wrap: pretty; }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.lead { color: var(--muted); font-size: 15px; line-height: 1.6; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--slate); }
.brand svg { width: 40px; height: 40px; }
.brand .house-mark { width: 88px; height: 30px; color: var(--ink); }
.site-footer .house-mark { color: var(--cream); }
.brand-name { display: block; font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.brand-sub { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.nav { display: none; gap: 28px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.call-link {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 10px; border-radius: 4px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.call-link .full { display: none; }
@media (min-width: 640px) {
  .call-link .full { display: inline; }
  .call-link .short { display: none; }
}
@media (max-width: 639px) {
  .header-actions .btn { display: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 8px; border: 0;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  transition: transform 150ms var(--ease), background 150ms var(--ease);
}
.btn:active { transform: scale(0.96); }
.btn-slate { background: var(--slate); color: var(--cream); }
.btn-slate:hover { background: var(--slate-deep); }
.btn-cream { background: var(--cream); color: var(--slate); font-weight: 600; }
.btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cream) 25%, transparent); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: var(--shadow); }

.hero-split { display: grid; min-height: 92svh; background: var(--bg); color: var(--ink); }
.hero-photo { position: relative; min-height: 44vh; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-photo-scrim { display: none; }
.hero-panel { display: flex; flex-direction: column; justify-content: center; padding: 32px 24px 40px; background: var(--bg); }
.hero-panel h1 { margin: 16px 0 0; }
.wordmark { display: block; font-family: var(--sans); font-size: clamp(2.6rem, 6vw, 3.35rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.9; text-transform: uppercase; color: var(--ink); margin-top: 12px; }
.hero-panel .house-mark { width: 168px; height: 56px; color: var(--ink); }
.wordmark-sub { display: block; margin-top: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.hero-promise { font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); margin: 20px 0 0; max-width: 28rem; }
.hero-panel .lead { color: var(--muted); max-width: 32rem; }
.hero-panel .kicker { color: var(--muted); }
.hero-panel .hero-bullets { color: var(--ink); }
.hero-panel .btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.hero-noise {
  pointer-events: none; position: absolute; inset: 0; opacity: 0.1; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
.form-title { font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--ink); margin: 0; }
.form-sub { font-size: 14px; color: var(--muted); margin: 4px 0 16px; }
.form-note { text-align: center; font-size: 12px; color: var(--faint); }

.trust { background: var(--slate); color: var(--cream); }
.trust-grid { width: min(1120px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; }
.trust-grid > div { padding: 20px 24px; border-right: 1px solid color-mix(in srgb, var(--cream) 10%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--cream) 10%, transparent); }
.trust-grid .kicker { color: var(--stone); }
.trust-grid p { margin: 4px 0 0; font-size: 14px; font-weight: 500; }

.section { padding: 72px 0; }
.section h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-top: 8px; max-width: 36rem; }
.warm { background: var(--bg-warm); }
.center { text-align: center; }

.cards { display: grid; gap: 20px; margin-top: 40px; }
.card { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 20px; }
.card h3 { font-size: 1.25rem; }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; }
.card li { display: flex; gap: 8px; margin-top: 6px; }
.card li::before { content: ""; width: 4px; height: 4px; margin-top: 8px; border-radius: 99px; background: var(--slate); flex: none; }

.ba-grid { display: grid; gap: 32px; margin-top: 40px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.ba figcaption { margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ba-label { font-size: 14px; font-weight: 500; margin: 0 0 12px; }

.steps { display: grid; gap: 16px; margin-top: 40px; }
.step { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 24px; }
.step .n { font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); margin: 0; }
.step h3 { margin-top: 12px; font-size: 1.25rem; }

.towns { display: flex; flex-wrap: wrap; gap: 8px; }
.towns span { background: var(--surface); box-shadow: var(--shadow); border-radius: 4px; padding: 6px 12px; font-size: 14px; }

.about { width: min(1120px, calc(100% - 32px)); margin: 0 auto 72px; display: grid; background: var(--slate); color: var(--cream); border-radius: 24px; overflow: hidden; }
.about img { width: 100%; height: 256px; object-fit: cover; }
.about-copy { padding: 28px; }
.about .kicker { color: var(--stone); }
.about h2 { color: var(--cream); font-size: clamp(1.75rem, 3vw, 2rem); margin-top: 8px; }
.about .lead { color: var(--stone); }
.about ul { margin: 24px 0 0; padding: 0; list-style: none; }
.about li { margin-top: 12px; font-size: 14px; padding-left: 0; }

.estimate-grid { display: grid; gap: 40px; }
.lead-form, .sent { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 24px; }
.hero-form .lead-form { background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px); }
.sent h3 { font-size: 1.5rem; }
.fields { display: grid; gap: 12px; }
.lead-form label { display: block; font-size: 14px; font-weight: 500; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; margin-top: 6px; height: 44px; padding: 0 12px;
  border: 0; border-radius: 8px; background: var(--surface);
  box-shadow: var(--shadow); font-family: var(--sans); font-size: 14px; color: var(--ink);
}
.lead-form textarea { height: auto; min-height: 88px; padding: 10px 12px; }
.lead-form .check { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; font-weight: 400; }
.lead-form .check input { width: auto; height: auto; margin-top: 4px; box-shadow: none; }
.err { color: var(--danger); font-size: 14px; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

.faq { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0; }
.faq h2 { margin-top: 8px; font-size: 2rem; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 8px 0 0; max-width: 60ch; font-size: 14px; color: var(--muted); }

.site-footer { background: var(--slate-deep); color: var(--cream); }
.site-footer .wrap { display: grid; gap: 40px; padding: 56px 0; }
.site-footer .kicker { color: var(--stone); }
.site-footer p, .site-footer a { font-size: 14px; color: var(--stone); }
.site-footer a:hover { color: var(--cream); }
.site-footer .phone { color: var(--cream); font-size: 15px; }
.site-footer ul { margin: 12px 0 0; padding: 0; list-style: none; }
.site-footer li { margin-top: 8px; }
.legal { border-top: 1px solid color-mix(in srgb, var(--cream) 10%, transparent); }
.legal p { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 16px 0; font-size: 12px; color: var(--stone); }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.admin-bar .dock { bottom: 46px; }

@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields .wide { grid-column: 1 / -1; }
  .dock { display: none; }
  body { padding-bottom: 0; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards.signs { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr 1fr; }
  .about img { height: 100%; }
  .estimate-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero-split { grid-template-columns: 1.25fr 0.9fr; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .ba-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
  body { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
