/* New Option theme — WordPress-only additions (kept separate from the compiled design CSS). */

/* Service page hero: Contact-page style image banner with the page-hero text. */
.image-hero {
  min-height: clamp(380px, 42vw, 580px);
}
.image-hero .contact-hero-photo {
  object-fit: cover;
  object-position: center;
  /* Override the in-content size cap on the two 720px collages. */
  max-width: none;
  margin-inline: 0;
}
/* Composite (before/after) images are cropped like photos here (no letterbox padding). */
.image-hero .contact-hero-photo.result-collage {
  object-fit: cover;
  padding: 0;
}
.image-hero::after {
  background:
    radial-gradient(ellipse 80% 90% at 60% 40%, rgba(4, 12, 20, 0) 35%, rgba(4, 12, 20, 0.6) 100%),
    linear-gradient(to top, rgba(6, 21, 33, 0.94), rgba(6, 21, 33, 0.5) 60%, rgba(6, 21, 33, 0.55)),
    linear-gradient(rgba(0, 70, 200, 0.1), rgba(0, 70, 200, 0.1));
}
.image-hero .contact-hero-content {
  max-width: 900px;
}
.image-hero .contact-breadcrumbs {
  margin-bottom: 26px;
}
.image-hero .contact-breadcrumbs a,
.image-hero .contact-breadcrumbs span {
  color: #ffffffd9;
}
.image-hero .eyebrow {
  margin-bottom: 14px;
  color: var(--brand-bright, #4c9dff);
}
.image-hero h1 {
  margin-bottom: 18px;
}
.image-hero .image-hero-copy {
  max-width: 640px;
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: #e3eaf3;
}
@media (max-width: 600px) {
  .image-hero {
    min-height: 360px;
  }
  .image-hero .contact-breadcrumbs {
    margin-bottom: 18px;
  }
  .image-hero .image-hero-copy {
    font-size: 16px;
  }
}

/* ---------- Neutral visual treatment (service has no real photo yet) ---------- */
.image-hero--neutral {
  background:
    radial-gradient(ellipse at 78% 18%, rgba(0, 180, 255, 0.22), transparent 55%),
    radial-gradient(ellipse at 12% 90%, rgba(0, 87, 255, 0.28), transparent 60%),
    linear-gradient(135deg, #05070a 0%, #0b1d3a 55%, #0a2a63 100%);
}
.visual-card-media--neutral {
  display: grid;
  place-items: end start;
  padding: 24px;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(0, 180, 255, 0.25), transparent 55%),
    linear-gradient(140deg, #05070a 0%, #0b1d3a 60%, #0a2a63 100%);
}
.neutral-mark {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 85%;
}

/* ---------- Social icons ---------- */
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social-links a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social-links svg { width: 19px; height: 19px; display: block; }
.footer-social { margin-top: 4px; }
.footer-social a { color: #d8e4eb; border: 1px solid rgba(216, 228, 235, 0.28); }
.contact-social { flex-direction: column; align-items: flex-start; }
.contact-social .contact-label { margin: 0; }
.contact-social-links a, .nav-social a { background: var(--brand-tint); color: var(--brand); }
.nav-social { display: none; }
@media (hover: hover) {
  .footer-social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
  .contact-social-links a:hover, .nav-social a:hover { background: var(--brand); color: #fff; }
}
.social-links a:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 3px; }
@media (max-width: 1050px) {
  .navigation .nav-social { display: flex; padding: 22px 0 8px; border-bottom: 0; }
  .navigation .nav-social a { padding: 0; border-bottom: 0; }
}

/* ---------- Google reviews ---------- */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.reviews-track {
  position: relative;
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 2px 8px;
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.reviews-track .review-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
@media (max-width: 1024px) { .reviews-track .review-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 680px) { .reviews-track .review-card { flex-basis: 88%; } }
@media (prefers-reduced-motion: reduce) { .reviews-track { scroll-behavior: auto; } }
.review-card {
  position: relative; /* keeps screen-reader-only text inside the scrolling track */
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  background: #fff; border: 1px solid var(--line); padding: 28px;
  box-shadow: 0 18px 40px -28px rgba(5, 7, 10, 0.35);
}
.review-card header { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-cyan)); color: #fff; font-weight: 700; font-size: 15px;
}
.review-name { margin: 0; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.review-card time { color: var(--muted-foreground); font-size: 13px; }
.review-source svg { width: 22px; height: 22px; display: block; }
.review-stars { display: flex; gap: 3px; margin: 0; color: #f5b301; }
.review-text p { margin: 0 0 10px; color: #334150; font-size: 15px; line-height: 1.7; }
.review-text p:last-child { margin-bottom: 0; }
.review-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; font-size: 14px; cursor: pointer; }
.review-more:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.reviews-controls { display: flex; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.reviews-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 18px; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
.reviews-arrow:disabled { opacity: 0.35; cursor: default; }
.reviews-arrow:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (hover: hover) { .reviews-arrow:not(:disabled):hover { background: var(--brand); border-color: var(--brand); color: #fff; } }
.reviews-google-link { margin-left: auto; }
@media (max-width: 600px) { .reviews-google-link { margin-left: 0; width: 100%; justify-content: space-between; } }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 1024px) { .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .reviews-grid { grid-template-columns: 1fr; } }
.reviews-page-actions { margin-top: 44px; }
.reviews-page-actions .button { display: inline-flex; align-items: center; gap: 12px; }
.reviews-page-actions .button svg { width: 20px; height: 20px; background: #fff; border-radius: 50%; padding: 2px; }

/* Eight top-level menu items (Reviews added): keep the desktop header within the viewport just above the mobile breakpoint. */
@media (min-width: 1051px) and (max-width: 1120px) { .navigation { gap: 13px; } }

/* ---------- Real Work. Real Results. — before/after gallery ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.ba-card { margin: 0; min-width: 0; }
.ba {
  --ba-pos: 50%;
  position: relative; overflow: hidden; aspect-ratio: 3 / 2;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b1626; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.75);
  touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba-after { clip-path: inset(0 0 0 var(--ba-pos)); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--ba-pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.35); z-index: 2; pointer-events: none; }
.ba-handle {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--brand);
  box-shadow: 0 8px 24px rgba(5, 7, 10, 0.35); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ba.is-dragging .ba-handle { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 10px 30px rgba(0, 87, 255, 0.45); }
@media (hover: hover) { .ba:hover .ba-handle { box-shadow: 0 10px 30px rgba(0, 87, 255, 0.4); } }
.ba-badge {
  position: absolute; top: 16px; z-index: 3; padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  color: #fff; pointer-events: none; transition: opacity 0.2s ease;
}
.ba-badge--before { left: 16px; background: rgba(5, 7, 10, 0.86); }
.ba-badge--after { right: 16px; background: var(--brand); }
.ba.ba-hide-before .ba-badge--before, .ba.ba-hide-after .ba-badge--after { opacity: 0; }
.ba-range { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; opacity: 0; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--brand-cyan); outline-offset: 3px; }
.ba:has(.ba-range:focus-visible) .ba-handle { box-shadow: 0 0 0 4px rgba(0, 180, 255, 0.55), 0 8px 24px rgba(5, 7, 10, 0.35); }
.ba-card figcaption { margin-top: 14px; color: var(--on-dark-muted, #b9c6d6); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
@media (max-width: 760px) {
  .ba-grid { grid-template-columns: 1fr; }
  .ba { aspect-ratio: 4 / 3; border-radius: 14px; }
  .ba-handle { width: 48px; height: 48px; }
  .ba-badge { top: 12px; padding: 6px 12px; font-size: 11px; }
  .ba-badge--before { left: 12px; } .ba-badge--after { right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ba-handle, .ba-badge { transition: none; } }

/* Floor Stripping and Sealing card photo: keep the polished floor in view inside the 4:3 card. */
.visual-card-media img[data-photo="new-option/floor-stripping/polished-floor"] { object-position: 50% 68%; }
/* Builders Cleaning card photo: keep the worker and the mirror being cleaned in view inside the 4:3 card. */
.visual-card-media img[data-photo="new-option/builders/gym-mirror-cleaning"] { object-position: 50% 60%; }
/* Carpet and Painting card photos: keep the cleaned carpet / painted floor in view inside the 4:3 card. */
.visual-card-media img[data-photo="new-option/steam-cleaning/carpet-clean-result"] { object-position: 50% 55%; }
.visual-card-media img[data-photo="new-option/painting/garage-floor-painted"] { object-position: 50% 62%; }

/* ---------- Industries page: 12-card dark grid (reuses the homepage .industry-section card style) ---------- */
.industries-page-grid .sectors-grid { gap: 24px; }
.industries-page-grid .visual-card { border-radius: 16px; overflow: hidden; }
.industry-section .visual-card-media--neutral {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(ellipse at 70% 15%, rgba(0, 120, 255, 0.28), transparent 60%),
    linear-gradient(160deg, #0b2347 0%, #081b33 55%, #061521 100%);
}
.industry-section .visual-card-media--neutral .neutral-mark { display: none; }
@media (prefers-reduced-motion: reduce) {
  .industry-section .visual-card .visual-card-media img { transition: none; }
  .industry-section .visual-card:hover .visual-card-media img { transform: none; }
  .industry-section .visual-card:hover .circle-arrow { transform: none; }
}

/* Service pages: inline links to related work and industries. */
.service-links { color: #45535f; }
.service-links a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.service-links a:hover { text-decoration-thickness: 2px; }

/* Roof Cleaning and Painting card: keep the worker's head and the roof in the 4:3 crop. */
img[data-photo="new-option/roof/roof-painting"] { object-position: 50% 25%; }

/* Industry cards (licensed stock photos): crops keep each subject above the title overlay. */
.visual-card-media img[data-photo="sectors/aged-care"] { object-position: 62% 40%; }
.visual-card-media img[data-photo="sectors/childcare"] { object-position: 44% 50%; }
.visual-card-media img[data-photo="sectors/logistics"] { object-position: 50% 50%; }
.visual-card-media img[data-photo="sectors/medical"] { object-position: 62% 50%; }
.visual-card-media img[data-photo="sectors/strata"] { object-position: 50% 38%; }

/* Service Areas: pill list of services (.service-index). */
.service-index { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line, #dde3ea); }
.service-index .eyebrow { margin-bottom: 14px; }
.service-index ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.service-index a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line, #dde3ea); border-radius: 999px; color: var(--ink, #0e1218); font-size: 15px; text-decoration: none; transition: border-color .2s, color .2s; }
.service-index a:hover, .service-index a:focus-visible { border-color: var(--brand); color: var(--brand); }

/* Service Areas: services list + enquiry checklist. */
.service-areas-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.service-areas-detail .service-index { margin-top: 0; padding-top: 0; border-top: 0; }
.service-areas-detail h2 { margin: 0 0 14px; }
.service-areas-detail p { color: #526670; margin: 0 0 20px; }
.service-areas-steps h3 { margin: 0 0 8px; }
@media (max-width: 900px) { .service-areas-detail { grid-template-columns: 1fr; } }
