/* ============================================
   CONNECT AUTISM — COMPLETE STYLES
   ============================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green-dark: #2d4a2e;
  --green-mid: #3d6b3f;
  --green-light: #5a8f5c;
  --cream: #f4f1ea;
  --cream-light: #f8f6f1;
  --text-dark: #1a1a1a;
  --text-body: #3a3a3a;
  --text-muted: #6b6b6b;
  --border: #d9d5cd;
  --content-max: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-body);
  line-height: 1.7;
  background: var(--cream);
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  color: var(--green-dark);
  line-height: 1.3;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green-mid);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ──────────────────────────────
   NAV
   ────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo:hover img {
  transform: scale(1.1);
}

.nav-logo img {
  height: 55px;
  width: auto;
  transition: transform 0.2s ease;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--green-dark);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  border-radius: 1px;
  transition: 0.3s;
}

/* ──────────────────────────────
   HERO
   ────────────────────────────── */

.hero {
  margin-top: 58px;
  position: relative;
  height: 55vh;
  min-height: 420px;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

img.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 53%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

/* ──────────────────────────────
   SHARED SECTION
   ────────────────────────────── */

.section {
  padding: 5rem 2rem;
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-content: center;
}

.section-heading::before,
.section-heading::after {
  content: "";
  height: 2px;
  width: 60px;
  background: var(--green-mid);
  flex-shrink: 0;
}

/* ──────────────────────────────
   ABOUT / PURPOSE
   ────────────────────────────── */

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content p {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

/* ──────────────────────────────
   RESOURCES
   ────────────────────────────── */

.resources {
  background: var(--cream-light);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.resources-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.accordion-item {
  border: 1px solid var(--border);
  border-bottom: none;
  background: var(--cream);
  transition: background 0.2s;
}

.accordion-item:first-child {
  border-radius: 6px 6px 0 0;
}

.accordion-item:last-child {
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 6px 6px;
}

.accordion-item[open] {
  background: #fff;
}

.accordion-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  gap: 1.5rem;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::marker {
  display: none;
  content: "";
}

.accordion-title {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.4;
}

.accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-dark);
  position: relative;
  transition:
    transform 0.25s ease,
    background 0.2s;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-icon::before {
  width: 12px;
  height: 2px;
}

.accordion-icon::after {
  width: 2px;
  height: 12px;
  transition: transform 0.25s ease;
}

.accordion-item[open] .accordion-icon {
  background: var(--green-mid);
  transform: rotate(45deg);
}

.accordion-item summary:hover .accordion-icon {
  background: var(--green-mid);
}

.accordion-body {
  padding: 0 1.5rem 1.5rem;
}

.accordion-body p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* ──────────────────────────────
   CONTACT
   ────────────────────────────── */

.contact-layout {
  max-width: 600px;
  margin: 0 auto;
}

.contact-text {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: var(--text-body);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-mid);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 0.85rem;
  background: var(--green-dark);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: var(--green-mid);
}

/* ──────────────────────────────
   FOOTER
   ────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ──────────────────────────────
   TEAM SIDEBAR
   ────────────────────────────── */

.team-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.team-overlay.open {
  opacity: 1;
  visibility: visible;
}

.team-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(500px, 92vw);
  height: 100%;
  background: var(--cream);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.team-sidebar.open {
  transform: translateX(0);
}

.team-sidebar-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--green-dark);
  padding: 1.2rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-sidebar-header h2 {
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
}

.team-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65);
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.team-close:hover {
  color: #fff;
}

.team-member {
  padding: 1.8rem;
  border-bottom: 1px solid var(--border);
}

.team-member:last-child {
  border-bottom: none;
}

.team-member-photo {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  background: var(--cream-light);
}

.team-member-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.team-member h3 {
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 0.15rem;
}

.team-member .role {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-mid);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.team-member p {
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ──────────────────────────────
   RESPONSIVE
   ────────────────────────────── */

@media (max-width: 900px) {
  .resources-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 0.6rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 1.5rem;
    gap: 0.8rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    height: 50vh;
    min-height: 300px;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-logo {
    padding: 1rem;
    justify-content: center;
  }

  .about-logo-img {
    max-width: 200px;
  }

  .resources {
    padding: 3rem 0;
  }
  .resources-inner {
    padding: 0 1.5rem;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
