/* ROOT COLORS */
:root {
  --primary: hsl(142, 71%, 45%);
  --secondary: hsl(45, 93%, 54%);
  --muted: hsl(220, 9%, 46%);
  --light-bg: hsl(140, 25%, 96%);
  --gradient: linear-gradient(135deg, hsl(142, 71%, 45%), hsl(45, 93%, 54%));
  --card-bg: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 20px;
  --transition: 0.35s ease;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.7;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  z-index: 100;
}

.header-container {
  max-width: 1300px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 55px;
}

.nav-buttons a {
  margin-left: 20px;
  text-decoration: none;
  font-size: 16px;
  color: #606060;
  font-weight: 500;
  transition: var(--transition);
}

.nav-buttons a:hover,
.nav-buttons .active {
  color: var(--primary);
  font-weight: 600;
}

/* HERO SECTION */
.hero-section {
  padding: 140px 0 80px;
}

.colorful-hero {
  background: hsl(142, 71%, 40%);
  color: #fff;
  border-radius: 0 0 40px 40px;
  padding: 160px 0 100px;
}

.hero-inner {
  text-align: center;
}

.hero-inner h1 {
  font-size: 42px;
  font-weight: 800;
}

.hero-inner p {
  font-size: 18px;
  margin-top: 10px;
}

/* HERO IMAGES */
.hero-images {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.hero-images img {
  width: 250px;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.hero-images img:hover {
  transform: scale(1.08);
}

/* SECTION HEADINGS */
section h2 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 5px;
}

section h3 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 40px;
  font-size: 20px;
}

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.service-card i {
  font-size: 38px;
  color: var(--primary);
  margin-bottom: 15px;
}

.service-card h4 {
  margin: 10px 0;
  font-size: 20px;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* COLORFUL SECTION */
.colorful-bg {
  background: var(--light-bg);
  padding: 80px 20px;
  border-radius: 40px;
}

/* WELLBEING */
.closing-line {
  margin-top: 40px;
  font-weight: 600;
  text-align: center;
  color: var(--secondary);
  font-size: 18px;
}

/* COMMUNITY SECTION */
.community-section {
  padding: 80px 0;
}

.community-section p {
  max-width: 900px;
  margin: 20px auto;
  text-align: center;
  font-size: 17px;
}
.bottom-text {
  text-align: center;
  margin-top: 40px;
  font-size: 18px;
  font-weight: 600;
 color: var(--secondary);
}
/* Footer Section */
.footer {
  background: hsl(220, 14%, 95%);
  padding: 40px 20px 30px; /* reduced top/bottom padding */
  color: hsl(220, 14%, 28%);
  font-size: 16px;
}

.footer-container {
  max-width: 900px; /* reduced container width */
  margin: auto;
}

.footer h3 {
  font-size: 22px; /* smaller heading */
  font-weight: 700;
  margin-bottom: 25px; /* reduced space below heading */
}

/* Logo + Title Layout */
.footer-logo-box {
  display: flex;
  align-items: center;
  gap: 12px; /* smaller gap */
  margin-bottom: 30px; /* reduced space below */
}

.footer-logo {
  width: 40px; /* smaller logo */
  height: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px; /* slightly smaller gap between columns */
  margin-bottom: 30px; /* reduced bottom margin */
}

.footer-column h4 {
  font-size: 18px; /* slightly smaller */
  font-weight: 600;
  margin-bottom: 12px;
}

/* Links styling */
.footer-column a {
  display: block;
  text-decoration: none;
  color: hsl(220, 14%, 28%);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--primary);
}

/* Plain text styling */
.footer-column p {
  display: block;
  font-size: 16px; /* match link size */
  color: hsl(220, 14%, 28%);
  margin-bottom: 10px;
}

/* Footer copyright */
.footer-copy {
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
}

/* Social icons in one line */
.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
}

.social-icons img {
  width: 40px;
  height: 40px;
  display: block;
}
/* ================================
   RESPONSIVE DESIGN
================================ */

/* Tablets (max 1024px) */
@media (max-width: 1024px) {

  .header-container {
    padding: 12px 15px;
  }

  .nav-buttons a {
    margin-left: 12px;
    font-size: 15px;
  }

  .hero-inner h1 {
    font-size: 34px;
  }

  .hero-images img {
    width: 200px;
  }

  .card-grid {
    gap: 20px;
  }

  section h2 {
    font-size: 30px;
  }

  section h3 {
    font-size: 18px;
  }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {

  /* Header: stack logo + menu */
  .header-container {
    flex-direction: column;
    gap: 10px;
  }

  .logo {
    height: 50px;
  }

  .nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .nav-buttons a {
    margin-left: 0;
    font-size: 15px;
  }

  .hero-section {
    padding: 120px 0 50px;
  }

  .colorful-hero {
    padding: 140px 0 70px;
  }

  .hero-inner h1 {
    font-size: 28px;
  }

  .hero-inner p {
    font-size: 16px;
  }

  /* Hero images become smaller */
  .hero-images {
    flex-wrap: wrap;
    gap: 15px;
  }

  .hero-images img {
    width: 160px;
  }

  .card-grid {
    grid-template-columns: 1fr; /* one card per row */
    gap: 20px;
  }

  .service-card {
    padding: 22px;
  }

  section h2 {
    font-size: 28px;
  }

  section h3 {
    font-size: 17px;
  }

  .footer-container {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr; /* two columns */
    gap: 20px;
  }

  .social-icons img {
    width: 32px;
    height: 32px;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {

  .nav-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .nav-buttons a {
    font-size: 14px;
  }

  .hero-inner h1 {
    font-size: 24px;
  }

  .hero-images img {
    width: 130px;
  }

  .service-card h4 {
    font-size: 18px;
  }

  .footer-logo {
    width: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr; /* single column */
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer h3 {
    text-align: center;
  }
}
