/* ===========================================================
   Francesca Sorriento — Psicologa
   Palette: forest green + terracotta + warm cream
   Type: Fraunces (display) + Inter (body)
=========================================================== */

:root {
  --cream: #FBF7F1;
  --cream-deep: #F2EAE0;
  --forest: #24382E;
  --forest-2: #33503F;
  --sage: #8CA393;
  --sage-soft: #E4EAE1;
  --terracotta: #C9764F;
  --terracotta-soft: #F1DED2;
  --ink: #241F1A;
  --ink-soft: #5B564F;
  --white: #FFFFFF;

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

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 60px -25px rgba(36, 56, 46, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(36, 31, 26, 0.25);
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--forest);
  letter-spacing: -0.01em;
}

p { line-height: 1.7; margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 10px 24px -10px rgba(36, 56, 46, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(36, 56, 46, 0.6); }
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: rgba(36, 56, 46, 0.25);
}
.btn-ghost:hover { border-color: var(--forest); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251, 247, 241, 0.75);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(36, 56, 46, 0.08);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(36, 56, 46, 0.35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
  min-width: 0;
  flex-shrink: 1;
}
.logo-mark { display: flex; color: var(--terracotta); }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  white-space: nowrap;
}
.logo-text em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.main-nav {
  display: flex;
  gap: 34px;
}
.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--terracotta);
  transition: right 0.28s ease;
}
.main-nav a:hover { color: var(--forest); }
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
}
.hero-blob-1 {
  width: 480px; height: 480px;
  top: -160px; right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--terracotta-soft), transparent 70%);
}
.hero-blob-2 {
  width: 420px; height: 420px;
  bottom: -220px; left: -140px;
  background: radial-gradient(circle at 60% 40%, var(--sage-soft), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}
.eyebrow-light { color: var(--terracotta-soft); }

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  color: var(--forest);
}
.ink-underline {
  position: relative;
  white-space: nowrap;
  font-style: italic;
  color: var(--terracotta);
}
.ink-underline::after {
  content: "";
  position: absolute;
  left: -2%;
  bottom: 4px;
  width: 104%;
  height: 10px;
  background: var(--terracotta-soft);
  z-index: -1;
  border-radius: 6px;
}

.hero-lede {
  font-size: 1.13rem;
  max-width: 46ch;
  margin-top: 22px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin: 34px 0 30px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.hero-trust .dot { color: var(--terracotta); }

.hero-portrait { position: relative; display: flex; justify-content: center; }
.portrait-frame {
  position: relative;
  width: min(360px, 80%);
  aspect-ratio: 1 / 1.08;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--white);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.portrait-badge {
  position: absolute;
  bottom: -18px;
  left: -10px;
  background: var(--forest);
  color: var(--cream);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  max-width: 220px;
}
.portrait-badge strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--terracotta-soft);
}
.portrait-badge span { font-size: 0.78rem; line-height: 1.3; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  color: var(--forest);
  opacity: 0.6;
  animation: floaty 2.4s ease-in-out infinite;
}
.scroll-cue-dot { animation: dotmove 1.8s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }
@keyframes dotmove { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(10px); opacity: 0.3; } }

/* ---------- Sections generic ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--cream-deep); }
.section-dark { background: var(--forest); }
.section-dark::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(201,118,79,0.18), transparent 55%);
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.light-heading { color: var(--cream); }
.lede { font-size: 1.08rem; }

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}
.two-col h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }

.mission-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border-left: 3px solid var(--terracotta);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-top: 28px;
  box-shadow: var(--shadow-card);
}
.mission-icon { color: var(--terracotta); font-size: 1.2rem; line-height: 1; }
.mission-note p { margin: 0; font-style: italic; color: var(--forest); }

.info-cards { display: flex; flex-direction: column; gap: 22px; }
.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--terracotta-soft);
  color: var(--terracotta);
  margin-bottom: 16px;
}
.info-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.info-card p { margin: 0; font-size: 0.95rem; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--sage-soft);
  color: var(--forest-2);
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; margin: 0; }

/* ---------- Timeline ---------- */
.timeline-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.timeline-title {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--terracotta);
  font-style: italic;
}
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--sage-soft); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 5px var(--cream);
}
.timeline-date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sage);
  margin-bottom: 6px;
}
.timeline-content h4 { font-size: 1.05rem; margin-bottom: 6px; color: var(--forest); }
.timeline-content p { font-size: 0.94rem; margin: 0; }

.timeline-footnote {
  margin-top: 50px;
  text-align: center;
  font-style: italic;
  color: var(--forest-2);
}

/* ---------- Why cards ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.why-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.1); }
.why-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--terracotta-soft);
  margin-bottom: 14px;
}
.why-card h3 { color: var(--cream); font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { color: rgba(251,247,241,0.72); font-size: 0.92rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.testimonial-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 34px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 14px; left: 24px;
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--terracotta-soft);
  line-height: 1;
}
.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--forest);
  margin: 20px 0 18px;
  position: relative;
}
.testimonial-card footer {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage);
}

/* ---------- Booking ---------- */
.section-booking { padding-bottom: 140px; }
.booking-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  position: relative;
  overflow: hidden;
}
.booking-card::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--terracotta-soft);
  opacity: 0.5;
  z-index: 0;
}
.booking-intro, .booking-actions { position: relative; z-index: 1; }

.booking-meta { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.booking-meta li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.94rem; color: var(--ink-soft); }
.booking-meta strong { color: var(--forest); }

.booking-actions { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.contact-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--cream-deep);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.contact-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.contact-btn-primary { background: var(--forest); color: var(--cream); }
.contact-btn-primary .contact-icon { background: rgba(251,247,241,0.15); color: var(--terracotta-soft); }
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--sage-soft);
  color: var(--forest);
  flex-shrink: 0;
}
.contact-btn span:last-child { display: flex; flex-direction: column; gap: 2px; }
.contact-btn strong { font-size: 0.98rem; }
.contact-btn small { font-size: 0.84rem; opacity: 0.8; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest);
  color: rgba(251,247,241,0.8);
  padding: 64px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(251,247,241,0.12);
}
.footer-logo { color: var(--cream); }
.footer-logo em { color: var(--sage); }
.footer-inner p { color: rgba(251,247,241,0.6); margin-top: 10px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 0.92rem; color: rgba(251,247,241,0.75); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--terracotta-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(251,247,241,0.5);
}
.footer-bottom p { margin: 0; color: inherit; }
.footer-note { max-width: 460px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; margin-bottom: 20px; }
  .two-col { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-cols { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .booking-card { grid-template-columns: 1fr; padding: 44px 32px; }
}

@media (max-width: 980px) {
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0; right: 0;
    background: var(--cream);
    padding: 20px 28px 30px;
    gap: 8px;
    box-shadow: 0 20px 30px -20px rgba(36,56,46,0.3);
  }
  .main-nav.open a { padding: 12px 0; border-bottom: 1px solid rgba(36,56,46,0.08); }
  .header-actions .btn-sm { display: none; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 150px 0 90px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .booking-card { padding: 32px 24px; }
  .logo-text { font-size: 0.98rem; }
  .logo-mark svg { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue, .scroll-cue-dot { animation: none; }
}
