/*
 * Scrolling Transparent Header Styles
 * Header starts transparent over hero, cuts to solid purple on scroll
 * Mobile-first approach - applies to ALL screen sizes
 */

/* ============================================
   ALL SCREEN SIZES - Transparent header effect
   ============================================ */

/* Purple background bar - above page content, below hero content and header */
.header-bg {
  height: 150px; /* Extended to cover header + submenu area */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--color-primary, #6B2D8F); /* Same as hero background */
  z-index: 100; /* Above page content, below hero and header */
  margin-top: 0;
}

@media (max-width: 768px) {
  .header-bg {
    height: 72px; /* Mobile header height */
  }
}

/* Header stays transparent - allows hero to show through, or header-bg to provide white background */
.header {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* ============================================
   MOBILE BASE STYLES (Default - under 768px)
   ============================================ */

body {
  padding-top: 0 !important; /* No padding - hero starts at top */
}

/* Hero SVG Section */
.hero-svg-section {
  position: relative;
  /* Reduced min-height so hero isn't too tall by default (cut roughly in half) */
    min-height: calc(40vh - 88px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a0b2e;
  margin-top: -72px;
  padding-top: 72px;
  z-index: 1; /* Below header */
}
    /* Tablet and Desktop */
  @media (min-width: 768px) {
    .hero-svg-section {
      min-height: 300px;
      margin-top: -88px;
      padding-top: 88px;
      /* Limit the hero height on desktop to prevent it becoming too tall */
      max-height: 400px;
    }
  }
  @media (min-width: 1025px) {
    .hero-svg-section {
      min-height: 300px;
      margin-top: -88px;
      padding-top: 88px;
      /* Keep a cap at larger desktop sizes as well */
      max-height: 400px;
    }
  }

.hero-svg-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-svg-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  color: var(--white, #FFFFFF);
  text-align: left;
}

/* Mobile padding and centering (default) */
.hero-svg-content {
  padding: 40px 30px;
  text-align: center;
}

/* Desktop: make hero content a 1-row, 2-column grid with 9:16 width ratio */
@media (min-width: 768px) {
  .hero-svg-content {
    display: grid;
    grid-template-columns: 9fr 16fr;
    gap: clamp(12px, 2vw, 32px);
    align-items: stretch;
    width: 100%;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(20px, 4vw, 48px);
    max-width: 56ch;
  }

  .hero-image {
    width: 100%;
    height: 100%;
    display: block;
    align-self: stretch;
  }

  .hero-image .hero-svg-background {
    position: static;
    width: 100%;
    height: 100%;
    display: block;
  }
}

.hero-svg-content h1 {
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--white, #FFFFFF);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-svg-content p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
  color: var(--white, #FFFFFF);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* ============================================
   TABLET AND DESKTOP (768px and above)
   ============================================ */

@media (min-width: 768px) {
  body {
    padding-top: 0 !important; /* No padding - hero starts at top */
  }

  .hero-svg-section {
    /* keep the header offset behavior but avoid changing hero min-height here */
    margin-top: 0;
    padding-top: 88px;
  }

  .hero-svg-content h1 {
    font-size: 64px;
  }

  .hero-svg-content p {
    font-size: 20px;
  }
}

/* ============================================
   LARGER DESKTOP (1025px and above)
   ============================================ */

@media (min-width: 1025px) {
  body {
    padding-top: 0 !important; /* No padding - hero starts at top */
  }

  .hero-svg-section {
    margin-top: 0;
    padding-top: 88px;
  }

  .hero-svg-content h1 {
    font-size: 64px;
  }

  .hero-svg-content p {
    font-size: 20px;
  }
}
