/* ============================================================
   nysocialwork.com — shared stylesheet
   Design: warm editorial — Cormorant Garamond + DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --sage:        #5a7f6e;
  --sage-light:  #e8f0ec;
  --sage-mid:    #c2d5ca;
  --warm-white:  #f7f5f1;
  --warm-gray:   #eceae5;
  --text-dark:   #1e1c18;
  --text-mid:    #4a4740;
  --text-light:  #8a8780;
  --border:      #d8d5ce;
  --max-width:   860px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--warm-white);
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: var(--sage); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Site header & nav ─────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-dark);
  text-decoration: none;
}
.site-logo span { color: var(--sage); }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--sage);
  border-bottom-color: var(--sage);
  text-decoration: none;
}

/* ── Page wrapper ──────────────────────────────────────────── */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Hero (home page) ──────────────────────────────────────── */
.hero {
  background: var(--warm-gray);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 52px;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 48px;
  align-items: start;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--sage);
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.8;
}
.credential-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.pill {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--sage);
  background: var(--sage-light);
  border: 1px solid var(--sage-mid);
  border-radius: 999px;
  padding: 4px 12px;
}
.btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--sage);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn:hover { background: #4a6d5d; text-decoration: none; }

.hero-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-photo img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  object-fit: cover;
}
.photo-caption {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
}

/* ── Section generic ───────────────────────────────────────── */
.section {
  padding: 52px 0 0;
}
.section + .section {
  border-top: 1px solid var(--border);
  margin-top: 52px;
}
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}
.section h2 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}
.section p {
  color: var(--text-mid);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 14px;
}
.section p:last-child { margin-bottom: 0; }

/* ── Card grid ─────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
}
.card-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.card-body {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── Offices ───────────────────────────────────────────────── */
.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.office-card {
  background: var(--sage-light);
  border: 1px solid var(--sage-mid);
  border-radius: 8px;
  padding: 20px 22px;
}
.office-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.office-card p {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

/* ── About page ────────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}
.about-photo img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.affiliations {
  margin-top: 28px;
}
.affiliations h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.aff-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-mid);
  padding: 7px 0;
  border-bottom: 1px solid var(--warm-gray);
}
.aff-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ── Services page ─────────────────────────────────────────── */
.services-intro {
  font-size: 0.9375rem;
  color: var(--text-mid);
  margin-top: 8px;
  line-height: 1.8;
}
.modalities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.modality-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
}
.modality-card h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.modality-card p {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
}
.condition-item {
  font-size: 0.875rem;
  color: var(--text-mid);
  background: var(--warm-gray);
  border-radius: 6px;
  padding: 9px 14px;
  border: 1px solid var(--border);
}

/* ── Resources & Philosophy ────────────────────────────────── */
.page-heading {
  padding: 52px 0 0;
}
.page-heading .section-label { margin-bottom: 12px; }
.page-heading h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 20px;
}
.prose {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.85;
  max-width: 640px;
}
.prose p { margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 500; color: var(--text-dark); }

.resource-list {
  margin-top: 32px;
  border-top: 1px solid var(--border);
}
.resource-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.resource-item h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.resource-item p {
  font-size: 0.875rem;
  color: var(--text-mid);
  margin: 0;
}

/* ── Contact page ──────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  margin-top: 32px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
}
.contact-item .ci-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}
.contact-item .ci-value {
  font-size: 0.9375rem;
  color: var(--text-dark);
}
.contact-item a { color: var(--text-dark); }
.contact-item a:hover { color: var(--sage); }
.response-note {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.6;
  padding: 0 4px;
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
}
.field-group input,
.field-group textarea,
.field-group select {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px 13px;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(90,127,110,0.1);
}
.field-group textarea { height: 120px; resize: vertical; }
.form-submit .btn { width: 100%; text-align: center; padding: 13px; }
.form-note {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--warm-gray);
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-light);
}
.footer-nav {
  display: flex;
  gap: 20px;
}
.footer-nav a {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--sage); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 680px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { display: none; }
  .hero h1 { font-size: 2rem; }
  .card-grid,
  .offices-grid,
  .modalities,
  .form-row { grid-template-columns: 1fr; }
  .conditions-grid { grid-template-columns: 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .site-nav { gap: 16px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
