/* =========================================================
   Francine Cadogan — Certified Guide, Modern Mystery School
   "Where the Light Meets the Sea"
   ========================================================= */

:root {
  /* Color tokens — from client's brand direction (Barbados / peacock feather) */
  --ivory: #FAF6EE;        /* Soft Ivory — background */
  --white: #FFFFFF;        /* Warm White — sections */
  --aqua: #4FA9A1;         /* Caribbean Aqua — buttons */
  --aqua-deep: #3B8B84;    /* aqua hover */
  --teal: #1B5852;         /* Peacock Teal — headings */
  --ocean: #0E3A4C;        /* Deep Ocean Blue — footer */
  --gold: #C9A24C;         /* Muted Gold — accent lines */
  --seaglass: #A9C9B7;     /* Sea Glass Green — highlights */
  --sandstone: #EAE0C9;    /* Sandstone — secondary backgrounds */
  --ink: #2B3532;          /* body text */
  --ink-soft: #5B6864;     /* secondary text */

  --font-display: "Cormorant Garamond", "Libre Baskerville", serif;
  --font-body: "Inter", "Source Sans 3", sans-serif;

  --radius: 2px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--teal);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em 0;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.2em 0; color: var(--ink); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.8em;
  display: inline-block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Horizon line — the site's signature motif ----
   A thin line that fades from gold to teal, evoking sunlight
   meeting water at the horizon. Used to divide sections and
   underline key headings throughout the site. */
.horizon {
  height: 2px;
  width: 72px;
  background: linear-gradient(90deg, var(--gold), var(--seaglass));
  border: none;
  margin: 1.4em 0 1.8em 0;
}
.horizon.centered { margin-left: auto; margin-right: auto; }
.horizon.wide {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  opacity: 0.5;
}

/* ---- Navigation ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(27, 88, 82, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand img.nav-logo {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}
.brand .brand-sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
  white-space: nowrap;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 10px 0 0 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  transition: color 0.2s ease;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
  border-bottom: 1px solid var(--gold);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--teal);
  cursor: pointer;
}
.search-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--teal);
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-toggle .search-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.25s ease, opacity 0.2s ease;
}
.search-toggle:hover .search-label {
  max-width: 70px;
  opacity: 1;
}
.search-panel {
  display: none;
  background: var(--sandstone);
  border-bottom: 1px solid rgba(27,88,82,0.15);
}
.search-panel.open { display: block; }
.search-panel .container { padding: 18px 32px; }
.search-panel input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid rgba(27,88,82,0.25);
  border-radius: var(--radius);
  font-family: var(--font-body);
  background: var(--white);
}
.search-panel input:focus { outline: 2px solid var(--aqua); }
#searchResults {
  margin-top: 10px;
  max-height: 320px;
  overflow-y: auto;
}
#searchResults a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--teal);
  background: var(--white);
  border-bottom: 1px solid rgba(27,88,82,0.08);
  font-size: 0.92rem;
}
#searchResults a:hover { background: var(--ivory); color: var(--aqua-deep); }
#searchResults .no-results {
  padding: 10px 14px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    display: none;
    border-bottom: 1px solid rgba(27,88,82,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 16px 32px;
    border-bottom: 1px solid rgba(27,88,82,0.06) !important;
    width: 100%;
  }
  .nav-toggle { display: block; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--aqua);
  color: var(--white);
}
.btn-primary:hover { background: var(--aqua-deep); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); }

/* ---- Hero (placeholder visual, swap for real photography) ---- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #EAF4F1 0%, #DCEEEA 38%, var(--aqua) 100%);
}
.hero::before {
  /* soft light glow, evoking "light meets sea" */
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 32px;
}
.hero .eyebrow { color: var(--ocean); }
.hero h1 { color: var(--ocean); }
.hero p.lede {
  font-size: 1.15rem;
  color: var(--teal);
  max-width: 560px;
  margin: 0 auto 1.8em auto;
}

/* Hero with real photography — light overlay + text shadow keeps text
   legible while letting the photo's true brightness and color show through */
.hero-photo {
  background-size: cover;
  background-position: center;
}
.hero-photo::before {
  background: linear-gradient(180deg, rgba(14,58,76,0.22) 0%, rgba(14,58,76,0.28) 55%, rgba(14,58,76,0.38) 100%);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform: none;
}
.hero-photo .eyebrow,
.hero-photo h1,
.hero-photo p.lede {
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0,0,0,0.65), 0 1px 5px rgba(0,0,0,0.7);
}
.hero-photo .eyebrow {
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.9);
}
.hero-subtitle {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.5em;
  color: var(--gold);
  margin-top: 0.15em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.9);
}

.image-placeholder {
  background: linear-gradient(135deg, var(--sandstone), var(--seaglass));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 20px;
  border: 1px dashed rgba(27,88,82,0.25);
}

/* Real photo blocks used in two-column sections */
.photo-block {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}
.logo-block {
  max-width: 260px;
  margin: 1em auto;
}

/* ---- Sections ---- */
.section {
  padding: 96px 0;
}
.section.alt { background: var(--white); }
.section.sand { background: var(--sandstone); }
.section-head {
  max-width: 640px;
  margin: 0 auto 3em auto;
  text-align: center;
}
.section-head p { color: var(--ink-soft); }

/* ---- Cards / Offerings grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 2.5em;
}
.card {
  background: var(--white);
  padding: 40px 30px;
  border-top: 2px solid var(--gold);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(14, 58, 76, 0.08);
}
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card a.card-link {
  display: inline-block;
  margin-top: 1em;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--aqua-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

/* ---- Two column layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
}

/* ---- Quote / pull ---- */
.pull-quote {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--teal);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---- Video grid ---- */
.video-card {
  background: var(--white);
}
.video-thumb {
  aspect-ratio: 16/9;
  width: 100%;
}
.video-card .video-label {
  padding: 18px 4px 0 4px;
  font-size: 0.92rem;
  color: var(--teal);
}

/* ---- Timeline / leadership blocks ---- */
.stack {
  display: flex;
  flex-direction: column;
  gap: 3em;
  max-width: 760px;
  margin: 0 auto;
}
.stack h3 { color: var(--gold); text-transform: uppercase; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.12em; margin-bottom: 0.6em; }
.stack .stack-body h3 { font-family: var(--font-display); text-transform: none; letter-spacing: 0; font-size: 1.4rem; color: var(--teal); }

/* ---- Coming soon banner ---- */
.coming-soon {
  border: 1px dashed var(--gold);
  background: var(--white);
  padding: 40px;
  text-align: center;
  max-width: 560px;
  margin: 3em auto 0 auto;
}
.coming-soon .eyebrow { margin-bottom: 0.4em; }

/* ---- Contact form ---- */
.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px;
}
.form-group { margin-bottom: 22px; }
label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(27,88,82,0.2);
  background: var(--ivory);
  border-radius: var(--radius);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--aqua);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 90px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 1.8em auto; }
.cta-band .horizon.centered { background: linear-gradient(90deg, var(--gold), var(--white)); }

/* ---- Footer ---- */
.site-footer {
  background: var(--ocean);
  color: rgba(255,255,255,0.82);
  padding: 64px 0 32px 0;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-grid h4 {
  color: var(--gold);
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 1em;
}
.footer-grid .brand { color: var(--white); }
.footer-logo-chip {
  background: var(--white);
  display: inline-block;
  padding: 10px 16px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.footer-logo-chip img {
  height: 44px;
  width: auto;
  display: block;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,0.75); }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Offering detail blocks (Services / Classes / Meditation) ---- */
.category-heading {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.2em;
}
.category-heading .eyebrow { color: var(--aqua-deep); }
.category-heading h2 { border-bottom: 1px solid rgba(27,88,82,0.12); padding-bottom: 0.5em; }

.offering {
  padding: 3em 0;
  border-bottom: 1px solid rgba(27,88,82,0.1);
}
/* Services & Meditation offering headings sized up ~25% per client request; Classes left as-is */
body.page-services .offering h3,
body.page-meditation .offering h3 {
  font-size: 1.6875rem;
}
.offering:last-child { border-bottom: none; }
.offering-subtitle {
  font-style: italic;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.8em;
}
.offering ul {
  padding-left: 1.2em;
  margin: 1.2em 0;
  color: var(--ink);
}
.offering li { margin-bottom: 0.5em; }
.offering-note {
  background: var(--sandstone);
  padding: 18px 22px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 1.4em 0;
  border-left: 2px solid var(--gold);
}
.offering-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 1.6em 0;
  padding: 16px 0;
  border-top: 1px solid rgba(27,88,82,0.1);
  border-bottom: 1px solid rgba(27,88,82,0.1);
}
.offering-meta span {
  font-size: 0.85rem;
  color: var(--teal);
}
.offering-meta strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 4px;
}
.offering-cta { margin-top: 1.2em; }

/* Jump nav for long listing pages */
.jump-nav {
  background: var(--white);
  border-bottom: 1px solid rgba(27,88,82,0.08);
  position: sticky;
  top: 73px;
  z-index: 90;
}
.jump-nav .container {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}
.jump-nav a {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  white-space: nowrap;
}
.jump-nav a:hover { color: var(--teal); border-bottom: 1px solid var(--gold); }

.offering-image {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  margin-bottom: 1.4em;
}
.offering-image-portrait {
  display: block;
  width: auto;
  max-width: 320px;
  max-height: 480px;
  object-fit: contain;
  margin: 0 auto 1.6em auto;
}

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
