/* ==========================================================================
   Alarm Masters — Senior Living Landing Page
   Palette: maroon #580f16 / charcoal #1f2127 / teal #3cddbe
   Type: Big Shoulders (display) + Inter (body)
   ========================================================================== */

:root {
  --maroon: #580f16;
  --maroon-2: #5a1016;
  --maroon-deep: #400b10;
  --maroon-ink: #2e070b;
  --charcoal: #1f2127;
  --charcoal-deep: #0f1014;
  --teal: #3cddbe;
  --teal-bright: #6ae5cc;
  --paper: #fafafa;
  --mist: #f0f1f2;
  --body-gray: #7e7173;
  --ink: #1f2127;
  --line: rgba(31, 33, 39, 0.12);
  --line-light: rgba(250, 250, 250, 0.14);

  --display: "Big Shoulders", "Big Shoulders Display", "Arial Narrow", sans-serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --radius: 10px;
  --shadow-lg: 0 24px 60px -24px rgba(15, 16, 20, 0.45);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

::selection { background: var(--teal); color: var(--charcoal-deep); }

/* ---------- Type helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(0.8rem, 0.75rem + 0.3vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }

.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 1.5rem + 3.4vw, 3.4rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-top: 0.75rem;
}

.section-head p { margin-top: 1rem; color: var(--body-gray); max-width: 58ch; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 1rem 1.9rem;
  border-radius: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-teal {
  background: var(--teal);
  color: var(--charcoal-deep);
  box-shadow: 0 12px 30px -12px rgba(60, 221, 190, 0.55);
}

.btn-teal:hover { background: var(--teal-bright); transform: translateY(-2px); }

.btn-teal .arrow { transition: transform 0.18s ease; }
.btn-teal:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line-light);
}

.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 16, 20, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.site-header .logo img { height: 30px; width: auto; }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid rgba(60, 221, 190, 0.5);
  border-radius: 6px;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.header-call svg { width: 15px; height: 15px; fill: var(--teal); flex: none; transition: fill 0.18s ease; }

.header-call:hover { background: var(--teal); color: var(--charcoal-deep); }
.header-call:hover svg { fill: var(--charcoal-deep); }

.header-call .call-label { color: var(--teal); margin-right: 2px; transition: color 0.18s ease; }
.header-call:hover .call-label { color: var(--charcoal-deep); }

@media (max-width: 480px) {
  .site-header .wrap { height: 58px; padding-inline: 14px; }
  .site-header .logo img { height: 24px; }
  .header-call { padding: 8px 11px; font-size: 0.88rem; letter-spacing: 0.06em; gap: 7px; }
  .header-call .call-label { display: none; }
}

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

.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(88, 15, 22, 0.85), transparent 62%),
    radial-gradient(700px 460px at -12% 110%, rgba(88, 15, 22, 0.5), transparent 60%),
    linear-gradient(180deg, #16181d 0%, var(--charcoal) 55%, #191b20 100%);
  color: var(--paper);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 250, 250, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 250, 250, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: "35";
  position: absolute;
  right: -0.08em;
  bottom: -0.28em;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(14rem, 30vw, 26rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(250, 250, 250, 0.06);
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.25fr 0.75fr; align-items: center; }
}

.hero .eyebrow { color: var(--teal); }

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.75rem, 1.8rem + 5.8vw, 5.25rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin-top: 1.1rem;
}

.hero h1 .accent { color: var(--teal); }

.hero-sub {
  margin-top: 1.4rem;
  max-width: 54ch;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
  color: rgba(250, 250, 250, 0.78);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.1rem;
}

.hero-note {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: rgba(250, 250, 250, 0.55);
}

/* Offer card */

.offer-card {
  position: relative;
  background: linear-gradient(160deg, rgba(250, 250, 250, 0.07), rgba(250, 250, 250, 0.03));
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
}

.offer-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(180deg, var(--teal), rgba(60, 221, 190, 0.15));
}

.offer-tag {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal-deep);
  background: var(--teal);
  padding: 5px 12px;
  border-radius: 4px;
}

.offer-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.05;
  text-transform: uppercase;
  margin-top: 1rem;
}

.offer-card ul { list-style: none; margin-top: 1.15rem; display: grid; gap: 0.7rem; }

.offer-card li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.94rem;
  color: rgba(250, 250, 250, 0.82);
}

.offer-card li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; }

.offer-fine {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-light);
  font-size: 0.78rem;
  color: rgba(250, 250, 250, 0.5);
}

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

.trust-bar {
  background: linear-gradient(120deg, var(--maroon-deep), var(--maroon) 55%, var(--maroon-2));
  color: var(--paper);
  border-top: 1px solid rgba(250, 250, 250, 0.08);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-block: clamp(1.8rem, 4vw, 2.6rem);
}

@media (min-width: 820px) { .trust-grid { grid-template-columns: repeat(5, 1fr); } }

.trust-item {
  padding: 0.9rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(250, 250, 250, 0.1);
}

.trust-item:last-child { border-bottom: none; }

@media (max-width: 819px) {
  .trust-item:last-child { grid-column: 1 / -1; }
  .trust-item:nth-last-child(2) { border-bottom: none; }
}

@media (min-width: 820px) {
  .trust-item { border-bottom: none; border-right: 1px solid rgba(250, 250, 250, 0.12); }
  .trust-item:last-child { border-right: none; }
}

.trust-item .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  line-height: 1;
  color: var(--teal-bright);
}

.trust-item .num.num-text {
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem);
  letter-spacing: 0.04em;
  padding-top: 0.25em;
}

.trust-item .lbl {
  margin-top: 5px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.72);
}

/* ---------- Field video band ---------- */

.video-band {
  background: linear-gradient(180deg, #191b20 0%, #14161a 100%);
  padding-block: clamp(0.5rem, 2vw, 1rem) clamp(2.75rem, 6vw, 4.25rem);
}

.video-frame {
  margin: 0 auto;
  max-width: 940px;
}

.video-shell {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.video-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(180deg, var(--teal), rgba(60, 221, 190, 0.12));
  z-index: 1;
}

.video-shell video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
  background: var(--charcoal-deep);
}

.video-frame figcaption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 0.9rem;
  padding-left: 2px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(250, 250, 250, 0.58);
}

.video-tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}

/* ---------- Photo frames (shared) ---------- */

.photo-frame { position: relative; margin: 0; }

.photo-frame img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 4px;
  height: 100%;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(180deg, var(--teal), rgba(60, 221, 190, 0.12));
  z-index: 1;
}

.photo-frame figcaption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--body-gray);
}

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

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }

.section-light { background: var(--paper); }
.section-mist { background: var(--mist); }

/* ---------- Services grid ---------- */

.services-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.6rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--maroon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(31, 33, 39, 0.25);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(88, 15, 22, 0.07);
  color: var(--maroon);
  margin-bottom: 1.1rem;
}

.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.service-card p { margin-top: 0.55rem; font-size: 0.92rem; color: var(--body-gray); }

/* ---------- Why section (dark) ---------- */

.why {
  background:
    radial-gradient(760px 420px at 100% 0%, rgba(88, 15, 22, 0.55), transparent 60%),
    var(--charcoal);
  color: var(--paper);
}

.why .section-head p { color: rgba(250, 250, 250, 0.65); }
.why .eyebrow { color: var(--teal); }

.why-top {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.why-top .section-head { margin-bottom: 0; }

@media (min-width: 900px) {
  .why-top { grid-template-columns: 1.05fr 0.95fr; }
}

.why-photo img { aspect-ratio: 3 / 2; border: 1px solid var(--line-light); }

.why-photo figcaption { color: rgba(250, 250, 250, 0.55); }

.why-grid { display: grid; gap: 0; border-top: 1px solid var(--line-light); }

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 1.5rem 0.25rem;
  border-bottom: 1px solid var(--line-light);
}

.why-item .idx {
  font-family: var(--display);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1;
  color: var(--teal);
  min-width: 2.2ch;
}

.why-item h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.why-item p { margin-top: 0.4rem; font-size: 0.95rem; color: rgba(250, 250, 250, 0.68); max-width: 62ch; }

@media (min-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item { padding: 1.75rem 2rem 1.75rem 0.25rem; }
  .why-item:nth-child(odd) { border-right: 1px solid var(--line-light); }
  .why-item:nth-child(even) { padding-left: 2rem; }
}

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

/* ---------- Reviews ---------- */

.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.reviews-head .section-head { margin-bottom: 0; }

.rating-summary { padding-bottom: 0.35rem; }

.stars {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.stars-row {
  display: inline-flex;
  gap: 4px;
}

.stars-row svg { width: 27px; height: 27px; }

.stars-base svg { fill: rgba(31, 33, 39, 0.14); }

.stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  width: 94%; /* 4.7 of 5 */
}

.stars-fill svg { fill: #efaf1d; flex: none; }

.rating-meta {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: var(--body-gray);
  letter-spacing: 0.02em;
}

.rating-meta strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  margin-right: 2px;
}

.reviews-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 640px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.5rem 1.35rem;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal), rgba(60, 221, 190, 0.1));
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0.85rem;
}

.card-stars { display: inline-flex; gap: 2.5px; line-height: 0; }
.card-stars svg { width: 15px; height: 15px; fill: #efaf1d; }

.review-chip {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  background: rgba(88, 15, 22, 0.07);
  border-radius: 4px;
  padding: 4px 9px;
  white-space: nowrap;
}

.review-card blockquote {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink);
}

.review-card footer {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
  font-size: 0.84rem;
  color: var(--body-gray);
}

.review-card footer strong { color: var(--ink); font-weight: 600; }

.reviews-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--body-gray);
}

/* ---------- Steps ---------- */

.how-layout {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
  align-items: stretch;
}

@media (min-width: 900px) {
  .how-layout { grid-template-columns: 0.92fr 1.08fr; }
}

.how-photo { display: flex; flex-direction: column; }

.how-photo img {
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  object-position: 62% center;
}

@media (min-width: 900px) {
  .how-photo img { aspect-ratio: auto; flex: 1; min-height: 0; height: 100%; }
  .how-photo figcaption { flex: none; }
}

.how-photo figcaption strong { color: var(--maroon); font-weight: 700; }

.steps-grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-content: start; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}

.step .step-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.7rem;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--maroon);
  min-width: 2.1ch;
}

.step h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  line-height: 1.1;
}

.step p { margin-top: 0.5rem; font-size: 0.93rem; color: var(--body-gray); }

.steps-fine {
  margin-top: 1.6rem;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--teal);
  background: rgba(60, 221, 190, 0.07);
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: var(--ink);
  max-width: 760px;
}

/* ---------- Form section ---------- */

.form-section {
  background:
    radial-gradient(800px 500px at 15% 0%, rgba(64, 11, 16, 0.9), transparent 65%),
    linear-gradient(170deg, var(--maroon) 0%, var(--maroon-deep) 70%, var(--maroon-ink) 100%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 250, 250, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 250, 250, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.form-inner { position: relative; z-index: 1; display: grid; gap: clamp(2.5rem, 5vw, 4rem); }

@media (min-width: 960px) {
  .form-inner { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .form-aside { position: sticky; top: 96px; }
}

.form-aside .eyebrow { color: var(--teal); }

.form-aside h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.3rem, 1.6rem + 3.6vw, 3.6rem);
  line-height: 1;
  text-transform: uppercase;
  margin-top: 0.85rem;
}

.form-aside p { margin-top: 1.1rem; color: rgba(250, 250, 250, 0.75); max-width: 46ch; }

.aside-call {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 250, 250, 0.15);
  font-size: 0.9rem;
  color: rgba(250, 250, 250, 0.6);
}

.aside-call a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  text-decoration: none;
}

.aside-call a svg { width: 18px; height: 18px; fill: var(--teal); }
.aside-call a:hover { color: var(--teal); }

/* Form card */

.form-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow-lg);
}

.form-grid { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.field label .req { color: var(--maroon); }
.field label .opt { font-weight: 400; color: var(--body-gray); font-size: 0.78rem; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(31, 33, 39, 0.22);
  border-radius: 7px;
  padding: 0.72rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f2127' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.3rem;
}

.field textarea { min-height: 96px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(88, 15, 22, 0.14);
}

.checks-label { font-weight: 600; font-size: 0.84rem; margin-bottom: 0.55rem; display: block; }

.checks { display: grid; gap: 8px; grid-template-columns: 1fr; }

@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }

.field label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0;
  border: 1px solid rgba(31, 33, 39, 0.18);
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.field label.check:hover { border-color: var(--maroon); }

.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1.5px solid rgba(31, 33, 39, 0.35);
  border-radius: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.check input:checked {
  background: var(--maroon);
  border-color: var(--maroon);
}

.check input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.check:has(input:checked) { border-color: var(--maroon); background: rgba(88, 15, 22, 0.05); }

.form-card .btn { width: 100%; margin-top: 0.4rem; font-size: 1.15rem; padding: 1.1rem; }

.form-privacy {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--body-gray);
  text-align: center;
}

.hidden-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

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

.site-footer {
  background: var(--charcoal-deep);
  color: rgba(250, 250, 250, 0.65);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.88rem;
}

.footer-grid { display: grid; gap: 2.25rem; grid-template-columns: 1fr; }

@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.1fr 1fr 1fr; } }

.footer-brand img { height: 44px; width: auto; }

.footer-brand p { margin-top: 1.1rem; max-width: 34ch; }

.footer-col h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 0.9rem;
}

.footer-col ul { list-style: none; display: grid; gap: 0.5rem; }

.footer-col a { color: rgba(250, 250, 250, 0.65); text-decoration: none; }
.footer-col a:hover { color: var(--teal); }

.footer-cities { line-height: 1.8; max-width: 40ch; }

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 250, 250, 0.1);
  display: grid;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: rgba(250, 250, 250, 0.45);
}

/* ---------- Thanks page ---------- */

.thanks-main {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 520px at 80% -10%, rgba(88, 15, 22, 0.8), transparent 62%),
    linear-gradient(180deg, #16181d 0%, var(--charcoal) 60%, #191b20 100%);
  color: var(--paper);
  padding-block: clamp(3.5rem, 9vw, 7rem);
  position: relative;
  overflow: hidden;
}

.thanks-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 250, 250, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 250, 250, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}

.thanks-card { position: relative; z-index: 1; text-align: center; max-width: 620px; padding-inline: 20px; }

.thanks-check {
  width: 74px;
  height: 74px;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  background: rgba(60, 221, 190, 0.12);
  border: 1.5px solid var(--teal);
  display: grid;
  place-items: center;
}

.thanks-check svg { width: 32px; height: 32px; }

.thanks-card .eyebrow { color: var(--teal); }

.thanks-card h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 2rem + 4vw, 4.4rem);
  line-height: 0.98;
  text-transform: uppercase;
  margin-top: 0.9rem;
}

.thanks-card > p { margin-top: 1.2rem; color: rgba(250, 250, 250, 0.75); font-size: 1.05rem; }

.thanks-phone {
  margin-top: 2rem;
  padding: 1.4rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(250, 250, 250, 0.04);
}

.thanks-phone p { font-size: 0.85rem; color: rgba(250, 250, 250, 0.55); }

.thanks-phone a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.05em;
  color: var(--paper);
  text-decoration: none;
}

.thanks-phone a svg { width: 20px; height: 20px; fill: var(--teal); }
.thanks-phone a:hover { color: var(--teal); }

.thanks-back { margin-top: 2rem; }
.thanks-back a { color: rgba(250, 250, 250, 0.55); font-size: 0.88rem; }
.thanks-back a:hover { color: var(--teal); }
