:root {
  --kindcare-header-bg: #ffffff;
  --kindcare-button-bg: #ff0000;
  --kindcare-accent: #1911b4;
  --kindcare-light: #ffffff;
  --kindcare-text-dark: #1911b4;
  --kindcare-text-light: #ffffff;
  --kindcare-nav-text: #0086c4;
  --kindcare-button-text: #ffffff;
  --kindcare-footer-bg: #0086c4;
  --kindcare-footer-text: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  background-color: var(--kindcare-light);
  color: var(--kindcare-text-dark);
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: var(--kindcare-header-bg);
  position: fixed;
  width: 100%;
  z-index: 1000;
  height: 70px;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-right {
  gap: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 5px 0;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin: 0 20px;
}

nav ul li a {
  color: var(--kindcare-nav-text);
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--kindcare-accent);
}

.hamburger {
  display: none;
  font-size: 30px;
  color: var(--kindcare-nav-text);
  cursor: pointer;
  user-select: none;
}

section {
  padding: 100px 5%;
  text-align: center;
  background-color: var(--kindcare-light);
  scroll-margin-top: 80px;
}

section#home {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('KCfiles/KCpcBG.png') no-repeat center center;
  background-size: cover;
}

h2 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  margin: 0 0 20px 0; /* 👈 No top margin, 20px bottom only */
}

.subheading {
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 500;
  color: var(--kindcare-text-dark);
  margin: 0 auto 30px auto; /* 👈 No top margin, centered */
  max-width: 800px;
  line-height: 1.6;
}


.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

button {
  font-size: clamp(14px, 2vw, 17px);
  font-weight: bold;
  border: none;
  border-radius: 0.75em;
  background: var(--kindcare-button-bg);
  color: var(--kindcare-button-text);
  padding: 0.75em 1.5em;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: var(--kindcare-accent);
}

footer {
  text-align: center;
  padding: 20px;
  background: var(--kindcare-footer-bg);
  color: var(--kindcare-footer-text);
  font-size: 16px;
  line-height: 1.5;
  margin-top: 60px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .header-right {
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
  }

  .hamburger {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--kindcare-header-bg);
    position: absolute;
    top: 70px;
    left: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 0;
    text-align: center;
  }

  nav ul li a {
    padding: 15px 0;
    display: block;
    width: 100%;
  }

  .logo-img {
    max-height: 48px;
  }

  section#home {
    background: url('KCfiles/KCmobileBG.png') no-repeat center center;
    background-size: cover;
  }
}

/* Specialized Programs */
#special-programs {
  background-color: var(--kindcare-light);
  padding: 80px 5%;
  text-align: center;
}

.program-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.program-card {
  background-color: #f6f6f6;
  border-radius: 12px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.program-card:hover {
  transform: translateY(-5px);
}

.program-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.program-card h3 {
  font-size: 22px;
  color: var(--kindcare-accent);
  margin-bottom: 10px;
}

.program-card p {
  font-size: 16px;
  color: var(--kindcare-text-dark);
}
#aboutus {
  padding: 100px 5%;
  background-color: var(--kindcare-light);
}

.aboutus-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.aboutus-left {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.aboutus-left h2 {
  font-size: 48px;
  color: var(--kindcare-accent);
}

.aboutus-left .subheading {
  font-size: 20px;
  font-weight: 500;
  color: var(--kindcare-text-dark);
  margin-top: 20px;
}

.aboutus-right {
  flex: 2;
  min-width: 300px;
}

.about-box {
  margin-bottom: 30px;
  text-align: left;
}

.about-box h3 {
  font-size: 24px;
  color: var(--kindcare-accent);
  margin-bottom: 10px;
}

.about-box p {
  font-size: 16px;
  color: var(--kindcare-text-dark);
  line-height: 1.6;
}

.about-values {
  padding-left: 20px;
  list-style: none;
}

.about-values li {
  font-size: 16px;
  margin-bottom: 6px;
}

.about-quote {
  font-size: 18px;
  font-style: italic;
  color: var(--kindcare-accent);
  margin-top: 20px;
  text-align: left;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .aboutus-container {
    flex-direction: column;
  }

  .aboutus-left, .aboutus-right {
    max-width: 100%;
  }

  .about-box, .about-quote {
    text-align: center;
  }

  .aboutus-left h2 {
    text-align: center;
  }
}
/* About Section Responsive Columns */
.about-flex {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 40px;
}

.about-left {
  flex: 1;
  min-width: 280px;
  max-width: 40%;
  text-align: left;
}

.about-right {
  flex: 1;
  min-width: 280px;
  max-width: 55%;
  text-align: left;
}

#aboutus h2 {
  font-size: clamp(40px, 6vw, 80px);
  color: var(--kindcare-accent);
}

#aboutus .subheading {
  font-size: 18px;
  margin-top: 10px;
  color: var(--kindcare-text-dark);
}

.about-right h3 {
  font-size: 20px;
  margin-top: 10px;
  color: var(--kindcare-accent);
}

.about-right p, .about-right em {
  font-size: 16px;
  color: var(--kindcare-text-dark);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
    text-align: center;
  }

  .about-left, .about-right {
    max-width: 100%;
    text-align: center;
  }

  .about-right p, .about-right em, .about-right h3 {
    text-align: center;
  }
}
#home .subheading {
  font-size: clamp(16px, 2.5vw, 28px); /* Adjust max value if needed */
  font-weight: 500;
  color: var(--kindcare-text-dark);
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
@media (max-width: 768px) {
  section {
    padding: 60px 5%; /* reduce padding top and bottom */
  }

  h2 {
    margin: 0 0 15px 0; /* smaller bottom margin */
  }

  .subheading {
    margin: 0 auto 20px auto; /* tighter bottom margin */
  }

  .program-card {
    margin-bottom: 30px; /* if cards stack, keep consistent spacing */
  }

  #WhyKindCare ul {
    margin-top: 10px;
    margin-bottom: 0;
  }

  .about-right em {
    display: block;
    margin-top: 15px;
  }

  #special-programs,
  #services,
  #WhyKindCare,
  #market,
  #contactus {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}
.about-left .subheading {
  font-size: clamp(18px, 2.5vw, 22px); /* Increase upper limit */
  font-weight: 500;
  margin-top: 10px;
}
.about-right h3 {
  font-size: clamp(20px, 3vw, 26px); /* Larger and responsive */
  margin-top: 10px;
}

.about-right p {
  font-size: clamp(16px, 2vw, 20px); /* Slightly bigger for readability */
}
.about-right em {
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  color: var(--kindcare-accent);
  display: block;
  margin-top: 15px;
}
@media (min-width: 769px) {
  .program-card {
    width: 420px;         /* even wider */
    padding: 40px 30px;   /* more spacious */
  }

  .program-card h3 {
    font-size: 26px;      /* bolder section titles */
  }

  .program-card p {
    font-size: 20px;      /* easy-to-read paragraph size */
    line-height: 1.8;
  }
}
.program-cards {
  align-items: stretch;
}
.program-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
  padding: 0 10px;
}

.service-item {
  background-color: #f9f9f9;
  border-radius: 16px;
  padding: 25px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.service-item:hover {
  transform: translateY(-4px);
}

.service-item h3 {
  font-size: 22px;
  color: var(--kindcare-accent);
  margin-bottom: 10px;
}

.service-item p {
  font-size: 16px;
  color: var(--kindcare-text-dark);
  line-height: 1.5;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
  padding: 0 10px;
}

.service-card {
  background-color: #f9f9f9;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.service-card .icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 22px;
  color: var(--kindcare-accent);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 16px;
  color: var(--kindcare-text-dark);
  line-height: 1.6;
}
.services-grid.narrow {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 720px;
  margin: 40px auto 0 auto; /* centers the grid */
}
.program-card:hover {
  transform: translateY(-5px);
}
.why-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
  padding: 0 10px;
}

.why-card {
  background-color: #f9f9f9;
  border-radius: 16px;
  padding: 30px 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.why-card:hover {
  transform: translateY(-4px);
}

.why-card h3 {
  font-size: 20px;
  color: var(--kindcare-accent);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 18px;
  color: var(--kindcare-text-dark);
  line-height: 1.6;
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
  padding: 0 10px;
}

.market-card {
  background-color: #f6f6f6;
  border-radius: 16px;
  padding: 30px 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.market-card:hover {
  transform: translateY(-4px);
}

.market-card h3 {
  font-size: 20px;
  color: var(--kindcare-accent);
  margin-bottom: 10px;
}

.market-card p {
  font-size: 18px;
  color: var(--kindcare-text-dark);
  line-height: 1.6;
}
.market-timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
  padding: 0 5%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.market-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.market-icon {
  font-size: 36px;
  flex-shrink: 0;
  color: var(--kindcare-accent);
}

.market-text h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--kindcare-accent);
}

.market-text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--kindcare-text-dark);
}

/* Responsive: Stack items on small screens */
@media (max-width: 768px) {
  .market-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .market-text {
    text-align: center;
  }
}
.market-timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
  padding: 0 5%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.market-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.market-icon {
  font-size: 36px;
  flex-shrink: 0;
  color: var(--kindcare-accent);
}

.market-text h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--kindcare-accent);
}

.market-text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--kindcare-text-dark);
}

/* Responsive: Stack items on small screens */
@media (max-width: 768px) {
  .market-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .market-text {
    text-align: center;
  }
}
.contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.contact-info, .contact-message {
  flex: 1;
  min-width: 280px;
}

.contact-info p {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--kindcare-text-dark);
}

.contact-info a {
  color: var(--kindcare-accent);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-message {
  font-size: 18px;
  color: var(--kindcare-text-dark);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .contact-info, .contact-message {
    text-align: center;
  }
}
footer small {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #aaa; /* subtle gray */
}
