/* =========================================
   Rice Mill Trade - Public Frontend Styles
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1a5f7a;
  --primary-dark: #124255;
  --secondary: #e8a33d;
  --accent: #2ecc71;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --border: #e5e7eb;
  --white: #ffffff;
  --whatsapp: #25d366;
  --max-width: 1200px;
  --header-height: 70px;
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; scrollbar-width: thin; }

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', 'Noto Sans', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg);
  overflow-x: hidden;
}

body.lang-bn { font-family: 'Noto Sans Bengali', 'Noto Sans', 'Segoe UI', Arial, sans-serif; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; color: var(--primary); margin-bottom: 12px; }
.section-title p { color: var(--text-light); font-size: 1.1rem; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #20bd5f; color: var(--white); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; }
.badge-spare { background: #e3f2fd; color: #1565c0; }
.badge-recon { background: #fff3e0; color: #ef6c00; }
.badge-solar { background: #e8f5e9; color: #2e7d32; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.lang-toggle { position: fixed; bottom: 30px; right: 30px; z-index: 1000; }
.lang-btn { background: var(--primary); color: var(--white); border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 1.2rem; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: var(--transition); }
.lang-btn:hover { transform: scale(1.1); background: var(--primary-dark); }
/* Header */
header {
  position: fixed; top: 0; width: 100%; height: var(--header-height);
  background: var(--white); border-bottom: 1px solid var(--border);
  z-index: 1000; transition: var(--transition);
}
header.scrolled { box-shadow: 0 2px 15px rgba(0,0,0,0.08); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.5rem; color: var(--primary); }
.logo img { height: 40px; width: auto; }
.logo span { font-size: 1.1rem; }
nav ul { display: flex; list-style: none; gap: 28px; }
nav a { text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 0.95rem; transition: var(--transition); }
nav a:hover { color: var(--primary); }
.whatsapp-btn {
  background: var(--whatsapp); color: var(--white); padding: 10px 20px;
  border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  display: flex; align-items: center; gap: 8px; transition: var(--transition);
}
.whatsapp-btn:hover { background: #20bd5f; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-dark); cursor: pointer; }

/* Hero */
.hero { position: relative; padding-top: 140px; padding-bottom: 80px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; opacity: 0.15; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; font-weight: 800; }
.hero p { font-size: 1.25rem; margin-bottom: 30px; opacity: 0.95; max-width: 600px; }
.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }

/* Trust Badges */
.trust { padding: 40px 0; background: var(--bg-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-logos { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; opacity: 0.7; transition: var(--transition); }
.trust-logos:hover { opacity: 1; }

/* Featured Products */
.featured-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: var(--transition); }
.featured-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.featured-card img { width: 100%; height: 200px; object-fit: cover; }
.featured-card-content { padding: 20px; }
.featured-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--text-dark); }
.featured-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 15px; }
.featured-card .model { display: block; font-size: 0.8rem; color: var(--text-light); margin-bottom: 12px; }

/* Product Catalog */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; justify-content: center; }
.filter-btn { padding: 10px 22px; border: 1px solid var(--border); background: var(--white); border-radius: 30px; font-size: 0.9rem; cursor: pointer; transition: var(--transition); }
.filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.search-box { max-width: 400px; margin: 0 auto 30px; position: relative; }
.search-box input { width: 100%; padding: 14px 20px 14px 45px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; }
.search-box::before { content: '\1F50D'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-color: var(--primary); }
.product-card img { width: 100%; height: 220px; object-fit: cover; background: var(--bg-light); }
.product-card-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 1.2rem; margin-bottom: 6px; color: var(--text-dark); }
.product-card .model { font-size: 0.85rem; color: var(--text-light); margin-bottom: 12px; }
.product-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 18px; flex: 1; }
.product-card-actions { display: flex; gap: 10px; margin-top: auto; }
.product-card-actions .btn { flex: 1; font-size: 0.85rem; padding: 10px; }
.no-results { text-align: center; padding: 60px; color: var(--text-light); }

/* Solar Solutions */
.solar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.solar-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 30px; text-align: center; transition: var(--transition); }
.solar-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.solar-icon { font-size: 3rem; margin-bottom: 20px; color: var(--accent); }
.solar-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.solar-card p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 20px; }
/* About Page */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; text-align: center; transition: var(--transition); }
.team-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.team-card img { width: 100%; height: 300px; object-fit: cover; background: var(--bg-light); }
.team-card-content { padding: 25px; }
.team-card h3 { font-size: 1.3rem; margin-bottom: 5px; color: var(--text-dark); }
.team-card .title { font-size: 0.95rem; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.team-card p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 18px; }
.team-contact { display: flex; gap: 10px; justify-content: center; }
.team-contact a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-light); color: var(--text-dark); display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1.1rem; transition: var(--transition); }
.team-contact a:hover { background: var(--whatsapp); color: var(--white); }

/* Services Page */
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 35px 25px; text-align: center; transition: var(--transition); }
.service-card:hover { border-color: var(--secondary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.service-icon { font-size: 3rem; margin-bottom: 20px; color: var(--secondary); }
.service-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.service-card p { font-size: 0.95rem; color: var(--text-light); }

/* Contact Page */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h2 { font-size: 1.8rem; color: var(--primary); margin-bottom: 20px; }
.contact-item { display: flex; gap: 15px; margin-bottom: 25px; align-items: flex-start; }
.contact-item .icon { width: 45px; height: 45px; background: var(--bg-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--primary); flex-shrink: 0; }
.contact-item div h3 { font-size: 1rem; margin-bottom: 4px; color: var(--text-dark); }
.contact-item div p { font-size: 0.9rem; color: var(--text-light); }
.map-container { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); height: 100%; min-height: 400px; }
.map-container iframe { width: 100%; height: 100%; border: 0; }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 35px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; font-family: inherit; transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { min-height: 120px; resize: vertical; }
.whatsapp-quick { background: var(--whatsapp); color: var(--white); padding: 25px; border-radius: 10px; margin-top: 30px; }
.whatsapp-quick h3 { margin-bottom: 12px; font-size: 1.3rem; }
.whatsapp-quick p { margin-bottom: 20px; font-size: 0.95rem; opacity: 0.95; }

/* Footer */
footer { background: var(--primary-dark); color: var(--white); padding: 60px 0 25px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer h3 { font-size: 1.2rem; margin-bottom: 20px; color: var(--white); }
.footer p, .footer a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.95rem; line-height: 1.8; }
.footer a:hover { color: var(--white); }
.footer-social { display: flex; gap: 15px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--white); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: var(--transition); }
.footer-social a:hover { background: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.9rem; color: rgba(255,255,255,0.5); }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .nav-menu { position: fixed; top: var(--header-height); left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); display: none; }
  .nav-menu.active { display: flex; }
  .nav-menu li { margin: 12px 0; }
  .mobile-toggle { display: block; }
  .contact-container { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .hero h1 { font-size: 2rem; }
}