/* Katie Rubin Counseling — rubintherapy.com */

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --ink: #232B26;
  --ink-soft: #4E5D54;
  --brand: #3E6B54;
  --brand-dark: #2C5140;
  --brand-deep: #21402F;
  --brand-tint: #EAF0E7;
  --leaf: #9BBE00;
  --line: #DFE5DC;
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}

::selection { background: var(--brand-tint); }

a { color: var(--brand); text-underline-offset: 0.15em; }
a:hover { color: var(--brand-dark); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand-dark);
  color: #fff;
  padding: 0.6em 1em;
  z-index: 10;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand-deep);
}

.brand-cred {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.25em 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--brand-dark); }

.site-nav a[aria-current="page"] {
  color: var(--brand-dark);
  border-bottom-color: var(--leaf);
  font-weight: 600;
}

/* ---------- hero ---------- */

.hero {
  background: var(--brand-dark);
  color: #fff;
  padding: 3.5rem 0 3.25rem;
}

.hero .kicker {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9D8C4;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  max-width: 22ch;
}

/* ---------- main layout ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-top: 2.75rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 52rem) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 4rem;
  }
}

article > p { max-width: 65ch; }

article .intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--brand-dark);
  margin: 0 0 1.25rem;
}

article h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--brand-deep);
  margin: 0 0 1rem;
}

article * + h2 { margin-top: 2.5rem; }

.more-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 600;
}

/* ---------- contact card ---------- */

.contact-card {
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--leaf);
  border-radius: 8px;
  padding: 1.5rem 1.5rem 1.75rem;
}

.contact-card h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--brand-deep);
  margin: 0 0 0.75rem;
}

.contact-card address {
  font-style: normal;
  margin: 0 0 1rem;
  line-height: 1.55;
}

.contact-card .note {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.65em 1em;
  margin-top: 0.6rem;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-secondary {
  border: 1.5px solid var(--brand);
  color: var(--brand-dark);
}
.btn-secondary:hover { background: var(--brand-tint); }

/* ---------- services list ---------- */

.focus-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.6rem 1.5rem;
  max-width: 40rem;
}

.focus-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55em 0.9em 0.55em 2.2em;
  position: relative;
}

.focus-list li::before {
  content: "";
  position: absolute;
  left: 0.85em;
  top: 1.05em;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--leaf);
}

/* ---------- FAQ ---------- */

.faq-list {
  list-style: none;
  counter-reset: faq;
  margin: 0;
  padding: 0;
  max-width: 65ch;
}

.faq-list > li {
  counter-increment: faq;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.faq-list h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--brand-deep);
  margin: 0 0 0.5rem;
}

.faq-list h2::before {
  content: counter(faq);
  display: inline-block;
  width: 1.7em;
  height: 1.7em;
  line-height: 1.7em;
  text-align: center;
  margin-right: 0.7em;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
}

.faq-list p { margin: 0.4rem 0; }

.faq-list ul {
  margin: 0.4rem 0;
  padding-left: 1.3rem;
}

/* ---------- resources ---------- */

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
}

.resource-list li { margin-bottom: 0.85rem; }

.resource-list a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--brand-dark);
}

.resource-list a:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.resource-list .ext {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--brand-deep);
  color: #D5E0D1;
  padding: 2.5rem 0;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 4rem;
  justify-content: space-between;
}

.site-footer .f-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 0.25rem;
}

.site-footer p { margin: 0.15rem 0; }

.site-footer a { color: #fff; }

.site-footer .legal {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  color: #AFC2AA;
}

@media (prefers-reduced-motion: no-preference) {
  a, .btn, .resource-list a { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
}
