/* ============================================================
   FILLMORE CONSTRUCTION — Murphys, CA
   Heritage craftsman palette: clay, pine, cream, iron, sky
   ============================================================ */

:root {
  /* Earthy Sierra-foothills palette */
  --cream:        #F4ECDD;   /* page bg */
  --cream-2:      #EBE0CB;   /* warm panel */
  --paper:        #FBF6EA;   /* card */
  --ink:          #1F1A14;   /* near-black brown */
  --ink-2:        #3A3026;
  --iron:         #2A2A28;
  --clay:         #B5471F;   /* primary accent — fired brick */
  --clay-deep:    #8E3416;
  --rust:         #C66A2C;
  --pine:         #2F4A33;   /* deep evergreen */
  --pine-2:       #486B4D;
  --sand:         #D9C9A6;
  --moss:         #708A4E;
  --sky:          #6E8AA1;
  --rule:         rgba(31,26,20,0.14);
  --rule-strong:  rgba(31,26,20,0.32);

  --serif:  "Bitter", "Source Serif Pro", Georgia, serif;
  --sans:   "DM Sans", "Inter", system-ui, sans-serif;
  --display:"Cormorant Garamond", "Bitter", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(48px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
p  { margin: 0; text-wrap: pretty; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px; background: currentColor;
}

.section { padding: 120px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 72px 0; } }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head h2 { max-width: 18ch; }
.section-head .lede { color: var(--ink-2); font-size: 18px; max-width: 56ch; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 2px;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--clay);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(0,0,0,0.1), inset 0 -2px 0 rgba(0,0,0,0.18);
}
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover { background: var(--cream); }

.btn .arrow {
  width: 14px; height: 14px;
  display: inline-block;
  position: relative;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Subtle textures ---- */
.paper-texture {
  background-image:
    radial-gradient(rgba(31,26,20,0.04) 1px, transparent 1.2px),
    radial-gradient(rgba(31,26,20,0.03) 1px, transparent 1.2px);
  background-size: 22px 22px, 11px 11px;
  background-position: 0 0, 5px 7px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 236, 221, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--cream);
}
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-tag {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 4px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: nowrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 14.5px;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--clay-deep); }
.nav-phone {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
}
.nav-cta {
  background: var(--clay);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s ease;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18);
}
.nav-cta:hover { background: var(--clay-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--ink); margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .brand-tag { display: none; }
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    z-index: 60;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px 36px;
    gap: 4px;
    border-bottom: 1px solid var(--rule);
    transform: translateY(-110%);
    transition: transform .3s ease;
  }
  .nav-links a { padding: 14px 0; font-size: 18px; width: 100%; border-bottom: 1px solid var(--rule); }
  .nav-open .nav-links { transform: translateY(0); }
  .nav-phone { font-size: 22px; padding-top: 16px !important; border-bottom: none !important; color: var(--clay-deep); }
}
@media (max-width: 480px) {
  .brand-name { font-size: 15px; }
  .brand-mark { width: 32px; height: 32px; }
  .nav-inner { height: 60px; }
  .nav-links { inset: 60px 0 auto 0; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 0 0;
  background: var(--cream);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: end;
  min-height: calc(100vh - 156px);
}
.hero-copy { padding-bottom: 80px; }
.hero h1 {
  margin-top: 28px;
  margin-bottom: 28px;
}
.hero h1 em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--clay-deep);
}
.hero-lede {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  max-width: 560px;
}
.hero-meta .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--clay-deep);
}
.hero-meta .lbl {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  margin-bottom: 0;
  align-self: stretch;
}
.hero-photo .photo-card {
  position: absolute;
  left: -32px; bottom: 56px;
  background: var(--paper);
  padding: 18px 22px 16px;
  max-width: 280px;
  box-shadow: 0 18px 40px -16px rgba(31,26,20,0.35);
  border-left: 3px solid var(--clay);
}
.photo-card .quote {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
}
.photo-card .who {
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 0;
  overflow: hidden;
  background: var(--cream-2);
}
.marquee-track {
  display: flex;
  gap: 80px;
  padding: 22px 0;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-2);
}
.marquee-track span {
  display: inline-flex; align-items: center; gap: 14px;
}
.marquee-track .dot {
  width: 6px; height: 6px; background: var(--clay);
  border-radius: 50%; flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 920px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; min-height: 0; }
  .hero-copy { padding-bottom: 24px; }
  .hero-photo { aspect-ratio: 4 / 4; }
  .hero-photo .photo-card { left: 16px; bottom: 16px; max-width: 240px; }
  .hero-meta { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero-meta .num { font-size: 28px; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--paper); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.service-card {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  transition: background .25s ease;
}
.service-card:hover { background: var(--cream-2); }
.service-card .num-badge {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.service-card h3 {
  font-size: 28px;
  letter-spacing: -0.01em;
}
.service-card p { color: var(--ink-2); font-size: 15.5px; }
.service-card .icon {
  width: 56px; height: 56px;
  background: var(--ink);
  color: var(--cream);
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.service-card ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px; color: var(--ink-2);
}
.service-card ul li::before {
  content: "—"; color: var(--clay); margin-right: 8px;
}

@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 32px 24px; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-portrait {
  aspect-ratio: 4 / 5;
  position: relative;
}
.about-portrait .stamp {
  position: absolute;
  right: -24px; top: 24px;
  background: var(--clay);
  color: var(--paper);
  padding: 18px 22px;
  text-align: center;
  transform: rotate(4deg);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.3);
}
.about-portrait .stamp .big {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
}
.about-portrait .stamp .small {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 4px;
}
.about-copy h2 { margin-bottom: 24px; }
.about-copy p { color: var(--ink-2); font-size: 17px; margin-bottom: 16px; }
.about-copy p.lead { font-size: 21px; color: var(--ink); font-family: var(--display); font-style: italic; line-height: 1.4; margin-bottom: 24px; }
.about-signature {
  display: flex; align-items: center; gap: 16px; margin-top: 28px;
}
.signature-script {
  font-family: var(--display);
  font-style: italic;
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
}
.signature-line {
  border-left: 1px solid var(--rule-strong);
  padding-left: 16px;
}
.signature-line .name { font-weight: 600; font-size: 14px; }
.signature-line .role { color: var(--ink-2); font-size: 13px; }

@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--ink); color: var(--cream); }
.gallery .eyebrow { color: var(--rust); }
.gallery h2 { color: var(--cream); }
.gallery .lede { color: rgba(244,236,221,0.7); }

.gallery-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244,236,221,0.25);
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--cream); }
.filter-btn.active {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid .item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s ease;
}
.gallery-grid .item:hover { transform: translateY(-3px); }
.gallery-grid .item.tall { grid-row: span 2; }
.gallery-grid .item .meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: var(--cream);
}
.gallery-grid .item .meta .ttl {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.gallery-grid .item .meta .sub {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244,236,221,0.7);
}
@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .item.tall { grid-row: span 1; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15,12,8,0.94);
  z-index: 100;
  display: grid; place-items: center;
  padding: 40px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-inner {
  max-width: 1100px;
  width: 100%;
  position: relative;
}
.lightbox .frame {
  aspect-ratio: 16 / 10;
  width: 100%;
}
.lightbox .info {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--cream);
  gap: 24px;
}
.lightbox .info h3 { font-size: 28px; color: var(--cream); }
.lightbox .info .sub { color: rgba(244,236,221,0.6); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }
.lightbox .info .desc { color: rgba(244,236,221,0.85); max-width: 50ch; }
.lightbox .close {
  position: absolute; top: -50px; right: 0;
  background: transparent; border: none;
  color: var(--cream); font-size: 28px; padding: 8px;
}
.lightbox .nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(244,236,221,0.1);
  color: var(--cream);
  border: 1px solid rgba(244,236,221,0.25);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 22px;
}
.lightbox .nav-arrow:hover { background: var(--clay); border-color: var(--clay); }
.lightbox .nav-arrow.prev { left: -64px; }
.lightbox .nav-arrow.next { right: -64px; }
@media (max-width: 1240px) {
  .lightbox .nav-arrow.prev { left: 8px; }
  .lightbox .nav-arrow.next { right: 8px; }
}

/* ============================================================
   COMMUNITY
   ============================================================ */
.community { background: var(--pine); color: var(--cream); }
.community .eyebrow { color: var(--sand); }
.community h2 { color: var(--cream); max-width: 16ch; }
.community .lede { color: rgba(244,236,221,0.78); }

.community-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.community-card {
  background: rgba(244,236,221,0.06);
  border: 1px solid rgba(244,236,221,0.12);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.community-card.featured {
  grid-column: span 6;
  background: var(--cream);
  color: var(--ink);
  padding: 0;
  border: none;
  display: grid;
  grid-template-rows: auto 1fr;
}
.community-card.featured .photo { aspect-ratio: 16 / 9; }
.community-card.featured .body {
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.community-card.featured h3 { font-size: 26px; }
.community-card.standard {
  grid-column: span 3;
}
.community-card .tag {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sand);
}
.community-card.featured .tag { color: var(--clay-deep); }
.community-card h3 { font-size: 20px; line-height: 1.2; }
.community-card p { font-size: 14.5px; color: rgba(244,236,221,0.78); }
.community-card.featured p { color: var(--ink-2); }

@media (max-width: 920px) {
  .community-card.featured, .community-card.standard { grid-column: span 12; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--cream-2); }
.testimonial-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 56px 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  position: relative;
}
.testimonial-quote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.25;
  color: var(--ink);
  max-width: 26ch;
  margin: 0 auto 36px;
  text-align: center;
  text-wrap: balance;
}
.testimonial-quote::before {
  content: "“";
  display: block;
  font-size: 96px;
  line-height: 0.6;
  color: var(--clay);
  font-family: var(--display);
  margin-bottom: 24px;
}
.testimonial-meta {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.testimonial-meta .stars {
  color: var(--clay);
  letter-spacing: 4px;
  font-size: 16px;
  margin-bottom: 8px;
}
.testimonial-meta .name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
}
.testimonial-meta .where {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.testimonial-dots {
  display: flex; gap: 10px; justify-content: center;
  margin-top: 40px;
}
.testimonial-dots button {
  width: 32px; height: 4px;
  background: rgba(31,26,20,0.18);
  border: none;
  transition: background .2s ease;
}
.testimonial-dots button.active { background: var(--clay); }
.testimonial-controls {
  display: flex; gap: 8px; justify-content: center; margin-top: 16px;
}
.testimonial-controls button {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px;
}
.testimonial-controls button:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ============================================================
   SERVICE AREA
   ============================================================ */
.service-area { background: var(--cream); }
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
}
.area-copy ul {
  margin: 24px 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px;
}
.area-copy ul li {
  font-family: var(--serif);
  font-size: 16px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--rule);
  color: var(--ink-2);
  display: flex; justify-content: space-between; gap: 8px;
}
.area-copy ul li.featured { color: var(--clay-deep); font-weight: 600; }
.area-copy ul li .miles { font-family: var(--sans); font-size: 12px; color: var(--ink-2); letter-spacing: 0.04em; }

.area-map {
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--cream-2);
  border: 1px solid var(--rule);
}

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

/* ============================================================
   QUOTE FORM
   ============================================================ */
.quote { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.quote::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(181,71,31,0.18), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(47,74,51,0.25), transparent 50%);
  pointer-events: none;
}
.quote .container { position: relative; z-index: 1; }
.quote .eyebrow { color: var(--rust); }
.quote h2 { color: var(--cream); }
.quote .lede { color: rgba(244,236,221,0.7); }

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.quote-side h3 {
  font-size: 22px; color: var(--cream); margin-top: 32px; margin-bottom: 12px;
}
.quote-side .info-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(244,236,221,0.15);
}
.quote-side .info-block .lbl {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,236,221,0.55);
  margin-bottom: 6px;
}
.quote-side .info-block .val {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--cream);
}
.quote-side .info-block .val.big {
  font-size: 26px;
  color: var(--rust);
}

.form-card {
  background: var(--paper);
  color: var(--ink);
  padding: 40px;
  border-radius: 2px;
}
.form-step-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.form-progress {
  height: 3px;
  background: var(--rule);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.form-progress .bar {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: var(--clay);
  transition: width .35s cubic-bezier(.7,0,.3,1);
}
.form-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
}
.form-card .sub {
  color: var(--ink-2);
  margin-bottom: 24px;
  font-size: 15px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-2);
}
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 16px;
  padding: 12px 14px;
  background: var(--cream);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  color: var(--ink);
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(181,71,31,0.12);
}
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.choice {
  border: 1.5px solid var(--rule-strong);
  background: var(--cream);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 4px;
  text-align: left;
  border-radius: 2px;
  transition: all .2s ease;
}
.choice:hover { border-color: var(--ink); }
.choice.selected {
  border-color: var(--clay);
  background: rgba(181,71,31,0.08);
}
.choice .ttl { font-family: var(--serif); font-weight: 600; font-size: 16px; }
.choice .desc { font-size: 12.5px; color: var(--ink-2); }

.form-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.form-nav .err {
  color: var(--clay-deep); font-size: 13px; font-weight: 500;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success .icon {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  background: var(--moss);
  color: var(--paper);
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 32px;
}
.form-success h3 { font-size: 30px; margin-bottom: 12px; }
.form-success p { color: var(--ink-2); max-width: 36ch; margin: 0 auto; }

@media (max-width: 920px) {
  .quote-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-card { padding: 28px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   VAPI ASSISTANT
   ============================================================ */
.vapi-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  position: relative;
  overflow: hidden;
}
.vapi-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(181,71,31,0.06), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(47,74,51,0.08), transparent 40%);
  pointer-events: none;
}
.vapi-section .container { position: relative; z-index: 1; }

.vapi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 920px) {
  .vapi-grid { grid-template-columns: 1fr; }
}

.vapi-panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 24px 60px -32px rgba(31,26,20,0.18);
}
.vapi-panel-head { margin-bottom: 16px; }
.vapi-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay-deep);
  background: rgba(181,71,31,0.1);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.vapi-panel-head h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.vapi-panel-head p {
  color: var(--ink-2);
  font-size: 14px;
  max-width: 38ch;
}

/* ---- Call panel orb ---- */
.call-panel { align-items: center; text-align: center; }
.call-panel .vapi-panel-head { text-align: left; align-self: stretch; }

.vapi-orb {
  position: relative;
  width: 120px; height: 120px;
  display: grid; place-items: center;
  margin: 8px 0 4px;
}
.orb-rings {
  position: absolute; inset: 0;
  pointer-events: none;
}
.orb-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(181,71,31,0.25);
  opacity: 0;
}
.vapi-orb.state-connecting .orb-rings span,
.vapi-orb.state-active .orb-rings span {
  animation: ring 2.4s ease-out infinite;
}
.orb-rings span:nth-child(2) { animation-delay: 0.8s !important; }
.orb-rings span:nth-child(3) { animation-delay: 1.6s !important; }
@keyframes ring {
  0%   { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

.orb-btn {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: none;
  background: var(--clay);
  color: var(--paper);
  display: grid; place-items: center;
  box-shadow:
    inset 0 -4px 0 rgba(0,0,0,0.18),
    0 18px 32px -10px rgba(181,71,31,0.55);
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease;
  position: relative; z-index: 2;
}
.orb-btn:hover:not(:disabled) { transform: scale(1.04); background: var(--clay-deep); }
.orb-btn:disabled { opacity: 0.7; cursor: progress; }
.vapi-orb.state-active .orb-btn {
  background: var(--ink);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.3), 0 18px 32px -10px rgba(0,0,0,0.5);
}
.vapi-orb.state-active .orb-btn:hover { background: var(--clay-deep); }

.vapi-wave {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  height: 36px;
  margin: 12px 0 8px;
}
.vapi-wave span {
  width: 3px;
  background: var(--clay);
  border-radius: 2px;
  height: 8px;
  animation: wave 1.2s ease-in-out infinite;
}
@keyframes wave {
  0%, 100% { height: 6px; opacity: 0.4; }
  50%      { height: 32px; opacity: 1; }
}

.vapi-status {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-2);
  margin-top: 4px;
  min-height: 22px;
}
.vapi-status .dim { color: var(--ink-2); }
.vapi-status .live {
  color: var(--clay-deep);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.vapi-status .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clay);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.5; }
}
.vapi-status .err { color: var(--clay-deep); }

.vapi-actions {
  display: flex; gap: 8px;
  margin-top: 16px;
}
.btn-mini {
  background: transparent;
  border: 1px solid var(--rule-strong);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.btn-mini:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-mini.end { background: var(--clay); color: var(--paper); border-color: var(--clay); }
.btn-mini.end:hover { background: var(--clay-deep); border-color: var(--clay-deep); }

.vapi-message {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--clay);
  font-size: 13.5px;
  color: var(--ink-2);
  text-align: left;
  line-height: 1.5;
  border-radius: 2px;
  align-self: stretch;
}

.vapi-foot {
  margin-top: auto;
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-2);
}
.vapi-foot a {
  color: var(--clay-deep);
  font-weight: 600;
  text-decoration: none;
}
.vapi-foot a:hover { text-decoration: underline; }

/* ---- Chat panel ---- */
.chat-panel .chat-window {
  flex: 1;
  min-height: 320px;
  max-height: 380px;
  overflow-y: auto;
  padding: 16px;
  background: var(--cream);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  border-radius: 2px;
}
.chat-window::-webkit-scrollbar { width: 8px; }
.chat-window::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 4px; }

.bubble {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 85%;
}
.bubble.user {
  margin-left: auto;
  flex-direction: row-reverse;
}
.bubble-body {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.bubble.bot .bubble-body {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-bottom-left-radius: 4px;
}
.bubble.user .bubble-body {
  background: var(--ink);
  color: var(--cream);
  border-bottom-right-radius: 4px;
}
.bot-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  flex: none;
}

.bubble-body.typing {
  display: inline-flex; gap: 4px; align-items: center;
  min-width: 52px;
}
.bubble-body.typing span {
  width: 6px; height: 6px;
  background: var(--ink-2);
  border-radius: 50%;
  animation: typing 1s ease-in-out infinite;
}
.bubble-body.typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble-body.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-3px); }
}

.quick-replies {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.qr-btn {
  background: transparent;
  border: 1px solid var(--rule-strong);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
}
.qr-btn:hover {
  background: var(--clay);
  color: var(--paper);
  border-color: var(--clay);
}

.chat-input {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.chat-input input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--rule-strong);
  background: var(--cream);
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}
.chat-input input:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(181,71,31,0.12);
}
.chat-input button {
  background: var(--clay);
  color: var(--paper);
  border: none;
  width: 48px;
  display: grid; place-items: center;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s ease;
}
.chat-input button:hover:not(:disabled) { background: var(--clay-deep); }
.chat-input button:disabled { opacity: 0.4; cursor: not-allowed; }

.vapi-note {
  margin-top: 32px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.vapi-note .dot {
  width: 6px; height: 6px;
  background: var(--moss);
  border-radius: 50%;
  display: inline-block;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--paper); }
.faq-list {
  border-top: 1px solid var(--rule-strong);
}
.faq-item {
  border-bottom: 1px solid var(--rule-strong);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
}
.faq-q .plus {
  flex: none;
  width: 32px; height: 32px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  transition: background .2s ease, transform .25s ease;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute;
  background: var(--ink);
}
.faq-q .plus::before { width: 12px; height: 1.5px; }
.faq-q .plus::after  { height: 12px; width: 1.5px; transition: transform .25s ease; }
.faq-item.open .faq-q .plus { background: var(--ink); transform: rotate(180deg); }
.faq-item.open .faq-q .plus::before, .faq-item.open .faq-q .plus::after { background: var(--cream); }
.faq-item.open .faq-q .plus::after { transform: scaleY(0); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner {
  padding-bottom: 28px;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 70ch;
  line-height: 1.65;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244,236,221,0.12);
}
.footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(244,236,221,0.55);
  margin-bottom: 20px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  text-decoration: none;
  color: var(--cream);
  font-size: 15px;
}
.footer ul a:hover { color: var(--rust); }
.footer-brand .brand-mark { background: var(--clay); }
.footer-brand p {
  margin-top: 20px;
  color: rgba(244,236,221,0.7);
  font-size: 14.5px;
  max-width: 32ch;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(244,236,221,0.55);
}
.footer-bottom a { color: rgba(244,236,221,0.7); text-decoration: none; }
.license-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif);
  color: var(--rust);
}

@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ============================================================
   HERO ASSISTANT CARD + FLOATING ASSISTANT
   ============================================================ */
.hero-assistant-card {
  position: absolute;
  left: -28px; bottom: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  padding: 16px 20px 16px 16px;
  text-decoration: none;
  color: var(--ink);
  border-left: 3px solid var(--clay);
  box-shadow: 0 18px 40px -16px rgba(31,26,20,0.45);
  transition: transform .2s ease, box-shadow .2s ease;
  max-width: 320px;
}
.hero-assistant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px -16px rgba(31,26,20,0.55);
}
.hac-icon {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--paper);
  display: grid; place-items: center;
  flex: none;
}
.hac-pulse {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--clay);
  animation: hac-pulse 1.8s ease-out infinite;
}
@keyframes hac-pulse {
  0%   { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.hac-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hac-tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clay-deep);
}
.hac-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
}
.hac-sub {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.3;
}
.hac-arrow {
  width: 18px; height: 18px;
  flex: none;
  color: var(--ink-2);
  transition: transform .2s ease, color .2s ease;
}
.hero-assistant-card:hover .hac-arrow {
  transform: translateX(3px);
  color: var(--clay);
}

@media (max-width: 920px) {
  .hero-assistant-card { left: 16px; bottom: 16px; max-width: 280px; }
}

/* Hero CTA pulse dot */
.btn-pulse {
  position: relative;
  width: 8px; height: 8px;
  display: inline-block;
  margin-right: 4px;
}
.btn-pulse span {
  position: absolute; inset: 0;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  animation: btn-pulse 1.6s ease-out infinite;
}
@keyframes btn-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Floating action button */
.fab-assistant {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 16px 36px -12px rgba(0,0,0,0.5);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  transition: transform .2s ease, background .2s ease;
}
.fab-assistant:hover {
  transform: translateY(-2px);
  background: var(--clay);
}
.fab-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--paper);
  display: grid; place-items: center;
  flex: none;
  position: relative;
  z-index: 1;
}
.fab-assistant:hover .fab-icon { background: var(--paper); color: var(--clay); }
.fab-rings {
  position: absolute;
  left: 14px;
  top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  pointer-events: none;
  display: none;
}
.fab-assistant.pulse .fab-rings { display: block; }
.fab-rings span {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--clay);
  animation: fab-pulse 1.8s ease-out infinite;
  opacity: 0;
}
.fab-rings span:nth-child(2) { animation-delay: 0.9s; }
@keyframes fab-pulse {
  0%   { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.fab-label { white-space: nowrap; }
@media (max-width: 520px) {
  .fab-label { display: none; }
  .fab-assistant { padding: 8px; right: 16px; bottom: 16px; }
}

/* ---- Scroll fade-in ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Scrollbar polish ---- */
html { scroll-behavior: smooth; }
::selection { background: var(--clay); color: var(--paper); }
