/* ── TINA LIU LMHC — SHARED STYLES ── */
/* Google Fonts loaded via <link> preconnect in each page's <head> for faster rendering */

:root {
  --white:        #FFFFFF;
  --off:          #FAF8F5;
  --terra:        #9E6678;
  --terra-mid:    #7A4A5C;
  --terra-pale:   #F5ECF0;
  --terra-soft:   #CBA8B4;
  --border:       #E4DDD6;
  --ink:          #1A1A1A;
  --ink-soft:     #4A4A4A;
  --ink-muted:    #8A8A8A;
  --nav-h:        70px;
  --r:            4px;
  --max:          1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Work Sans', system-ui, sans-serif; background: var(--white); color: var(--ink); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── NAV ── */
nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3.5rem;
  background: rgba(255,255,255,.94); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: 'Lora', Georgia, serif; font-size: 1.1rem; font-style: italic; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
nav ul { list-style: none; display: flex; align-items: center; gap: 2rem; }
nav ul a { font-size: .78rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; transition: color .18s; }
nav ul a:hover, nav ul a.active { color: var(--terra); }
.nav-cta { background: var(--ink) !important; color: var(--white) !important; padding: .5rem 1.3rem; border-radius: var(--r); letter-spacing: .06em; }
.nav-cta:hover { opacity: .82; }

/* ── FOOTER ── */
footer { background: var(--ink); padding: 2rem 3.5rem 1.6rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { font-family: 'Lora', Georgia, serif; font-size: .95rem; font-style: italic; color: var(--white); }
.footer-mid { font-size: .7rem; color: rgba(255,255,255,.35); }
.footer-right { font-size: .7rem; color: rgba(255,255,255,.4); }
.footer-right a { color: var(--terra-soft); text-decoration: none; }
.footer-right a:hover { color: var(--white); }
.footer-legal { max-width: var(--max); margin: .9rem auto 0; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-legal a { font-size: .68rem; color: rgba(255,255,255,.3); text-decoration: none; letter-spacing: .04em; transition: color .18s; }
.footer-legal a:hover { color: rgba(255,255,255,.7); }
.footer-copy { max-width: var(--max); margin: .6rem auto 0; font-size: .62rem; color: rgba(255,255,255,.2); }

/* ── TYPE ── */
h1 { font-family: 'Lora', Georgia, serif; font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-family: 'Lora', Georgia, serif; font-weight: 400; line-height: 1.15; letter-spacing: -.015em; }
h3 { font-family: 'Lora', Georgia, serif; font-weight: 400; line-height: 1.2; }
.serif { font-family: 'Lora', Georgia, serif; font-weight: 400; line-height: 1.15; color: var(--ink); letter-spacing: -.015em; }
.serif em { font-style: italic; color: var(--terra); }
.display { font-family: 'Lora', Georgia, serif; font-weight: 400; }
.eyebrow { font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); display: block; margin-bottom: .5rem; }

/* ── BUTTONS ── */
.btn { display: inline-block; padding: .75rem 1.9rem; border-radius: var(--r); font-size: .78rem; font-weight: 500; text-decoration: none; letter-spacing: .05em; text-transform: uppercase; transition: all .2s; font-family: 'Work Sans', sans-serif; }
.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { opacity: .82; transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }

/* ── PAGE HEADER ── */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 3.5rem 3.5rem;
  background: var(--off); border-bottom: 1px solid var(--border); text-align: center;
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--ink); margin-bottom: .6rem; }
.page-hero h1 em { font-style: italic; color: var(--terra); }
.page-hero p { font-size: .93rem; color: var(--ink-soft); max-width: 440px; margin: 0 auto; }

/* ── PAGE HEADER — image variant ── */
.page-hero--img {
  background-size: cover;
  background-position: center 30%;
  border-bottom: none;
  padding-bottom: 8rem;
  margin-bottom: -2rem;
}
.page-hero--img + .section {
  position: relative;
  z-index: 1;
}
.page-hero--img + .section::before {
  content: '';
  position: absolute;
  top: -2rem; left: 0; right: 0;
  height: 6rem;
  background: linear-gradient(to top, #fff 38%, rgba(255,255,255,0.6) 65%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: 2;
}
.page-hero--img .eyebrow {
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.page-hero--img h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.3);
}
.page-hero--img h1 em { color: #e8c5b0; }
.page-hero--img p {
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* ── SECTION ── */
.section { padding: 6rem 3.5rem; }
.section-inner { max-width: var(--max); margin: 0 auto; }

/* ── SERVICE CARDS ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: var(--r); overflow: hidden; }
.svc { background: var(--white); padding: 1.8rem 1.6rem; transition: background .2s; }
.svc:hover { background: var(--off); }
.svc h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: .5rem; }
.svc p { font-size: .88rem; color: var(--ink-soft); line-height: 1.72; }

/* Full-width service items (services page) */
.svc-full { border-bottom: 1px solid var(--border); padding: 2.2rem 0; }
.svc-full:first-child { padding-top: 0; }
.svc-full:last-child { border-bottom: none; }
.svc-full h3 { font-size: 1.25rem; color: var(--ink); margin-bottom: .7rem; }
.svc-full p { font-size: .93rem; color: var(--ink-soft); line-height: 1.82; }

/* ── TESTIMONIALS ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial { padding: 1.8rem 0; border-top: 1px solid var(--border); }
.testimonial blockquote { font-family: 'Lora', Georgia, serif; font-size: 1rem; font-style: italic; font-weight: 400; color: var(--ink-soft); line-height: 1.7; margin-bottom: .9rem; }
.testimonial cite { font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); font-style: normal; }

/* ── TAGS ── */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { padding: .4rem 1rem; border-radius: 50px; background: var(--white); border: 1.5px solid var(--border); font-size: .78rem; color: var(--ink-soft); transition: all .18s; }
.tag:hover { border-color: var(--terra); color: var(--terra); background: var(--terra-pale); }
a.tag { text-decoration: none; cursor: pointer; }

/* ── CREDENTIALS ── */
.cred-list { display: flex; flex-direction: column; gap: 0; }
.cred { padding: .8rem 0; border-bottom: 1px solid var(--border); }
.cred:last-child { border-bottom: none; }
.cred strong { display: block; font-size: .88rem; color: var(--ink); font-weight: 500; }
.cred span { font-size: .8rem; color: var(--ink-muted); }

/* ── PRINCIPLES ── */
.principles { display: flex; flex-direction: column; gap: 1.2rem; }
.principle { display: flex; gap: .9rem; }
.p-num { font-family: 'Lora', Georgia, serif; font-size: 1.4rem; color: var(--terra); opacity: .8; min-width: 1.5rem; line-height: 1; flex-shrink: 0; }
.p-text strong { display: block; font-size: .9rem; font-weight: 500; color: var(--ink); margin-bottom: .15rem; }
.p-text span { font-size: .83rem; color: var(--ink-soft); }

/* ── FEES ── */
.fee-rate { padding: 1.8rem 2rem; background: var(--ink); border-radius: var(--r); margin: 1.2rem 0; }
.rate-label { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.rate-num { font-family: 'Lora', Georgia, serif; font-size: 3.2rem; font-weight: 400; color: var(--terra-soft); line-height: 1; margin: .2rem 0; }
.rate-sub { font-size: .76rem; color: rgba(255,255,255,.4); }
.insurance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin: 1.1rem 0; }
.ins-item { padding: .65rem .9rem; background: var(--off); border-radius: var(--r); font-size: .81rem; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: .5rem; border: 1px solid var(--border); }
.ins-item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--terra); flex-shrink: 0; }
.openpath-card { padding: 1.4rem 1.6rem; background: var(--white); border-radius: var(--r); margin-top: 1.1rem; border: 1px solid var(--border); }
.openpath-card img { height: 24px; margin-bottom: .6rem; }
.openpath-card p { font-size: .82rem; color: var(--ink-soft); line-height: 1.65; }
.openpath-card a { color: var(--terra); }
.telehealth-card { padding: 1.6rem 1.8rem; background: var(--terra-pale); border-radius: var(--r); border: 1px solid var(--terra-soft); }
.telehealth-card h4 { font-family: 'Lora', Georgia, serif; font-size: 1.1rem; color: var(--ink); margin-bottom: .4rem; }
.telehealth-card p { font-size: .82rem; color: var(--ink-soft); }
.state-pills { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .75rem; }
.s-pill { padding: .25rem .8rem; border-radius: 50px; background: var(--white); border: 1px solid var(--border); font-size: .7rem; color: var(--terra-mid); font-weight: 500; }
.rule { border: none; border-top: 1px solid var(--border); margin: 1.8rem 0; }
.email-box { padding: 1.4rem 1.6rem; background: var(--terra-pale); border-radius: var(--r); margin-top: 1.1rem; }
.email-box p { font-size: .82rem; color: var(--ink-soft); margin-bottom: .9rem; line-height: 1.65; }
.license-note { margin-top: 1rem; padding: .85rem 1.1rem; background: var(--off); border-radius: var(--r); border: 1px solid var(--border); font-size: .78rem; color: var(--ink-soft); line-height: 1.6; }

/* ── FAQ ── */
.faq-group { margin-bottom: 2.5rem; }
.faq-group-title { font-family: 'Lora', Georgia, serif; font-size: 1.2rem; font-weight: 400; color: var(--ink); margin-bottom: .8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 1rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: 'Work Sans', sans-serif; font-size: .93rem; font-weight: 500; color: var(--ink); transition: color .18s; }
.faq-q:hover { color: var(--terra); }
.faq-q svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform .22s; color: var(--terra); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { font-size: .9rem; color: var(--ink-soft); line-height: 1.78; max-height: 0; overflow: hidden; transition: max-height .32s ease, padding .32s; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 1.1rem; }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: center;
}
nav.menu-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.menu-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.menu-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── DROPDOWN NAV ── */
.nav-has-dropdown { position: relative; }
.nav-has-dropdown::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 10px; }
.nav-dropdown-toggle { display: inline-flex !important; align-items: center; gap: .25rem; }
.nav-dropdown-arrow { font-size: .55rem; line-height: 1; transition: transform .2s; opacity: .6; }
.nav-has-dropdown:hover .nav-dropdown-arrow { transform: rotate(180deg); opacity: 1; }
.nav-dropdown-menu {
  list-style: none;
  display: block;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .4rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility 0s linear .18s, transform .18s ease;
  z-index: 200;
}
.nav-has-dropdown:hover .nav-dropdown-menu,
.nav-has-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity .18s ease, visibility 0s linear 0s, transform .18s ease;
}
.nav-dropdown-menu li { width: auto !important; }
.nav-dropdown-menu a {
  display: block !important;
  padding: .5rem 1.2rem !important;
  border-bottom: none !important;
  font-size: .75rem !important;
  letter-spacing: .06em !important;
  color: var(--ink-soft) !important;
  white-space: nowrap;
  text-align: left !important;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active { color: var(--terra) !important; background: var(--off) !important; }

/* ── CONTACT FORM ── */
.contact-form { max-width: 520px; margin: 0 auto 1.4rem; text-align: left; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.cf-field { margin-bottom: .8rem; }
.cf-field label { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .3rem; font-family: 'Work Sans', sans-serif; }
.cf-field input,
.cf-field textarea { width: 100%; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--r); background: var(--white); color: var(--ink); font-family: 'Work Sans', sans-serif; font-size: .88rem; line-height: 1.5; transition: border-color .18s; }
.cf-field input:focus,
.cf-field textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(158,102,120,.12); }
.cf-field textarea { resize: vertical; min-height: 110px; }
.cf-submit { width: 100%; text-align: center; margin-top: .4rem; cursor: pointer; border: none; }
.cf-submit:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }
.cf-success,
.cf-error { font-size: .88rem; color: var(--ink-soft); background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: .9rem 1.1rem; margin-top: .8rem; line-height: 1.6; display: none; }
.cf-error a { color: var(--terra); }
.cf-field-error { display: block; font-size: .75rem; color: var(--terra-mid); margin-top: .25rem; }
@media (max-width: 600px) { .cf-row { grid-template-columns: 1fr; } }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 0 1.8rem; }
  .nav-hamburger { display: flex; }
  nav ul {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.8rem 1.6rem;
    transform: translateY(-110%);
    transition: transform .28s ease, visibility 0s linear .28s;
    visibility: hidden;
    z-index: 99;
    pointer-events: none;
  }
  nav.menu-open ul {
    transform: translateY(0);
    transition: transform .28s ease, visibility 0s linear 0s;
    visibility: visible;
    pointer-events: auto;
  }
  nav ul li { width: 100%; }
  nav ul a {
    display: block;
    padding: .9rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
    color: var(--ink-soft);
  }
  nav ul li:last-child a { border-bottom: none; }
  .nav-cta {
    display: block !important;
    text-align: center;
    margin-top: .6rem;
    padding: .75rem 1.3rem !important;
  }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: hidden;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    padding: 0;
    margin: 0 0 0 .5rem;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height .25s ease, visibility 0s linear .25s;
  }
  .nav-has-dropdown.open .nav-dropdown-menu {
    max-height: 500px;
    visibility: visible;
    pointer-events: auto;
    transition: max-height .25s ease, visibility 0s linear 0s;
  }
  .nav-dropdown-menu li { width: 100% !important; }
  .nav-dropdown-menu a {
    padding: .6rem 0 .6rem .9rem !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: .82rem !important;
    color: var(--ink-muted) !important;
    background: transparent !important;
  }
  .nav-dropdown-menu li:last-child a { border-bottom: none !important; }
  .section { padding: 4rem 1.8rem; }
  .page-hero { padding: calc(var(--nav-h) + 2.5rem) 1.8rem 2.5rem; }
  footer { padding: 1.8rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 660px) {
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .insurance-grid { grid-template-columns: 1fr; }
}
