/* ============================================================
   Rizzuto Psychiatry and Wellness — main stylesheet
   Calm, professional wellness aesthetic.
   Palette:
     --teal-900  deep teal (primary brand)
     --teal-700  teal (buttons, links)
     --teal-100  pale teal (tinted sections)
     --cream     warm neutral page background
     --sand      warm neutral alt section
     --ink       primary text
     --muted     secondary text
     --gold      warm accent (sparingly)
   ============================================================ */

:root {
  --teal-900: #0c4f4c;
  --teal-700: #0f766e;
  --teal-600: #149085;
  --teal-100: #e3efec;
  --teal-50:  #f0f7f5;
  --cream:    #faf8f4;
  --sand:     #f2ede4;
  --ink:      #22312f;
  --muted:    #5b6b69;
  --gold:     #c39a5b;
  --white:    #ffffff;
  --border:   #e2dccf;
  --danger:   #b3402e;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(12, 79, 76, 0.08);
  --shadow-md: 0 8px 28px rgba(12, 79, 76, 0.10);
  --max-width: 1140px;
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--teal-900);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }

/* Visible, consistent keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link for screen readers / keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal-900);
  color: #fff;
  padding: 0.7rem 1.2rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container {
  width: min(var(--max-width), 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--teal-50); }
.section--sand { background: var(--sand); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 0.8rem;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 44rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary {
  background: var(--teal-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--teal-900); color: #fff; transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--teal-900);
  border-color: var(--teal-700);
}
.btn--outline:hover { background: var(--teal-100); color: var(--teal-900); }
.btn--light {
  background: #fff;
  color: var(--teal-900);
}
.btn--light:hover { background: var(--teal-50); color: var(--teal-900); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  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(--teal-900);
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  flex: none;
}
.brand-text { line-height: 1.15; }
.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}
.brand-text small {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--teal-900);
}
.nav-toggle svg { display: block; width: 22px; height: 22px; }

.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
.main-nav a:hover { background: var(--teal-100); color: var(--teal-900); }
.main-nav a[aria-current="page"] {
  background: var(--teal-900);
  color: #fff;
}
.nav-cta { margin-left: 0.5rem; }
.nav-cta .btn { padding: 0.6rem 1.3rem; font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, var(--teal-100) 0%, transparent 60%),
    radial-gradient(800px 420px at -10% 110%, var(--sand) 0%, transparent 55%),
    var(--cream);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: 0.5em; }
.hero h1 .accent { color: var(--teal-600); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 1.8rem; padding: 0; list-style: none;
}
.hero-badges li {
  font-size: 0.88rem; font-weight: 600;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  color: var(--teal-900);
  box-shadow: var(--shadow-sm);
}
.hero-art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--teal-100);
  min-height: 320px;
  position: relative;
}
/* Decorative abstract panel (replace with real photography later) */
.hero-art .art-inner {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(20,144,133,0.35), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(195,154,91,0.35), transparent 50%),
    linear-gradient(140deg, var(--teal-100), var(--sand));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}
.hero-art .art-inner p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--teal-900);
  max-width: 20rem;
  margin: 0;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--teal-100);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
  color: var(--teal-700);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.99rem; flex: 1; }
.card .card-link { font-weight: 600; margin-top: 0.6rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ---------- Split (about snippet) ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.portrait {
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--teal-100), var(--sand));
  border: 1px solid var(--border);
  min-height: 380px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--teal-900);
  box-shadow: var(--shadow-sm);
}
.portrait p { font-style: italic; font-family: var(--font-display); font-size: 1.2rem; }
.checklist { list-style: none; padding: 0; margin: 1.4rem 0; }
.checklist li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.7rem;
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  font-weight: 700;
  display: grid; place-items: center;
  font-size: 0.85rem;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.testimonial {
  background: #fff;
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  position: relative;
}
.testimonial .stars { color: var(--gold); letter-spacing: 0.2em; margin-bottom: 0.7rem; }
.testimonial blockquote { margin: 0 0 1rem; font-style: italic; color: var(--muted); }
.testimonial cite { font-style: normal; font-weight: 600; font-size: 0.92rem; color: var(--teal-900); }
.placeholder-flag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #fdf3e3;
  color: #8a5a17;
  border: 1px solid #ecd9ae;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.8rem;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 2.2rem auto 0; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  color: var(--teal-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 36rem; margin: 0 auto 1.8rem; }
.cta-band .btn--light { margin: 0 0.4rem 0.6rem; }

/* ---------- Service detail ---------- */
.service-detail {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.service-detail h2 { display: flex; align-items: center; gap: 0.8rem; }
.service-detail h2 .card-icon { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.two-col h3 { font-size: 1.12rem; font-family: var(--font-body); font-weight: 700; color: var(--teal-900); }
.note-box {
  background: var(--teal-50);
  border-left: 4px solid var(--teal-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.3rem;
  margin-top: 1.5rem;
  font-size: 0.97rem;
  color: var(--muted);
}
.note-box strong { color: var(--teal-900); }

/* ---------- Forms ---------- */
.form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-sm);
  max-width: 680px;
}
.form-field { margin-bottom: 1.3rem; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--teal-900);
}
.form-field label .req { color: var(--danger); }
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--teal-600);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 144, 133, 0.18);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-hint { font-size: 0.87rem; color: var(--muted); margin-top: 0.35rem; }
.privacy-notice {
  background: #fff8ec;
  border: 1px solid #ecd9ae;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.93rem;
  color: #6b4d16;
  margin-bottom: 1.5rem;
}
.privacy-notice strong { display: block; margin-bottom: 0.25rem; color: #6b4d16; }
.form-status {
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.3rem;
  display: none;
  font-size: 0.96rem;
}
.form-status--success { display: block; background: var(--teal-50); border: 1px solid var(--teal-600); color: var(--teal-900); }
.form-status--error { display: block; background: #fdf0ee; border: 1px solid var(--danger); color: #7c2d20; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
.site-footer h3, .site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-brand { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; }
.footer-brand .brand-mark { background: rgba(255,255,255,0.14); }
.footer-brand strong { font-family: var(--font-display); color: #fff; font-size: 1.1rem; }
.disclaimer {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding: 1.6rem 0 2rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
.disclaimer p { margin-bottom: 0.7em; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.8rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--teal-50), var(--cream));
  border-bottom: 1px solid var(--border);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
}
.page-hero p.lead { margin: 0 auto; }

/* ---------- Contact layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-info .card { margin-bottom: 1.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 240px; order: -1; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0.8rem; gap: 0.2rem; }
  .main-nav a { padding: 0.8rem 1rem; }
  .main-nav a[aria-current="page"] { border-radius: var(--radius-sm); }
  .nav-cta { margin: 0.4rem 0 0; }
  .nav-cta .btn { display: block; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
