/* ============================================================
   AquaShine Hero Override — Business Card Brand Alignment
   Color palette: White, Red (#c0211a), Gold (#E8A217), Black
   Blue used only as small accent (badge, phone CTA outline)
   ============================================================ */

/* ---------- CSS Custom Properties (hero scope) ---------- */
:root {
  --as-red:        #c0211a;
  --as-red-dark:   #961a14;
  --as-red-light:  #e03228;
  --as-gold:       #E8A217;
  --as-gold-dark:  #c88810;
  --as-gold-light: #f6c33a;
  --as-black:      #111111;
  --as-white:      #ffffff;
  --as-blue-acc:   #1e56b0; /* accent only */
}

/* ---------- Hero base reset + bright background ---------- */
.hero.hero-bright {
  background: var(--as-white);
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 6rem;
  z-index: 1;
}

/* Remove old dark photo overlay */
.hero.hero-bright::before {
  display: none;
}

/* ---------- Halftone dot texture overlay ---------- */
.hero-halftone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Comic-book halftone: radial gradient dots tiled */
  background-image:
    radial-gradient(circle, rgba(0,0,0,0.07) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
}

/* ---------- Angled red panel — right side splash ---------- */
.hero-panel-red {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: var(--as-red);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
}

/* ---------- Gold accent stripe bottom ---------- */
.hero-panel-gold {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--as-red) 0%, var(--as-gold) 50%, var(--as-red) 100%);
  z-index: 2;
  pointer-events: none;
}

/* ---------- Hero content layout ---------- */
.hero.hero-bright .hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
  animation: slideUp 0.8s ease-out;
}

/* ---------- Text column ---------- */
.hero.hero-bright .hero-text {
  color: var(--as-black);
  z-index: 2;
}

/* ---------- Badge ---------- */
.hero-badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--as-gold);
  color: var(--as-black);
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 3px 3px 0px var(--as-black);
  border: 2px solid var(--as-black);
}

.badge-shield {
  font-size: 1rem;
}

/* ---------- Headline ---------- */
.hero-title.hero-title-bright {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--as-black);
  letter-spacing: -0.01em;
}

.hero-highlight-red {
  color: var(--as-red);
  text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.12);
}

/* ---------- Subheadline ---------- */
.hero-subtitle.hero-subtitle-bright {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 38rem;
}

/* ---------- CTA Buttons ---------- */

/* Primary — Red bg, gold border + shadow for yellow pop */
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--as-red);
  color: var(--as-white);
  text-decoration: none;
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-primary);
  border-radius: 14px;
  letter-spacing: 0.01em;
  border: 3px solid var(--as-gold);
  box-shadow:
    4px 4px 0px var(--as-gold-dark),
    0 0 0 1px var(--as-black);
  transition: all 0.22s ease;
  cursor: pointer;
  width: 100%;
}

.hero-cta-primary:hover {
  background: var(--as-red-dark);
  transform: translate(-2px, -2px);
  box-shadow:
    6px 6px 0px var(--as-gold-dark),
    0 0 0 1px var(--as-black),
    0 0 22px rgba(232, 162, 23, 0.55);
}

.hero-cta-primary:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px var(--as-gold-dark), 0 0 0 1px var(--as-black);
}

/* Secondary — Blue border + blue text, gold hover fill */
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--as-white);
  color: var(--as-blue-acc);
  text-decoration: none;
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-primary);
  border-radius: 14px;
  border: 3px solid var(--as-blue-acc);
  box-shadow: 4px 4px 0px var(--as-blue-acc);
  transition: all 0.22s ease;
  cursor: pointer;
  width: 100%;
}

.hero-cta-secondary:hover {
  background: var(--as-gold-light);
  color: var(--as-black);
  border-color: var(--as-gold-dark);
  box-shadow: 4px 4px 0px var(--as-gold-dark);
  transform: translate(-2px, -2px);
}

.hero-cta-secondary:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px var(--as-blue-acc);
}

/* ---------- Trust badges row ---------- */
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hero-trust-badge {
  background: var(--as-white);
  color: var(--as-black);
  border: 2px solid var(--as-black);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 2px 2px 0px var(--as-black);
  white-space: nowrap;
}

/* ---------- Hero image column ---------- */
.hero-image.hero-image-bright {
  position: relative;
  z-index: 2;
  animation: bounceIn 1s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Give the mascot a subtle gold glow ring on hover */
.hero-image.hero-image-bright:hover .superhero {
  filter: drop-shadow(0 0 24px rgba(232, 162, 23, 0.55));
}

/* Comic-style gold diagonal stripe behind mascot */
.hero-image.hero-image-bright::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(232, 162, 23, 0.12) 50%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

/* ---------- Scroll indicator colour fix ---------- */
.hero.hero-bright .scroll-indicator {
  color: var(--as-black);
}

/* ============================================================
   Responsive — Tablet & Mobile
   ============================================================ */
@media (max-width: 900px) {
  .hero.hero-bright .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle.hero-subtitle-bright {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-trust-row {
    justify-content: center;
  }

  .hero-badge-new {
    justify-content: center;
  }

  /* Push image below text and shrink it slightly */
  .hero-image.hero-image-bright {
    order: -1;
  }

  .hero-image.hero-image-bright .superhero {
    max-height: 300px;
    width: auto;
  }
}

@media (max-width: 600px) {
  .hero.hero-bright {
    padding-top: 5.5rem;
  }

  .hero-title.hero-title-bright {
    font-size: 2rem;
  }

  .hero-subtitle.hero-subtitle-bright {
    font-size: 1rem;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
  }

  .hero-trust-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
  }
}


/* ============================================================
   NAVBAR — Brand Override
   White background · Red accent border · Comic-book CTA
   ============================================================ */

/* ---------- Header shell ---------- */
.header {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  border-bottom: 4px solid var(--as-red) !important;
  box-shadow:
    0 2px 0 var(--as-gold),
    0 4px 20px rgba(0, 0, 0, 0.12) !important;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Condensed on scroll — JS adds .scrolled class OR we use scroll trick */
.header.scrolled {
  border-bottom-width: 3px !important;
  box-shadow:
    0 1px 0 var(--as-gold),
    0 2px 12px rgba(0, 0, 0, 0.1) !important;
}

/* ---------- Logo text ---------- */
.logo-title {
  color: var(--as-black) !important;
  font-weight: 900 !important;
}

.logo-subtitle {
  color: var(--as-red) !important;
  font-weight: 700 !important;
}

/* ---------- Desktop nav links ---------- */
.desktop-nav a,
.desktop-nav button {
  color: var(--as-black) !important;
  font-weight: 600 !important;
  position: relative;
}

/* Red slide-up underline on hover */
.desktop-nav a::after,
.desktop-nav button::after {
  background-color: var(--as-red) !important;
}

.desktop-nav a:hover,
.desktop-nav button:hover {
  color: var(--as-red) !important;
}

/* ---------- Dropdown menus ---------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--as-white);
  border: 2px solid var(--as-black);
  border-radius: 14px;
  box-shadow:
    5px 5px 0px var(--as-black),
    0 8px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 2000;
  animation: dropIn 0.18s ease-out both;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Top red accent stripe on dropdown */
.nav-dropdown-menu::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--as-red), var(--as-gold));
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1.1rem;
  color: var(--as-black) !important;
  font-weight: 600 !important;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-dropdown-menu a:last-child {
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  background: var(--as-red) !important;
  color: var(--as-white) !important;
  padding-left: 1.4rem;
}

/* Show on hover */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

/* Caret rotation on open */
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  display: inline-block;
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

.nav-caret {
  transition: transform 0.2s ease;
  display: inline-block;
}

/* ---------- Header CTA area ---------- */

/* Phone link */
.phone-link {
  color: var(--as-red) !important;
  font-weight: 700 !important;
}

.phone-link:hover {
  background: rgba(192, 33, 26, 0.08) !important;
  color: var(--as-red-dark) !important;
}

/* "Get Free Quote" CTA button — brand red */
.cta-button {
  background: var(--as-red) !important;
  color: var(--as-white) !important;
  border: 2px solid var(--as-black) !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  box-shadow: 3px 3px 0px var(--as-black) !important;
  transition: all 0.2s ease !important;
  text-decoration: none;
}

.cta-button:hover {
  background: var(--as-red-dark) !important;
  transform: translate(-1px, -1px) !important;
  box-shadow: 4px 4px 0px var(--as-black) !important;
}

.cta-button:active {
  transform: translate(1px, 1px) !important;
  box-shadow: 1px 1px 0px var(--as-black) !important;
}

/* ---------- Hamburger ---------- */
.hamburger,
.hamburger::before,
.hamburger::after {
  background: var(--as-black) !important;
}

/* ---------- Mobile nav ---------- */
.mobile-nav {
  border-top: 3px solid var(--as-red) !important;
  background: var(--as-white);
}

.mobile-nav a,
.mobile-nav button,
.mobile-nav summary {
  color: var(--as-black) !important;
  font-weight: 600 !important;
}

.mobile-nav a:hover {
  color: var(--as-red) !important;
}

/* Mobile dropdown details/summary */
.mobile-dropdown summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 0;
  font-weight: 600;
  color: var(--as-black);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mobile-dropdown summary::-webkit-details-marker {
  display: none;
}

.mobile-dropdown summary::after {
  content: '▾';
  margin-left: auto;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.mobile-dropdown[open] summary::after {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--as-red);
  margin: 0.25rem 0 0.5rem;
}

.mobile-dropdown-menu a {
  display: block;
  padding: 0.35rem 0;
  color: var(--as-black) !important;
  text-decoration: none;
  font-size: 0.9rem;
}

.mobile-dropdown-menu a:hover {
  color: var(--as-red) !important;
}

/* Mobile CTA block */
.mobile-cta {
  border-top: 2px solid rgba(0, 0, 0, 0.1) !important;
  padding-top: 1rem;
}

.mobile-cta .cta-button {
  text-align: center;
  display: block;
  width: 100%;
}

/* ---------- Scroll effect via JS .scrolled class ---------- */
/* (JS in main.js already changes background on scroll) */

/* ---------- Responsive: hide desktop nav on mobile ---------- */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex !important;
  }
  .desktop-nav,
  .header-cta {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: none !important;
  }
}
