/* ==========================================================================
   The PI Acres — site.css
   Brand: Pond & Sky. Cool mist ground, deep pond green, persimmon accent.
   ========================================================================== */

:root {
  /* Core palette */
  --mist:       #F3F6F5;
  --paper:      #FFFFFF;
  --shoal:       #E4EBE9;
  --shoal-deep:  #CBD8D5;
  --ink:        #141A1A;
  --ink-soft:   #3E4B4A;
  --ink-mute:   #63716E;
  --shallows:      #3B7370;
  --pond: #12403F;
  --persimmon:        #E0703C;
  --persimmon-light:  #F3B695;
  --rust:       #B24A25;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --maxw: 1240px;
  --measure: 62ch;

  --radius: 3px;
  --radius-lg: 5px;

  --shadow-sm: 0 1px 2px rgba(20,26,26,.05), 0 6px 20px rgba(20,26,26,.05);
  --shadow-md: 0 2px 4px rgba(20,26,26,.05), 0 18px 50px rgba(20,26,26,.09);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 20, "WONK" 0;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.7rem); line-height: 1.2; }
h4 { font-size: 1.0625rem; font-family: var(--body); font-weight: 600; letter-spacing: 0; }
p  { margin: 0 0 1.15em; max-width: var(--measure); }
.lead { font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.6; color: var(--ink-soft); }

.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--shallows);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--persimmon);
  flex: none;
}
.eyebrow.is-centered { justify-content: center; }
.eyebrow.on-dark { color: var(--persimmon-light); }
.eyebrow.on-dark::before { background: var(--persimmon); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper { background: var(--paper); }
.section--shoal { background: var(--shoal); }
.section--dark { background: var(--pond); color: var(--mist); }
.section--dark p { color: rgba(243,246,245,.82); }
.section--dark .lead { color: rgba(243,246,245,.86); }

.rule { border: 0; border-top: 1px solid var(--shoal-deep); margin: 0; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
  .split__media.is-first { order: -1; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--pond); color: var(--mist); }
.btn--primary:hover { background: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--shoal-deep); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--mist); }
.btn--light { background: var(--mist); color: var(--pond); }
.btn--light:hover { background: var(--persimmon-light); }
.btn--outline-light { background: transparent; color: var(--mist); border-color: rgba(243,246,245,.45); }
.btn--outline-light:hover { background: var(--mist); color: var(--pond); border-color: var(--mist); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.textlink {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none; color: var(--pond);
  border-bottom: 1px solid var(--persimmon); padding-bottom: .3rem;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.textlink:hover { gap: .9rem; color: var(--rust); }
.textlink::after { content: "\2192"; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(243,246,245,.92);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--shoal-deep); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 78px;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--pond); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--display); font-size: 1.28rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.brand__place { font-size: .58rem; font-weight: 600; letter-spacing: .28em; color: var(--shallows); margin-top: .34rem; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav a {
  text-decoration: none; font-size: .82rem; font-weight: 500; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-soft); position: relative; padding-block: .4rem;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--persimmon); transition: right .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions .btn { padding: .7rem 1.4rem; font-size: .72rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--shoal-deep); border-radius: var(--radius);
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4.5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(0); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--mist); border-bottom: 1px solid var(--shoal-deep);
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    max-height: calc(100dvh - 78px); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { font-size: 1rem; padding-block: .95rem; border-bottom: 1px solid var(--shoal); letter-spacing: .05em; }
  .nav a::after { display: none; }
  .header-actions .btn--ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.hero--short { min-height: min(58vh, 560px); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,24,24,.80) 0%, rgba(10,24,24,.42) 38%, rgba(10,24,24,.12) 70%, rgba(10,24,24,.30) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(3rem, 8vw, 6rem); color: var(--mist); }
.hero h1 { color: var(--mist); max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,.28); }
.hero .lead { color: rgba(243,246,245,.92); max-width: 46ch; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2.2rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(243,246,245,.82);
}
.hero__meta span { display: flex; align-items: center; gap: .6rem; }
.hero__meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--persimmon); }

/* ---------- Cards & media ---------- */
.figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--shoal); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 16 / 10; }
.figure--square { aspect-ratio: 1 / 1; }
.figure__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.5rem 1.25rem; color: var(--mist);
  background: linear-gradient(to top, rgba(10,24,24,.78), rgba(10,24,24,0));
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}

.card {
  background: var(--paper);
  border: 1px solid var(--shoal-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 3 / 2; background: var(--shoal); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.6rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .5rem; }
.card__body p { font-size: .96rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.card__meta {
  margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--shoal);
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute);
}
.card__price { color: var(--pond); font-size: .95rem; letter-spacing: .02em; text-transform: none; }
.card__price b { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }

.tag {
  display: inline-block; padding: .3rem .7rem; border-radius: 999px;
  background: var(--shoal); color: var(--pond);
  font-size: .68rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
}

/* ---------- Feature list ---------- */
.feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature__icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--shoal-deep); display: grid; place-items: center; color: var(--shallows);
  background: var(--paper);
}
.feature__icon svg { width: 21px; height: 21px; }
.feature h4 { margin-bottom: .3rem; }
.feature p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

.ticklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.ticklist li { display: flex; gap: .75rem; align-items: flex-start; font-size: .98rem; color: var(--ink-soft); }
.ticklist li::before {
  content: ""; flex: none; width: 7px; height: 7px; margin-top: .62rem; border-radius: 50%;
  background: var(--persimmon);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem 2rem; }
.stat__num { font-family: var(--display); font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; color: var(--pond); }
.section--dark .stat__num { color: var(--persimmon-light); }
.stat__label {
  margin-top: .6rem; font-size: .74rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-mute);
}
.section--dark .stat__label { color: rgba(243,246,245,.7); }

/* ---------- Quote ---------- */
.quote { text-align: center; max-width: 780px; margin-inline: auto; }
.quote blockquote {
  margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 3.1vw, 2.35rem);
  line-height: 1.28; letter-spacing: -.01em;
}
.quote figcaption {
  margin-top: 1.6rem; font-size: .74rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-mute);
}

/* ---------- Gallery ---------- */
.gallery { columns: 3 260px; column-gap: 1rem; }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius-lg); overflow: hidden; background: var(--shoal); }
.gallery img { width: 100%; transition: transform .6s var(--ease), filter .4s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 2rem; }
.step { display: flex; gap: 1.4rem; align-items: flex-start; }
.step::before {
  counter-increment: step; content: counter(step);
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--pond); color: var(--mist);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.1rem;
}
.step h4 { margin-bottom: .25rem; }
.step p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Accordion (FAQ) ---------- */
.faq { border-top: 1px solid var(--shoal-deep); }
.faq details { border-bottom: 1px solid var(--shoal-deep); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
  font-family: var(--display); font-size: clamp(1.05rem, 1.7vw, 1.28rem); font-weight: 500; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 12px; height: 12px;
  border-right: 1.5px solid var(--shallows); border-bottom: 1.5px solid var(--shallows);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 2.5rem 1.6rem 0; }
.faq p { font-size: .98rem; color: var(--ink-soft); margin-bottom: .8rem; }
.faq p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .45rem; }
.field label {
  font-size: .72rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--shoal-deep); border-radius: var(--radius);
  padding: .85rem 1rem; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--shallows); box-shadow: 0 0 0 3px rgba(59,115,112,.17);
}
.field--row { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field--row { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: .84rem; color: var(--ink-mute); }

/* Booking bar */
.bookbar {
  background: var(--paper); border: 1px solid var(--shoal-deep); border-radius: var(--radius-lg);
  padding: 1.25rem; box-shadow: var(--shadow-md);
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 860px) { .bookbar { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; } }
.bookbar .btn { width: 100%; }

/* Embed slot for the booking engine */
.embed-slot {
  border: 1px dashed var(--shoal-deep); border-radius: var(--radius-lg);
  background: var(--paper); padding: clamp(2rem, 5vw, 3.5rem); text-align: center;
}
.embed-slot code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem;
  background: var(--shoal); padding: .18rem .45rem; border-radius: 3px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(243,246,245,.72); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.site-footer a { color: rgba(243,246,245,.72); text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--persimmon-light); }
.site-footer h4 {
  color: var(--mist); font-size: .74rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; margin-bottom: 1.1rem;
}
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; font-size: .95rem; }
.footer-brand { max-width: 34ch; }
.footer-brand .brand__name { color: var(--mist); }
.footer-brand .brand { color: var(--persimmon-light); }
.footer-brand p { font-size: .95rem; margin-top: 1.2rem; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.75rem; border-top: 1px solid rgba(243,246,245,.14);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  font-size: .82rem; color: rgba(243,246,245,.5);
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.center p, .center .lead { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack-lg > * + * { margin-top: 1.5rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--pond); color: var(--mist); padding: .7rem 1.1rem; border-radius: var(--radius);
  text-decoration: none; font-size: .85rem; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--shallows); outline-offset: 3px; border-radius: 2px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Print */
@media print {
  .site-header, .site-footer, .btn, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
