/* ============================================================
   LEAFORAA — style.css
   Mobile-first, fully responsive — consistent section spacing
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  --green-dark:    #17351f;
  --green-mid:     #a7c92f;
  --green-light:   #b7d93d;
  --green-pale:    #c9d58a;
  --green-muted:   #9cad43;
  --bg-cream:      #f7f6ef;
  --bg-card:       #fbfaf4;
  --text-dark:     #1d2b1f;
  --text-body:     #555;
  --text-muted:    #666;
  --border-light:  #e5e5e5;
  --border-card:   #f1eee3;
  --shadow-sm:     0 4px 16px rgba(0,0,0,0.06);
  --shadow-md:     0 8px 28px rgba(0,0,0,0.10);
  --radius-sm:     14px;
  --radius-md:     24px;
  --radius-lg:     35px;
  --radius-pill:   60px;
  --transition:    0.28s ease;

  /* ── Single source of truth for section spacing ── */
  --section-pad-y: clamp(60px, 8vw, 90px);
  --section-pad-x: clamp(20px, 6%, 120px);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-cream);
  color: var(--text-dark);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

img {
  width: 100%;
  display: block;
  max-width: 100%;
}

a { color: inherit; }

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--section-pad-x);
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: rgba(247, 246, 239, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  padding: 14px var(--section-pad-x);
}

.logo img {
  width: clamp(130px, 20vw, 200px);
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--green-dark);
  font-weight: 500;
  font-size: clamp(13px, 1.2vw, 15px);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover { color: var(--green-mid); }

.nav-cta {
  background: var(--green-light);
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: clamp(12px, 1.1vw, 15px);
  text-decoration: none;
  color: var(--green-dark);
  transition: transform var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--green-mid);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--green-dark);
  border-radius: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(110px, 16vw, 160px) var(--section-pad-x) var(--section-pad-y);
  background-image: url("assets/hero-plant.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
@media (max-width: 768px) {

  .hero {
    background-image: url("assets/hero-mobile.png");
    background-size: cover;
    background-position: center top;

    min-height: auto;
    padding-top: 100px;
    padding-bottom: 40px;
  }

}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(247, 246, 239, 0.88) 0%,
    rgba(247, 246, 239, 0.55) 55%,
    transparent 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  width: 100%;
}

.hero-eyebrow {
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 600;
  color: var(--green-muted);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.hero-content h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.1;
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content h1 span {
  display: block;
  color: var(--green-mid);
}

.hero-sub {
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.8;
  color: #4d4d4d;
  margin-bottom: 32px;
  max-width: 480px;
}

.email-box {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
}

.email-box input {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
  border: none;
  outline: none;
  font-size: clamp(13px, 1.4vw, 15px);
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: var(--text-dark);
}

.email-box input::placeholder { color: #aaa; }

.email-box button {
  white-space: nowrap;
  padding: 16px clamp(18px, 3vw, 28px);
  border: none;
  background: var(--green-light);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background var(--transition);
  color: var(--green-dark);
}

.email-box button:hover { background: var(--green-mid); }

.success-msg {
  display: none;
  color: #2f7d32;
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.about-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(30px, 5vw, 60px);
  padding: var(--section-pad-y) var(--section-pad-x);
  background: var(--bg-cream);
}

.about-content {
  flex: 1;
  max-width: 520px;
}

.about-small-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-muted);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.about-content h2 {
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.08;
  margin-bottom: 22px;
  color: var(--green-dark);
  font-weight: 700;
}

.about-content h2 span {
  display: block;
  color: var(--green-mid);
}

.about-description {
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 26px;
}

.about-tagline {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600;
  color: var(--green-dark);
}

.about-image-container {
  flex: 1.3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-image-container img {
  width: 100%;
  height: 100%;
  min-height: clamp(280px, 34vw, 400px);
  object-fit: cover;
  object-position: 20% center;
  display: block;
  transition: transform 0.5s ease;
}

.about-image-container:hover img { transform: scale(1.02); }

/* ============================================================
   PRODUCTS SECTION
============================================================ */
.products-section {
  padding: var(--section-pad-y) var(--section-pad-x);
  background: #f5f4ee;
}

.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.section-header h2 {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.section-header p {
  max-width: 550px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.6;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
}

.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease;
}
.product-card:hover img { transform: scale(1.02); }

.card-content {
  padding: 14px 16px 18px;
  text-align: center;
}

.card-content h3 {
  color: var(--green-dark);
  font-size: clamp(15px, 1.5vw, 18px);
  margin-bottom: 6px;
  font-weight: 600;
}

.card-content p {
  color: var(--text-muted);
  font-size: clamp(13px, 1.2vw, 14px);
  line-height: 1.4;
  margin: 0;
}

/* ============================================================
   GALLERY SECTION
============================================================ */
.gallery-section {
  padding: var(--section-pad-y) var(--section-pad-x);
  text-align: center;
  background: var(--bg-cream);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: clamp(32px, 5vw, 48px);
  flex-wrap: wrap;
}

.section-title h2 {
  font-size: clamp(22px, 3.5vw, 38px);
  color: var(--green-dark);
  font-weight: 700;
  text-align: center;
}

.section-title h2 span {
  color: var(--green-muted);
  font-size: clamp(16px, 2.5vw, 26px);
  font-weight: 600;
}

.line {
  width: 70px;
  height: 2px;
  background: var(--green-pale);
  border-radius: 20px;
  flex-shrink: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1.5vw, 18px);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  object-fit: cover;
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   INSTAGRAM BANNER SECTION
============================================================ */
.instagram-banner-section {
  padding: 0 var(--section-pad-x) var(--section-pad-y);
  background: var(--bg-cream);
}

.instagram-banner-link {
  display: block;
  width: 100%;
}

.instagram-banner {
  width: 100%;
  max-width: 1400px;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.instagram-banner:hover { box-shadow: var(--shadow-md); }

/* ============================================================
   CTA SECTION
============================================================ */
.cta-section {
  padding: 0 var(--section-pad-x) var(--section-pad-y);
  background: var(--bg-cream);
}

.cta-content {
  background: #e8edd6;
  padding: clamp(44px, 6vw, 80px) clamp(24px, 6vw, 80px);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(28px, 4vw, 52px);
  margin-bottom: 16px;
  color: var(--green-dark);
  font-weight: 700;
}

.cta-content > p {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--text-body);
  margin-bottom: 10px;
}

.input-box {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius-pill);
  overflow: hidden;
  max-width: 520px;
  width: 100%;
  margin: 22px auto 0;
  box-shadow: var(--shadow-sm);
}

.input-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 18px 22px;
  font-size: clamp(13px, 1.4vw, 16px);
  font-family: 'Poppins', sans-serif;
  background: transparent;
  color: var(--text-dark);
}

.input-box input::placeholder { color: #aaa; }

.input-box button {
  border: none;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  padding: 18px clamp(22px, 4vw, 40px);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition);
}

.input-box button:hover { background: var(--green-mid); }

#success-message { margin-top: 16px; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--bg-cream);
  padding: var(--section-pad-y) var(--section-pad-x) clamp(30px, 4vw, 50px);
  border-top: 1px solid var(--border-light);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(30px, 5vw, 60px);
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-logo-section img {
  width: clamp(140px, 18vw, 220px);
  height: auto;
  margin-bottom: 12px;
  object-fit: contain;
}

.tagline {
  font-size: clamp(14px, 1.4vw, 18px);
  color: #444;
  font-weight: 500;
}

.footer-links,
.footer-social {
  display: flex;
  flex-direction: column;
  min-width: 130px;
}

.footer-links h3,
.footer-social h3 {
  margin-bottom: 16px;
  font-size: clamp(16px, 1.7vw, 20px);
  color: var(--green-dark);
}

.footer-links a {
  text-decoration: none;
  color: var(--text-body);
  margin-bottom: 9px;
  font-size: clamp(13px, 1.3vw, 15px);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--green-mid); }

.footer-social span {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: clamp(13px, 1.3vw, 15px);
}

.insta-link {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #333;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 500;
  margin-bottom: 12px;
  transition: color var(--transition);
}

.insta-link img {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  max-width: 22px;
  object-fit: contain;
  display: block;
}

.insta-link:hover { color: var(--green-muted); }

.footer-copy {
  text-align: center;
  font-size: 13px;
  color: #999;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
============================================================ */
@media (max-width: 1024px) {

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-content {
    max-width: 100%;
  }

  .about-image-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }

  .about-image-container img {
    min-height: 300px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
============================================================ */
@media (max-width: 768px) {

  :root {
    --section-pad-y: clamp(50px, 10vw, 70px);
    --section-pad-x: 5%;
  }

  /* ── Navbar ── */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background: rgba(247, 246, 239, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 999;
  }

  .nav-links.open { display: flex; }

  .nav-links li { border-bottom: 1px solid var(--border-light); }

  .nav-links a {
    display: block;
    padding: 14px 6%;
    font-size: 15px;
  }

  .hamburger { display: flex; }

  .nav-cta { display: none; }

  /* ── Hero ── */
  .hero {
    text-align: center;
    align-items: flex-start;
    justify-content: center;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-sub { text-align: center; }

  .email-box { max-width: 100%; }

  /* ── About ── */
  .about-content { text-align: center; }

  .about-image-container img {
    min-height: 260px;
    object-position: center;
  }

  /* ── Products ── */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
.product-card img {
  height: 240px;
  object-fit: cover;
  object-position: center center;
}

  .section-header { margin-bottom: 30px; }

  /* ── Gallery ── */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .section-title {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .line { width: 50px; }

  /* ── Instagram banner ── */
  .instagram-banner { border-radius: var(--radius-md); }

  /* ── CTA ── */
  .cta-content { border-radius: var(--radius-md); }

  /* ── Footer ── */
  .footer-container {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
============================================================ */
@media (max-width: 480px) {

  /* ── Hero email box: stack ── */
  .email-box {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .email-box input {
    padding: 15px 18px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
  }

  .email-box button {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 15px 18px;
    font-size: 14px;
  }

  /* ── Products: single column ── */
  .products-grid { grid-template-columns: 1fr; }

  /* ── Gallery: single column ── */
  .gallery-grid { grid-template-columns: 1fr; }

  /* ── CTA input box: stack ── */
  .input-box {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .input-box input {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 15px 18px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
  }

  .input-box button {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 15px 18px;
    font-size: 14px;
    text-align: center;
  }

  /* ── Instagram banner ── */
  .instagram-banner { border-radius: var(--radius-sm); }
}

/* ============================================================
   ACCESSIBILITY — reduced motion
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
