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

/* =========================
   PAGE HERO
   ========================= */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding: 110px 0 150px;
}
.page-hero-short { padding: 88px 0 130px; }
.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.94) 0%, rgba(11, 13, 15, 0.78) 50%, rgba(11, 13, 15, 0.5) 100%);
}
.page-hero::before {           /* sunburst rising behind the ridge */
  content: '';
  position: absolute;
  right: -10%;
  bottom: -30px;
  width: 900px;
  height: 450px;
  border-radius: 900px 900px 0 0;
  background: repeating-conic-gradient(from -90deg at 50% 100%, rgba(58, 160, 212, 0.18) 0 2.4deg, transparent 2.4deg 6.5deg);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 28%, #000 29%, #000 62%, transparent 75%);
          mask: radial-gradient(circle at 50% 100%, transparent 28%, #000 29%, #000 62%, transparent 75%);
  z-index: 1;
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  max-width: 820px;
  margin-bottom: 20px;
}
.page-hero-text { font-size: 1.15rem; max-width: 640px; color: rgba(255, 255, 255, 0.8); }
.page-hero .hero-actions { margin-top: 32px; }

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

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

/* =========================
   SERVICE OVERVIEW
   ========================= */
.serves {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.serves-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.serves-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.serves-list li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--blue-ice);
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 0.92rem;
}

.included-card {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.included-media { aspect-ratio: 16 / 9; overflow: hidden; }
.included-media img { width: 100%; height: 100%; object-fit: cover; }
.included-body { padding: 32px 32px 30px; }
.included-body h3 { font-size: 1.6rem; color: var(--white); }
.included-card .check-list { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
.included-card .check-list li { color: var(--white); font-weight: 400; }
.included-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
  color: var(--stone);
}

/* =========================
   GALLERY + LIGHTBOX
   ========================= */
.compare-grid + .gallery-grid { margin-top: 28px; }
.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.07); opacity: 0.85; }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 14px 12px;
  background: linear-gradient(transparent, rgba(11, 13, 15, 0.85));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
}

.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;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { max-width: 100%; max-height: 100%; text-align: center; }
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  margin: 0 auto;
  border-radius: var(--radius);
}
.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-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.75fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: start;
}
.faq-intro { position: sticky; top: calc(var(--header-height) + 32px); }
.faq-intro .section-title { margin-bottom: 16px; }
.faq-intro p { color: var(--muted); }
.faq-intro a { color: var(--blue); font-weight: 700; }

.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item[open] { border-color: var(--blue); box-shadow: 0 14px 30px -22px rgba(1, 102, 153, 0.6); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-ice);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 1.3rem;
  transition: transform 0.35s var(--ease), background-color 0.3s ease, color 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--blue); color: var(--white); }
.faq-item summary:hover { color: var(--blue); }
.faq-answer { padding: 0 24px 22px; color: var(--muted); }

/* =========================
   OTHER SERVICES
   ========================= */
.other-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.other-service {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.other-service:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow); }
.other-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--blue-sky);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.other-service > span:nth-child(2) { flex: 1; }
.other-service strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.other-service small { display: block; color: var(--muted); font-size: 0.92rem; line-height: 1.45; margin-top: 2px; }
.other-service > .icon-arrow { color: var(--blue); transition: transform 0.3s var(--ease); }
.other-service:hover > .icon-arrow { transform: translateX(4px); }

/* =========================
   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: 960px) {
  .page-hero { padding: 80px 0 130px; }
  .gallery-grid { gap: 12px; }
  .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .faq-intro { position: static; }
}

@media (max-width: 640px) {
  .page-hero { padding: 60px 0 110px; }
  .page-hero::before { width: 600px; height: 300px; right: -280px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .other-services { grid-template-columns: 1fr; }
  .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; padding: 18px; }
  .faq-answer { padding: 0 18px 18px; }
}
