/* ==========================================================================
   RIBAM Residential Contractor & Services — Design System
   Palette: warm off-black (brand) + signature amber-gold accent (brand)
   Type: Montserrat (display) / Raleway (body) — inherited from existing brand
   ========================================================================== */

:root {
  /* Brand tokens (extracted from ribamservices.com) */
  --ink: #140d0a;
  --ink-soft: #241a14;
  --paper: #faf6ef;
  --paper-dim: #f2ebde;
  --gold: #ffc527;
  --gold-deep: #b8860f;
  --amber-text: #7a5209; /* WCAG AA-safe amber for text on light backgrounds; --gold-deep is reserved for icons/borders/large-text only */
  --line: rgba(20, 13, 10, 0.12);
  --line-strong: rgba(20, 13, 10, 0.22);
  --muted: #6b5f54;
  --muted-on-dark: #cfc3b6;
  --white: #ffffff;

  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Raleway", "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 6px;
  --shadow-soft: 0 18px 40px -20px rgba(20, 13, 10, 0.35);
  --shadow-lift: 0 24px 60px -24px rgba(20, 13, 10, 0.45);

  --container: 1240px;
  --nav-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

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

@media (min-width: 768px) {
  .container { padding-inline: 40px; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-text);
  margin-bottom: 14px;
}

.section {
  padding-block: clamp(56px, 8vw, 108px);
}

.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.section--dark .muted { color: var(--muted-on-dark); }
.section--dark .eyebrow { color: var(--gold); }

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

.muted { color: var(--muted); }

.h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.h2 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); }
.h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 54ch;
}

.section--dark .lede { color: var(--muted-on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:active { transform: scale(0.97); }

.btn--gold {
  background: var(--gold);
  color: var(--ink);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn--ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(250, 246, 239, 0.4);
}
.btn--ghost-light:hover {
  border-color: var(--paper);
  transform: translateY(-2px);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost-dark:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(20, 13, 10, 0.0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(20, 13, 10, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 197, 39, 0.16);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.brand .brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.brand .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-top: 1px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-on-dark);
  position: relative;
  padding-block: 4px;
  transition: color 0.25s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--paper); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
}

.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 197, 39, 0.3);
  border-radius: var(--radius);
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--paper);
  margin-inline: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  position: fixed;
  top: var(--nav-height);
  inset-inline: 0;
  bottom: 0;
  background: rgba(20, 13, 10, 0.98);
  backdrop-filter: blur(10px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  gap: 26px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-panel a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--paper);
}
.mobile-panel .btn { align-self: flex-start; margin-top: 8px; }
.mobile-panel .mp-contact {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 197, 39, 0.16);
  font-size: 14px;
  color: var(--muted-on-dark);
  display: grid;
  gap: 6px;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-panel { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,13,10,0.96) 28%, rgba(20,13,10,0.55) 62%, rgba(20,13,10,0.25) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: 64px;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; align-items: end; padding-bottom: 96px; }
}

.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lede { color: var(--muted-on-dark); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(255, 197, 39, 0.2);
  padding-top: 24px;
}
.hero-stats dt {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  color: var(--gold);
}
.hero-stats dd {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted-on-dark);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: center;
  padding-block: 22px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.trust-item .ico {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--gold-deep);
}

/* ---------- Bento feature grid ---------- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 860px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(170px, auto);
  }
  .bento .b-1 { grid-column: span 4; grid-row: span 2; }
  .bento .b-2 { grid-column: span 2; grid-row: span 1; }
  .bento .b-3 { grid-column: span 2; grid-row: span 1; }
  .bento .b-4 { grid-column: span 3; grid-row: span 1; }
  .bento .b-5 { grid-column: span 3; grid-row: span 1; }
}

.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.bento-card.has-photo { color: var(--paper); border: none; min-height: 260px; }
.bento-card.has-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card.has-photo:hover img { transform: scale(1.05); }
.bento-card.has-photo::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,13,10,0.05) 30%, rgba(20,13,10,0.88) 100%);
}

.bento-card.tone-ink { background: var(--ink); color: var(--paper); border: none; }
.bento-card.tone-gold { background: var(--gold); color: var(--ink); border: none; }

.bento-card .ico {
  width: 30px; height: 30px;
  margin-bottom: 14px;
  color: var(--gold-deep);
}
.bento-card.has-photo .ico,
.bento-card.tone-ink .ico { color: var(--gold); }
.bento-card.tone-gold .ico { color: var(--ink); }

.bento-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.bento-card p { margin: 0; font-size: 14px; line-height: 1.55; }
.bento-card.has-photo p, .bento-card.tone-ink p { color: var(--muted-on-dark); }
.bento-card.tone-gold p { color: rgba(20,13,10,0.75); }

/* ---------- Split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split.reverse .split-media { order: 2; }
}
.split-media { position: relative; }
.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.split-media .badge-float {
  position: absolute;
  bottom: -22px; left: -22px;
  background: var(--gold);
  color: var(--ink);
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  font-family: var(--font-display);
}
.split-media .badge-float strong { display: block; font-size: 1.7rem; }
.split-media .badge-float span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

.split-copy h2 { margin-bottom: 18px; }
.split-copy .lede { margin-bottom: 26px; }

.check-list { display: grid; gap: 14px; margin-bottom: 30px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check-list .ico { width: 20px; height: 20px; flex-shrink: 0; color: var(--amber-text); margin-top: 2px; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 860px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
}
.process-item {
  padding: 28px 24px 28px 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 860px) {
  .process-item { border-top: none; border-left: 1px solid var(--line); padding: 4px 24px; }
  .process-item:first-child { border-left: none; padding-left: 0; }
}
.process-item .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--line-strong);
  display: block;
  margin-bottom: 12px;
}
.process-item h3 { margin-bottom: 8px; }
.process-item p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quote-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 780px) {
  .quote-row { grid-template-columns: repeat(3, 1fr); }
}
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote-card .stars { color: var(--gold-deep); font-size: 14px; letter-spacing: 2px; }
.quote-card p.quote-text {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 0;
}
.quote-attr { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-attr .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--paper-dim);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-deep);
  border: 1px solid var(--line);
}
.quote-attr strong { display: block; font-size: 14px; }
.quote-attr span { font-size: 12px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  display: grid;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 860px) {
  .cta-band { grid-template-columns: 1.4fr 0.6fr; }
}
.cta-band h2 { color: var(--paper); margin-bottom: 12px; }
.cta-band .lede, .cta-band p { color: var(--muted-on-dark); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 860px) { .cta-band .actions { justify-content: flex-end; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-on-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-block: 64px 40px;
}
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 32px; }
}
.footer-brand .brand { color: var(--paper); margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; font-size: 14px; }
.footer-col .footer-h {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: 14px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 197, 39, 0.14);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12.5px;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding-top: calc(var(--nav-height) + 56px);
  padding-bottom: 56px;
}
.page-hero .lede { color: var(--muted-on-dark); margin-top: 16px; }
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted-on-dark);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Service detail rows ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .service-block { grid-template-columns: 0.9fr 1.3fr 0.9fr; gap: 40px; align-items: start; }
}
.service-block:first-of-type { border-top: none; }
.service-block .tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--gold-deep);
}
.service-block h3 { margin: 10px 0 0; }
.service-block .desc p { color: var(--muted); margin: 0 0 14px; }
.service-block .meta { display: grid; gap: 10px; align-content: start; }
.service-block .meta-row {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 13px; padding-block: 8px; border-bottom: 1px solid var(--line);
}
.service-block .meta-row span:first-child { color: var(--muted); }
.service-block .meta-row span:last-child { font-weight: 600; }

/* ---------- Gallery ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--white);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.chip.is-active, .chip:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery-item:nth-child(5n+1) { aspect-ratio: 4 / 5; }
@media (min-width: 700px) {
  .gallery-item:nth-child(6n+2) { grid-row: span 2; aspect-ratio: 4/8.4; }
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .tag-overlay {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(20,13,10,0.78);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
}

/* ---------- Areas ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 700px) { .area-grid { grid-template-columns: repeat(4, 1fr); } }
.area-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--white);
}
.area-card .ico { width: 22px; height: 22px; color: var(--gold-deep); margin-bottom: 12px; }
.area-card h3 { font-size: 1rem; margin-bottom: 4px; }
.area-card span { font-size: 12.5px; color: var(--muted); }

/* ---------- FAQ / Accordion ---------- */
.accordion { display: grid; gap: 0; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item:first-child { border-top: 1px solid var(--line); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.accordion-trigger .plus {
  width: 22px; height: 22px; flex-shrink: 0; position: relative;
}
.accordion-trigger .plus::before, .accordion-trigger .plus::after {
  content: ""; position: absolute; background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.accordion-trigger .plus::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.accordion-trigger .plus::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.accordion-item[data-open="true"] .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.accordion-item[data-open="true"] .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel > p { min-height: 0; margin: 0 0 22px; color: var(--muted); max-width: 62ch; font-size: 14.5px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.field .req { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 14.5px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(184, 134, 15, 0.18);
}
.field .hint { font-size: 12px; color: var(--muted); }
.field .error {
  font-size: 12.5px;
  color: #9a2b1f;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #9a2b1f; }
.field.has-error .error { display: block; }

.form-status {
  display: none;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-status.is-success { display: block; background: rgba(46, 125, 50, 0.12); color: #1b5e20; border: 1px solid rgba(46, 125, 50, 0.3); }
.form-status.is-error { display: block; background: rgba(154, 43, 31, 0.1); color: #9a2b1f; border: 1px solid rgba(154, 43, 31, 0.3); }

/* ---------- Contact info cards ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--white);
}
.info-card .ico { width: 24px; height: 24px; color: var(--gold-deep); margin-bottom: 14px; }
.info-card h3 { font-size: 15px; margin-bottom: 8px; }
.info-card p { margin: 0; font-size: 14px; color: var(--muted); }
.info-card a { color: var(--ink); font-weight: 600; }
.info-card a:hover { color: var(--gold-deep); }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/9;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  padding: 40px 24px;
}
.error-page .code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 8rem);
  color: var(--gold);
  line-height: 1;
}

/* ---------- Reveal utility (JS hooks) ---------- */
[data-reveal] { opacity: 0; }
.js-no-motion [data-reveal] { opacity: 1; }

/* ---------- Screen-reader-only utility (keeps heading hierarchy intact without changing visual design) ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}
