/* ============================================================
   Mary Silk Psychology — styles
   Palette: warm cream / deep eucalyptus / sage / soft clay
   ============================================================ */

:root {
  --cream: #faf7f1;
  --cream-2: #f3eee4;
  --ink: #22302a;
  --ink-soft: #4c5b53;
  --green: #2f4a3e;
  --green-deep: #24382f;
  --sage: #9db4a4;
  --sage-light: #dde7dd;
  --clay: #c78b60;
  --clay-soft: #e9d5c3;
  --white: #ffffff;

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

  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 18px 50px -18px rgba(34, 48, 42, 0.18);
  --shadow-card: 0 10px 34px -14px rgba(34, 48, 42, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; color: var(--green-deep); }

h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--clay); }

h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.22rem; font-weight: 500; }

p { color: var(--ink-soft); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1rem;
}

/* ---------- Layout ---------- */

.container { width: min(1140px, 90vw); margin: 0 auto; }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.section-head { max-width: 640px; margin: 0 auto 3.2rem; text-align: center; }
.section-lead { font-size: 1.06rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s;
}

.btn-solid { background: var(--green); color: var(--cream); box-shadow: 0 12px 26px -12px rgba(36, 56, 47, 0.55); }
.btn-solid:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(36, 56, 47, 0.6); }

.btn-ghost { border-color: rgba(47, 74, 62, 0.35); color: var(--green); background: transparent; }
.btn-ghost:hover { border-color: var(--green); background: rgba(47, 74, 62, 0.06); transform: translateY(-2px); }

.btn-small { padding: 0.6rem 1.3rem; font-size: 0.84rem; }
.btn-wide { width: 100%; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

.nav.scrolled {
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -18px rgba(34, 48, 42, 0.25);
  padding: 0.7rem 0;
}

.nav-inner {
  width: min(1240px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--green-deep); }
.brand-mark { width: 34px; height: 34px; color: var(--clay); flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { font-family: var(--font-display); font-size: 1.18rem; letter-spacing: 0.01em; white-space: nowrap; }
.brand-text em { color: var(--clay); }

.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  transition: color 0.25s;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1.5px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--green-deep); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--green-deep); transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 5rem;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.blob-1 { width: 46vw; height: 46vw; background: var(--sage-light); top: -12%; left: -10%; animation: drift 16s ease-in-out infinite alternate; }
.blob-2 { width: 38vw; height: 38vw; background: var(--clay-soft); bottom: -14%; right: -8%; animation: drift 20s ease-in-out infinite alternate-reverse; }
.blob-3 { width: 24vw; height: 24vw; background: #e4ecdf; top: 30%; right: 16%; opacity: 0.5; animation: drift 24s ease-in-out infinite alternate; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4vw, -3vw) scale(1.08); }
}

.hero-leaves {
  position: absolute;
  right: clamp(-60px, 2vw, 80px);
  bottom: -40px;
  width: clamp(180px, 24vw, 320px);
  color: rgba(47, 74, 62, 0.22);
}

.hero-content { position: relative; max-width: 820px; }

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  max-width: 560px;
  margin: 1.6rem auto 2.4rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(47, 74, 62, 0.4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 3px; height: 8px;
  background: var(--clay);
  border-radius: 3px;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
}

/* ---------- About ---------- */

.about-visual { display: flex; justify-content: center; }

.portrait-frame { position: relative; width: min(400px, 100%); }

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.portrait-badge {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  width: max-content;
  max-width: 92%;
}
.portrait-badge strong { font-family: var(--font-display); font-weight: 500; color: var(--green-deep); display: block; font-size: 1.05rem; }
.portrait-badge span { font-size: 0.78rem; color: var(--ink-soft); }

.about-copy p + p { margin-top: 1rem; }

.check-list { list-style: none; margin: 1.2rem 0; display: grid; gap: 0.55rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: baseline; color: var(--ink-soft); font-size: 0.97rem; }
.check-list li::before {
  content: "✦";
  color: var(--clay);
  font-size: 0.72rem;
  flex-shrink: 0;
  transform: translateY(-1px);
}

/* ---------- Quote band ---------- */

.quote-band { background: var(--cream-2); padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.quote-band blockquote {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.45;
  color: var(--green-deep);
}
.quote-mark {
  display: block;
  font-size: 4.4rem;
  line-height: 0.6;
  color: var(--clay);
  margin-bottom: 1.2rem;
}
.quote-band cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Focus cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.9rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(157, 180, 164, 0.18);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--sage-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 28px; height: 28px; }

.card h3 { margin-bottom: 0.55rem; }
.card p { font-size: 0.93rem; }

/* ---------- Approach ---------- */

.approach { background: var(--cream-2); }

.approach-copy p + p { margin-top: 1rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.chip {
  background: var(--white);
  border: 1px solid rgba(47, 74, 62, 0.18);
  color: var(--green);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-size: 0.83rem;
  font-weight: 500;
}

.steps { display: grid; gap: 1.1rem; }
.step {
  display: flex;
  gap: 1.2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-card);
  align-items: flex-start;
}
.step-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--clay);
  line-height: 1.3;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.step p { font-size: 0.9rem; }

/* ---------- Breathing interlude ---------- */

.breathe { background: var(--cream); }
.breathe-copy p { margin-bottom: 1.6rem; max-width: 460px; }

.breathe-visual { display: flex; justify-content: center; }
.breathe-ring {
  position: relative;
  width: min(320px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed rgba(47, 74, 62, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.breathe-circle {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--sage-light), var(--sage) 75%);
  box-shadow: 0 20px 50px -20px rgba(34, 48, 42, 0.35);
  transform: scale(0.72);
  transition: transform 3.8s cubic-bezier(0.45, 0, 0.55, 1);
}
.breathe-phase {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--green-deep);
}

/* ---------- Fees ---------- */

.fees { background: var(--cream-2); }

.fee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.fee-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(157, 180, 164, 0.18);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow-card);
}
.fee-card h3 { margin-bottom: 0.5rem; font-size: 1.08rem; }
.fee-card p { font-size: 0.9rem; }

.fine-note {
  text-align: center;
  margin-top: 2.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.fine-note strong { color: var(--green-deep); }

/* ---------- Contact ---------- */

.contact { background: var(--green); }
.contact .eyebrow { color: var(--clay-soft); }
.contact h2 { color: var(--cream); }
.contact p { color: rgba(250, 247, 241, 0.78); }

.contact-list { list-style: none; margin-top: 1.9rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: 0.9rem; color: rgba(250, 247, 241, 0.9); font-size: 0.97rem; }
.contact-list a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(250, 247, 241, 0.35); transition: border-color 0.25s; }
.contact-list a:hover { border-color: var(--clay); }
.contact-ic {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  background: rgba(250, 247, 241, 0.1);
  color: var(--clay-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-ic svg { width: 22px; height: 22px; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.1rem;
}
.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-deep);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s, background 0.25s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--white);
}
.contact-form ::placeholder { color: #a9b3ac; font-weight: 400; }

.form-note { font-size: 0.78rem; text-align: center; color: var(--ink-soft) !important; }

.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; pointer-events: none; }

.form-error {
  font-size: 0.85rem;
  color: #a83c22 !important;
  background: #fdf0ec;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  text-align: center;
}
.form-error a { color: #a83c22; font-weight: 600; }

.contact-success {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 4vw, 3.2rem);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--green-deep);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.contact-success h3 { margin-bottom: 0.5rem; }
.contact-success p { font-size: 0.92rem; }

/* ---------- Footer ---------- */

.footer { background: var(--green-deep); color: rgba(250, 247, 241, 0.75); padding: 3.4rem 0 2.4rem; }
.footer-inner { display: grid; gap: 1.8rem; justify-items: center; text-align: center; }

.footer-brand { display: flex; align-items: center; gap: 0.8rem; text-align: left; }
.footer-brand .brand-mark { color: var(--clay); }
.footer-brand strong { font-family: var(--font-display); font-weight: 500; color: var(--cream); font-size: 1.1rem; }
.footer-brand p { font-size: 0.78rem; color: rgba(250, 247, 241, 0.6); }

.footer-links { display: flex; flex-wrap: wrap; gap: 1.6rem; justify-content: center; }
.footer-links a { color: rgba(250, 247, 241, 0.75); text-decoration: none; font-size: 0.88rem; transition: color 0.25s; }
.footer-links a:hover { color: var(--cream); }

.acknowledgement { font-size: 0.8rem; max-width: 560px; color: rgba(250, 247, 241, 0.55); }
.copyright { font-size: 0.78rem; color: rgba(250, 247, 241, 0.45); }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .strip-track, .scroll-cue span { animation: none; }
  .breathe-circle { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .fee-grid { grid-template-columns: 1fr 1fr; }
  .about .two-col { gap: 3rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-105vh);
    visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0s 0.5s;
    z-index: -1;
  }
  .nav-links.open {
    transform: none;
    visibility: visible;
    transition: transform 0.5s var(--ease);
  }
  .nav-links a:not(.btn) { font-size: 1.2rem; }

  .card-grid, .fee-grid, .field-row { grid-template-columns: 1fr; }
  .hero { padding-top: 6rem; }
  .hero-leaves { display: none; }
}

/* ---------- Captcha row ---------- */

.captcha-row {
  display: flex;
  align-items: end;
  gap: 0.8rem;
  background: var(--sage-light);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.captcha-row label { flex: 1; }
.captcha-row #captchaQuestion { font-weight: 700; color: var(--green-deep); }
.captcha-row input { width: 100%; background: var(--white); }
.captcha-refresh {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.6rem 0.2rem;
  white-space: nowrap;
}
.captcha-refresh:hover { color: var(--green-deep); }
