/* ───────────────────────────────────────────────────────────
   public_html/form/landing.css
   Landing‐page CSS with:
   - Reduced hero height
   - Sticky footer
   - No underline on buttons
   - Responsive design
────────────────────────────────────────────────────────── */

/* 1) Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #f5f5f5;
  color: #222;
  overflow-x: hidden;
}

/* 2) Flex container to push footer to bottom */
body {
  display: flex;
  flex-direction: column;
}

/* 3) HERO SECTION */
.hero {
  position: relative;
  width: 100%;
  height: 45vh;            /* reduced from 60vh */
  min-height: 300px;       /* reduced from 400px */
  background: linear-gradient(
      to bottom right,
      rgba(11, 30, 12, 0.85),
      rgba(11, 30, 12, 0.65)
    ),
    url('data:image/svg+xml,\
<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"><rect width="1" height="1" fill="%230b1e0c"/></svg>')
      center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;           /* Prevent shrinking */
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 30, 12, 0.4);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 700px;
  padding: 0 20px;
  animation: fadeDown 1s ease-out forwards;
}

.hero-logo {
  height: 48px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* 4) MAIN SECTIONS */
main.sections {
  flex: 1;                  /* Grow to fill available space */
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 60px auto;
  gap: 40px;
  padding: 0 20px;
}

.section-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 360px;
  padding: 28px 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-card h2 {
  font-size: 1.6rem;
  color: #0b1e0c;
  margin-bottom: 12px;
}

.section-card p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Neon‐green button with no underline */
.section-card .btn {
  display: inline-block;
  padding: 12px 32px;
  background-color: #acff03;
  color: #0b1e0c;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s;
  text-decoration: none;     /* Remove underline */
}

.section-card .btn:hover {
  background-color: #98e603;
  transform: scale(1.05);
  text-decoration: none;     /* Ensure no underline on hover */
}

/* 5) FOOTER (sticky) */
.page-footer {
  background-color: #0b1e0c; /* dark green */
  color: #fff;
  text-align: center;
  padding: 18px 20px;
  font-size: 0.9rem;
  margin-top: auto;         /* Push footer to bottom */
}

/* 6) ANIMATIONS */
@keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 7) RESPONSIVE BREAKPOINTS */
@media (max-width: 1000px) {
  main.sections {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section-card {
    max-width: 100%;
    width: calc(100% - 40px);
  }
}

/* MOBILE SPECIFIC */
@media (max-width: 480px) {
  .hero {
    height: 40vh;        /* reduced from 50vh */
    min-height: 250px;   /* reduced from 300px */
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .section-card {
    margin: 0 auto;
    transform: translateY(40px);
  }
  .page-footer {
    font-size: 0.85rem;
    padding: 16px 12px;
  }
}
