/* ─── REWIRE.NYC — Shared Stylesheet ─── */

:root {
  --cream:    #F2F7FB;
  --cream2:   #DDE9F3;
  --forest:   #1B3D5F;
  --forest2:  #2A5280;
  --clay:     #3D8FBF;
  --clay2:    #5AAAD4;
  --text:     #0D1F32;
  --textmid:  #3A5470;
  --textsoft: #7A96B0;
  --white:    #FFFFFF;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(242,247,251,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(27,61,95,0.08);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 32px rgba(27,61,95,0.06); }

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: 0.03em;
  position: relative;
}
.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--clay);
  transition: width 0.4s ease;
}
.nav-logo:hover::after { width: 100%; }
.nav-logo span { color: var(--clay); }

.nav-links {
  display: flex; gap: 2rem; list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--textmid);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--clay);
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: var(--forest); }

.nav-cta {
  background: var(--forest) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 2px !important;
  letter-spacing: 0.08em !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--forest2) !important; transform: translateY(-1px) !important; }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--forest); transition: all 0.3s;
}

/* ─── PAGE HERO ─── */
.page-hero {
  background: var(--forest);
  padding: calc(var(--nav-h) + 4rem) 8% 4rem;
  text-align: center;
}
.page-hero .section-eyebrow { color: var(--clay2); justify-content: center; }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.15;
  max-width: 700px;
  margin: 0 auto 1.25rem;
  letter-spacing: -0.01em;
}
.page-hero h1 em { font-style: italic; color: var(--clay2); }
.page-hero p {
  font-size: 1.05rem;
  color: rgba(242,247,251,0.7);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--forest);
  color: var(--white);
  padding: 0.9rem 2.2rem;
  border: none; border-radius: 1px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--forest2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,61,95,0.2);
}
.btn-ghost {
  background: transparent;
  color: var(--forest);
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--forest);
  border-radius: 1px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover { background: var(--forest); color: var(--white); }

/* ─── SECTION ELEMENTS ─── */
section { padding: 6rem 8%; }

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--clay);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--forest);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; }

.section-body {
  font-size: 1rem;
  font-weight: 300;
  color: var(--textmid);
  max-width: 600px;
  line-height: 1.85;
}

/* ─── PRINCIPLES ─── */
.principles { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.principle {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.9rem; color: var(--textmid);
}
.principle::before {
  content: '';
  width: 24px; height: 1.5px;
  background: var(--clay); flex-shrink: 0;
}

/* ─── CONDITIONS GRID ─── */
.conditions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.condition-card {
  background: var(--cream);
  border: 1px solid var(--cream2);
  border-radius: 2px;
  padding: 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative; overflow: hidden;
}
.condition-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--clay);
  transition: width 0.4s ease;
}
.condition-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(27,61,95,0.08); border-color: rgba(61,143,191,0.2); }
.condition-card:hover::before { width: 100%; }
.condition-card.span-2 { grid-column: span 2; }
.condition-icon {
  width: 40px; height: 40px;
  background: var(--forest);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.condition-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 600;
  color: var(--forest); margin-bottom: 0.5rem;
}
.condition-card p { font-size: 0.88rem; color: var(--textmid); line-height: 1.6; }

/* ─── SERVICE BLOCKS ─── */
.service-block {
  background: var(--cream);
  border-left: 2px solid var(--clay);
  border-radius: 0 2px 2px 0;
  padding: 1.75rem 2rem;
  margin: 1.5rem 0;
  transition: border-color 0.3s, transform 0.3s;
}
.service-block:hover { border-color: var(--forest); transform: translateX(4px); }
.service-block h3 {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 600;
  color: var(--forest); margin-bottom: 0.6rem;
}
.service-block p { font-size: 0.92rem; color: var(--textmid); margin: 0; line-height: 1.75; }

/* ─── CONTENT SECTIONS ─── */
.content-section { max-width: 760px; margin: 0 auto; padding: 5rem 5%; }
.content-section h2 {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 300;
  color: var(--forest); margin: 2.5rem 0 1rem; line-height: 1.3;
}
.content-section h2:first-child { margin-top: 0; }
.content-section p { font-size: 1rem; color: var(--textmid); line-height: 1.85; margin-bottom: 1.25rem; }
.content-section ul { list-style: none; margin: 1rem 0 1.5rem; }
.content-section ul li {
  font-size: 0.95rem; color: var(--textmid);
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative; line-height: 1.6;
}
.content-section ul li::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 1.5px;
  background: var(--clay);
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--forest);
  padding: 1.5rem 8%;
  display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 0.6rem;
  color: rgba(242,247,251,0.8);
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.trust-item svg { opacity: 0.7; flex-shrink: 0; }

/* ─── RESEARCH BANNER ─── */
.research-banner {
  background: var(--forest);
  border-top: 3px solid var(--clay);
  padding: 2rem 8%;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.research-banner-left { display: flex; align-items: center; gap: 1.5rem; }
.research-icon {
  width: 52px; height: 52px;
  background: var(--clay); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.research-text strong {
  display: block; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--clay2); margin-bottom: 0.3rem;
}
.research-text p { font-size: 0.95rem; color: rgba(242,247,251,0.9); line-height: 1.5; margin: 0; }
.research-link {
  text-decoration: none; font-family: var(--font-body);
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.65rem 1.4rem; border: 1.5px solid rgba(242,247,251,0.3);
  border-radius: 2px; color: var(--cream); white-space: nowrap;
  transition: background 0.2s;
}
.research-link:hover { background: rgba(242,247,251,0.1); }

/* ─── STEPS ─── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 900px; margin: 0 auto; }
.step {
  padding: 2rem; border: 1px solid rgba(242,247,251,0.1);
  border-radius: 2px; background: rgba(242,247,251,0.04);
}
.step-num {
  font-family: var(--font-head); font-size: 4rem; font-weight: 300;
  color: var(--clay2); opacity: 0.25; line-height: 1;
  margin-bottom: 1rem; letter-spacing: -0.02em;
}
.step h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--cream); margin-bottom: 0.6rem; }
.step p { font-size: 0.88rem; color: rgba(242,247,251,0.65); line-height: 1.7; }

/* ─── TESTIMONIALS ─── */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.testimonial-card {
  background: var(--cream); border-radius: 2px; padding: 2rem;
  border: 1px solid var(--cream2); border-top: 2px solid var(--clay);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(27,61,95,0.06); }
.stars { color: var(--clay); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 1rem; }
.testimonial-card blockquote {
  font-family: var(--font-head); font-size: 1.05rem; font-style: italic;
  font-weight: 300; color: var(--text); line-height: 1.6; margin-bottom: 1.25rem;
}
.testimonial-card cite { font-size: 0.78rem; font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--textsoft); }

/* ─── AUTISM CARD ─── */
.autism-card { background: linear-gradient(135deg, rgba(27,61,95,0.04) 0%, rgba(61,143,191,0.06) 100%) !important; border-color: var(--clay) !important; }
.autism-card-inner { display: flex; align-items: flex-start; gap: 1.25rem; }

/* ─── ABOUT TEASER ─── */
.about-teaser { background: var(--cream2); display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-card { background: var(--forest); border-radius: 2px; padding: 3rem; color: var(--cream); }
.about-card-quote { font-family: var(--font-head); font-size: 1.6rem; font-style: italic; font-weight: 300; line-height: 1.4; margin-bottom: 2rem; }
.about-card-name { font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--clay2); }

/* ─── CTA ─── */
.cta-section { background: var(--clay); text-align: center; padding: 5rem 8%; }
.cta-section .section-eyebrow { color: rgba(242,247,251,0.7); justify-content: center; }
.cta-section .section-title { color: var(--white); margin: 0 auto 1rem; }
.cta-section .section-body { color: rgba(242,247,251,0.85); margin: 0 auto 2.5rem; }
.cta-section .btn-primary { background: var(--white); color: var(--clay); }
.cta-section .btn-primary:hover { background: var(--cream); }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; max-width: 1000px; margin: 0 auto; padding: 5rem 5%; }
.contact-info h2 { font-family: var(--font-head); font-size: 1.8rem; font-weight: 300; color: var(--forest); margin-bottom: 1.5rem; }
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-detail-icon { width: 36px; height: 36px; background: var(--forest); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.contact-detail-text strong { display: block; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--textsoft); margin-bottom: 0.2rem; }
.contact-detail-text span { font-size: 0.95rem; color: var(--text); }
.contact-form-wrap { background: var(--white); border-radius: 2px; padding: 2.5rem; border: 1px solid var(--cream2); }
.contact-form-wrap h3 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 300; color: var(--forest); margin-bottom: 1.5rem; }
.form-row { margin-bottom: 1.25rem; }
.form-row label { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--textmid); margin-bottom: 0.4rem; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 0.75rem 1rem; background: var(--cream); border: 1.5px solid var(--cream2); border-radius: 2px; font-family: var(--font-body); font-size: 0.95rem; color: var(--text); outline: none; transition: border-color 0.2s; appearance: none; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--forest); }
.form-row textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; background: var(--forest); color: var(--white); padding: 0.9rem; border: none; border-radius: 2px; font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; margin-top: 0.5rem; }
.form-submit:hover { background: var(--forest2); }

/* ─── FOOTER ─── */
footer { background: var(--text); color: rgba(242,247,251,0.6); padding: 3rem 8%; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
.footer-brand { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: var(--cream); margin-bottom: 0.75rem; }
.footer-brand span { color: var(--clay2); }
footer p { font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(242,247,251,0.6); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--clay2); }
.footer-bottom { background: var(--text); border-top: 1px solid rgba(242,247,251,0.06); padding: 1.25rem 8%; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.78rem; color: rgba(242,247,251,0.35); line-height: 1.6; }

/* ─── REVEAL ANIMATIONS ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--cream); padding: 1.5rem 5%; border-bottom: 1px solid var(--cream2); gap: 1.25rem; box-shadow: 0 8px 24px rgba(0,0,0,0.08); z-index: 99; }
  .hamburger { display: flex; }
  .about-teaser, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .conditions-grid { grid-template-columns: 1fr; }
  .condition-card.span-2 { grid-column: span 1; }
  .steps, .testimonial-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; gap: 2rem; }
  .trust-bar { gap: 1.5rem; flex-direction: column; align-items: center; }
  section { padding: 4rem 5%; }
  .research-banner { flex-direction: column; align-items: flex-start; }
  .autism-card-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
}
