/* ===== Flowstate Recovery — Base Styles ===== */
/* Brand: Teal & Gold — "Liquid Meridian" */

:root {
  --color-primary: #17403F;
  --color-primary-light: #276866;
  --color-primary-pale: #E9F1F0;
  --color-primary-deep: #0E2827;
  --color-accent: #C99A5B;
  --color-accent-light: #E3BE87;
  --color-accent-dark: #A87B3F;
  --color-bg: #FBF9F5;
  --color-bg-alt: #F3EEE3;
  --color-text: #1D2624;
  --color-text-muted: #5C6460;
  --color-border: #E5DFD1;
  --color-white: #FFFFFF;

  --gradient-meridian: linear-gradient(120deg, var(--color-primary-deep) 0%, var(--color-primary) 45%, var(--color-primary-light) 75%, var(--color-accent) 130%);
  --gradient-accent: linear-gradient(120deg, var(--color-accent-light) 0%, var(--color-accent) 60%, var(--color-accent-dark) 100%);

  --shadow-sm: 0 2px 10px rgba(14, 40, 39, 0.06);
  --shadow-md: 0 10px 28px rgba(14, 40, 39, 0.10);
  --shadow-lg: 0 24px 56px rgba(14, 40, 39, 0.18);

  --font-heading: 'Fraunces', Georgia, 'Iowan Old Style', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-brand: 'Quicksand', 'Inter', sans-serif;

  --max-width: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); margin-bottom: 1rem; font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--color-text-muted); }

a { color: var(--color-primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--color-primary-light); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.placeholder-note {
  display: inline-block;
  background: #FFF4E0;
  color: #8A5A00;
  border: 1px solid #F0D8A0;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

/* ===== Icons ===== */

.icon-svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-primary-deep);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  color: var(--color-primary-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--color-white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-small { padding: 11px 22px; font-size: 0.88rem; }

/* ===== Header ===== */

header.site-header {
  background: rgba(251, 249, 245, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(23, 64, 63, 0.06), 0 8px 24px rgba(23, 64, 63, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.logo span { color: var(--color-accent); }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.brand:hover { transform: translateY(-1px); opacity: 0.92; }

.brand-mark { width: 42px; height: 30px; flex-shrink: 0; display: block; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.word-flow {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
.word-recovery {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-top: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}
.header-phone .icon-svg { width: 17px; height: 17px; color: var(--color-accent-dark); }
.header-phone:hover { color: var(--color-primary); }

.cta-short { display: none; }

@media (max-width: 560px) {
  .header-phone span.phone-text { display: none; }
}

@media (max-width: 480px) {
  .nav-wrap { padding: 12px 16px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 24px; }
  .word-flow { font-size: 1.08rem; }
  .word-recovery { font-size: 0.6rem; }
  .header-actions { gap: 12px; }
  .btn-small { padding: 10px 16px; font-size: 0.82rem; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
}

/* ===== Hero ===== */

.hero {
  background: var(--gradient-meridian);
  color: var(--color-white);
  padding: 110px 24px 76px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroBgFade 64s infinite;
}
.hero-bg-slide:nth-child(1) { animation-delay: -60s; }
.hero-bg-slide:nth-child(2) { animation-delay: -56s; }
.hero-bg-slide:nth-child(3) { animation-delay: -52s; }
.hero-bg-slide:nth-child(4) { animation-delay: -48s; }
.hero-bg-slide:nth-child(5) { animation-delay: -44s; }
.hero-bg-slide:nth-child(6) { animation-delay: -40s; }
.hero-bg-slide:nth-child(7) { animation-delay: -36s; }
.hero-bg-slide:nth-child(8) { animation-delay: -32s; }
.hero-bg-slide:nth-child(9) { animation-delay: -28s; }
.hero-bg-slide:nth-child(10) { animation-delay: -24s; }
.hero-bg-slide:nth-child(11) { animation-delay: -20s; }
.hero-bg-slide:nth-child(12) { animation-delay: -16s; }
.hero-bg-slide:nth-child(13) { animation-delay: -12s; }
.hero-bg-slide:nth-child(14) { animation-delay: -8s; }
.hero-bg-slide:nth-child(15) { animation-delay: -4s; }
.hero-bg-slide:nth-child(16) { animation-delay: 0s; }

@keyframes heroBgFade {
  0% { opacity: 0; }
  1.6% { opacity: 1; }
  6% { opacity: 1; }
  7.8% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,40,39,0.58) 0%, rgba(14,40,39,0.32) 42%, rgba(14,40,39,0.62) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide { animation: none; opacity: 0; }
  .hero-bg-slide:nth-child(1) { opacity: 1; }
}

.hero > * { position: relative; z-index: 1; }
.hero > .hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero h1, .hero p { color: var(--color-white); }
.hero .eyebrow,
.hero h1,
.hero p.subhead {
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--color-accent-light);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero p.subhead {
  max-width: 620px;
  margin: 0 auto 2.25rem;
  font-size: 1.18rem;
  color: rgba(255,255,255,0.92);
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-hero {
  background: var(--gradient-meridian);
  color: var(--color-white);
  padding: 72px 24px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1, .page-hero p { color: var(--color-white); position: relative; z-index: 1; }

/* Layered meridian wave divider */

.meridian-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  display: block;
  z-index: 1;
}

/* ===== Sections ===== */

section { padding: 84px 24px; }
section.alt {
  background-color: var(--color-bg-alt);
  background-image: radial-gradient(circle at 1px 1px, rgba(23,64,63,0.07) 1px, transparent 0);
  background-size: 24px 24px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--color-accent-dark);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-head h2::before {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  margin: 0 auto 18px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-meridian);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.card .icon .icon-svg { color: var(--color-white); width: 24px; height: 24px; }

/* ===== Testimonials ===== */

.testimonial-grid { align-items: start; }
.testimonial-card { display: flex; flex-direction: column; }
.testimonial-card .quote-mark {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.testimonial-card .testimonial-quote {
  font-style: italic;
  color: var(--color-text);
  flex-grow: 1;
}
.testimonial-card .testimonial-author {
  margin-bottom: 0;
  margin-top: 12px;
  font-weight: 600;
  font-style: normal;
  color: var(--color-primary);
  font-size: 0.9rem;
}

/* ===== Stats strip ===== */

.stats-strip {
  padding: 52px 24px;
}
.stat {
  text-align: center;
}
.stat .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.stat .icon .icon-svg { width: 20px; height: 20px; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 2px;
}
.stat p { margin-bottom: 0; font-weight: 500; color: var(--color-text); }

/* ===== Steps (Admissions) ===== */

.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--color-border);
}
.step:last-child { border-bottom: none; }

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-meridian);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.step h3 { margin-bottom: 6px; }
.step p { margin-bottom: 0; }

/* ===== CTA Banner ===== */

.cta-banner {
  background: var(--gradient-meridian);
  color: var(--color-white);
  text-align: center;
  padding: 72px 24px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 460px;
  height: 300px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.28;
  pointer-events: none;
}
.cta-banner h2, .cta-banner p { color: var(--color-white); position: relative; z-index: 1; }
.cta-banner h2::before { background: var(--gradient-accent); margin: 0 auto 18px; content:''; display:block; width:52px; height:3px; border-radius:2px; }
.cta-banner .btn { position: relative; z-index: 1; }

/* ===== Contact CTA (call / text) ===== */

.contact-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-cta-btn { gap: 10px; }
.contact-cta-btn .icon-svg { width: 19px; height: 19px; }

/* ===== Forms ===== */

form.contact-form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--color-text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 154, 91, 0.18);
}

/* ===== Info list (amenities, contact details) ===== */

.info-list { list-style: none; }
.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-list li:last-child { border-bottom: none; }
.info-list li strong { color: var(--color-text); }
.info-list .icon-svg { width: 17px; height: 17px; color: var(--color-accent-dark); flex-shrink: 0; }

/* ===== House gallery / slideshow ===== */

.gallery {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  outline: none;
}
.gallery-track {
  display: flex;
  transition: transform 0.45s ease;
}
.gallery-slide {
  min-width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-alt);
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.15s ease;
}
.gallery-nav:hover { background: var(--color-white); transform: translateY(-50%) scale(1.06); }
.gallery-nav .icon-svg { width: 20px; height: 20px; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}
.gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.gallery-dot.active {
  background: var(--color-accent);
  transform: scale(1.25);
}

/* ===== Photo placeholders ===== */

.photo-placeholder {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-muted);
  padding: 20px;
}
.photo-placeholder .label {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.photo-placeholder .hint {
  font-size: 0.8rem;
}

/* ===== Footer ===== */

footer.site-footer {
  background: var(--color-primary-deep);
  color: rgba(255,255,255,0.75);
  padding: 60px 24px 30px;
  position: relative;
}
footer.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 40px;
}
.footer-grid-3col { grid-template-columns: 2fr 1fr 1fr; }
.footer-grid h4 {
  color: var(--color-white);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-grid a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--color-accent-light); }
.footer-grid .icon-svg { width: 15px; height: 15px; color: var(--color-accent); flex-shrink: 0; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.brand-mark-dark { width: 42px; height: 30px; flex-shrink: 0; }
.footer-logo .word-flow,
.footer-logo .word-recovery {
  font-family: var(--font-brand);
}
.footer-logo .word-flow { font-size: 1.32rem; }
.footer-logo .word-recovery { font-size: 0.68rem; letter-spacing: 0.2em; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* ===== Scroll reveal ===== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero { padding: 84px 20px 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 20px; }
}
