/* ==========================================================================
   Pacific City Psychiatry & Wellness — Janae Cox, PMHNP · Huntington Beach, CA
   Brand system: "Coastal calm — sea, sage & sun". One typeface (Jost), the
   sun-over-horizon mark, and a horizon-line motif drawn from it.
   ========================================================================== */

:root {
  /* Core */
  --sea:     #2C5D6B;  /* Deep Sea — primary */
  --harbor:  #1C3D46;  /* Harbor — ink / dark surfaces */
  --sage:    #6F8A6A;  /* Sage — secondary */
  --sun:     #D9A441;  /* Sun — accent */

  /* Support & neutrals */
  --tide:     #5E8A90;
  --seaglass: #9BB39A;
  --dawn:     #E9C982;
  --stone:    #7C8A88;
  --sand:     #EFEBE1;
  --cloud:    #FCFBF7;
  --white:    #FFFFFF;

  --line:      #EEF0EE;
  --line-warm: #E7E4DA;
  --mute:      #8A958F;
  --sage-chip: #EEF2EE;
  --sea-tint:  #E4EDEF;

  --ink:      var(--harbor);
  --ink-soft: #3E555B;

  --shadow-sm: 0 1px 2px rgba(20,30,50,.04);
  --shadow:    0 1px 2px rgba(20,30,50,.04), 0 18px 50px -28px rgba(20,30,50,.16);
  --shadow-lg: 0 1px 2px rgba(20,30,50,.04), 0 24px 60px -30px rgba(15,40,46,.5);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;
  --max-width: 1120px;

  --font: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cloud);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 500; }
em { font-style: italic; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--harbor);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 400; }
h3 { font-size: 1.25rem; font-weight: 500; }
h4 { font-size: 1rem;    font-weight: 500; }

.eyebrow {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 .9rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--mute); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--harbor); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Brand mark
   -------------------------------------------------------------------------- */
.brand-mark { flex-shrink: 0; color: var(--sea); }
.brand-mark circle { fill: var(--sun); }
.brand-mark line { stroke: currentColor; }

.brand-lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--sea); flex-shrink: 0; white-space: nowrap; }
.brand-lockup:hover { text-decoration: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-words .brand-name { font-size: 1.05rem; font-weight: 400; color: var(--sea); letter-spacing: .01em; }
.brand-words .brand-sub  { font-size: .62rem; font-weight: 300; color: var(--sage); margin-top: 4px; letter-spacing: .06em; }

/* Horizon motif — a wide divider drawn from the mark */
.horizon { color: var(--sea); width: 100%; height: 26px; display: block; }
.horizon--light { color: var(--seaglass); }
.horizon--sand  { color: var(--dawn); }
.horizon--white { color: #fff; opacity: .55; }

/* --------------------------------------------------------------------------
   Announcement bar
   -------------------------------------------------------------------------- */
.announce {
  background: var(--harbor);
  color: #d8e3e5;
  font-size: .85rem;
  text-align: center;
  padding: .55rem 1rem;
  line-height: 1.5;
}
.announce strong { color: #fff; font-weight: 500; }
.announce a { color: var(--dawn); font-weight: 500; }
.announce .dot { opacity: .45; margin: 0 .55rem; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252,251,247,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 1.6rem;
}
.nav-menu a { color: var(--ink-soft); font-weight: 400; font-size: .95rem; white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 761px) {
  .nav-menu { gap: 1.1rem; }
  .nav-menu a { font-size: .9rem; }
  .nav-phone { display: none; }
}
.nav-menu a:hover, .nav-menu a.active { color: var(--sea); text-decoration: none; }
.nav-menu a.active { position: relative; }
.nav-menu a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--sun); border-radius: 2px;
}
.nav-menu .nav-cta a { color: #fff; }
.nav-phone { color: var(--sea); font-weight: 500; }

.nav-toggle {
  display: none; background: none; border: 0; padding: .4rem; cursor: pointer; border-radius: 8px;
}
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after {
  display: block; width: 22px; height: 2px; background: var(--harbor); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -7px; } .nav-toggle-icon::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after  { transform: translateY(-7px) rotate(-45deg); }

/* Floating call pill (mobile) */
.call-pill {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60;
  align-items: center; gap: .55rem;
  background: var(--sea); color: #fff; font-weight: 500; font-size: .95rem;
  padding: .8rem 1.15rem; border-radius: 999px; box-shadow: var(--shadow-lg);
}
.call-pill:hover { text-decoration: none; background: var(--harbor); }
.call-pill svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: var(--radius-sm);
  background: var(--sea); color: #fff; font-weight: 500; font-size: .95rem; line-height: 1.2;
  border: 1.5px solid var(--sea); cursor: pointer; font-family: var(--font);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--harbor); border-color: var(--harbor); text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--harbor); border-color: #CFCCC1; }
.btn-outline:hover { background: var(--sand); border-color: var(--stone); color: var(--harbor); }
.btn-dawn { background: var(--dawn); border-color: var(--dawn); color: var(--harbor); }
.btn-dawn:hover { background: var(--sun); border-color: var(--sun); color: var(--harbor); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: .6rem 1rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }

/* --------------------------------------------------------------------------
   Sections & layout
   -------------------------------------------------------------------------- */
.section { padding: 4.75rem 0; }
.section-sand  { background: var(--sand); }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { max-width: 640px; margin: 0 auto 2.6rem; text-align: center; }
.section-title p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.section-title.left { text-align: left; margin-left: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }

.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 16 / 10; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero { padding: 4rem 0 4.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: .9rem; }
.hero h1 em { font-style: normal; color: var(--sea); }
.hero .lead { margin-bottom: .4rem; }
.hero-photo { aspect-ratio: 5 / 4; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: 1.5rem; font-size: .85rem; color: var(--stone); }
.hero-badges span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-badges svg { width: 16px; height: 16px; color: var(--sage); }

/* Inner page hero */
.page-hero { background: var(--sand); padding: 3.6rem 0 3.2rem; border-bottom: 1px solid var(--line-warm); }
.page-hero h1 { margin-bottom: .6rem; }
.page-hero .lead { margin-bottom: 0; }
.page-hero--split .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--line-warm); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: .7rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #DCE4E6; }
a.card { color: inherit; }
a.card:hover { text-decoration: none; }
.card h3 { margin: .25rem 0 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.card .more { margin-top: auto; padding-top: .5rem; color: var(--sea); font-weight: 500; font-size: .92rem; }

.icon-chip {
  width: 46px; height: 46px; border-radius: 11px; background: var(--sage-chip); color: var(--sage);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-chip svg { width: 26px; height: 26px; }
.icon-chip--sea  { background: var(--sea-tint); color: var(--sea); }
.icon-chip--sand { background: var(--sand); color: var(--harbor); }

/* Condition cards */
.condition-card { gap: .5rem; }
.condition-card .eyebrow { margin-bottom: .1rem; }
.condition-card ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .95rem; }
.condition-card li { margin: .15rem 0; }

/* Quick links strip */
.quickbar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: -.5rem 0 2.2rem; }
.quickbar a {
  font-size: .85rem; font-weight: 500; color: var(--sea); background: var(--white);
  border: 1px solid var(--line-warm); padding: .45rem .9rem; border-radius: 999px;
}
.quickbar a:hover { background: var(--sea-tint); text-decoration: none; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line-warm); border-radius: var(--radius); padding: 1.6rem; counter-increment: step; }
.step::before {
  content: "0" counter(step); display: block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: var(--sun); margin-bottom: .6rem;
}
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin: .55rem 0; color: var(--ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sage-chip);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F8A6A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.check-list strong { color: var(--harbor); }

/* Testimonials */
.testimonial { background: var(--white); border: 1px solid var(--line-warm); border-radius: var(--radius); padding: 1.6rem; margin: 0; }
.testimonial .stars { color: var(--sun); letter-spacing: .1em; font-size: .9rem; margin-bottom: .6rem; }
.testimonial blockquote { margin: 0 0 1rem; color: var(--ink-soft); font-size: 1rem; }
.testimonial cite { font-style: normal; font-weight: 500; color: var(--harbor); font-size: .92rem; display: flex; flex-direction: column; }
.testimonial cite span { font-weight: 300; color: var(--mute); font-size: .85rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line-warm); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2.4rem 1.1rem 0; font-weight: 500; font-size: 1.05rem; color: var(--harbor);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--sage); border-bottom: 2px solid var(--sage);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item .answer { padding: 0 0 1.2rem; color: var(--ink-soft); max-width: 70ch; }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: var(--sea); color: #fff; padding: 4rem 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 56ch; margin: 0 auto 1.4rem; }
.cta-band .eyebrow { color: var(--dawn); }
.cta-band .btn-row { justify-content: center; margin-top: 0; }

/* Insurance */
.insurance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.insurance-tile {
  background: var(--white); border: 1px solid var(--line-warm); border-radius: var(--radius);
  padding: 1.2rem; min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.insurance-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.insurance-tile img { max-height: 54px; width: auto; object-fit: contain; }
.insurance-tile .tile-caption { font-size: .78rem; color: var(--mute); text-align: center; }
.insurance-tile .tile-label { font-weight: 500; color: var(--harbor); text-align: center; }
.insurance-tile--text { background: var(--sage-chip); border-color: transparent; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line-warm); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: .35rem; color: var(--harbor); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font-family: var(--font); font-weight: 300; font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border: 1px solid #D5D9D6; border-radius: var(--radius-sm); background: var(--cloud);
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(44,93,107,.15); background: #fff;
}
.form-note { font-size: .85rem; color: var(--mute); margin: 0; }

/* Contact details */
.contact-details p { margin-bottom: .6rem; }
.contact-details .detail { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-details .detail .icon-chip { width: 40px; height: 40px; border-radius: 10px; }
.contact-details .detail .icon-chip svg { width: 22px; height: 22px; }
.contact-details .detail p { margin: 0; }
.contact-details .detail strong { display: block; color: var(--harbor); }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; border: 1px solid var(--line-warm); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* Placeholders (journal / videos) */
.pill { display: inline-block; font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.pill--coming { background: var(--sand); color: var(--stone); }
.placeholder-card { opacity: .9; }
.placeholder-card .thumb {
  aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: var(--sand);
  display: flex; align-items: center; justify-content: center; color: var(--stone);
}
.placeholder-card .thumb svg { width: 36px; height: 36px; }
.blog-meta { font-size: .85rem; color: var(--mute); margin: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--harbor); color: #c9d6d9; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3.2rem 0 2.4rem; }
.site-footer h4 { color: #fff; font-weight: 500; margin-bottom: .8rem; font-size: .95rem; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: #d8e3e5; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin-bottom: .6rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; color: #fff; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand .brand-words .brand-name { color: #fff; font-size: 1.1rem; }
.footer-brand .brand-words .brand-sub { color: var(--dawn); }
.footer-horizon { color: rgba(255,255,255,.55); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0 1.4rem; font-size: .82rem; color: #9fb1b5; }
.footer-bottom p { margin: 0; }
.footer-newsletter { display: flex; gap: .4rem; flex-wrap: wrap; }
.footer-newsletter input {
  flex: 1; min-width: 0; padding: .7rem .95rem; border-radius: 999px; border: 0; font-family: var(--font); font-size: .95rem;
}
.footer-newsletter .btn { border-radius: 999px; }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid, .grid-2, .grid-2-split, .page-hero--split .container { grid-template-columns: 1fr; gap: 2rem; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 2.8rem 0 3.4rem; }
  .hero-grid > .photo { order: -1; }
  .hero-photo { aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 3.4rem 0; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cloud); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .5rem 1.25rem 1rem;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-menu a { display: block; padding: .8rem 0; font-size: 1.02rem; }
  .nav-menu a.active::after { display: none; }
  .nav-menu .nav-cta { padding-top: .8rem; }
  .nav-menu .nav-cta a { padding: .8rem 1rem; text-align: center; }
  .call-pill { display: inline-flex; }
  .brand-words .brand-name { font-size: 1rem; }
  .form-card { padding: 1.4rem; }
  .cta-band { padding: 3rem 0; }
  .announce { font-size: .8rem; }
  .announce .dot { margin: 0 .35rem; }
}

@media (max-width: 420px) {
  .btn-row .btn { width: 100%; }
}
