/* Base Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: #2b2e38; background: #ffffff; }
img { max-width: 100%; height: auto; display: block; }
:root {
  --primary: #FE5D37;
  --light: #FFF5F3;
  --dark: #103741;
  --blue: #4FA9D0;
  --yellow: #F7C948;
  --coral: #F28C8C;
  --accent: #db3056; /* primary CTA */
  --accent2: #fb8b24; /* secondary CTA / overlays */
  --accent2-rgb: 251, 139, 36;
  --bg: #ffffff;
  --text: #2b2e38;
  --muted: #6b7280;
  --white: #ffffff;
  --gray: #7f8c8d;
  --font-primary: 'Nunito', sans-serif;
  --font-heading: 'Lobster Two', cursive;
  --font-body: 'Montserrat', sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  /* Added for sticky offsets */
  --navbar-height: 92px;
}

/* Containers */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.lead { font-size: 1.125rem; color: var(--muted); }
.subhead { color: var(--muted); margin-top: -10px; }

/* Header */
.site-header { position: sticky; top: 0; background: rgba(255,255,255,.9); backdrop-filter: saturate(150%) blur(6px); border-bottom: 1px solid rgba(0,0,0,.06); z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { font-weight: 800; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.nav ul { list-style: none; display: flex; gap: 22px; padding: 0; margin: 0; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--accent); }
.cta { background: var(--accent); color: #fff; text-decoration: none; padding: 10px 16px; border-radius: var(--radius); font-weight: 700; box-shadow: var(--shadow); }
.cta:hover { background: #c2173d; }

/* Brand stack for KinderCareGFDC */
.navbar .brand-logo { width: 64px; height: 64px; object-fit: contain; }
.brand-stack { display: flex; flex-direction: column; line-height: 1; justify-content: center; align-items: center; text-align: center; }
.brand-name { font-family: 'Lobster Two', cursive; font-weight: 400; font-size: 1.6rem; color: #ff6f3d; white-space: nowrap; text-align: center; }
.brand-tagline { font-family: 'Montserrat', sans-serif; font-size: 0.95rem; color: #e91e63; font-weight: 300; text-align: center; align-self: center; margin-top: 0; }
@media (min-width: 992px) { .navbar .brand-logo { width: 56px; height: 56px; } .brand-name { font-size: 1.9rem; } .brand-tagline { font-size: 1.05rem; } }

/* Mobile quick actions bar */
.mobile-quickbar { display: flex; justify-content: space-around; align-items: center; background: #e0527b; color: #fff; padding: 10px 6px; position: sticky; top: var(--navbar-height); z-index: 1040; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.mobile-quickbar .quick-item { display: inline-flex; gap: 8px; align-items: center; color: #fff; font-weight: 700; text-decoration: none; padding: 12px 12px; background: rgba(255,255,255,0.06); border-radius: 0; flex: 1; justify-content: center; }
.mobile-quickbar .quick-item + .quick-item { border-left: 1px solid rgba(255,255,255,.7); }
.mobile-quickbar .quick-item i { font-size: 1rem; }

/* Hero */
.hero { position: relative; min-height: 74vh; display: grid; place-items: center; text-align: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; background: url('../img/hero.jpg') center/cover no-repeat; filter: brightness(.7); z-index: 0; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(219, 48, 86, 0.55) 0%, rgba(219, 48, 86, 0.35) 45%, rgba(219, 48, 86, 0.20) 100%); z-index: 0; }
.hero-content { position: relative; z-index: 1; color: #fff; max-width: 900px; }
.hero h1 { font-size: 2.6rem; margin: 0 0 14px; }
.tagline { font-size: 1.2rem; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: 12px 18px; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn.primary { background: var(--yellow); color: #1f2937; }
.btn.primary:hover { background: #f59e0b; }
.btn.outline { background: transparent; color: #fff; border-color: #fff; }
.btn.outline:hover { background: rgba(255,255,255,.15); }

/* Sticky Section Titles */
.section-title { display: inline-flex; align-items: center; gap: 12px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.section-title .title-img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); }
.sticky-title { position: sticky; top: 72px; z-index: 1020; }
@media (max-width: 768px) { .sticky-title { top: 64px; } }

/* About */
.about { background: linear-gradient(180deg, #fff, #f9fafb); }
.about .lead { margin-bottom: 12px; }
.about-cta { margin-top: 20px; }

/* Programs */
.programs { background: #fff; position: relative; isolation: isolate; }
.programs::before { content: ""; position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(1200px 420px at 10% 0%, rgba(219, 48, 86, 0.22), rgba(219, 48, 86, 0) 65%),
  radial-gradient(1200px 420px at 90% 100%, rgba(219, 48, 86, 0.32), rgba(219, 48, 86, 0) 65%),
  linear-gradient(180deg, rgba(219, 48, 86, 0.18) 0%, rgba(219, 48, 86, 0.26) 40%, rgba(219, 48, 86, 0.12) 75%, rgba(219, 48, 86, 0) 100%);
}
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; position: relative; z-index: 1; }
.program-card { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.program-card img { aspect-ratio: 16/9; object-fit: cover; }
.program-copy { padding: 14px 16px; }
.program-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.program-card .age { font-weight: 600; color: var(--muted); font-size: .95rem; }

/* Gallery */
.gallery { background: #f8fafc; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.gallery-grid img { border-radius: 12px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }

/* Testimonials */
.testimonials { background: #fff; }
.testimonials-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 22px; }
.testimonial { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); padding: 14px; display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; }
.testimonial img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; }
.testimonial blockquote { margin: 0; color: #374151; }
.testimonial figcaption { color: var(--muted); margin-top: 8px; }

/* Contact */
.contact { position: relative; }
.contact-bg { position: absolute; inset: 0; background: linear-gradient(rgba(var(--accent2-rgb), 0.79), rgba(var(--accent2-rgb), 0.79)), url('../img/contact-bg.jpg') center/cover no-repeat; filter: none; opacity: 1; }
.contact-inner { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; margin-top: 22px; }
#contact-form { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
#contact-form label { font-weight: 700; font-size: .9rem; color: #1f2937; }
#contact-form input, #contact-form textarea { width: 100%; margin-top: 6px; margin-bottom: 12px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; font-size: 1rem; }
#contact-form textarea { min-height: 140px; resize: vertical; }
.note { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid #e5e7eb; }
.map-wrap iframe { width: 100%; height: 260px; border: 0; }
.contact-details { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }

/* Facility Cards */
.facility-item .facility-icon {
  position: relative;
  margin: 0 auto;
  width: 100px;
  height: 100px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.facility-item .facility-icon::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, .9);
  transition: .5s;
  z-index: 1;
}

.facility-item .facility-icon span {
  position: absolute;
  content: "";
  width: 15px;
  height: 30px;
  top: 0;
  left: 0;
  border-radius: 50%;
}

.facility-item .facility-icon span:last-child {
  left: auto;
  right: 0;
}

.facility-item .facility-icon i {
  position: relative;
  z-index: 2;
}

.facility-item .facility-text {
  position: relative;
  min-height: 250px;
  padding: 30px;
  border-radius: 100%;
  display: flex;
  text-align: center;
  justify-content: center;
  flex-direction: column;
}

.facility-item .facility-text::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, .9);
  transition: .5s;
  z-index: 1;
}

.facility-item .facility-text * {
  position: relative;
  z-index: 2;
}

.facility-item:hover .facility-icon::before,
.facility-item:hover .facility-text::before {
  background: transparent;
}

.facility-item * {
  transition: .5s;
}

.facility-item:hover * {
  color: #FFFFFF !important;
}

/* Navbar Brand */
.navbar .brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.navbar .brand-text {
  font-family: 'Lobster Two', cursive;
  color: var(--primary);
  font-size: 1.75rem;
  line-height: 1;
}

/* Header Carousel */
.header-carousel .carousel-inner .carousel-item {
  position: relative;
  min-height: 100vh;
}

.header-carousel .carousel-inner .carousel-item img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Hero background for first slide */
.hero-sticky {
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  .hero-sticky { background-position: center 10%; }
}

@media (min-width: 992px) {
  .hero-sticky { background-attachment: fixed; }
}

@media (max-width: 991.98px) {
  .hero-sticky { background-attachment: scroll; }
}

.header-carousel .carousel-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%);
  padding-bottom: 24px; /* ensure room above bottom UI */
}

/* Hero overlay content: centered and responsive */
.hero-content {
   position: absolute;
   left: 50%;
   top: 60%;
   transform: translate(-50%, -50%);
   text-align: center;
   color: #fff;
   background: transparent; /* no opaque box */
   padding: 0; /* rely on text flow */
   max-width: 700px;
   width: calc(100% - 2rem);
   text-shadow: 0 2px 6px rgba(0,0,0,0.35);
   animation: heroFadeUp 0.6s ease-out 0.1s both;
 }
 @media (max-width: 768px) {
   .hero-content {
     top: 70%;
     max-width: 90%;
     text-shadow: 0 2px 6px rgba(0,0,0,0.35);
   }
 }
@keyframes heroFadeUp {
  0% { opacity: 0; transform: translate(-50%, -20px); }
  100% { opacity: 1; transform: translate(-50%, -50%); }
}

.header-carousel .carousel-caption h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
}

.header-carousel .carousel-caption p {
  font-size: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-carousel .carousel-inner .carousel-item {
    min-height: 90vh;
  }

  .header-carousel .carousel-caption h1 {
    font-size: 1.8rem !important;
    line-height: 1.3;
  }

  .header-carousel .carousel-caption p {
    font-size: 1rem !important;
  }
}

/* Mobile sticky hero behavior */
@media (max-width: 768px) {
  .mobile-sticky-hero .hero-sticky {
    background-position: center 10%;
    background-size: cover;
    background-attachment: scroll; /* disable parallax on mobile */
    min-height: 90vh;
  }
  .mobile-sticky-hero .hero-sticky img { display: none !important; }
  .mobile-sticky-hero .carousel-caption { background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)); }
  .wave-divider { width: 100%; height: 60px; overflow: hidden; }
  .wave-divider svg { display: block; width: 100%; height: 100%; }
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

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

.btn-dark {
  background-color: var(--dark);
  border-color: var(--dark);
}

.btn-dark:hover {
  background-color: var(--accent2);
  border-color: var(--accent2);
}

/* CTA Button */
.btn-cta {
  background-color: #FF6B35;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem; /* 12px 24px */
  font-weight: 600;
  font-size: 1rem;
  min-height: 44px; /* accessibility tap target */
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
  background-color: #ff7f50;
}
.btn-cta:focus-visible {
  outline: 2px solid rgba(255,255,255,0.8);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

body {
  font-family: var(--font-body);
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

footer h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

footer p, footer li {
  color: #bdc3c7;
  line-height: 1.6;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 1rem;
  text-align: center;
  color: #95a5a6;
}

@media (max-width: 768px) {
  footer .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer { background: #0b1324; color: #e5e7eb; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 40px 0; }
.footer a { color: #ffffff; text-decoration: none; }
.footer a:hover { color: #f3f4f6; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.copyright { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; text-align: center; font-size: .95rem; color: #cbd5e1; }

/* Navigation — fixed header and clean responsive behavior */
.nav-item.nav-link {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 9999 !important;
}

/* Ensure all navigation links are clickable */
.navbar-nav a,
.navbar-nav .nav-link,
nav a[href$=".html"] {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 9999 !important;
  text-decoration: none !important;
}

/* Remove any potential overlay blocking clicks */
.navbar-nav a:before,
.navbar-nav a:after {
  display: none !important;
}

/* Fixed top header with subtle separation */
.navbar {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 10000 !important;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  min-height: var(--navbar-height);
}

/* Offset page content so it's not covered by fixed header */
body { padding-top: calc(var(--navbar-height) + 8px); }

/* Mobile dropdown overlay — hidden by default, slides down on open */
@media (max-width: 991.98px) {
  .navbar-toggler { border: 0; padding: .5rem .8rem; }
  .navbar-toggler-icon { width: 1.5em; height: 1.5em; }

  /* Mobile dropdown: full-width panel below header, white background */
  .navbar-collapse {
    position: absolute;
    top: var(--navbar-height);
    left: 0; right: 0;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 20px rgba(0,0,0,.12);
    overflow-y: auto;
    padding: 12px 16px;
    transform: translateY(-6px);
    opacity: 0;
    max-height: 0;
    transition: transform .25s ease-in-out, opacity .25s ease-in-out, max-height .25s ease-in-out;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 1045;
  }
  .navbar-collapse.show { opacity: 1; transform: translateY(0); max-height: 60vh; }
  .navbar-nav { flex-direction: column; }
  .navbar-nav .nav-link {
    color: #1f2937 !important;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 14px 8px; /* ~44px tap area with line-height */
    border-bottom: 1px solid rgba(0,0,0,.08);
  }
  .navbar-nav .nav-link:last-child { border-bottom: 0; }
}
/* Desktop retains standard layout */
@media (min-width: 992px) {
  .navbar-collapse { position: static; max-height: none; transform: none; opacity: 1; background: transparent; box-shadow: none; padding: 0; }
  .navbar-nav .nav-link { color: #e91e63 !important; border-bottom: 0; font-size: 1rem; }
}

/* Responsive */
@media (max-width: 1024px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-list { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 640px) {
  .nav ul { gap: 12px; }
  .section { padding: 60px 0; }
  .program-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { min-height: 64vh; }
  .hero h1 { font-size: 1.8rem; }
}
/* Wave Section */
.wave-section {
  position: relative;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('../img/gallery2.jpg') center/cover no-repeat;
}
.wave-section::before,
.wave-section::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  background: radial-gradient(circle at 20% 0, rgba(255,255,255,0.9), rgba(255,255,255,0.9) 35%, transparent 36%),
              radial-gradient(circle at 60% 0, rgba(255,255,255,0.9), rgba(255,255,255,0.9) 35%, transparent 36%),
              radial-gradient(circle at 100% 0, rgba(255,255,255,0.9), rgba(255,255,255,0.9) 35%, transparent 36%);
}
.wave-section::before { top: -40px; }
.wave-section::after { bottom: -40px; transform: rotate(180deg); }
}

/* Family Portal dropdown (desktop) */
.dropdown-menu-portal {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 8px;
  min-width: 240px;
}
.dropdown-menu-portal .dropdown-item {
  color: #1f2937;
  padding: 10px 12px;
  border-radius: 6px;
}
.dropdown-menu-portal .dropdown-item:hover {
  background: rgba(0,0,0,.05);
}

/* Mobile menu subheading/divider styles */
.menu-section-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.95rem;
  opacity: 0.8;
  padding: 12px 8px 6px;
}
.menu-divider { border-top: 1px solid rgba(0,0,0,.08); margin: 8px 0; }
.form-status {
  font-weight: 700;
  margin-top: 0.5rem;
  min-height: 1.25rem; /* reserve space to avoid layout shift */
}
}