/* ============================================================
   MORA Painting & Contracting — Digital Brand System
   Master brand: MORA (black/white only)
   Division accent: Purple — Painting & Contracting only
   ============================================================ */

:root {
  /* MORA Brand Standards Manual v1.0 — purple & white first.
     Steel Black stays in the palette but is reserved for the logo's
     black variant; surfaces and text lean purple instead. */
  --black: #111111;          /* Steel Black (logo variant only) */
  --ink: #2a2344;            /* body text — deep purple-charcoal */
  --heading: #241a54;        /* headings — near-black purple */
  --white: #ffffff;          /* Architect White */
  --paper: #f7f6fc;          /* soft lavender-white */
  --concrete: #e6e6e6;       /* Concrete Gray */
  --line: #e7e3f4;           /* purple-tinted hairlines */
  --gray: #6d6785;           /* purple-gray secondary text */
  --purple: #4a2eb3;         /* MORA Purple — PMS 2665 C */
  --purple-deep: #33207a;    /* Deep Purple — PMS 2755 C */
  --purple-ink: #1e1547;     /* darkest band color (replaces black bands) */
  --purple-bright: #6a4ebf;  /* Electric Purple */
  --purple-soft: #efebfa;
  --glass: rgba(255, 255, 255, 0.72);          /* frosted white */
  --glass-purple: rgba(74, 46, 179, 0.10);     /* translucent purple tint */

  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --w-max: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 10vw, 9rem);
  --radius: 18px;

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

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.wrap { max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Typography ---------- */

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; color: var(--heading); }
/* headings sit white on photo heroes and purple bands */
.hero h1, .hero h2, .hero h3,
.page-hero h1, .page-hero h2,
.band-dark h1, .band-dark h2, .band-dark h3,
.cta-band h1, .cta-band h2, .cta-band h3 { color: var(--white); }

.display {
  font-size: clamp(2.75rem, 7.5vw, 6.5rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1.25rem;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--gray);
  max-width: 42rem;
}

.section { padding: var(--section) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 1.05rem 1.9rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-deep); box-shadow: 0 14px 30px -12px rgba(74, 46, 179, 0.55); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn-dark { background: var(--purple-deep); color: var(--white); }
.btn-dark:hover { box-shadow: 0 14px 30px -14px rgba(51, 32, 122, 0.55); }

.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--purple); color: var(--purple); }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  max-width: 1360px;
}
.site-header.solid,
.site-header.always-solid {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(74, 46, 179, 0.14);
}

/* The lockup is Will's actual logo artwork — purple version on light
   headers, white version over dark heroes. Swap via opacity only. */
.brand { display: inline-flex; align-items: center; position: relative; }
.logo-lockup { height: 52px; width: auto; display: block; }
.brand .lockup-white { position: absolute; inset: 0; height: 52px; opacity: 0; transition: opacity 0.3s; }
.site-header.on-dark:not(.solid) .brand .lockup-purple { opacity: 0; }
.site-header.on-dark:not(.solid) .brand .lockup-white { opacity: 1; }
.site-footer .logo-lockup { height: 56px; }
.site-header.on-dark:not(.solid) .nav a { color: rgba(255, 255, 255, 0.85); }
.site-header.on-dark:not(.solid) .nav a:hover,
.site-header.on-dark:not(.solid) .nav a.active { color: var(--white); }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray);
  transition: color 0.25s;
}
.nav a:hover { color: var(--purple); }
.nav a.active { color: var(--purple); }
.nav .btn { padding: 0.75rem 1.5rem; font-size: 0.82rem; }
/* keep the CTA white regardless of nav link color rules */
.nav a.btn-primary,
.site-header.on-dark:not(.solid) .nav a.btn-primary,
body.nav-open .site-header .nav a.btn-primary { color: var(--white); }
.nav a.btn-primary:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 130;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 6px auto;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  color: var(--purple-deep);
}
.site-header.on-dark:not(.solid) .nav-toggle span { color: var(--white); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    /* explicit size: header's backdrop-filter makes it the containing
       block for fixed children, so inset:0 would collapse to header height */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    font-size: 1.4rem;
    transform: translateY(-100%);
    transition: transform 0.45s var(--ease);
    z-index: 120;
  }
  .nav a { font-size: 1.5rem; color: var(--heading); }
  /* beat the on-dark header link colors once the white menu is open */
  body.nav-open .site-header.on-dark:not(.solid) .nav a { color: var(--heading); }
  body.nav-open .site-header .nav a.active { color: var(--purple); }
  body.nav-open .nav { transform: translateY(0); }
  body.nav-open .nav-toggle span { color: var(--purple-deep); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroSettle 2.4s var(--ease) forwards;
}
@keyframes heroSettle { to { transform: scale(1); } }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(26, 15, 63, 0.88) 0%, rgba(26, 15, 63, 0.42) 45%, rgba(30, 21, 71, 0.35) 100%);
}
/* Brand diagonal stripe motif (see MORA Brand Standards 2.1) */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 58%,
    rgba(106, 78, 191, 0.28) 58%,
    rgba(106, 78, 191, 0.28) 64%,
    transparent 64%,
    transparent 70%,
    rgba(74, 46, 179, 0.34) 70%,
    rgba(74, 46, 179, 0.34) 82%,
    transparent 82%
  );
}
.hero-inner { position: relative; z-index: 1; }

.hero-inner { padding-bottom: clamp(4rem, 9vh, 7rem); width: 100%; }
.hero .display { max-width: 12ch; margin-bottom: 1.5rem; }
.hero .lede { color: rgba(255, 255, 255, 0.82); margin-bottom: 2.5rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero service strip — Painting | Waterproofing | Restoration
   Frosted-glass pill over the hero image */
.hero-services {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
  margin-bottom: 2.25rem;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-services a { color: var(--white); transition: color 0.25s; }
.hero-services a:hover { color: var(--purple-bright); filter: brightness(1.4); }
.hero-services .sep {
  width: 2px;
  height: 1em;
  background: var(--purple-bright);
  filter: brightness(1.3);
}

.hero-scrollhint {
  position: absolute;
  right: var(--pad);
  bottom: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  writing-mode: vertical-rl;
}

/* Sub-page hero */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
  background: var(--purple-ink);
}
.page-hero .hero-inner { padding-bottom: 4rem; padding-top: 10rem; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(26, 15, 63, 0.88) 0%, rgba(26, 15, 63, 0.42) 55%, rgba(30, 21, 71, 0.35) 100%);
}

/* ---------- Logo intro (home only) ---------- */

.logo-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.logo-intro.done { opacity: 0; visibility: hidden; }
.logo-intro img {
  width: min(360px, 72vw);
  height: auto;
  clip-path: inset(0 100% 0 0);
  filter: blur(5px);
}
.logo-intro.play img { animation: introReveal 1.3s var(--ease) 0.15s both; }
@keyframes introReveal {
  0% { clip-path: inset(0 100% 0 0); filter: blur(5px); }
  70% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 0); filter: blur(0); }
}

/* Stripes reveal left-to-right via clip rectangles animated in JS/SMIL-free CSS */
.logo-intro .stripe { opacity: 0; }
.logo-intro.play .stripe-spray {
  animation: stripeSpray 0.55s ease-out 0.1s forwards;
}
.logo-intro.play .stripe-roll {
  animation: stripeRoll 0.5s var(--ease) 0.45s forwards;
}
.logo-intro.play .stripe-brush {
  animation: stripeBrush 0.5s var(--ease) 0.8s forwards;
}
.logo-intro .mist { opacity: 0; }
.logo-intro.play .mist { animation: mist 0.7s ease-out 0.05s forwards; }

@keyframes stripeSpray {
  0% { opacity: 0; filter: blur(6px); }
  60% { opacity: 1; filter: blur(2.5px); }
  100% { opacity: 1; filter: blur(0); }
}
@keyframes stripeRoll {
  0% { opacity: 1; clip-path: inset(0 100% 0 0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes stripeBrush {
  0% { opacity: 1; clip-path: inset(0 0 0 100%); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes mist {
  0% { opacity: 0; }
  35% { opacity: 0.5; }
  100% { opacity: 0; }
}

.logo-intro .intro-word {
  opacity: 0;
  animation: none;
}
.logo-intro.play .intro-word { animation: fadeUp 0.6s var(--ease) 1.05s forwards; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-img { overflow: hidden; border-radius: var(--radius); }
.reveal-img img {
  transform: scale(1.08);
  transition: transform 1.4s var(--ease);
}
.reveal.in .reveal-img img, .reveal-img.in img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img img { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-media img { animation: none; transform: none; }
  .logo-intro { display: none; }
}

/* ---------- Trust bar ---------- */

.trustbar { border-bottom: 1px solid var(--line); background: var(--white); }
.trustbar .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}
.trust-item strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--purple);
}
.trust-item span { font-size: 0.85rem; color: var(--gray); font-weight: 600; }
@media (max-width: 760px) { .trustbar .wrap { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -22px rgba(51, 32, 122, 0.28); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.card-body h3 { color: var(--heading); }
.card-body p { color: var(--gray); font-size: 0.98rem; flex: 1; }
.card-link {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.card-link::after { content: "→"; transition: transform 0.3s var(--ease); }
.card:hover .card-link::after { transform: translateX(4px); }

.card-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* ---------- Deep purple band (was black) ---------- */

.band-dark {
  background: linear-gradient(150deg, var(--purple-ink) 0%, var(--purple-deep) 100%);
  color: var(--white);
}
.band-dark .lede { color: rgba(255, 255, 255, 0.65); }
.band-dark h2 { color: var(--white); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.75rem;
}
.step-num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--purple-bright);
  filter: brightness(1.45);
  display: block;
  margin-bottom: 0.9rem;
}
.step h3 { color: var(--white); margin-bottom: 0.6rem; }
.step p { color: rgba(255, 255, 255, 0.65); font-size: 0.98rem; }

/* ---------- Split feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split .reveal-img { aspect-ratio: 4 / 3; }
.split .reveal-img img { width: 100%; height: 100%; object-fit: cover; }

.checklist { list-style: none; margin-top: 1.75rem; display: grid; gap: 0.9rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; font-weight: 600; }
.checklist li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--purple-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234a2eb3" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4 10-10"/></svg>') center / 11px no-repeat;
}

/* ---------- Brand panel (honest placeholder where no project photo exists) ---------- */

.brand-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(150deg, var(--purple-ink) 0%, var(--purple-deep) 100%);
  position: relative;
  overflow: hidden;
}
.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 60%, rgba(255,255,255,0.05) 60%, rgba(255,255,255,0.05) 70%, transparent 70%, transparent 78%, rgba(255,255,255,0.08) 78%, rgba(255,255,255,0.08) 90%, transparent 90%);
}
.brand-panel img { width: 34%; max-width: 140px; opacity: 0.9; position: relative; }

/* ---------- Quotes ---------- */

.quote {
  border-left: 3px solid var(--purple);
  padding-left: 1.75rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.quote footer { margin-top: 1rem; font-size: 0.9rem; font-weight: 700; color: var(--gray); }

/* ---------- Pricing ---------- */

.price-card { padding: 2.25rem; gap: 0.9rem; }
.price-card .price {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--purple);
}
.price-card .price small { font-size: 0.95rem; font-weight: 700; color: var(--gray); letter-spacing: 0; }
.price-note { font-size: 0.85rem; color: var(--gray); margin-top: 2rem; max-width: 46rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 50rem; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--purple);
  transition: transform 0.3s var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-top: 0.9rem; color: var(--gray); max-width: 44rem; }

/* ---------- Estimate page ---------- */

.est-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 30px 60px -28px rgba(51, 32, 122, 0.25);
}

.steps-light { counter-reset: step; display: grid; gap: 1.75rem; }
.steps-light .step { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.steps-light .step h3 { color: var(--heading); margin-bottom: 0.5rem; }
.steps-light .step p { color: var(--gray); font-size: 0.98rem; }
.steps-light .step-num { color: var(--purple); filter: none; }

.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.badge {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--white);
}

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

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 100%);
  color: var(--white);
  text-align: center;
  padding: var(--section) 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 62%,
    rgba(255, 255, 255, 0.06) 62%,
    rgba(255, 255, 255, 0.06) 68%,
    transparent 68%,
    transparent 74%,
    rgba(255, 255, 255, 0.09) 74%,
    rgba(255, 255, 255, 0.09) 86%,
    transparent 86%
  );
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band p { color: rgba(255, 255, 255, 0.75); }
.cta-band h2 { max-width: 18ch; margin: 0 auto 1.25rem; }
.cta-band p { color: rgba(255, 255, 255, 0.65); max-width: 36rem; margin: 0 auto 2.5rem; }
.cta-band .hero-ctas { justify-content: center; }

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

.site-footer {
  background: linear-gradient(160deg, var(--purple-ink) 0%, var(--purple-deep) 100%);
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding: 5rem 0 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; display: grid; gap: 0.6rem; font-size: 0.95rem; }
.site-footer a:hover { color: var(--white); }
.footer-brand .brand-word { color: var(--white); }
.site-footer .brand-division { color: var(--white); }
.site-footer .brand-top { border-bottom-color: var(--white); }
.footer-brand p { margin-top: 1rem; font-size: 0.92rem; max-width: 26rem; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Floating estimate CTA (follows the visitor) ---------- */

.follow-cta {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.follow-cta.show { opacity: 1; transform: none; pointer-events: auto; }
.follow-cta .btn { box-shadow: 0 18px 40px -14px rgba(74, 46, 179, 0.6); }
.follow-cta .speed {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(74, 46, 179, 0.18);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 10px 30px -16px rgba(51, 32, 122, 0.4);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.follow-cta .speed .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #16a34a;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
@media (max-width: 640px) { .follow-cta .speed { display: none; } }

/* ---------- Estimate drawer ---------- */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 21, 71, 0.45);
  backdrop-filter: blur(4px);
  z-index: 140;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(480px, 100vw);
  background: var(--white);
  z-index: 150;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -30px 0 60px -30px rgba(30, 21, 71, 0.4);
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
body.drawer-open { overflow: hidden; }

.drawer-head {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-head h3 { font-size: 1.15rem; }
.drawer-head .speed-note { font-size: 0.78rem; color: var(--gray); font-weight: 600; }
.drawer-close {
  background: var(--paper);
  border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.25s;
}
.drawer-close:hover { background: var(--line); }

.drawer-body { padding: 1.75rem; overflow-y: auto; flex: 1; }

.est-progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}
.est-progress i {
  height: 4px;
  flex: 1;
  border-radius: 99px;
  background: var(--line);
  transition: background 0.35s;
}
.est-progress i.on { background: var(--purple); }

.est-step { display: none; }
.est-step.on { display: block; animation: fadeUp 0.4s var(--ease); }
.est-step h4 { font-size: 1.3rem; margin-bottom: 1.25rem; letter-spacing: -0.01em; }

.opt-grid { display: grid; gap: 0.75rem; }
.opt {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--white);
  text-align: left;
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.opt small { font-weight: 600; color: var(--gray); font-size: 0.85rem; }
.opt:hover { border-color: var(--purple); transform: translateY(-1px); }
.opt.sel { border-color: var(--purple); background: var(--purple-soft); }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 800; margin-bottom: 0.4rem; letter-spacing: 0.04em; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--purple);
}

/* Google Places suggestion dropdown — match brand, sit above the drawer */
.pac-container {
  z-index: 300;
  font-family: var(--font);
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(51, 32, 122, 0.35);
  margin-top: 4px;
}
.pac-item {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.pac-item:hover, .pac-item-selected { background: var(--purple-soft); }
.pac-item-query { font-weight: 700; color: var(--ink); }

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 0.25rem;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.45;
}
.consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--purple);
  cursor: pointer;
}
.consent small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: var(--gray);
  font-weight: 500;
}

.est-nav { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.est-nav .btn { flex: 1; justify-content: center; }

.est-success { text-align: center; padding: 2rem 0; }
.est-success .tick {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--purple-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
  color: var(--purple);
}
.est-success h4 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.est-success p { color: var(--gray); margin-bottom: 1.5rem; }

.booking-slot {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem;
}

/* ---------- Ask MORA (FAQ bot) ---------- */

.bot-launch {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 95;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: var(--white);
  border: 0;
  cursor: pointer;
  font-size: 1.25rem;
  box-shadow: 0 16px 36px -14px rgba(51, 32, 122, 0.55);
  transition: transform 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bot-launch:hover { transform: translateY(-3px); }

.bot-panel {
  position: fixed;
  left: 1.25rem;
  bottom: 6rem;
  z-index: 96;
  width: min(360px, calc(100vw - 2.5rem));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -30px rgba(30, 21, 71, 0.5);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  display: flex;
  flex-direction: column;
  max-height: min(520px, 70vh);
}
body.bot-open .bot-panel { opacity: 1; visibility: visible; transform: none; }

.bot-head {
  background: linear-gradient(150deg, var(--purple-ink) 0%, var(--purple-deep) 100%);
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bot-head strong { font-size: 0.95rem; letter-spacing: 0.08em; }
.bot-head span { font-size: 0.75rem; color: rgba(255,255,255,0.6); display: block; }

.bot-log { padding: 1.1rem; overflow-y: auto; flex: 1; display: grid; gap: 0.7rem; align-content: start; }
.bot-msg {
  max-width: 88%;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.bot-msg.bot { background: var(--paper); border-bottom-left-radius: 4px; justify-self: start; }
.bot-msg.user { background: var(--purple); color: var(--white); border-bottom-right-radius: 4px; justify-self: end; }

.bot-chips { padding: 0 1.1rem 1.1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bot-chip {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.bot-chip:hover { border-color: var(--purple); color: var(--purple); }

/* ---------- Project photo galleries (lightbox) ---------- */

.card[data-gallery] { cursor: pointer; }
.card-media { position: relative; }
.pic-count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  background: rgba(30, 21, 71, 0.72);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20, 13, 48, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
}
body.lightbox-open .lightbox { display: flex; }
body.lightbox-open { overflow: hidden; }
.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}
.lb-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}
.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.25); }
.lb-prev { left: clamp(0.5rem, 3vw, 2.5rem); }
.lb-next { right: clamp(0.5rem, 3vw, 2.5rem); }
.lb-close {
  top: 1.25rem;
  right: 1.25rem;
  transform: none;
  position: absolute;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}

/* ---------- Misc ---------- */

.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.eyebrow-rule::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.muted-band { background: var(--paper); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 300;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---- Insights / articles ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin: 2.6rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.75rem; }
.prose p { margin: 0 0 1.15rem; color: var(--ink); line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.25rem; color: var(--ink); line-height: 1.7; }
.prose li { margin-bottom: 0.5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.75rem; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(74,46,179,0.14); }
.prose th { color: var(--heading); font-weight: 800; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.06em; }
.prose .callout { background: var(--glass); border: 1px solid rgba(74,46,179,0.18); border-radius: 14px; padding: 1.25rem 1.5rem; margin: 1.75rem 0; backdrop-filter: blur(8px); }
.post-meta { color: var(--gray); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; }
