/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --primary:        #2c8a4a;
  --primary-dark:   #1e6b37;
  --primary-light:  #e8f5ed;
  --whatsapp:       #25d366;
  --whatsapp-dark:  #1da851;
  --text:           #1a1a1a;
  --text-muted:     #6c757d;
  --border:         #e2e8e4;
  --bg-light:       #f8f9fa;
  --card-shadow:    0 4px 15px rgba(0,0,0,0.07);
  --card-hover:     0 10px 30px rgba(0,0,0,0.13);
  --transition:     0.3s ease;
  --radius:         12px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  padding-top: 62px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.section-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text);
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 0.4rem auto 0;
  border-radius: 2px;
}

/* ========================================
   NAVBAR
   ======================================== */
#mainNav {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 0.55rem 0;
  transition: box-shadow var(--transition), background var(--transition);
}

#mainNav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.13);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary) !important;
  letter-spacing: -0.3px;
}

.navbar-brand i {
  color: var(--primary);
}

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text) !important;
  padding: 0.5rem 1rem;
  transition: color var(--transition);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  min-height: 100vh;
  background: url('./images/rice2.jpg') center center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.40) 100%);
}

.hero-section .container {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 2rem 1.25rem;
}

.hero-title {
  font-size: clamp(1.7rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  margin-bottom: 2rem;
  opacity: 0.92;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-cta .btn {
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  min-height: 50px;
  min-width: 150px;
}

/* ========================================
   FEATURES STRIP
   ======================================== */
.features-strip {
  background: var(--primary-light);
  border-bottom: 1px solid #cce8d6;
}

.feature-item {
  padding: 0.5rem 0.25rem;
}

.feature-icon {
  font-size: 1.6rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.35rem;
}

.feature-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-section {
  background: #f5f7f5;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--card-shadow);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover);
}

.product-img-wrap {
  position: relative;
  background: #fff;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.badge-oos {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #dc3545;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.badge-discount {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 50px;
  letter-spacing: 0.4px;
}

.card-body {
  padding: 0.75rem;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--text);
  line-height: 1.35;
}

.product-size {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.82rem;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.original-price {
  text-decoration: line-through;
  color: #b0b0b0;
  font-size: 0.78rem;
}

.discounted-price {
  color: #e74c3c;
  font-weight: 700;
  font-size: 1rem;
}

.unavailable-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.enquire-price {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 500;
  font-style: italic;
}

/* Order & Notify Buttons */
.btn-order,
.btn-notify {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.5rem 0.6rem;
  min-height: 44px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), color var(--transition);
  border: none;
  width: 100%;
}

.btn-order {
  background: var(--whatsapp);
  color: #fff;
}

.btn-order:hover,
.btn-order:focus {
  background: var(--whatsapp-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-notify {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-notify:hover,
.btn-notify:focus {
  background: var(--bg-light);
  color: var(--text);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
  background: #fff;
}

.about-text {
  font-size: 1rem;
  max-width: 720px;
  margin: 0 auto;
  color: #444;
  line-height: 1.85;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem 0.75rem;
  background: var(--primary-light);
  border-radius: var(--radius);
  border: 1px solid #cce8d6;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.3rem;
  text-align: center;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
  background: var(--bg-light);
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover);
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.contact-card address {
  font-size: 0.92rem;
  color: #555;
  font-style: normal;
  line-height: 1.9;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.3rem 0;
  transition: color var(--transition);
}

.contact-links a:hover {
  color: var(--primary-dark);
}

.business-hours li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: #555;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.business-hours li:last-child {
  border-bottom: none;
  justify-content: center;
}

/* Contact Form */
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

.contact-form-wrap h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.form-label {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-control {
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  min-height: 48px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(44, 138, 74, 0.18);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ========================================
   GLOBAL BUTTONS
   ======================================== */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

.btn-outline-light:hover {
  color: var(--primary) !important;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: #111;
  color: #ddd;
}

footer h5 {
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #888;
}

.footer-copy {
  font-size: 0.8rem;
  color: #666;
}

.social-icons {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 1.05rem;
  color: #bbb;
  border-radius: 50%;
  border: 1px solid #333;
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}

.social-icons a:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.12);
}

/* ========================================
   WHATSAPP FLOAT BUTTON
   ======================================== */
.whatsapp_float {
  position: fixed;
  bottom: 22px;
  right: 18px;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  z-index: 1050;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.whatsapp_float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  color: #fff;
}

/* ========================================
   RESPONSIVE — xs (< 576px)
   ======================================== */
@media (max-width: 575px) {
  body { padding-top: 56px; }

  .hero-title { font-size: 1.55rem; }
  .hero-subtitle { font-size: 0.92rem; margin-bottom: 1.5rem; }

  .hero-cta .btn {
    min-width: 140px;
    font-size: 0.92rem;
    padding: 0.65rem 1.5rem;
  }

  .feature-icon { font-size: 1.3rem; }
  .feature-label { font-size: 0.7rem; }

  .card-body { padding: 0.6rem; }
  .card-title { font-size: 0.8rem; }
  .product-size { font-size: 0.72rem; }
  .discounted-price { font-size: 0.92rem; }

  .btn-order,
  .btn-notify { font-size: 0.75rem; padding: 0.42rem 0.4rem; }

  .contact-form-wrap { padding: 1.25rem !important; }
  .stat-num { font-size: 1.5rem; }
  .section-title { font-size: 1.3rem; }

  .whatsapp_float { bottom: 14px; right: 14px; width: 50px; height: 50px; font-size: 24px; }
}

/* ========================================
   RESPONSIVE — sm (576px – 767px)
   ======================================== */
@media (min-width: 576px) and (max-width: 767px) {
  .card-title { font-size: 0.92rem; }
  .feature-icon { font-size: 1.6rem; }
  .feature-label { font-size: 0.8rem; }
}

/* ========================================
   RESPONSIVE — md+ (768px+)
   ======================================== */
@media (min-width: 768px) {
  .feature-icon { font-size: 2rem; }
  .feature-label { font-size: 0.95rem; }

  .card-body { padding: 1rem; }
  .card-title { font-size: 1.05rem; }
  .discounted-price { font-size: 1.1rem; }

  .btn-order,
  .btn-notify { font-size: 0.88rem; }

  .social-icons { justify-content: flex-end; }
  .stat-num { font-size: 2rem; }
}

/* ========================================
   RESPONSIVE — lg+ (992px+)
   ======================================== */
@media (min-width: 992px) {
  .hero-title { font-size: 3.2rem; }
  .hero-subtitle { font-size: 1.25rem; }
  .about-text { font-size: 1.05rem; }
}
