/* ==========================================================
   Shepane Stone & Brick Co. — site stylesheet
   Palette taken from the logo: navy #2b3752, red #bf2c41
   ========================================================== */

:root {
  --navy: #2b3752;
  --navy-700: #222c43;
  --navy-900: #182034;
  --navy-100: #e6e9f0;
  --navy-50: #f2f4f8;
  --red: #bf2c41;
  --red-700: #9c2234;
  --red-50: #fbecee;
  --ink: #1b2233;
  --slate: #4f5a6e;
  --line: #d5dae4;
  --line-strong: #aab3c3;
  --white: #ffffff;
  --success: #1f7a4d;
  --focus: #f4b740;

  --font: "Public Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --radius: 4px;
  --radius-lg: 8px;

  --brick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='%232b3752'%3E%3Crect x='1' y='1' width='22' height='10'/%3E%3Crect x='25' y='1' width='22' height='10'/%3E%3Crect x='-11' y='13' width='22' height='10'/%3E%3Crect x='13' y='13' width='22' height='10'/%3E%3Crect x='37' y='13' width='22' height='10'/%3E%3C/g%3E%3C/svg%3E");
  --brick-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='%23ffffff'%3E%3Crect x='1' y='1' width='22' height='10'/%3E%3Crect x='25' y='1' width='22' height='10'/%3E%3Crect x='-11' y='13' width='22' height='10'/%3E%3Crect x='13' y='13' width='22' height='10'/%3E%3Crect x='37' y='13' width='22' height='10'/%3E%3C/g%3E%3C/svg%3E");
}

html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
html[data-text="large"] { font-size: 112.5%; }
html[data-text="larger"] { font-size: 125%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--slate); max-width: 62ch; }
.muted { color: var(--slate); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--focus); color: var(--ink); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Utility bar ---------- */
.utility { background: var(--navy-900); color: #d7dcea; font-size: .875rem; }
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { text-decoration: underline; color: #fff; }
.utility-contact { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.utility-contact span { display: inline-flex; align-items: center; gap: 7px; }
.utility svg { width: 15px; height: 15px; fill: currentColor; opacity: .85; }
.text-size { display: flex; align-items: center; gap: 4px; }
.text-size span { margin-right: 6px; }
.text-size button { background: transparent; border: 1px solid #4a5674; color: #fff; font: inherit; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 3px; cursor: pointer; }
.text-size button:nth-of-type(2) { font-size: 1.05em; }
.text-size button:nth-of-type(3) { font-size: 1.2em; }
.text-size button[aria-pressed="true"] { background: #fff; color: var(--navy-900); border-color: #fff; }
@media (max-width: 760px) { .utility-hide-sm { display: none !important; } }

/* ---------- Masthead ---------- */
.masthead { background: #fff; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand img { width: 190px; height: auto; }
.brand-tag { border-left: 1px solid var(--line); padding-left: 18px; color: var(--slate); font-size: .9rem; line-height: 1.35; max-width: 220px; }
.masthead-actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 960px) { .brand-tag { display: none; } }
@media (max-width: 560px) { .brand img { width: 150px; } .masthead-actions .btn-quote { display: none; } }

/* ---------- Primary navigation ---------- */
.primary-nav { background: var(--navy); position: sticky; top: 0; z-index: 50; }
.primary-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: var(--red); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button {
  display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 18px;
  color: #fff; font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none;
  background: transparent; border: 0; cursor: pointer; border-bottom: 4px solid transparent; border-top: 4px solid transparent;
}
.nav-list > li > a:hover, .nav-list > li > button:hover, .nav-list > li > button[aria-expanded="true"] { background: var(--navy-700); color: #fff; }
.nav-list > li > a[aria-current="page"], .nav-list > li > button.is-current { border-bottom-color: #fff; }
.nav-list .chev { width: 12px; height: 12px; fill: currentColor; transition: transform .15s; }
.nav-list button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-list .nav-cta { margin-left: auto; }
.nav-list .nav-cta a { background: var(--red); }
.nav-list .nav-cta a:hover { background: var(--red-700); }

.mega {
  position: absolute; top: 100%; left: 0; min-width: 560px; margin-top: 6px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-top: 0;
  box-shadow: 0 18px 40px -18px rgba(24, 32, 52, .45); padding: 22px; display: none;
  grid-template-columns: 1fr 1fr; gap: 6px 22px;
}
.mega.is-open { display: grid; }
.mega a { display: block; padding: 10px 12px; border-radius: var(--radius); text-decoration: none; color: var(--navy); }
.mega a strong { display: block; font-size: 1rem; }
.mega a span { display: block; color: var(--slate); font-size: .9rem; line-height: 1.4; margin-top: 2px; }
.mega a:hover { background: var(--navy-50); }
.mega a:hover strong { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: .95rem; }

.nav-toggle { display: none; align-items: center; gap: 8px; background: var(--navy); color: #fff; border: 0; padding: 10px 14px; font: inherit; font-weight: 700; border-radius: var(--radius); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; fill: currentColor; }

@media (max-width: 1080px) {
  .nav-list > li > a, .nav-list > li > button { padding: 0 12px; font-size: .95rem; }
}
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .masthead { position: sticky; top: 0; z-index: 60; border-bottom: 4px solid var(--red); }
  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; position: fixed; top: var(--stick, 76px); left: 0; right: 0; bottom: 0; overflow-y: auto; z-index: 55; }
  .primary-nav::after { display: none; }
  .primary-nav .wrap { padding: 0; }
  .nav-list { flex-direction: column; }
  .nav-list > li > a, .nav-list > li > button { width: 100%; height: auto; padding: 15px 24px; justify-content: space-between; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-list > li > a[aria-current="page"] { box-shadow: inset 5px 0 0 #fff; }
  .nav-list .nav-cta { margin: 0; }
  .mega { position: static; min-width: 0; margin: 0; box-shadow: none; border: 0; padding: 8px 12px 14px; grid-template-columns: 1fr; background: var(--navy-50); }
}

/* ---------- Brick band (signature motif from the logo) ---------- */
.brick-band { height: 24px; background: var(--brick) repeat-x left center; background-size: 48px 24px; opacity: .14; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; box-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-700); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn-outline:hover { background: var(--navy-50); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow svg { width: 16px; height: 16px; fill: currentColor; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Home hero ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--brick-light) repeat; background-size: 48px 24px; opacity: .045; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: .45em; }
.hero h1 span { display: block; }
.hero p.lead { color: #d9deea; font-size: 1.25rem; margin-bottom: 1.8em; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius-lg); }
.hero-media::after { content: ""; position: absolute; left: -18px; bottom: -18px; width: 45%; height: 45%; background: var(--red); border-radius: var(--radius-lg); z-index: 0; }
.hero-media .media-inner { position: relative; z-index: 1; }
.hero-badge { position: absolute; z-index: 2; right: 18px; bottom: 18px; background: #fff; color: var(--navy); padding: 14px 18px; border-radius: var(--radius); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); font-size: .95rem; line-height: 1.35; max-width: 250px; }
.hero-badge strong { display: block; font-size: 1.05rem; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; padding-bottom: 56px; }
  .hero-media::after { left: -10px; bottom: -10px; }
}

/* ---------- Task finder (key home navigation) ---------- */
.tasks { background: var(--navy-50); border-bottom: 1px solid var(--line); }
.tasks .wrap { padding-top: 56px; padding-bottom: 56px; }
.tasks-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.tasks-head h2 { margin: 0; }
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.task {
  display: grid; grid-template-columns: 48px 1fr 20px; gap: 16px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--navy);
  padding: 20px; text-decoration: none; color: var(--ink); height: 100%; border-radius: var(--radius);
}
.task:hover { border-left-color: var(--red); color: var(--ink); box-shadow: 0 8px 24px -14px rgba(24,32,52,.5); }
.task:hover .task-title { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.task-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--navy-100); display: grid; place-items: center; }
.task-icon svg { width: 24px; height: 24px; fill: var(--navy); }
.task-title { display: block; font-weight: 700; color: var(--navy); font-size: 1.1rem; line-height: 1.3; margin-bottom: 4px; }
.task-desc { display: block; color: var(--slate); font-size: .95rem; line-height: 1.45; }
.task-go { width: 20px; height: 20px; fill: var(--navy); margin-top: 4px; }
@media (max-width: 980px) { .task-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .task-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--navy-50); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--slate); font-size: 1.15rem; margin: 0; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 5px; background: var(--red); margin-top: 16px; }
.section-head.center h2::after { margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { .section { padding: 56px 0; } }

/* ---------- Figures strip ---------- */
.figures { background: #fff; border-bottom: 1px solid var(--line); }
.figures ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.figures li { padding: 32px 24px; border-left: 1px solid var(--line); }
.figures li:first-child { border-left: 0; }
.figures strong { display: block; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.figures span { color: var(--slate); font-weight: 600; }
@media (max-width: 760px) { .figures ul { grid-template-columns: 1fr 1fr; } .figures li:nth-child(3) { border-left: 0; } .figures li { border-top: 1px solid var(--line); } .figures li:nth-child(-n+2) { border-top: 0; } }

/* ---------- Service rows ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service {
  display: grid; grid-template-columns: 200px 1fr; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.service img { width: 100%; height: 100%; object-fit: cover; min-height: 210px; }
.service-body { padding: 24px 26px; display: flex; flex-direction: column; }
.service-body p { color: var(--slate); }
.service-body .link-arrow { margin-top: auto; }
@media (max-width: 1000px) { .service-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .service { grid-template-columns: 1fr; } .service img { min-height: 0; aspect-ratio: 16/9; } }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse .split-media { order: 0; } }

.programmes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.programme { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.programme img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.programme-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.programme-body p { color: var(--slate); }
.programme-body .btn-row { margin-top: auto; padding-top: 8px; }
.tag { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--red-700); background: var(--red-50); padding: 3px 10px; border-radius: 99px; margin-bottom: 12px; align-self: flex-start; }
@media (max-width: 860px) { .programmes { grid-template-columns: 1fr; } }

/* ---------- Check lists ---------- */
.checks { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.5 16.6 5.4 12.5l-1.4 1.4 5.5 5.5L20 8.9l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checks.red li::before { background-color: var(--red); }
.checks.cols { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
@media (max-width: 640px) { .checks.cols { grid-template-columns: 1fr; } }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.value { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.value svg { width: 34px; height: 34px; fill: var(--red); margin-bottom: 14px; }
.value h3 { font-size: 1.15rem; margin-bottom: .35em; }
.value p { color: var(--slate); margin: 0; }
@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--navy); padding: 28px; border-radius: var(--radius); display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 22px; font-size: 1.12rem; line-height: 1.55; color: var(--ink); }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.quote img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; }
.quote cite { font-style: normal; font-weight: 700; color: var(--navy); display: block; }
.quote figcaption span { color: var(--slate); font-size: .92rem; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.member { display: flex; gap: 18px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.member .monogram { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; box-shadow: inset 0 -5px 0 var(--red); }
.member strong { display: block; color: var(--navy); font-size: 1.1rem; }
.member span span { color: var(--slate); }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 45%; background: var(--brick-light) repeat; background-size: 48px 24px; opacity: .07; -webkit-mask-image: linear-gradient(to right, transparent, #000 60%); mask-image: linear-gradient(to right, transparent, #000 60%); }
.cta-band .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: #d9deea; margin: 0; font-size: 1.15rem; max-width: 56ch; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: var(--brick-light) repeat; background-size: 48px 24px; opacity: .04; }
.page-head .wrap { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; padding-top: 28px; padding-bottom: 56px; }
.page-head.no-media .wrap { grid-template-columns: 1fr; }
.page-head h1 { color: #fff; margin-bottom: .35em; }
.page-head .lead { color: #d9deea; margin-bottom: 1.5em; }
.page-head .lead:last-child { margin-bottom: 0; }
.page-head-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); border: 4px solid rgba(255,255,255,.12); }
@media (max-width: 860px) { .page-head .wrap { grid-template-columns: 1fr; gap: 28px; } .page-head-media { display: none; } }

.breadcrumbs { grid-column: 1 / -1; font-size: .92rem; margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; color: #c7cde0; }
.breadcrumbs li + li::before { content: ""; width: 7px; height: 7px; border-right: 2px solid #8b96b3; border-top: 2px solid #8b96b3; transform: rotate(45deg); margin-right: 4px; }
.breadcrumbs a { color: #fff; }
.breadcrumbs a:hover { color: #fff; text-decoration-thickness: 2px; }

/* ---------- Content with sidebar ---------- */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.layout.left { grid-template-columns: 290px 1fr; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose > ul:not(.checks) { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.aside { position: sticky; top: 90px; display: grid; gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: #fff; }
.panel h2, .panel h3 { font-size: 1.15rem; margin-bottom: .7em; }
.panel.navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.panel.navy h2, .panel.navy h3 { color: #fff; }
.panel.navy p { color: #d9deea; }
.panel.navy a:not(.btn) { color: #fff; }
.panel.tint { background: var(--navy-50); }
.panel-links { list-style: none; margin: 0; padding: 0; }
.panel-links li { border-top: 1px solid var(--line); }
.panel-links li:first-child { border-top: 0; }
.panel-links a { display: block; padding: 10px 0; font-weight: 600; text-decoration: none; }
.panel-links a:hover { text-decoration: underline; }
.panel-links a[aria-current="page"] { color: var(--red); }
.contact-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-lines li { display: flex; gap: 12px; align-items: flex-start; }
.contact-lines svg { width: 20px; height: 20px; flex: none; fill: currentColor; margin-top: 3px; }
@media (max-width: 960px) { .layout, .layout.left { grid-template-columns: 1fr; gap: 40px; } .aside { position: static; } }

.callout { border-left: 6px solid var(--navy); background: var(--navy-50); padding: 20px 24px; margin: 0 0 1.5em; border-radius: 0 var(--radius) var(--radius) 0; }
.callout.red { border-left-color: var(--red); background: var(--red-50); }
.callout p:last-child { margin: 0; }
.callout strong { color: var(--navy); }

/* ---------- Steps (real sequences only) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 30px 68px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; }
.steps li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.15rem; margin: 8px 0 .25em; }
.steps p { margin: 0; color: var(--slate); }
.steps.compact li { padding-bottom: 22px; }
.steps.compact p { color: var(--ink); padding-top: 9px; }

.steps-h { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps-h li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.steps-h li::before { content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps-h h3 { font-size: 1.15rem; margin-bottom: .3em; }
.steps-h p { margin: 0; color: var(--slate); }
@media (max-width: 900px) { .steps-h { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .steps-h { grid-template-columns: 1fr; } }

/* ---------- Definition-style list (trades, services) ---------- */
.deflist { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.deflist > div { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.deflist dt { font-weight: 700; color: var(--navy); }
.deflist dd { margin: 0; color: var(--slate); }
@media (max-width: 640px) { .deflist > div { grid-template-columns: 1fr; gap: 4px; } }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 22px; }
.card-body p { color: var(--slate); margin: 0; }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Products ---------- */
.cat-nav { position: sticky; top: var(--stick, 60px); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.cat-nav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; align-items: center; }
.cat-nav a { white-space: nowrap; text-decoration: none; font-weight: 700; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); color: var(--navy); }
.cat-nav a:hover, .cat-nav a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.cat-nav .spacer { flex: 1; }
.cat-nav .view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; flex: none; }
.cat-nav .view-toggle button { border: 0; background: #fff; font: inherit; font-weight: 700; color: var(--navy); padding: 9px 14px; cursor: pointer; }
.cat-nav .view-toggle button[aria-pressed="true"] { background: var(--navy-100); }

.product-cat { padding: 56px 0 8px; }
.product-cat + .product-cat { border-top: 1px solid var(--line); }
.cat-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-head h2 { margin: 0; }
.cat-head p { margin: 6px 0 0; color: var(--slate); }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0 0 48px; padding: 0; }
.product { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; display: flex; flex-direction: column; overflow: hidden; }
.product-img { background: #f4f5f7; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 22px 22px 0; flex: 1; }
.product h3 { font-size: 1.2rem; margin-bottom: .4em; }
.product p { color: var(--slate); font-size: .98rem; }
.product .checks { gap: 6px; font-size: .95rem; margin-bottom: 0; }
.product .checks li { padding-left: 28px; }
.product .checks li::before { width: 18px; height: 18px; top: 4px; background-size: 13px; }
.product-foot { margin-top: 20px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--navy-50); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.price { line-height: 1.15; }
.price strong { display: block; font-size: 1.45rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.price span { font-size: .9rem; color: var(--slate); }
@media (max-width: 1000px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .products { grid-template-columns: 1fr; } }

.price-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; background: #fff; }
table.data caption { text-align: left; padding: 16px 18px; font-weight: 700; color: var(--navy); font-size: 1.1rem; }
table.data th, table.data td { padding: 13px 18px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--navy); color: #fff; border: 0; font-weight: 700; }
table.data tbody th { font-weight: 600; color: var(--ink); }
table.data tbody tr:nth-child(even) { background: var(--navy-50); }
table.data .num { text-align: right; white-space: nowrap; font-weight: 700; color: var(--navy); }
table.data .group th { background: var(--navy-100); color: var(--navy); font-weight: 800; }
.is-table-view .products { display: none; }
.is-table-view .cat-head { display: none; }
.is-table-view .product-cat { display: none; }
#price-list { display: none; }
.is-table-view #price-list { display: block; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.form-aside { position: sticky; top: 90px; display: grid; gap: 20px; }
.form-progress { list-style: none; margin: 0; padding: 0; counter-reset: fs; }
.form-progress li { counter-increment: fs; }
.form-progress a { display: flex; gap: 12px; align-items: center; padding: 9px 0; text-decoration: none; color: var(--slate); font-weight: 600; line-height: 1.3; }
.form-progress a::before { content: counter(fs); flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: .85rem; font-weight: 800; color: var(--slate); background: #fff; }
.form-progress a:hover { color: var(--navy); }
.form-progress a.is-active { color: var(--navy); }
.form-progress a.is-active::before { border-color: var(--navy); background: var(--navy); color: #fff; }
.form-progress a.is-done::before { content: "✓"; border-color: var(--success); background: var(--success); color: #fff; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; gap: 28px; } .form-aside { position: static; } .form-aside .form-steps-panel { display: none; } }

.form-intro { margin-bottom: 28px; }
.form-intro h2 { margin-bottom: .3em; }
.req-note { color: var(--slate); font-size: .95rem; }
.req-note b, .req { color: var(--red); }

fieldset.fs { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0; margin: 0 0 24px; background: #fff; min-width: 0; }
fieldset.fs > legend { float: left; width: 100%; padding: 18px 26px; margin: 0; background: var(--navy-50); border-bottom: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; font-size: 1.2rem; font-weight: 750; color: var(--navy); display: flex; align-items: center; gap: 12px; }
fieldset.fs > legend .n { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-grid; place-items: center; font-size: .95rem; flex: none; }
fieldset.fs > legend small { font-weight: 500; font-size: .92rem; color: var(--slate); margin-left: 4px; }
.fs-body { clear: both; padding: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.fs-body > .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fs-body { grid-template-columns: 1fr; padding: 20px; } fieldset.fs > legend { padding: 16px 20px; } }

.field label, .field .label { display: block; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.hint { display: block; color: var(--slate); font-size: .92rem; margin: -2px 0 8px; line-height: 1.4; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="date"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 2px solid var(--line-strong); border-radius: var(--radius); padding: 11px 13px; min-height: 50px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232b3752' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") right 10px center / 24px no-repeat; padding-right: 42px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid var(--focus); outline-offset: 0; box-shadow: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field .error-msg { display: none; color: var(--red-700); font-weight: 700; font-size: .95rem; margin-top: 6px; }
.field.has-error .error-msg { display: block; }
.field.has-error { border-left: 4px solid var(--red); padding-left: 14px; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices.stack { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .choices.stack { grid-template-columns: 1fr; } }
.choice { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 500; background: #fff; line-height: 1.3; }
.choice:hover { border-color: var(--line-strong); }
.choice input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--navy); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--navy-50); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.file-field input[type="file"] { width: 100%; font: inherit; font-size: .95rem; padding: 10px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--navy-50); cursor: pointer; }
.file-field input[type="file"]::file-selector-button { font: inherit; font-weight: 700; background: var(--navy); color: #fff; border: 0; padding: 9px 14px; border-radius: var(--radius); margin-right: 12px; cursor: pointer; }

.declare { display: grid; gap: 12px; }
.declare .choice { align-items: flex-start; }
.declare .choice input { margin-top: 1px; }

.submit-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px 26px; border-radius: var(--radius-lg); background: var(--navy); color: #fff; }
.submit-bar p { margin: 0; color: #d9deea; max-width: 52ch; font-size: .95rem; }
.submit-bar .btn { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.error-summary { display: none; border: 4px solid var(--red); padding: 20px 24px; margin-bottom: 24px; border-radius: var(--radius); background: #fff; }
.error-summary.is-visible { display: block; }
.error-summary h2 { font-size: 1.2rem; color: var(--red-700); }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--red-700); font-weight: 700; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: #fff; }
.contact-card svg { width: 28px; height: 28px; fill: var(--red); margin-bottom: 12px; }
.contact-card h2 { font-size: 1.1rem; margin-bottom: .3em; }
.contact-card p { margin: 0; }
.contact-card a { font-weight: 700; font-size: 1.1rem; }
@media (max-width: 860px) { .contact-cards { grid-template-columns: 1fr; } }
.map { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--navy-50); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c9cfdf; margin-top: 0; font-size: .97rem; }
.footer-brick { height: 24px; background: var(--brick) repeat-x left center; background-size: 48px 24px; background-color: #fff; opacity: 1; filter: none; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.site-footer h2 { color: #fff; font-size: 1rem; font-weight: 750; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--red); display: inline-block; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-logo { background: #fff; display: inline-block; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 18px; }
.footer-logo img { width: 170px; }
.footer-about p { max-width: 36ch; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #3c4766; display: grid; place-items: center; }
.social a:hover { background: var(--red); border-color: var(--red); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid #2d3754; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 24px; font-size: .9rem; }
.to-top { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Print ---------- */
@media print {
  .utility, .primary-nav, .nav-toggle, .site-footer, .cta-band, .cat-nav, .form-aside, .btn { display: none !important; }
  .page-head, .hero { background: #fff; color: #000; }
  .page-head h1, .hero h1 { color: #000; }
}

.facts { margin: 0; display: grid; gap: 0; }
.facts > div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.facts dd { margin: 2px 0 0; color: var(--slate); }

/* choice labels sit inside .field, so reset the generic label styling */
.field label.choice { display: flex; font-weight: 500; margin-bottom: 0; color: var(--ink); }
.declare .field label.choice span { line-height: 1.45; }
.select-hint a { font-weight: 700; }
