/* ============================================================
   Paterson Construction & Industrial Services
   Dark / Magenta / White industrial theme
   ============================================================ */

/* ---------- custom properties ---------- */
:root {
  --bg:         #1a1a1a;
  --bg-light:   #232323;
  --bg-card:    #2a2a2a;
  --magenta:    #ff00b4;
  --magenta-dk: #cc0090;
  --white:      #ffffff;
  --grey:       #b0b0b0;
  --grey-lt:    #d5d5d5;
  --radius:     6px;
  --shadow:     0 4px 24px rgba(0,0,0,.35);
  --transition: .25s ease;
  --max-w:      1200px;
  --header-h:   100px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Barlow", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--grey-lt);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--magenta); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }
ul, ol { list-style: none; }

/* ---------- layout helpers ---------- */
.container { width: 92%; max-width: var(--max-w); margin: 0 auto; }
.section   { padding: 5rem 0; }
.section--alt { background: var(--bg-light); }

.text-center { text-align: center; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: .03em;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h4 { font-size: 1.15rem; }

.section-subtitle {
  display: inline-block;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: .5rem;
}

.section-title { margin-bottom: 1rem; }

.section-intro {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  color: var(--grey);
}

/* ---------- legal / policy pages ---------- */
.legal-content {
  max-width: 42rem;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-top: 2.25rem;
  margin-bottom: .75rem;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p,
.legal-content li { color: var(--grey); font-size: .95rem; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.legal-content ul li { margin-bottom: .35rem; }
.legal-content .legal-meta {
  font-size: .85rem;
  color: var(--grey);
  margin-bottom: 2rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn--primary {
  background: var(--magenta);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--magenta-dk);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--magenta);
}
.btn--outline:hover {
  background: var(--magenta);
  color: var(--white);
}

.btn--sm { padding: .6rem 1.4rem; font-size: .82rem; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(26,26,26,.92);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 1;
  min-width: 0;
  text-decoration: none;
}
.logo .logo-text { color: var(--white); }
.logo:hover .logo-text { color: var(--grey-lt); }
.logo .logo-text small { color: var(--magenta); }
.logo img {
  height: 84px;
  width: auto;
  max-width: min(100vw - 14rem, 320px);
  flex-shrink: 0;
  object-fit: contain;
}
.logo-text {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: left;
}
.logo-text small {
  display: block;
  font-family: "Barlow", sans-serif;
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-top: 0.2em;
}

/* desktop nav */
.main-nav {
  overflow: visible;
  min-width: 0;
}
.main-nav ul {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.main-nav a {
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--grey-lt);
  position: relative;
  padding: .25rem 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--magenta);
  transition: width var(--transition);
}
.main-nav a:hover,
.main-nav a.active { color: var(--white); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

/* dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::before {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(8px);
  width: max-content;
  min-width: 220px;
  max-width: calc(100vw - 2rem);
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 1100;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown li { display: block; }
.dropdown a {
  display: block;
  padding: .55rem 1.25rem;
  font-size: .8rem;
  white-space: nowrap;
}
.dropdown a::after { display: none; }
.dropdown a:hover { background: rgba(255,0,180,.1); color: var(--white); }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px; height: 24px;
  position: relative;
  z-index: 1100;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 100%; height: 3px;
  background: var(--white);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: var(--transition);
}
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { content: ''; top: -9px; }
.nav-toggle span::after  { content: ''; top:  9px; }
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active span::after  { top: 0; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background: var(--bg);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.96) 0%,
    rgba(26, 26, 26, 0.9) 42%,
    rgba(26, 26, 26, 0.72) 62%,
    rgba(255, 0, 180, 0.08) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.hero__layout {
  display: grid;
  grid-template-columns: 1fr minmax(200px, min(38vw, 360px));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero__content {
  min-width: 0;
}
.hero__mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.hero__mosaic-cell {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-card);
}
.hero__mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.8;
}
.hero .container.hero__layout,
.hero__content,
.hero .container { position: relative; z-index: 2; }
.hero h1 { margin-bottom: .75rem; }
.hero p  { max-width: 600px; font-size: 1.05rem; color: var(--grey-lt); margin-bottom: 1.75rem; }
.hero .btn + .btn { margin-left: .75rem; }

.hero--page {
  min-height: 320px;
  padding: calc(var(--header-h) + 2rem) 0 2.5rem;
}
.hero--page h1 { margin-bottom: .4rem; }

.breadcrumb {
  font-size: .8rem;
  color: var(--grey);
  margin-bottom: .6rem;
}
.breadcrumb a { color: var(--magenta); }
.breadcrumb span { margin: 0 .4rem; }

/* ============================================================
   SERVICE / FEATURE CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255,0,180,.12);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: rgba(255,0,180,.12);
  border-radius: 50%;
  margin-bottom: 1rem;
  color: var(--magenta);
  font-size: 1.6rem;
}

.card-body { padding: 1.75rem; }
.card-body h3 { margin-bottom: .5rem; }
.card-body p  { font-size: .92rem; color: var(--grey); margin-bottom: 1rem; }
.card-body .btn { margin-top: auto; }

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-light);
}

/* icon card variant (no image) */
.icon-card {
  padding: 2rem;
  text-align: center;
}
.icon-card .card-icon { margin: 0 auto 1rem; }

/* ============================================================
   PRODUCT TABLE / LIST
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--magenta);
}
.product-card .card-icon { margin: 0 auto 1rem; }
.product-card h4 { margin-bottom: .4rem; }
.product-card p  { font-size: .85rem; color: var(--grey); }

/* ============================================================
   STATS / COUNTERS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}
.stat-number {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 3rem;
  color: var(--magenta);
  line-height: 1;
}
.stat-label {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--grey);
  margin-top: .35rem;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--magenta) 0%, var(--magenta-dk) 100%);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-banner p  { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 1.5rem; }
.cta-banner .btn--outline { border-color: var(--white); }
.cta-banner .btn--outline:hover { background: var(--white); color: var(--magenta); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--magenta);
  position: relative;
}
.testimonial .quote {
  font-size: .95rem;
  font-style: italic;
  color: var(--grey-lt);
  margin-bottom: 1rem;
}
.testimonial .author {
  font-weight: 700;
  color: var(--white);
  font-size: .85rem;
}
.testimonial .role {
  font-size: .78rem;
  color: var(--grey);
}
.testimonial .stars {
  color: var(--magenta);
  margin-bottom: .6rem;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

button.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  background: var(--bg-card);
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  display: block;
  width: 100%;
  text-align: left;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,0,180,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.gallery-item:hover .gallery-item__overlay,
.gallery-item:focus-visible .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay i { font-size: 1.8rem; color: var(--white); }

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px dashed rgba(255,255,255,.1);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  color: var(--grey);
  font-size: .85rem;
  text-align: center;
  padding: 1rem;
}
.gallery-placeholder i {
  font-size: 2rem;
  color: var(--magenta);
  margin-bottom: .5rem;
}

.gallery-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
}
.gallery-pagination__status {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--grey-lt);
  letter-spacing: 0.06em;
}
.gallery-pagination .btn {
  min-width: 7rem;
  text-align: center;
}

/* ---------- all services page ---------- */
.services-full-list {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: svc;
}
.services-full-list li {
  counter-increment: svc;
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  margin-bottom: 0.65rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  border-left: 4px solid var(--magenta);
  color: var(--grey-lt);
  font-size: 0.95rem;
  line-height: 1.55;
}
.services-full-list li::before {
  content: counter(svc);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.35rem;
  color: var(--magenta);
  line-height: 1;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-item .icon {
  width: 48px; height: 48px;
  background: rgba(255,0,180,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--magenta);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item h4 { margin-bottom: .15rem; }
.contact-info-item p  { font-size: .9rem; color: var(--grey); }

/* form */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--grey-lt);
  margin-bottom: .35rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  color: var(--white);
  font-family: inherit;
  font-size: .9rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--magenta);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-panel {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.06);
}
.form-panel--success {
  border-left: 4px solid var(--magenta);
}
.form-group--recaptcha .g-recaptcha {
  transform-origin: top left;
}
@media (max-width: 360px) {
  .form-group--recaptcha .g-recaptcha { transform: scale(0.85); }
}
.form-message {
  padding: .85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: .9rem;
}
.form-message--error {
  background: rgba(255, 60, 60, .12);
  border: 1px solid rgba(255, 100, 100, .35);
  color: var(--grey-lt);
}
.recaptcha-legal {
  margin-top: 1rem;
  font-size: .72rem;
  line-height: 1.5;
  color: var(--grey);
}
.recaptcha-legal a { color: var(--magenta); }

/* reCAPTCHA v3 badge: user-facing notice is in .recaptcha-legal on the contact form */
.grecaptcha-badge { visibility: hidden; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #111;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-col h4 {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--magenta);
  display: inline-block;
}

.footer-col p  { font-size: .88rem; color: var(--grey); }
.footer-col li { margin-bottom: .4rem; }
.footer-col a  { font-size: .88rem; color: var(--grey); }
.footer-col a:hover { color: var(--magenta); }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1.25rem;
  max-width: 100%;
}
.footer-logo:hover {
  text-decoration: none;
}
.footer-about-logo {
  width: auto;
  height: 96px;
  max-height: 96px;
  flex-shrink: 0;
  object-fit: contain;
}
.footer-col .footer-logo .logo-text {
  color: var(--white);
}
.footer-col .footer-logo:hover .logo-text {
  color: var(--grey-lt);
}
.footer-col .footer-logo .logo-text small {
  color: var(--magenta);
}

.footer-contact {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.footer-contact li {
  margin-bottom: 0.45rem;
}
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--grey-lt);
  word-break: break-word;
}
.footer-contact a:hover {
  color: var(--magenta);
}
.footer-contact i {
  width: 1rem;
  color: var(--magenta);
  flex-shrink: 0;
}

.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-lt);
  font-size: .9rem;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover {
  background: var(--magenta);
  color: var(--white);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
  font-size: .78rem;
  color: var(--grey);
}

/* ============================================================
   ABOUT STRIP (homepage)
   ============================================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-split .content h2 { margin-bottom: .75rem; }
.about-split .content p  { margin-bottom: 1rem; }

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image-placeholder {
  color: var(--grey);
  text-align: center;
  padding: 2rem;
}
.about-image-placeholder i { display: block; font-size: 3rem; color: var(--magenta); margin-bottom: .75rem; }

/* coverage map placeholder */
.coverage-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,0,180,.1);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .85rem;
  color: var(--magenta);
  margin-top: .5rem;
}

/* ============================================================
   SERVICE-DETAIL PAGE LAYOUT
   ============================================================ */
.service-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.service-intro .content p { margin-bottom: 1rem; }

.feature-list { margin: 1.5rem 0; }
.feature-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .6rem;
  color: var(--grey-lt);
  font-size: .92rem;
}
.feature-list li::before {
  content: '\f00c';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--magenta);
  font-size: .75rem;
  top: .3rem;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem 4rem;
}
.lightbox.active { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}
.lightbox-figure-wrap {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.lightbox-close:hover {
  background: var(--magenta);
  border-color: var(--magenta);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(26, 26, 26, 0.75);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.lightbox-nav:hover {
  background: var(--magenta);
  border-color: var(--magenta);
}
.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }
.lightbox-caption {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-lt);
  letter-spacing: 0.06em;
}
@media (max-width: 768px) {
  .lightbox {
    padding: 3rem 0.5rem 3.5rem;
  }
  .lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
  .lightbox-prev { left: 0.35rem; }
  .lightbox-next { right: 0.35rem; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-split,
  .service-intro,
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 90px; }

  .logo img {
    height: 64px;
    max-width: min(100vw - 10rem, 220px);
  }

  .logo-text {
    font-size: clamp(0.78rem, 3.2vw, 0.95rem);
  }

  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 300px; height: 100vh;
    background: var(--bg);
    padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
    transition: right var(--transition);
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,.06);
    z-index: 1050;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid rgba(255,255,255,.06); }
  .main-nav a { display: block; padding: .85rem 0; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0 0 0 1rem;
  }
  .has-dropdown > a::before { float: right; margin-top: .5rem; }

  .hero { min-height: 400px; }

  .hero__layout {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .hero__mosaic {
    max-width: 320px;
    margin: 1.5rem auto 0;
  }

  .hero__content {
    text-align: center;
  }

  .hero__content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__content .btn + .btn {
    margin-left: 0.5rem;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(26, 26, 26, 0.96) 0%,
      rgba(26, 26, 26, 0.9) 55%,
      rgba(26, 26, 26, 0.82) 100%
    );
  }

  .hero--page { min-height: 240px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- scroll animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
