/* Local SEO layout. Brand colours come from the site file via --primary / --accent / --dark. */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --text: #1f2933;
  --muted: #52606d;
  --line: #e4e7eb;
  --tint: #f5f7f4;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(16, 24, 40, .08);
}

[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  padding-bottom: 64px; /* room for the mobile call bar */
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; color: var(--dark); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.3em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { filter: brightness(.95); }
.btn-ghost { background: transparent; color: var(--primary); border-color: currentColor; }
.btn-light { background: #fff; color: var(--dark); }
.btn-call { background: var(--primary); color: #fff; white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dark); margin-right: auto; }
.logo i { font-size: 1.6rem; color: var(--primary); }
.logo span { display: flex; flex-direction: column; line-height: 1.15; }
.logo small { color: var(--muted); font-size: .8rem; }
.logo-light, .logo-light small, .logo-light i { color: #fff; }
.nav { display: none; align-items: center; gap: 18px; font-weight: 600; }
.nav > a, .nav summary { color: var(--dark); text-decoration: none; cursor: pointer; }
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: ""; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.nav-menu ul {
  position: absolute; top: 140%; left: -12px; min-width: 230px; margin: 0; padding: 8px 0;
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.nav-menu li a { display: block; padding: 6px 16px; color: var(--text); text-decoration: none; font-weight: 500; }
.nav-menu li a:hover { background: var(--tint); }
.btn-call { display: none; }
.mobile-menu summary { list-style: none; cursor: pointer; font-size: 1.5rem; color: var(--dark); padding: 6px 4px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-panel {
  position: absolute; left: 0; right: 0; top: 100%; max-height: 75vh; overflow-y: auto;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px;
}
.mobile-panel ul { list-style: none; margin: 0 0 8px; padding: 0; columns: 2; }
.mobile-panel a { display: block; padding: 7px 0; color: var(--text); text-decoration: none; }
.mobile-h { margin: 10px 0 2px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
@media (min-width: 900px) {
  .nav, .btn-call { display: flex; }
  .mobile-menu { display: none; }
}

.crumbs { font-size: .85rem; color: var(--muted); padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--tint), #fff); padding: 36px 0 48px; }
.hero-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } .hero { padding: 56px 0 64px; } }
.lead { font-size: 1.12rem; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 6px; }
.ticks i { color: var(--primary); margin-right: 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cards and grids */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.feature-icon { font-size: 1.6rem; color: var(--primary); margin-bottom: 12px; }
.service-card { text-decoration: none; color: var(--text); transition: transform .15s; }
.service-card:hover { transform: translateY(-3px); }
.more { font-weight: 700; color: var(--primary); }

/* Sections */
.section { padding: 48px 0; }
.section-tint { background: var(--tint); }
/* Text sections keep the page's left edge; only the line length is limited. */
.prose > * { max-width: 820px; }
.narrow > * { max-width: 760px; }
.prose h2:not(:first-child) { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.note { color: var(--muted); font-size: .9rem; }

.table-wrap { overflow-x: auto; }
.cost { width: 100%; border-collapse: collapse; background: #fff; }
.cost th, .cost td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cost thead th { background: var(--dark); color: #fff; }

.project { display: flex; flex-direction: column; gap: 10px; }
.project > * { margin: 0; }
.project-photos { display: grid; gap: 6px; margin: -24px -24px 6px; }
.project-pair { grid-template-columns: 1fr 1fr; }
.project-photos figure { margin: 0; position: relative; }
.section-photo { padding-bottom: 1.5rem; }
.photo { margin: 0; max-width: 760px; }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo-portrait { max-width: 440px; }
.photo-portrait img { aspect-ratio: 4 / 5; }
.photo figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted, #5b6770); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.gallery figure { margin: 0; }
.gallery a { display: block; color: inherit; text-decoration: none; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { margin-top: 0.4rem; font-weight: 600; font-size: 0.95rem; }
.gallery a:hover figcaption { text-decoration: underline; }
.gallery-note { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }
.project-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-photos:not(.project-pair) img { aspect-ratio: 16 / 10; }
.project-photos figure:first-child img { border-top-left-radius: var(--radius); }
.project-photos figure:last-child img { border-top-right-radius: var(--radius); }
.project-photos figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.project-meta { color: var(--muted); font-size: .9rem; }
.project-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.project-facts dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.project-facts dd { margin: 0; font-weight: 700; font-size: 1.1rem; }

.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 10px; }

.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--dark); }
.faq p { margin: 10px 0 0; }

.area-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area-list a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); }
.area-list a:hover { border-color: var(--primary); }

.quote blockquote { margin: 0 0 12px; font-style: italic; }
.quote figcaption { color: var(--muted); font-size: .9rem; }

.cta { background: var(--primary); color: #fff; padding: 40px 0; }
.cta h2 { color: #fff; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }

/* Quiz */
.quiz { scroll-margin-top: 90px; }
.quiz-title { font-size: 1.4rem; margin-bottom: .3em; }
.quiz-intro { color: var(--muted); font-size: .95rem; }
.quiz-progress { height: 6px; background: var(--line); border-radius: 99px; margin: 0 0 18px; overflow: hidden; display: none; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.quiz-step { border: 0; padding: 0; margin: 0 0 18px; }
.quiz-step legend { font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--tint); }
.field { display: grid; gap: 4px; margin-bottom: 12px; font-weight: 600; font-size: .95rem; }
.quiz input[type=text], .quiz input[type=tel], .quiz input[type=email], .quiz select, .quiz textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #cbd2d9; border-radius: 8px; font: inherit;
}
.consent { font-size: .78rem; color: var(--muted); }
.quiz-error { color: #b42318; font-weight: 600; }
.quiz-nav { display: flex; gap: 10px; justify-content: space-between; }
.quiz-nav [data-submit], .quiz-nav [data-next] { flex: 1; }
.hp { position: absolute; left: -9999px; }
/* With JavaScript: one question at a time */
.quiz.is-steps .quiz-progress { display: block; }
.quiz.is-steps .quiz-step { display: none; }
.quiz.is-steps .quiz-step.is-active { display: block; }

/* Footer */
.site-footer { background: var(--dark); color: #d9e2ec; padding: 48px 0 20px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-h { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.disclosure { font-size: .85rem; margin-top: 14px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 16px; font-size: .85rem; }

/* Mobile call bar */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px; background: var(--accent); color: var(--dark); font-weight: 800; text-decoration: none; box-shadow: 0 -4px 16px rgba(0,0,0,.12);
}
@media (min-width: 900px) { .call-bar { display: none; } body { padding-bottom: 0; } }
