/*
Theme Name: 3R Shane Rice Mill
Theme URI: https://3rshanericemill.com
Author: 3R Shane Rice Mill
Description: Premium Rice Mill Website Theme
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: 3r-shane-ricemill
*/

/* =====================
   CSS VARIABLES
===================== */
:root {
  --green-dark: #2d6a2d;
  --green-mid: #3d8b3d;
  --green-light: #e8f5e8;
  --green-accent: #4CAF50;
  --text-dark: #1a1a1a;
  --text-mid: #444;
  --text-light: #666;
  --white: #ffffff;
  --bg-light: #f9f9f6;
  --border: #e0e0e0;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --radius: 12px;
}

/* =====================
   RESET & BASE
===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

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

/* =====================
   TYPOGRAPHY
===================== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

/* =====================
   LAYOUT UTILITIES
===================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 80px 0; }

/* =====================
   BUTTONS
===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

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

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

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

/* =====================
   HEADER / NAV
===================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.5px;
}

.logo-text .site-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  display: block;
  line-height: 1.2;
}

.logo-text .site-tagline {
  font-size: 0.75rem;
  color: var(--text-light);
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--text-mid);
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
  color: var(--green-dark);
  border-bottom-color: var(--green-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* =====================
   HERO SECTION
===================== */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(45,106,45,0.4) 100%),
              url('assets/images/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 24px 0;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 36px;
  opacity: 0.92;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.hero-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  color: var(--white);
}

.hero-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.hero-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.hero-card p { font-size: 0.85rem; opacity: 0.85; }

/* =====================
   COMMITMENT SECTION
===================== */
.commitment-section { background: var(--white); }

.commitment-section h2 {
  text-align: center;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--green-dark);
  margin: 0 auto 48px;
  border-radius: 2px;
}

.commitment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.commitment-text p {
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.8;
}

.commitment-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-light);
  font-size: 1rem;
}

/* =====================
   PRODUCTS PAGE
===================== */
.page-hero {
  background: var(--green-dark);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}

.page-hero h1 { margin-bottom: 16px; }
.page-hero p { opacity: 0.88; max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 80px 0;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

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

.product-card-body { padding: 24px; }
.product-card-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.product-card-body > p { color: var(--text-light); margin-bottom: 16px; font-size: 0.95rem; }

.product-features-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-features {
  margin-bottom: 20px;
}

.product-features li {
  font-size: 0.88rem;
  color: var(--text-mid);
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
}

.product-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--green-dark);
}

.btn-learn-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-learn-more:hover { background: var(--green-mid); }

/* =====================
   ABOUT PAGE
===================== */
.about-heritage { padding: 80px 0; }
.about-heritage h2 { color: var(--green-dark); margin-bottom: 24px; }
.about-heritage p { color: var(--text-mid); margin-bottom: 16px; line-height: 1.8; max-width: 720px; }

.mission-section {
  background: var(--bg-light);
  padding: 80px 24px;
  text-align: center;
}
.mission-section h2 { margin-bottom: 24px; }
.mission-section p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.8;
}
.mission-section strong { color: var(--green-dark); }

.values-section { padding: 80px 0; }
.values-section h2 { text-align: center; margin-bottom: 12px; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.value-icon { font-size: 2rem; margin-bottom: 12px; }
.value-card h3 { color: var(--green-dark); margin-bottom: 10px; }
.value-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

.team-section { padding: 80px 0; }
.team-section h2 { text-align: center; margin-bottom: 12px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.team-avatar {
  width: 90px;
  height: 90px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 auto 16px;
}

.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-role { font-size: 0.85rem; color: var(--green-dark); font-weight: 600; margin-bottom: 12px; display: block; }
.team-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

/* =====================
   CONTACT PAGE
===================== */
.contact-section { padding: 80px 0; }

.contact-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}

.contact-card h2 { text-align: center; margin-bottom: 8px; }
.contact-card > p { text-align: center; color: var(--text-light); margin-bottom: 36px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-info-box {
  background: var(--green-light);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}

.contact-info-icon { font-size: 1.8rem; margin-bottom: 10px; }
.contact-info-box h4 { font-size: 0.95rem; margin-bottom: 6px; }
.contact-info-box p, .contact-info-box a {
  font-size: 0.88rem;
  color: var(--text-mid);
}

.bulk-order-box {
  background: var(--green-light);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  margin-top: 4px;
}
.bulk-order-box h4 { font-size: 1rem; margin-bottom: 10px; }
.bulk-order-box p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }

/* =====================
   FOOTER
===================== */
#site-footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo-icon { background: rgba(255,255,255,0.15); }
.footer-brand .site-name { color: var(--white); }
.footer-brand .site-tagline { color: rgba(255,255,255,0.65); }
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; opacity: 0.8; line-height: 1.7; }

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.88rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; }

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  opacity: 0.85;
  margin-bottom: 10px;
}

.footer-contact-list .icon { font-size: 1rem; margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  opacity: 0.75;
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { opacity: 1; text-decoration: underline; }

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 16px; }

  .hero-cards { grid-template-columns: 1fr; }
  .commitment-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .contact-card { padding: 28px 20px; }
}
