/* ============================================================
   Medina Masonry — v4 "site & work" brutalist theme
   Black canvas, white type, signal red. Hard edges, heavy
   condensed headlines, visible rules. Tricolor ribbon = the
   heritage detail. (v3 "trade-luxe" is archived in themes/.)
   ============================================================ */

:root {
  --bg: #0d0d0d;
  --bg-alt: #131313;
  --card: #171717;
  --card-hover: #1d1d1d;
  --white: #f5f5f2;
  --dim: rgba(245, 245, 242, 0.64);
  --faint: rgba(245, 245, 242, 0.38);
  --rule: rgba(245, 245, 242, 0.22);
  --rule-strong: rgba(245, 245, 242, 0.45);
  --red: #e5312b;
  --red-deep: #b3241f;
  --verde: #2f7d5e;
  --ink-on-red: #fff;
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1200px;
  --header-h: 74px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.21, 1);
}

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

html { scroll-behavior: smooth; scrollbar-color: #2a2a2a #0d0d0d; }

@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(--white);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* film grain — concrete texture */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--white); }
a:hover { color: var(--red); }

::selection { background: var(--red); color: var(--ink-on-red); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3a3a; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- scroll reveal (last in cascade; JS strips after) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s ease, transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- tricolor ribbon ---------- */
.tricolor { display: flex; height: 5px; }
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: var(--red); }
.tricolor span:nth-child(2) { background: var(--white); }
.tricolor span:nth-child(3) { background: var(--verde); }
.tricolor-flip span:nth-child(2) { background: var(--bg); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--rule);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.9rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--white); }
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--red); color: var(--ink-on-red);
  font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.02em;
  position: relative;
  transition: transform 0.3s var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-3deg); }
.brand-mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(to right, var(--red) 33.3%, #0d0d0d 33.3% 66.6%, var(--verde) 66.6%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-text small { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links > a:not(.btn) {
  text-decoration: none; color: var(--white); font-weight: 500; font-size: 0.92rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.3rem 0;
  background: linear-gradient(var(--red), var(--red)) no-repeat 0 100% / 0 2px;
  transition: background-size 0.25s var(--ease-out), color 0.2s ease;
}
.nav-links > a:not(.btn):hover { color: var(--white); background-size: 100% 2px; }

.nav-toggle {
  display: none;
  background: none; border: 0; color: var(--white); cursor: pointer; padding: 0.5rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--red); color: var(--ink-on-red); }
.btn-solid:hover { background: var(--white); color: #0d0d0d; }
.btn-ghost { border-color: var(--rule-strong); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); background: var(--white); color: #0d0d0d; }
.btn-small { padding: 0.5rem 1.05rem; font-size: 0.85rem; }
.btn-wide { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  display: flex; align-items: flex-end;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("images/hero.jpg");
  background-size: cover; background-position: 68% 40%;
  animation: heroZoom 26s var(--ease-out) infinite alternate;
  will-change: transform;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0.14) 26%),
    linear-gradient(195deg,
      rgba(10, 10, 10, 0.46) 0%,
      rgba(10, 10, 10, 0.62) 46%,
      rgba(19, 19, 19, 1) 97%);
}
.hero-inner {
  padding-block: clamp(4.5rem, 10vh, 8rem) clamp(2.2rem, 5vh, 4.6rem);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.55rem, min(8.4vw, 10.5vh), 6.6rem);
  line-height: 0.96; letter-spacing: 0.005em;
  max-width: 14ch;
  margin-block: clamp(0.8rem, 2vh, 1.1rem) clamp(1rem, 2.5vh, 1.5rem);
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
}
.lede { max-width: 52ch; font-size: clamp(1rem, min(1.5vw, 2vh), 1.15rem); color: rgba(245, 245, 242, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-block: clamp(1.2rem, 2.5vh, 2rem) clamp(1rem, 2vh, 1.6rem); }
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-chips li {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--rule-strong);
  background: rgba(13, 13, 13, 0.4);
  backdrop-filter: blur(6px);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero-inner > * { animation: riseIn 0.95s var(--ease-out) both; }
.hero-inner > :nth-child(1) { animation-delay: 0.2s; }
.hero-inner > :nth-child(2) { animation-delay: 0.35s; }
.hero-inner > :nth-child(3) { animation-delay: 0.5s; }
.hero-inner > :nth-child(4) { animation-delay: 0.65s; }
.hero-inner > :nth-child(5) { animation-delay: 0.8s; }

.kicker {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--white);
}
.kicker::before {
  content: ""; width: 12px; height: 12px; flex: none;
  background: var(--red);
}
.kicker-light { color: var(--white); }

/* ---------- stats strip ---------- */
.stats {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: 2.1rem;
}
.stat {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding-inline: 1.75rem;
  border-left: 1px solid var(--rule);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1; color: var(--white);
  letter-spacing: 0.02em;
}
.stat:nth-child(2) strong { color: var(--red); }
.stat span { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.stats-note {
  padding-block: 0 1.7rem;
  font-size: 0.92rem; color: var(--dim);
}
.stats-note a { color: var(--white); border-bottom: 2px solid var(--red); text-decoration: none; }
.stats-note a:hover { color: var(--red); }

/* ---------- marquee (site tape) ---------- */
.marquee {
  background: var(--red);
  overflow: hidden;
  padding-block: 0.9rem;
}
.marquee-track {
  display: flex; align-items: center; gap: 2.6rem;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-track span {
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.marquee-track i {
  width: 9px; height: 9px; flex: none;
  background: #0d0d0d;
  transform: rotate(45deg);
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- sections ---------- */
.section { padding-block: 6.5rem; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-alt); }

.section-head { max-width: 64ch; margin-bottom: 3.4rem; }
.section-head h2, .about-copy h2, .contact-copy h2 {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 0.98; margin-block: 0.8rem 1.1rem;
  letter-spacing: 0.005em;
}
.section-sub { color: var(--dim); max-width: 52ch; }

/* ---------- gallery ---------- */
.gallery { columns: 3 300px; column-gap: 1.4rem; }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.4rem;
  background: var(--card);
  cursor: zoom-in;
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.25s var(--ease-out);
}
.gallery-item:hover { border-color: var(--red); transform: translateY(-4px); }
.gallery-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.5s var(--ease-out), filter 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.04); filter: brightness(1.06); }
.gallery-item figcaption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--dim);
  display: flex; align-items: center; gap: 0.6rem;
}
.gallery-item figcaption::before {
  content: ""; width: 8px; height: 8px; flex: none;
  background: var(--red);
}
.gallery-item:hover figcaption { color: var(--white); border-top-color: var(--red); }

/* ---------- services (bento) ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  counter-reset: svc;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 2rem 1.7rem 1.9rem;
  position: relative;
  counter-increment: svc;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease-out);
}
.service-card:hover {
  background: var(--card-hover);
  border-color: var(--red);
  transform: translateY(-4px);
}
.service-card::before {
  content: counter(svc, decimal-leading-zero);
  position: absolute; top: 1.3rem; right: 1.5rem;
  font-family: var(--font-display); font-size: 2.4rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--faint);
  transition: color 0.25s ease, -webkit-text-stroke-color 0.25s ease;
}
.service-card:hover::before { color: var(--red); -webkit-text-stroke-color: var(--red); }
.service-card-feature { grid-column: span 2; }
.service-icon {
  width: 52px; height: 52px; margin-bottom: 1.2rem;
  display: grid; place-items: center;
  color: var(--red);
  background: rgba(229, 49, 43, 0.1);
  border: 1px solid rgba(229, 49, 43, 0.35);
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-out);
}
.service-card:hover .service-icon {
  background: var(--red); color: #fff;
  transform: rotate(-6deg);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.35rem; letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.service-card p { font-size: 0.95rem; color: var(--dim); }

/* ---------- quote band ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; }
.band-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("images/band.jpg");
  background-size: cover; background-position: center 55%;
}
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.66));
}
@media (min-width: 861px) {
  .band-bg { background-attachment: fixed; }
}
.band-inner { padding-block: 7rem; text-align: center; color: var(--white); }
.band blockquote p {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.8vw, 2.9rem);
  line-height: 1.04; max-width: 26ch; margin-inline: auto;
}
.band blockquote p::before { content: "— "; color: var(--red); }
.band-attr { margin-top: 1.3rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.about-media { position: relative; }
.about-media img {
  border: 1px solid var(--rule-strong);
}
.about-media::before {
  content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 3px solid var(--red); z-index: -1;
}
.about-badge {
  position: absolute; left: -0.8rem; bottom: 1.6rem;
  background: #0d0d0d;
  border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--red);
  color: var(--white);
  padding: 0.85rem 1.2rem;
  display: flex; flex-direction: column; line-height: 1.3;
}
.about-badge strong { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; }
.about-badge span { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.about-copy p + p { margin-top: 1rem; }
.about-copy > p:not(.kicker) { color: var(--dim); }
.about-facts {
  list-style: none; margin-block: 1.6rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.5rem;
}
.about-facts li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; font-weight: 500; color: var(--white); }
.about-facts li::before {
  content: ""; position: absolute; left: 0; top: 0.48em;
  width: 0.62rem; height: 0.62rem;
  background:
    linear-gradient(to bottom, var(--verde) 50%, transparent 50%) top / 100% 100% no-repeat,
    var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.about-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.contact-copy > p { color: var(--dim); max-width: 44ch; }
.contact-phone {
  display: inline-block; margin-block: 1.4rem 0.8rem;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 4.8vw, 3.2rem);
  letter-spacing: 0.02em;
  color: var(--white); text-decoration: none;
  border-bottom: 4px solid var(--red);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.contact-phone:hover { color: var(--red); }
.contact-alt { color: var(--dim); font-size: 0.95rem; }
.contact-alt a, .form-note a { color: var(--white); border-bottom: 2px solid var(--red); text-decoration: none; }
.contact-alt a:hover, .form-note a:hover { color: var(--red); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--rule-strong);
  padding: 2.2rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.field label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem;
  color: var(--white); background: #0d0d0d;
  border: 1px solid var(--rule-strong); border-radius: 0;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: #0d0d0d; background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}
.field textarea { resize: vertical; min-height: 96px; }
.form-note { margin-top: 1rem; font-size: 0.85rem; color: var(--faint); }

/* ---------- mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  grid-template-columns: 1fr 1fr; gap: 0.6rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(13, 13, 13, 0.94);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--red);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease-out);
}
.mobile-cta.show { transform: none; }

/* ---------- footer ---------- */
.site-footer { background: #0a0a0a; color: var(--dim); }
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; padding-block: 3rem 2rem;
}
.site-footer strong {
  display: block; font-family: var(--font-display); color: var(--white);
  font-weight: 400; margin-bottom: 0.5rem; font-size: 1rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.site-footer p { font-size: 0.92rem; line-height: 1.7; }
.site-footer a { color: var(--white); text-decoration: none; border-bottom: 2px solid var(--red); }
.site-footer a:hover { color: var(--red); }
.footer-base { border-top: 1px solid var(--rule); padding-block: 1.2rem; }
.footer-base p { font-size: 0.82rem; color: var(--faint); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 8, 8, 0.94);
  padding: clamp(1rem, 4vw, 3rem);
  animation: lbFade 0.25s ease both;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1000px, 100%); text-align: center; animation: riseIn 0.35s var(--ease-out) both; }
.lightbox img {
  max-width: 100%; max-height: 82vh; margin-inline: auto;
  border: 1px solid var(--rule-strong);
}
.lightbox figcaption { margin-top: 1rem; color: var(--dim); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.12em; }
.lightbox-close, .lightbox-nav {
  position: absolute; z-index: 2;
  background: #0d0d0d; color: var(--white);
  border: 1px solid var(--rule-strong);
  width: 46px; height: 46px; font-size: 1.15rem;
  display: grid; place-items: center; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--red); color: #fff; border-color: var(--red); }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-close:hover { transform: rotate(90deg); }
.lightbox-prev { left: clamp(0.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(0.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card-feature { grid-column: span 2; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--rule-strong);
    padding: 0.5rem 1.5rem 1.3rem;
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); background: none; }
  .nav-links .btn { margin-top: 1rem; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 480px; }
  .about-badge { left: 1rem; }
  .about-media::before { inset: 1rem -1rem -1rem 1rem; }
  .section { padding-block: 4.5rem; }
  .gallery { columns: 2 240px; }

  .mobile-cta { display: grid; }
  body.has-mobile-cta { padding-bottom: 76px; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card-feature { grid-column: span 1; }
  .gallery { columns: 1; }
  .about-facts { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 6rem 3.6rem; }
  .contact-form { padding: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.3rem 0; }
  .lightbox-nav { width: 40px; height: 40px; }
}
