/* =========================================================
   Koyyum Home Repair — Landing page styles
   Single stylesheet. Mobile-first. One breakpoint at 768px.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --navy: #03214E;
  --navy-text: #071B3D;
  --orange: #FE5104;
  --white: #FFFFFF;
  --gray: #F5F7FA;
  --gray-line: #E5E9F0;
  --wa-green: #25D366;
  --wa-bubble: #DCF8C6;

  /* layout */
  --radius: 12px;
  --radius-pill: 999px;
  --container: 1100px;   /* outer max for header/footer */
  --content: 720px;      /* inner max for narrative content */

  /* spacing */
  --section-y: 64px;
  --section-x: 20px;

  /* shadows */
  --shadow-cta: 0 6px 14px -4px rgba(254, 81, 4, 0.45);
  --shadow-card: 0 1px 0 rgba(3, 33, 78, 0.04);
  --shadow-pop: 0 18px 40px -12px rgba(3, 33, 78, 0.18), 0 6px 16px -8px rgba(3, 33, 78, 0.12);
}

/* ---------- Reset (kept minimal — critical CSS already covers most) ---------- */
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- Focus ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--section-x);
  padding-right: var(--section-x);
}
.content {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}
.eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--orange);
}

.section-title {
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--navy);
}
.section-sub {
  margin-top: 8px;
  color: #4B5A77;
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- CTA buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  min-height: 48px;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-block { width: 100%; }
.btn .wa-icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* =========================================================
   Layout placeholders for now (Phase 1).
   Phase 2+ will replace these with real section styles.
   ========================================================= */
.site-header,
.site-footer { min-height: 0; }


/* =========================================================
   PHASE 2 — Header + Hero
   ========================================================= */

/* ---------- Sticky header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: background 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom-color: var(--gray-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 12px;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text__name {
  font-weight: 800; font-size: 15px; letter-spacing: -0.01em;
}
.brand-text__sub {
  font-size: 11px; color: #4B5A77; font-weight: 500; letter-spacing: 0.02em;
}

.btn-sm {
  padding: 9px 14px;
  font-size: 13px;
  min-height: 38px;
  border-radius: 8px;
}
.site-header__cta-label { font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--white);
  padding: calc(var(--section-y) + 28px) var(--section-x) calc(var(--section-y) - 8px);
  overflow: hidden;
  isolation: isolate;
}
.hero__inner { position: relative; z-index: 2; }

.hero__decor {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  pointer-events: none;
}
.hero__decor-panel {
  position: absolute;
  width: 240px; height: 240px;
  background: var(--gray);
  border-radius: 32px;
  transform: rotate(18deg);
  top: -110px; right: -90px;
}
.hero__decor-dot {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--orange);
  top: 36px; right: 36px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}
.badge--soft {
  background: rgba(254, 81, 4, 0.08);
  color: var(--orange);
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}

.hero__title {
  margin: 18px 0 14px;
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.hero__title em {
  font-style: normal;
  color: var(--orange);
  position: relative;
  z-index: 0;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.08em;
  height: 0.18em;
  background: rgba(254, 81, 4, 0.18);
  border-radius: 2px;
  z-index: -1;
}

.hero__sub {
  font-size: clamp(15px, 2.6vw, 17px);
  line-height: 1.55;
  color: #4B5A77;
  margin: 0 0 26px;
  max-width: 520px;
}

.hero__cta { margin-bottom: 18px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: #4B5A77;
}
.hero__trust li {
  display: inline-flex; align-items: center; gap: 6px;
}
.hero__trust .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--orange);
}

/* ---------- Desktop refinements ---------- */
@media (min-width: 768px) {
  :root { --section-y: 96px; --section-x: 24px; }

  .hero {
    padding-top: calc(var(--section-y) + 40px);
  }
  .hero__decor-panel {
    width: 360px; height: 360px;
    top: -140px; right: -100px;
  }
  .hero__decor-dot { top: 56px; right: 60px; width: 16px; height: 16px; }

  .btn-block.hero__cta { width: auto; min-width: 280px; }
  .hero__sub { max-width: 580px; }
}


/* =========================================================
   PHASE 3 — Services
   ========================================================= */

.section-head {
  margin-bottom: 28px;
}
.section-head .section-title { margin-top: 6px; }

.services {
  padding: var(--section-y) 0;
  background: var(--white);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 160ms ease, transform 160ms ease;
}
.service-card:hover {
  border-color: #C9D2E1;
}

/* Image strip: 3 photos in a row */
.service-card__images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: var(--gray-line);
}
.service-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray);
  /* Fallback for browsers that don't support aspect-ratio */
  min-height: 80px;
}
.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}
.service-card:hover .service-card__img img {
  transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
  .service-card__img img { transition: none; }
}

.service-card__body {
  padding: 18px 18px 16px;
}

.service-card__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--gray);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.service-card__icon svg { width: 30px; height: 30px; }

.service-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 6px;
}

.service-card__copy {
  font-size: 14.5px;
  line-height: 1.55;
  color: #4B5A77;
  margin-bottom: 12px;
}

.service-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 16px;
}
.service-card__list li {
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
  background: var(--gray);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  line-height: 1.3;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  padding: 8px 0;
  min-height: 44px;
  align-items: center;
}
.service-card__link .arrow {
  transition: transform 160ms ease;
  font-weight: 600;
}
.service-card__link:hover .arrow {
  transform: translateX(3px);
}

@media (min-width: 768px) {
  .service-card__body { padding: 22px 24px 20px; }
  .service-card__title { font-size: 20px; }
}


/* =========================================================
   PHASE 4 — Cara Minta Quotation
   ========================================================= */

.quotation {
  padding: var(--section-y) 0;
  background: var(--gray);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  margin: 0 0 28px;
}
.timeline__item {
  position: relative;
  padding-left: 60px;
  padding-bottom: 26px;
  min-height: 52px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: -6px;
  width: 2px;
  background: var(--gray-line);
}
.timeline__item:last-child::before { display: none; }

.timeline__num {
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  z-index: 1;
}
.timeline__num--accent {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(254, 81, 4, 0.15);
}

.timeline__title {
  margin: 6px 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.timeline__desc {
  font-size: 14px;
  line-height: 1.55;
  color: #4B5A77;
}

/* ---------- Chat snippet ---------- */
.chat-snippet {
  background: #ECE5DD;
  border-radius: var(--radius);
  padding: 14px 14px 16px;
  margin: 0 0 24px;
}
.chat-snippet__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: block;
}
.chat-snippet__bubble {
  background: var(--wa-bubble);
  border-radius: 10px 2px 10px 10px;
  padding: 10px 12px 8px;
  margin-left: auto;
  max-width: 88%;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  position: relative;
}
.chat-snippet__attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(3, 33, 78, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--navy);
  margin-bottom: 8px;
}
.chat-snippet__attachment svg { color: var(--navy); flex-shrink: 0; }

.chat-snippet__text {
  font-size: 14px;
  line-height: 1.45;
  color: #111;
  margin: 0 0 4px;
}
.chat-snippet__meta {
  font-size: 10px;
  color: #888;
  display: block;
  text-align: right;
}

.quotation__cta { margin-top: 8px; }

@media (min-width: 768px) {
  .quotation__cta { width: auto; min-width: 280px; display: inline-flex; }
}


/* =========================================================
   PHASE 5 — FAQ + Footer + Floating button
   ========================================================= */

/* ---------- FAQ ---------- */
.faq {
  padding: var(--section-y) 0;
  background: var(--white);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 160ms ease;
}
.faq-item.is-open { border-color: #C9D2E1; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.4;
  min-height: 56px;
}
.faq-question:hover { color: var(--navy-text); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #4B5A77;
  transition: transform 220ms ease;
}
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--orange);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}
.faq-answer__inner {
  padding: 0 18px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #4B5A77;
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer { transition: none; }
  .faq-chevron { transition: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: var(--section-y) 0 24px;
  position: static; /* override sticky-header rule from Phase 2 */
}
.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}
.site-footer__logo-card {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 6px;
}
.site-footer__logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.site-footer__tagline-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-footer__brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--white);
}
.site-footer__tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 10px;
}
.site-footer__list { display: flex; flex-direction: column; gap: 8px; }
.site-footer__list li { font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.site-footer__list a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 120ms ease;
  display: inline-block;
  min-height: 32px;
  line-height: 32px;
}
.site-footer__list a:hover { color: var(--white); }

.site-footer__bottom {
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* ---------- Floating WhatsApp button ---------- */
.float-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.6), 0 4px 12px -4px rgba(0, 0, 0, 0.2);
  z-index: 60;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transition: opacity 200ms ease, transform 200ms ease;
}
.float-wa svg { width: 28px; height: 28px; }
.float-wa.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.float-wa:hover { transform: translateY(-2px) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .float-wa { transition: opacity 0ms; transform: none; }
  .float-wa.is-visible { transform: none; }
}


/* =========================================================
   Services bridge callout
   Open-ended services prompt after the 4 service cards.
   ========================================================= */

.services-bridge {
  position: relative;
  margin-top: 22px;
  padding: 22px 20px 22px 22px;
  background: var(--gray);
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.services-bridge__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(254, 81, 4, 0.12);
  color: var(--orange);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.services-bridge__icon svg {
  width: 22px; height: 22px;
}

.services-bridge__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.services-bridge__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.services-bridge__copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #4B5A77;
}

.services-bridge__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  padding: 8px 0;
  min-height: 44px;
  align-self: flex-start;
}
.services-bridge__link .arrow {
  transition: transform 160ms ease;
}
.services-bridge__link:hover .arrow {
  transform: translateX(3px);
}

@media (min-width: 768px) {
  .services-bridge {
    padding: 26px 28px 26px 28px;
    gap: 20px;
  }
  .services-bridge__title { font-size: 17px; }
  .services-bridge__copy { font-size: 14.5px; }
}


/* =========================================================
   FIXES — Logo, spacing, services bridge alignment
   ========================================================= */

/* ---- 3. Header logo (use real logo.png, height-bounded so any
         background in the source image stays small and unobtrusive) ---- */
.site-header__logo {
  height: 36px;
  width: auto;
  display: block;
  border-radius: 6px;
  /* If the logo source has a near-white background, the rounded corners
     keep it tidy; the dark navy/brand mark inside will read clearly. */
}
@media (min-width: 768px) {
  .site-header__logo { height: 42px; }
}

/* ---- 2. Tightening section spacing.
         Mobile reads too airy because each section pads 64px top+bottom
         and hero has extra padding. Trim to a snug rhythm. ---- */
:root {
  --section-y: 48px;
}
@media (min-width: 768px) {
  :root { --section-y: 72px; }
}

/* Hero already has its own internal padding.
   Pull the next section closer for a tighter handoff. */
.hero {
  padding-top: 92px;          /* room for the fixed header */
  padding-bottom: 32px;
}
@media (min-width: 768px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 48px;
  }
}

/* Services starts the rhythm — slightly tighter top so it visually links
   to the hero without a big white gap. */
.services {
  padding-top: 36px;
}
@media (min-width: 768px) {
  .services {
    padding-top: 56px;
  }
}

/* ---- 1. Make services bridge match the card system.
         Same border, radius, and padding as service cards;
         orange accent kept as a tinted top stripe instead of side bar
         so it sits inside the card grid rather than feeling external. ---- */
.services-bridge {
  /* override earlier styles so the bridge looks like a card variant */
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-left: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  margin-top: 14px;       /* same gap as service-list children */
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  overflow: hidden;
}
.services-bridge::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
}
.services-bridge__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(254, 81, 4, 0.10);
  color: var(--orange);
}
@media (min-width: 768px) {
  .services-bridge {
    padding: 26px 24px 22px;
    gap: 16px;
  }
}


/* =========================================================
   Gallery section
   ========================================================= */

.gallery {
  padding: var(--section-y) 0;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
/* Last item spans both columns on mobile to avoid an orphan when the
   total photo count is odd. Reset to single column on desktop. */
.gallery-grid > li:last-child {
  grid-column: 1 / -1;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .gallery-grid > li:last-child {
    grid-column: auto;
  }
}

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  background: var(--gray);
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-item:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item img { transition: none; }
}

/* =========================================================
   Lightbox
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 33, 78, 0.92);
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox[hidden] {
  display: none;
}

.lightbox__stage {
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.lightbox__counter {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lightbox__nav--prev:hover { transform: translate(-2px, -50%); }
.lightbox__nav--next:hover { transform: translate(2px, -50%); }

@media (min-width: 768px) {
  .lightbox__close { top: 24px; right: 24px; width: 48px; height: 48px; }
  .lightbox__nav { width: 48px; height: 48px; }
  .lightbox__nav--prev { left: 24px; }
  .lightbox__nav--next { right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none; }
  .lightbox__close,
  .lightbox__nav { transition: none; }
}

/* prevent body scroll while lightbox is open */
body.lightbox-open {
  overflow: hidden;
}


/* =========================================================
   FIX: Service card images mobile — prevent vertical stacking
   Force the 3-col grid and set explicit height so images
   never collapse to natural flow on small screens.
   ========================================================= */
.service-card__images {
  /* Reinforce: never allow grid to collapse */
  grid-template-columns: repeat(3, 1fr) !important;
  min-height: 0;
}
.service-card__img {
  /* If aspect-ratio is not supported, use padding-based fallback */
  position: relative;
  height: 0;
  padding-bottom: 75%; /* 4:3 ratio fallback */
  aspect-ratio: 4 / 3;
  min-height: unset;
}
/* When aspect-ratio IS supported, override the padding hack */
@supports (aspect-ratio: 4 / 3) {
  .service-card__img {
    height: auto;
    padding-bottom: 0;
  }
}
.service-card__img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@supports (aspect-ratio: 4 / 3) {
  .service-card__img img {
    position: static;
  }
}


/* =========================================================
   Service card images as clickable lightbox triggers
   ========================================================= */
button.service-card__img {
  border: 0;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  display: block;
  background: var(--gray);
}
button.service-card__img:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
  z-index: 1;
}
