/* ============================================
   INDEX V2 — OVERRIDES
   Scoped overrides for index-v2.html only.
   Loaded AFTER the inline <style> so it wins.
   ============================================ */

.container {
  max-width: 1280px;
}

/* Legal pages: make the content span the full container width. */
.legal-content {
  max-width: none;
}

/* Contact page: force 50/50 layout (form left, info + testimonials right).
   Stacks on mobile. */
.contact-section .contact-layout {
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: start;
}
@media (max-width: 767px) {
  .contact-section .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   MOBILE POLISH
   Tweaks for narrow viewports that stack beyond
   what the base rules handle.
   ============================================ */

/* Tighter container padding on narrow phones */
@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }
}

/* Hero v2 — shrink oversized type/spacing on narrow phones */
@media (max-width: 600px) {
  .hero-v2 {
    padding: 180px 0 56px;
  }
  .hero-v2__badge {
    font-size: 11px;
    letter-spacing: 1.6px;
    padding: 8px 14px;
    margin-bottom: 22px;
  }
  .hero-v2__headline {
    font-size: clamp(30px, 8.2vw, 40px);
    margin-bottom: 18px;
  }
  .hero-v2__sub {
    font-size: 16px;
    margin-bottom: 28px;
  }
  .hero-v2__btn-primary,
  .hero-v2__btn-secondary {
    padding: 14px 20px;
    font-size: 15px;
  }
  .hero-v2__media {
    max-width: 360px;
  }
  .hero-v2__proof-bar {
    padding: 24px 0;
  }
  .hero-v2__proof {
    gap: 22px 18px;
  }
  .hero-v2__proof-value {
    font-size: 18px;
    gap: 6px;
  }
  .hero-v2__stars {
    font-size: 14px;
  }
  .hero-v2__proof-label {
    font-size: 12px;
  }
}

/* Brisbane coverage map — 450px is too tall on phones. */
@media (max-width: 767px) {
  .brisbane-map {
    height: 340px;
  }
  .brisbane-map__badge {
    top: 14px;
    left: 14px;
  }
}
@media (max-width: 480px) {
  .brisbane-map {
    height: 280px;
  }
}

/* Brand strip — tighter edge fade so more logos are legible */
@media (max-width: 600px) {
  .brand-strip {
    padding: 72px 0;
  }
  .brand-strip-logos {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  }
}

/* Mechanism / Final CTA — scale the cross pattern down so it feels appropriate at small sizes */
@media (max-width: 480px) {
  .mechanism,
  .final-cta,
  .hero-v2 {
    background-size: 56px 56px, 56px 56px, 56px 56px;
  }
}

/* Final CTA layout — tighter gap when stacked */
@media (max-width: 600px) {
  .final-cta__layout {
    gap: 40px;
  }
}

/* Service cards — slightly shorter image so the card isn't dominated by the photo */
@media (max-width: 480px) {
  .services .service-card__image {
    aspect-ratio: 16 / 10;
  }
}

/* FAQ headline — scale down; keep the <br> for cadence */
@media (max-width: 600px) {
  .faq .section-headline {
    font-size: clamp(26px, 7vw, 34px);
  }
  .faq .faq-list {
    margin-top: 24px;
  }
  .faq-question {
    font-size: 15px;
  }
}

/* Guarantee trailing image — smaller radius + gap on phones */
@media (max-width: 600px) {
  .guarantee-image {
    margin-top: 40px;
  }
  .guarantee-image img {
    border-radius: 14px;
  }
}

/* Legal pages — comfortable top spacing on mobile */
@media (max-width: 600px) {
  .legal-content {
    padding: 40px 0 80px;
  }
}

/* About/What-we-do — keep paragraphs readable width, not full container */
@media (max-width: 600px) {
  .what-we-do .body-text {
    font-size: 16px;
  }
}

/* About page — center the What-we-do section (pre-headline, headline, paragraphs) */
.what-we-do {
  text-align: center;
}
.what-we-do .section-headline,
.what-we-do .body-text {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   REVEAL / LOAD ANIMATIONS
   Gated by .v2-anims so no-JS users see full content.
   ============================================ */
.v2-anims .services,
.v2-anims .mechanism,
.v2-anims .how-it-works,
.v2-anims .brand-strip,
.v2-anims .social-proof,
.v2-anims .guarantee,
.v2-anims .faq,
.v2-anims .final-cta,
.v2-anims .hero-v2__proof-bar,
.v2-anims .what-we-do,
.v2-anims .why-choose-us,
.v2-anims .contact-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.v2-anims .is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero loads immediately on page open, staggered */
.v2-anims .hero-v2__badge,
.v2-anims .hero-v2__headline,
.v2-anims .hero-v2__sub,
.v2-anims .hero-v2__cta-row {
  opacity: 0;
  transform: translateY(18px);
  animation: v2-hero-in 0.8s ease-out forwards;
}

.v2-anims .hero-v2__media {
  opacity: 0;
  transform: translateX(28px);
  animation: v2-hero-media-in 0.9s ease-out 0.25s forwards;
}

.v2-anims .hero-v2__badge    { animation-delay: 0.05s; }
.v2-anims .hero-v2__headline { animation-delay: 0.15s; }
.v2-anims .hero-v2__sub      { animation-delay: 0.3s;  }
.v2-anims .hero-v2__cta-row  { animation-delay: 0.45s; }

@keyframes v2-hero-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes v2-hero-media-in {
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .v2-anims .services,
  .v2-anims .mechanism,
  .v2-anims .how-it-works,
  .v2-anims .brand-strip,
  .v2-anims .social-proof,
  .v2-anims .guarantee,
  .v2-anims .faq,
  .v2-anims .final-cta,
  .v2-anims .hero-v2__proof-bar,
  .v2-anims .hero-v2__badge,
  .v2-anims .hero-v2__headline,
  .v2-anims .hero-v2__sub,
  .v2-anims .hero-v2__cta-row,
  .v2-anims .hero-v2__media,
  .v2-anims .what-we-do,
  .v2-anims .why-choose-us,
  .v2-anims .contact-section {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

/* ============================================
   HERO V2
   ============================================ */
.hero-v2 {
  position: relative;
  padding: 200px 0 96px;
  background-color: #024564;
  background-image:
    /* plus marks at grid intersections */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><g stroke='%23ffffff' stroke-opacity='0.18' stroke-width='1' stroke-linecap='round' fill='none'><path d='M32 36 L40 36 M36 32 L36 40'/></g></svg>"),
    /* faint grid lines */
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px, 72px 72px;
  background-position: 0 0, 0 0, 0 0;
  color: #FFFFFF;
  overflow: hidden;
}

.hero-v2::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(125, 205, 234, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.hero-v2 .container {
  position: relative;
  z-index: 1;
}

.hero-v2__layout {
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-v2__inner {
  flex: 1 1 0;
  min-width: 0;
  max-width: 760px;
}

.hero-v2__media {
  flex: 0 0 auto;
  width: 100%;
  max-width: 500px;
}

.hero-v2__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}

@media (max-width: 1024px) {
  .hero-v2__layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .hero-v2__media {
    max-width: 100%;
    align-self: center;
  }
}

.hero-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #B9D7E8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 20px;
  border-radius: 999px;
  margin-bottom: 34px;
}

.hero-v2__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7DCDEB;
  box-shadow: 0 0 0 4px rgba(125, 205, 234, 0.18);
  flex-shrink: 0;
}

.hero-v2__headline {
  font-size: clamp(36px, 6.5vw, 64px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
  max-width: 720px;
}

.hero-v2__highlight {
  color: #7DCDEB;
}

.hero-v2__sub {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-v2__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}

.hero-v2__btn-primary,
.hero-v2__btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0.01em;
}

.hero-v2__btn-primary {
  background: #7DCDEB;
  color: #012E44;
  box-shadow: 0 8px 26px rgba(125, 205, 234, 0.28);
}

.hero-v2__btn-primary:hover {
  background: #9BDCF1;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(125, 205, 234, 0.38);
}

.hero-v2__btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-v2__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-v2__btn-primary svg,
.hero-v2__btn-secondary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Proof bar — separate strip below hero */
.hero-v2__proof-bar {
  background: #024564;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 0;
}

.hero-v2__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.hero-v2__proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.hero-v2__proof-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.hero-v2__stars {
  color: #EDAA03;
  font-size: 16px;
  letter-spacing: 1px;
}

.hero-v2__proof-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

.hero-v2__proof-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .hero-v2 {
    padding: 193px 0 64px;
  }
  .hero-v2__cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-v2__btn-primary,
  .hero-v2__btn-secondary {
    justify-content: center;
  }
  .hero-v2__proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .hero-v2__proof-divider {
    display: none;
  }
}

/* ============================================
   MECHANISM & FINAL-CTA — match hero background pattern
   ============================================ */
.mechanism,
.final-cta {
  position: relative;
  background-color: #024564;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><g stroke='%23ffffff' stroke-opacity='0.18' stroke-width='1' stroke-linecap='round' fill='none'><path d='M32 36 L40 36 M36 32 L36 40'/></g></svg>"),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px, 72px 72px;
  background-position: 0 0, 0 0, 0 0;
  overflow: hidden;
}

.mechanism > .container,
.final-cta > .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   FINAL CTA — 2-column layout
   ============================================ */
.final-cta__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}

.final-cta__form-wrap .callback-form {
  max-width: 100%;
}

/* ============================================
   SERVICE CARDS — image-led layout
   ============================================ */
.services .service-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.services .service-card__image {
  display: block;
  width: calc(100% + 56px);
  max-width: none;
  margin: -32px -28px 20px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.services .service-card p {
  margin-bottom: 20px;
}

.services .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: auto;
  padding: 11px 20px;
  border-radius: 999px;
  background: #7DCDEB;
  color: #012E44;
  transition: background 0.2s, color 0.2s;
}

.services .service-link:hover {
  background: #9BDCF1;
  color: #012E44;
}

/* ============================================
   BRISBANE MAP — animated coverage scene
   ============================================ */
.brisbane-map {
  position: relative;
  width: 100%;
  height: 450px;
  background: #CDDDEA url('../images/BrisbaneMap2.webp') center/cover no-repeat;
  overflow: hidden;
}

.brisbane-map__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #112B3D;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  z-index: 4;
}

.brisbane-map__badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7DCDEB;
  box-shadow: 0 0 0 4px rgba(125, 205, 235, 0.28);
}

.brisbane-map__marker {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.brisbane-map__dot {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3E9FC4;
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.brisbane-map__pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(62, 159, 196, 0.45);
  transform: translate(-50%, -50%);
  animation: bm-pulse 2s ease-out infinite;
  z-index: 1;
}

.brisbane-map__marker--van:nth-child(3) .brisbane-map__pulse { animation-delay: 0.5s; }
.brisbane-map__marker--van:nth-child(4) .brisbane-map__pulse { animation-delay: 1s; }
.brisbane-map__marker--van:nth-child(5) .brisbane-map__pulse { animation-delay: 1.5s; }

@keyframes bm-pulse {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(4);   opacity: 0;   }
}

.brisbane-map__label {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #112B3D;
  color: #FFFFFF;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  z-index: 3;
}

.brisbane-map__marker--client .brisbane-map__dot {
  width: 18px;
  height: 18px;
  background: #EDAA03;
}

.brisbane-map__marker--client .brisbane-map__label {
  background: #EDAA03;
  color: #112B3D;
}

@media (prefers-reduced-motion: reduce) {
  .brisbane-map__pulse {
    animation: none;
    opacity: 0.2;
  }
}

@media (max-width: 600px) {
  .brisbane-map__badge {
    font-size: 12px;
    padding: 8px 12px;
  }
  .brisbane-map__label {
    font-size: 11px;
    padding: 5px 9px;
  }
}

/* ============================================
   GUARANTEE — trailing image
   ============================================ */
.guarantee-image {
  margin-top: 56px;
}

.guarantee-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* ============================================
   FAQ — centered block layout
   ============================================ */
.faq .section-label,
.how-it-works .section-label {
  display: block;
  text-align: center;
}

.faq .section-headline,
.how-it-works .section-headline {
  text-align: center;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.faq .faq-list {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .final-cta__layout {
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
  }
}

/* ============================================
   HEADER CTA — match hero primary button
   ============================================ */
.header-cta a {
  background: #7DCDEB;
  color: #012E44;
}

.header-cta a:hover {
  background: #9BDCF1;
}

.btn-gold {
  background: #7DCDEB;
  color: #012E44;
}

.btn-gold:hover {
  background: #9BDCF1;
  box-shadow: 0 6px 20px rgba(125, 205, 235, 0.3);
}

.btn-submit {
  background: #EDAA03;
  color: #050505;
}

.btn-submit:hover {
  background: #d99b03;
}

/* ============================================
   BRAND STRIP — autoplay carousel, full colour
   ============================================ */
.brand-strip {
  padding: 120px 0;
}

.brand-strip-label {
  margin-bottom: 34px;
}

.brand-strip-logos {
  display: block;
  overflow: hidden;
  gap: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

.brand-strip-logos__track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  /* Marquee is driven from js/main.js via the Web Animations API.
     No CSS `animation` here so there's nothing to visibly "snap" from
     when JS takes over once lazy images finish loading. Hover pause
     is also handled in JS. */
}

.brand-strip-logos img,
.brand-strip-logos__track img {
  height: 40px;
  width: auto;
  opacity: 1;
  filter: none;
  flex-shrink: 0;
  margin: 0 28px;
}

@keyframes brand-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Brand strip animation deliberately ignores prefers-reduced-motion.
   Reason: iOS auto-sets reduce-motion in Low Power Mode, which stopped the
   carousel on most iPhones. The strip is purely decorative so this is an
   acceptable tradeoff. Other site animations still honour the preference. */

@media (max-width: 600px) {
  .brand-strip {
    padding: 60px 0;
  }
  .brand-strip-logos img,
  .brand-strip-logos__track img {
    height: 32px;
    margin: 0 20px;
  }
}

/* ============================================
   MOBILE — halve section vertical padding
   Applies to all content sections except header, hero, and footer.
   ============================================ */
@media (max-width: 600px) {
  .problem,
  .mechanism,
  .services,
  .social-proof,
  .how-it-works,
  .guarantee,
  .faq,
  .final-cta,
  .what-we-do,
  .why-choose-us,
  .contact-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .areas {
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

/* ============================================
   THANKS PAGE
   ============================================ */
.thanks-page {
  padding: 160px 0 120px;
  background: #FAFAFA;
  min-height: calc(100vh - 360px);
  display: flex;
  align-items: center;
}

.thanks-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid #EDEDED;
  border-radius: 16px;
  padding: 56px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
}

.thanks-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(2, 175, 181, 0.12);
  color: #02AFB5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.thanks-check svg {
  width: 40px;
  height: 40px;
}

.thanks-card h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  color: #050505;
  margin-bottom: 14px;
}

.thanks-sub {
  font-size: 16px;
  line-height: 1.65;
  color: #4A4A4A;
  margin-bottom: 28px;
}

.thanks-card .btn-gold {
  display: inline-block;
}

.thanks-return {
  margin-top: 28px;
  font-size: 14px;
}

.thanks-return a {
  color: #4A4A4A;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.thanks-return a:hover {
  color: #02AFB5;
}

@media (max-width: 600px) {
  .thanks-page {
    padding: 120px 0 80px;
  }
  .thanks-card {
    padding: 40px 24px;
  }
}
