/* ========================================
   ADHDaptive V2 base stylesheet
======================================== */

/* ===== VARIABLES ===== */
:root {
  --color-primary: #001672;
  --color-secondary: #18501F;
  --color-link: #18501f;
  --color-link-hover: #249a5a;
  --color-link-active: #1e7f4a;
  --color-highlight: #FFD100;
  --color-warm: #FF9D4B;

  --color-text: #1f2933;
  --color-bg: #f3f8fc;
  --color-border: #e5e7eb;
  --color-soft: #f5f7fa;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* ===== BASE ===== */
body {
  margin: 0;
  font-family: 'Quicksand', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ========================================
   LINKS
======================================== */

a,
a:link,
a:visited {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

a:hover,
a:focus {
  color: var(--color-link-hover);
}

a:active {
  color: var(--color-link-active);
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.4rem;
  text-align: center;
}

h2 {
  font-size: 1.9rem;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
  font-weight: 500; /* ↑ stronger body text */
}

/* ===== LISTS ===== */
ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

/* ===== LAYOUT ===== */
main {
  padding-bottom: 4rem;
}

.container {
  width: min(100% - 2rem, 1100px);
  margin-inline: auto;
}

.content-width {
  width: min(100% - 2rem, 800px);
  margin-inline: auto;
}

.section {
  padding: 3.5rem 0;
}

.text-center {
  text-align: center;
}

/* ===== HERO ===== */
.hero-subtitle {
  margin-bottom: 2rem;
  color: var(--color-primary);
  text-align: center;
  font-size: 1.35rem;
  font-weight: 600;
}

.hero-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.hero-image-wrap {
  flex: 0 0 130px;
}

.hero-image-wrap img {
  width: 130px;
  height: 130px;
  margin-inline: auto;
  border-radius: 50%;
  object-fit: contain;
}

.hero-copy {
  flex: 1 1 600px;
  max-width: 680px;
}

/* ===== CALLOUT ===== */
.callout {
  max-width: 820px;
  margin: 1.75rem auto 2.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-soft);
  border-left: 4px solid var(--color-secondary);
  border-radius: 6px;
}

/* ===== BUTTONS ===== */
.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn,
.btn:link,
.btn:visited {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--color-secondary);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}

.btn:hover,
.btn:focus {
  background: var(--color-warm);
  color: #ffffff;
}

.btn-link {
  min-width: 160px;
}

/* ===== CTA ===== */
.hero-cta {
  margin: 3rem 0 1.25rem;
  text-align: center;
}

.helper-text {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ===== DIVIDER ===== */
.divider {
  width: min(80%, 700px);
  height: 3px;
  margin: 0 auto;
  background: var(--color-secondary);
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== CARDS ===== */
.card {
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-align: center;
}

.card img {
  margin: 0 auto 1rem;
}


/* ===== ABOUT ===== */
.about-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.about-image-wrap {
  flex: 0 0 240px;
}

.about-image-wrap img {
  max-width: 220px;
  margin-inline: auto;
  border-radius: 12px;
}

.about-copy {
  flex: 1 1 360px;
  max-width: 600px;
}
/* ========================================
   SHARED ASSETS
======================================== */

/* ===== LIGHTBULB LIST ===== */

ul.lightbulb-list,
ul.lightbulb-list li {
  list-style: none !important;
  margin-left: 0;
}

ul.lightbulb-list {
  padding-left: 0 !important;
  margin: 1rem 0 !important;
}

ul.lightbulb-list li {
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 1.25rem;
}

ul.lightbulb-list li::marker {
  content: "";
}

ul.lightbulb-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 18px;
  height: 18px;
  background-image: url("/Assets/adhdaptive-bulb-bullet.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }
}
/* =========================
   Header
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 88px;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 192px;
}

.site-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-title,
.site-tagline {
  margin: 0;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.site-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-secondary);
  line-height: 1.2;
}

.primary-menu {
  margin-left: auto;
}

.menu-items,
.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-items {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.menu-items > li {
  position: relative;
}

.primary-menu a,
.primary-menu a:link,
.primary-menu a:visited {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
}

.primary-menu a:hover,
.primary-menu a:focus {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.primary-menu a[aria-current="page"] {
  color: var(--color-secondary);
  text-decoration: underline;
}

.sub-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0;
  display: none;
}

.sub-menu li {
  margin: 0;
}

.sub-menu a {
  display: block;
  padding: 0.7rem 1rem;
  font-weight: 600;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.submenu-toggle {
  display: none;
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .site-title-wrap {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .primary-menu {
    width: 100%;
    margin-left: 0;
    padding-top: 0.5rem;
  }

  .menu-items {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .menu-items > li {
    border-top: 1px solid var(--color-border);
  }

  .menu-items > li > a {
    display: block;
    padding: 1rem 0;
  }

  .sub-menu {
    position: static;
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0.5rem 1rem;
    display: none;
  }

  .menu-item-has-children:hover > .sub-menu,
  .menu-item-has-children:focus-within > .sub-menu {
    display: none;
  }

  .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }

  .menu-items > li.menu-item-has-children {
    position: relative;
    padding-right: 3rem;
  }

  .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0.65rem;
    right: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--color-primary);
    font-size: 1rem;
    cursor: pointer;
  }
}