/* ============================================================
   TucsonMindMatters — shared stylesheet
   Aesthetic: calm, organic. Teal + logo blue on cream.
   Fonts: Fraunces (display serif) + Hanken Grotesk (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --cream:      #FAF5EE;
  --cream-2:    #F3E9DC;
  --cream-3:    #EFE3D2;
  --ink:        #2D2A26;
  --ink-soft:   #5E574D;
  --ink-faint:  #8A8276;
  --brand:      #00B2F0;
  --teal:       #1B8FB3;
  --teal-deep:  #0B5E7D;
  --teal-tint:  #D8EAF1;
  /* Accent (formerly terracotta) — now logo blue.
     --clay matches the old terracotta's brightness so accent contrast is unchanged. */
  --clay:       #1488CC;
  --clay-deep:  #0E6699;
  --clay-tint:  #DCEEF9;
  --clay-soft:  #5FB8E6;
  --gold:       #C7A567;
  --line:       rgba(45, 42, 38, 0.12);
  --line-soft:  rgba(45, 42, 38, 0.07);
  --shadow:     0 18px 50px -28px rgba(81, 94, 71, 0.45);
  --shadow-sm:  0 8px 24px -16px rgba(45, 42, 38, 0.35);
  --radius:     22px;
  --radius-sm:  14px;
  --maxw:       1140px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 80% 50% at 80% -10%, rgba(188, 111, 74, 0.07), transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(110, 127, 99, 0.08), transparent 55%);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a { color: var(--teal-deep); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--clay-deep); }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
.narrow { max-width: 760px; }

section { position: relative; z-index: 2; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  padding: 0.95em 1.7em;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .25s var(--ease);
  line-height: 1;
}
.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 12px 28px -14px rgba(14, 102, 153, 0.7);
}
.btn-primary:hover {
  background: var(--clay-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(14, 102, 153, 0.85);
}
.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border-color: rgba(81, 94, 71, 0.35);
}
.btn-ghost:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}
.btn-arrow::after { content: "→"; font-weight: 400; transition: transform .3s var(--ease); }
.btn:hover .btn-arrow::after, a.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- scroll cue (homepage hero) ---------- */
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: max-content; margin: 44px auto 0;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-deep);
}
.scroll-cue:hover { color: var(--clay-deep); }
.scroll-cue svg { width: 22px; height: 22px; animation: cue-bob 1.8s ease-in-out infinite; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

/* ---------- map embed (contact) ---------- */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- instagram feed (homepage) ---------- */
.ig-feed { max-width: 980px; margin: 0 auto 28px; }
.ig-feed:empty, .ig-feed:not(:has(*)) { margin-bottom: 0; }
.ig-feed iframe, .ig-feed > div { border-radius: var(--radius-sm); overflow: hidden; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 238, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px;
  max-width: 1240px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo { height: 50px; width: auto; display: block; flex: none; }
.brand-logo-full { height: 135px; width: auto; display: block; flex: none; }
.brand-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.22rem; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.brand-name span { display: block; font-family: 'Hanken Grotesk', sans-serif; font-weight: 500; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-deep); margin-top: 5px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-weight: 500; font-size: 0.97rem; color: var(--ink-soft);
  padding: 8px 12px; border-radius: 8px; position: relative;
}
.nav-links a:hover { color: var(--ink); background: rgba(110,127,99,0.1); }
.nav-links a.active { color: var(--teal-deep); }
.nav-links .btn { margin-right: 8px; padding: 0.5em 1.3em; font-size: 0.95rem; }
/* Two-line stacked CTA buttons in the header, equal width + centered */
.nav-links .btn-primary {
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  line-height: 1.15;
  text-align: center;
  min-width: 168px;
}
.nav-links .btn-primary .btn-l1 { font-weight: 700; }
.nav-links .btn-primary .btn-l2 { font-weight: 500; font-size: 0.82em; opacity: 0.92; }
/* Header primary button: keep white text + blue bg, overriding generic nav-link color */
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; background: var(--clay-deep); }

/* Psychology Today seal above the hero photo (homepage) */
.pt-seal-hero { margin: 0 0 14px; display: flex; justify-content: center; text-align: center; }
.pt-seal-hero a { display: block; }
.pt-seal-hero img { width: auto; height: auto; display: block; margin: 0 auto; }

/* services dropdown */
.has-drop { position: relative; }
.drop-toggle { cursor: pointer; }
.drop-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 10px;
  min-width: 250px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s var(--ease);
}
.has-drop:hover .drop-menu, .has-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.drop-menu a { padding: 10px 14px; border-radius: 9px; font-size: 0.95rem; color: var(--ink-soft); }
.drop-menu a:hover { background: var(--teal-tint); color: var(--teal-deep); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s var(--ease); }

/* ---------- hero ---------- */
.hero { padding: 39px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--clay); display: inline-block; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--clay-deep); }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.hero-note { font-size: 0.9rem; color: var(--ink-faint); margin-top: 16px; }

.hero-visual { position: relative; }
.hero-photo {
  aspect-ratio: 4 / 5;
  border-radius: 140px 140px 26px 26px;
  background:
    linear-gradient(160deg, rgba(110,127,99,0.18), rgba(188,111,74,0.16)),
    var(--cream-3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid; place-items: center;
  position: relative;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 20% center; }
.photo-placeholder {
  text-align: center; color: var(--ink-faint); font-size: 0.85rem; padding: 24px; line-height: 1.5;
}
.photo-placeholder svg { width: 46px; height: 46px; margin: 0 auto 12px; opacity: .5; }
.hero-badge {
  position: absolute; bottom: 22px; left: -22px;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 13px; max-width: 240px;
}
.hero-badge .num { font-family: 'Fraunces', serif; font-size: 2rem; color: var(--clay-deep); line-height: 1; }
.hero-badge .lbl { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.3; }

/* ---------- generic section headings ---------- */
.section-head { max-width: 680px; margin-bottom: 22px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.85rem); margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

.pad { padding: 40px 0; }
.pad-sm { padding: 30px 0; }
.bg-cream2 { background: var(--cream-2); }
.bg-teal { background: linear-gradient(165deg, var(--teal-deep), #083a4f); color: #eef6f9; }
.bg-teal h2, .bg-teal h3 { color: #fff; }
.bg-teal p { color: rgba(244,241,232,0.85); }

/* ---------- "sound familiar" list ---------- */
.familiar {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px;
  margin-top: 8px;
}
.familiar li {
  list-style: none; position: relative; padding-left: 34px;
  color: var(--ink-soft); font-size: 1.04rem; line-height: 1.5;
}
.familiar li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--clay-tint); border: 1.5px solid var(--clay);
}

/* ---------- specialty cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(110,127,99,0.4); }
.card-ic {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  background: var(--teal-tint); color: var(--teal-deep);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card-ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 18px; flex: 1; }
.card .more { font-weight: 600; font-size: 0.95rem; color: var(--clay-deep); }
.card .more::after { content: " →"; }

/* ---------- approach / two-col ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .photo-box {
  aspect-ratio: 5/4; border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(110,127,99,0.16), rgba(199,165,103,0.16)), var(--cream-3);
  border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow);
  overflow: hidden;
}
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.feature-list li { list-style: none; display: flex; gap: 16px; }
.feature-list .fi {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  background: var(--clay-tint); color: var(--clay-deep); display: grid; place-items: center;
}
.feature-list .fi svg { width: 20px; height: 20px; }
.feature-list h4 { font-size: 1.1rem; margin-bottom: 3px; font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; }
.feature-list p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- testimonial ---------- */
.quote-wrap { text-align: center; max-width: 800px; margin: 0 auto; }
.quote-mark { font-family: 'Fraunces', serif; font-size: 4.5rem; line-height: .5; color: var(--clay); opacity: .5; }
.quote { font-family: 'Fraunces', serif; font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 400; font-style: italic; line-height: 1.4; margin: 18px 0 22px; }
.quote-by { font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.cta-band p { font-size: 1.12rem; max-width: 34em; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.bg-teal .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.bg-teal .btn-ghost:hover { background: #fff; color: var(--teal-deep); }

/* ---------- article / specialty page body ---------- */
.page-hero { padding: 32px 0 18px; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); max-width: 16em; margin-bottom: 18px; }
.page-hero .lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 40em; }
.prose { font-size: 1.08rem; color: var(--ink-soft); }
.prose h2 { font-size: 1.9rem; margin: 40px 0 14px; color: var(--ink); }
.prose h3 { font-size: 1.3rem; margin: 30px 0 10px; color: var(--ink); font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; }
.prose p { margin-bottom: 18px; }
.prose ul { margin: 0 0 20px 0; padding-left: 0; }
.prose ul li { list-style: none; position: relative; padding-left: 30px; margin-bottom: 10px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul.cols-2 { columns: 2; column-gap: 38px; }
.prose ul.cols-2 li { break-inside: avoid; }
@media (max-width: 600px) { .prose ul.cols-2 { columns: 1; } }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 4px;
}
.faq summary {
  cursor: pointer; list-style: none; font-family: 'Fraunces', serif;
  font-size: 1.22rem; font-weight: 500; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: 'Hanken Grotesk', sans-serif; font-size: 1.6rem; color: var(--clay); transition: transform .3s var(--ease); font-weight: 400; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; color: var(--ink-soft); }

/* ---------- contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--cream); transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(110,127,99,0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; }
.contact-info { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.contact-info h3 { font-size: 1.4rem; margin-bottom: 22px; }
.info-row { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
.info-row .ic { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--teal-tint); color: var(--teal-deep); display: grid; place-items: center; }
.info-row .ic svg { width: 20px; height: 20px; }
.info-row .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); margin-bottom: 2px; }
.info-row a, .info-row span { color: var(--ink); font-weight: 500; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d9d3c8; padding: 60px 0 30px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer h4 { color: #fff; font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: #d9d3c8; display: block; margin-bottom: 9px; font-size: 0.96rem; }
.site-footer a:hover { color: var(--clay-soft, #5FB8E6); }
.footer-brand p { color: #a59e91; font-size: 0.96rem; max-width: 30em; margin-top: 14px; }
.pt-seal { margin-top: 18px; text-align: center; }
.footer-brand .brand-name, .footer-brand .brand-name span { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 0.85rem; color: #8e887c; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; margin: 0; }
.footer-social a:hover { background: var(--teal); border-color: var(--teal); }
.footer-social svg { width: 17px; height: 17px; }

/* crisis note */
.crisis { background: var(--clay-tint); border-radius: var(--radius-sm); padding: 18px 22px; font-size: 0.92rem; color: var(--clay-deep); margin-top: 26px; }
.crisis strong { color: var(--clay-deep); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

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

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 440px; margin: 0 auto; width: 100%; }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Nav collapses to the hamburger sooner now that the header has two CTA buttons */
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 14px 20px; gap: 4px; box-shadow: var(--shadow);
  }
  .nav-links.open .has-drop .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 4px 0 4px 14px; }
  .nav-links.open .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .brand-logo-full { height: 95px; }
  .familiar, .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .pad { padding: 28px 0; }
  .hero { padding: 24px 0 20px; }
  .hero-badge { left: 0; }
}
