/* ============================================================
   Saúl Gomez, Psy.D. — practice site
   Palette: muted grayscale + classic tattoo-ink blue
   Type: Spectral (display) · Public Sans (body)
   ============================================================ */

:root {
  --ink:       #24405f;   /* classic tattoo ink blue */
  --ink-deep:  #16283c;   /* near-navy, dark sections */
  --ink-faded: #5e7a99;   /* aged ink, secondary accents */
  --wash:      #e9eef3;   /* pale blue-gray wash */
  --paper:     #f6f7f8;   /* cool off-white */
  --white:     #ffffff;
  --graphite:  #2b2f34;   /* body text */
  --ash:       #6f7680;   /* muted captions */
  --line:      #d8dde2;   /* hairlines */

  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --shell: 1080px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink-deep); }

:focus-visible {
  outline: 2px solid var(--ink-faded);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.375rem;
}

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

h1, h2, h3 { font-family: var(--font-display); color: var(--ink-deep); font-weight: 500; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: 0.875rem;
}

.lede { font-size: 1.1875rem; color: var(--ash); max-width: 46rem; }

/* ---- Header & navigation ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 247, 248, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand { text-decoration: none; line-height: 1.25; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--ink-deep);
}
.brand-cred { font-weight: 400; color: var(--ink-faded); }
.brand-sub {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
}

.menu-toggle {
  display: none;
  font: 600 0.8125rem var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.875rem;
  cursor: pointer;
}

.nav-panel { display: flex; align-items: center; gap: 0.25rem; }

.nav-group { position: relative; }

.nav-group-btn {
  font: 500 0.9375rem var(--font-body);
  color: var(--graphite);
  background: none;
  border: none;
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
}
.nav-group-btn:hover { color: var(--ink-deep); }
.nav-group-btn::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  border-right: 1.5px solid var(--ink-faded);
  border-bottom: 1.5px solid var(--ink-faded);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}
.nav-group:hover .nav-group-btn::after,
.nav-group.open .nav-group-btn::after { transform: rotate(225deg) translateY(-1px); }

.dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 13.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 28px rgba(22, 40, 60, 0.12);
  padding: 0.375rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-group:hover .dropdown,
.nav-group:focus-within .dropdown,
.nav-group.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
  color: var(--graphite);
  text-decoration: none;
}
.dropdown a:hover { background: var(--wash); color: var(--ink-deep); }

.nav-cta {
  margin-left: 0.75rem;
  font: 600 0.9375rem var(--font-body);
  color: var(--white) !important;
  background: var(--ink);
  border-radius: var(--radius);
  padding: 0.5625rem 1.0625rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--ink-deep); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(22, 40, 60, 0.12);
    padding: 0.5rem 0 1rem;
  }
  .nav-panel.open { display: flex; }
  .nav-group-btn {
    width: 100%;
    justify-content: space-between;
    padding: 0.875rem 1.375rem;
    font-size: 1rem;
    border-top: 1px solid var(--line);
  }
  .nav-group-btn::after { display: none; }
  .dropdown {
    position: static;
    min-width: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--wash);
    padding: 0.25rem 0;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .dropdown a { padding: 0.625rem 1.75rem; }
  .nav-cta { margin: 0.875rem 1.375rem 0; text-align: center; }
}

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

.btn {
  display: inline-block;
  font: 600 0.9375rem var(--font-body);
  border-radius: var(--radius);
  padding: 0.8125rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-deep); color: var(--white); }
.btn-ghost { border-color: var(--ink-faded); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink-deep); }
.on-dark .btn-primary { background: var(--white); color: var(--ink-deep); }
.on-dark .btn-primary:hover { background: var(--wash); }
.on-dark .btn-ghost { border-color: rgba(255,255,255,0.45); color: var(--white); }
.on-dark .btn-ghost:hover { border-color: var(--white); }

/* ---- Artwork (v2) ----------------------------------------- */

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-art img {
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(22, 40, 60, 0.16);
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-art { order: 2; max-width: 34rem; }
}

.card-art {
  margin: -1.75rem -1.75rem 1.375rem;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.card-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.about-art img {
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(22, 40, 60, 0.12);
  margin-bottom: 1.75rem;
}

.prose-art {
  float: right;
  width: 200px;
  margin: 0.375rem 0 1.25rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(22, 40, 60, 0.12);
}
@media (max-width: 640px) { .prose-art { width: 136px; margin-left: 1.125rem; } }

.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.75rem;
  align-items: start;
  max-width: 46rem;
}
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } }

.portrait-slot {
  aspect-ratio: 4 / 5;
  background: var(--wash);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  color: var(--ink-faded);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
}
.portrait-slot:has(img) {
  border: none;
}
.portrait-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  border-radius: var(--radius);
}
.portrait-slot .initials {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 500;
  color: var(--ink-faded);
  letter-spacing: 0;
  text-transform: none;
}

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

.hero { padding: 4.75rem 0 4rem; }

.hero h1 {
  font-size: clamp(2.25rem, 5.4vw, 3.5rem);
  line-height: 1.12;
  font-weight: 500;
  max-width: 17ch;
  margin-bottom: 1.375rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--ink);
}

.hero .lede { margin-bottom: 2.25rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.trust-strip .shell {
  display: flex;
  flex-wrap: wrap;
}
.trust-item {
  flex: 1 1 200px;
  padding: 1.125rem 1.5rem 1.125rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faded);
}
.trust-item + .trust-item { border-left: 1px solid var(--line); padding-left: 1.5rem; }
@media (max-width: 700px) {
  .trust-item + .trust-item { border-left: none; padding-left: 0; border-top: 1px solid var(--line); }
}

/* ---- Sections --------------------------------------------- */

.section { padding: 4.5rem 0; }
.section-white { background: var(--white); }
.section-wash { background: var(--wash); }

.section-head { margin-bottom: 2.5rem; }
.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.375rem);
  line-height: 1.2;
  max-width: 24ch;
}
.section-head .lede { margin-top: 0.875rem; }

/* ---- Condition cards -------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.625rem;
  text-decoration: none;
  display: block;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  border-color: var(--ink-faded);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(22, 40, 60, 0.08);
}

.card .tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: 0.75rem;
}
.card h3 { font-size: 1.375rem; font-weight: 600; margin-bottom: 0.625rem; }
.card p { color: var(--ash); font-size: 0.9875rem; }
.card .card-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---- Signature: care that travels ------------------------- */

.travels {
  background: var(--ink-deep);
  color: var(--wash);
  padding: 5rem 0;
}
.travels .eyebrow { color: var(--ink-faded); }
.travels h2 {
  color: var(--white);
  font-size: clamp(1.875rem, 3.8vw, 2.625rem);
  margin-bottom: 1.125rem;
}
.travels p {
  max-width: 44rem;
  color: rgba(233, 238, 243, 0.82);
  margin-bottom: 0.875rem;
}
.travels p strong { color: var(--white); font-weight: 600; }

.route { margin: 3rem 0 0.5rem; }
.route svg { width: 100%; height: auto; overflow: visible; }

.route-path {
  fill: none;
  stroke: var(--ink-faded);
  stroke-width: 2;
  stroke-dasharray: 7 9;
  stroke-linecap: round;
}
.route-node { fill: var(--white); }
.route-ring { fill: none; stroke: var(--ink-faded); stroke-width: 1.5; }
.route-label {
  font: 600 13px var(--font-body);
  letter-spacing: 0.14em;
  fill: rgba(233, 238, 243, 0.85);
}
.route-sublabel {
  font: italic 400 13.5px var(--font-display);
  fill: var(--ink-faded);
}

@media (prefers-reduced-motion: no-preference) {
  .route.drawn .route-path {
    stroke-dashoffset: 0;
    animation: route-draw 2.4s ease-out;
  }
  @keyframes route-draw {
    from { stroke-dashoffset: 640; }
    to { stroke-dashoffset: 0; }
  }
}

/* ---- How treatment works ---------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  counter-reset: step;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 1.75rem; } }

.step { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.step .step-num {
  font-family: var(--font-display);
  font-size: 2.375rem;
  font-weight: 500;
  color: var(--ink-faded);
  line-height: 1;
  margin-bottom: 0.625rem;
}
.step h3 { font-size: 1.3125rem; font-weight: 600; margin-bottom: 0.5rem; }
.step p { color: var(--ash); font-size: 0.9875rem; }

/* ---- About teaser / pull quote ---------------------------- */

.about-teaser {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 820px) { .about-teaser { grid-template-columns: 1fr; gap: 2rem; } }

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--ink);
  border-left: 2px solid var(--ink);
  padding-left: 1.5rem;
}

/* ---- CTA band --------------------------------------------- */

.cta-band { text-align: center; padding: 5rem 0; }
.cta-band h2 { font-size: clamp(1.875rem, 3.6vw, 2.5rem); margin-bottom: 0.875rem; }
.cta-band p { color: var(--ash); max-width: 38rem; margin: 0 auto 2rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.875rem; }

/* ---- Prose pages (services / info / about) ---------------- */

.page-head {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  padding: 4rem 0 3.25rem;
}
.page-head h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.15;
  max-width: 22ch;
  margin-bottom: 1rem;
}

.prose-section { padding: 3.75rem 0; }
.prose-section + .prose-section { border-top: 1px solid var(--line); }

.prose { max-width: 46rem; }
.prose h2 {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  margin-bottom: 1.25rem;
}
.prose h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 2.25rem 0 0.625rem;
}
.prose p { margin-bottom: 1rem; }
.prose p.muted { color: var(--ash); }
.prose ul { margin: 0 0 1rem 1.25rem; }
.prose li { margin-bottom: 0.375rem; }

.how-line {
  background: var(--wash);
  border-left: 2px solid var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.875rem 1.25rem;
  margin: 1rem 0 0.5rem;
  font-size: 0.9875rem;
}
.how-line strong { color: var(--ink-deep); }

/* ---- FAQ -------------------------------------------------- */

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 0.75rem;
  max-width: 46rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink-deep);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.375rem;
  color: var(--ink-faded);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 1.375rem 1.25rem; color: var(--graphite); }
.faq-item .faq-body p { margin-bottom: 0.75rem; }

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 46rem;
}
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.625rem;
}
.contact-card .tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: 0.5rem;
}
.contact-card a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.notice {
  max-width: 46rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--ash);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

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

.site-footer {
  background: var(--ink-deep);
  color: rgba(233, 238, 243, 0.75);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

.footer-brand .brand-name { color: var(--white); font-size: 1.25rem; }
.footer-brand .brand-sub { color: var(--ink-faded); margin-top: 0.25rem; }
.footer-brand p { margin-top: 0.875rem; max-width: 30rem; }

.footer-col h4 {
  font: 600 0.75rem var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: 0.875rem;
}
.footer-col a {
  display: block;
  color: rgba(233, 238, 243, 0.75);
  text-decoration: none;
  padding: 0.2rem 0;
}
.footer-col a:hover { color: var(--white); }

.footer-legal {
  border-top: 1px solid rgba(233, 238, 243, 0.15);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(233, 238, 243, 0.5);
}
.footer-legal p { margin-bottom: 0.375rem; }

/* ---- Reveal animation ------------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
