/*
Theme Name: Feeling of Wellbeing
Theme URI: https://feelingofwellbeing.com
Author: FeelingOfWellbeing.com
Description: A modern, elegant wellness theme with ACF-powered content editing and Customizer color/font controls.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fowb
*/

/* ── CSS VARIABLES (overridden by Customizer via inline style in header) ── */
:root {
  --sand: #f5f0e8;
  --warm-white: #faf8f4;
  --sage: #8a9e8c;
  --deep-green: #2c3e2d;
  --terracotta: #c07b5a;
  --ink: #1a1a18;
  --muted: #8a8880;
  --gold: #c9a96e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body-font, 'DM Sans'), sans-serif;
  background-color: var(--warm-white);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── NAV ── */
nav#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, padding 0.4s;
}
nav#site-nav.scrolled {
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  padding: 16px 48px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.site-logo {
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color 0.4s;
}
nav#site-nav.scrolled .site-logo { color: var(--deep-green); }
.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-menu a {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s;
}
nav#site-nav.scrolled .nav-menu a { color: var(--muted); }
.nav-menu a:hover,
nav#site-nav.scrolled .nav-menu a:hover { color: var(--terracotta); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: background 0.4s;
}
nav#site-nav.scrolled .nav-toggle span { background: var(--ink); }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 22, 15, 0.55) 0%,
    rgba(20, 30, 20, 0.78) 40%,
    rgba(15, 22, 15, 0.65) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s ease forwards;
}
.hero h1 {
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s ease forwards;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.4);
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s ease forwards;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}
.btn-hero {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-family: var(--body-font, 'DM Sans'), sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
  opacity: 0;
  animation: fadeUp 0.9s 1s ease forwards;
}
.btn-hero:hover { background: rgba(255,255,255,0.12); border-color: var(--gold); }
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.9s 1.3s ease forwards;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.scroll-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── PULL QUOTE ── */
.pull-quote-section {
  padding: 100px 48px;
  display: flex;
  justify-content: center;
}
.pull-quote {
  max-width: 720px;
  text-align: center;
}
.pull-quote blockquote {
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--deep-green);
  position: relative;
}
.pull-quote blockquote::before {
  content: '\201C';
  font-size: 8rem;
  line-height: 0;
  position: absolute;
  top: 30px;
  left: -30px;
  color: var(--gold);
  opacity: 0.3;
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
}
.pull-quote .attribution {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.attr-line { width: 40px; height: 1px; background: var(--gold); }
.attr-text {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── SECTION LABEL ── */
.section-label {
  text-align: center;
  margin-bottom: 64px;
}
.overline {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: block;
  margin-bottom: 12px;
}
.section-label h2 {
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
}

/* ── CARDS ── */
.features { padding: 0 48px 100px; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1100px;
  margin: 0 auto;
}
.card {
  background: var(--sand);
  padding: 56px 44px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.08); }
.card:hover::before { transform: scaleX(1); }
.card-num {
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(0,0,0,0.06);
  line-height: 1;
  margin-bottom: 20px;
}
.card h3 {
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--deep-green);
  margin-bottom: 16px;
  line-height: 1.25;
}
.card p { font-size: 0.9rem; line-height: 1.75; color: var(--muted); }

/* ── SPLIT ── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.split-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.split-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 62, 45, 0.2);
}
.split-text {
  background: var(--deep-green);
  padding: 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-text .overline { color: var(--gold); margin-bottom: 20px; }
.split-text h2 {
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--warm-white);
  line-height: 1.25;
  margin-bottom: 28px;
}
.split-text h2 em { font-style: italic; color: var(--gold); }
.split-text p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(250, 248, 244, 0.65);
  margin-bottom: 20px;
}
.split-text p:last-of-type { margin-bottom: 40px; }
.btn-ghost {
  display: inline-block;
  padding: 12px 36px;
  border: 1px solid rgba(201, 169, 110, 0.5);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
  align-self: flex-start;
}
.btn-ghost:hover { background: rgba(201, 169, 110, 0.1); border-color: var(--gold); }

/* ── PRINCIPLES ── */
.principles { padding: 120px 48px; background: var(--sand); }
.principles-inner { max-width: 900px; margin: 0 auto; }
.principles-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 72px;
  gap: 40px;
}
.principles-header h2 {
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
  max-width: 420px;
}
.principles-header p { font-size: 0.9rem; line-height: 1.75; color: var(--muted); max-width: 340px; }
.principles-list { display: flex; flex-direction: column; }
.principle-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.principle-item:last-child { border-bottom: 1px solid rgba(0,0,0,0.08); }
.principle-num {
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: 0.85rem;
  color: var(--terracotta);
  padding-top: 4px;
}
.principle-body h3 {
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}
.principle-body p { font-size: 0.88rem; line-height: 1.75; color: var(--muted); }

/* ── CTA ── */
.cta-section {
  position: relative;
  padding: 160px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--warm-white);
}
.cta-bg-text {
  position: absolute;
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 300;
  color: rgba(0,0,0,0.04);
  pointer-events: none;
  white-space: nowrap;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
}
.cta-content { position: relative; z-index: 2; max-width: 560px; }
.cta-content .overline { color: var(--terracotta); margin-bottom: 20px; }
.cta-content h2 {
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 28px;
}
.cta-content p { font-size: 0.95rem; line-height: 1.75; color: var(--muted); margin-bottom: 48px; }
.btn-dark {
  display: inline-block;
  padding: 16px 48px;
  background: var(--deep-green);
  color: var(--warm-white);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}
.btn-dark:hover { background: var(--terracotta); transform: translateY(-2px); }

/* ── FOOTER ── */
footer#site-footer {
  padding: 48px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-green);
  text-decoration: none;
}
.footer-copy { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.05em; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav#site-nav { padding: 20px 24px; }
  nav#site-nav.scrolled { padding: 14px 24px; }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(250,248,244,0.97);
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { color: var(--muted); }
  .nav-toggle { display: flex; }
  .pull-quote-section { padding: 72px 24px; }
  .features { padding: 0 24px 72px; }
  .cards-grid { grid-template-columns: 1fr; gap: 2px; }
  .split-section { grid-template-columns: 1fr; }
  .split-image { min-height: 360px; }
  .split-text { padding: 64px 32px; }
  .principles { padding: 80px 24px; }
  .principles-header { flex-direction: column; align-items: flex-start; }
  .cta-section { padding: 100px 24px; }
  footer#site-footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
}

/* ── CONTACT FORM ────────────────────────────────────────────────────────── */
.cta-content { max-width: 640px; }  /* widen slightly for form */

.contact-form-wrap {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: left;
}

.contact-form-intro {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 32px;
  text-align: center;
}

.fowb-contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field { display: flex; flex-direction: column; gap: 7px; }

.form-field label {
  font-family: var(--body-font, 'DM Sans'), sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(44,62,45,0.25);
  padding: 10px 0;
  font-family: var(--body-font, 'DM Sans'), sans-serif;
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s;
  resize: none;
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(0,0,0,0.25); }

.form-field input:focus,
.form-field textarea:focus { border-bottom-color: var(--deep-green); }

.btn-form-submit {
  align-self: center;
  margin-top: 12px;
  cursor: pointer;
  border: none;
  font-family: var(--body-font, 'DM Sans'), sans-serif;
}

.fowb-form-notice {
  padding: 14px 20px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  text-align: center;
  border-left: 3px solid;
}

.fowb-form-success {
  background: rgba(44,62,45,0.06);
  border-color: var(--deep-green);
  color: var(--deep-green);
}

.fowb-form-error {
  background: rgba(192,123,90,0.08);
  border-color: var(--terracotta);
  color: var(--terracotta);
}

@media (max-width: 600px) {
  .form-row--two { grid-template-columns: 1fr; }
}

/* ── NOISE TEXTURE & CURSOR GLOW (from original HTML) ───────────────────── */
.fowb-noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.fowb-cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,169,110,0.15) 0%, rgba(255,255,255,0) 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: multiply;
  transition: opacity 0.5s ease;
}

/* ── SPLIT: parallax wrapper update ─────────────────────────────────────── */
.split-image-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 400px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-image {
  position: relative;
  width: 100%;
  height: 130%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.split-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 62, 45, 0.15);
}

/* ── HERO BG: parallax-ready ─────────────────────────────────────────────── */
.hero-bg {
  position: absolute;
  inset: -50px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

/* ── CTA watermark: breathe animation ───────────────────────────────────── */
@keyframes breathe {
  0%, 100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1.8; transform: translate(-50%,-50%) scale(1.05); }
}
.cta-bg-text { animation: breathe 8s infinite ease-in-out; }

@media (max-width: 900px) {
  .split-image-wrapper { height: 350px; min-height: 350px; }
  .split-image { height: 125%; }
}
