/* ============================================
   Hero Banner — Blue & White Theme
   ============================================ */

body[data-page="home"] {
  padding-top: 0;
}

/* ── Hero Section ── */
.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

/* ── Navigation ── */
.hero-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.hero-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.hero-logo {
  justify-self: start;
}

.hero-menu {
  justify-self: center;
}

.hero-nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-lily-icon {
  width: 28px;
  height: 34px;
  color: var(--purple-600);
  flex-shrink: 0;
}

.hero-lily-icon-lg {
  width: 52px;
  height: 62px;
}

.hero-lily-icon-sm {
  width: 22px;
  height: 26px;
}

.hero-menu-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.hero-menu-list a {
  display: block;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-800);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-menu-list a:hover,
.hero-menu-list a.active {
  color: var(--purple-500);
}

.btn-hero-nav {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  border: 1.5px solid var(--purple-600);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.3);
}

.btn-hero-nav:hover {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  color: var(--white);
}

.hero-nav-actions .account-link {
  border-color: rgba(0, 123, 255, 0.35);
  color: var(--purple-700);
  background: var(--glass-bg-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.hero-nav-actions .account-link:hover {
  background: var(--purple-50);
  color: var(--purple-800);
  border-color: var(--purple-600);
}

.hero-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hero-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--purple-700);
  transition: all 0.25s ease;
}

/* ── Hero Slider ── */
.hero-slider {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero-slides {
  flex: 1;
  position: relative;
  width: 100%;
  min-height: calc(100vh - 200px);
  min-height: calc(100dvh - 200px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: opacity 2s ease-in-out, visibility 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide:not(.active) {
  pointer-events: none;
}

/* Full-bleed slide background */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.06);
  opacity: 0;
  transition: opacity 2.2s ease-in-out, transform 8s ease-out;
}

.hero-slide.active .hero-slide-bg img {
  opacity: 1;
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.88) 32%,
    rgba(230, 242, 255, 0.72) 55%,
    rgba(255, 255, 255, 0.35) 78%,
    rgba(255, 255, 255, 0.15) 100%
  );
}

.hero-slide.active .hero-slide-overlay {
  opacity: 1;
}

.hero-slide:nth-child(2) .hero-slide-bg img {
  object-position: center right;
}

.hero-banner-content {
  padding: 20px 0 40px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 2s ease-in-out 0.15s, transform 2s ease-in-out 0.15s;
}

.hero-slide.active .hero-banner-content {
  opacity: 1;
  transform: translateY(0);
}

/* Slider arrows */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  color: var(--purple-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: var(--glass-shadow);
}

.hero-slider-arrow:hover {
  background: var(--purple-600);
  color: var(--white);
  transform: translateY(-50%) scale(1.05);
}

.hero-slider-prev { left: 16px; }
.hero-slider-next { right: 16px; }

/* Slider dots — sits above wave footer */
.hero-bottom {
  flex-shrink: 0;
  position: relative;
  z-index: 12;
  margin-top: -32px;
  padding-top: 32px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(230, 242, 255, 0.92) 32px,
    var(--purple-800) 56px
  );
}

.hero-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 20px 0 16px;
  position: relative;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--purple-500);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-dot:hover {
  background: rgba(0, 123, 255, 0.35);
}

.hero-dot.active {
  background: var(--purple-500);
  transform: scale(1.15);
}

/* ── Hero Body ── */
.hero-banner-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 100px 32px 48px;
  width: 100%;
  min-height: calc(100vh - 200px);
  min-height: calc(100dvh - 200px);
}

/* Brand block */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-brand-name {
  display: block;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--purple-800);
  letter-spacing: 0.04em;
  line-height: 1;
}

.hero-brand-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.hero-brand-tagline span:not(.hero-brand-line) {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--purple-600);
  white-space: nowrap;
}

.hero-brand-line {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--purple-500);
}

/* Headline */
.hero-headline {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.hero-headline-navy {
  display: block;
  color: var(--purple-800);
}

.hero-headline-gold {
  display: block;
  color: var(--purple-600);
}

.hero-headline-divider {
  display: flex;
  justify-content: flex-start;
  margin: 16px 0 20px;
  max-width: 200px;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* CTA Buttons */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-gold);
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  color: var(--white);
  transform: translateY(-2px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--glass-bg-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--purple-700);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--glass-border-blue);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: var(--glass-shadow);
}

.btn-hero-secondary:hover {
  background: var(--purple-50);
  color: var(--purple-800);
}

/* Feature icons */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  list-style: none;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-700);
}

.hero-features svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--purple-600);
}

/* ── Wave Footer ── */
.hero-wave-footer {
  position: relative;
  color: var(--white);
  background: var(--purple-800);
}

.hero-wave-svg {
  display: block;
  width: 100%;
  height: 56px;
  margin-bottom: -1px;
}

.hero-wave-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 8px 24px 24px;
  background: linear-gradient(180deg, rgba(0, 71, 171, 0.75), rgba(0, 55, 130, 0.85));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-wave-content p {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
  line-height: 1.5;
}

.hero-wave-content .hero-lily-icon {
  color: var(--purple-300);
  margin-top: -36px;
  margin-bottom: 4px;
}

/* ── Quick Quote (below hero) ── */
.quick-quote {
  padding: 60px 0;
  background: transparent;
}

.quick-quote .hero-form-card {
  max-width: 480px;
  margin: 0 auto;
}

/* ── Scrolled nav state ── */
.hero-nav.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  box-shadow: var(--glass-shadow-lg);
  padding: 12px 0;
  animation: slideDown 0.3s ease;
  border-bottom: 1px solid var(--glass-border);
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hero-banner-body {
    text-align: center;
    padding: 100px 24px 48px;
    justify-content: center;
  }

  .hero-banner-content {
    max-width: 100%;
  }

  .hero-brand {
    justify-content: center;
  }

  .hero-headline-divider {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-features {
    justify-content: center;
  }

  .hero-slide-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(230, 242, 255, 0.9) 55%,
      rgba(255, 255, 255, 0.75) 100%
    );
  }

  .hero-slider-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-slider-prev { left: 8px; }
  .hero-slider-next { right: 8px; }
}

@media (max-width: 768px) {
  .hero-slides,
  .hero-banner-body {
    min-height: calc(100vh - 180px);
    min-height: calc(100dvh - 180px);
  }

  .hero-banner-body {
    padding: 90px 20px 40px;
  }

  .hero-slider-dots {
    padding: 16px 0 12px;
    gap: 12px;
  }

  .hero-wave-content {
    padding: 6px 20px 20px;
    gap: 8px;
  }

  .hero-wave-content .hero-lily-icon {
    margin-top: -30px;
  }

  .hero-slide-overlay {
    background: rgba(255, 255, 255, 0.92);
  }

  .hero-slide:nth-child(2) .hero-slide-bg img {
    object-position: center top;
  }

  .hero-slider-arrow {
    display: none;
  }

  .hero-nav-inner {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .hero-logo .logo-img {
    height: 81px;
    max-width: 144px;
  }

  .hero-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
  }

  .hero-menu.open {
    opacity: 1;
    visibility: visible;
  }

  .hero-menu-list {
    flex-direction: column;
    gap: 8px;
  }

  .hero-menu-list a {
    color: var(--purple-800);
    font-size: 1rem;
    padding: 14px 24px;
  }

  .hero-menu-list a:hover,
  .hero-menu-list a.active {
    color: var(--purple-500);
  }

  .hero-nav-toggle {
    display: flex;
    z-index: 101;
    position: relative;
  }

  .hero-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hero-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .hero-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .btn-hero-nav {
    display: none;
  }

  .hero-brand-name {
    font-size: 2.25rem;
  }

  .hero-headline {
    font-size: 2.25rem;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-banner {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
