/* ==========================================================================
   MBG Exteriors & More — main stylesheet
   Colors, fonts and spacing live in :root below. Change them there and the
   whole site updates.
   ========================================================================== */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --red: #c2392f;
  --red-dark: #9a231b;
  --red-soft: #f6e3e1;
  --ink: #141414;
  --charcoal: #1c1c1e;
  --steel: #2a2a2d;
  --paper: #f7f5f2;
  --sand: #ece7e0;
  --line: #e4dfd8;
  --white: #ffffff;
  --text: #1f1d1b;
  --muted: #5f5a54;
  --muted-light: rgba(255, 255, 255, 0.72);

  /* Type */
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 5vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 76px;
  --subnav-h: 58px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(20, 16, 12, 0.06), 0 2px 6px rgba(20, 16, 12, 0.05);
  --shadow-md: 0 8px 20px -6px rgba(20, 16, 12, 0.14), 0 2px 4px rgba(20, 16, 12, 0.06);
  --shadow-lg: 0 28px 56px -16px rgba(20, 16, 12, 0.28), 0 10px 20px -10px rgba(20, 16, 12, 0.14);
  --shadow-red: 0 12px 28px -10px rgba(194, 57, 47, 0.65);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
}

strong { font-weight: 650; }

::selection { background: var(--red); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--red);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 120;
  pointer-events: none;
}

/* ---------- Image placeholders ----------
   Every photo spot is a <figure class="ph"> with an <img> inside.
   While the image file is missing, a labelled placeholder shows instead.
   Drop the real photo into assets/images/ with the same file name and it
   appears automatically.                                                  */

.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  background-color: var(--sand);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(0, 0, 0, 0.035) 0 12px,
    transparent 12px 24px
  );
  isolation: isolate;
}

.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* A photo that fails to load hides itself so the label shows instead */
.ph.is-missing img { visibility: hidden; }

.ph::before,
.ph::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  z-index: 0;
  width: max-content;
  max-width: 86%;
}

/* Label + camera icon */
.ph::before {
  content: attr(data-ph);
  top: calc(50% - 6px);
  translate: 0 -100%;
  padding-top: 40px;
  font: 600 13px/1.3 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(31, 29, 27, 0.55);
  background: no-repeat center top / 30px 30px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a736b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='13.5' r='3.5'/%3E%3C/svg%3E");
}

/* File name to use */
.ph::after {
  content: attr(data-file);
  top: calc(50% + 4px);
  font: 500 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(31, 29, 27, 0.45);
  background: rgba(255, 255, 255, 0.55);
  padding: 3px 8px;
  border-radius: 999px;
}

.ph:not([data-file])::after { display: none; }

.ph--dark {
  background-color: #2b2a2c;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.035) 0 14px,
    transparent 14px 28px
  );
}
.ph--dark::before {
  color: rgba(255, 255, 255, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a29c95' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='13.5' r='3.5'/%3E%3C/svg%3E");
}
.ph--dark::after { color: rgba(255, 255, 255, 0.55); background: rgba(0, 0, 0, 0.3); }

/* Hero placeholders: tuck the label into the top-right corner so it never
   collides with the headline */
.ph--hero::before,
.ph--hero::after {
  left: auto;
  right: var(--gutter);
  transform: none;
  translate: none;
  text-align: right;
}
.ph--hero::before {
  top: calc(var(--header-h) + 22px);
  padding: 0 0 0 26px;
  background-position: left center;
  background-size: 18px 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.ph--hero::after { top: calc(var(--header-h) + 46px); }
@media (max-width: 600px) { .ph--hero::after { display: none; } }

.ph.has-img::before,
.ph.has-img::after { display: none; }

/* Photos show the moment they arrive. While one downloads its box stays a
   plain color; the stripes and label only appear when the file is missing. */
.ph:has(img):not(.is-missing) { background-image: none; }
.ph:has(img):not(.is-missing)::before,
.ph:has(img):not(.is-missing)::after { display: none; }

/* Parallax images are taller than their frame so they can drift */
.ph--parallax img { inset: -12% 0; height: 124%; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 650 14px/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover svg { transform: translateX(4px); }

.btn--primary { box-shadow: var(--shadow-red); }
.btn--primary:hover { --btn-bg: var(--red-dark); }

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.8); }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--red-dark); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45); }
.btn--light:hover { --btn-bg: var(--paper); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); }

.btn--sm { min-height: 44px; padding: 0 18px; font-size: 13px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    backdrop-filter 0.35s var(--ease-out);
}

.site-header::before {
  /* soft shade so white nav text stays readable over any photo */
  content: "";
  position: absolute;
  inset: 0 0 -40px 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.site-header.is-scrolled,
body.menu-open .site-header {
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}
.site-header.is-scrolled::before,
body.menu-open .site-header::before { opacity: 0; }

.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 70px;
  height: auto;
  flex: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}
.footer-brand .brand-logo { width: 96px; }

.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.brand-name b { font-weight: 700; font-size: 25px; letter-spacing: 0.04em; }
.brand-name span {
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
}

.main-nav { display: flex; align-items: center; gap: 6px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-weight: 550;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--white); }

.nav-cta { margin-left: 10px; }

.nav-phone {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 10px 6px;
  font-weight: 650;
  font-size: 15px;
  white-space: nowrap;
  color: var(--white);
}
.nav-phone svg { width: 17px; height: 17px; color: var(--red); }
.nav-phone:hover span { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1180px) { .nav-phone { display: inline-flex; } }

.btn--outline-light {
  --btn-bg: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.7); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  place-items: center;
}
.menu-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background-color 0.2s;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
body.menu-open .menu-toggle span { background: transparent; }
body.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu { display: none; }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .brand-logo { width: 58px; }
  .brand-name b { font-size: 21px; }
  .brand-name span { font-size: 11px; }

  .mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 99;
    background: rgba(20, 20, 20, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--white);
    padding: 20px var(--gutter) 40px;
    overflow-y: auto;
  }
  body.menu-open .mobile-menu { display: block; }

  .mobile-menu ul { list-style: none; margin: 0 0 28px; padding: 0; }
  .mobile-menu li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .mobile-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 2px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }
  .mobile-menu li a { gap: 16px; white-space: nowrap; }
  .mobile-menu li a small {
    white-space: normal;
    text-align: right;
    font-family: var(--font-body);
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 450;
  }
  .mobile-menu li a[aria-current="page"] { color: var(--red); }
  .mobile-menu .btn { width: 100%; }
  .mobile-menu .btn + .btn { margin-top: 12px; }
  .mobile-menu-contact {
    margin-top: 22px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
  }
  .mobile-menu-contact a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
}

@media (max-width: 380px) {
  .brand-name b { font-size: 19px; }
  .brand-name span { letter-spacing: 0.12em; }
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  min-height: max(640px, min(100svh, 940px));
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--charcoal);
  overflow: hidden;
}

.hero-media,
.hero-media > .ph,
.hero-bg,
.hero-bg > .ph {
  position: absolute;
  inset: 0;
}

/* Home banner: lighter shade than the inner pages so the video stays bright.
   The left side stays darker so the headline remains easy to read. */
.hero .hero-media::after {
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.68) 0%, rgba(10, 10, 10, 0.34) 48%, rgba(10, 10, 10, 0.04) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.5) 0%, transparent 40%);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.hero-video.is-playing { opacity: 1; }
html.no-js .hero-video { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

.hero-media::after,
.page-hero .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(12, 12, 12, 0.82) 0%, rgba(12, 12, 12, 0.45) 55%, rgba(12, 12, 12, 0.15) 100%),
    linear-gradient(0deg, rgba(12, 12, 12, 0.75) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: clamp(150px, 18vw, 200px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font: 650 13px/1.2 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.85); }
.eyebrow--light::before { background: var(--red); }

.hero h1 {
  font-size: clamp(48px, 8.2vw, 104px);
  font-weight: 600;
  line-height: 0.98;
  max-width: 12ch;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--red); }

.hero-bar {
  width: 120px;
  height: 5px;
  margin: 28px 0 26px;
  background: var(--red);
  border-radius: 3px;
  transform-origin: left;
}

.hero-lead {
  max-width: 540px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.78);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--red); flex: none; }

@media (max-width: 560px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Page hero (Exterior / Interior / etc.) ---------- */

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(440px, 64vh, 640px);
  padding: calc(var(--header-h) + 48px) 0 64px;
  color: var(--white);
  text-align: center;
  background: var(--charcoal);
  overflow: hidden;
}
.page-hero--plain { min-height: clamp(320px, 42vh, 420px); padding-bottom: 64px; }
.page-hero--short { min-height: clamp(400px, 52vh, 520px); padding-bottom: 140px; }

.page-hero .hero-media::after {
  background:
    radial-gradient(ellipse at center, rgba(12, 12, 12, 0.45) 0%, rgba(12, 12, 12, 0.72) 75%),
    linear-gradient(0deg, rgba(12, 12, 12, 0.6) 0%, transparent 40%);
}

.page-hero-content { position: relative; z-index: 3; }

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 16px;
  list-style: none;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.4);
}
.breadcrumb [aria-current] { color: var(--white); }

.page-hero h1 {
  font-size: clamp(56px, 11vw, 132px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.4);
}

.page-hero .hero-bar {
  width: min(520px, 70%);
  height: 6px;
  margin: 22px auto 24px;
  transform-origin: center;
}

.page-hero p {
  max-width: 600px;
  margin-inline: auto;
  font-size: clamp(17px, 1.7vw, 20px);
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- Sticky service sub-nav ---------- */

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px -18px rgba(20, 16, 12, 0.4);
}

.subnav-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--subnav-h);
}

.subnav-label {
  flex: none;
  font: 650 12px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.subnav-links {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
          mask-image: linear-gradient(90deg, #000 92%, transparent);
  padding-right: 24px;
}
.subnav-links::-webkit-scrollbar { display: none; }

.subnav-links a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 550;
  white-space: nowrap;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.25s, background-color 0.25s, border-color 0.25s;
}
.subnav-links a:hover { color: var(--ink); background: var(--paper); }
.subnav-links a.is-active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.subnav-cta { margin-left: auto; flex: none; }

@media (max-width: 760px) {
  .subnav-label,
  .subnav-cta { display: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); position: relative; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--charcoal); color: var(--white); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { max-width: 860px; margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.h2 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
}
.h2 .accent { color: var(--red); }

.section-lead {
  margin-top: 18px;
  font-size: 18.5px;
  color: var(--muted);
}
.section--dark .section-lead { color: var(--muted-light); }

/* ---------- Home: service cards ---------- */

.services {
  position: relative;
  z-index: 4;
  margin-top: -120px;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
  perspective: 1400px;
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.svc-card .ph {
  aspect-ratio: 4 / 3;
}
.svc-card .ph img {
  transition: transform 0.9s var(--ease-out);
}
.svc-card:hover .ph img { transform: scale(1.06); }

.svc-card-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.svc-card-icon svg { width: 24px; height: 24px; }

.svc-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 28px;
}

.svc-card h3 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.tag-list li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--muted);
}

.svc-card .link-arrow { margin-top: auto; }

/* whole card is clickable */
.svc-card a.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
}

@media (max-width: 960px) {
  .svc-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .services { margin-top: -90px; }
}

/* ---------- Home: mission ---------- */

.mission-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.mission-copy p { color: var(--muted); font-size: 17.5px; }
.mission-copy p strong { color: var(--text); }
.mission-copy .h2 { margin-bottom: 26px; }

.mission-verse {
  margin: 30px 0 0;
  padding: 6px 0 6px 22px;
  border-left: 4px solid var(--red);
}
.mission-copy .mission-verse p {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--ink);
}
.mission-verse cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.mission-media {
  position: relative;
  padding: 0 0 28px 28px;
}
.mission-media::before {
  /* offset red block for depth */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72%;
  height: 72%;
  border-radius: var(--radius-lg);
  background: var(--red);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 14px);
}
.mission-media .ph {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}


.float-badge {
  position: absolute;
  right: -18px;
  top: -22px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 260px;
}
.float-badge-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
}
.float-badge-icon svg { width: 22px; height: 22px; }
.float-badge b {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.1;
}
.float-badge span { font-size: 13.5px; color: var(--muted); line-height: 1.3; }

@media (max-width: 960px) {
  .mission-grid { grid-template-columns: 1fr; }
  .mission-media { max-width: 560px; margin: 34px auto 0; width: 100%; padding: 0 0 18px 18px; }
  /* Smaller badge that hangs above the photo, so nobody's face is covered */
  .float-badge { right: 8px; top: -34px; padding: 10px 14px; gap: 10px; max-width: 220px; }
  .float-badge-icon { width: 34px; height: 34px; }
  .float-badge-icon svg { width: 17px; height: 17px; }
  .float-badge b { font-size: 16px; }
  .float-badge span { font-size: 12.5px; }
}

/* ---------- Home: why choose us ---------- */

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(194, 57, 47, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(194, 57, 47, 0.12), transparent 70%);
  pointer-events: none;
}
.section--dark > * { position: relative; }

.why-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.why-icon svg { width: 26px; height: 26px; }


/* ---------- Home: service area ---------- */

.area-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.area-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 18px;
  margin: 30px 0 24px;
  padding: 0;
  list-style: none;
}
.area-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 550;
}
.area-list svg { width: 17px; height: 17px; flex: none; color: var(--red); }

.area-note { color: var(--muted); margin-bottom: 28px; }
.area-note a,
a[href^="tel:"] { white-space: nowrap; }

.area-map {
  position: relative;
  aspect-ratio: 500 / 480;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--charcoal);
  box-shadow: var(--shadow-lg);
}
.area-map svg { position: relative; z-index: 2; display: block; width: 100%; height: 100%; }

/* Real streets (OpenStreetMap), softly blurred under the pins */
.area-streets {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  filter: blur(0.7px);
  opacity: 0.9;
}
.area-map::after {
  /* fade the streets into the card edges */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 72% 72% at 50% 52%, transparent 40%, rgba(28, 28, 30, 0.85) 100%);
  pointer-events: none;
}
.map-credit {
  position: absolute;
  right: 12px;
  bottom: 9px;
  z-index: 3;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.45);
}
.map-credit:hover { color: rgba(255, 255, 255, 0.8); }

.map-ring { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.5; stroke-dasharray: 4 7; }
.map-town circle { fill: var(--white); stroke: var(--red); stroke-width: 3; }
.map-town text { fill: rgba(255, 255, 255, 0.9); font: 600 16px var(--font-body); paint-order: stroke; stroke: rgba(22, 22, 24, 0.9); stroke-width: 4px; stroke-linejoin: round; }
.map-pulse { fill: var(--red); opacity: 0.3; }
.map-home circle { fill: var(--red); stroke: var(--white); stroke-width: 4; filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.6)); }
.map-home .map-home-dot { fill: var(--white); stroke: none; filter: none; }
.map-home text { fill: var(--white); font: 600 20px var(--font-display); letter-spacing: 0.14em; paint-order: stroke; stroke: rgba(22, 22, 24, 0.9); stroke-width: 5px; stroke-linejoin: round; }

@media (max-width: 960px) {
  .area-grid { grid-template-columns: 1fr; }
  .area-map { width: 100%; max-width: 540px; margin-inline: auto; }
}
@media (max-width: 480px) { .area-list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Home: team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.team-people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}

.person-card {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-bottom: 4px solid var(--red);
}
.person-card .ph { aspect-ratio: 4 / 5; }
.person-card .ph img { object-position: 50% 20%; }
.person-info { padding: 18px 20px 20px; }
.person-info h3 { font-size: 24px; font-weight: 550; margin-bottom: 4px; }
.person-info p {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .person-info { padding: 14px 14px 16px; }
  .person-info h3 { font-size: 20px; }
}

/* ---------- Home: reviews ---------- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review-card {
  position: relative;
  color: var(--text);
  display: flex;
  flex-direction: column;
  padding: 32px 30px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.review-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }

.review-card::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 24px;
  font-family: Georgia, serif;
  font-size: 110px;
  line-height: 1;
  color: var(--red-soft);
}

.stars { display: flex; gap: 3px; margin-bottom: 18px; color: #e0a526; }
.stars svg { width: 19px; height: 19px; }

.review-card blockquote {
  position: relative;
  margin: 0 0 24px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.review-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
}
.review-author b { display: block; font-size: 15px; }
.review-author div span { font-size: 13.5px; color: var(--muted); }

.review-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-inline: auto; }

.reviews-more { margin: 34px 0 0; text-align: center; }
.reviews-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
}
.reviews-more a svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.reviews-more a:hover svg { transform: translateX(5px); }

@media (max-width: 960px) { .review-grid, .review-grid--two { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; } }

/* ---------- Service rows (Exterior / Interior / New Construction) ---------- */

.service {
  padding-block: clamp(64px, 9vw, 112px);
  scroll-margin-top: calc(var(--header-h) + var(--subnav-h));
}
.service--alt { background: var(--paper); }

.service-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.service--flip .service-media { order: 2; }

.service-media { position: relative; }
.service-media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--red);
  opacity: 0.85;
}
.service--flip .service-media::before { inset: 22px 22px -22px -22px; }

.service-num {
  display: block;
  font-family: var(--font-display);
  font-size: 84px;
  font-weight: 600;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(194, 57, 47, 0.45);
  margin-bottom: 10px;
}

.service-copy h2 {
  font-size: clamp(40px, 5.4vw, 66px);
  font-weight: 500;
  margin-bottom: 22px;
}
.service-copy p { color: var(--muted); font-size: 17.5px; }
.service-copy p strong { color: var(--text); }
.service-copy .btn { margin-top: 30px; }

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
  .service--flip .service-media { order: 0; }
  .service-media { margin-right: 22px; }
  .service--flip .service-media { margin: 0 0 0 22px; }
  .service-num { font-size: 64px; }
}

/* ---------- Carousel ---------- */

.carousel {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--sand);
  touch-action: pan-y;
  user-select: none;
}

.carousel-track {
  display: flex;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.carousel-btn:hover { background: var(--red); color: var(--white); }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn--prev { left: 14px; }
.carousel-btn--next { right: 14px; }

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 5;
  display: flex;
  gap: 6px;
  padding: 7px 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.35s var(--ease-out), background-color 0.25s;
}
.carousel-dots button[aria-current="true"] { width: 22px; background: var(--white); }

.carousel-count {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.55);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 110px);
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 120% at 50% 120%, rgba(0, 0, 0, 0.35), transparent 60%),
    linear-gradient(135deg, #cf4136 0%, var(--red) 45%, var(--red-dark) 100%);
}
.cta-band::before {
  /* roofline pattern */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'%3E%3Cpath d='M0 60 L30 30 L60 60 M60 60 L90 30 L120 60' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 120px 60px;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 600; margin-bottom: 16px; }
.cta-band p { max-width: 560px; margin: 0 auto 34px; font-size: 18.5px; color: rgba(255, 255, 255, 0.88); }
.cta-band .cta-alt { margin: 22px auto 0; font-size: 15.5px; color: rgba(255, 255, 255, 0.8); }
.cta-band .cta-alt a { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 20px;
  margin-top: -84px;
  position: relative;
  z-index: 4;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-bottom: 4px solid transparent;
  transition: border-color 0.3s;
  min-width: 0;
}
a.contact-card:hover { border-bottom-color: var(--red); }

.contact-card .why-icon { width: 48px; height: 48px; margin-bottom: 14px; border-radius: 12px; }
.contact-card .why-icon svg { width: 22px; height: 22px; }
.contact-card small {
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card b {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.text-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.fill-in {
  color: var(--muted);
  font-style: italic;
  font-weight: 500;
  border-bottom: 1.5px dashed var(--line);
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
@media (max-width: 520px) { .contact-grid { margin-top: -64px; } }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  color: var(--red);
}
.steps h3 { font-size: 23px; font-weight: 550; margin-bottom: 8px; }
.steps p { font-size: 15.5px; color: var(--muted); }

@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.estimate-slot {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 260px;
  padding: 40px 24px;
  text-align: center;
  border: 2px dashed #cfc7bd;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--muted);
}
.estimate-slot svg { width: 40px; height: 40px; color: #b5aca1; }
.estimate-slot b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 500; text-transform: uppercase; color: var(--text); }

/* ---------- Footer ---------- */

.site-footer {
  background: #121212;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15.5px;
}


.footer-trust { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

/* Same row, but sitting in the page (white background) above the red banner */
.footer-trust.trust--light {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust--light .trust-row li + li { border-left-color: var(--line); }
.trust--light .trust-row b { color: var(--ink); }
.trust--light .trust-row span { color: var(--muted); }
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust-row li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 34px 28px 34px 0;
}
.trust-row li + li {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}
.trust-row svg { flex: none; width: 26px; height: 26px; margin-top: 2px; color: var(--red); }
.trust-row b {
  display: block;
  margin-bottom: 3px;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--white);
}
.trust-row span { display: block; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.6); }
@media (max-width: 900px) {
  .trust-row li { gap: 12px; padding: 28px 18px 28px 0; }
  .trust-row li + li { padding-left: 18px; }
}
/* Phones: three compact badges side by side, icon over a short title */
@media (max-width: 720px) {
  .trust-row { padding: 24px 0; }
  .trust-row li {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 6px;
    text-align: center;
  }
  .trust-row li + li { padding-left: 6px; }
  .trust-row svg {
    box-sizing: content-box;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 11px;
    border-radius: 50%;
    background: rgba(194, 57, 47, 0.1);
  }
  /* min-content puts every title on two even lines ("Fully / licensed") */
  .trust-row b { width: min-content; margin: 0; font-size: 13.5px; line-height: 1.3; }
  .trust-row span { display: none; }
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 40px;
  padding-block: 80px 56px;
}

.footer-brand .brand { margin-bottom: 20px; color: var(--white); }
.footer-brand p { max-width: 330px; margin-bottom: 26px; }

.footer-title {
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.16em;
  color: var(--white);
}

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; margin-top: 3px; flex: none; color: var(--red); }
.footer-contact a { overflow-wrap: anywhere; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal:hover { color: var(--white); }

/* ---------- Privacy page ---------- */

.legal {
  max-width: 760px;
  margin-inline: auto;
}
.legal h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 550; margin: 44px 0 12px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }
.legal-updated { font-size: 14px; color: var(--muted); margin-bottom: 36px; }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
}
.to-top:hover { color: var(--white); }
.to-top svg { width: 16px; height: 16px; }

@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; padding-top: 64px; }
}

/* ---------- Mobile sticky estimate bar ---------- */

.mobile-cta { display: none; }

@media (max-width: 720px) {
  .mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 90;
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(20, 20, 20, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
    transform: translateY(140%);
  }
  html:not(.js) .mobile-cta { transform: none; }
  .mobile-cta .btn { flex: 1; min-height: 48px; }
  .mobile-cta .btn--ghost { flex: 0 0 auto; padding: 0 18px; gap: 8px; }
  .site-footer { padding-bottom: 84px; }
  body.menu-open .mobile-cta { visibility: hidden; }
  body.page-contact .mobile-cta { display: none; }
  body.page-contact .site-footer { padding-bottom: 0; }
}

/* ---------- Motion starting states ----------
   Only applied when JavaScript + Motion are running and the visitor hasn't
   asked their device to reduce motion. Without them, everything shows
   normally.                                                              */

.motion-ok [data-reveal],
.motion-ok [data-stagger] > * { opacity: 0; }

/* The banner headline animates in with CSS alone, so it appears as soon as
   the page does instead of waiting for the animation script to download.
   Each item's --i (set in the HTML) staggers it slightly after the last. */
@keyframes hero-in { from { opacity: 0; transform: translateY(34px); } }
@keyframes hero-bar-in { from { transform: scaleX(0); } }
.motion-ok [data-hero-item] { animation: hero-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) calc(0.02s + var(--i, 0) * 0.09s) both; }
.motion-ok .hero-bar { animation: hero-bar-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both; }
