/* ============================================================
   RJ ELECTRICAL TECHNOLOGIES, INC. — Site Stylesheet
   Design system: "The Panel Schedule"
   Palette: Panel Steel / Copper / Paper / Signal Amber
   Type: Archivo (display) · Public Sans (body) · IBM Plex Mono (labels)
   ============================================================ */

:root {
  /* Brand palette matched to Ramon's business card: near-black, yellow, white.
     Variable names kept from v1 (copper) to avoid touching every rule. */
  --steel-900: #131313;
  --steel-800: #1D1D1D;
  --steel-700: #2A2A2A;
  --steel-200: #CFCFCB;
  --paper: #F7F5EF;
  --paper-dim: #EFECE3;
  --copper: #EFC819;         /* brand yellow */
  --copper-bright: #F7D625;  /* brand yellow, brighter (on dark) */
  --copper-dark: #97800C;    /* dark gold — yellow-family accent readable on light bg */
  --signal: #F7D625;
  --ink: #1C1C1A;
  --slate: #5D5D57;
  --line: rgba(28, 28, 26, 0.14);
  --line-light: rgba(247, 245, 239, 0.16);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max-w: 1160px;
  --radius: 6px;
  --shadow: 0 14px 40px rgba(20, 27, 36, 0.16);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--copper-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

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

/* ---------- Type scale ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--copper);
}
.on-dark .eyebrow { color: var(--copper-bright); }

.lead { font-size: 1.16rem; color: var(--slate); max-width: 62ch; }
.on-dark .lead { color: var(--steel-200); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-copper { background: var(--copper); color: var(--steel-900); }
.btn-copper:hover { background: var(--copper-bright); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn-ghost { border-color: var(--paper); color: var(--paper); }
.on-dark .btn-ghost:hover { background: var(--paper); color: var(--steel-900); }

/* ---------- Emergency / call strip ---------- */
.call-strip {
  background: var(--signal);
  color: var(--steel-900);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 8px 16px;
}
.call-strip a { color: var(--steel-900); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(20, 27, 36, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  /* Styled after the business card mark: black rounded square,
     white outline, yellow RJ. Swap for the real logo file when provided. */
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #0C0C0C;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--copper-bright);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-text { line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--paper);
  letter-spacing: 0.01em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-bright);
}
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--steel-200);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; border-color: var(--copper); }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--copper);
  color: var(--steel-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.15s ease;
}
.header-call:hover { background: var(--copper-bright); }
.header-call svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  color: var(--paper);
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}

@media (max-width: 880px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--steel-900);
    border-bottom: 1px solid var(--line-light);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 15px 24px; border-bottom: 1px solid var(--line-light); }
  .nav-toggle { display: block; }
  .header-call span.call-label { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(239, 200, 25, 0.14), transparent 60%),
    linear-gradient(180deg, var(--steel-900) 0%, var(--steel-800) 100%);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}
.hero::after { /* faint schematic grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(247,244,238,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,244,238,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 84px 24px 92px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero h1 { color: #fff; margin: 0 0 20px; }
.hero h1 .accent { color: var(--copper-bright); }
.hero-license {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--steel-200);
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--copper);
  padding: 10px 16px;
  border-radius: 4px;
  margin-bottom: 26px;
  background: rgba(247, 244, 238, 0.04);
}
.hero-license strong { color: var(--signal); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--steel-200); letter-spacing: 0.05em; }

.hero-photo {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-light);
  aspect-ratio: 4 / 5;
  background: var(--steel-700);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px 64px; gap: 36px; }
  .hero-photo { aspect-ratio: 16 / 10; }
}

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--steel-900); border-top: 1px solid var(--line-light); }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-w);
  margin: 0 auto;
}
.trust-item {
  padding: 22px 20px;
  border-left: 1px solid var(--line-light);
  text-align: center;
}
.trust-item:first-child { border-left: none; }
.trust-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--copper-bright);
  line-height: 1;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-200);
  margin-top: 7px;
}
@media (max-width: 700px) {
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: none; }
  .trust-item { border-top: 1px solid var(--line-light); }
  .trust-item:nth-child(-n+2) { border-top: none; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-dark { background: var(--steel-900); color: var(--paper); }
.section-dim { background: var(--paper-dim); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 14px; }
.on-dark h2, .section-dark h2 { color: #fff; }

/* ---------- Circuit directory (services) — signature element ---------- */
.circuit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.circuit {
  background: var(--paper);
  padding: 26px 24px 28px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: background 0.18s ease;
  display: block;
}
.circuit:hover { background: #fff; }
.circuit-id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.circuit-id .breaker {
  width: 26px; height: 12px;
  border-radius: 3px;
  background: var(--steel-200);
  position: relative;
  transition: background 0.18s ease;
}
.circuit-id .breaker::after {
  content: "";
  position: absolute;
  top: 2px; bottom: 2px; left: 3px;
  width: 9px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform 0.18s ease;
}
.circuit:hover .breaker { background: var(--copper); }
.circuit:hover .breaker::after { transform: translateX(11px); }
.circuit h3 { margin-bottom: 8px; }
.circuit p { font-size: 0.95rem; color: var(--slate); line-height: 1.55; }
@media (max-width: 900px) { .circuit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .circuit-grid { grid-template-columns: 1fr; } }

/* ---------- Feature split (EV) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-photo {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--steel-700);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow);
}
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split ul { list-style: none; margin: 22px 0 30px; }
.split li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--line-light);
  font-size: 1rem;
}
.split li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 14px; height: 2px;
  background: var(--copper-bright);
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Reviews ---------- */
.review-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.review-summary .stars { color: var(--signal); font-size: 1.35rem; letter-spacing: 3px; }
.review-summary .score { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.review-summary .count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--slate); letter-spacing: 0.05em; }

.review-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(360px, 82vw);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--copper) transparent;
}
.review-card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
  border-radius: 8px;
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
}
.review-card .stars { color: var(--signal); letter-spacing: 2px; margin-bottom: 12px; }
.review-card blockquote { font-size: 0.98rem; line-height: 1.6; color: var(--ink); flex: 1; }
.review-meta {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--slate);
}
.review-meta strong { color: var(--ink); font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border: none;
  padding: 0;
  background: var(--steel-700);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  position: relative;
  display: block;
  width: 100%;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(20, 27, 36, 0.85));
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: left;
}
@media (max-width: 880px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 27, 36, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 32px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1000px, 92vw); max-height: 84vh; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 22px; right: 26px;
  background: none;
  border: 1px solid var(--line-light);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 10px 16px;
  border-radius: var(--radius);
  cursor: pointer;
}
.lightbox-cap {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  color: var(--steel-200);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-align: center;
  max-width: 90vw;
}

/* ---------- Service area ---------- */
.area-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.area-list { list-style: none; columns: 2; gap: 32px; margin-top: 18px; }
.area-list li {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  padding: 8px 0 8px 22px;
  position: relative;
  break-inside: avoid;
  color: var(--steel-200);
}
.area-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--copper-bright);
}
.area-map {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  aspect-ratio: 4 / 3;
  background: var(--steel-700);
}
.area-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 820px) { .area-panel { grid-template-columns: 1fr; } .area-list { columns: 2; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #E5BD0F, var(--copper-bright));
  color: var(--steel-900);
  padding: 70px 0;
  text-align: center;
}
.cta-band h2 { color: var(--steel-900); margin-bottom: 12px; }
.cta-band p { max-width: 56ch; margin: 0 auto 28px; opacity: 0.85; }
.cta-band .btn-ghost { border-color: var(--steel-900); color: var(--steel-900); }
.cta-band .btn-ghost:hover { background: var(--steel-900); color: var(--copper-bright); }
.cta-band .btn-copper { background: var(--steel-900); color: var(--copper-bright); }
.cta-band .btn-copper:hover { background: var(--steel-800); }
.cta-band :focus-visible { outline-color: var(--steel-900); }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 7px;
}
input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
}
input:focus, textarea:focus, select:focus { border-color: var(--copper); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--slate); margin-top: 14px; }
.form-status {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 12px 16px;
  border-radius: var(--radius);
  display: none;
}
.form-status.ok { display: block; background: #E8F3E4; color: #2C5E22; border: 1px solid #BFDCB4; }
.form-status.err { display: block; background: #F9E8E4; color: #8C3B24; border: 1px solid #E5C0B2; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Contact info panel ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.info-block { border-left: 3px solid var(--copper); padding-left: 20px; margin-bottom: 28px; }
.info-block h3 { margin-bottom: 6px; font-size: 1.05rem; }
.info-block p, .info-block a { color: var(--slate); font-size: 0.98rem; text-decoration: none; }
.info-block a:hover { color: var(--copper-dark); text-decoration: underline; }
.pay-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pay-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 10px;
  color: var(--slate);
  background: #fff;
}
.pay-tags img { height: 18px; width: auto; display: block; }

/* Footer payment logos */
.pay-logos { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.pay-logos img { height: 21px; width: auto; display: block; border-radius: 3px; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.about-photo {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--steel-700);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.spec-sheet {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-top: 1px solid var(--line);
}
.spec-row:first-child { border-top: none; }
.spec-row dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--paper-dim);
  padding: 14px 18px;
}
.spec-row dd { padding: 14px 18px; font-size: 0.97rem; }
@media (max-width: 820px) {
  .about-layout { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; }
  .spec-row dd { padding-top: 4px; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--steel-900), var(--steel-800));
  color: var(--paper);
  padding: 64px 0 58px;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-hero .lead { margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--steel-900);
  color: var(--steel-200);
  padding: 60px 0 0;
  border-top: 3px solid var(--copper);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-bright);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--steel-200); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-license {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  line-height: 1.8;
}
.footer-bottom {
  border-top: 1px solid var(--line-light);
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--slate);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Floating mobile call button ---------- */
.float-call {
  display: none;
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 70;
  background: var(--copper);
  color: var(--steel-900);
  border-radius: 999px;
  padding: 15px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(20, 27, 36, 0.35);
  align-items: center;
  gap: 9px;
}
@media (max-width: 880px) { .float-call { display: inline-flex; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Placeholder styling (remove when real photos added) ---------- */
.ph {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(247,244,238,0.05) 0 12px, transparent 12px 24px),
    var(--steel-700);
  color: var(--steel-200);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 20px;
  text-transform: uppercase;
}

/* Review spotlight — injected by main.js above the CTA band on subpages;
   shows one random top review (data from js/reviews-data.js). */
.review-spotlight {
  background: var(--paper-dim);
  border-top: 1px solid rgba(19, 19, 19, 0.08);
}
.review-spotlight .wrap {
  max-width: 840px;
  padding: 60px 24px 64px;
  text-align: center;
}
.review-spotlight .spot-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-dark);
  margin-bottom: 14px;
}
.review-spotlight .spot-stars {
  color: var(--copper-dark);
  font-size: 1.3rem;
  letter-spacing: 4px;
  margin-bottom: 14px;
}
.review-spotlight blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.35;
  margin: 0 0 16px;
}
.review-spotlight .spot-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--slate);
}
.review-spotlight .spot-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--copper-dark);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.review-spotlight .spot-link:hover { color: var(--ink); }

/* ---------- Gallery v2: filters, stagger, hover, lightbox nav ---------- */

/* Filter chips */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 9px 16px;
  border: 1px solid rgba(19, 19, 19, 0.25);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.is-active {
  background: var(--ink);
  color: var(--copper-bright);
  border-color: var(--ink);
}

/* Staggered rise-in for tiles (composes with the .reveal system) */
.gallery-grid.reveal .gallery-item {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.gallery-grid.reveal.in .gallery-item { opacity: 1; transform: none; }
.gallery-grid.reveal.in .gallery-item:nth-child(1) { transition-delay: 0.05s; }
.gallery-grid.reveal.in .gallery-item:nth-child(2) { transition-delay: 0.12s; }
.gallery-grid.reveal.in .gallery-item:nth-child(3) { transition-delay: 0.19s; }
.gallery-grid.reveal.in .gallery-item:nth-child(4) { transition-delay: 0.26s; }
.gallery-grid.reveal.in .gallery-item:nth-child(5) { transition-delay: 0.33s; }
.gallery-grid.reveal.in .gallery-item:nth-child(6) { transition-delay: 0.40s; }
.gallery-grid.reveal.in .gallery-item:nth-child(7) { transition-delay: 0.47s; }
.gallery-grid.reveal.in .gallery-item:nth-child(8) { transition-delay: 0.54s; }
.gallery-grid.reveal.in .gallery-item:nth-child(9) { transition-delay: 0.61s; }

/* Hover: deeper zoom, caption lift, copper energize line */
.gallery-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 2;
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { transform: scaleX(1); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .gallery-caption { transition: transform 0.35s ease, background 0.35s ease; }
.gallery-item:hover .gallery-caption { transform: translateY(-3px); }
.gallery-item:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

/* Filtering out/in */
.gallery-item { transition: opacity 0.28s ease, transform 0.28s ease; }
.gallery-item.is-filtered { opacity: 0; transform: scale(0.9); pointer-events: none; }

/* Scroll-driven drift on tile images (progressive enhancement —
   Chrome/Edge only; everyone else just gets the normal grid) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .gallery-grid .gallery-item img {
      animation: tile-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
  }
}
/* uses the standalone scale/translate properties so it composes with the
   hover zoom (which lives on transform) instead of overriding it */
@keyframes tile-drift {
  from { scale: 1.14; translate: 0 3%; }
  to { scale: 1; translate: 0 0; }
}

/* Lightbox v2: fade/zoom open, arrows, counter */
.lightbox {
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
}
.lightbox.open { opacity: 0; }
.lightbox.shown { opacity: 1; }
.lightbox img {
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.lightbox.shown img { transform: scale(1); opacity: 1; }
.lightbox img.is-swapping { opacity: 0; transform: scale(0.98); transition-duration: 0.15s; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(19, 19, 19, 0.55);
  border: 1px solid var(--line-light);
  color: var(--paper);
  font-size: 1.3rem;
  line-height: 1;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, border-color 0.25s ease;
  z-index: 2;
}
.lightbox-nav:hover { background: var(--copper); color: var(--steel-900); border-color: var(--copper); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-count {
  position: absolute;
  top: 30px; left: 50%;
  transform: translateX(-50%);
  color: var(--steel-200);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}
@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}
