/* ═══════════════════════════════════════════════════════════
   beacon.css — shared stylesheet
   Beacon Community Psychology
   ═══════════════════════════════════════════════════════════ */


/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  --sage:        #4a6741;
  --sage-deep:   #3a5332;
  --sage-mid:    #c2d4be;
  --sage-light:  #e8ede7;
  --cream:       #f5f0e8;
  --cream-deep:  #ede6d8;
  --stone:       #6b6560;
  --stone-light: #9b9590;
  --sand:        #9b7b40;
  --sand-light:  #fdf8f0;
  --ink:         #2a2a26;
  --rule:        #d4cfc8;
  --warm-white:  #faf8f4;
}


/* ── BASE ─────────────────────────────────────────────────── */
body {
  font-family: 'Nunito', sans-serif;
  background: var(--warm-white);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}


/* ── TYPOGRAPHY ───────────────────────────────────────────── */

/* h1 — font fundamentals only; size & colour set per-page or
   via .hero-heading */
h1 {
  font-family: 'Lora', serif;
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--sage-deep);
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--sage);
  margin-bottom: 0.6rem;
  margin-top: 0;
}

p {
  margin-bottom: 1rem;
  color: var(--stone);
}

p:last-child {
  margin-bottom: 0;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0;
}

ul li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  font-size: 17px;
  color: var(--stone);
}

ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.82rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage-mid);
}


/* ── LAYOUT ───────────────────────────────────────────────── */
.content-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section + .section {
  border-top: 1px solid var(--cream-deep);
}


/* ── HERO DISPLAY TEXT ────────────────────────────────────── */
/*
  .hero-heading  Large cream h1 for dark-background hero areas.
  .hero-tagline  Large Lora display statement (not a heading).
  .hero-intro    Italic Lora subtitle beneath heading or tagline.

  Pages override font-size, max-width, or colour as needed.
*/
.hero-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 1.2rem;
}

.hero-tagline {
  font-family: 'Lora', serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}

.hero-intro {
  font-family: 'Lora', serif;
  font-size: 1.08rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
  margin-bottom: 0;
}


/* ── EYEBROW PATTERN ──────────────────────────────────────── */
/*
  Used on dark hero sections to label the page category.
  h1.eyebrow-text is the SEO-meaningful label; .eyebrow-line
  flanks it visually with a short horizontal rule.

  .section-label  — same type treatment, standalone (no lines),
                    used on light backgrounds. Sage rather than
                    sage-mid for contrast.
  .profile-label  — same again for cream-background profile pages.
*/
.page-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.eyebrow-line {
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--sage-mid);
  flex-shrink: 0;
}

/* Shared type treatment for all label variants */
.eyebrow-text,
.section-label,
.profile-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* Dark-background version (used inside .page-eyebrow) */
.eyebrow-text {
  color: var(--sage-mid);
}

/* Standalone label, light background */
.section-label {
  color: var(--sage);
  display: block;
  margin-bottom: 1.4rem;
}

/* Profile/bio page label, cream background */
.profile-label {
  color: var(--sage);
  display: block;
  margin-bottom: 1.2rem;
}


/* ── SHARED NAV ───────────────────────────────────────────── */
/*
  Default: transparent overlay on a dark hero image or colour.
  The parent hero must be position: relative for this to work.
  Override with .page-nav for light-background pages (dan-ohare).
*/
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 2.8rem;
}

.nav-logo {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

/* ── DROPDOWN NAV ─────────────────────────────────────────── */
/*
  .nav-item  Wrapper for a top-level link that has sub-pages.
  .nav-dropdown  Hidden panel; shown on hover / focus-within.
  CSS-only — no JS required. Accessible via keyboard with
  :focus-within so Tab users can reach sub-links.
*/
.nav-item {
  position: relative;
}

/* Small downward chevron on parent links */
.nav-item > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.45rem;
  opacity: 0.4;
  vertical-align: middle;
  margin-top: -2px;
  transition: transform 0.15s, opacity 0.15s;
}

.nav-item:hover > a::after,
.nav-item:focus-within > a::after {
  transform: rotate(-135deg);
  opacity: 0.7;
  margin-top: 1px;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -1rem;
  background: rgba(10, 18, 8, 0.97);
  border: 1px solid rgba(194, 212, 190, 0.12);
  border-top: 2px solid var(--sage);
  border-radius: 0 0 8px 8px;
  padding: 0.4rem 0;
  min-width: 160px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 100;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.65rem 1.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  letter-spacing: 0.03em;
  border-bottom: none;
  transition: color 0.12s, background 0.12s;
}

.nav-dropdown a:hover {
  color: var(--cream);
  background: rgba(74, 103, 65, 0.35);
}

.nav-dropdown a.current {
  color: var(--cream);
  background: rgba(74, 103, 65, 0.2);
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.nav-links a.current {
  color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}


/* ── CTA BLOCK ────────────────────────────────────────────── */
/*
  Standard pattern: .cta-wrap (full-width section, sets padding)
  → .cta-inner (constrains to 860px) → .cta-block (the card).

  Pages that need a background colour or top padding set those
  on .cta-wrap in their own <style> block.
*/
.cta-wrap {
  padding: 0 2rem 5.5rem;
}

.cta-inner {
  max-width: 860px;
  margin: 0 auto;
}

.cta-block {
  background: var(--sage);
  border-radius: 14px;
  padding: 3.5rem 3rem;
  margin-top: 1rem;
  text-align: center;
}

.cta-block h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: white;
  margin-bottom: 0.7rem;
}

.cta-block p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.cta-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cream);
  color: var(--sage-deep);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.cta-email i {
  opacity: 0.6;
  flex-shrink: 0;
}

.cta-email-short {
  display: none;
}

@media (max-width: 480px) {
  .cta-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .cta-block {
    border-radius: 0;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .cta-email-long {
    display: none;
  }

  .cta-email-short {
    display: inline;
  }
}


/* ── BUTTONS ──────────────────────────────────────────────── */
/*
  Base .btn class + two variants:
    .btn-primary  Filled cream — for use on dark backgrounds
    .btn-ghost    Outline white — secondary action on dark bg
  Both are inline-flex so they accept icons naturally.
*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 1.5px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--cream);
  color: var(--sage-deep);
  border-color: var(--cream);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}

.btn svg {
  flex-shrink: 0;
  transition: transform 0.15s;
}

.btn:hover svg {
  transform: translateX(3px);
}


/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  padding: 3.5rem 2rem;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-logo {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cream);
  display: block;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}

.footer-email {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-email:hover {
  color: var(--cream);
}

.footer-legal {
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0;
  align-self: end;
}

@media (max-width: 580px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* ── HAMBURGER BUTTON ─────────────────────────────────────── */
/*
  Hidden on desktop; shown at the 680px breakpoint.
  The three bars morph into an X when .site-nav.is-open is set.
*/
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 0;
  position: relative;
  z-index: 2;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after  { top:  7px; }

/* Open state — three bars morph to X */
.site-nav.is-open .nav-toggle-icon              { background: transparent; }
.site-nav.is-open .nav-toggle-icon::before      { transform: rotate(45deg);  top: 0; }
.site-nav.is-open .nav-toggle-icon::after       { transform: rotate(-45deg); top: 0; }


/* ── RESPONSIVE NAV ───────────────────────────────────────── */
@media (max-width: 680px) {
  .site-nav {
    padding: 1.1rem 1.6rem;
  }

  /* Prevent site title wrapping */
  .nav-logo {
    white-space: nowrap;
    font-size: 0.88rem;
  }

  /* Show hamburger, hide inline links */
  .nav-toggle {
    display: block;
  }

  /* ── Drawer ────────────────────────────────────────────── */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(17, 26, 15, 0.98);
    border-top: 1px solid rgba(194, 212, 190, 0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    /* Hidden: collapsed to zero height */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open .nav-links {
    max-height: 640px; /* generous cap — enough for all items */
  }

  /* Top-level plain links */
  .nav-links > a {
    display: block;
    padding: 0.9rem 1.6rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links > a.current {
    color: var(--cream);
  }

  /* Parent items that wrap a dropdown */
  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-item > a {
    display: block;
    padding: 0.9rem 1.6rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
  }

  /* Hide desktop chevron */
  .nav-item > a::after {
    display: none;
  }

  /* Sub-items: always visible, indented — no hover needed */
  .nav-dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    min-width: auto;
    transition: none;
  }

  .nav-dropdown a {
    padding: 0.65rem 1.6rem 0.65rem 3rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.48);
    white-space: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-dropdown a:hover,
  .nav-dropdown a:focus {
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
  }

  /* Remove trailing border on the last item in the drawer */
  .nav-links > *:last-child {
    border-bottom: none;
  }
}


/* ═══════════════════════════════════════════════════════════
   SUPERVISION / SERVICE PAGE — layout blocks that sit inside
   the core-block content area between core/separator blocks.
   These blocks manage their own internal max-width and padding
   but need vertical rhythm that matches the section spacing.
   ═══════════════════════════════════════════════════════════ */


