/* ==========================================================================
   Rice of India - Custom Styles & Theme Overrides
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --color-primary-dark: #193317;
  --color-primary-green: #83AE21;
  --color-accent-lime: #80AB1E;
  --color-accent-olive: #80AC19;
  --color-accent-brown: #B17457;
  --color-bg-cream: #FAF7F0;
  --color-bg-lightgreen: #ECF3DD;
  --color-text-dark: #193317;
  --color-text-muted: rgba(25, 51, 23, 0.65);
}

html {
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #FFFFFF;
  color: var(--color-text-dark);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-cream);
}
::-webkit-scrollbar-thumb {
  background: #83AE21;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #193317;
}

/* Typography Helpers */
.font-poppins {
  font-family: 'Poppins', sans-serif;
}

.font-roboto {
  font-family: 'Roboto', sans-serif;
}

/* Section Underline Badges matching Figma Frame 26 */
.section-badge {
  display: inline-block;
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  padding-bottom: 6px;
  margin-bottom: 12px;
  border-bottom: 2px solid #000000;
}

/* Button & Interactive Styles */
.btn-primary-dark {
  background-color: var(--color-primary-dark);
  color: #FFFFFF;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-dark:hover {
  background-color: #264e23;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(25, 51, 23, 0.35);
}

.btn-lime {
  background-color: var(--color-primary-green);
  color: #FFFFFF;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-lime:hover {
  background-color: #6e9419;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(131, 174, 33, 0.4);
}

/* Process Step Cards */
.process-card {
  background-color: #83AE21;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(131, 174, 33, 0.3);
}

.process-badge {
  width: 52px;
  height: 52px;
  background-color: #193317;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.35rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Product Cards */
.product-card {
  background: #FFFFFF;
  border-radius: 8px;
  transition: all 0.35s ease;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(25, 51, 23, 0.12);
}

/* Testimonial Cards */
.testimonial-card {
  background-color: #ECF3DD;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(128, 171, 30, 0.18);
}

/* Counter Banner */
.counter-section {
  position: relative;
  background: linear-gradient(rgba(10, 20, 10, 0.55), rgba(10, 20, 10, 0.62)), url('../images/counter.webp');
  background-size: cover;
  background-position: center;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(rgba(10, 25, 8, 0.3), rgba(10, 25, 8, 0.45)), url('../images/frame_2.webp');
  background-size: cover;
  background-position: center;
}

/* Nav Link Hover States */
.nav-link {
  color: #B17457;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #80AC19;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #80AC19;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* Modal Overlay */
.modal-backdrop {
  background-color: rgba(25, 51, 23, 0.75);
  backdrop-filter: blur(4px);
}

/* Interior Page Banner (Infrastructure) */
.page-banner {
  position: relative;
  background: linear-gradient(rgba(10, 25, 8, 0.32), rgba(10, 25, 8, 0.48)), url('../images/frame_2.webp');
  background-size: cover;
  background-position: center;
}

/* Facility Gallery Tiles */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background-color: #FFFFFF;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(25, 51, 23, 0.16);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Variety Selector List (Basmati Rice page) */
.variety-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 4px;
  background-color: var(--color-primary-dark);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.variety-btn:hover {
  background-color: #264e23;
  transform: translateX(3px);
}

.variety-btn.is-active {
  background-color: var(--color-primary-green);
}

.variety-btn.is-active:hover {
  background-color: #6e9419;
}

/* Variety Cards with Captions */
.variety-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.variety-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(25, 51, 23, 0.18);
}

.variety-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.variety-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 10px;
  background-color: rgba(25, 51, 23, 0.92);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Product Specification Table */
.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
}

.spec-table th {
  width: 34%;
  padding: 14px 18px;
  background-color: #2C4A24;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  vertical-align: middle;
}

.spec-table td {
  padding: 14px 18px;
  background-color: #F6F8F0;
  color: var(--color-text-dark);
  font-size: 0.9rem;
  vertical-align: middle;
}

/* WhatsApp Call-to-Action (Contact page) */
.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-whatsapp:hover {
  background-color: #1EBE5A;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -8px rgba(37, 211, 102, 0.5);
}

/* Direct Contact Method Cards */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 6px;
  background-color: #FFFFFF;
  border: 1px solid rgba(25, 51, 23, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(128, 172, 25, 0.45);
  box-shadow: 0 14px 26px rgba(25, 51, 23, 0.12);
}

.contact-card .contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  background-color: var(--color-primary-dark);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Map Frame */
.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Tailwind's display utilities outrank [hidden]; keep the attribute authoritative
   so JS can hide the mobile submenu and drawer backdrop with el.hidden = true. */
[hidden] {
  display: none !important;
}
