/* ==============================================
   GLOBAL RESET AND BASE STYLES
   ============================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: #2c3e50;
  background-color: #f9f9f9;
  line-height: 1.6;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #00a86b;
  outline: none;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ==============================================
   TYPOGRAPHY
   ============================================== */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  color: #222;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

/* ==============================================
   BUTTONS
   ============================================== */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: #00a86b;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #008f5c;
  transform: translateY(-2px);
}

.btn:focus {
  outline: 2px dashed #00a86b;
  outline-offset: 3px;
}

/* Call-to-action button (used in nav) */
.btn-cta {
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
}

/* ==============================================
   SECTION SPACING AND UTILITIES
   ============================================== */
section {
  padding: 4rem 1rem;
}

.text-center {
  text-align: center;
}

/* ==============================================
   HEADER / NAVIGATION
   ============================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 1rem;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  font-weight: 700;
}

.logo-primary {
  font-size: 1.5rem;
  color: #00a86b;
}

.logo-secondary {
  font-size: 0.8rem;
  color: #666;
}

/* Navigation */
.main-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-list li a {
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 24px;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero {
  background-color: #e9f8f1;
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeIn 1s ease-in-out;
}

.hero .container {
  max-width: 900px;
}

.hero h1 {
  margin-bottom: 1.2rem;
}

.hero p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

/* Primary Button */
.btn-primary {
  background-color: #00a86b;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
}

.btn-primary:hover {
  background-color: #008f5c;
}

/* ==============================================
   FEATURES SECTION
   ============================================== */
.features {
  background-color: #fff;
  text-align: center;
}

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

.feature-card {
  background-color: #f4f4f4;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
  animation: slideUp 0.6s ease-in-out;
}

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

.feature-card h3 {
  color: #00a86b;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: #555;
}

/* ==============================================
   ABOUT SECTION
   ============================================== */
.about {
  background-color: #f9f9f9;
  text-align: center;
}

.about p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
  color: #555;
}

/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
  background-color: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: #00a86b;
}

.site-footer a:hover {
  color: #66c2a4;
}

/* ==============================================
   MEDIA QUERIES FOR RESPONSIVENESS
   ============================================== */
@media (max-width: 1024px) {
  .container {
    padding-inline: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Responsive Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-primary {
    font-size: 0.95rem;
    padding: 0.65rem 1.2rem;
  }

  /* Navigation */
  .main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    align-items: center;
    display: none;
    gap: 1.2rem;
    padding: 1.5rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }

  .main-nav.active {
    display: flex;
  }

  .btn-cta {
    display: none; /* Optional: hide CTA on small screens */
  }

  .menu-toggle {
    display: flex;
  }
}

/* ==============================================
   ANIMATIONS
   ============================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
