/*
 * Paul Embleton, PsyD, PLLC
 * "Clinical Trust" theme — slate blue, cool white, deep navy, Inter.
 */

:root {
  --navy: #0f2a43;
  --navy-deep: #0a1f33;
  --blue: #2c6e9b;
  --blue-dark: #245a80;
  --bg: #f6f9fc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --ink: #16263a;
  --muted: #51616f;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 42, 67, .06), 0 8px 24px rgba(15, 42, 67, .06);

  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-link-color: var(--blue);
  --bs-link-hover-color: var(--blue-dark);
}

body {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; margin-bottom: .75rem; }

a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Navbar ---------- */
.site-nav {
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 6px 18px rgba(15, 42, 67, .12);
}
.site-nav .navbar-brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.site-nav .brand-suffix { color: #9ec7e6; font-weight: 600; }
.site-nav .nav-link {
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
  padding-inline: .9rem;
}
.site-nav .nav-link:hover { color: #fff; }
.site-nav .nav-cta {
  background: var(--blue);
  border-radius: 6px;
  color: #fff;
}
.site-nav .nav-cta:hover { background: var(--blue-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #eaf2f9;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 600;
  color: #9ec7e6;
  margin-bottom: .75rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 1.1rem;
}
.hero .lead {
  color: #c9dceb;
  font-size: 1.18rem;
  max-width: 38ch;
}
.hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  border: 4px solid rgba(255, 255, 255, .12);
}

.btn-primary {
  --bs-btn-bg: var(--blue);
  --bs-btn-border-color: var(--blue);
  --bs-btn-hover-bg: var(--blue-dark);
  --bs-btn-hover-border-color: var(--blue-dark);
  --bs-btn-active-bg: var(--blue-dark);
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 4.5rem) 0; scroll-margin-top: 70px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section p { color: var(--ink); }
.section ul { color: var(--ink); }

/* ---------- Cards ---------- */
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.section-alt .service-card { background: var(--bg); }
.service-card .card-body { padding: 1.75rem; }
.service-card h3 {
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}

.photo-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-card .card-img-top { object-fit: cover; height: 220px; }
.photo-card .card-text { color: var(--muted); margin: 0; font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid { margin-top: 1rem; }
.contact-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  height: 100%;
  padding: 1.5rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
  transition: transform .15s ease, background .15s ease;
}
.contact-tile:hover {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}
.contact-tile .material-icons { font-size: 2rem; color: #9ec7e6; }
.contact-tile .contact-label { line-height: 1.4; font-weight: 500; }

/* ---------- FAQ ---------- */
.accordion {
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(44, 110, 155, .25);
  --bs-accordion-active-bg: #eef5fb;
  --bs-accordion-active-color: var(--navy);
  --bs-accordion-border-color: var(--border);
  --bs-accordion-border-radius: var(--radius);
}
.accordion-button { font-weight: 600; color: var(--navy); }
.family-photo { max-width: 320px; width: 100%; border-radius: var(--radius); margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #b9cad8;
  padding: 2.5rem 0;
  font-size: .92rem;
}
.site-footer a { color: #9ec7e6; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: .5rem; }
.footer-copy { color: #6f8499; margin: .75rem 0 0; font-size: .85rem; }

/* ---------- Accessibility ---------- */
a:focus-visible, .btn:focus-visible, .nav-link:focus-visible, .accordion-button:focus-visible {
  outline: 3px solid #9ec7e6;
  outline-offset: 2px;
}
