/* ==========================================================================
   Dr. Jonathan Detrixhe - Clinical Psychologist, Greenpoint Brooklyn
   Static rebuild of the Avada/Fusion site. Rebuilt line-for-line from the
   Fusion Builder source (rth_posts.post_content), not the rendered HTML.
   Tokens in _audit/01-FONTS.md, _audit/02-COLORS.md; structure in _audit/fusion/.
   ========================================================================== */

:root {
  --cream:  #fdfdf8;   /* awb-color1 */
  --sand:   #d3c094;   /* awb-color2 */
  --bronze: #c29159;   /* awb-color3 */
  --green:  #65bd7d;   /* awb-color4 */
  --blue:   #198fd9;   /* awb-color5 */
  --gray:   #434549;   /* awb-color6 */
  --gray-d: #212326;   /* awb-color7 */
  --ink:    #141617;   /* awb-color8 */

  --ff: 'Inter', system-ui, -apple-system, sans-serif;
  --fw-thin: 200; --fw-light: 300; --fw-reg: 400;

  --wall: url('/images/wall-background-6.webp');
  --nav-band: rgba(255, 255, 255, 0.38);
  --btn-grad: linear-gradient(180deg, var(--sand) 0%, var(--bronze) 100%);
  --btn-grad-hover: linear-gradient(180deg, var(--bronze) 0%, #a87b46 100%);

  --maxw: 1248px;
  --gutter: 24px;       /* Avada default column padding -> content ~1200 on the 1248 row */
  --section-gap: 100px; /* container margin_bottom on home */
  --sticky-top: 234px;  /* live sticky-column offset (pins below header + title bar) */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff); font-weight: var(--fw-light);
  font-size: 16px; line-height: 1.72; letter-spacing: 0.24px;
  color: var(--ink);
  background-color: #cbbfa0;
  background: var(--wall) center center / cover no-repeat fixed;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: var(--fw-thin); }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

/* type scale (Avada title sizes: 1=h1 44, 2=h2 36, 3=h3 28) */
h1 { font-size: 44px; font-weight: var(--fw-thin); line-height: 1.2; letter-spacing: -0.66px; color: var(--cream); }
h2 { font-size: 36px; font-weight: var(--fw-thin); line-height: 1.2; letter-spacing: -0.54px; color: var(--bronze); }
h3 { font-size: 28px; font-weight: var(--fw-light); line-height: 1.2; letter-spacing: -0.42px; color: var(--bronze); }

/* ---------- one consistent content rail everywhere ---------- */
.row { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { margin-bottom: var(--section-gap); }
.section:last-of-type { margin-bottom: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--bronze); color: var(--cream); padding: 10px 16px; }
.skip-link:focus { left: 8px; top: 8px; }

/* ==========================================================================
   HEADER  (Global Header: 1_4 logo + 2_3 nav, justify space-between)
   ========================================================================== */
.site-header { padding-top: 25px; }
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.site-logo { flex: 0 0 25%; padding-bottom: 10px; }
.site-logo img { width: 100%; max-width: 320px; height: auto; }

.nav-band {
  flex: 0 1 auto;
  background: var(--nav-band); min-height: 75px;
  display: flex; align-items: stretch; justify-content: flex-end;
  padding: 0;
}
.main-nav { display: flex; }
.main-nav ul { list-style: none; display: flex; align-items: stretch; }
.main-nav li { display: flex; }
.main-nav a {
  display: flex; align-items: center;
  font-weight: var(--fw-reg); font-size: 16px; letter-spacing: 0.24px;
  color: var(--bronze);                 /* normal: awb-color3 bronze on the translucent band */
  text-decoration: none; text-transform: uppercase; white-space: nowrap;
  padding: 0 30px;                      /* items_padding 30px; band height fills the pill */
  transition: background-color .25s ease, color .25s ease;
}
/* hover AND active(current) = full-height bronze pill + cream text (fades in) */
.main-nav a:hover,
.main-nav .current > a,
.main-nav a.current { color: var(--cream); background: var(--bronze); }
.main-nav .menu-item { position: relative; }

/* dropdown caret */
.has-children > a::after {
  content: ''; display: inline-block; width: 0; height: 0; margin-left: 8px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; vertical-align: middle;
}
/* submenu = flat cream box, left-aligned under parent, thin gray separators,
   bronze links; hovered item fills sand with cream text. No shadow (matches live). */
.sub-menu {
  list-style: none; position: absolute; top: 100%; left: 0; min-width: 286px;
  background: transparent; padding: 0; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease, visibility .45s ease;
  z-index: 50;
}
.has-children:hover .sub-menu, .has-children:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu { display: block; }   /* override .main-nav ul flex so items stack */
.sub-menu li { display: block; background: var(--cream); border-bottom: 1px solid #e2e2e2; }
.sub-menu a { display: block; padding: 12px 20px; text-transform: uppercase; font-size: 14px; font-weight: 400; letter-spacing: .24px; color: var(--bronze); white-space: nowrap; }
.sub-menu li:hover { background: var(--sand); }
/* child hover fills sand (override the top-level bronze pill that .main-nav a:hover paints) */
.sub-menu li:hover > a { color: var(--cream); background: transparent; }
/* parent keeps its active pill while the dropdown is open */
.main-nav .has-children:hover > a { color: var(--cream); background: var(--bronze); }

/* mobile trigger */
.nav-toggle {
  display: none; width: 100%; background: rgba(211,192,148,0.46); border: 0; cursor: pointer;
  color: var(--bronze); font: inherit; font-size: 25px; line-height: 1.2;
  align-items: center; justify-content: center; gap: 10px; padding: 14px 16px; text-transform: uppercase;
}
.nav-toggle svg { display: block; width: 26px; height: 26px; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn-grad); color: var(--cream);
  font-family: var(--ff); font-weight: var(--fw-light); font-size: 16px;
  letter-spacing: 0.24px; line-height: 1.2;
  padding: 14px 18px; border: 0; border-radius: 4px;
  text-decoration: none; cursor: pointer;
  transition: background-image .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: var(--btn-grad-hover); color: var(--cream); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
/* homepage feature CTAs: full-width stacked buttons (matches live) */
.feature__body .btn-row { flex-direction: column; gap: 20px; }
.feature__body .btn-row .btn { width: 100%; }
.btn.cta::after {
  content: ''; width: 18px; height: 12px; margin-left: 2px; flex: 0 0 auto; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ==========================================================================
   PAGE TITLE BAR (Global PTB) - content-width bronze box, 15px even padding,
   h1 size=1 cream left. Balanced, same rail as everything else.
   ========================================================================== */
.page-title { margin-bottom: var(--section-gap); }
.title-band { background: var(--bronze); padding: 15px; }
.title-band h1 { color: var(--cream); text-align: left; font-size: 44px; font-weight: var(--fw-thin); line-height: 1.2; letter-spacing: -0.66px; }
.title-band .subtitle { display: block; }   /* second line is same size via <br>, no shrink */

/* ==========================================================================
   FEATURE SECTIONS (home): 2_5 sticky left (centered h2 + image) | 1_2 text right
   container flex_justify_content=center, margin_bottom 100px
   ========================================================================== */
.feature .row {
  display: grid; grid-template-columns: 40% 50%; column-gap: 4%;
  justify-content: center; align-items: start;
}
.feature__media { position: sticky; top: var(--sticky-top); }
.feature__media h2 { text-align: center; margin-bottom: 18px; }
.feature__media img { width: 100%; height: auto; }
.feature__body > * + * { margin-top: 1.1em; }
.feature__body .qa h3 { margin-bottom: .35em; }
.feature__body .qa + .qa { margin-top: 1.4em; }
.testimonial { margin: 0 40px; padding: 15px; border-left: 4px solid var(--bronze); background: rgba(211, 195, 150, .85); }
.testimonial p { margin: 0; font-style: italic; font-weight: 300; line-height: 1.72; color: var(--ink); }
.feature__body .testimonial { margin: 32px 40px 0; }
.feature__body .testimonial + .testimonial { margin-top: 64px; }
.feature__body .testimonial:last-of-type { margin-bottom: 32px; }

/* SEO H1 band (home) - faint cream h1 on the wall, matches source */
.hero-h1 { padding: 0 var(--gutter); margin-bottom: 8px; }
.hero-h1 h1 { max-width: var(--maxw); margin: 0 auto; font-size: 44px; }

/* ==========================================================================
   STANDARD CONTENT (about / new patient / legal)
   ========================================================================== */
.prose h2 { text-align: left; margin: 1.7em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.5em 0 .5em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a, .about-intro__text a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color .2s linear; }
.prose a:hover, .about-intro__text a:hover { color: var(--sand); text-decoration: none; }
.prose .doc-list { list-style: none; padding-left: 0; }
.prose .doc-list li { margin-bottom: .7em; }
.prose .doc-list a { font-weight: var(--fw-reg); }

/* about intro: 3_5 text (20px) + 2_5 portrait (pulled up -55px) */
.about-intro .row { display: grid; grid-template-columns: 60% 40%; align-items: stretch; }
.about-intro__text { align-self: center; font-size: 20px; line-height: 1.6; }
.about-intro__text p { margin-bottom: 1em; }
.about-intro__media { margin-top: -55px; }
.about-intro__media img { width: 100%; }
@media (max-width: 860px) {
  .about-intro .row { grid-template-columns: 1fr; }
  .about-intro__media { margin-top: 18px; max-width: 420px; }
  .about-intro__text { font-size: 18px; }
}

/* new patient: location text + map side by side */
.np-location .row { display: grid; grid-template-columns: 1fr 1fr; gap: 4%; align-items: start; }
.np-location__media { align-self: stretch; min-height: 320px; }
.map-embed { width: 100%; height: 100%; min-height: 320px; border: 0; }
@media (max-width: 860px) { .np-location .row { grid-template-columns: 1fr; } .map-embed { min-height: 300px; } }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.4em 0; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 460/295; }
@media (max-width: 700px) { .photo-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   ACCORDION (psychotherapy-faq + reflections) - questions on the wall
   ========================================================================== */
.accordion { width: 100%; }
.acc-item { border-bottom: 1px solid rgba(20,22,23,.12); }
.acc-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 4px; font-size: 19px; font-weight: var(--fw-light); color: var(--ink);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-icon { position: relative; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 4px; }
.acc-icon::before, .acc-icon::after { content: ''; position: absolute; background: var(--bronze); transition: transform .25s, opacity .25s; }
.acc-icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.acc-icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.acc-item[open] .acc-icon::after { transform: scaleY(0); opacity: 0; }
.acc-q { flex: 1 1 auto; }
.acc-item[open] summary .acc-q { color: var(--bronze); }
.acc-body { padding: 0 4px 0 32px; overflow: hidden; transition: height 0.35s ease; }
.acc-body > :first-child { margin-top: 0; }
.acc-body > :last-child { margin-bottom: 0; padding-bottom: 22px; }
.acc-body a { color: var(--ink); text-decoration: underline; transition: color .2s linear; }
.acc-body a:hover { color: var(--sand); text-decoration: none; }

.cross-link { margin-top: 30px; text-align: right; }
.cross-candle { width: 330px; max-width: 60%; margin-left: auto; margin-bottom: 8px; }
.cross-link a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color .2s linear; }
.cross-link a:hover { color: var(--sand); text-decoration: none; }

/* ==========================================================================
   REVIEWS - two columns of classic speech-bubble testimonials (matches live)
   ========================================================================== */
.reviews-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.testimonial-bubble { margin: 0 0 48px; }
.awb-quote { background: rgba(211, 195, 150, .85); padding: 40px; border-radius: 15px 15px 0; }
.awb-quote p { margin: 0 0 20px; font-style: italic; }
.awb-quote p:last-child { margin-bottom: 0; }
.awb-triangle { display: block; width: 0; height: 0; margin-left: 30px;
  border-left: 10px solid transparent; border-right: 10px solid transparent;
  border-top: 10px solid rgba(211, 195, 150, .85); }
.review-cross { margin-top: 0; }
@media (max-width: 760px) {
  .reviews-cols { grid-template-columns: 1fr; column-gap: 0; }
}

/* ==========================================================================
   CONTACT FORM (1_2 centered column)
   ========================================================================== */
.contact-form { display: grid; gap: 16px; max-width: 560px; margin: 0 auto; }
.form-group { display: grid; gap: 6px; }
.contact-form input, .contact-form textarea {
  font-family: var(--ff); font-size: 16px; font-weight: var(--fw-light); color: var(--ink);
  background: rgba(255,255,255,.85); border: 1px solid rgba(20,22,23,.18); border-radius: 4px;
  padding: 13px 14px; width: 100%;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--bronze); outline-offset: 1px; }
.form-group.has-error input, .form-group.has-error textarea { border-color: #b3433a; background: #fbecea; }
.form-success, .form-error { padding: 14px 16px; border-radius: 4px; font-weight: var(--fw-reg); }
.form-success { background: rgba(101,189,125,.18); color: #2f7a45; border: 1px solid var(--green); }
.form-error { background: rgba(179,67,58,.12); color: #b3433a; border: 1px solid #b3433a; }
.leit-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* legal (termageddon) */
.legal { min-height: 240px; }
.legal #policy { font-size: 15px; }

/* ==========================================================================
   FOOTER (Global Footer): content-width, 125px left chair, bronze box pulled
   up -73px so the chair overlaps its top-left corner. Wall shows on the sides.
   ========================================================================== */
.site-footer { margin-top: var(--section-gap); }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.site-footer .foot-chair { width: 125px; height: auto; margin: 0; }   /* left-aligned, overlaps box */
.foot-box {
  background: var(--bronze); color: var(--cream);
  margin-top: -73px; padding: 20px 24px; text-align: center;
}
.foot-box p { margin: 0; }
.foot-box a { color: var(--cream); text-decoration: underline; transition: color .2s linear; }
.foot-box a:hover { color: var(--sand); text-decoration: none; }
.foot-box .foot-address { font-size: 16px; line-height: 1.72; margin-bottom: 16px; }
.foot-box .foot-phone { font-size: 16px; line-height: 1.72; margin-bottom: 20px; }
.foot-box .foot-links { font-size: 13px; line-height: 1.7; margin-bottom: 3px; }
.foot-box .foot-legal { font-size: 13px; line-height: 1.7; margin-bottom: 4px; }
.foot-box .foot-copy { font-size: 13px; line-height: 1.7; }
@media (max-width: 600px) {
  .foot-box { margin-top: -55px; padding: 18px 18px; }
  .site-footer .foot-chair { width: 105px; }
  .foot-phone { margin-bottom: 18px; }
}

/* ==========================================================================
   SCROLL REVEAL (js-gated so content always shows without JS)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(32px);
  transition: opacity 1.4s cubic-bezier(.16, 1, .3, 1), transform 1.4s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; transition: none; } html { scroll-behavior: auto; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  h1, .title-band h1, .hero-h1 h1 { font-size: 38px; }
  h2 { font-size: 31px; } h3 { font-size: 25px; }
}
@media (max-width: 860px) {
  .feature .row { grid-template-columns: 1fr; row-gap: 22px; justify-content: stretch; }
  .feature__media { position: static; max-width: 460px; margin: 0 auto; }
  :root { --section-gap: 70px; }
}
@media (max-width: 980px) {
  /* collapse the nav to a MENU button before the full menu would overflow the logo row */
  .site-header__inner { align-items: center; flex-wrap: wrap; }
  .site-logo { flex: 0 0 auto; width: 240px; max-width: 62%; padding-bottom: 0; }
  .nav-band { display: block; flex: 1 1 100%; width: 100%; background: transparent; padding: 0; min-height: 0; margin-top: 12px; position: relative; }
  .main-nav.open { width: 100%; }
  .nav-toggle { display: flex; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav li { display: block; border-top: 1px solid rgba(255,255,255,.18); background: var(--sand); }
  .main-nav a { display: block; padding: 16px 22px; color: var(--cream); font-size: 18px; }
  .main-nav .current > a, .main-nav a.current { background: var(--bronze); }
  .has-children > a::after { display: none; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; margin: 0; padding: 0; min-width: 0; background: rgba(0,0,0,.10); }
  .sub-menu li { background: transparent; border-bottom: none; }
  .sub-menu a { padding-left: 42px; color: var(--cream); font-size: 16px; }
  .sub-menu a:hover { background: rgba(0,0,0,.12); }
  .about-intro .row, .np-location .row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  h1, .title-band h1, .hero-h1 h1 { font-size: 30px; }
  h2 { font-size: 26px; } h3 { font-size: 23px; }
  body { font-size: 15px; }
}
