/* =========================================================
   SLG Housekeeping & Facility Services — Site Styles
   Palette: White / Black / Premium Orange
   ========================================================= */

:root {
  --white: #ffffff;
  --black: #0c0c0c;
  --ink: #161616;
  --muted: #5c5c5c;
  --line: #e8e8e8;
  --surface: #f6f5f3;
  --orange: #e85d04;
  --orange-deep: #c44a00;
  --orange-soft: rgba(232, 93, 4, 0.1);
  --shadow: 0 12px 40px rgba(12, 12, 12, 0.08);
  --shadow-lg: 0 24px 60px rgba(12, 12, 12, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --header-h: 76px;
  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-body: "Inter", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* keep anchor targets clear of the fixed header */
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  /* Use `clip` (not `hidden`) so the body does NOT become a scroll
     container — otherwise it breaks the sticky header. `clip` still
     prevents horizontal overflow/scroll. */
  overflow-x: clip;
  /* offset content for the fixed header */
  padding-top: var(--header-h);
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* Prevent 300ms tap delay on touch devices */
a, button, input, select, textarea, [role="button"], summary, label {
  touch-action: manipulation;
}

/* Remove tap highlight globally on touch devices */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
}

/* Larger tap targets for carousel dots */
@media (max-width: 768px) {
  .services-carousel__dot {
    width: 12px;
    height: 12px;
    padding: 8px;
    box-sizing: content-box;
  }

  .services-carousel__dot.is-active {
    width: 28px;
  }
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section--surface {
  background: var(--surface);
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--black);
  max-width: 16ch;
}

.section--dark .section-title {
  color: var(--white);
}

.section-lead {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 42ch;
  font-size: 1.05rem;
}

.section--dark .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(232, 93, 4, 0.28);
}

.btn--primary:hover {
  background: var(--orange-deep);
}

.btn--dark {
  background: var(--black);
  color: var(--white);
}

.btn--dark:hover {
  background: #222;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn--whatsapp {
  background: #128c7e;
  color: var(--white);
}

.btn--whatsapp:hover {
  background: #0e7368;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.nav-wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.1rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.82rem, 2vw, 1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Always show the full name — hide the short version */
.brand-name .brand-short {
  display: none;
}

.brand-name .brand-full {
  display: inline;
}

.brand-loc {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  flex: 0 0 auto;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  white-space: nowrap;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-cta {
  display: none;
  padding: 0.7rem 1.15rem;
  font-size: 0.85rem;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--black);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Mobile navigation drawer ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 3000;
  background: rgba(10, 12, 18, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.mobile-nav.is-open {
  display: block;
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(86vw, 330px);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom));
  background: #171b26;
  color: #fff;
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__close {
  align-self: flex-start;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.mobile-nav__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav__close svg {
  width: 22px;
  height: 22px;
}

.mobile-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.25rem 1rem;
}

.mobile-nav__brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mobile-nav__brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-nav__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
}

.mobile-nav__brand-loc {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.85rem;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.mobile-nav__link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mobile-nav__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.mobile-nav__link.is-active {
  background: rgba(232, 93, 4, 0.16);
  color: var(--orange);
}

.mobile-nav__cta {
  position: relative;
  margin-top: auto;
  padding: 2.1rem 1.15rem 1.3rem;
  border-radius: 18px;
  background: var(--orange);
  text-align: center;
}

.mobile-nav__cta-badge {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.mobile-nav__cta-badge svg {
  width: 28px;
  height: 28px;
  color: var(--orange);
}

.mobile-nav__cta h4 {
  margin: 0 0 0.4rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.mobile-nav__cta p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  line-height: 1.4;
}

.mobile-nav__cta .btn {
  width: 100%;
  background: #fff;
  color: var(--orange);
  border: none;
  font-weight: 600;
}

.mobile-nav__cta .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--orange);
}

@media (min-width: 1080px) {
  .nav-wrap {
    gap: 1.5rem;
  }

  .brand {
    flex: 0 1 360px;
  }

  .nav-links {
    display: flex;
    flex: 1 1 auto;
  }

  .nav-cta {
    display: inline-flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }

  .nav-actions {
    margin-left: 0;
  }
}

/* ---------- Clients marquee ---------- */
.clients-section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--white);
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.clients-section .section-head {
  margin-bottom: 1.5rem;
  text-align: center;
  justify-content: center;
}

.clients-section .section-title {
  max-width: none;
  margin-inline: auto;
}

.clients-section .section-lead {
  margin-inline: auto;
}

/* Pause / Play button */
.clients-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.clients-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.clients-toggle-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.clients-toggle-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Marquee container */
.clients-marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: clients-scroll 35s linear infinite;
}

/* Paused state (toggled by button or hover) */
.clients-marquee.is-paused .clients-track,
.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

/* Client logo card */
.client-logo-card {
  flex: 0 0 auto;
  width: 180px;
  padding: 1.25rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.client-logo-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transform: translateY(-3px);
}

.client-logo-card .client-logo-img {
  width: 100%;
  height: 70px;
  object-fit: contain;
  display: block;
}

.client-logo-card .client-logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Fallback: empty state */
.clients-empty {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Gallery admin + dynamic grid ---------- */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gallery-filters button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.gallery-filters button.is-active,
.gallery-filters button:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.admin-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.admin-panel-link:hover {
  color: var(--orange);
  border-color: var(--orange);
  background: var(--orange-soft);
}

.gallery-status {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  font-size: 0.95rem;
}

/* ---------- Gallery dynamic grid & project cards ---------- */
.gallery-dynamic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .gallery-dynamic {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-dynamic {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(12, 12, 12, 0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(12, 12, 12, 0.14);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card__meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.project-card:hover .project-card__meta {
  opacity: 1;
  transform: translateY(0);
}

.project-card__meta span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.project-card__meta strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- Gallery lightbox ---------- */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  padding: 2rem;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: scale(0.92);
  transition: transform 0.4s var(--ease);
}

.gallery-lightbox.is-open .gallery-lightbox__img {
  transform: scale(1);
}

.gallery-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.5);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}

.gallery-lightbox__close:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.gallery-lightbox__caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  max-width: 600px;
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.5);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}

.gallery-lightbox__nav:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.gallery-lightbox__nav--prev {
  left: 1.25rem;
}

.gallery-lightbox__nav--next {
  right: 1.25rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 8, 8, 0.88) 0%, rgba(8, 8, 8, 0.55) 48%, rgba(8, 8, 8, 0.35) 100%),
    linear-gradient(to top, rgba(8, 8, 8, 0.75) 0%, transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--container));
  margin: 0 auto;
  padding: 5.5rem 0 3.5rem;
}

.hero__since {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.1rem;
}

.hero__since::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 12ch;
  margin-bottom: 1.1rem;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 36ch;
  margin-bottom: 1.75rem;
}

.hero__types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.hero__types span {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 640px;
}

.hero__trust strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.hero__trust span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 700px) {
  .hero__trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--black);
  color: var(--white);
  padding: 2.75rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1rem;
}

.stat {
  text-align: center;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Services Carousel ---------- */
.services-carousel {
  position: relative;
}

.services-carousel__track-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.services-carousel__track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

/* Each card: fixed width so 3 show on desktop, 2 on tablet, 1 on mobile */
.service-card {
  flex: 0 0 calc((100% - 2 * 1.25rem) / 3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}

@media (max-width: 1023px) {
  .service-card {
    flex: 0 0 calc((100% - 1.25rem) / 2);
  }
}

@media (max-width: 767px) {
  .service-card {
    flex: 0 0 100%;
  }
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-card__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--surface);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-card__media img {
  transform: scale(1.05);
}

.service-card__body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.service-card .link {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.service-card .link:hover {
  color: var(--orange-deep);
}

/* Carousel nav row */
.services-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.services-carousel__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
  flex-shrink: 0;
}

.services-carousel__btn:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  transform: scale(1.08);
}

.services-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

/* Dot indicators */
.services-carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.services-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s, width 0.3s var(--ease);
}

.services-carousel__dot.is-active {
  background: var(--orange);
  width: 24px;
  border-radius: 999px;
}

/* --- Mobile carousel redesign (≤767px): side arrows, compact dots, no wasted space --- */
@media (max-width: 767px) {
  /* Shared media height lets the side arrows align exactly to the image centre */
  .services-carousel {
    --svc-media-h: clamp(180px, 52vw, 260px);
  }

  /* Fixed responsive image height: prevents layout shift + keeps cards compact */
  .service-card__media {
    aspect-ratio: auto;
    height: var(--svc-media-h);
  }

  /* Tighter, more readable card body on phones */
  .service-card__body {
    padding: 1.1rem 1.15rem 1.25rem;
    gap: 0.5rem;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  /* Prev / Next overlay the sides of the image, vertically centred on it */
  .services-carousel__btn {
    position: absolute;
    top: calc(var(--svc-media-h) / 2);
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-color: rgba(12, 12, 12, 0.08);
    box-shadow: 0 4px 16px rgba(12, 12, 12, 0.18);
  }

  .services-carousel__btn:hover {
    transform: translateY(-50%) scale(1.06);
    background: var(--white);
    color: var(--black);
    border-color: rgba(12, 12, 12, 0.08);
  }

  .services-carousel__btn:active {
    transform: translateY(-50%) scale(0.94);
  }

  .services-carousel__btn:disabled {
    transform: translateY(-50%);
    opacity: 0.4;
  }

  .services-carousel__nav .services-carousel__btn:first-child {
    left: 8px;
  }

  .services-carousel__nav .services-carousel__btn:last-child {
    right: 8px;
  }

  /* Nav row collapses to just the dots, sitting snugly under the card */
  .services-carousel__nav {
    margin-top: 0.9rem;
    gap: 0;
  }

  /* Compact modern dots — neutralise the global 44px tap-target stretch */
  .services-carousel__dots {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .services-carousel__dot {
    min-height: 0;
    width: 6px;
    height: 6px;
    padding: 4px;
    box-sizing: content-box;
    background: rgba(12, 12, 12, 0.2);
    background-clip: content-box;
    border-radius: 999px;
  }

  .services-carousel__dot.is-active {
    width: 16px;
    background: var(--orange);
    background-clip: content-box;
  }
}

/* ---------- Why SLG — infinite auto-scroll carousel ---------- */
.why-carousel {
  position: relative;
  overflow: hidden;
  /* fade edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.why-track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  animation: why-scroll 28s linear infinite;
}

/* Pause on hover */
.why-carousel:hover .why-track {
  animation-play-state: paused;
}

@keyframes why-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .why-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }
  .why-carousel {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.why-card {
  flex: 0 0 280px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              transform 0.25s var(--ease);
}

.why-card:hover {
  border-color: rgba(232, 93, 4, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.why-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.why-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ---------- Recent Projects — photo carousel slides ---------- */
.project-slide {
  flex: 0 0 calc((100% - 2 * 1.25rem) / 3);
  position: relative;
  display: block;
  height: 430px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.project-slide:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

@media (max-width: 1023px) {
  .project-slide {
    flex: 0 0 calc((100% - 1.25rem) / 2);
    height: 400px;
  }
}

@media (max-width: 767px) {
  .project-slide {
    flex: 0 0 100%;
    height: 360px;
  }
}

.project-slide__shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 38%, rgba(0, 0, 0, 0) 68%);
}

.project-slide__label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-slide__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--orange);
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.project-slide__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-slide__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.project-slide__sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* ---------- Process ---------- */
.process {
  display: grid;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.15rem;
  position: relative;
  padding-bottom: 2rem;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.process-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.process-step p {
  color: var(--muted);
  max-width: 42ch;
}

@media (min-width: 900px) {
  .process {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }

  .process-step {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 0;
    justify-items: center;
  }

  .process-step:not(:last-child)::before {
    left: calc(50% + 28px);
    right: -50%;
    top: 27px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
}

/* ---------- Reviews ---------- */
.reviews-shell {
  position: relative;
}

.reviews-track {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 min(86vw, 340px);
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-stars {
  color: var(--orange);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.review-card p {
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1;
}

.review-author strong {
  display: block;
  font-weight: 700;
  color: var(--black);
}

.review-author span {
  font-size: 0.8rem;
  color: var(--muted);
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.google-badge em {
  font-style: normal;
  color: var(--orange);
}

.reviews-nav {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.reviews-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}

.reviews-nav button:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
}

.about-media {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.75rem;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-media img:first-child {
  min-height: 320px;
  grid-row: span 2;
}

.about-media img:not(:first-child) {
  min-height: 154px;
}

.about-copy h2 {
  max-width: 14ch;
}

.mission-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.mission-item {
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 3px solid var(--orange);
}

.mission-item strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.mission-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--orange);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-answer {
  padding: 0 1.25rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232, 93, 4, 0.28), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(232, 93, 4, 0.12), transparent 40%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 0 auto 0.85rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 auto 1.75rem;
  max-width: 40ch;
}

.cta-band .btn-row {
  justify-content: center;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 100%;
  overflow: hidden;
}

.contact-cards {
  display: grid;
  gap: 0.85rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.contact-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-card strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-card a,
.contact-card span {
  font-weight: 600;
  color: var(--black);
  font-size: 1rem;
}

.contact-card a:hover {
  color: var(--orange);
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
  background: var(--surface);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
  }

  .contact-grid > * {
    min-width: 0;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 100%;
    height: 100%;
  }
}

/* ---------- Quote form ---------- */
.quote-form {
  display: grid;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--black);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.quote-form textarea {
  min-height: 110px;
  resize: vertical;
}

.form-message {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  display: none;
}

.form-message.is-visible {
  display: block;
}

.form-message--ok {
  background: #e8f6ef;
  color: #0f6b3d;
}

.form-message--err {
  background: #fdecea;
  color: #a1281c;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.72);
  padding: 4.5rem 0 2rem;
  border-top: 3px solid var(--orange);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 0.9rem;
  max-width: 32ch;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Footer brand: allow the full company name to wrap instead of truncating */
.footer-brand .brand {
  align-items: flex-start;
}

.footer-brand .brand-name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 1rem;
  line-height: 1.3;
}

.footer-brand .brand-loc {
  white-space: normal;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  padding-bottom: 0.65rem;
  position: relative;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.footer-col a,
.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  overflow-wrap: anywhere;
}

.footer-col p {
  display: block;
  line-height: 1.6;
}

/* Quick links / Services: clean text links with a slide-in arrow (no button styling) */
.footer-col a {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-col a::before {
  content: "\203A";
  width: 0;
  margin-right: 0;
  color: var(--orange);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), width 0.2s var(--ease), margin-right 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col a:hover::before {
  width: 0.7em;
  margin-right: 0.35rem;
  opacity: 1;
  transform: translateX(0);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.socials a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s var(--ease);
}

.footer-legal a:hover {
  color: var(--orange);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

/* ---------- Sticky contact bar (Call / WhatsApp / Get Quote) ---------- */
/* Desktop: floating vertical sidebar on the right, labels expand on hover */
.slg-cbar {
  position: fixed;
  z-index: 950;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.slg-cbar__btn {
  --cbar-accent: var(--black);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 54px;            /* collapsed = icon only */
  height: 54px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--cbar-accent);
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
  transition: width 0.35s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.slg-cbar__btn svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.slg-cbar__label {
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.slg-cbar__btn:hover,
.slg-cbar__btn:focus-visible {
  width: 196px;
  transform: translateX(-4px);
  box-shadow: 0 18px 40px rgba(12, 12, 12, 0.28);
  outline: none;
}

.slg-cbar__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.slg-cbar__btn:hover .slg-cbar__label,
.slg-cbar__btn:focus-visible .slg-cbar__label {
  opacity: 1;
  transform: translateX(0);
}

.slg-cbar__btn:active {
  transform: translateX(-4px) scale(0.96);
}

.slg-cbar__btn--call {
  --cbar-accent: var(--black);
}
.slg-cbar__btn--wa {
  --cbar-accent: #25d366;
}
.slg-cbar__btn--quote {
  --cbar-accent: var(--orange);
}

/* Gentle pulse on WhatsApp to draw the eye */
.slg-cbar__btn--wa::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: slgPulse 2.6s var(--ease) infinite;
  pointer-events: none;
}

@keyframes slgPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Mobile: full-width sticky bottom bar with large tap targets */
@media (max-width: 767px) {
  body {
    padding-bottom: 70px;
  }

  .slg-cbar {
    right: 0;
    left: 0;
    bottom: 0;
    top: auto;
    transform: none;
    flex-direction: row;
    gap: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(12, 12, 12, 0.12);
  }

  .slg-cbar__btn {
    flex: 1 1 0;
    flex-direction: column;
    gap: 3px;
    width: auto;
    height: auto;
    min-height: 52px;
    padding: 8px 4px;
    border-radius: 14px;
    background: transparent;
    color: var(--cbar-accent);
    box-shadow: none;
    transition: transform 0.15s var(--ease), background 0.2s var(--ease);
  }

  .slg-cbar__btn svg {
    flex: none;
  }

  .slg-cbar__label {
    opacity: 1;
    transform: none;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .slg-cbar__btn:hover,
  .slg-cbar__btn:focus-visible {
    width: auto;
    transform: none;
    box-shadow: none;
  }

  .slg-cbar__btn:active {
    transform: scale(0.94);
    background: var(--surface);
  }

  .slg-cbar__btn--wa::after {
    display: none;
  }
}

/* Hide the bar while the mobile menu overlay is open */
body.nav-open .slg-cbar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .slg-cbar__btn,
  .slg-cbar__label {
    transition: none;
  }
  .slg-cbar__btn--wa::after {
    animation: none;
  }
}

/* ---------- Quote modal (popup) ---------- */
.slg-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(12, 12, 12, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.slg-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.slg-modal__dialog {
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.slg-modal.is-open .slg-modal__dialog {
  transform: none;
}

.slg-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.slg-modal__head h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.slg-modal__head p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.slg-modal__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.3s var(--ease);
}

.slg-modal__close:hover {
  background: var(--surface);
  transform: rotate(90deg);
}

/* ---------- Page hero (inner) ---------- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.page-hero p {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 42ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px !important;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible,
.reveal.active {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card:hover .service-card__media img,
  .project-card:hover img {
    transform: none;
  }
}

/* =========================================================
   CROSS-BROWSER & RESPONSIVE COMPATIBILITY FIXES
   ========================================================= */

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Ensure iframe embeds don't overflow */
iframe {
  max-width: 100%;
}

/* Tables responsive wrapper */
table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

/* Better touch targets on mobile (min 44px) */
@media (max-width: 768px) {
  /* Ensure all interactive elements meet 44px minimum tap target */
  a, button, input, select, textarea, [role="button"] {
    min-height: 44px;
  }

  /* Gallery filter buttons stay compact but accessible — min 44px height */
  .gallery-filters button {
    min-height: 44px;
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
  }

  /* Slightly tighter drawer links on small phones */
  .mobile-nav__link {
    padding: 0.75rem 0.75rem;
    font-size: 0.92rem;
  }

  /* Hero section: prevent text overflow on small phones */
  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero__sub {
    font-size: 0.95rem;
  }

  .hero__trust {
    gap: 0.65rem 0.75rem;
  }

  .hero__trust strong {
    font-size: 0.9rem;
  }

  .hero__trust span {
    font-size: 0.75rem;
  }

  /* Page hero: smaller heading on mobile */
  .page-hero h1 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    word-wrap: break-word;
  }

  .page-hero p {
    font-size: 0.95rem;
  }

  /* Section titles: prevent overflow */
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    max-width: 100%;
  }

  /* Larger, more prominent header on mobile */
  :root {
    --header-h: 86px;
  }

  .brand img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .brand-name {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
  }

  .brand-loc {
    font-size: 0.7rem;
  }

  /* Service cards: full width on mobile */
  .service-card {
    flex: 0 0 100%;
  }

  /* Project options: adjust height for mobile */
  .projects-options {
    height: 320px;
  }

  /* Footer: clean single-column stack on mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  /* Tighter link spacing so the columns don't feel stretched apart */
  .footer-col h4 {
    margin-bottom: 0.65rem;
  }

  .footer-col a,
  .footer-col p {
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
  }

  /* Quick links: clean plain-text list on mobile (no button/tile styling) */

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  /* Footer social icons: meet 44px tap target */
  .socials a {
    width: 44px;
    height: 44px;
  }

  /* Contact grid: single column */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-wrap {
    min-height: 250px;
  }

  .map-wrap iframe {
    min-height: 250px;
  }

  /* About grid: single column */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-media img:first-child {
    min-height: 220px;
  }

  /* Quote form: less padding on mobile */
  .quote-form {
    padding: 1.15rem;
    gap: 0.7rem;
  }

  .quote-form input,
  .quote-form select,
  .quote-form textarea {
    padding: 0.75rem 0.85rem;
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  /* Stats grid: 2 columns on mobile */
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat__num {
    font-size: 1.8rem;
  }

  /* FAQ: tighter spacing */
  .faq-item summary {
    padding: 0.95rem 1rem;
    font-size: 0.95rem;
  }

  .faq-item .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
  }

  /* Reviews: smaller cards on mobile */
  .review-card {
    flex: 0 0 min(88vw, 300px);
    padding: 1.2rem 1.1rem;
  }

  /* CTA band: adjust padding */
  .cta-band {
    padding: 2.5rem 0;
  }

  .cta-band h2 {
    font-size: 1.6rem;
  }

  /* Sticky contact bar handles its own mobile layout in its component section */

  /* Lightbox: better touch targets */
  .gallery-lightbox__close {
    width: 52px;
    height: 52px;
  }

  .gallery-lightbox__nav {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .gallery-lightbox__nav--prev {
    left: 0.5rem;
  }

  .gallery-lightbox__nav--next {
    right: 0.5rem;
  }

  /* Carousel nav buttons: min 48px for Google mobile test */
  .services-carousel__btn {
    width: 48px;
    height: 48px;
  }

  /* Reviews nav buttons: 48px */
  .reviews-nav button {
    width: 48px;
    height: 48px;
  }

  /* Gallery grid: ensure images don't overflow */
  .gallery-dynamic {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Gallery toolbar: wrap nicely */
  .gallery-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .gallery-filters {
    gap: 0.4rem;
    width: 100%;
  }

  .gallery-filters button {
    flex: 0 0 auto;
    min-height: 44px;
  }

  .project-card img {
    aspect-ratio: 4 / 3;
  }

  /* Show card meta always on touch devices (no hover) */
  .project-card__meta {
    opacity: 1;
    transform: translateY(0);
  }

  /* Contact cards: stack vertically */
  .contact-cards {
    gap: 0.65rem;
  }

  .contact-card {
    padding: 0.95rem 1rem;
  }

  /* Breadcrumb: wrap on mobile */
  .breadcrumb {
    font-size: 0.75rem;
  }

  /* Process steps: stack vertically */
  .process {
    gap: 0;
  }

  .process-step {
    gap: 0.85rem;
  }

  /* Clients: smaller cards on mobile */
  .client-logo-card {
    width: 140px;
    padding: 0.85rem 0.7rem;
  }

  .client-logo-card .client-logo-img {
    height: 50px;
  }

  .client-logo-card .client-logo-name {
    font-size: 0.75rem;
  }

  /* Button text: prevent overflow */
  .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.88rem;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn {
    text-align: center;
    justify-content: center;
  }

  /* Fix services grid: prevent minmax(320px) overflow on mobile */
  .svc-grid {
    grid-template-columns: 1fr;
  }

  /* Ensure blog read-more buttons have adequate tap area */
  .blog-read-more {
    padding: 0.5rem 0;
    min-height: 44px;
  }
}

/* Very small phones (< 380px) */
@media (max-width: 380px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .brand-name {
    font-size: 0.7rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: min(85vh, 600px);
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero__content {
    padding: 4rem 0 2.5rem;
  }

  .hero__types {
    gap: 0.35rem;
    font-size: 0.78rem;
  }

  .hero__types span {
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
  }

  .nav-cta {
    display: none !important;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .projects-options {
    height: 260px;
  }

  .project-option:nth-child(5),
  .project-option:nth-child(6),
  .project-option:nth-child(7) {
    display: none;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-filters {
    gap: 0.35rem;
  }

  .gallery-filters button {
    padding: 0.5rem 0.7rem;
    font-size: 0.78rem;
    min-height: 40px;
  }

  .page-hero {
    padding: 2.5rem 0;
  }

  .page-hero h1 {
    font-size: 1.4rem;
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero__content {
    padding: 2rem 0 1.5rem;
  }

  .page-hero {
    padding: 2rem 0;
  }

  .gallery-lightbox__img {
    max-height: 90vh;
  }
}

/* Print styles */
@media print {
  .site-header,
  .slg-cbar,
  .slg-modal,
  .gallery-lightbox,
  .mobile-nav,
  .cta-band,
  .clients-section {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }

  .section {
    padding: 1rem 0;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --muted: #333;
    --line: #999;
  }

  .btn--primary {
    box-shadow: none;
    border: 2px solid #000;
  }

  .project-card__meta {
    opacity: 1;
    transform: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  /* Keep the site light-themed but improve contrast for OS dark mode */
  html {
    color-scheme: light;
  }
}

/* Ensure smooth scrolling works on iOS Safari */
@supports (-webkit-touch-callout: none) {
  body {
    -webkit-overflow-scrolling: touch;
  }

  .reviews-track {
    -webkit-overflow-scrolling: touch;
  }
}

/* Fix for Firefox scrollbar */
@-moz-document url-prefix() {
  .reviews-track {
    scrollbar-width: none;
  }
}

/* =========================================================
   REQUESTED BREAKPOINT REFINEMENTS (mobile-first scale-up)
   Fills gaps at 320 / 360 · 768–1024 tablet · 1440+ · 1920+
   (375 / 390 / 414 / 768 are already handled by the blocks
   above — these rules only add what was missing.)
   ========================================================= */

/* ---- Ultra-small phones (≤ 360px: iPhone SE 1st-gen, 320px Androids) ---- */
@media (max-width: 360px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  /* Stack CTAs full-width so nothing overflows the viewport */
  .btn-row .btn,
  .hero .btn-row .btn {
    width: 100%;
  }

  .btn {
    padding: 0.8rem 1.05rem;
    font-size: 0.9rem;
  }

  .hero__types span {
    font-size: 0.72rem;
    padding: 0.22rem 0.5rem;
  }

  .stat__num {
    font-size: clamp(1.5rem, 9vw, 1.9rem);
  }

  .section-lead,
  .hero__sub {
    font-size: 0.9rem;
  }
}

/* ---- Tablets (768–1024px: iPad / iPad Air / landscape phones) ---- */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Slightly wider gutters + calmer vertical rhythm on tablets */
  .container {
    width: min(100% - 3rem, var(--container));
  }

  .section {
    padding: clamp(3.5rem, 6vw, 5rem) 0;
  }

  .about-grid,
  .contact-grid {
    gap: 2.25rem;
  }

  /* Trust badges read best as a 4-up row on tablets */
  .hero__trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---- Large desktops (≥ 1440px) ---- */
@media (min-width: 1440px) {
  :root {
    --container: 1320px;
  }

  .section {
    padding: clamp(6rem, 7vw, 8rem) 0;
  }

  .section-title {
    font-size: clamp(2.4rem, 3vw, 3.4rem);
  }

  .hero h1 {
    font-size: clamp(3.4rem, 5vw, 5rem);
  }
}

/* ---- Ultra-wide displays (≥ 1920px) ---- */
@media (min-width: 1920px) {
  :root {
    --container: 1480px;
  }

  body {
    font-size: 1.075rem;
  }
}
