/* =========================================================
   THE GROUNDED PROJECT — Shared Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..500&family=Work+Sans:wght@300;400;500;600&display=swap');

/* ---------- Design tokens ---------- */
:root{
  /* Brand palette */
  --cream:        #F5EEE8;
  --cream-deep:   #EFE4D8;
  --forest:       #A8BCA6;
  --forest-dark:  #4F5F45;
  --sage:         #A8BCA6;
  --sage-light:   #A8BCA6;
  --slate:        #7896A2;
  --slate-deep:   #6B8FA0;
  --taupe:        #C4B49A;
  --sand:         #B8AA93;
  --ink:          #3F4A3B;
  --white:        #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;

  /* Spacing / layout */
  --container: 1180px;
  --gap: clamp(1.25rem, 2vw, 2.5rem);
  --section-pad: clamp(3.5rem, 8vw, 7rem);
  --radius: 6px;
}

/* ---------- Reset / base ---------- */
*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: var(--forest-dark); text-decoration: none; }
ul{ list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; }
h2{ font-size: clamp(2rem, 4vw, 2.9rem); }
h3{ font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4{ font-size: 1.05rem; }

p{ max-width: 62ch; }
p.lead{
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  color: var(--forest-dark);
}

.eyebrow{
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-block;
  margin-bottom: 0.9rem;
}

/* ---------- Layout helpers ---------- */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.section{
  padding: var(--section-pad) 0;
}
.section--alt{
  background: var(--cream-deep);
}
.section--forest{
  background: var(--forest-dark);
  color: var(--cream);
}
.section--forest h2, .section--forest h3{ color: var(--cream); }
.section--forest p{ color: var(--sage-light); }

.grid{
  display: grid;
  gap: var(--gap);
}
@media (min-width: 600px){
  .grid--2{ grid-template-columns: 1fr 1fr; }
  .grid--3{ grid-template-columns: repeat(2, 1fr); }
  .grid--4{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px){
  .grid--3{ grid-template-columns: repeat(3, 1fr); }
  .grid--4{ grid-template-columns: repeat(4, 1fr); }
}

.center{ text-align: center; }
.center p{ margin-inline: auto; }

.section-head{
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head.center{ margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Calming blue ripple on click */
.btn .ripple{
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(206, 224, 231, 0.75) 0%, rgba(120, 150, 162, 0.4) 45%, rgba(120, 150, 162, 0) 75%);
  transform: scale(0);
  opacity: 1;
  animation: ripple-out 950ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes ripple-out{
  to{
    transform: scale(1);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce){
  .btn .ripple{ display: none; }
}
.btn--primary{
  background: var(--white);
  color: var(--forest-dark);
  border-color: var(--sage-light);
}
.btn--primary:hover{
  background: var(--sage-light);
  border-color: var(--sage-light);
}

.btn--ghost{
  border-color: currentColor;
  color: inherit;
  background: transparent;
}
.btn--ghost:hover{
  background: rgba(255,255,255,0.12);
}
.btn--outline-dark{
  border-color: var(--forest-dark);
  color: var(--forest-dark);
  background: transparent;
}
.btn--outline-dark:hover{
  background: var(--forest-dark);
  color: var(--cream);
}

/* ---------- Site header / nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(107,127,94,0.15);
}
.site-header .container{
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.5rem);
  height: 84px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest-dark);
}
.brand .brand-mark{ width: 38px; height: 38px; flex-shrink: 0; }
.brand-logo{
  width: 46px; height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(107,127,94,0.2);
}
.brand-logo img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.18);
}
.brand .brand-tail{
  font-weight: 400;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  display: block;
  color: var(--slate);
  font-family: var(--font-body);
  font-weight: 600;
}
.brand-text{ display: flex; flex-direction: column; line-height: 1.2; }

.nav{
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.6vw, 2rem);
}
.nav a{
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.3rem 0;
  white-space: nowrap;
}
.nav a:hover, .nav a.active{ color: var(--forest-dark); }
.nav a.active::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--slate);
}
.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span{
  width: 22px; height: 2px; background: var(--forest-dark);
}

/* ---------- Language selector ---------- */
.lang-switch{
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.lang-instruction{
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--forest-dark);
  white-space: nowrap;
}
.lang-toggle{
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1.5px solid var(--taupe);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--forest-dark);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.lang-toggle svg{ width: 13px; height: 13px; flex-shrink: 0; }
.lang-menu{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid rgba(107,127,94,0.18);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(63,74,59,0.14);
  min-width: 150px;
  padding: 0.4rem;
  display: none;
  z-index: 200;
}
.lang-menu.open{ display: block; }
.lang-menu button{
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--ink);
  cursor: pointer;
}
.lang-menu button:hover{ background: var(--cream-deep); }
.lang-menu button.active{
  background: var(--cream-deep);
  color: var(--forest-dark);
  font-weight: 600;
}

@media (max-width: 560px){
  .lang-instruction{ display: none; }
}

@media (max-width: 999px){
  .nav-toggle{ display: flex; }
  .nav{
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem clamp(1.25rem, 5vw, 3rem) 2rem;
    border-bottom: 1px solid rgba(107,127,94,0.15);
    display: none;
    gap: 1rem;
  }
  .nav.open{ display: flex; }
  .nav .btn{ margin-top: 0.5rem; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: clamp(480px, 88vh, 880px);
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--cream);
}
.hero::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(63,74,59,0.05) 0%, rgba(47,56,42,0.78) 100%);
}
.hero-content{
  position: relative;
  z-index: 1;
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
  max-width: 760px;
}
.hero .eyebrow{ color: var(--sage-light); }
.hero h1{ color: var(--cream); }
.hero p.lead{ color: var(--cream-deep); font-style: normal; }
.hero-actions{
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ---------- Pillars / feature cards ---------- */
.pillar{
  background: var(--white);
  border: 1px solid rgba(107,127,94,0.15);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}
.pillar svg{ width: 40px; height: 40px; margin-bottom: 1.2rem; }
.pillar h3{ margin-bottom: 0.6rem; }
.pillar p{ font-size: 0.95rem; }

/* ---------- Approach / numbered list rows ---------- */
.approach-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 2.2rem 0;
  border-top: 1px solid rgba(107,127,94,0.18);
}
.approach-row:last-child{ border-bottom: 1px solid rgba(107,127,94,0.18); }
@media (min-width: 760px){
  .approach-row{ grid-template-columns: 200px 1fr; align-items: start; }
}
.approach-row .tag{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.32rem;
  color: var(--slate-deep);
}

/* ---------- Founders ---------- */
.founder-card{
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.founder-photo{
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--cream-deep);
  max-width: 280px;
}
.founder-photo img{ width: 100%; height: 100%; object-fit: cover; }
.founder-card h3{ margin-bottom: 0.2rem; }
.founder-role{
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  margin-bottom: 0.9rem;
  display: block;
}
.founder-card p{ font-size: 0.97rem; }

/* ---------- Quote / CTA banner ---------- */
.cta-band{
  background: var(--forest-dark);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.cta-band h2{ color: var(--cream); margin-bottom: 1rem; }
.cta-band p{ color: var(--sage-light); margin: 0 auto 2rem; }

/* ---------- Signature constellation motif ---------- */
.motif{
  display: block;
  opacity: 0.9;
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--forest-dark);
  color: var(--cream-deep);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.footer-grid{
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(245,238,232,0.15);
}
@media (min-width: 600px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px){
  .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer .brand{ color: var(--cream); }
.site-footer .brand .brand-tail{ color: var(--sage-light); }
.site-footer h4{
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a{ color: var(--cream-deep); }
.site-footer a:hover{ color: var(--white); }
.site-footer li{ margin-bottom: 0.6rem; font-size: 0.95rem; }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--sage-light);
}

/* ---------- Page hero (non-home pages) ---------- */
.page-hero{
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.page-hero .eyebrow{ display: block; }
.page-hero p.lead{ margin: 1.2rem auto 0; max-width: 640px; }

/* ---------- Program blocks ---------- */
.program-block{
  padding: 2.5rem 0;
  border-top: 1px solid rgba(107,127,94,0.18);
}
.program-block:first-of-type{ border-top: none; padding-top: 0; }

/* ---------- Forms ---------- */
.form{ max-width: 760px; }
.form-row{
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
@media (min-width: 600px){
  .form-row--2{ grid-template-columns: 1fr 1fr; }
}
.form label{
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
  color: var(--forest-dark);
}
.form input, .form select, .form textarea{
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--taupe);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus{
  outline: 2px solid var(--slate);
  outline-offset: 1px;
}
.form textarea{ min-height: 110px; resize: vertical; }
.form-note{
  font-size: 0.85rem;
  color: var(--sand);
  margin-top: 0.8rem;
}

/* Session option cards */
.session-options{
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.6rem;
}
@media (min-width: 700px){
  .session-options{ grid-template-columns: repeat(4, 1fr); }
}
.session-option{ position: relative; }
.session-option input{
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  cursor: pointer;
}
.session-option label{
  display: block;
  border: 1.5px solid var(--taupe);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  background: var(--white);
  transition: all 0.15s ease;
}
.session-option label small{
  display: block;
  font-weight: 400;
  color: var(--sand);
  font-size: 0.78rem;
  margin-top: 0.3rem;
}
.session-option input:checked + label{
  border-color: var(--slate);
  background: var(--cream-deep);
  box-shadow: inset 0 0 0 1.5px var(--slate);
}
.session-option input:focus-visible + label{
  outline: 2px solid var(--slate);
}

/* Social icon row */
.social-row{
  display: flex;
  gap: 0.9rem;
}
.social-row a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--taupe);
  color: var(--forest-dark);
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.social-row a:hover{
  background: var(--forest-dark);
  color: var(--cream);
  border-color: var(--forest-dark);
}
.social-row svg{ width: 20px; height: 20px; }

/* Info list (contact details) */
.info-list li{
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
  font-size: 1.02rem;
}
.info-list svg{
  width: 22px; height: 22px;
  flex-shrink: 0; margin-top: 2px;
  color: var(--slate);
}
.info-list a{ color: var(--ink); }
.info-list a:hover{ color: var(--forest-dark); }

/* Map embed */
.map-embed{
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(107,127,94,0.15);
}
@media (min-width: 600px){
  .map-embed{ padding-top: 75%; }
}
.map-embed iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Card (used for booking summary / highlight boxes) */
.note-card{
  background: var(--white);
  border: 1px solid rgba(107,127,94,0.15);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  font-size: 0.95rem;
}

/* ---------- About page founder bios ---------- */
.about-founder{
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(107,127,94,0.18);
}
.about-founder:first-of-type{ border-top: none; padding-top: 0; }
@media (min-width: 760px){
  .about-founder{ grid-template-columns: 240px 1fr; align-items: start; }
}
.about-founder .founder-photo{ max-width: 240px; margin: 0; }
.about-founder p{ margin-bottom: 1rem; }
.about-founder .founder-role{ margin-bottom: 1.2rem; }

/* ---------- Badge ---------- */
.tag-badge{
  display: inline-block;
  background: var(--cream-deep);
  border: 1px solid var(--taupe);
  color: var(--forest-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

/* ---------- Utility ---------- */
.mt-1{ margin-top: 1rem; }
.mt-2{ margin-top: 2rem; }
.text-center{ text-align: center; }
