/* ============================================================
   Britt Broadcast — Components
   Requires tokens.css. Plain CSS, no framework needed.
   ============================================================ */

/* ---------- Base ---------- */
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-heading);
  line-height: var(--leading-tight);
  margin: 0;
}
p { margin: 0; }
a { color: var(--color-primary-text); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.section { padding: var(--space-9) 0; }
.section-dark {
  background: var(--surface-dark);
  color: var(--text-on-dark-muted);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-tint { background: var(--color-primary-tint); }

/* --color-primary-text (green-700) is AA-safe on light surfaces but too dark
   on black — restore the brighter green-600 for plain links here,
   where it already passes AA (5.76:1). */
.section-dark a:not(.btn), .hero a:not(.btn) { color: var(--color-primary); }
.section-dark a:not(.btn):hover, .hero a:not(.btn):hover { color: #fff; }

/* Lead line under a section heading — carries the promise the heading names. */
.lede {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--text-heading);
  max-width: 34ch;
  text-wrap: balance;
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-nav);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease,
              border-color var(--duration-fast) ease, transform var(--duration-fast) ease;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn svg, .btn .lucide { width: 16px; height: 16px; }

.btn-primary {
  background: var(--color-primary-hover);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-active); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-heading);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
  background: var(--color-primary-tint);
}

/* Outline variant for dark sections */
.section-dark .btn-outline, .hero .btn-outline, .btn-outline.on-dark {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text-on-dark);
}
.section-dark .btn-outline:hover, .hero .btn-outline:hover, .btn-outline.on-dark:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(35, 157, 72, 0.08);
}

.btn-sm { padding: 10px 20px; font-size: var(--text-sm); }

/* ---------- Card (service) ---------- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--gray-300);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--color-primary-tint);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.card-icon svg, .card-icon .lucide { width: 22px; height: 22px; }
.card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.card p { font-size: var(--text-sm); color: var(--text-muted); }

/* ---------- ProjectCard (case study) ---------- */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.project-card-media {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    135deg,
    var(--color-primary-tint) 0 12px,
    var(--off-white) 12px 24px
  );
  border-bottom: 1px solid var(--border);
}
.project-card-media span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.project-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
}
.project-card h3 { font-size: var(--text-xl); font-weight: 600; }
.project-card-client { font-size: var(--text-sm); color: var(--text-muted); }
.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-heading);
}
.project-card:hover .project-card-link { color: var(--color-primary); }
.project-card-link svg, .project-card-link .lucide {
  width: 15px; height: 15px;
  transition: transform var(--duration-fast) ease;
}
.project-card:hover .project-card-link svg,
.project-card:hover .project-card-link .lucide { transform: translateX(3px); }

/* ---------- TopBar ---------- */
.topbar {
  background: var(--surface-dark);
  color: var(--text-on-dark-muted);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 40px;
}
.topbar-info {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-width: 0;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--text-on-dark-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.topbar-item:hover { color: var(--text-on-dark); }
.topbar-item svg { width: 14px; height: 14px; color: var(--color-primary); flex-shrink: 0; }
.topbar-social { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark-muted);
  transition: color var(--duration-fast) ease;
}
.topbar-social a:hover { color: var(--color-primary); }
.topbar-social svg { width: 15px; height: 15px; }

@media (max-width: 820px) {
  .topbar-social, .topbar-address { display: none; }
}

/* ---------- NavBar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 72px;
}
.navbar-logo img { height: 40px; display: block; }
.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-links a {
  font-family: var(--font-nav);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-body);
  transition: color var(--duration-fast) ease;
}
.navbar-links a:hover { color: var(--color-primary); }
.navbar-cta { display: flex; align-items: center; gap: var(--space-4); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-card);
  color: var(--text-heading);
  cursor: pointer;
}
.navbar-mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5) var(--space-5);
  border-top: 1px solid var(--border);
  background: #fff;
}
.navbar-mobile a {
  font-family: var(--font-nav);
  padding: var(--space-3) 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-body);
}
.navbar-mobile a:hover { color: var(--color-primary); }
.navbar.is-open .navbar-mobile { display: flex; }

@media (max-width: 820px) {
  .navbar-links, .navbar-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--surface-dark);
  color: var(--text-on-dark-muted);
  overflow: hidden;
  padding: var(--space-9) 0 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding-bottom: var(--space-8);
}
.hero h1 {
  font-size: clamp(var(--text-3xl), 5.4vw, var(--text-5xl));
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.8);
}
.hero h1 em {
  font-style: normal;
  color: var(--color-primary);
}
.hero-sub {
  font-size: var(--text-lg);
  max-width: 560px;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

.hero-watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-watermark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 42%;
  filter: saturate(1.1) brightness(1.05);
}
.hero-watermark::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(5, 7, 7, 0.85) 0%, rgba(5, 7, 7, 0.55) 24%, rgba(5, 7, 7, 0.22) 45%, rgba(5, 7, 7, 0.05) 65%, rgba(5, 7, 7, 0.2) 100%),
    linear-gradient(180deg, rgba(5, 7, 7, 0) 0%, rgba(5, 7, 7, 0.45) 100%);
}

/* Animated waveform strip */
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 72px;
  padding: 0 var(--space-5);
  border-top: 1px solid var(--border-on-dark);
}
.waveform i {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: var(--color-primary);
  opacity: 0.75;
  transform-origin: bottom;
  animation: waveform-bar 1.4s ease-in-out infinite alternate;
}
@keyframes waveform-bar {
  from { transform: scaleY(0.25); opacity: 0.35; }
  to   { transform: scaleY(1);    opacity: 0.85; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--surface-dark);
  color: var(--text-on-dark-muted);
  padding: var(--space-8) 0 var(--space-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--border-on-dark);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}
.footer-logo img {
  height: 44px;
  display: block;
  /* White-out for dark surfaces — the only approved logo alteration */
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-4);
}
.footer p { font-size: var(--text-sm); max-width: 340px; }
.footer h3 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: var(--space-4);
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer ul a, .footer address a {
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
  transition: color var(--duration-fast) ease;
}
.footer ul a:hover, .footer address a:hover { color: var(--color-primary); }
.footer address {
  font-style: normal;
  font-size: var(--text-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer address .row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.footer address .lucide, .footer address svg {
  width: 16px; height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: var(--text-xs);
}
.footer-bottom .energy { color: var(--color-primary); font-weight: 500; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .waveform i { animation: none; }
}

/* ============================================================
   Utilities — replace the one-off inline `style="..."` values
   that used to be scattered across every page.
   ============================================================ */

/* ---------- Layout ---------- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.grid { display: grid; }
.grid-160 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.grid-180 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid-200 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-300-fill { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-320 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-7 { gap: var(--space-7); }

.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

.max-w-460 { max-width: 460px; }
.max-w-480 { max-width: 480px; }
.max-w-560 { max-width: 560px; }
.max-w-620 { max-width: 620px; }
.max-w-640 { max-width: 640px; }

/* ---------- Typography ---------- */
.heading-4xl { font-size: var(--text-4xl); font-weight: 700; }
.heading-3xl { font-size: var(--text-3xl); font-weight: 700; }
.heading-2xl { font-size: var(--text-2xl); font-weight: 700; }
.heading-xl { font-size: var(--text-xl); font-weight: 600; }
.heading-lg { font-size: var(--text-lg); font-weight: 600; }
.heading-base { font-size: var(--text-base); font-weight: 600; }
.heading-sm { font-size: var(--text-sm); font-weight: 600; }
.hero-title-clamp { font-size: clamp(var(--text-3xl), 4.5vw, var(--text-4xl)); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-muted { color: var(--text-muted); }
.text-error { font-size: var(--text-xs); color: #B3261E; }

.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 {
  position: absolute;
  top: -48px;
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-3) var(--space-5);
  background: var(--color-primary-hover);
  color: #fff;
  font-family: var(--font-nav);
  font-weight: 700;
  border-radius: var(--radius);
  transition: top var(--duration-fast) ease;
}
.skip-link:focus {
  top: var(--space-4);
}

/* ---------- Sector / stat tiles ---------- */
.sector-card {
  background: var(--surface-dark-raised);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.sector-card-icon { color: var(--color-primary); width: 22px; height: 22px; }
.sector-card h3 { font-size: var(--text-lg); font-weight: 600; margin: var(--space-3) 0 var(--space-2); }
.sector-card p { font-size: var(--text-sm); }

.sector-tile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.sector-tile svg { color: var(--color-primary); width: 20px; height: 20px; flex-shrink: 0; }
.sector-tile span { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--text-heading); }

.stat-number { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 700; color: var(--color-primary); }
.stat-label { font-size: var(--text-sm); margin-top: var(--space-2); }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: var(--space-3);
}
.partner-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) ease, border-color var(--duration-base) ease;
}
.partner-tile:hover { box-shadow: var(--shadow-lift); border-color: var(--gray-300); }
.partner-tile img {
  display: block;
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter var(--duration-base) ease, opacity var(--duration-base) ease;
}
.partner-tile:hover img { filter: grayscale(0); opacity: 1; }
.partner-tile span {
  display: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-heading);
  text-align: center;
}
.partner-tile:has(> span:only-child) span { display: block; }

.check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-body); }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.check-list svg { color: var(--green-700); width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.check-list.on-dark svg { color: var(--color-primary); }

/* ---------- Media placeholder (photo slot + fallback label) ---------- */
.media-placeholder {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, var(--color-primary-tint) 0 12px, var(--off-white) 12px 24px);
}
.media-placeholder.on-dark {
  border-color: var(--border-on-dark);
  background: var(--surface-dark-raised);
}
.media-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-placeholder span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding: var(--space-3);
  text-align: center;
}
.media-placeholder.on-dark span { color: var(--text-on-dark-muted); }
.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-4-3 { aspect-ratio: 4 / 3; }

/* ---------- Project photo gallery + lightbox ---------- */
.project-gallery { display: flex; flex-direction: column; gap: var(--space-3); }
.project-gallery-item { display: block; padding: 0; border: none; background: none; cursor: zoom-in; width: 100%; }
.project-gallery-item .media-placeholder { transition: opacity var(--duration-fast) ease; }
.project-gallery-item:hover .media-placeholder { opacity: 0.85; }
.project-gallery-thumbs { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.project-gallery-thumbs .project-gallery-item { width: 84px; flex-shrink: 0; }
.project-gallery-thumbs .media-placeholder { border-radius: var(--radius); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 7, 0.92);
  padding: var(--space-6);
  box-sizing: border-box;
}
.lightbox-stage { display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; }
.lightbox-stage img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-on-dark);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  cursor: pointer;
  transition: border-color var(--duration-fast) ease, color var(--duration-fast) ease, background var(--duration-fast) ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { border-color: var(--color-primary); color: var(--color-primary); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }
.lightbox-close { top: var(--space-5); right: var(--space-5); }
.lightbox-prev { left: var(--space-5); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-5); top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-on-dark-muted);
}
@media (max-width: 640px) {
  .lightbox { padding: var(--space-4); }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
  .lightbox-close { top: var(--space-3); right: var(--space-3); }
  .lightbox-prev { left: var(--space-3); }
  .lightbox-next { right: var(--space-3); }
}

/* ---------- Footer (full-width container + divider) ---------- */
.footer-container-full {
  width: 100%;
  max-width: none;
  padding: 0 var(--space-6);
  box-sizing: border-box;
}
.footer-divider {
  border-top: 1px solid var(--border-on-dark);
  padding-top: var(--space-5);
}

/* ---------- Form ---------- */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--text-heading); }
.form-label .optional { font-weight: 400; color: var(--text-muted); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-heading);
  background: var(--white);
}
.form-textarea { resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--green-50);
}
.form-success {
  background: var(--color-primary-tint);
  border: 1px solid var(--green-600);
  border-radius: var(--radius);
  padding: var(--space-5);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.form-success svg { width: 20px; height: 20px; color: var(--green-700); flex-shrink: 0; margin-top: 2px; }
.form-success-title { font-family: var(--font-display); font-weight: 600; color: var(--text-heading); margin-bottom: 4px; }
.form-success-body { font-size: var(--text-sm); color: var(--text-body); }

.contact-address { font-style: normal; display: flex; flex-direction: column; gap: var(--space-3); font-size: var(--text-sm); color: var(--text-body); }
.contact-address .row { display: flex; gap: var(--space-3); align-items: flex-start; }
.contact-address svg { width: 16px; height: 16px; color: var(--green-700); flex-shrink: 0; margin-top: 2px; }
.contact-address a { color: var(--green-700); }

/* ---------- Projects filter/detail view ---------- */
.project-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.project-card-btn { text-align: left; cursor: pointer; padding: 0; font: inherit; }
.project-detail-scope { margin: 0 0 var(--space-6); padding: 0; }

/* ---------- Floating widgets (WhatsApp chat + back-to-top) ---------- */
.wa-widget {
  position: fixed;
  left: var(--space-5);
  bottom: var(--space-7);
  z-index: 100;
}
.wa-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #25D366;
  color: #fff;
  box-shadow: var(--shadow-lift);
  cursor: pointer;
  transition: transform var(--duration-fast) ease;
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 32px; height: 32px; }

.wa-popup {
  position: absolute;
  left: 0;
  bottom: calc(100% + var(--space-3));
  width: 300px;
  max-width: calc(100vw - var(--space-6));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--surface-dark-raised);
}
.wa-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  background: #25D366;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
}
.wa-popup-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  cursor: pointer;
}
.wa-popup-close svg { width: 15px; height: 15px; }
.wa-popup-body { padding: var(--space-5) var(--space-4) var(--space-3); }
.wa-bubble {
  position: relative;
  background: var(--gray-900);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
}
.wa-bubble p { margin-bottom: 2px; }
.wa-bubble p:last-child { margin-bottom: 0; }
.wa-bubble::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -8px;
  border-width: 8px 8px 0 0;
  border-style: solid;
  border-color: var(--gray-900) transparent transparent transparent;
}
.wa-popup-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-3) var(--space-4) var(--space-4);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: #25D366;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
}
.wa-popup-cta:hover { background: #1EBE5A; color: #fff; }
.wa-popup-cta svg { width: 18px; height: 18px; }

.back-to-top {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-7);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-card);
  color: var(--text-heading);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { border-color: var(--color-primary); color: var(--color-primary); }
.back-to-top svg { width: 20px; height: 20px; }

@media (max-width: 480px) {
  .wa-widget { left: var(--space-4); }
  .back-to-top { right: var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}
