/* ===================================
   SAPIENTIA THERAPY — REDESIGN
   Aesthetic: Refined Botanical Calm
=================================== */

:root {
  --sage: #4a6741;
  --sage-mid: #6b8f62;
  --sage-light: #c8d9c4;
  --sage-pale: #e8f0e5;
  --ivory: #faf7f2;
  --ivory-dark: #f0ebe2;
  --charcoal: #2c2c2c;
  --charcoal-mid: #4a4a4a;
  --charcoal-light: #7a7a7a;
  --gold: #b8965a;
  --gold-light: #d4b483;
  --gold-pale: #f0e6d3;
  --white: #ffffff;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
  --radius: 2px;
  --radius-lg: 8px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 4px 30px rgba(44,44,44,0.08);
  --shadow-lg: 0 16px 60px rgba(44,44,44,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--ivory); color: var(--charcoal); line-height: 1.7; font-weight: 300; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== TYPOGRAPHY ===== */
.section__eyebrow { font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: block; }
.section__eyebrow--light { color: var(--gold-light); }
.section__title { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 300; line-height: 1.15; color: var(--charcoal); margin-bottom: 2rem; }
.section__title em { font-style: italic; color: var(--sage); }
.section__title--light { color: var(--ivory); }
.section__title--light em { color: var(--sage-light); }

/* ===== LAYOUT ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 7rem 0; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 1rem 2.2rem; border: 1.5px solid transparent; cursor: pointer; transition: var(--transition); }
.btn--primary { background: var(--sage); color: var(--ivory); border-color: var(--sage); }
.btn--primary:hover { background: var(--sage-mid); border-color: var(--sage-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,103,65,0.3); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(250,247,242,0.5); }
.btn--ghost:hover { background: rgba(250,247,242,0.1); border-color: var(--ivory); }
.btn--sm { padding: 0.7rem 1.6rem; font-size: 0.75rem; }

/* ===== NAV ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: var(--transition); padding: 1.2rem 0; }
.nav.scrolled { background: rgba(250,247,242,0.96); backdrop-filter: blur(12px); box-shadow: 0 1px 30px rgba(44,44,44,0.08); padding: 0.8rem 0; }
.nav__inner { max-width: 1160px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--ivory); transition: color var(--transition); letter-spacing: 0.02em; }
.nav.scrolled .nav__logo { color: var(--charcoal); }
.nav__logo-s { color: var(--gold-light); }
.nav.scrolled .nav__logo-s { color: var(--gold); }
.nav__owl { width: 30px; height: auto; filter: brightness(0) invert(1); opacity: 0.9; transition: filter var(--transition), opacity var(--transition); }
.nav.scrolled .nav__owl { filter: invert(38%) sepia(20%) saturate(800%) hue-rotate(70deg) brightness(85%); opacity: 1; }
.nav__links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav__links a { font-size: 0.78rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,247,242,0.85); transition: color var(--transition); }
.nav.scrolled .nav__links a { color: var(--charcoal-mid); }
.nav__links a:hover { color: var(--gold) !important; }
.nav__cta { background: rgba(250,247,242,0.15); border: 1px solid rgba(250,247,242,0.4); padding: 0.5rem 1.2rem; border-radius: var(--radius); transition: all var(--transition) !important; }
.nav.scrolled .nav__cta { background: var(--sage); color: var(--ivory) !important; border-color: var(--sage); }
.nav__cta:hover { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--ivory) !important; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__toggle span { display: block; width: 24px; height: 1.5px; background: var(--ivory); transition: var(--transition); }
.nav.scrolled .nav__toggle span { background: var(--charcoal); }
.nav__close-item { display: none; }
.nav__close { background: none; border: none; font-size: 2rem; line-height: 1; color: var(--charcoal-light); cursor: pointer; padding: 0; transition: color var(--transition); }
.nav__close:hover { color: var(--sage); }

/* ===== HERO ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.04); animation: hero-zoom 18s ease-in-out infinite alternate; }
@keyframes hero-zoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero__bg-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,30,12,0.78) 0%, rgba(20,35,18,0.65) 50%, rgba(10,22,10,0.72) 100%); }
.hero__lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(250,247,242,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(250,247,242,0.025) 1px, transparent 1px); background-size: 80px 80px; pointer-events: none; }
.hero__content { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; padding: 0 2rem; padding-top: 6rem; }
.hero__eyebrow { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.5rem; display: block; }
.hero__title { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 6.5rem); font-weight: 300; color: var(--ivory); line-height: 1.05; margin-bottom: 2rem; }
.hero__title em { font-style: italic; color: var(--sage-light); }
.hero__quote { font-family: var(--font-display); font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 300; font-style: italic; color: rgba(250,247,242,0.65); border-left: 2px solid var(--gold); padding-left: 1.5rem; margin-bottom: 3rem; max-width: 520px; }
.hero__quote cite { display: block; font-size: 0.85rem; font-style: normal; font-family: var(--font-body); letter-spacing: 0.08em; color: var(--gold-light); margin-top: 0.5rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; z-index: 2; opacity: 0.5; }
.hero__scroll span { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory); }
.hero__scroll-line { width: 1px; height: 50px; background: linear-gradient(to bottom, var(--ivory), transparent); animation: scroll-pulse 2s ease-in-out infinite; }
@keyframes scroll-pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(30px); animation: reveal-up 0.9s cubic-bezier(0.25,0.46,0.45,0.94) forwards; animation-delay: 0.2s; }
.reveal--delay-1 { animation-delay: 0.4s; }
.reveal--delay-2 { animation-delay: 0.6s; }
.reveal--delay-3 { animation-delay: 0.8s; }
@keyframes reveal-up { to { opacity: 1; transform: translateY(0); } }
.scroll-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== INTRO STRIP ===== */
.intro-strip { background: var(--sage); padding: 1.5rem 0; }
.intro-strip__inner { max-width: 1160px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: repeat(4, 1fr); }
.intro-strip__item { display: flex; align-items: center; gap: 0.8rem; padding: 0.5rem 1.2rem; border-right: 1px solid rgba(255,255,255,0.18); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.05em; color: rgba(255,255,255,0.9); }
.intro-strip__item:last-child { border-right: none; }
.intro-strip__num { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-light); font-weight: 300; flex-shrink: 0; }

/* ===== ABOUT ===== */
.about { background: var(--ivory); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about__text p { color: var(--charcoal-mid); margin-bottom: 1.2rem; font-size: 0.95rem; }
.about__text strong { color: var(--sage); font-weight: 500; }
.about__lead { font-family: var(--font-display); font-size: 1.2rem !important; font-weight: 400; color: var(--charcoal) !important; line-height: 1.6; }
.about__badge { margin-top: 2rem; padding: 1.2rem 1.5rem; border-left: 3px solid var(--gold); background: var(--gold-pale); }
.about__badge-text { display: block; font-weight: 500; font-size: 0.85rem; color: var(--charcoal); letter-spacing: 0.05em; }
.about__badge-qual { display: block; font-size: 0.8rem; color: var(--charcoal-light); margin-top: 0.2rem; }

.about__visual { position: relative; }
.about__photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}
.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
  /* Subtle background blur: keeps Phyllis sharp, softens busy background */
  filter: blur(0);
}
.about__photo-wrap:hover .about__photo { transform: scale(1.03); }

/* Background blur layer — blurs edges/background while keeping face clear */
.about__photo-vignette {
  position: absolute;
  inset: 0;
  /* Multi-layer: blur the edges using a backdrop approach */
  background:
    radial-gradient(ellipse 60% 55% at 50% 35%, transparent 0%, transparent 40%, rgba(10,10,10,0.08) 65%, rgba(10,10,10,0.35) 100%);
  backdrop-filter: blur(2px);
  /* Mask: only apply blur away from the centre (face area) */
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 32%, transparent 40%, black 80%);
  mask-image: radial-gradient(ellipse 55% 50% at 50% 32%, transparent 40%, black 80%);
  pointer-events: none;
  border-radius: var(--radius-lg);
}
.about__photo-frame { position: absolute; inset: 0; border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px rgba(184,150,90,0.25); pointer-events: none; }

.about__stat-card { position: absolute; bottom: -1.5rem; left: -2rem; background: var(--sage); color: var(--ivory); padding: 1.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 180px; }
.about__stat-num { display: block; font-family: var(--font-display); font-size: 2.5rem; font-weight: 300; line-height: 1; margin-bottom: 0.4rem; }
.about__stat-label { display: block; font-size: 0.75rem; opacity: 0.85; line-height: 1.4; }

/* ===== APPROACH ===== */
.approach { background: #1e2a1c; position: relative; overflow: hidden; }
.approach__bg { position: absolute; inset: 0; pointer-events: none; }
.approach__circle { position: absolute; width: 700px; height: 700px; border-radius: 50%; border: 1px solid rgba(200,217,196,0.1); top: -200px; right: -200px; }
.approach .container { position: relative; z-index: 1; }
.approach__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 4rem 0; }
.approach__card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); padding: 2.5rem 2rem; transition: var(--transition); }
.approach__card:hover { background: rgba(255,255,255,0.08); border-color: rgba(200,217,196,0.3); transform: translateY(-4px); }
.approach__card-num { font-family: var(--font-display); font-size: 3rem; font-weight: 300; color: var(--gold); opacity: 0.4; line-height: 1; margin-bottom: 1rem; }
.approach__card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; color: var(--ivory); margin-bottom: 1rem; line-height: 1.2; }
.approach__card p { font-size: 0.88rem; color: rgba(250,247,242,0.65); line-height: 1.7; }
.approach__footer-note { text-align: center; font-family: var(--font-display); font-size: 1.1rem; font-style: italic; color: rgba(250,247,242,0.5); border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2.5rem; }

/* ===== SERVICES ===== */
.services { background: var(--ivory-dark); }
.services__subtitle { color: var(--charcoal-light); margin-top: -1rem; margin-bottom: 3rem; max-width: 480px; font-size: 0.95rem; }
.services__grid { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 3rem; }
.services__item { padding: 0.65rem 1.3rem; border: 1.5px solid var(--sage-light); font-size: 0.82rem; font-weight: 400; letter-spacing: 0.05em; color: var(--sage); background: var(--white); border-radius: 100px; transition: var(--transition); cursor: default; }
.services__item:hover { background: var(--sage); color: var(--ivory); border-color: var(--sage); transform: translateY(-2px); }
.services__warmth { font-family: var(--font-display); font-size: 1.4rem; font-style: italic; color: var(--sage); text-align: center; padding: 2rem 0 0; border-top: 1px solid var(--sage-light); }

/* ===== REVIEWS ===== */
.reviews { background: var(--ivory); position: relative; overflow: hidden; }
.reviews__bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--sage-pale), transparent); pointer-events: none; }
.reviews .container { position: relative; z-index: 1; }
.reviews__grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 1.5rem; margin: 4rem 0; align-items: start; }
.review__card { background: var(--white); border: 1px solid var(--ivory-dark); padding: 2.5rem 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: var(--transition); }
.review__card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.review__card--featured { background: var(--sage); border-color: var(--sage); color: var(--ivory); padding: 3rem 2.2rem; }
.review__card--featured .review__quote-mark { color: var(--sage-light); }
.review__card--featured p { color: rgba(250,247,242,0.9); }
.review__card--featured footer { color: var(--gold-light); }
.review__quote-mark { font-family: var(--font-display); font-size: 5rem; line-height: 0.5; color: var(--sage-light); margin-bottom: 1rem; display: block; }
.review__card p { font-size: 0.9rem; line-height: 1.75; color: var(--charcoal-mid); margin-bottom: 1.5rem; }
.review__card footer { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; color: var(--gold); }
.reviews__mantra { text-align: center; font-family: var(--font-display); font-size: 1.2rem; font-style: italic; color: var(--charcoal-light); padding-top: 1rem; }

/* ===== FEES ===== */
.fees { background: var(--ivory-dark); }
.fees__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
.fees__card { background: var(--white); border: 1px solid rgba(74,103,65,0.12); padding: 2.5rem 2rem; border-radius: var(--radius-lg); text-align: center; transition: var(--transition); }
.fees__card:hover { box-shadow: var(--shadow); border-color: var(--sage-light); transform: translateY(-3px); }
.fees__card--highlight { background: var(--sage); border-color: var(--sage); color: var(--ivory); }
.fees__card--highlight h3 { color: var(--ivory); }
.fees__card--highlight p { color: rgba(250,247,242,0.8); }
.fees__icon { width: 40px; margin: 0 auto 1.5rem; color: var(--gold); }
.fees__price { font-family: var(--font-display); font-size: 4rem; font-weight: 300; color: var(--gold-light); line-height: 1; margin-bottom: 0.5rem; }
.fees__card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--charcoal); margin-bottom: 0.8rem; }
.fees__card p { font-size: 0.88rem; color: var(--charcoal-light); line-height: 1.6; margin-bottom: 1.5rem; }
.fees__card strong { color: inherit; font-weight: 500; }

/* ===== CONTACT ===== */
.contact { background: var(--charcoal); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6rem; align-items: start; }
.contact .section__eyebrow { color: var(--gold-light); }
.contact .section__title { color: var(--ivory); }
.contact .section__title em { color: var(--sage-light); }
.contact__intro > p { color: rgba(250,247,242,0.65); font-size: 0.95rem; margin-bottom: 2.5rem; }
.contact__details { display: flex; flex-direction: column; gap: 1rem; }
.contact__detail { display: flex; align-items: center; gap: 0.8rem; font-size: 0.88rem; color: rgba(250,247,242,0.75); transition: color var(--transition); }
.contact__detail:hover { color: var(--gold-light); }
.contact__detail svg { width: 18px; flex-shrink: 0; stroke: var(--gold); }
.contact__form { display: flex; flex-direction: column; gap: 1.2rem; }
.form__group { display: flex; flex-direction: column; gap: 0.4rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form__group label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250,247,242,0.5); }
.form__group input, .form__group textarea { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); color: var(--ivory); padding: 0.9rem 1.1rem; font-family: var(--font-body); font-size: 0.9rem; font-weight: 300; border-radius: var(--radius); transition: var(--transition); resize: vertical; }
.form__group input::placeholder, .form__group textarea::placeholder { color: rgba(250,247,242,0.25); }
.form__group input:focus, .form__group textarea:focus { outline: none; border-color: var(--sage-mid); background: rgba(255,255,255,0.08); }
.form__group input.error, .form__group textarea.error { border-color: #c0614a; }
.form__success { display: none; align-items: center; gap: 0.8rem; color: var(--sage-light); font-size: 0.9rem; padding: 1rem; background: rgba(200,217,196,0.1); border: 1px solid rgba(200,217,196,0.2); border-radius: var(--radius); }
.form__success svg { width: 20px; flex-shrink: 0; stroke: var(--sage-light); }
.form__success.active { display: flex; }

/* ===== FOOTER ===== */
.footer { background: #141f12; padding: 4rem 0 2rem; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer__logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: var(--ivory); display: block; margin-bottom: 0.8rem; }
.footer__brand p { font-size: 0.85rem; color: rgba(250,247,242,0.45); line-height: 1.6; }
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__links a { font-size: 0.82rem; color: rgba(250,247,242,0.55); letter-spacing: 0.05em; transition: color var(--transition); }
.footer__links a:hover { color: var(--gold-light); }
.footer__accred { display: flex; flex-direction: column; gap: 0.4rem; }
.footer__accred span { font-size: 0.78rem; color: rgba(250,247,242,0.45); line-height: 1.4; }
.footer__bottom { padding-top: 1.5rem; text-align: center; }
.footer__bottom p { font-size: 0.75rem; color: rgba(250,247,242,0.3); letter-spacing: 0.05em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about__grid, .approach__grid { grid-template-columns: 1fr; gap: 3rem; }
  .reviews__grid { grid-template-columns: 1fr; }
  .fees__grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .contact__grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .about__stat-card { position: static; margin-top: 1.5rem; max-width: 100%; }
  /* Intro strip mobile: clean 2x2 borders */
  .intro-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .intro-strip__item { border-right: 1px solid rgba(255,255,255,0.18); border-bottom: 1px solid rgba(255,255,255,0.18); }
  .intro-strip__item:nth-child(2), .intro-strip__item:nth-child(4) { border-right: none; }
  .intro-strip__item:nth-child(3), .intro-strip__item:nth-child(4) { border-bottom: none; }
}

@media (max-width: 640px) {
  .section { padding: 5rem 0; }
  .nav__toggle { display: flex; }
  .nav__close-item { display: flex; justify-content: flex-end; }
  .nav__links { display: none; flex-direction: column; gap: 1.5rem; position: fixed; top: 0; right: 0; bottom: 0; width: 280px; background: var(--ivory); padding: 2rem; box-shadow: -10px 0 40px rgba(0,0,0,0.15); z-index: 99; }
  .nav__links.open { display: flex; }
  .nav__links a { color: var(--charcoal-mid) !important; font-size: 0.9rem; }
  .nav__links .nav__cta { color: var(--ivory) !important; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
