
:root{
  --primary: #2193b0;    /* teal/blue */
  --primary-2: #6dd5ed;  /* accent */
  --accent: #42b6d7;     /* explore button */
  --muted: #f7f8fa;
  --card: #ffffff;
  --text: #222;
  --nav-height: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--muted);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* --------- Header / Nav  --------- */
header {
  background: linear-gradient(90deg, var(--primary-2), var(--primary));
  color: #fff;
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(33,147,176,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

/* Hide navbar on landing page by default */
body.landing-page header nav,
body.landing-page header .menu-toggle {
  display: none;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-container .logo {
  height: 46px;
  width: auto;
}
.logo-container h1, .logo-container .logo-text {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* nav links */
nav { display: block; }
#nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
  align-items: center;
}
#nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
#nav-links a:hover { color: #ffe082; }

/* menu toggle (mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* --------- Landing Page (index.html) --------- */

.landing-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 60px;
  background: #ffffff;
  margin: 40px auto 0 auto;
  width: 70%; /* narrower width */
  max-width: 2500px; /* reduced max width */
  box-sizing: border-box;
  border-radius: 20px;
  box-shadow: 0 14px 44px rgba(0,0,0,0.15);
  min-height: 750px; /* minimum height to fit content */
  position: relative;
  z-index: 10;
}



.landing-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 60px;
}
.landing-text h1 {
  font-size: 6.2rem;
  color: #0d355f;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.landing-text p {
  font-size: 2.05rem;
  color: #333;
  max-width: 480px;
  margin-bottom: 26px;
  line-height: 1.6;
}

/* Explore button */
#exploreBtn, .explore-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: .6px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
#exploreBtn:hover, .explore-btn:hover {
  background: #2a9ab8;
  transform: translateY(-2px);
}

/* Right column (logo big) */
.landing-logo {
  flex: 0 0 520px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.landing-logo img {
  max-width: 470px;
  width: 100%;
  height: auto;
}
.landing-logo h2 {
  color: #0d355f;
  font-size: 2.2rem;
  margin-top: 6px;
  text-align: center;
}

/* --------- Main content (main.html) --------- */
main { padding: 28px 20px; }

/* Add top padding to first section to account for fixed header */
section:first-of-type {
  margin-top: 100px;
}

section {
  background: var(--card);
  margin: 28px auto;
  padding: 28px;
  max-width: 1000px;
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(33,147,176,0.06);
}
section h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

section h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin: 24px 0 12px 0;
  font-weight: 600;
}

section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

section li {
  margin: 8px 0;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

section li:last-child {
  border-bottom: none;
}

section a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Resources section specific styling */
#resources h3:not(:first-of-type) {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 2px solid #f5f5f5;
}

#resources ul {
  margin-bottom: 16px;
}

/* Goals grid */
.goals {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.goal {
  background: #eaf9fd;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(33,147,176,0.04);
}

/* Gallery */
#gallery .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
#gallery .sensory-room img,
#gallery .sensory-sessions img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(33,147,176,0.08);
  transition: transform .18s ease;
}
#gallery .sensory-room img:hover,
#gallery .sensory-sessions img:hover { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,20,30,0.7);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-content {
  max-width: 90%;
  max-height: 86%;
  border-radius: 10px;
  box-shadow: 0 14px 44px rgba(0,0,0,0.35);
  object-fit: contain;
}
.lightbox .close {
  position: absolute;
  right: 28px;
  top: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

/* Footer */
footer {
  margin-top: 24px;
  padding: 18px 0;
  text-align: center;
  background: linear-gradient(90deg, var(--primary-2), var(--primary));
  color: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 -4px 14px rgba(33,147,176,0.04);
}

/* Back to Intro button (footer or header) */
#backToIntro, .back-btn, .reset-btn {
  display: inline-block;
  background: #0d355f;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background .16s ease, transform .12s ease;
}
#backToIntro:hover, .back-btn:hover, .reset-btn:hover { background: #0a2b46; transform: translateY(-2px); }

/* --------- Responsive --------- */
@media (max-width: 1024px) {
  .landing-container { padding: 36px; }
  .landing-text { padding-right: 28px; }
  .landing-logo { flex: 0 0 300px; }
}

@media (max-width: 800px) {
  header { padding: 10px 0; }
  .landing-container {
    flex-direction: column;
    gap: 28px;
    height: auto;
    padding: 28px;
  }
  .landing-text { text-align: center; padding-right: 0; }
  .landing-logo { order: -1; }
  .landing-logo img { max-width: 220px; }
  #nav-links { display: none; } 
  .menu-toggle { display: flex; }
  
  /* Override for landing page - hide menu toggle too */
  body.landing-page .menu-toggle { display: none !important; }
}

@media (max-width: 480px) {
  .landing-text h1 { font-size: 2rem; }
  .landing-text p { font-size: 0.98rem; }
  #gallery .gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  #gallery img { height: 95px; }
}
