/* =========================================================
   Phoenix Rising Counseling – styles.header-hero.css
   Header (top bar + main header/nav) and Hero
   (Sections 5–6 from original styles.css, with nav updated:
    always-hamburger main nav)
   ========================================================= */


/* =========================================================
   5. Header (Top Info Bar & Main Header/Nav)
   ========================================================= */

/* Outer header wrapper (top bar + main header) */
.site-header {
  background-color: var(--color-header-bg);
  color: var(--color-text-main);
  border-bottom: 1px solid var(--color-border-subtle);


  /* Stick header to top */
  position: sticky;
  top: 0;
  z-index: 1000;
}


/* ---------- 5.1 Top Info Bar ---------- */

.top-info-bar {
  background-color: var(--color-black);
  color: var(--color-text-on-dark);
  font-size: 0.85rem;
  padding: 0.4rem 1.5rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-info-left,
.top-info-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.top-info-left {
  gap: 0.4rem;
}

.top-info-right {
  gap: 0.6rem;
  justify-content: flex-end;
}

.info-item {
  white-space: nowrap;
}

.info-separator {
  opacity: 0.4;
}

/* Optional phone icon span in top bar */
.top-info-bar .info-icon {
  color: var(--color-accent);
}

/* Emergency line in top bar */
.info-emergency {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 600;
}

/* Social links in top bar */
.social-link {
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--color-text-on-dark);
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--color-accent-soft);
  border-color: var(--color-accent);
  text-decoration: none;
}

/* Top info bar – mobile */
@media (max-width: 768px) {
  .top-info-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem;
  }

  /* Show only phone number and email */
  .top-info-left .info-item:not(.info-phone):not(.info-email) {
    display: none;  /* Hide address */
  }

  .top-info-left .info-item {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
  }

  /* Optionally: hide right section if emergency line is not needed */
  .top-info-right {
    display: none;
  }

  .top-info-left {
    width: 100%;
    justify-content: flex-start;
  }
}


/* ---------- 5.2 Main Header & Navigation ---------- */

.main-header-bar {
  background-color: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border-subtle);
}

/* make header the positioning context for the dropdown */
.main-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .25rem 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;           /* NEW */
}

/* Brand area */
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0; /* allows text to truncate nicely */
}

.site-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-text-on-dark);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.site-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-blue);
}

/* Navigation – ALWAYS HAMBURGER MODE
   - Nav is hidden by default
   - Hamburger (nav-toggle) is always visible
   - When the hidden checkbox is checked, nav appears as a vertical list
*/

/* dropdown nav panel – appears under the header, over hero */
.site-nav {
  display: none;                /* shown when checkbox checked */
  position: absolute;           /* take it out of normal flow */
  top: 100%;                    /* directly below header bar */
  right: 1.5rem;                /* align near Menu button */
  margin-top: 0.5rem;

  width: min(260px, 80vw);      /* panel-style, not full width */
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background-color: var(--color-surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  border: 1px solid var(--color-border-subtle);

  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  z-index: 1100;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-main);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.nav-link-active {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary-soft);
  text-decoration: none;
}

.nav-link:focus-visible {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-accent);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Header CTA container */
.header-cta {
  flex-shrink: 0;
}

/* Nav toggle checkbox */
.nav-toggle-input {
  display: none;
}

/* Nav toggle button – always visible */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  background-color: var(--color-surface-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  gap: 0.4rem;
}

.nav-toggle-icon {
  font-size: 1rem;
}

/* When checkbox is checked, show the nav */
.nav-toggle-input:checked + .nav-toggle + .site-nav {
  display: flex;
}


/* =========================================================
   6. Hero Section
   ========================================================= */

.section-hero {
  position: relative;
  color: var(--color-text-on-dark);
  padding: 0; /* hero controls its own vertical spacing */
  background-image:
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.35)
    ),
    url("../pictures/hero-main.jpg"); /* use the SAME working path here */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Tablet and down */
@media screen and (max-width: 1024px) {
  .section-hero {
    background-position: center center;   /* pull phoenix into frame more */
  }
}

/* Phones */
@media screen and (max-width: 600px) {
  .section-hero {
    background-image:
      linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.45)
      ),
      url("assets/pictures/hero-main-mobile.jpg");  /* mobile crop */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

.section-hero .section-inner {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5rem;   /* clear the header */
  padding-bottom: 5rem;
}

/* Hero heading + text (Markdown-derived) */
.section-hero h1,
.section-hero h2 {
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
  color: var(--color-text-on-dark);
}

/* Hero subheadings in the booking block */
.section-hero h3,
.section-hero h4 {
  color: #fff7ff; /* warm white on the dark hero image */
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-shadow:
          0 0.15em 0.45em rgba(0, 0, 0, 0.85),
          0 0 1em rgba(0, 0, 0, 0.65);
  margin-bottom: 0.75rem;
}


.section-hero p {
  max-width: 36rem;
  margin-bottom: 1.1rem;
  font-size: 1.35rem;
  font-weight: 500;
}

.section-hero em,
.section-hero i {
  font-size: 0.95rem;
  opacity: 0.9;
}


/* Back-to-top link: looks like simple link */
.section-hero a[href="#top"] {
  margin-top: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 0;
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
}

.section-hero a[href="#top"]:hover,
.section-hero a[href="#top"]:focus-visible {
  color: var(--color-accent-soft);
}

/* Hero readability on dark background */
.section-hero h1,
.section-hero h2,
.section-hero p,
.section-hero a {
  color: var(--color-text-on-dark);
}

/* Small-print when used over the dark hero image */
.section-hero .fmt-small-print {
  background: rgba(0, 0, 0, 0.1);        /* stronger dark panel for legibility */
  color: rgba(255, 255, 255, 0.82);      /* soft white, not pure #fff */
  border-radius: 0.75rem;
  max-width: 40rem;
                     /* centers under the booking table */
  
}



/* Hero main heading – stronger emphasis */
.section-hero h1,
.section-hero h2 {
  color: #fff7ff; /* warm white so it glows */
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow:
          0 0.15em 0.45em rgba(0, 0, 0, 0.85),
          0 0 1em rgba(0, 0, 0, 0.65);
}


