/* ==========================================================
   Lisa Golden Meditation — site stylesheet
   One stylesheet for every page. Change a color or size here
   and it updates everywhere.
   ========================================================== */

/* ---------- 1. Colors and fonts (edit these first) ---------- */
:root {
  --color-text:        #5a5f75;  /* body text (a bit darker than the old site, for contrast) */
  --color-heading:     #4c5166;  /* headings, nav links */
  --color-accent:      #19787b;  /* links and buttons (dark teal) */
  --color-accent-hover:#25afb4;  /* lighter teal, from the old buttons */
  --color-footer-bg:   #4c5166;
  --color-footer-text: #e4e6ee;
  --color-rule:        #e2e4ea;  /* thin dividing lines */
  --color-bg:          #ffffff;
  --color-band:        #e7e7e7;  /* grey section stripes */
  --color-band-light:  #f8f8f8;  /* lighter grey stripe (Teacher page) */

  --font-main: "Roboto Slab", Georgia, "Times New Roman", serif;
  --content-width: 46rem;        /* comfortable reading line length */
}

/* ---------- 2. Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, h4, h5 {
  color: var(--color-heading);
  font-weight: 400;
  line-height: 1.3;
  margin: 2rem 0 0.75rem;
}
h1 { font-size: 2.25rem; font-weight: 700; margin-top: 0; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; font-weight: 700; }
h5 { font-size: 1rem; font-weight: 400; font-style: italic; margin-top: 0.5rem; }

p, ul { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }

strong { font-weight: 700; }

a { color: var(--color-accent); text-underline-offset: 0.15em; }
a:hover { color: var(--color-accent-hover); }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--color-accent-hover);
  outline-offset: 2px;
}

img, video { max-width: 100%; height: auto; display: block; }

/* ---------- 3. Skip link (for keyboard and screen reader users) ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  background: var(--color-heading);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

/* Text that screen readers announce but isn't shown on screen */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 4. Header and navigation ---------- */
.site-header {
  border-bottom: 1px solid var(--color-rule);
  background: var(--color-bg);
}
.site-header .inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.site-logo img { height: 48px; width: auto; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.site-nav li { margin: 0; }
.site-nav a {
  color: var(--color-heading);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
/* "Contact" appears as a dark button in the menu */
.site-nav a.nav-contact {
  background: var(--color-heading);
  color: #fff;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border-bottom: none;
}
.site-nav a.nav-contact:hover,
.site-nav a.nav-contact[aria-current="page"] {
  background: var(--color-accent);
  color: #fff;
}
.site-nav ul { align-items: center; }

/* ---------- 5. Page banner (the photo strip under the menu) ---------- */
.page-banner {
  height: clamp(110px, 16vw, 275px);
  background-color: var(--color-heading);
  background-position: 0 80%;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ---------- 6. Main content area ---------- */
/* .container keeps text to a comfortable reading width.
   .band is a full-width grey stripe (like the old site's grey sections). */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.container-wide { max-width: 64rem; }

.band { background: var(--color-band); }
.band-light { background: var(--color-band-light); }

main { padding-bottom: 0; }

/* Main page headings are centered with a short teal line underneath */
h1 {
  text-align: center;
}
h1::after,
.band h2::after {
  content: "";
  display: block;
  width: 100px;
  margin: 1.5rem auto 0;
  border-bottom: 2px solid var(--color-accent-hover);
}
.band h2 { text-align: center; }

/* A short line under a heading, e.g. "In-person meditation gathering" */
.subtitle { margin-top: -0.25rem; }
.centered { text-align: center; }

/* Lists with teal arrows (like the old site) */
.arrow-list {
  list-style: none;
  padding-left: 0;
}
.arrow-list li {
  position: relative;
  padding-left: 1.75rem;
}
.arrow-list li::before {
  content: "\279c";             /* → arrow */
  position: absolute;
  left: 0;
  color: var(--color-accent-hover);
  font-weight: 400;
}

/* ---------- 7. Teacher page: photo beside text ---------- */
.bio {
  display: grid;
  grid-template-columns: 2fr 1fr;   /* text twice as wide as photo */
  gap: 2.5rem;
  align-items: start;
}
.bio-photo-left { grid-template-columns: 1fr 2fr; }
.bio-photo { width: 100%; }
.bio-text h2 { margin-top: 0; }

/* Thin divider between sections (used on the Events page) */
.event + .event {
  border-top: 1px solid var(--color-rule);
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

/* ---------- 8. Buttons ---------- */
.button {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0.7rem 1.4rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.button:hover { background: var(--color-accent-hover); color: #fff; }

/* ---------- 9. Home page hero (big sky image) ---------- */
.hero {
  background: #4c5166 url("../images/iStock-499849726.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 8rem 1.5rem;
}
.hero h1::after { display: none; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  letter-spacing: 0.03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  margin: 0 0 1rem;
}
.hero .tagline {
  display: inline-block;
  background: rgba(25, 71, 123, 1);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  padding: 0.3rem 0.9rem;
  margin: 0 0 2rem;
}
.hero .buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
/* On the home page, the hero fills the full width and most of the screen */
.home main { max-width: none; padding: 0; }
.home .hero {
  min-height: calc(100vh - 12rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ---------- 10. Video ---------- */
.video { margin: 1.5rem 0 2rem; }
.video video { width: 100%; background: #000; }

/* ---------- 11. Photo row (event pages) ---------- */
.photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.photo-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- 12. Contact form ---------- */
.contact-form { margin-top: 1.5rem; }
.contact-form label {
  display: block;
  font-weight: 400;
  color: var(--color-heading);
  margin-bottom: 0.3rem;
}
.contact-form .field { margin-bottom: 1.25rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid #b9bdca;
  background: #fff;
}
.contact-form textarea { min-height: 10rem; resize: vertical; }
.contact-form .required { font-weight: 300; font-size: 0.9em; }

/* Spam trap: hidden from people, but bots fill it in */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 13. Footer ---------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  text-align: center;
  font-size: 0.9rem;
  padding: 2rem 1.5rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }

/* ---------- 14. Small screens ---------- */
@media (max-width: 40rem) {
  .site-header .inner { justify-content: center; text-align: center; }
  .site-nav ul { justify-content: center; }
  .hero { padding: 5rem 1rem; }
  .container { padding: 2rem 1.25rem; }
  /* Stack photo and text on phones (photo first) */
  .bio, .bio-photo-left { grid-template-columns: 1fr; }
  .bio .bio-photo { order: -1; max-width: 18rem; margin: 0 auto; }
}

/* ---------- Event pages: quotes and price boxes ----------
   Paste this at the end of css/style.css. */

/* A highlighted quotation (e.g. Paul's quote) */
.quote {
  margin: 2.5rem 0 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 3px solid var(--color-accent-hover);
  font-style: italic;
}
.quote p { margin-bottom: 0.75rem; }
.quote footer {
  font-style: normal;
  color: var(--color-heading);
}

/* Price boxes side by side (they stack on phones) */
.price-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.price {
  border: 1px solid var(--color-rule);
  border-top: 4px solid var(--color-accent-hover);
  padding: 1.25rem;
  text-align: center;
}
.price h3 { margin: 0 0 0.5rem; }
.price p { margin: 0; }
.price .amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-heading);
}

/* A small photo with a caption, set beside the text */
.side-photo {
  float: right;
  width: 40%;
  margin: 0.35rem 0 1rem 1.5rem;
}
.side-photo img { width: 100%; height: auto; }
.side-photo figcaption {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-heading);
  margin-top: 0.4rem;
}
/* Keeps the next section from wrapping around the photo */
.band { clear: both; }

/* Bottom photo row with tall (portrait) photos */
.photo-row-tall img { aspect-ratio: 3 / 4; }

/* On phones, the side photo sits above the text instead */
@media (max-width: 40rem) {
  .side-photo { float: none; width: 100%; margin: 1.5rem 0; }
}
