/*
Theme Name: Dyann Heward-Mills
Theme URI: https://dyannhewardmills.com
Author: Dyann Heward-Mills
Description: Custom theme for the Dyann Heward-Mills website - empowering individuals and strengthening community through leadership, coaching, counselling and philanthropy.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dyann
*/

/* ============================================================
   Dyann Heward-Mills — personal site
   Palette: warm ivory, deep pine, sage, muted gold
   Type: Fraunces (display serif) + Inter (body sans)
   ============================================================ */

:root {
  --ivory:        #f7f4ee;
  --ivory-deep:   #efe9df;
  --paper:        #fffdf8;
  --pine:         #2c3f33;
  --pine-soft:    #3c5345;
  --sage:         #7d9483;
  --sage-pale:    #e3e9e1;
  --gold:         #b08446;
  --gold-soft:    #c79a5d;
  --ink:          #28302a;
  --ink-soft:     #55605a;
  --line:         #ddd6c9;

  --maxw: 1120px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 14px;
  --shadow: 0 18px 50px -28px rgba(30, 45, 35, 0.45);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --logo: "Marcellus", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  color: var(--pine);
  margin: 0 0 0.5em;
  letter-spacing: 0;
}

p { margin: 0 0 1.1em; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--pine); }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

/* ------------------------------------------------------------ Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
  max-width: 1640px;
  padding-inline: clamp(1.25rem, 2.6vw, 2.5rem);
}
.brand {
  font-family: var(--logo);
  font-size: 1.72rem;
  font-weight: 400;
  color: var(--pine);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.brand:hover { color: var(--pine); opacity: 0.7; }
.brand .brand-dot { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.2vw, 2.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li:not(:last-child) { position: relative; }
.nav-links a:not(.btn) {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-block: 0.4rem;
}
/* animated underline on hover */
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1rem;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:not(.btn):hover { color: var(--pine); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links .btn { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.73rem; }
/* subtle divider before the CTA */
.nav-links > li:last-child {
  padding-left: clamp(0.6rem, 1.4vw, 1.4rem);
  margin-left: clamp(0.1rem, 0.6vw, 0.6rem);
  border-left: 1px solid var(--line);
}
/* highlighted CTA pill, echoing the reference nav */
.site-nav .btn-primary {
  background: var(--gold);
  color: var(--ivory);
  padding: 0.7rem 1.4rem;
}
.site-nav .btn-primary:hover {
  background: var(--pine);
  color: var(--ivory);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--pine);
  cursor: pointer;
  line-height: 1;
}

/* ------------------------------------------------------------ Hero */
.hero {
  position: relative;
  background: var(--ivory);
  padding: clamp(0.75rem, 1.5vw, 1.25rem) 0 clamp(1rem, 2vw, 1.5rem);
}
.hero-bleed {
  width: 100%;
  max-width: 1640px;
  margin-inline: auto;
  padding-inline: clamp(0.85rem, 2vw, 1.75rem);
}
.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  background: #e9e2d2;
  border-radius: 26px;
  --hero-pad-y: clamp(1.5rem, 3.5vw, 3rem);
  --hero-pad-x: clamp(1.75rem, 5vw, 4.5rem);
  padding: 0 var(--hero-pad-x);
  height: calc(100svh - 128px);
  min-height: 520px;
  overflow: hidden;
}
/* dotted texture behind the photo */
.hero-photo {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  margin: 0 0 0 calc(-1 * var(--hero-pad-x));
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 35%;
}
.hero-copy {
  align-self: center;
  text-align: center;
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}
.hero-name {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 clamp(1rem, 1.8vw, 1.5rem);
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.9rem);
  font-weight: 500;
  line-height: 1.06;
  margin: 0;
}
.hero-copy h1 em {
  font-style: italic;
  position: relative;
  white-space: nowrap;
}
/* hand-drawn accent underline beneath "growth" */
.hero-copy h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.14em;
  height: 0.42em;
  background: no-repeat center / 100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 45 4, 90 4, 132 9 S 180 15, 197 7' fill='none' stroke='%23c9763f' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: left;
  animation: hero-underline 0.7s ease 0.5s forwards;
}
@keyframes hero-underline {
  to { opacity: 1; transform: scaleX(1); }
}
.hero-sub {
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 42ch;
  margin: clamp(1.1rem, 2vw, 1.6rem) auto 0;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
}
.hero-shapes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: clamp(1.5rem, 3.5vw, 2.5rem);
}
.hero-shapes span { width: 34px; height: 34px; display: block; }
.shape-circle { background: #b48aa6; border-radius: 50%; animation: hero-float 3.2s ease-in-out infinite; }
.shape-arrow  { background: #c9763f; clip-path: polygon(0 0, 100% 50%, 0 100%); animation: hero-float 3.2s ease-in-out 0.4s infinite; }
.shape-leaf   { background: #9aa14f; border-radius: 0 60% 60% 60%; transform: rotate(45deg); animation: hero-float-leaf 3.2s ease-in-out 0.8s infinite; }
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes hero-float-leaf {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(-8px); }
}

/* ------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--pine);
  color: var(--ivory);
}
.btn-primary:hover {
  background: var(--pine-soft);
  color: var(--ivory);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: var(--pine);
  color: var(--pine);
}
.btn-ghost:hover {
  background: var(--pine);
  color: var(--ivory);
  transform: translateY(-2px);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

/* ------------------------------------------------------------ Intro band */
.intro {
  padding-block: clamp(1.5rem, 3vw, 2.75rem);
}
.intro-bleed {
  width: 100%;
  max-width: 1640px;
  margin-inline: auto;
  padding-inline: clamp(0.85rem, 2vw, 1.75rem);
}
.intro-panel {
  background: var(--sage-pale);
  border-radius: 26px;
  padding: clamp(2.75rem, 6vw, 6rem) clamp(2rem, 6vw, 6rem);
  min-height: min(72svh, 640px);
}
.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.intro h2 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.08;
}
.intro .body p { font-size: clamp(1.18rem, 1.6vw, 1.5rem); line-height: 1.6; }
.intro .body p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.4rem;
  float: left;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--gold);
}

/* ------------------------------------------------------------ Services */
.services {
  background: var(--ivory);
  padding-block: clamp(1.5rem, 3vw, 2.75rem);
}
.services-bleed {
  width: 100%;
  max-width: 1640px;
  margin-inline: auto;
  padding-inline: clamp(0.85rem, 2vw, 1.75rem);
}
.services-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(2.25rem, 4.5vw, 4.5rem) clamp(1.75rem, 4vw, 4rem);
}
.section-head {
  text-align: center;
  max-width: 48ch;
  margin: 0 auto clamp(1.75rem, 3.5vw, 2.75rem);
}
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-soft); }

/* Large image cards for the four areas */
.pgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.75rem, 3vw, 3rem) clamp(1rem, 1.8vw, 1.6rem);
  align-items: start;
}
.pcard {
  --accent: var(--gold);
  position: relative;
  display: block;
  color: inherit;
}
.pcard:nth-child(1) { --accent: #b06a96; }
.pcard:nth-child(2) { --accent: #c1703a; }
.pcard:nth-child(3) { --accent: #8a9244; }
.pcard:nth-child(4) { --accent: #3c5345; }

.pcard-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 44px -28px rgba(24, 34, 27, 0.55);
}
.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  filter: saturate(1.02) contrast(1.02);
  transition: transform 0.7s cubic-bezier(0.2, 0, 0.2, 1);
}
.pcard-media.art-philanthropy {
  background: linear-gradient(150deg, #3c5345, #6d5a8a);
}
/* keep the coaching subject's head in frame */
.pcard:nth-child(2) .pcard-media img { object-position: center 12%; }
.pcard:hover .pcard-media img { transform: scale(1.04); }

.card-glyph {
  width: 38px;
  height: 38px;
  background: var(--accent);
}
.pcard > .card-glyph {
  position: absolute;
  top: clamp(1rem, 1.6vw, 1.4rem);
  left: clamp(1rem, 1.6vw, 1.4rem);
  z-index: 2;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.4);
}
.glyph-circle  { border-radius: 50%; }
.glyph-arrow   { clip-path: polygon(0 0, 100% 50%, 0 100%); }
.glyph-leaf    { border-radius: 0 60% 60% 60%; transform: rotate(45deg); }
.glyph-diamond { border-radius: 7px; transform: rotate(45deg); }

/* text below the image */
.pcard-body {
  padding: clamp(1.1rem, 1.8vw, 1.6rem) 0.15rem 0;
}
/* kicker: rule + label */
.pcard-body .num {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pcard-body .num::before {
  content: "";
  width: 30px;
  height: 1.5px;
  background: var(--accent);
}
.pcard-body h3 {
  font-size: clamp(1.85rem, 2.6vw, 2.6rem);
  line-height: 1.06;
  color: var(--pine);
  margin: 0.7rem 0 0;
  transition: color 0.25s ease;
}
.pcard:hover .pcard-body h3 { color: var(--accent); }
.pcard-reveal p {
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.25vw, 1.25rem);
  line-height: 1.6;
  margin: 0.7rem 0 1.1rem;
  max-width: 48ch;
}
.pcard .card-link {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.pcard .card-link::after {
  content: "→";
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.pcard:hover .card-link::after { transform: translateX(5px); }

/* ------------------------------------------------------------ Deep service sections */
.service-detail {
  --accent: var(--gold);
  --tint: var(--paper);
  padding-block: clamp(0.75rem, 1.5vw, 1.25rem);
}
#leadership   { --accent: #b06a96; --tint: #f3ebf0; }
#coaching     { --accent: #c1703a; --tint: #f6ece2; }
#counselling  { --accent: #8a9244; --tint: #eef0e2; }
#philanthropy { --accent: #3c5345; --tint: #e6ece6; }

.sd-bleed {
  width: 100%;
  max-width: 1640px;
  margin-inline: auto;
  padding-inline: clamp(0.85rem, 2vw, 1.75rem);
}
.sd-panel {
  background: var(--tint);
  border-radius: 26px;
  padding: clamp(1.75rem, 3.5vw, 3.75rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.75rem, 4vw, 3.75rem);
  align-items: center;
}
/* alternate image / text sides */
.service-detail:nth-of-type(even) .sd-panel { direction: rtl; }
.service-detail:nth-of-type(even) .sd-panel > * { direction: ltr; }

/* image gallery — main across the top, tiles beneath. Images show in full (no crop). */
.sd-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.6rem, 1vw, 0.9rem);
  align-items: start;
}
.sd-gallery > * {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 34px -24px rgba(24, 34, 27, 0.5);
}
/* main photo spans the top, capped to a consistent shape so tall portraits aren't too long */
.sd-gallery > .g-main { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.sd-gallery img { width: 100%; display: block; }
.sd-gallery > .g-main img { height: 100%; object-fit: cover; object-position: center 25%; }
#coaching .g-main img { object-position: center 35%; }
#counselling .g-main img { object-position: center 55%; }
#philanthropy .g-main + .g-main img { object-position: center top; }
/* supporting tiles are a uniform size, framed to keep faces */
.sd-gallery > .g-tile { aspect-ratio: 4 / 3; }
.sd-gallery > .g-tile img { height: 100%; object-fit: cover; object-position: center 22%; }
/* keep heads in frame where the subjects sit near the top */
#philanthropy .sd-gallery > .g-tile img { object-position: center top; }
/* full-width strip at the photo's own proportions — shows in full, no crop, no border */
.sd-gallery > .g-wide { grid-column: 1 / -1; aspect-ratio: auto; }
.sd-gallery > .g-wide img { height: auto; object-fit: fill; object-position: center; }
/* HewardMills logo — full-width white brand strip */
.sd-gallery > .g-logo {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 5;
  background: #fff;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.25rem);
}
.sd-gallery > .g-logo img { width: auto; height: auto; max-width: 68%; max-height: 100%; object-fit: contain; }
/* accent placeholder for photos not yet added */
.g-tile.placeholder {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #2c3f33));
}

.sd-text .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-soft);
}
.sd-text .eyebrow::before {
  content: "";
  width: 30px;
  height: 1.5px;
  background: var(--accent);
}
.sd-text h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.sd-text > p { font-size: clamp(1.02rem, 1.2vw, 1.15rem); }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.tag-list li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pine);
  background: color-mix(in srgb, var(--accent) 16%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
/* accent the primary button per section */
.sd-text .btn-primary { background: var(--accent); }
.sd-text .btn-primary:hover { background: var(--pine); }
.sd-text .btn-ghost { border-color: var(--accent); color: var(--accent); }
.sd-text .btn-ghost:hover { background: var(--accent); color: #fff; }

/* ------------------------------------------------------------ Quote */
.pullquote {
  background: var(--pine);
  color: var(--ivory);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
}
.pullquote blockquote {
  margin: 0 auto;
  max-width: 26ch;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  font-style: italic;
}
.pullquote blockquote::before { content: "“"; color: var(--gold-soft); }
.pullquote blockquote::after { content: "”"; color: var(--gold-soft); }

/* ------------------------------------------------------------ Testimonials */
.t-grid {
  columns: 2;
  column-gap: clamp(1.25rem, 2.5vw, 2rem);
}
.t-card {
  break-inside: avoid;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: 0 10px 30px -26px rgba(30,45,35,0.5);
}
.t-card .quote {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
}
.t-card .who {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.t-card .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  color: #fff;
  background: var(--sage);
  font-size: 1.05rem;
}
.t-card .who b { color: var(--pine); font-family: var(--sans); font-weight: 600; }
.t-card .who span { display: block; font-size: 0.85rem; color: var(--ink-soft); }

.t-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.t-filter button {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}
.t-filter button.active, .t-filter button:hover {
  background: var(--pine);
  color: var(--ivory);
  border-color: var(--pine);
}

/* ------------------------------------------------------------ Events */
.events {
  padding-block: clamp(1.5rem, 3vw, 2.75rem);
}
.events-bleed {
  width: 100%;
  max-width: 1640px;
  margin-inline: auto;
  padding-inline: clamp(0.85rem, 2vw, 1.75rem);
}
.events-panel {
  background: var(--pine);
  color: rgba(247, 244, 238, 0.9);
  border-radius: 26px;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.events-panel .eyebrow { color: var(--gold-soft); }
.events-panel h2 {
  color: var(--ivory);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin-bottom: 1.4rem;
}
.events-panel > .events-body > p:last-of-type { color: rgba(247, 244, 238, 0.8); }

/* Date tile */
.event-date {
  border: 1.5px solid rgba(247, 244, 238, 0.22);
  border-radius: 20px;
  padding: clamp(1.6rem, 3.5vw, 2.6rem) clamp(1rem, 2vw, 1.5rem);
  text-align: center;
  display: grid;
  gap: 0.3rem;
  background: rgba(247, 244, 238, 0.04);
}
.event-month {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-soft);
}
.event-day {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1;
  color: var(--ivory);
}
.event-year {
  font-family: var(--sans);
  letter-spacing: 0.14em;
  color: rgba(247, 244, 238, 0.55);
}

/* Meta rows */
.event-meta {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.event-meta li { display: flex; gap: 0.9rem; align-items: baseline; }
.event-meta span {
  flex: 0 0 auto;
  min-width: 62px;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
}
.events-panel .btn-primary { background: var(--gold); color: var(--pine); }
.events-panel .btn-primary:hover { background: var(--gold-soft); color: var(--pine); }
.events-panel .btn-ghost { border-color: rgba(247, 244, 238, 0.45); color: var(--ivory); }
.events-panel .btn-ghost:hover { background: var(--ivory); color: var(--pine); }

@media (max-width: 720px) {
  .events-panel { grid-template-columns: 1fr; gap: 1.75rem; }
  .event-date { justify-self: start; padding: 1.4rem 2rem; }
  .event-day { font-size: 3rem; }
}

/* Schedule timeline */
.schedule {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: grid;
  gap: 0;
}
.schedule li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(1rem, 3vw, 2.25rem);
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.schedule li:last-child { border-bottom: 1px solid var(--line); }
.s-time {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--gold);
  padding-top: 0.15rem;
}
.s-body b { color: var(--pine); font-size: 1.12rem; }
.s-body p { margin: 0.5rem 0 0; color: var(--ink-soft); font-size: 0.98rem; }

@media (max-width: 560px) {
  .schedule li { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ------------------------------------------------------------ CTA */
.cta {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
}
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta p { color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }

/* ------------------------------------------------------------ Footer */
.site-footer {
  background: var(--pine);
  color: rgba(247,244,238,0.82);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer h4 {
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer .brand-foot {
  font-family: var(--logo);
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  color: var(--ivory);
  margin-bottom: 0.6rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: rgba(247,244,238,0.82); }
.site-footer a:hover { color: var(--gold-soft); }
.foot-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.85rem;
  color: rgba(247,244,238,0.6);
}

/* ------------------------------------------------------------ Page header (subpages) */
.page-head {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
  background:
    radial-gradient(100% 80% at 50% -20%, rgba(125,148,131,0.25), transparent 60%),
    var(--ivory);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.page-head p { color: var(--ink-soft); max-width: 50ch; margin-inline: auto; font-size: 1.1rem; }

/* ------------------------------------------------------------ Retreats specifics */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.audience {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.audience .top {
  height: 140px;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.4rem;
}
.audience .body { padding: 1.6rem; }
.audience .body p { color: var(--ink-soft); margin-bottom: 0; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-list .dot {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sage-pale);
  color: var(--pine);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.1rem;
}
.feature-list b { color: var(--pine); }

/* ------------------------------------------------------------ Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 860px) {
  .hero-panel,
  .intro-grid,
  .sd-panel,
  .footer-grid { grid-template-columns: 1fr; }
  .service-detail:nth-of-type(even) .sd-panel { direction: ltr; }
  .intro h2 { position: static; }
  .hero-panel { min-height: 0; align-items: stretch; padding: 0; height: auto; overflow: hidden; }
  .hero-photo, .hero-copy { min-width: 0; }
  .hero-photo { order: -1; margin: 0; background: none; }
  .hero-photo img { position: static; inset: auto; width: 100%; max-width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
  .hero-copy { padding: clamp(1.75rem, 6vw, 2.5rem) clamp(1.25rem, 5vw, 1.75rem) clamp(1.75rem, 6vw, 2.5rem); }
  .hero-copy h1 { font-size: clamp(1.7rem, 6.6vw, 2.3rem); }
  .pgrid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .t-grid { columns: 1; }
  .footer-grid { gap: 2rem; }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.2rem;
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 0.8rem; }
  .nav-toggle { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .shape-circle, .shape-arrow, .shape-leaf { animation: none; }
  .hero-copy h1 em::after { animation: none; opacity: 1; transform: none; }
}




/* ============================================================
   WordPress block compatibility (image/figure/button wrappers)
   ============================================================ */
.wp-block-image { margin: 0; }
.wp-block-image img { display: block; }
.hero-photo.wp-block-image, .hero-photo.wp-block-image img { height: 100%; }
.sd-gallery .wp-block-image, .pcard-media .wp-block-image { height: 100%; margin: 0; }
figure.wp-block-image { line-height: 0; }






/* g-logo figure fix: centre the logo image inside its block figure wrapper */
.sd-gallery > .g-logo .wp-block-image { display: grid; place-items: center; width: 100%; height: 100%; margin: 0; }
.sd-gallery > .g-logo .wp-block-image img { width: auto; max-width: 68%; max-height: 100%; object-fit: contain; }


/* ============================================================
   WPForms — match the site's styling
   ============================================================ */
.wpforms-container { text-align: left; margin-top: 1.5rem; }
.wpforms-form .wpforms-field-label { color: var(--pine); font-family: var(--sans); font-weight: 600; }
.wpforms-form .wpforms-field-sublabel { color: var(--ink-soft); }
.wpforms-form input[type=text], .wpforms-form input[type=email], .wpforms-form input[type=tel],
.wpforms-form input[type=url], .wpforms-form input[type=number],
.wpforms-form textarea, .wpforms-form select {
  border: 1.5px solid var(--line) !important;
  border-radius: 10px !important;
  background: var(--paper) !important;
  font-family: var(--sans) !important;
  padding: 0.8rem 1rem !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}
.wpforms-form input:focus, .wpforms-form textarea:focus, .wpforms-form select:focus {
  border-color: var(--sage) !important; outline: none !important;
}
.wpforms-form button[type=submit], .wpforms-form .wpforms-submit {
  background: var(--pine) !important;
  color: var(--ivory) !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0.85rem 1.9rem !important;
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.18s ease;
}
.wpforms-form button[type=submit]:hover, .wpforms-form .wpforms-submit:hover {
  background: var(--pine-soft) !important; transform: translateY(-2px);
}
.wpforms-confirmation-container-full { background: var(--sage-pale) !important; border: 0 !important; border-radius: 14px !important; color: var(--pine) !important; }
