/* =============================================
   TOFAN RICE — Main Stylesheet
   ============================================= */

/* === CSS VARIABLES === */
:root {
  --green-dark:   #1e5631;
  --green-main:   #2d6a4f;
  --green-mid:    #40916c;
  --green-light:  #52b788;
  --green-accent: #74c69d;
  --green-pale:   #d8f3dc;
  --lime:         #b7e4c7;
  --bg:           #f8f9f4;
  --white:        #ffffff;
  --text-dark:    #1a1a2e;
  --text-body:    #3a3a5c;
  --text-muted:   #6c757d;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.16);
  --radius:       12px;
  --radius-sm:    8px;
  --transition:   all .3s ease;
}

/* === RESET & BASE === */
html, body { overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === CONTAINER === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === SECTION === */
.section      { padding: 80px 0; }
.section-sm   { padding: 40px 0; }
.bg-light     { background: var(--green-pale); }
.text-center  { text-align: center; }
.mt-40        { margin-top: 40px; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-label  { display: inline-block; background: var(--green-pale); color: var(--green-main); font-size: .8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 4px 14px; border-radius: 50px; margin-bottom: 12px; }
.section-header h2 { font-size: 2rem; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary   { background: linear-gradient(135deg, var(--green-main), var(--green-mid)); color: var(--white); }
.btn-primary:hover { background: linear-gradient(135deg, var(--green-dark), var(--green-main)); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-wa        { background: #25d366; color: var(--white); font-size: .88rem; padding: 10px 20px; }
.btn-wa:hover  { background: #1da851; transform: translateY(-2px); }
.btn-wa-dark   { background: #25d366; color: var(--white); }
.btn-wa-dark:hover { background: #1da851; transform: translateY(-2px); }
.btn-outline-white { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-white:hover { background: var(--white); color: var(--green-main); }
.btn-full { width: 100%; justify-content: center; }

/* === TOPBAR === */
.topbar { background: var(--green-dark); color: rgba(255,255,255,.85); font-size: .8rem; padding: 6px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left, .topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar a { color: rgba(255,255,255,.85); transition: var(--transition); }
.topbar a:hover { color: var(--white); }
.topbar i { margin-right: 5px; }

/* === NAVBAR === */
.navbar-wrap {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
}
.navbar-wrap.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--green-main);
}
.navbar-logo-img { width: 38px; height: 38px; object-fit: contain; }
.footer-logo-img { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) invert(1); }
.navbar-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: .9rem; color: var(--text-dark); transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--green-main); }
.nav-link.active { border-bottom: 2px solid var(--green-main); padding-bottom: 2px; }
.btn-quote {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--green-main), var(--green-mid));
  color: var(--white) !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: .88rem;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 14px rgba(45,106,79,.3);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-quote:hover {
  background: linear-gradient(135deg, var(--green-dark), var(--green-main));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,106,79,.4);
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero-section { position: relative; }
.heroSwiper   { width: 100%; height: 600px; }
.hero-slide   { position: relative; background-size: cover; background-position: center; }
.hero-slide-1 { background-image: url('../images/hero/hero1.jpg'); }
.hero-slide-2 { background-image: url('../images/hero/hero2.jpg'); }
.hero-slide-3 { background-image: url('../images/hero/hero3.jpg'); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,86,49,.82) 0%, rgba(30,86,49,.55) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 700px; color: var(--white); }
.hero-sub-tag { font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; color: var(--green-accent); margin-bottom: 12px; font-weight: 600; }
.hero-content h1 { font-size: 3.4rem; line-height: 1.15; margin-bottom: 16px; color: var(--white); font-weight: 800; }
.hero-subtext  { font-size: 1.05rem; color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 560px; }
.hero-btns     { display: flex; gap: 16px; flex-wrap: wrap; }
.heroSwiper .swiper-button-prev,
.heroSwiper .swiper-button-next {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 6px;
  color: var(--white);
  transition: var(--transition);
}
.heroSwiper .swiper-button-prev:hover,
.heroSwiper .swiper-button-next:hover {
  background: var(--green-main);
  border-color: var(--green-main);
}
.heroSwiper .swiper-button-prev::after,
.heroSwiper .swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
}
.heroSwiper .swiper-pagination-bullet { background: rgba(255,255,255,.5); opacity: 1; }
.heroSwiper .swiper-pagination-bullet-active { background: var(--green-accent); }

/* === ICON BAR === */
.icon-bar { background: var(--green-main); padding: 24px 0; }
.icon-bar-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.icon-bar-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; color: var(--white); cursor: default; }
.icon-bar-icon { width: 52px; height: 52px; background: rgba(255,255,255,.15); border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; }
.icon-bar-item span { font-family: 'Poppins',sans-serif; font-weight: 600; font-size: .85rem; text-align: center; }

/* === TWO COL === */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.col-text h2 { font-size: 2rem; margin-bottom: 16px; }
.col-text p  { color: var(--text-body); margin-bottom: 20px; }

/* USP list */
.usp-list { margin: 8px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.usp-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.usp-list i   { color: var(--green-main); font-size: 1.1rem; }

/* === PRODUCTS GRID === */
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.product-card  { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-img   { position: relative; height: 220px; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.cat-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--green-main); color: var(--white);
  font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 50px;
}
.product-body   { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1rem; margin-bottom: 8px; }
.product-body p  { font-size: .88rem; color: var(--text-muted); margin-bottom: 14px; flex: 1; }
.tag-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag-pill  { background: var(--green-pale); color: var(--green-main); font-size: .72rem; padding: 3px 10px; border-radius: 50px; font-weight: 500; }
.product-body .btn-wa { width: 100%; justify-content: center; margin-top: auto; }

/* === WHY US === */
.why-us     { background: var(--green-pale); }
.why-grid   { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.why-card   { background: var(--white); padding: 36px 24px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); border-bottom: 3px solid transparent; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-bottom-color: var(--green-main); }
.why-icon   { width: 72px; height: 72px; background: linear-gradient(135deg, var(--green-main), var(--green-mid)); border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; color: var(--white); margin: 0 auto 20px; box-shadow: 0 4px 16px rgba(45,106,79,.3); }
.why-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.why-card p  { font-size: .87rem; color: var(--text-muted); }

/* === STATS === */
.stats-section { background: linear-gradient(135deg, var(--green-dark), var(--green-main)); padding: 60px 0; color: var(--white); }
.stats-grid    { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-item     { padding: 24px 0; }
.stat-num      { font-family: 'Poppins',sans-serif; font-size: 3rem; font-weight: 800; line-height: 1; }
.stat-suffix   { font-size: 2rem; font-weight: 700; display: inline; color: var(--green-accent); }
.stat-label    { margin-top: 8px; font-size: .9rem; color: rgba(255,255,255,.8); }

/* === TESTIMONIALS === */
.testimonialSwiper { padding-bottom: 48px !important; }
.testi-card   { background: var(--white); border-radius: var(--radius); padding: 32px; height: 100%; border-left: 4px solid var(--green-main); box-shadow: var(--shadow-sm); transition: var(--transition); }
.testi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.testi-stars  { color: #f4c430; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testi-quote  { font-size: .95rem; color: var(--text-body); font-style: italic; margin-bottom: 20px; line-height: 1.7; }
.testi-author strong { display: block; font-family: 'Poppins',sans-serif; font-size: .95rem; }
.testi-author span   { font-size: .82rem; color: var(--text-muted); }

/* === CTA BANNER === */
.cta-banner  { background: linear-gradient(135deg, var(--green-main), var(--green-mid)); padding: 64px 0; }
.cta-inner   { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-text h2 { color: var(--white); font-size: 2rem; }
.cta-text p  { color: rgba(255,255,255,.85); margin-top: 8px; }
.cta-btns    { display: flex; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }

/* === PAGE HERO === */
.page-hero { background: linear-gradient(135deg, var(--green-dark), var(--green-mid)); padding: 60px 0; color: var(--white); }
.page-hero h1 { font-size: 2.5rem; color: var(--white); margin-bottom: 12px; }
.breadcrumb { font-size: .88rem; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 8px; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: .65rem; }

/* === ABOUT PAGE === */
.about-values   { display: flex; flex-direction: column; gap: 20px; margin: 28px 0 32px; }
.value-item     { display: flex; gap: 16px; align-items: flex-start; }
.value-item i   { width: 40px; height: 40px; background: var(--green-pale); border-radius: 10px; display: grid; place-items: center; color: var(--green-main); font-size: 1.1rem; flex-shrink: 0; }
.value-item strong { display: block; font-family: 'Poppins',sans-serif; font-size: .95rem; margin-bottom: 4px; }
.value-item p   { font-size: .87rem; color: var(--text-muted); margin: 0; }

.icon-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.icon-card  { background: var(--white); border-radius: var(--radius); padding: 32px 20px; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); }
.icon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.icon-card-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--green-main), var(--green-mid)); border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: var(--white); margin: 0 auto 16px; }
.icon-card h3 { font-size: 1rem; margin-bottom: 8px; }
.icon-card p  { font-size: .85rem; color: var(--text-muted); }

.commitment-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.commit-card { background: var(--bg); border-radius: var(--radius); padding: 32px; border: 1px solid var(--lime); transition: var(--transition); }
.commit-card:hover { box-shadow: var(--shadow-md); border-color: var(--green-accent); }
.commit-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 20px; }
.commit-icon.green { background: var(--green-main); color: var(--white); }
.commit-icon.lime  { background: var(--green-accent); color: var(--white); }
.commit-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.commit-card p  { font-size: .87rem; color: var(--text-muted); }

/* === FILTER TABS === */
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-btn  {
  padding: 9px 22px; border-radius: 50px; border: 2px solid var(--green-main);
  background: transparent; color: var(--green-main); font-family: 'Poppins',sans-serif;
  font-weight: 600; font-size: .88rem; cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--green-main); color: var(--white); }

.cant-find { font-size: 1.05rem; color: var(--text-body); margin-bottom: 20px; }

/* === CONTACT PAGE === */
.contact-cols { grid-template-columns: 1fr 1.1fr; align-items: flex-start; gap: 60px; }
.contact-details { display: flex; flex-direction: column; gap: 22px; margin: 28px 0 32px; }
.cd-icon { width: 44px; height: 44px; background: var(--green-pale); border-radius: 50%; display: grid; place-items: center; color: var(--green-main); font-size: 1.1rem; flex-shrink: 0; }
.contact-details li { display: flex; gap: 14px; align-items: flex-start; }
.contact-details strong { display: block; font-family: 'Poppins',sans-serif; font-size: .88rem; margin-bottom: 2px; }
.contact-details a { color: var(--green-main); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }

.contact-form-card { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-md); }
.contact-form-card h3 { font-size: 1.3rem; margin-bottom: 28px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-dark); }
.req        { color: #dc3545; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 16px; border: 1.5px solid #dee2e6; border-radius: var(--radius-sm);
  font-family: 'Inter',sans-serif; font-size: .92rem; color: var(--text-dark);
  background: var(--bg); transition: var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green-light); background: var(--white); box-shadow: 0 0 0 3px rgba(82,183,136,.15); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* Alert */
.alert { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; border-radius: var(--radius); margin: 32px 0; }
.alert-success { background: #d1fae5; border-left: 4px solid #10b981; }
.alert i { font-size: 1.4rem; color: #10b981; }
.alert strong { display: block; font-family: 'Poppins',sans-serif; }
.alert p { font-size: .9rem; color: var(--text-body); margin: 0; }

/* === FOOTER === */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { font-family: 'Poppins',sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--white); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-logo i { color: var(--green-accent); }
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.8); transition: var(--transition); font-size: .9rem; }
.footer-socials a:hover { background: var(--green-mid); color: var(--white); }
.footer-heading { font-family: 'Poppins',sans-serif; font-size: .95rem; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.footer-links li a { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.7); font-size: .87rem; padding: 4px 0; transition: var(--transition); }
.footer-links li a:hover { color: var(--green-accent); }
.footer-links i { font-size: .65rem; color: var(--green-accent); }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .87rem; color: rgba(255,255,255,.7); padding: 5px 0; }
.footer-contact-list i { color: var(--green-accent); margin-top: 3px; flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,.7); }
.footer-contact-list a:hover { color: var(--green-accent); }
.footer-bottom { padding: 20px 0; text-align: center; font-size: .82rem; color: rgba(255,255,255,.5); }

/* === FLOATING WHATSAPP === */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 58px; height: 58px; background: #25d366; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem; color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  animation: waPulse 2.5s infinite;
  transition: var(--transition);
}
.whatsapp-float:hover { background: #1da851; transform: scale(1.1); }
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,.75); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .why-grid       { grid-template-columns: repeat(2,1fr); }
  .footer-grid    { grid-template-columns: repeat(2,1fr); }
  .icon-grid      { grid-template-columns: repeat(2,1fr); }
  .commitment-grid{ grid-template-columns: repeat(2,1fr) !important; }
}

@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  .hero-section, .icon-bar, .stats-section,
  .cta-banner, .section, .page-hero { max-width: 100%; overflow-x: hidden; }
  .swiper { width: 100% !important; }
  /* Navbar */
  .hamburger { display: flex; }
  .navbar-nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 16px 20px 24px; box-shadow: var(--shadow-md); gap: 0; z-index: 999;
  }
  .navbar-nav.open { display: flex; }
  .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--green-pale); }
  .btn-quote { margin-top: 12px; width: 100%; justify-content: center; border-radius: 50px; }

  /* Hero */
  .heroSwiper { height: 480px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-subtext { font-size: .9rem; }

  /* Layout */
  .two-col, .contact-cols { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid    { grid-template-columns: repeat(2,1fr); }
  .icon-bar-grid { grid-template-columns: repeat(2,1fr); }
  .why-grid      { grid-template-columns: 1fr 1fr; }
  .section-header h2 { font-size: 1.6rem; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-text h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .products-grid   { grid-template-columns: 1fr; }
  .icon-grid       { grid-template-columns: 1fr 1fr; }
  .commitment-grid { grid-template-columns: 1fr !important; }
  .hero-content h1 { font-size: 1.6rem; }
  .heroSwiper      { height: 420px; }
  .hero-btns       { flex-direction: column; }
  .footer-grid     { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}