/* =========================================================
   ALPINE JANITORIAL — Subpage styles
   Page heroes, service pages (overview, gallery, lightbox, FAQ),
   Privacy Policy, 404. Shared tokens and the contact section
   live in styles.css.
   ========================================================= */

/* =========================
   PAGE HERO
   ========================= */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding: 100px 0 140px;
}
.page-hero-short { padding: 84px 0 124px; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 13, 15, 0.92) 0%, rgba(11, 13, 15, 0.75) 55%, rgba(11, 13, 15, 0.5) 100%);
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  max-width: 780px;
  margin-bottom: 18px;
}
.page-hero-text { font-size: 1.15rem; max-width: 600px; color: rgba(255, 255, 255, 0.8); }
.page-hero .hero-actions { margin-top: 30px; }

/* Privacy: plain hero, no photo or ridge */
.page-hero-plain { padding: 72px 0 64px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: rgba(255, 255, 255, 0.85); }

/* =========================
   SERVICE OVERVIEW
   Copy + "What's included" on the left, one photo on the right.
   ========================= */
.included-title {
  font-size: 1.3rem;
  color: var(--ink);
  margin: 34px 0 16px;
}
.split-reverse .split-media::before { inset: 22px 22px -22px -22px; }
.split-reverse { align-items: start; }
.split-reverse .split-media { margin-top: 8px; }

/* =========================
   MORE DETAIL — three short topics under the overview
   ========================= */
.band-more { padding-top: 0; }
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}
.more-item h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 10px; }
.more-item p { color: var(--muted); }

/* =========================
   GALLERY + LIGHTBOX
   ========================= */
.compare-grid + .gallery-grid { margin-top: 24px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
/* Small galleries (1–2 photos) stay centered instead of leaving empty columns */
.gallery-grid-small {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 640px;
  margin: 0 auto;
}
.gallery-grid-small .gallery-item { aspect-ratio: 3 / 4; }

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  display: block;
  width: 100%;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); opacity: 0.9; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(11, 13, 15, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  /* fades in/out — scripts.js toggles .is-visible (keep LB_SPEED in sync) */
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.is-visible { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox-figure {
  max-width: 100%;
  max-height: 100%;
  text-align: center;
  transform: scale(0.97);
  transition: transform 0.35s var(--ease);
}
.lightbox.is-visible .lightbox-figure { transform: none; }
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  margin: 0 auto;
  border-radius: var(--radius);
  transition: opacity 0.18s ease;
}
.lightbox-figure img.is-swapping { opacity: 0; }
.lightbox-figure figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lightbox-btn {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.lightbox-btn:hover { background: var(--blue); border-color: var(--blue); }
.lightbox-btn[hidden] { display: none; }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* =========================
   FAQ
   ========================= */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 64px;
  align-items: start;
}
.faq-intro { position: sticky; top: calc(var(--header-height) + 32px); }
.faq-intro .section-title { margin-bottom: 14px; }
.faq-intro p { color: var(--muted); }
.faq-intro a { color: var(--blue); font-weight: 700; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 0.3s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--blue);
  transition: transform 0.35s var(--ease);
}
.faq-item.is-open summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--blue); }
/* scripts.js animates the height + opacity of .faq-answer on open/close
   (0.4s — keep FAQ_SPEED in scripts.js in sync). The padding lives on the
   inner <p> so the answer can collapse all the way to 0. */
.faq-answer {
  overflow: hidden;
  transition: height 0.4s var(--ease), opacity 0.3s ease;
}
.faq-answer p { padding: 0 40px 24px 0; color: var(--muted); }

/* =========================
   OTHER SERVICES — one quiet row
   ========================= */
.other-services {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 36px;
}
.other-services-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Three pills + label don't fit one row: label sits above them */
/* Equal-width buttons: a grid of identical columns with the label on its
   own row above. --cols is set in the markup (3 in a row, 4 as a 2x2). */
.other-services-stacked {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 16px 20px;
  max-width: calc(var(--cols, 2) * 380px);
  margin: 0 auto;
}
.other-services-stacked .other-services-label { grid-column: 1 / -1; text-align: center; }
.other-services-stacked .other-service { justify-content: center; padding: 14px 18px; }
.other-services-stacked .other-service strong { white-space: nowrap; }

.other-service {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.other-service .icon { width: 20px; height: 20px; color: var(--blue); }
.other-service strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.other-service .icon-arrow { transition: transform 0.3s var(--ease); }
.other-service:hover { border-color: var(--blue); }
.other-service:hover .icon-arrow { transform: translateX(4px); }

/* =========================
   ABOUT — "Why choose us" columns
   ========================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.value .icon { width: 34px; height: 34px; color: var(--blue); margin-bottom: 18px; }
.value h3 { font-size: 1.45rem; color: var(--ink); margin-bottom: 10px; }
.value p { color: var(--muted); }

/* =========================
   REVIEWS PAGE — all reviews in two calm columns
   ========================= */
.review-wall {
  columns: 2;
  column-gap: 28px;
}
.review-card {
  break-inside: avoid;
  margin-bottom: 28px;
  padding: 34px 34px 30px;
  background: var(--snow);
  border-radius: var(--radius-lg);
}
.review-card .quote-mark { width: 30px; height: 22px; color: var(--blue); margin: 0 0 18px; }
.review-card blockquote { font-size: 1.05rem; line-height: 1.7; color: var(--text); }
.review-card figcaption {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.review-card figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.review-card figcaption span { font-size: 0.9rem; color: var(--muted); }
.review-wall-note { margin-top: 20px; text-align: center; color: var(--muted); }
.review-wall-note a { color: var(--blue); font-weight: 700; border-bottom: 1px solid currentColor; }
.review-wall-note a:hover { color: var(--ink); }

/* =========================
   PRIVACY (prose)
   ========================= */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.6rem; color: var(--ink); margin: 40px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 12px 0 0 22px; display: grid; gap: 8px; }
.prose a { color: var(--blue); font-weight: 700; }
.prose strong { color: var(--text); }

/* =========================
   404
   ========================= */
.page-404 { min-height: 70vh; display: flex; align-items: center; }
.quick-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.quick-links a:hover { color: var(--blue-sky); }
.quick-links .icon { width: 16px; height: 16px; }

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1100px) {
  /* Service buttons: one equal-width column once three across gets tight */
  .other-services-stacked { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 960px) {
  .page-hero { padding: 80px 0 130px; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro { position: static; }
  .split-reverse .split-media { order: -1; }
  .split-reverse .split-media::before { inset: 22px -22px -22px 22px; }
  .values-grid { grid-template-columns: 1fr; gap: 40px; max-width: 560px; margin: 0 auto; }
  .more-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .review-wall { columns: 1; max-width: 640px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .page-hero { padding: 60px 0 110px; }
  .split-reverse .split-media::before { inset: 14px -10px -14px 14px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .other-services { flex-direction: column; align-items: stretch; }
  .other-services-label { text-align: center; }
  .other-service { justify-content: center; }
  .lightbox { padding: 70px 12px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
  .faq-item summary { font-size: 1.05rem; }
  .review-card { padding: 26px 22px 22px; }
  .faq-answer p { padding-right: 0; }
}
