/*
Theme Name:  Bend Healing Fair
Description: Custom WordPress theme for BendHealingFair.com — 34th Annual Bend Healing Fair. Matches the Divine Healers brand identity (DivineHealers.org).
Version:     1.0.0
Author:      StrategicTech.AI
Text Domain: bendhealingfair
License:     All rights reserved — Divine Healers / StrategicTech.AI
*/

/* ---- Brand tokens ------------------------------------------------------------------ */
:root {
  --bhf-blue:    #1F3A5F;   /* Deep Healing Blue   — headings, primary UI  */
  --bhf-violet:  #7A6C9D;   /* Sacred Violet       — accents, borders       */
  --bhf-bg:      #F9F7F2;   /* Warm Light BG       — page background        */
  --bhf-gold:    #D4AF37;   /* Accent Gold         — hover, highlights      */
  --bhf-body:    #2B2B2B;   /* Body Charcoal       — body copy              */
  --bhf-mist:    #A8B6C8;   /* Mist                — dividers, secondary    */
  --bhf-white:   #FFFFFF;
  --bhf-radius:  6px;
  --bhf-max-w:   960px;
}

/* ---- Reset / base ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bhf-bg);
  color: var(--bhf-body);
  font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;   /* 17px — comfortable reading size */
  line-height: 1.7;
}

/* ---- Typography -------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: var(--bhf-blue);
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

a {
  color: var(--bhf-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--bhf-gold);
  outline: none;
}

a:focus-visible {
  outline: 2px solid var(--bhf-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

strong { font-weight: 700; }
em     { font-style: italic; }

/* ---- Layout wrappers --------------------------------------------------------------- */
.bhf-container {
  max-width: var(--bhf-max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---- Skip link (accessibility) ----------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  z-index: 9999;
  background: var(--bhf-blue);
  color: var(--bhf-white);
  padding: 0.5rem 1rem;
  border-radius: var(--bhf-radius);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* ---- Site header ------------------------------------------------------------------- */
.site-header {
  background: var(--bhf-blue);
  padding: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-header__branding {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.site-header__logo {
  height: 52px;
  width: auto;
}

.site-header__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--bhf-white);
  margin: 0;
  line-height: 1.2;
}

.site-header__tagline {
  font-size: 0.8125rem;
  color: var(--bhf-mist);
  margin: 0;
  line-height: 1.3;
}

/* ---- Primary navigation ------------------------------------------------------------ */
.primary-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.primary-nav a {
  display: inline-block;
  padding: 0.4rem 0.875rem;
  color: var(--bhf-white);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--bhf-radius);
  transition: background 0.2s, color 0.2s;
}

.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav .current-menu-item > a {
  background: var(--bhf-gold);
  color: var(--bhf-blue);
  outline: none;
}

/* ---- Hero banner ------------------------------------------------------------------- */
.bhf-hero {
  background: linear-gradient(135deg, var(--bhf-blue) 0%, var(--bhf-violet) 100%);
  color: var(--bhf-white);
  text-align: center;
  padding: 4rem 1.5rem 3.5rem;
}

.bhf-hero h1 {
  color: var(--bhf-white);
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}

.bhf-hero .bhf-hero__subtitle {
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.1875rem;
  color: var(--bhf-mist);
  margin: 0 auto 1.75rem;
  max-width: 640px;
}

/* ---- Buttons ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--bhf-radius);
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--bhf-gold);
  color: var(--bhf-blue);
  border-color: var(--bhf-gold);
}

.btn--primary:hover,
.btn--primary:focus {
  background: #c09b28;
  border-color: #c09b28;
  color: var(--bhf-blue);
}

.btn--outline {
  background: transparent;
  color: var(--bhf-white);
  border-color: var(--bhf-white);
}

.btn--outline:hover,
.btn--outline:focus {
  background: var(--bhf-white);
  color: var(--bhf-blue);
}

/* ---- Content sections -------------------------------------------------------------- */
.bhf-section {
  padding-block: 3rem;
}

.bhf-section--alt {
  background: #EEE9DF;
}

.bhf-section__heading {
  font-size: 2rem;
  color: var(--bhf-blue);
  margin-bottom: 1.25rem;
  padding-bottom: 0.625rem;
  border-bottom: 3px solid var(--bhf-violet);
  display: inline-block;
}

/* ---- Event detail cards ------------------------------------------------------------ */
.bhf-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.bhf-event-card {
  background: var(--bhf-white);
  border: 1px solid var(--bhf-mist);
  border-top: 4px solid var(--bhf-violet);
  border-radius: var(--bhf-radius);
  padding: 1.375rem 1.25rem 1.25rem;
}

.bhf-event-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bhf-violet);
  margin-bottom: 0.375rem;
}

.bhf-event-card__value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  color: var(--bhf-blue);
  font-weight: 700;
  margin: 0;
}

/* ---- Flyer download box ------------------------------------------------------------ */
.bhf-flyer-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bhf-white);
  border: 1px solid var(--bhf-mist);
  border-left: 5px solid var(--bhf-gold);
  border-radius: var(--bhf-radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.bhf-flyer-box__text {
  flex: 1;
  min-width: 200px;
}

.bhf-flyer-box__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  color: var(--bhf-blue);
  margin: 0 0 0.25rem;
}

.bhf-flyer-box__desc {
  font-size: 0.9375rem;
  color: var(--bhf-body);
  margin: 0;
}

/* ---- Photo gallery (simple grid) -------------------------------------------------- */
.bhf-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.bhf-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--bhf-radius);
  display: block;
}

/* ---- Divider ----------------------------------------------------------------------- */
.bhf-rule {
  border: none;
  border-top: 1px solid var(--bhf-mist);
  margin-block: 2rem;
}

/* ---- Contact section --------------------------------------------------------------- */
.bhf-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.bhf-contact-card {
  background: var(--bhf-white);
  border: 1px solid var(--bhf-mist);
  border-radius: var(--bhf-radius);
  padding: 1.5rem;
}

.bhf-contact-card h3 {
  color: var(--bhf-blue);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

/* ---- Site footer ------------------------------------------------------------------- */
.site-footer {
  background: var(--bhf-blue);
  color: var(--bhf-mist);
  padding-block: 2rem;
  margin-top: 0;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.site-footer a {
  color: var(--bhf-mist);
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--bhf-gold);
}

.site-footer__copy {
  font-size: 0.875rem;
  margin: 0;
}

/* ---- Page content (WordPress editor output) --------------------------------------- */
.entry-content p,
.entry-content ul,
.entry-content ol {
  max-width: 72ch;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--bhf-radius);
}

/* ---- 404 ------------------------------------------------------------------- */
.bhf-404 {
  text-align: center;
  padding: 5rem 1.5rem;
}

/* ---- Responsive -------------------------------------------------------------------- */
@media (max-width: 640px) {
  .bhf-hero h1 { font-size: 2rem; }
  .bhf-hero    { padding-block: 2.5rem; }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-nav {
    width: 100%;
  }
}

/* ---- Modalities list --------------------------------------------------------------- */
.bhf-modalities-list {
  font-size: 1.05rem;
  color: var(--bhf-violet);
  line-height: 2;
  max-width: 720px;
  margin-inline: auto;
}

/* ---- Fundraiser callout ------------------------------------------------------------ */
.bhf-hero__fundraiser {
  font-size: 1.05rem;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  max-width: 600px;
  margin-inline: auto;
  opacity: 0.92;
}
