/* ==========================================================================
   global.css — Sofia Petricca Psychotherapy
   --------------------------------------------------------------------------
   Aesthetic: refined minimal, warm-clinical. Dusty blue + ivory.
   All colours are CSS variables in :root so the palette can be retuned later
   from a single block — change a variable, the whole site shifts in concert.
   ========================================================================== */

:root {
  /* ── PALETTE ─────────────────────────────────────────────────────────────
     The blue is muted (close to slate/dusk) so it reads "calm professional"
     rather than corporate. The paper is a warm ivory — slightly cream — so
     the page never feels clinical-cold. The accent is a soft sand/gold used
     SPARINGLY (rules, divider dots, subtle highlights), never as a fill.
     ──────────────────────────────────────────────────────────────────────── */
  --ink:        #1F2A37;   /* deep blue-charcoal — primary text */
  --ink-soft:   #3A4856;   /* secondary text */
  --muted:      #6B7682;   /* tertiary / meta text */

  --paper:      #FAF6EC;   /* page background — warm ivory */
  --paper-alt:  #F2EBDB;   /* card / section-tint background */
  --paper-deep: #E8DFC9;   /* deeper tone for dividers, edges */

  --blue:       #4A6B85;   /* dusty-blue primary */
  --blue-deep:  #2E4A63;   /* hover / dark surfaces */
  --blue-soft:  #B8C9D6;   /* tints, light accents */
  --blue-tint:  #E2EAF1;   /* very light wash */

  --accent:     #B89968;   /* muted gold/sand — small accents only */
  --accent-soft:#D8C499;   /* lighter gold for highlights */

  --rule:       #D9CFB8;   /* subtle border / horizontal rule */
  --rule-soft:  #E8DFC9;   /* even subtler */

  --shadow-sm:  0 1px 3px rgba(31, 42, 55, 0.05);
  --shadow-md:  0 4px 16px rgba(31, 42, 55, 0.08);
  --shadow-lg:  0 12px 40px rgba(31, 42, 55, 0.10);

  /* ── TYPOGRAPHY ─────────────────────────────────────────────────────────
     Fraunces — warm, modern variable serif with optical sizing. Used for all
     display / headings. Soft enough for therapy, contemporary enough not to
     read as "law-firm traditional."
     Manrope — refined geometric-humanist sans for body. Distinctive without
     being decorative; pairs cleanly with Fraunces.
     ──────────────────────────────────────────────────────────────────────── */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Manrope', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* ── LAYOUT ─────────────────────────────────────────────────────────────── */
  --max-w:    1180px;
  --max-w-narrow: 760px;
  --pad-x:    clamp(1.25rem, 5vw, 3rem);
  --section-pad: clamp(4rem, 8vw, 6.5rem);

  /* ── MOTION ─────────────────────────────────────────────────────────────── */
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:  120ms var(--ease);
  --t-med:   220ms var(--ease);
  --t-slow:  420ms var(--ease);
}

/* ── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* very subtle paper warmth — a soft vertical gradient */
  background-image: linear-gradient(180deg, var(--paper) 0%, #F8F2E4 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--blue-deep);
}

/* ── TYPOGRAPHY ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  /* Fraunces variable axes — soft optical with a touch of warmth */
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); font-weight: 400; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); font-weight: 400; }
h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
  max-width: 65ch;
}

p + p {
  margin-top: 1rem;
}

em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

/* ── UTILITIES ─────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.container-narrow {
  max-width: var(--max-w-narrow);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--section-pad);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin-block: 2rem;
}

.rule-soft {
  height: 1px;
  background: var(--rule-soft);
  border: 0;
}

/* ── NAV ───────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}

.nav-logo .nav-logo-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
  margin-right: 0.5rem;
  align-self: center;
  position: relative;
  top: 1px;
}

.nav-logo:hover { color: var(--blue-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.5rem;
  transition: color var(--t-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}

.nav-links a:hover,
.nav-links a[data-active] {
  color: var(--blue-deep);
}

.nav-links a:hover::after,
.nav-links a[data-active]::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--blue);
  color: var(--paper) !important;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: background var(--t-fast);
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--blue-deep); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--t-med), opacity var(--t-fast);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem var(--pad-x) 2rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--rule-soft);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 1.05rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule-soft);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }
}

/* ── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-med);
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--paper);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
  background: var(--blue-tint);
}

.btn-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform var(--t-med);
}

.btn-arrow:hover::after {
  transform: translateX(3px);
}

/* ── FOOTER ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--paper-alt);
  border-top: 1px solid var(--rule);
  padding-block: 3rem 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 0.5rem;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}

.footer-credentials {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
  letter-spacing: 0.02em;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-col a:hover { color: var(--blue-deep); }

.footer-bottom {
  border-top: 1px solid var(--rule-soft);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

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

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

/* ── FOCUS STATES (a11y) ────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

button:focus-visible,
a:focus-visible {
  outline-offset: 4px;
}
