/* ============================================================
   Heron and Chick Retreats — stylesheet
   Mobile-first. Breakpoints: 640px (tablet), 960px (desktop)
   ============================================================ */

:root {
  --ivory: #F8F4EC;
  --sand: #EFE6D8;
  --terracotta: #C1653A;
  --terracotta-dark: #A6522E;
  --forest: #3E4A3A;
  --charcoal: #2A2621;
  --brass: #B68A52;

  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, blockquote, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
a { color: inherit; }

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

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--charcoal);
  line-height: 1.15;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.75rem, 4vw + 1rem, 2.5rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.sr-only {
  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: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section-inner.narrow {
  max-width: 700px;
}

@media (min-width: 640px) {
  .section-inner { padding: 5.5rem 2rem; }
}
@media (min-width: 960px) {
  .section-inner { padding: 7rem 2.5rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--ivory);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--terracotta-dark);
}
.btn-primary:active {
  transform: scale(0.98);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid rgba(42, 38, 33, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.wordmark {
  text-decoration: none;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.wordmark-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
}
.wordmark-sub {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--forest);
}

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 60;
}
.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ivory);
  border-bottom: 1px solid rgba(42, 38, 33, 0.08);
}
.primary-nav.open {
  display: block;
}
.primary-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.25rem;
  gap: 0.25rem;
}
.primary-nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(42, 38, 33, 0.06);
}
.primary-nav a.nav-cta {
  color: var(--terracotta);
  font-weight: 600;
}

@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: block;
    position: static;
    border: none;
    background: transparent;
  }
  .primary-nav-inner {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 1.75rem;
  }
  .primary-nav a {
    padding: 0;
    border: none;
    font-size: 0.95rem;
  }
  .primary-nav a.nav-cta {
    background: var(--terracotta);
    color: var(--ivory);
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    transition: background-color 0.2s ease;
  }
  .primary-nav a.nav-cta:hover {
    background: var(--terracotta-dark);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(180deg, var(--sand) 0%, var(--ivory) 70%);
  text-align: center;
  padding: 3rem 0 4rem;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-lockup {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--forest);
  margin-bottom: 1.75rem;
}
.hero-lockup-sub {
  color: var(--brass);
}

.tagline-carousel {
  width: 100%;
  min-height: 8.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.tagline-track {
  position: relative;
  width: 100%;
}
.tagline {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 6vw + 0.5rem, 3.4rem);
  line-height: 1.12;
  color: var(--charcoal);
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.tagline.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .tagline { transform: none; }
}

.hero-support {
  font-size: 1.05rem;
  max-width: 42ch;
  color: var(--charcoal);
  margin-bottom: 2rem;
}

.hero-cta {
  margin-bottom: 2.75rem;
}

@media (min-width: 640px) {
  .hero { padding: 4.5rem 0 5.5rem; }
  .hero-support { font-size: 1.15rem; }
}

/* ============================================================
   EMAIL CAPTURE (placeholder form)
   ============================================================ */
.email-capture {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  scroll-margin-top: 6rem;
}
.waitlist-form {
  background: #fff;
  border: 1px solid rgba(62, 74, 58, 0.14);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  text-align: left;
  box-shadow: 0 12px 28px -18px rgba(42, 38, 33, 0.35);
}
.form-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}
.form-row {
  margin-bottom: 0.9rem;
}
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--forest);
}
.form-row .optional {
  font-weight: 400;
  color: #8a8378;
}
.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(42, 38, 33, 0.2);
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--charcoal);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
}
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.waitlist-form .btn {
  width: 100%;
  margin-top: 0.4rem;
}
.form-response {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--forest);
  min-height: 1.2em;
}
.form-response.visible {
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ============================================================
   GENERIC SECTIONS
   ============================================================ */
.lead {
  font-size: 1.15rem;
  line-height: 1.65;
}

.section-familiar {
  background: var(--sand);
}
.section-familiar h2,
.section-solution h2 {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest);
}

.section-solution .lead-solution {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw + 0.5rem, 1.9rem);
  font-weight: 500;
  color: var(--charcoal);
}

/* ---------- What's Included ---------- */
.section-included {
  background: var(--ivory);
}
.included-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}
.included-grid li {
  border-top: 1px solid rgba(62, 74, 58, 0.18);
  padding-top: 1.5rem;
}
.included-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.included-grid h3 {
  margin-bottom: 0.5rem;
}
.included-grid p {
  color: var(--charcoal);
  max-width: 60ch;
}

@media (min-width: 640px) {
  .included-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2.5rem;
  }
}
@media (min-width: 960px) {
  .included-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Location ---------- */
.section-location {
  background: var(--forest);
  color: var(--ivory);
  text-align: center;
}
.section-location h2 {
  color: var(--ivory);
}
.section-location .lead {
  color: var(--ivory);
  opacity: 0.92;
}
.section-location .lead-secondary {
  margin-top: 1.25rem;
  font-size: 1rem;
  opacity: 0.8;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Founder's note ---------- */
.section-founder {
  background: var(--sand);
}
.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.founder-photo-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px -22px rgba(42, 38, 33, 0.4);
}
.founder-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.founder-copy blockquote {
  border-left: 3px solid var(--terracotta);
  padding-left: 1.25rem;
}
.founder-copy blockquote p {
  margin-bottom: 1rem;
  color: var(--charcoal);
}
.founder-copy blockquote footer {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 600;
  color: var(--forest);
  margin-top: 1.25rem;
}

@media (min-width: 860px) {
  .founder-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
  }
}

/* ---------- FAQ ---------- */
.section-faq {
  background: var(--ivory);
}
.faq-list {
  border-top: 1px solid rgba(42, 38, 33, 0.14);
}
.faq-item {
  border-bottom: 1px solid rgba(42, 38, 33, 0.14);
  padding: 1.1rem 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--terracotta);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  margin-top: 0.75rem;
  color: var(--charcoal);
  max-width: 62ch;
}

/* ---------- Final CTA ---------- */
.section-final-cta {
  background: var(--sand);
  text-align: center;
}
.section-final-cta h2 {
  font-size: clamp(1.6rem, 4vw + 0.5rem, 2.2rem);
}
.section-final-cta .lead {
  max-width: 46ch;
  margin: 0 auto 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  color: var(--ivory);
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
}
.footer-heron {
  width: 40px;
  height: 40px;
  color: var(--brass);
  margin: 0 auto 0.75rem;
}
.footer-wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.footer-links {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.footer-links a {
  text-decoration: none;
  color: var(--ivory);
  opacity: 0.85;
}
.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}
.footer-links span {
  margin: 0 0.6rem;
  opacity: 0.5;
}
.footer-copyright {
  font-size: 0.78rem;
  opacity: 0.6;
}
