/* ==========================================================================
   Empower ADHD Solutions — static site
   Design tokens pulled directly from the live Wix site (measured, not guessed):
   - Font: Raleway (400 body/headings, 700 bold on buttons, letter-spacing 1.6px)
   - Page background: #000000 (black), fading to #003055 (dark navy) in the hero
   - Accent / CTA color: #76C4FF (light blue)
   - Heading/body text on dark background: #FAFAFA
   - Footer: white background
   ========================================================================== */

:root {
  --color-bg: #000000;
  --color-bg-navy: #003055;
  --color-accent: #76c4ff;
  --color-accent-deep: #2f7fb3;
  --color-text-light: #fafafa;
  --color-text-muted: #c9d6de;
  --font-body: "Raleway", Arial, Helvetica, sans-serif;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@keyframes bg-shift {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(118, 196, 255, 0.14), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(47, 127, 179, 0.12), transparent 55%);
  background-repeat: no-repeat;
  background-size: 200% 200%;
  animation: bg-shift 15s ease infinite;
  color: var(--color-text-light);
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #000;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.35rem 1.25rem;
  flex-wrap: nowrap;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 50%;
  flex-shrink: 0;
}

.main-nav {
  margin: 0 auto;
  min-width: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-light);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.main-nav > ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav li {
  display: flex;
}

.main-nav a {
  color: var(--color-text-light);
  padding: 0.85rem 0.45rem;
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  background-color: var(--color-bg-navy);
}

.main-nav a.active {
  background-color: var(--color-accent);
  color: #000000;
}

.main-nav a.active:hover,
.main-nav a.active:focus {
  background-color: var(--color-accent);
}

.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  min-width: 220px;
  text-transform: none;
  font-weight: 400;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.dropdown li a {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.dropdown li a.active {
  background-color: var(--color-accent);
  color: #000000;
}

.header-social {
  display: flex;
  gap: 0.5rem;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.header-social a {
  color: var(--color-text-muted);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, #000000 0%, #001a30 55%, var(--color-bg-navy) 100%);
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero-logo {
  width: 560px;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 30px rgba(118, 196, 255, 0.3));
}

.hero-intro {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: 3rem;
}

@keyframes text-glow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-headline,
.page-banner h1 {
  background: linear-gradient(90deg, var(--color-text-light) 15%, var(--color-accent) 50%, var(--color-text-light) 85%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: text-glow 5s linear infinite;
}

.hero-headline {
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 1.25rem;
}

.hero-body {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-deep));
  background-size: 200% 200%;
  color: #000000;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 999px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, filter 0.2s ease, background-position 0.3s ease;
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 40px rgba(118, 196, 255, 0.45), 0 0 24px rgba(47, 127, 179, 0.35);
  background-position: 100% 50%;
  filter: brightness(1.12);
}

.cta-button:active {
  transform: translateY(0) scale(1);
}

.cta-button--outline {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

/* ---------- Blog grid ---------- */

.blog-grid-section {
  padding: 3rem 1.5rem;
}

.blog-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.blog-card {
  display: block;
  color: var(--color-text-light);
}

.blog-card img {
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1rem;
}

.blog-card h2 {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

.blog-card:hover h2,
.blog-card:focus h2 {
  color: var(--color-accent);
}

.blog-card .post-date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin: 0 0 0.4rem;
}

.blog-card .post-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0.5rem 0 0;
}

.blog-fallback {
  color: var(--color-text-muted);
  text-align: center;
  grid-column: 1 / -1;
  padding: 2rem 0;
}

.blog-fallback a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ---------- CoachAccountable login widget ---------- */

.ca-widget {
  max-width: 480px;
  margin-top: 1.25rem;
}

/* ---------- Peer support section ---------- */

.peer-support {
  padding: 3rem 1.5rem 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.peer-support-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.peer-support h3 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.peer-support p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.peer-support a:not(.cta-button) {
  color: var(--color-accent);
  text-decoration: underline;
}

.peer-support .cta-button {
  margin-top: 1.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.site-footer .footer-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: #7a8894;
}

.footer-socials {
  margin: 1.5rem 0;
}

.footer-socials h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin: 0 0 0.85rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.socials a {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  color: var(--color-text-light);
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.socials a:hover,
.socials a:focus {
  border-color: var(--color-accent);
  background: rgba(118, 196, 255, 0.1);
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: block;
  }
  .main-nav {
    margin-left: 0;
    display: none;
    width: 100%;
    order: 4;
  }
  .main-nav.open {
    display: block;
  }
  .header-social {
    order: 3;
  }
  .main-nav > ul {
    flex-direction: column;
    flex-wrap: wrap;
    white-space: normal;
    gap: 0;
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }
  .dropdown {
    position: static;
    border: none;
    background: transparent;
    padding-left: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1.25rem 3.5rem;
  }
  .hero-headline {
    font-size: 1.4rem;
  }
}

/* ---------- Generic inner-page components ---------- */

.page-banner {
  background: linear-gradient(180deg, #000000 0%, #001a30 60%, var(--color-bg-navy) 100%);
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-banner h1 {
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.page-banner p {
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.content-section--wide {
  max-width: 1100px;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 2rem 0 1rem;
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.content-section p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.content-section ul {
  color: var(--color-text-muted);
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.content-section li {
  margin-bottom: 0.4rem;
}

.content-section a:not(.cta-button) {
  color: var(--color-accent);
  text-decoration: underline;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.5rem;
}

.card h3 {
  margin-top: 0;
  color: var(--color-text-light);
}

.card p {
  font-size: 0.92rem;
}

.card .price {
  color: var(--color-accent);
  font-weight: 700;
  margin-top: 1rem;
}

.card-grid--resources {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid--resources .card {
  padding: 1.6rem;
}

.reslist {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
}

.reslist li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.reslist li:last-child {
  border-bottom: none;
}

.reslist a {
  color: var(--color-text-light);
  font-weight: 600;
  text-decoration: none;
}

.reslist a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.reslist-note {
  font-size: 0.85rem;
  color: #7a8894;
  margin: 0.75rem 0 0;
}

.testimonial {
  background: #0a0a0a;
  border-left: 3px solid var(--color-accent);
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.numbered-list {
  list-style: none;
  padding: 0;
  counter-reset: item;
}

.numbered-list li {
  counter-increment: item;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.25rem;
}

.numbered-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.numbered-list .read-time {
  display: block;
  font-size: 0.8rem;
  color: #7a8894;
  margin-top: 0.25rem;
}

.path-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.75rem;
}

.path-card h3 {
  margin-top: 0;
}

.bio-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.bio-layout img {
  width: 220px;
  border-radius: 10px;
  flex-shrink: 0;
}

.bio-layout .bio-text {
  flex: 1;
  min-width: 260px;
}

.simple-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 420px;
  margin: 2rem 0;
}

.simple-form label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.simple-form input,
.simple-form textarea {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.simple-form button {
  align-self: flex-start;
}

.form-note {
  font-size: 0.8rem;
  color: #7a8894;
  max-width: 420px;
}

/* ---------- Card hover lift ---------- */

.card,
.path-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.path-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(118, 196, 255, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(118, 196, 255, 0.15);
}

.blog-card img {
  transition: transform 0.4s ease;
}

.blog-card:hover img {
  transform: scale(1.03);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Command palette (Ctrl+K / Cmd+K) ---------- */

.cmdk-hint {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.cmdk-hint:hover {
  border-color: var(--color-accent);
  color: var(--color-text-light);
}

@media (max-width: 1024px) {
  .cmdk-hint {
    display: none;
  }
}

.cmdk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 1rem 0;
}

.cmdk-overlay[hidden] {
  display: none;
}

.cmdk {
  width: min(560px, 100%);
  background: #0a0e13;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(118, 196, 255, 0.15);
  overflow: hidden;
}

.cmdk input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-light);
  font: inherit;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.95rem 1.1rem;
}

.cmdk input:focus {
  outline: none;
}

.cmdk input::placeholder {
  color: var(--color-text-muted);
}

.cmdk-list {
  max-height: 330px;
  overflow-y: auto;
  padding: 0.45rem;
}

.cmdk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0.9rem;
  border-radius: 8px;
  color: var(--color-text-light);
  cursor: pointer;
  font-size: 0.92rem;
}

.cmdk-item .k {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cmdk-item.sel {
  background: rgba(118, 196, 255, 0.16);
}

.cmdk-item.sel .k {
  color: var(--color-accent);
}

.cmdk-empty {
  padding: 1rem 1.1rem 1.2rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body {
    animation: none;
  }
  .hero-headline,
  .page-banner h1 {
    animation: none;
  }
  .cta-button {
    transition: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card,
  .path-card,
  .blog-card img,
  .socials a {
    transition: none;
  }
}