/* ==========================================================================
   Brethren Electric — standalone stylesheet
   Design tokens mirror src/index.css from the React app.
   ========================================================================== */

:root {
  --background: 220 14% 98%;
  --foreground: 220 6% 11%;
  --card: 0 0% 100%;
  --primary: 222 83% 20%;
  --primary-foreground: 0 0% 98%;
  --secondary: 220 14% 96%;
  --muted-foreground: 220 6% 40%;
  --accent: 41 100% 68%;
  --border: 220 13% 90%;
  --input: 220 13% 88%;
  --radius: 0.75rem;
  --gold: 41 100% 68%;

  --font-heading: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --max-w: 80rem;
  --gutter: 1rem;
  --nav-h: 4rem;
}

@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; --nav-h: 5rem; } }

/* --------------------------------------------------------------- reset -- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin: 0;
  line-height: 1.2;
}

p, ul, ol, figure, blockquote { margin: 0; }
ul { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------ primitives -- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 5rem; }
@media (min-width: 1024px) { .section { padding-block: 7rem; } }

.section--light { background: hsl(var(--background)); }
.section--tint { background: hsl(var(--secondary) / 0.4); }
.section--dark { background: hsl(var(--primary)); position: relative; overflow: hidden; }

.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.icon--sm { width: 1rem; height: 1rem; }
.icon--md { width: 1.5rem; height: 1.5rem; }
.icon--lg { width: 2rem; height: 2rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(var(--accent));
}

.section-title {
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.25rem);
  font-weight: 700;
  text-wrap: balance;
}

.section-head {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-top: 1rem;
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 1024px) { .section-head p { font-size: 1.125rem; } }

.lede { color: hsl(var(--muted-foreground)); line-height: 1.7; }
.lede + .lede { margin-top: 1rem; }
@media (min-width: 1024px) { .lede { font-size: 1.125rem; } }

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .4s ease;
}

.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }

.btn--gold {
  background: hsl(var(--accent));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 0 0 0 hsl(var(--gold) / 0.6);
}
.btn--gold:hover { background: hsl(var(--accent) / 0.9); box-shadow: 0 0 24px 2px hsl(var(--gold) / 0.55); }
.btn--gold[disabled] { opacity: 0.6; cursor: not-allowed; }

.btn--outline-light {
  border: 2px solid rgb(255 255 255 / 0.3);
  background: rgb(255 255 255 / 0.05);
  color: #fff;
}
.btn--outline-light:hover { background: rgb(255 255 255 / 0.1); }

.btn--ghost {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}
.btn--ghost:hover { border-color: hsl(var(--accent)); color: hsl(var(--accent)); }

/* animated "live wire" hairline */
.live-line {
  background: linear-gradient(90deg, transparent, hsl(var(--gold)), transparent);
  background-size: 200% 100%;
  animation: live-flow 3s linear infinite;
}
@keyframes live-flow {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* faint blueprint grid used on the dark sections */
.grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(hsl(var(--gold)) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--gold)) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.media { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- navbar -- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.is-scrolled {
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: hsl(var(--border));
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.625rem; }

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 0.5rem;
  background: hsl(var(--primary));
  color: hsl(var(--accent));
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand__name em { font-style: normal; color: hsl(var(--accent)); }

.nav-links { display: none; }
.nav-actions { display: none; }

@media (min-width: 1024px) {
  .nav-links { display: flex; align-items: center; gap: 2rem; }
  .nav-actions { display: flex; align-items: center; gap: 0.75rem; }
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color .2s ease;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color .2s ease;
}
.nav-phone:hover { color: hsl(var(--accent)); }

/* Over the dark hero the bar is transparent, so its type goes light.
   Once scrolled, the panel turns opaque and the type flips back to ink. */
.navbar .brand__name,
.navbar .nav-phone { color: #fff; }
.navbar .nav-links a { color: rgb(255 255 255 / 0.75); }
.navbar .nav-links a:hover { color: #fff; }
.navbar__toggle { color: #fff; }

.navbar.is-scrolled .brand__name,
.navbar.is-scrolled .nav-phone { color: hsl(var(--foreground)); }
.navbar.is-scrolled .nav-links a { color: hsl(var(--muted-foreground)); }
.navbar.is-scrolled .nav-links a:hover { color: hsl(var(--foreground)); }
.navbar.is-scrolled .navbar__toggle { color: hsl(var(--foreground)); }

.navbar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  cursor: pointer;
}
.navbar__toggle:hover { background: rgb(255 255 255 / 0.12); }
.navbar.is-scrolled .navbar__toggle:hover { background: hsl(var(--secondary)); }
@media (min-width: 1024px) { .navbar__toggle { display: none; } }

.navbar__toggle .icon-close { display: none; }
.navbar__toggle[aria-expanded="true"] .icon-close { display: block; }
.navbar__toggle[aria-expanded="true"] .icon-open { display: none; }

.mobile-menu {
  display: none;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}
.mobile-menu.is-open { display: block; }
@media (min-width: 1024px) { .mobile-menu.is-open { display: none; } }

.mobile-menu nav { padding: 1rem; }

.mobile-menu a {
  display: block;
  border-radius: 0.375rem;
  padding: 0.625rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}
.mobile-menu a:hover { background: hsl(var(--secondary)); }

.mobile-menu .btn {
  display: block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  color: hsl(var(--primary-foreground));
}

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

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  background: hsl(var(--primary));
}

.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }

.hero__bg::after,
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
}
.hero__bg::before {
  background: linear-gradient(to right,
    hsl(var(--primary)),
    hsl(var(--primary) / 0.9) 50%,
    hsl(var(--primary) / 0.4));
}
.hero__bg::after {
  background: linear-gradient(to top,
    hsl(var(--primary) / 0.8),
    transparent 50%,
    hsl(var(--primary) / 0.3));
}

.hero__line { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; }

.hero__inner {
  position: relative;
  padding-block: 8rem;
}
@media (min-width: 1024px) { .hero__inner { padding-block: 10rem; } }

.hero__copy { max-width: 48rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid hsl(var(--accent) / 0.3);
  background: hsl(var(--accent) / 0.1);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--accent));
}

.pill__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--accent));
  animation: soft-pulse 2s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes soft-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
  font-size: clamp(2.25rem, 1.4rem + 4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: hsl(var(--accent)); }

.hero__sub {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgb(255 255 255 / 0.8);
}
@media (min-width: 640px) { .hero__sub { font-size: 1.25rem; } }

.hero__cta {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) { .hero__cta { flex-direction: row; } }

.hero__trust {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.7);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__trust .icon { color: hsl(var(--accent)); }
.hero__trust .sep { color: rgb(255 255 255 / 0.3); }

/* ----------------------------------------------------------------- about -- */

.about__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.about__media { position: relative; order: 2; }
.about__text { order: 1; }
@media (min-width: 1024px) {
  .about__media { order: 1; }
  .about__text { order: 2; }
}

.about__frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  aspect-ratio: 4 / 3;
}

.about__badge {
  position: absolute;
  bottom: -1.25rem;
  right: -0.75rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  background: hsl(var(--primary));
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
}
@media (min-width: 640px) { .about__badge { display: flex; right: -1.25rem; } }

.about__badge strong {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--accent));
}
.about__badge span {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  color: rgb(255 255 255 / 0.9);
}

.check-list {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) { .check-list { grid-template-columns: 1fr 1fr; } }

.check-list li { display: flex; align-items: flex-start; gap: 0.625rem; }
.check-list .icon { margin-top: 0.125rem; color: hsl(var(--accent)); }
.check-list span { font-size: 0.875rem; font-weight: 500; }

/* -------------------------------------------------------------- services -- */

.services__grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  overflow: hidden;
}
@media (min-width: 640px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }

.service {
  background: hsl(var(--card));
  padding: 1.75rem;
  transition: background-color .2s ease;
}
.service:hover { background: hsl(var(--primary)); }

.service__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: hsl(var(--primary) / 0.05);
  color: hsl(var(--primary));
  transition: background-color .2s ease, color .2s ease;
}
.service:hover .service__icon { background: hsl(var(--accent)); color: hsl(var(--primary-foreground)); }

.service h3 {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  transition: color .2s ease;
}
.service p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  transition: color .2s ease;
}
.service:hover h3 { color: #fff; }
.service:hover p { color: rgb(255 255 255 / 0.7); }

/* Items past the sixth stay collapsed until "View All Services" is pressed. */
.service.is-extra { display: none; }
.services__grid.is-expanded .service.is-extra { display: block; }

.services__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
@media (min-width: 640px) { .services__actions { flex-direction: row; } }

.services__toggle .chevron { transition: transform .2s ease; }
.services__toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* -------------------------------------------------------------- problems -- */

.problems__head { max-width: 42rem; }
.problems__head h2 { color: #fff; }
.problems__head p {
  margin-top: 1rem;
  font-size: 1rem;
  color: rgb(255 255 255 / 0.7);
}
@media (min-width: 1024px) { .problems__head p { font-size: 1.125rem; } }

.problems__grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .problems__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .problems__grid { grid-template-columns: repeat(4, 1fr); } }

.problem {
  border-radius: 1rem;
  overflow: hidden;
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
  transition: border-color .2s ease;
}
.problem:hover { border-color: hsl(var(--accent) / 0.4); }

.problem__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.problem__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--primary) / 0.8), transparent 60%);
}

.problem__body { padding: 1.25rem; }
.problem__body h3 { font-size: 1rem; font-weight: 600; color: #fff; }
.problem__body p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgb(255 255 255 / 0.6);
}

.problems__footer {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
  padding: 1.5rem;
  text-align: center;
}
.problems__footer p { color: rgb(255 255 255 / 0.8); }
.problems__footer .btn { flex: none; }
@media (min-width: 640px) {
  .problems__footer { flex-direction: row; text-align: left; }
}
@media (min-width: 1024px) { .problems__footer { padding: 2rem; } }

/* ----------------------------------------------------------------- owner -- */

.owner__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) {
  .owner__grid { grid-template-columns: 5fr 7fr; gap: 3.5rem; }
}

.owner__portrait { position: relative; }
.owner__portrait::before {
  content: "";
  position: absolute;
  inset: -0.75rem;
  border-radius: 1.5rem;
  background: linear-gradient(to bottom right, hsl(var(--accent) / 0.2), hsl(var(--primary) / 0.1));
  filter: blur(24px);
}

.owner__frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.owner__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, hsl(var(--primary) / 0.9), transparent);
}
.owner__caption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.owner__caption span {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--accent));
}

.owner__title {
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 700;
  text-wrap: balance;
}

.owner__story { margin-top: 1.5rem; display: grid; gap: 1rem; }

.pull-quote {
  position: relative;
  margin-top: 2rem;
  border-radius: 1rem;
  border-left: 4px solid hsl(var(--accent));
  background: hsl(var(--secondary) / 0.5);
  padding: 1.5rem;
}
@media (min-width: 1024px) { .pull-quote { padding: 1.75rem; } }

.pull-quote .quote-mark {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--accent) / 0.2);
}
.pull-quote blockquote {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.6;
}
@media (min-width: 1024px) { .pull-quote blockquote { font-size: 1.25rem; } }
.pull-quote figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

/* ------------------------------------------------------------ why choose -- */

.why__grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why__grid { grid-template-columns: repeat(3, 1fr); } }

.why-card {
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 1.75rem;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.why-card:hover {
  border-color: hsl(var(--accent) / 0.4);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.why-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: hsl(var(--primary));
  color: hsl(var(--accent));
  transition: transform .2s ease;
}
.why-card:hover .why-card__icon { transform: scale(1.05); }

.why-card h3 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 600; }
.why-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

/* ---------------------------------------------------------- testimonials -- */

.reviews__grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } }

.review {
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  transition: box-shadow .2s ease;
}
.review:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }

.review > .quote-mark {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--accent) / 0.3);
}

.stars { display: flex; gap: 0.125rem; color: hsl(var(--accent)); }
.stars svg { width: 1rem; height: 1rem; fill: currentColor; }

.review blockquote {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.review figcaption {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: hsl(var(--accent));
  font-family: var(--font-heading);
  font-weight: 700;
}

.review figcaption p { font-size: 0.875rem; font-weight: 600; }
.review figcaption small { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

.reviews__more { margin-top: 2.5rem; text-align: center; }
.reviews__more a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  transition: color .2s ease;
}
.reviews__more a:hover { color: hsl(var(--accent)); }

/* ------------------------------------------------------------ cta banner -- */

.cta { padding-block: 4rem; background: hsl(var(--background)); }
@media (min-width: 1024px) { .cta { padding-block: 5rem; } }

.cta__panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: hsl(var(--primary));
  padding: 3.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15);
}
@media (min-width: 1024px) { .cta__panel { padding: 5rem 4rem; } }

.cta__glow {
  position: absolute;
  width: 16rem;
  height: 16rem;
  border-radius: 9999px;
  background: hsl(var(--accent) / 0.1);
  filter: blur(64px);
  pointer-events: none;
}
.cta__glow--a { top: -5rem; right: -5rem; }
.cta__glow--b { bottom: -5rem; left: -5rem; }

.cta__panel .live-line { position: absolute; top: 0; left: 0; right: 0; height: 1px; }

.cta__inner { position: relative; max-width: 42rem; margin-inline: auto; }

.cta__inner h2 {
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 700;
  color: #fff;
  text-wrap: balance;
}
.cta__inner p {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: rgb(255 255 255 / 0.75);
}
@media (min-width: 1024px) { .cta__inner p { font-size: 1.125rem; } }

.cta__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
@media (min-width: 640px) { .cta__actions { flex-direction: row; } }

/* --------------------------------------------------------------- contact -- */

.contact__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: 5fr 7fr; gap: 3.5rem; }
  .contact__info { position: sticky; top: 7rem; }
}

.contact__info h2 {
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 700;
  color: #fff;
  text-wrap: balance;
}
.contact__info > p {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgb(255 255 255 / 0.7);
}
@media (min-width: 1024px) { .contact__info > p { font-size: 1.125rem; } }

.contact__methods { margin-top: 2rem; display: grid; gap: 1rem; }

.contact__method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  transition: color .2s ease;
}
.contact__method:hover { color: hsl(var(--accent)); }

.contact__method .badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.1);
}
.contact__method small { display: block; font-size: 0.75rem; color: rgb(255 255 255 / 0.5); }
.contact__method strong { font-size: 1rem; font-weight: 600; }

.form-card {
  border-radius: 1rem;
  background: hsl(var(--background));
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.35);
}
@media (min-width: 640px) { .form-card { padding: 2rem; } }
@media (min-width: 1024px) { .form-card { padding: 2.5rem; } }

.form-grid { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input::placeholder,
.field textarea::placeholder { color: hsl(var(--muted-foreground)); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 2px hsl(var(--accent) / 0.3);
}

.form-card .btn--gold { width: 100%; }

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 3rem;
}
.form-card.is-submitted .form-success { display: flex; }
.form-card.is-submitted form { display: none; }

.form-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: hsl(var(--accent) / 0.15);
  color: hsl(var(--accent));
}
.form-success__icon svg { width: 2.25rem; height: 2.25rem; }

.form-success h3 { margin-top: 1.25rem; font-size: 1.5rem; font-weight: 700; }
.form-success p {
  margin-top: 0.5rem;
  max-width: 28rem;
  color: hsl(var(--muted-foreground));
}

.link-button {
  margin-top: 1.5rem;
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  cursor: pointer;
  transition: color .2s ease;
}
.link-button:hover { color: hsl(var(--accent)); }

/* ---------------------------------------------------------------- footer -- */

.footer {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  padding-top: 4rem;
  padding-bottom: 7rem;
}
@media (min-width: 1024px) { .footer { padding-bottom: 4rem; } }

.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }

.footer .brand__mark { background: hsl(var(--accent)); color: hsl(var(--primary)); }
.footer .brand__name { color: #fff; }

.footer__blurb {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgb(255 255 255 / 0.6);
}

.socials { margin-top: 1.25rem; display: flex; gap: 0.75rem; }
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.1);
  transition: background-color .2s ease, color .2s ease;
}
.socials a:hover { background: hsl(var(--accent)); color: hsl(var(--primary)); }

.footer h3 {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(var(--accent));
}

.footer ul {
  margin-top: 1rem;
  display: grid;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.7);
}
.footer__contact ul { gap: 0.75rem; }
.footer__contact li,
.footer__contact a { display: flex; align-items: flex-start; gap: 0.625rem; }
.footer__contact .icon { color: hsl(var(--accent)); margin-top: 0.125rem; }
.footer ul a { transition: color .2s ease; }
.footer a:hover { color: hsl(var(--accent)); }

.footer__base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.5);
}
@media (min-width: 640px) { .footer__base { flex-direction: row; } }

/* ------------------------------------------------------- mobile cta bar -- */

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: hsl(var(--border));
  box-shadow: 0 -10px 25px -5px rgb(0 0 0 / 0.25);
}
@media (min-width: 1024px) { .sticky-bar { display: none; } }

.sticky-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-block: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.sticky-bar__call {
  background: hsl(var(--primary));
  color: #fff;
  animation: pulse-ring 2s cubic-bezier(.4,0,.6,1) infinite;
}
.sticky-bar__quote {
  background: hsl(var(--accent));
  color: hsl(var(--primary-foreground));
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 hsl(var(--gold) / 0.5); }
  50%      { box-shadow: 0 0 0 10px hsl(var(--gold) / 0); }
}

/* ---------------------------------------------------------------- misc -- */

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