/* Vital Village Wellness — shared stylesheet.
   Static site, no build step. Pages: index, locations, contact, privacy.
   Palette is pine-green + marigold on a pale sage paper, with the hero pulling
   the leaf-green and teal out of the logo. Warm and local rather than clinical,
   and away from the cream/serif/terracotta default. */

/* ---- self-hosted fonts -------------------------------------------------
   Served from our own origin so the site makes no third-party requests at all.
   Both families are variable and licensed under the SIL Open Font License 1.1
   (see assets/fonts/OFL-NOTICE.txt), so one file per family covers the weight
   range. The unicode-range split means a visitor reading English only ever
   downloads the latin file. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/public-sans-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink:        #102A20;
  --ink-soft:   #33564A;
  --paper:      #F1F4EF;
  --surface:    #FFFFFF;
  --line:       #DCE3D9;
  --accent:     #E3A94A;
  --accent-deep:#B9791F;

  /* pulled from the logo, used for the hero field and its glows */
  --field:      #0D2B22;
  --field-mid:  #14503F;
  --leaf:       #7CB92E;
  --teal:       #35C6CE;
  --on-dark:    #E8EFE9;
  --on-dark-mut:#C7D3C6;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap:  66rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 14px;

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent-deep); }

ul { margin: 0; padding: 0; }

svg { display: block; }

/* ---- focus ------------------------------------------------------------- */

:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

.section--scope :focus-visible,
.site-footer :focus-visible { outline-color: var(--accent); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--on-dark);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---- layout ------------------------------------------------------------ */

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

.section { padding-block: clamp(3rem, 8vw, 5.5rem); }

.section__title {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.125rem);
  margin-bottom: 1.5rem;
}

/* ---- header ------------------------------------------------------------ */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 0.9rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-right: auto;
}

.wordmark__mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  flex: none;
}
.wordmark__vital    { color: var(--ink); font-weight: 700; }
.wordmark__wellness { color: var(--ink-soft); font-weight: 500; }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  list-style: none;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ---- hero -------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-dark-mut);
  background:
    radial-gradient(38rem 30rem at 78% 18%, rgba(53,198,206,0.20), transparent 68%),
    radial-gradient(44rem 34rem at 92% 82%, rgba(124,185,46,0.20), transparent 66%),
    radial-gradient(52rem 40rem at 6% -10%, rgba(20,80,63,0.85), transparent 70%),
    linear-gradient(168deg, var(--field-mid) 0%, var(--field) 58%, #08201A 100%);
}

/* soft grain so the large dark field does not band on cheap panels */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
}

.hero__inner {
  padding-block: clamp(2.75rem, 8vw, 5.5rem);
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

@media (min-width: 62rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 4rem);
  }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}

.hero .eyebrow { color: var(--accent); }

.hero__title {
  font-size: clamp(2.25rem, 1.5rem + 3.6vw, 4rem);
  margin-bottom: 1.25rem;
  color: #FFFFFF;
}

.hero__lede {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
  max-width: 38ch;
  margin-bottom: 1.5rem;
  color: var(--on-dark);
}

.hero__partner {
  font-size: 0.9375rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  margin-bottom: 2rem;
}
.hero__partner strong { color: #FFFFFF; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---- hero emblem ------------------------------------------------------- */

/* On phones the emblem leads — it is the brand stamp — but stays small enough
   that the headline is still near the top of the screen. On wide screens it
   moves beside the copy and grows. */
.hero__emblem {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(13rem, 50vw);
  aspect-ratio: 1;
  order: -1;
}

@media (min-width: 62rem) {
  .hero__emblem {
    width: min(23rem, 100%);
    order: 0;
  }
}

/* concentric rings echoing the emblem's own geometry */
.hero__rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.hero__rings::before,
.hero__rings::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(232,239,233,0.16);
}
.hero__rings::before { transform: scale(1.14); }
.hero__rings::after  { transform: scale(1.3); border-color: rgba(232,239,233,0.08); }

/* <picture> is inline by default, so a percentage width on the image inside it
   resolves against nothing and the emblem collapses. Give it a grid cell. */
.hero__emblem picture {
  display: block;
  grid-area: 1 / 1;
  width: 100%;
}

.hero__logo {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 50%;
  filter:
    drop-shadow(0 1.5rem 2.5rem rgba(0,0,0,0.45))
    drop-shadow(0 0 3rem rgba(53,198,206,0.22));
  animation: emblem-float 9s ease-in-out infinite;
}

@keyframes emblem-float {
  0%, 100% { transform: translateY(-0.35rem); }
  50%      { transform: translateY(0.35rem); }
}

/* ---- buttons ----------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.btn--primary {
  background: var(--ink);
  color: var(--on-dark);
}
.btn--primary:hover { background: #1B4132; }

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); }

.btn--sm { padding: 0.55rem 1.15rem; font-size: 0.875rem; }

/* on the dark hero field the default ink button disappears — invert it */
.hero .btn--primary { background: var(--accent); color: var(--field); }
.hero .btn--primary:hover { background: #F0BC63; }
.hero .btn--ghost { border-color: rgba(232,239,233,0.45); color: var(--on-dark); }
.hero .btn--ghost:hover {
  background: var(--on-dark);
  color: var(--field);
  border-color: var(--on-dark);
}
.hero :focus-visible { outline-color: var(--accent); }

/* ---- interior page head ------------------------------------------------ */

.page-head {
  background:
    radial-gradient(52rem 26rem at 88% -30%, rgba(227,169,74,0.18), transparent 62%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-head__inner {
  padding-block: clamp(2.5rem, 7vw, 4rem);
  max-width: 46rem;
  margin-inline: 0;
}

@media (min-width: 72rem) {
  .page-head__inner { margin-inline: auto; }
}

.page-head__title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  margin-bottom: 1rem;
}

.page-head__lede {
  font-size: clamp(1rem, 0.96rem + 0.35vw, 1.1875rem);
  line-height: 1.6;
  max-width: 46ch;
}

.page-head__meta {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.page-head__email {
  margin-top: 1.5rem;
}

.page-head__email a {
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  word-break: break-word;
}
.page-head__email a:hover { border-bottom-color: var(--accent-deep); }

.section--alt { background: var(--surface); border-block: 1px solid var(--line); }

/* ---- long-form policy text --------------------------------------------- */

.policy {
  max-width: 44rem;
}

.policy h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.policy > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.policy p { margin-bottom: 1rem; }

.policy ul {
  list-style: none;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.6rem;
}

.policy li {
  position: relative;
  padding-left: 1.4rem;
}

.policy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- locations --------------------------------------------------------- */

.locations {
  list-style: none;
  display: grid;
  gap: 1rem;
}

@media (min-width: 44rem) {
  .locations { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

.loc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.section--alt .loc { background: var(--paper); }

.loc__name {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.loc__address {
  font-style: normal;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.loc__phone { margin-bottom: 1.15rem; }

.loc__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.15rem;
}

.loc__phone a {
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.loc__phone a:hover { border-bottom-color: var(--accent-deep); }

.loc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

/* ---- registered business details (Meta verification block) ------------- */

.registered {
  max-width: 44rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.registered__intro {
  margin-bottom: 1.75rem;
  max-width: 52ch;
}

.registered__note {
  font-size: 0.875rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 52ch;
}

.registered__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.2rem;
}

.registered__value {
  font-style: normal;
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.registered__value:last-child { margin-bottom: 0; }

/* ---- cards ------------------------------------------------------------- */

.cards {
  list-style: none;
  display: grid;
  gap: 1rem;
}

@media (min-width: 56rem) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: rgba(227,169,74,0.18);
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 1.5rem; height: 1.5rem; }

.card__title {
  font-size: 1.125rem;
  margin-bottom: 0.6rem;
}

.card p { font-size: 0.9375rem; }

/* ---- scope ("what we are not") ----------------------------------------- */

.section--scope {
  background: var(--ink);
  color: var(--on-dark-mut);
}

.scope { max-width: 44rem; }
.scope__title { color: var(--on-dark); }
.scope strong { color: var(--on-dark); }

.scope__lede {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--on-dark);
  line-height: 1.55;
}

.scope__body { font-size: 0.9375rem; }

/* ---- visiting ---------------------------------------------------------- */

.visit { max-width: 44rem; }
.visit__body { font-size: 1.0625rem; margin-bottom: 1.5rem; }

.visit__places {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding-left: 0;
}

.visit__places li {
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: 1.0625rem;
}

.visit__region {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

/* ---- footer ------------------------------------------------------------ */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-mut);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}

.site-footer__inner {
  display: grid;
  gap: 1.75rem;
}

.site-footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--on-dark);
  margin-bottom: 0.35rem;
}

.site-footer__partner {
  font-size: 0.875rem;
  max-width: 34ch;
}

.site-footer__reg {
  font-size: 0.8125rem;
  margin-top: 0.5rem;
  max-width: 34ch;
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
}

.site-footer__nav a {
  color: var(--on-dark-mut);
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer__nav a:hover { color: var(--on-dark); border-bottom-color: var(--accent); }

.disclaimer {
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 60ch;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232,239,233,0.18);
}

.copyright {
  font-size: 0.8125rem;
  color: var(--on-dark-mut);
}

@media (min-width: 56rem) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .disclaimer, .copyright { grid-column: 1 / -1; }
  .copyright { margin-top: -0.75rem; }
}

/* ---- motion ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
