/* ========================================
   Miloumor Edible Oil Industry (2000) Ltd.
   Full Rebuild Stylesheet - Natural Warm Palette
   Palette: Gold #D4A574, Natural Green #5D7052, Cream #FFFBF5
   ======================================== */

:root {
  --gold: #d4a574;
  --gold-strong: #b8894f;
  --green: #5d7052;
  --green-deep: #4a5b44;
  --earth: #8b6914;
  --cream: #fffbf5;
  --wheat: #f5debb;
  --sand: #f2eadf;
  --ink: #2f271f;
  --text: #3c342b;
  --muted: #5d564c;
  --subtle: #80776b;
  --border: #e6dccb;
  --surface: #fffaf3;
  --surface-strong: #fff6e3;
  --shadow-sm: 0 10px 30px rgba(47,45,38,0.06);
  --shadow-md: 0 18px 60px rgba(47,45,38,0.1);
  --shadow-lg: 0 28px 90px rgba(47,45,38,0.15);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --spacing: 18px;
  --spacing-lg: 28px;
  --spacing-xl: 48px;
  --max-width: 1240px;
  --transition: 0.28s ease;
}

/* Reset & base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Open Sans', 'Heebo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(212,165,116,0.08), transparent 36%), var(--cream);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.hebrew { font-family: 'Heebo', 'Open Sans', system-ui, sans-serif; }
img { max-width: 100%; display: block; height: auto; border-radius: var(--radius-sm); }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-strong); }
ul { list-style: none; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 46px; line-height: 1.08; }
h2 { font-size: 32px; line-height: 1.16; }
h3 { font-size: 22px; line-height: 1.24; }
h4 { font-size: 18px; }
p { margin-bottom: var(--spacing); font-size: 16px; color: var(--text); }
small { color: var(--subtle); font-size: 14px; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 96px 0; position: relative; }
section.alt { background: var(--surface); }
section.soft { background: var(--surface-strong); }
.section-header { margin-bottom: 32px; max-width: 880px; }
.section-kicker { color: var(--earth); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.section-title { position: relative; display: inline-block; padding-bottom: 12px; }
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 78px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--green));
}
.section-subtitle { color: var(--muted); font-size: 16px; margin-top: 12px; }

/* Header */
.top-bar {
  background: linear-gradient(90deg, rgba(212,165,116,0.15), rgba(93,112,82,0.1));
  color: var(--earth);
  font-weight: 700;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.top-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.top-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(212,165,116,0.35);
  color: var(--earth);
  font-weight: 700;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--green-deep); font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; margin-left: -8px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(212,165,116,0.36), rgba(93,112,82,0.18)), linear-gradient(145deg, #fffdf7, #fff6e3);
  border: 2px solid rgba(212,165,116,0.6);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--earth);
}
.nav-links { display: flex; align-items: center; gap: 14px; }
.nav-links a { color: var(--ink); font-weight: 700; padding: 10px 12px; border-radius: 12px; }
.nav-links a:hover, .nav-links a.active { background: rgba(212,165,116,0.16); color: var(--earth); }

.controls { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; align-items: center; padding: 6px; background: var(--surface); border-radius: 999px; border: 1px solid var(--border); }
.lang-btn { border: none; background: transparent; padding: 8px 12px; border-radius: 999px; font-weight: 800; color: var(--muted); cursor: pointer; transition: all var(--transition); }
.lang-btn.active { background: linear-gradient(90deg, var(--gold), var(--green)); color: #fff; box-shadow: var(--shadow-sm); }
.cta-ghost { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--gold); color: var(--earth); font-weight: 800; background: #fff7e6; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: #fff; padding: 10px; flex-direction: column; justify-content: center; gap: 6px; cursor: pointer; }
.menu-toggle span { height: 2px; width: 100%; background: var(--ink); display: block; border-radius: 4px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(212,165,116,0.22), transparent 36%),
              radial-gradient(circle at 82% 8%, rgba(93,112,82,0.20), transparent 32%),
              linear-gradient(120deg, rgba(255,251,245,0.92), rgba(255,246,227,0.9));
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; padding: 104px 20px; }
.hero-copy h1 { margin-bottom: 18px; }
.hero-copy p { color: var(--muted); font-size: 17px; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 22px; }
.hero-meta .pill { background: #fff; border: 1px dashed rgba(212,165,116,0.4); color: var(--earth); }
.hero-visual {
  position: relative;
  background: radial-gradient(circle at 30% 30%, rgba(212,165,116,0.16), transparent 42%),
              linear-gradient(145deg, #fffef9, #fff5e6);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px dashed rgba(212,165,116,0.4);
  pointer-events: none;
}
.hero-visual .stat-card { background: rgba(255,255,255,0.82); }
.hero-ribbon { display: inline-flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 999px; background: rgba(93,112,82,0.08); color: var(--green-deep); font-weight: 800; }
.hero-immersive { position: relative; padding-bottom: 36px; }
.hero-immersive .pour-visual {
  position: absolute;
  inset: auto -160px -160px auto;
  width: 360px; height: 360px;
  background: radial-gradient(circle at 40% 40%, rgba(212,165,116,0.35), rgba(255,251,245,0.05));
  filter: blur(32px);
  z-index: 0;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px; border: none; font-weight: 800; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition); }
.btn-primary { background: linear-gradient(100deg, var(--gold), var(--green)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline { border: 1px solid var(--border); color: var(--earth); background: #fff; }
.btn-ghost { background: rgba(93,112,82,0.1); color: var(--green-deep); }
.btn-light { background: #fff; color: var(--earth); box-shadow: var(--shadow-sm); border: 1px solid rgba(212,165,116,0.25); }
.btn-text { padding: 0; color: var(--earth); background: transparent; font-weight: 800; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(93,112,82,0.08); color: var(--green-deep); font-weight: 800; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: rgba(212,165,116,0.16); color: var(--earth); border-radius: 10px; font-weight: 800; font-size: 13px; }
.kpi-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.kpi { padding: 10px 12px; border-radius: 12px; background: rgba(93,112,82,0.08); border: 1px dashed rgba(93,112,82,0.2); font-weight: 800; color: var(--green-deep); }

/* Layout helpers */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 36px; align-items: center; }
.stack { display: grid; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card-title { font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.card-text { color: var(--muted); font-size: 15px; }

/* Stat blocks */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat-card { background: #fff; border: 1px solid rgba(93,112,82,0.14); padding: 18px; border-radius: 14px; box-shadow: var(--shadow-sm); text-align: left; }
.stat-number { font-size: 28px; font-weight: 900; color: var(--earth); margin-bottom: 6px; }
.stat-label { color: var(--subtle); font-weight: 700; font-size: 14px; }

/* Quick category rail */
.category-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 12px; overflow-x: auto; padding: 6px 4px 2px; scrollbar-width: thin; }
.category-card {
  background: linear-gradient(145deg, rgba(212,165,116,0.18), rgba(93,112,82,0.12));
  border: 1px solid rgba(212,165,116,0.35);
  border-radius: 18px;
  padding: 14px;
  min-height: 120px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  color: var(--earth);
}
.category-card strong { font-size: 16px; }
.category-card span { color: var(--muted); font-weight: 600; }

/* Market split */
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.market-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.market-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.market-card ul { color: var(--muted); padding-left: 18px; list-style: disc; }

/* Quality + traceability */
.quality-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.quality-card { border: 1px solid rgba(93,112,82,0.12); border-radius: 16px; padding: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.traceability { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); display: grid; gap: 10px; }
.traceability .label { font-weight: 800; color: var(--earth); }

/* Selector */
.selector-panel { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-sm); display: grid; gap: 14px; }
.selector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.selector-result { background: linear-gradient(120deg, rgba(212,165,116,0.18), rgba(93,112,82,0.1)); border: 1px solid rgba(212,165,116,0.35); border-radius: 16px; padding: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); }
.selector-result h4 { margin-bottom: 6px; }
.selector-bullets { list-style: disc; padding-left: 18px; color: var(--muted); }

/* Compare */
.compare-board { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-sm); }
.compare-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.compare-options label { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ink); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.compare-table th { background: var(--earth); color: #fff; }
.compare-table tr:nth-child(even) { background: #fff7e2; }

/* Knowledge */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.article-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-sm); display: grid; gap: 8px; }

/* Lists */
.product-list { padding-left: 0; margin: 0 0 12px 0; color: var(--muted); }
.product-list li { padding: 6px 0; border-bottom: 1px dashed rgba(230,220,203,0.9); font-weight: 700; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--earth); color: #fff; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table tr:nth-child(even) { background: #fff7e6; }

/* Download / CTA */
.download-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); }
.cta-panel { background: linear-gradient(120deg, rgba(93,112,82,0.16), rgba(212,165,116,0.18)); border: 1px solid rgba(212,165,116,0.4); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-sm); display: grid; gap: 10px; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.testimonial { background: #fff; border-radius: 16px; padding: 18px; border: 1px solid rgba(212,165,116,0.25); box-shadow: var(--shadow-sm); }
.testimonial .quote { color: var(--muted); margin: 12px 0; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
form .field { display: flex; flex-direction: column; gap: 8px; }
label { font-weight: 800; color: var(--ink); }
input, textarea, select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 15px;
  transition: border var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,165,116,0.18); }
textarea { min-height: 120px; resize: vertical; }
input.error, textarea.error, select.error { border-color: #c53030; }
.success-message { background: rgba(93,112,82,0.08); border: 1px solid rgba(93,112,82,0.3); padding: 12px; border-radius: 12px; color: var(--green); margin-bottom: 12px; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq-question { padding: 16px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.faq-answer { padding: 0 16px 16px; color: var(--muted); display: none; }
.faq-item.active .faq-answer { display: block; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); display: grid; grid-template-rows: auto 1fr auto; }
.news-card .body { padding: 16px; display: grid; gap: 10px; }
.news-meta { color: var(--subtle); font-size: 13px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 16px; background: linear-gradient(135deg, rgba(212,165,116,0.2), rgba(93,112,82,0.16)); height: 200px; display: grid; place-items: center; color: var(--earth); font-weight: 800; }

/* Timeline */
.history-timeline { position: relative; padding-left: 26px; border-left: 3px solid rgba(212,165,116,0.6); display: grid; gap: 18px; }
.history-item { background: #fff; border: 1px solid var(--border); padding: 16px; border-radius: 14px; box-shadow: var(--shadow-sm); position: relative; }
.history-item::before { content: ''; position: absolute; left: -33px; top: 18px; width: 14px; height: 14px; border: 3px solid #fff; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px rgba(212,165,116,0.2); }

/* Footer */
footer { background: #1d2418; color: #f5ecdd; padding: 64px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
footer h3 { color: #f3d9a5; margin-bottom: 12px; }
.footer-links a { color: #f5ecdd; display: block; margin-bottom: 8px; }
.footer-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; font-size: 14px; color: #e2d8c6; }

/* Animations */
[data-animate] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animated { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1200px) { :root { --max-width: 1140px; } }
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; padding: 80px 20px; }
  .navbar { flex-wrap: wrap; }
  .nav-links { width: 100%; justify-content: center; }
  .category-rail { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (max-width: 768px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .navbar { flex-wrap: nowrap; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 12px 20px; border-bottom: 1px solid var(--border); display: none; }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .controls { margin-left: auto; }
  section { padding: 72px 0; }
  .hero-visual { order: -1; }
}
@media (max-width: 576px) {
  .hero-copy p { font-size: 15px; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .hero-meta { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .download-card { flex-direction: column; align-items: flex-start; }
  .top-bar .container { justify-content: center; }
}
