/* ============================================
   AL REHMAT RICE TRADERS — Main Stylesheet
   Palette: Forest Green #1B4332 | Gold #C9A84C
   ============================================ */

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

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #1B4332;
  --green-mid:    #2D6A4F;
  --green-light:  #40916C;
  --gold:         #C9A84C;
  --gold-light:   #E8C97A;
  --cream:        #FAF7F2;
  --white:        #FFFFFF;
  --text-dark:    #1A1A1A;
  --text-mid:     #4A4A4A;
  --text-light:   #888888;
  --border:       #E0D9CE;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;

  --max-w: 1160px;
  --section-pad: 90px 24px;
  --radius: 4px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--green);
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--green);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

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

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
}

/* ============================================
   NAVBAR
============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(27, 67, 50, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 42px;
  height: 42px;
  background: var(--gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-badge span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -1px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.logo-tagline {
  font-size: 10px;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--green);
  color: rgba(255,255,255,0.85);
  padding: 64px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto 48px;
}

.footer-brand .logo-badge {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-col address {
  font-style: normal;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
}

.footer-col address a {
  color: var(--gold-light);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ============================================
   HERO (index.html)
============================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 60%, #1a3a2a 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

/* Grain texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 40%, rgba(201,168,76,0.08) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Decorative grain stalks SVG pattern */
.hero-grain-pattern {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  opacity: 0.07;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 28px;
}

.hero-eyebrow span.dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
  padding: 20px;
  text-align: center;
  background: rgba(0,0,0,0.1);
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* Hero visual card */
.hero-visual {
  position: relative;
}

.hero-image-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, rgba(201,168,76,0.12) 0%, rgba(27,67,50,0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
}

.hero-image-placeholder svg {
  opacity: 0.4;
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(27,67,50,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-badge-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.hero-badge-text strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-display);
}

.hero-badge-text span {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* ============================================
   PRODUCT STRIP (home)
============================================ */
.product-strip {
  background: var(--cream);
  padding: 72px 24px;
  border-bottom: 1px solid var(--border);
}

.strip-header {
  text-align: center;
  margin-bottom: 48px;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27,67,50,0.12);
}

.product-card-img {
  height: 180px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
  overflow: hidden;
}

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

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

.product-card-body h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.product-card-body p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 14px;
}

.product-card-body a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.product-card-body a:hover { gap: 10px; }

/* ============================================
   WHY US (home)
============================================ */
.why-us {
  padding: var(--section-pad);
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.why-image {
  position: relative;
}

.why-image-frame {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream);
  border: 1px solid var(--border);
}

.why-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 120px;
  height: 120px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}

.why-accent strong {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.why-accent span {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.why-points {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-point {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.why-point-icon {
  width: 44px;
  height: 44px;
  background: rgba(27,67,50,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.why-point-text h4 {
  font-size: 16px;
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-weight: 700;
}

.why-point-text p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============================================
   CERTIFICATIONS BAND
============================================ */
.cert-band {
  background: var(--green);
  padding: 48px 24px;
}

.cert-band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.cert-band-label {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--white);
  flex-shrink: 0;
  white-space: nowrap;
}

.cert-band-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.cert-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.cert-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   CTA SECTION (home)
============================================ */
.home-cta {
  padding: var(--section-pad);
  background: var(--cream);
  text-align: center;
}

.home-cta .section-subtitle {
  margin: 0 auto 36px;
}

/* ============================================
   PAGE HERO (inner pages)
============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  padding: 120px 24px 72px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(32px, 5vw, 54px);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--green);
    z-index: 999;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding-top: 72px;
  }
  .nav-links.open a { font-size: 20px; color: var(--white); }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 60px 24px;
  }
  .hero-visual { display: none; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }

  .product-cards { grid-template-columns: repeat(2, 1fr); }

  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-image { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .cert-band-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cert-band-divider { display: none; }
}

@media (max-width: 540px) {
  .product-cards { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
