/* Anne Mc Donald – Educational Psychologist */

:root {
  --bg: #F6F4EE;
  --text: #2C2B28;
  --muted: #6A6862;
  --accent: #2E5E7E;
  --accent-hover: #254a63;
  --border: rgba(44, 43, 40, 0.10);
  --max-width: 1100px;
  --content-width: 820px;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 1.75rem;
  --space-xl: 2.25rem;
  --radius: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
}

.main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  box-sizing: border-box;
}

/* Header – letterhead */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0.85rem var(--space-md) 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  box-sizing: border-box;
}

.brand {
  flex: 1;
  min-width: 0;
}

.brand-top {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-divider {
  width: 1px;
  height: 1.1rem;
  background: var(--border);
  align-self: center;
  flex-shrink: 0;
}

.subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
}

.credentials {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.2em 0 0 0;
  opacity: 0.75;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.logo-link {
  display: block;
  line-height: 0;
}

.logo-img {
  height: 3.5rem;
  width: auto;
  display: block;
}

/* Hamburger – visible only on mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .hamburger {
    display: flex;
  }
}

/* Mobile nav dropdown */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--border);
  background: var(--bg);
  max-width: var(--content-width);
  margin: 0 auto;
}

.mobile-nav a {
  padding: var(--space-sm) 0;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.mobile-nav a:hover {
  text-decoration: underline;
}

@media (min-width: 861px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .mobile-nav.is-open {
    display: flex;
  }
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-intro {
  padding-top: var(--space-md);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm) 0;
}

/* Center heading over the image column on desktop */
@media (min-width: 861px) {
  .section:has(.section-row) > .section-title {
    width: 155px;
    text-align: center;
  }
}

.lead {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--space-sm) 0;
}

.intro-text {
  margin: 0;
  text-align: left;
}

/* Section row: image left, text right */
.section-row {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  margin-top: var(--space-sm);
}

.section-img-wrap {
  flex-shrink: 0;
}

.section-img {
  width: 155px;
  height: 155px;
  object-fit: cover;
}

.section-img.circle {
  border-radius: 50%;
}

.section-body {
  flex: 1;
  min-width: 0;
}

.collapsed-body {
  margin: 0 0 var(--space-md) 0;
}

.list-bullets {
  margin: 0 0 var(--space-md) 0;
  padding-left: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--accent-hover);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

.btn-accordion {
  margin-top: var(--space-sm);
}

/* Hide "Learn More" and summary text when panel is open */
.btn-accordion[aria-expanded="true"] {
  display: none;
}

.section-body:has(.accordion-panel.is-open) > .collapsed-body {
  display: none;
}

.btn-collapse {
  margin-top: var(--space-md);
}

/* Accordion panel */
.accordion-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .accordion-panel {
    transition: none;
  }
}

.accordion-panel.is-open {
  max-height: 2000px;
  opacity: 1;
  margin-top: var(--space-md);
}

.accordion-panel h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm) 0;
}

.accordion-panel ol,
.accordion-panel ul {
  margin: 0 0 var(--space-md) 0;
  padding-left: 1.5rem;
}

.accordion-panel li {
  margin-bottom: 0.35em;
}

.accordion-panel ul ul {
  margin-bottom: 0.5em;
  padding-left: 1.25rem;
}

.accordion-panel p {
  margin: 0 0 var(--space-sm) 0;
}

/* Contact icon grid */
.contact-icons {
  display: flex;
  justify-content: space-evenly;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.contact-item:hover {
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .contact-item {
    transition: none;
  }
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: block;
}

.contact-map-link {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Footer */
.site-footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0 0 0.35em 0;
}

.site-footer .disclaimer {
  margin-top: var(--space-md);
  font-size: 0.75rem;
}

/* Mobile adjustments */
@media (max-width: 860px) {
  .brand-top {
    flex-direction: column;
    gap: 0;
  }

  .brand-divider {
    display: none;
  }

  .subtitle {
    margin-top: 0.1em;
  }

  .logo-img {
    height: 2.8rem;
  }

  .section-row {
    flex-direction: column;
    gap: var(--space-md);
  }

  .section-img-wrap {
    margin: 0 auto;
  }

  .section {
    padding: var(--space-md) 0;
  }

  .main {
    padding: var(--space-md);
  }
}
