/* ================= RESET & BASE ================= */

* {
  box-sizing: border-box;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: 80px;
  overflow-x: hidden;
  position: relative;
  background: linear-gradient(to right, #f36804, #f3f2f0);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

/* ================= FAINT TOMATO BACKGROUND ================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("Sakana-tomatoe-havester.png") center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* Ensure content above background */
header,
main,
section,
footer {
  position: relative;
  z-index: 1;
}

/* ================= NAVIGATION ================= */

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 12px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
}

.main-nav a {
  text-decoration: none;
  color: #000;
  font-weight: 800;
}

.main-nav a:hover {
  color: #552401;
}

/* Offset for anchor scroll */
section {
  scroll-margin-top: 90px;
}

/* ================= HERO ================= */

.hero-overlay {
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  text-align: center;
  flex-wrap: wrap;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.3;
}

/* Logos */
.hero-logo,
.left-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  animation: slowSpin 20s linear infinite;
}

.left-logo {
  position: absolute;
  left: 40px;
  top: 10%;
  transform: translateY(-50%);
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Mobile hero fix */
@media (max-width: 768px) {
  .left-logo {
    position: static;
    transform: none;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}

/* ================= BANNER ================= */

.banner {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= FEATURES ================= */

.features {
  margin-top: 120px;
}

.feature-box {
  background: #f5f4f4;
  border-radius: 20px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-box-middle {
  padding: 30px;
  text-align: center;
  font-weight: 500;
}

/* ================= INFO BOXES ================= */

.info-box {
  background: rgba(241, 159, 6, 0.15);
  border-radius: 10px;
  padding: 25px 15px;
  height: 100%;
  color: #000;
  box-shadow: 0 8px 20px rgba(99, 63, 2, 0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* ✅ REQUIRED FOR BUTTON ALIGNMENT */
  display: flex;
  flex-direction: column;
}

.info-box p {
  flex-grow: 1; /* pushes button downward */
}

.info-box a.btn {
  margin-top: auto; /* locks button to bottom */
}

.info-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(248, 159, 5, 0.9);
}


/* ================= BACKGROUND SECTIONS ================= */

.bg-image-section,
.shop-category {
  background:
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)),
    url("Sakana-tomatoe-havester.png") center / cover no-repeat;
}

/* ================= SHOP PRODUCTS ================= */

.card,
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-img-top,
.product-card img {
  height: 180px;
  object-fit: contain;
  margin-bottom: 10px;
}

.card-body,
.product-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body button,
.product-card-body button {
  margin-top: auto;
}

/* ================= CATEGORY ================= */

.category-card {
  background: linear-gradient(135deg, #f36804, #f3b40a);
  border-radius: 18px;
  padding: 35px 20px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.category-card img {
  height: 180px;
  object-fit: cover;
}

/* ================= BUTTONS ================= */

.custom-shop-btn,
.payment-btn,
.payment-advisory-btn {
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
}

.custom-shop-btn {
  padding: 14px 40px;
  background: orange;
  animation: shopBlink 2s infinite;
}

@keyframes shopBlink {
  0%, 100% {
    background: orange;
    color: black;
  }
  50% {
    background: linear-gradient(135deg, #a82c07, #5a2a0a);
    color: white;
  }
}

/* ================= PAYMENT & FAQ SECTION ================= */

/* Payment container */
.payment-box {
  background: linear-gradient(135deg, #f36804, #f3b40a);
  color: #ffffff;
  padding: 40px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

/* FAQ grid */
.faq-grid,
.payment-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Individual FAQ cards */
.faq-item,
.payment-card {
  background: #ffffff;
  color: #3b1a05;
  border-radius: 20px;
  padding: 24px 22px;
  min-height: 100px;            /* ✅ increased height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  opacity: 1;
}

/* FAQ question text */
.faq-item h5,
.payment-card h5 {
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1;
}

/* FAQ answer text */
.faq-item p,
.payment-card p {
  flex-grow: 1;                 /* ✅ ensures content fits */
  line-height: 1.6;
  margin-bottom: 0;
}

/* ================= SEE MORE FAQ (BOOTSTRAP SAFE) ================= */

/* Scope strictly to FAQ section */
.faq-section .accordion-item {
  background: #ffffff;
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* Button styling */
.faq-section .accordion-button {
  background: #212529;
  color: #ffffff;
  font-weight: 700;
  border-radius: 12px;
}

/* Open state */
.faq-section .accordion-button:not(.collapsed) {
  background: #000000;
  color: #ffffff;
  box-shadow: none;
}

/* Remove Bootstrap arrow distortion */
.faq-section .accordion-button::after {
  filter: brightness(0) invert(1);
}

/* Accordion body spacing */
.faq-section .accordion-body {
  padding: 18px 20px;
  line-height: 1.6;
}

.faq-toggle:hover {
  background: #000000;
  transform: translateY(-2px);
}


.faq-toggle:hover,
.see-more-faq:hover {
  background: #793e08;
  transform: translateY(-2px);
  color: white;
}

/* Mobile safety */
@media (max-width: 768px) {
  .faq-item,
  .payment-card {
    min-height: auto;           /* allow natural expansion on mobile */
  }

  .payment-box {
    padding: 10px 15px;
  }
}


/* ================= URBAN SMART FARMS ================= */

.smart-farm-images {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.smart-farm-images img {
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
}

.smart-farm-cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.smart-farm-card {
  flex: 1 1 calc(33.333% - 1.5rem);
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
}

@media (max-width: 768px) {
  .smart-farm-card {
    flex: 1 1 100%;
  }
}

/* ================= FOOTER ================= */

.sf-footer {
  background: #1b0c03;
  padding: 40px 20px 25px;
  text-align: center;
}

.sf-footer-icons {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 18px;
}

.sf-footer-icons a {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff8c00, #b34700);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sf-footer-copy {
  color: #f1c27d;
  font-size: 14px;
}

/* FLEX WRAPPER */
.image-flex-wrapper {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* IMAGE CARD */
.image-card {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* IMAGE CONTROL */
.image-card img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

@media print {

  /* Remove navigation */
  nav,
  .main-nav,
  .main-nav * {
    display: none !important;
  }

  /* Remove backgrounds */
  body {
    background: white !important;
    padding-top: 0 !important;
  }

  body::before {
    display: none !important;
  }

  /* Lock invoice logo size */
  .invoice-logo {
    max-width: 100px !important;
  }

  /* 🔥 HIDE BUTTONS */
  .btn,
  button,
  a.btn {
    display: none !important;
  }

  table {
    page-break-inside: auto;
  }

  tr {
    page-break-inside: avoid;
  }
}

