/* ============================================================
   Best Rice Mills — Modern Site Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --green-dark:  #1a3d0a;
  --green:       #2d6a0e;
  --green-mid:   #3a8512;
  --gold:        #c8a84b;
  --gold-light:  #e8d08a;
  --cream:       #faf7f0;
  --white:       #ffffff;
  --gray-100:    #f5f5f5;
  --gray-200:    #e9e9e9;
  --gray-600:    #6b7280;
  --dark:        #111827;
  --text-body:   #374151;
  --nav-height:  72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
  line-height: 1.3;
}

a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

/* ---- Utilities ---- */
.text-gold  { color: var(--gold) !important; }
.text-green { color: var(--green) !important; }
.bg-cream   { background: var(--cream); }
.bg-green-dark { background: var(--green-dark); }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 48px 0; }

.section-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.divider-gold {
  width: 56px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 0 28px;
}

.divider-gold.center { margin: 0 auto 28px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.nav-menu > li > a {
  display: block;
  padding: 8px 14px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--dark);
  border-radius: 6px;
  transition: background .2s, color .2s;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: var(--green);
  background: rgba(45, 106, 14, .08);
}

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .22s ease;
  list-style: none;
  z-index: 200;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 9px 18px;
  font-size: .9rem;
  color: var(--text-body);
  transition: background .15s, color .15s;
}

.dropdown li a:hover {
  background: var(--cream);
  color: var(--green);
  padding-left: 24px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 991px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    padding: 16px 20px 24px;
    z-index: 999;
  }

  .nav-menu.open { display: flex; }

  .nav-menu > li > a { padding: 10px 8px; }

  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--gray-100);
    border-radius: 8px;
    margin: 4px 0 4px 12px;
  }
}

/* ============================================================
   PAGE HERO BANNER
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  max-width: 520px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: .85rem;
}

.breadcrumb-nav a { color: var(--gold-light); }
.breadcrumb-nav span { color: rgba(255,255,255,.5); }
.breadcrumb-nav .current { color: var(--white); }

/* ============================================================
   HOME CAROUSEL
   ============================================================ */
.hero-carousel {
  position: relative;
  height: 560px;
  overflow: hidden;
}

@media (max-width: 768px) { .hero-carousel { height: 380px; } }

.hero-carousel .carousel-item { height: 560px; }
@media (max-width: 768px) { .hero-carousel .carousel-item { height: 380px; } }

.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-carousel .carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.65) 40%, rgba(0,0,0,.2));
  display: flex;
  align-items: center;
}

.carousel-text { max-width: 560px; }
.carousel-text h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  margin-bottom: 12px;
}

.carousel-text p {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--dark);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: .95rem;
  transition: background .2s, transform .2s, box-shadow .2s;
  border: none;
  cursor: pointer;
}

.btn-primary-custom:hover {
  background: var(--gold-light);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,168,75,.35);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: .95rem;
  border: 2px solid rgba(255,255,255,.7);
  transition: all .2s;
}

.btn-outline-custom:hover {
  background: var(--white);
  color: var(--green-dark);
}

.carousel-control-prev, .carousel-control-next {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: .8;
  backdrop-filter: blur(4px);
}

.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }
.carousel-control-prev:hover, .carousel-control-next:hover { opacity: 1; background: rgba(255,255,255,.25); }

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  border: none;
  transition: all .3s;
}

.carousel-indicators .active { background: var(--gold); width: 28px; border-radius: 5px; }

/* ============================================================
   ABOUT STRIP (home)
   ============================================================ */
.about-strip { padding: 72px 0; }

.stat-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid var(--gray-200);
  transition: box-shadow .25s, transform .25s;
}

.stat-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.08); transform: translateY(-4px); }

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--white);
  font-size: 1.4rem;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
}

.stat-label { font-size: .9rem; color: var(--gray-600); margin-top: 4px; }

/* ============================================================
   CEO SECTION
   ============================================================ */
.ceo-section { background: var(--cream); padding: 80px 0; }

.ceo-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  position: relative;
}

.ceo-img-wrap img { width: 100%; height: 380px; object-fit: cover; object-position: top; }

.ceo-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--gold);
  color: var(--dark);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 64px 0;
  text-align: center;
}

.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.8); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: box-shadow .25s, transform .25s;
  height: 100%;
}

.product-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.1); transform: translateY(-4px); }

.product-card .card-img {
  height: 220px;
  overflow: hidden;
}

.product-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.product-card:hover .card-img img { transform: scale(1.05); }

.product-card .card-body { padding: 24px; }

.product-card .card-tag {
  display: inline-block;
  background: rgba(45,106,14,.1);
  color: var(--green);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}

.product-card h3 { font-size: 1.2rem; margin-bottom: 8px; }

.product-card ul {
  padding-left: 18px;
  font-size: .9rem;
  color: var(--gray-600);
  margin-top: 10px;
}

.product-card li { margin-bottom: 4px; }

/* ============================================================
   TEAM CARDS
   ============================================================ */
.team-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: box-shadow .25s;
  text-align: center;
}

.team-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,.1); }

.team-photo {
  height: 260px;
  overflow: hidden;
  background: var(--gray-100);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.team-card .card-info { padding: 24px 20px; }
.team-card .role { color: var(--gold); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.team-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.team-card p { font-size: .9rem; color: var(--gray-600); text-align: left; line-height: 1.6; }

/* ============================================================
   UNIT PAGE
   ============================================================ */
.unit-detail-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

.unit-detail-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.spec-list { list-style: none; padding: 0; }
.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: .95rem;
}

.spec-list li:last-child { border-bottom: none; }

.spec-list .spec-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(45,106,14,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
  font-size: .85rem;
}

/* Gallery carousel */
.gallery-carousel .carousel-item img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-card {
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 36px;
  height: 100%;
  transition: box-shadow .25s;
}

.contact-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.09); }

.contact-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.contact-card h3 { font-size: 1.25rem; margin-bottom: 18px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: .95rem;
}

.contact-item i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }

.contact-form-wrap {
  background: var(--cream);
  border-radius: 20px;
  padding: 40px;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: .9rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,106,14,.1);
}

textarea.form-control { resize: vertical; min-height: 130px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.8);
  padding: 64px 0 0;
}

.footer-logo { height: 54px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }

.footer-desc { font-size: .9rem; line-height: 1.7; max-width: 260px; }

.footer-title {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: color .2s, padding-left .2s;
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  margin-bottom: 12px;
  color: rgba(255,255,255,.75);
}

.footer-contact-item i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 48px;
  padding: 20px 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); color: var(--dark); transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 768px) {
  .section-pad { padding: 56px 0; }
  .ceo-img-wrap img { height: 300px; }
  .contact-form-wrap { padding: 28px 20px; }
  .contact-card { padding: 24px; }
}
