/* Memory Treatment Centers — design system
   Concept: "Warm clinical confidence" — deep slate frame, warm cream page,
   the brand's amber gradient doing the pointing, real faces everywhere.
   Built for an older audience: 19px base, high contrast, big targets. */

:root {
  --slate: #121E2A;
  --slate-2: #1C2B3A;
  --ink: #22303E;
  --body: #3A4653;
  --muted: #5C6875;
  --cream: #FDFBF7;
  --sand: #F6F1E7;
  --card: #FFFFFF;
  --line: #E7E0D3;
  --amber: #F8A12A;
  --amber-deep: #F48028;
  --accent-text: #A3520B;
  --grad: linear-gradient(100deg, #FBB32C, #F48028 70%, #ED2F27 130%);
  --radius: 10px;
  --shadow: 0 2px 6px rgba(18, 30, 42, .06), 0 12px 32px rgba(18, 30, 42, .08);
  --shadow-lg: 0 4px 12px rgba(18, 30, 42, .10), 0 24px 48px rgba(18, 30, 42, .12);
  --maxw: 1180px;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.1875rem; /* 19px */
  line-height: 1.65;
  color: var(--body);
  background: var(--cream);
}
html.text-lg body { font-size: 1.3125rem; }
html.text-xl body { font-size: 1.4375rem; }

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
p { margin: 0 0 1.1em; max-width: 68ch; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--amber-deep); }
:focus-visible { outline: 3px solid var(--amber-deep); outline-offset: 3px; border-radius: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--slate); color: #fff; padding: 12px 20px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding: clamp(36px, 5vw, 60px) 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--slate); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #C8D0D9; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-weight: 700;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.kicker::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--amber-deep); }
.section-dark .kicker { color: #9FB0C0; }
.lead { font-size: 1.18em; }

/* ============ header ============ */
.topbar { background: var(--slate); color: #E7EBF0; font-size: .95rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #E7EBF0; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--amber); }
.topbar-phones { display: flex; gap: 18px; flex-wrap: wrap; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { height: 52px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-line1 {
  font-family: "Quicksand", var(--font-sans); font-weight: 600; font-size: 1.34rem;
  color: var(--slate); letter-spacing: .015em; text-transform: uppercase; white-space: nowrap;
}
.brand-line2 {
  font-family: "Quicksand", var(--font-sans); font-weight: 600; font-size: .78rem;
  color: #E9A13B; letter-spacing: .52em; text-transform: uppercase; white-space: nowrap;
  display: flex; align-items: center; gap: 10px; margin-top: 2px;
}
.brand-line2::before, .brand-line2::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: #E9A13B; flex-shrink: 0;
}
.brand-line2::after { margin-left: -6px; }
.brand-ondark .brand-line1 { color: #fff; }
@media (max-width: 430px) {
  .brand img { height: 44px; }
  .brand-line1 { font-size: 1.08rem; }
  .brand-line2 { font-size: .64rem; letter-spacing: .42em; }
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { display: inline-block; padding: 11px 11px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent-text); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }

@media (max-width: 1230px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 18px; box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.1rem; border-bottom: 1px solid var(--sand); }
  .nav .btn { margin: 12px 0 0; text-align: center; }
}

/* ============ buttons ============ */
.btn {
  display: inline-block; background: linear-gradient(180deg, #F9A82C, #F08E22); color: var(--slate);
  font-weight: 700; font-size: 1rem; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  padding: 14px 26px; border-radius: 8px; border: 0; cursor: pointer;
  box-shadow: 0 1px 2px rgba(18, 30, 42, .18);
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: linear-gradient(180deg, #F29C22, #E37F16); transform: translateY(-1px); color: var(--slate); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.section-dark .btn-ghost { color: #fff; border-color: #fff; }
.section-dark .btn-ghost:hover { background: #fff; color: var(--slate); }
.btn-lg { font-size: 1.15rem; padding: 18px 34px; }

/* ============ hero ============ */
.hero { position: relative; background: var(--slate); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(18,30,42,.92) 0%, rgba(18,30,42,.78) 38%, rgba(18,30,42,.25) 75%, rgba(18,30,42,.15) 100%); }
.hero-inner { position: relative; padding: clamp(72px, 11vw, 150px) 0; max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p { color: #E4E9EE; font-size: 1.25rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-phone { margin-top: 22px; color: #C8D0D9; font-size: 1.05rem; }
.hero-phone a { color: var(--amber); font-weight: 700; text-decoration: none; }
@media (max-width: 720px) {
  .hero-media img { object-position: 72% 30%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(18,30,42,.9), rgba(18,30,42,.62)); }
}

/* ============ trust bar ============ */
.trustbar { background: #fff; border-bottom: 1px solid var(--line); }
.trustbar .wrap { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 64px); flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.trust-item { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; font-size: 1rem; }
.trust-item img { height: 46px; width: auto; }
.trust-item .num { font-family: var(--font-serif); font-size: 1.7rem; color: var(--accent-text); font-weight: 700; }

/* ============ layout helpers ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.figure img { width: 100%; height: 100%; object-fit: cover; }

/* ============ cards ============ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-photo img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card-photo .card-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-photo .card-body p { margin-bottom: .6em; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .more::after { content: " →"; }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
@media (max-width: 620px) { .checklist { grid-template-columns: 1fr; } }
.checklist li { position: relative; padding: 14px 16px 14px 52px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; color: var(--ink); }
.checklist li::before {
  content: "✓"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--amber-deep); color: var(--amber-deep);
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9rem;
}

/* conditions pills */
.pill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .pill-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pill-grid { grid-template-columns: 1fr; } }
.pill-grid li { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--amber-deep); border-radius: 10px; padding: 18px 20px; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); }

/* ============ providers ============ */
.provider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1020px; margin: 0 auto; }
@media (max-width: 1000px) { .provider-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .provider-grid { grid-template-columns: 1fr; } }
.provider-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.provider-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.provider-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center; }
.provider-card .p-body { padding: 18px 20px 22px; }
.provider-card .p-name { font-family: var(--font-serif); font-size: 1.18rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.provider-card .p-title { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.provider-card .p-loc { color: var(--accent-text); font-weight: 700; font-size: .92rem; margin-top: 10px; text-transform: uppercase; letter-spacing: .06em; }

/* provider page */
.bio-layout { display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .bio-layout { grid-template-columns: 1fr; } }
.bio-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: sticky; top: 110px; }
@media (max-width: 860px) { .bio-photo { position: static; max-width: 420px; } }

/* ============ testimonials ============ */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.quote .stars { color: var(--amber-deep); font-size: 1.1rem; letter-spacing: 3px; margin-bottom: 12px; }
.quote blockquote { margin: 0 0 16px; font-size: 1.02rem; color: var(--body); flex: 1; }
.quote cite { font-style: normal; font-weight: 700; color: var(--ink); }
.quote .q-loc { color: var(--muted); font-size: .9rem; }

/* ============ locations ============ */
.loc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 4px; }
.loc-card h3 { margin-bottom: 6px; }
.loc-card address { font-style: normal; color: var(--body); }
.loc-phone { font-size: 1.25rem; font-weight: 700; }
.loc-phone a { text-decoration: none; }
.loc-hours { color: var(--muted); font-size: .98rem; margin: 10px 0 14px; }
.loc-hours strong { color: var(--ink); }
.loc-state-tag { display: inline-block; align-self: flex-start; background: var(--sand); color: var(--accent-text); font-weight: 700; font-size: .8rem; letter-spacing: .1em; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }

/* info table (contact page) */
.info-block dt { font-weight: 700; color: var(--ink); margin-top: 14px; }
.info-block dd { margin: 2px 0 0; }

/* ============ FAQ ============ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 20px 24px; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); list-style: none; position: relative; padding-right: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--amber-deep); font-family: var(--font-sans); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 24px 22px; }

/* ============ CTA band ============ */
.cta-band { background: var(--slate); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -140px; top: -140px; width: 480px; height: 480px; background: url('../img/logos/mtc-logo-alone.png') no-repeat center/contain; opacity: .06; }
.cta-inner { position: relative; text-align: center; padding: clamp(56px, 8vw, 90px) 24px; }
.cta-inner h2 { color: #fff; }
.cta-inner p { margin-left: auto; margin-right: auto; color: #C8D0D9; }
.cta-phones { display: flex; justify-content: center; gap: 12px 32px; flex-wrap: wrap; margin-top: 26px; color: #C8D0D9; font-size: 1.05rem; }
.cta-phones a { color: var(--amber); font-weight: 700; text-decoration: none; font-size: 1.15rem; }

/* ============ footer ============ */
.site-footer { background: var(--slate); color: #B9C2CC; padding: 64px 0 32px; font-size: 1rem; }
.site-footer a { color: #E7EBF0; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-logo .brand { margin-bottom: 18px; }
.footer-logo .brand img { height: 46px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .92rem; color: #8A95A1; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); font-weight: 700; }
.footer-social a:hover { background: var(--amber-deep); color: var(--slate); }

/* text size toggle */
.textsize { display: flex; align-items: center; gap: 6px; }
.textsize button { background: none; border: 1px solid rgba(255,255,255,.35); color: #E7EBF0; border-radius: 6px; cursor: pointer; padding: 3px 9px; font-family: var(--font-sans); font-weight: 700; }
.textsize button[aria-pressed="true"] { background: var(--amber); color: var(--slate); border-color: var(--amber); }
.textsize .ts-a { font-size: .8rem; } .textsize .ts-b { font-size: .95rem; } .textsize .ts-c { font-size: 1.1rem; }

/* page hero (interior) */
.page-hero { background: var(--slate); color: #fff; padding: clamp(48px, 7vw, 84px) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -160px; bottom: -220px; width: 520px; height: 520px; background: url('../img/logos/mtc-logo-alone.png') no-repeat center/contain; opacity: .05; }
.page-hero h1 { color: #fff; margin-bottom: .3em; position: relative; z-index: 1; }
.page-hero p { color: #C8D0D9; font-size: 1.2rem; margin-bottom: 0; position: relative; z-index: 1; }
.breadcrumbs { position: relative; z-index: 1; font-size: .95rem; margin-bottom: 18px; color: #8A95A1; }
.breadcrumbs a { color: #C8D0D9; text-decoration: none; }
.breadcrumbs a:hover { color: var(--amber); }

/* news */
.news-item { border-left: 3px solid var(--amber-deep); }
.news-item time { color: var(--muted); font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; }

/* misc */
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: 40px; }
.badge-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.reveal { opacity: 1; }

/* ============ forms ============ */
form label { display: block; font-weight: 700; color: var(--ink); margin: 16px 0 6px; }
form input, form select, form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: 10px; padding: 13px 14px;
}
form input:focus, form select:focus, form textarea:focus { outline: 3px solid var(--amber-deep); outline-offset: 1px; border-color: var(--amber-deep); }
.appt-form { margin-top: 20px; }
.appt-form button { margin-top: 22px; width: 100%; }
.form-done { background: #EDF7EE; border: 1px solid #BADFBE; border-radius: 10px; padding: 14px 16px; color: #1E5B24; margin-top: 18px; }
.form-note { font-size: .92rem; color: var(--muted); margin-top: 14px; }
form [disabled] { opacity: .55; }

/* newsletter (footer) */
.newsletter { margin: 6px 0 18px; }
.newsletter label { color: #fff; margin-top: 0; }
.nl-row { display: flex; gap: 10px; }
.nl-row input { flex: 1; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; }
.nl-row input::placeholder { color: #8A95A1; }
.nl-row .btn { padding: 12px 20px; white-space: nowrap; }
.newsletter .form-done { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #C8E6CB; }

/* review link on location cards */
.review-link { margin-top: 12px; font-size: .95rem; }
.review-link a { font-weight: 700; }

/* article pages */
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }
.article-layout article h2 { margin-top: 1.4em; }
.article-aside { position: sticky; top: 110px; }
@media (max-width: 900px) { .article-aside { position: static; } }
.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list li { margin-bottom: 12px; }
.article-card .card-body h3 { font-size: 1.3rem; }
.cta-band .btn-ghost { color: #fff; border-color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--slate); }

/* ============ inline SVG icons ============ */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; fill: currentColor; }
.stars-row { display: inline-flex; gap: 2px; color: var(--amber-deep); }
.stars-row .icon { width: 1.05em; height: 1.05em; }
.trust-item .stars-row { font-size: 1.15rem; }
.footer-social a svg { width: 18px; height: 18px; }
.loc-phone .icon { color: var(--accent-text); margin-right: 4px; }
