/* Shared ROBUSTA palette and components */
:root {
  --primary: #234536;
  --primary-dark: #142a20;
  --dark: #183326;
  --light: #f3efe4;
  --text: #3e382f;
  --white: #ffffff;
  --success: #123d36;
  --error: #b5473b;
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* .container بنحط فيه المحتوى في نص الشاشة بعرض أقصى 1100px
   margin: 0 auto بتوسّط العنصر */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding: 40px 0; }
.section-title { margin-bottom: 20px; color: var(--dark); }

/* ---------- 3) الهيدر والمنيو ---------- */
/* position: sticky يخلي الهيدر ثابت فوق وإحنا بنسكرول */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* display:flex بتحط العناصر جنب بعض، وspace-between بتوزعهم (اللوجو يمين والمنيو شمال) */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo { color: var(--white); font-size: 1.4rem; font-weight: bold; }
.logo-copy { display: flex; flex-direction: column; line-height: 1.1; }
.logo-copy strong { color: #ead9b5; font-family: Georgia, "Times New Roman", serif; letter-spacing: .08em; }
.logo-copy small { margin-top: 5px; color: #d3c4a4; font-size: .56rem; letter-spacing: .17em; }
.logo:hover { text-decoration: none; }

.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: #eee5d8;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
}
.nav a:hover { background: #315643; text-decoration: none; color: var(--white); }

/* الكلاس active بيتحط بالـ JavaScript (main.js) على لينك الصفحة الحالية */
.nav a.active { background: var(--primary); color: var(--white); }

/* زرار الموبايل (☰) مخفي في الكمبيوتر */
.menu-btn {
  display: none;
  background: none;
  border: 1px solid #72927e;
  color: var(--white);
  font-size: 1.4rem;
  padding: 2px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* ---------- 4) قسم الواجهة (Hero) ---------- */
.hero {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 70px 0;
}
.hero h1 { font-size: 2.4rem; margin-bottom: 12px; }
.hero p { max-width: 650px; margin: 0 auto 24px; color: #eee5d8; }

/* هيدر صغير لباقي الصفحات */
.page-banner {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 36px 0;
}
.page-banner p { color: #eee5d8; }

/* ---------- 5) الأزرار ---------- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn-light { background: var(--white); color: var(--primary); }
.btn-light:hover { background: #eee8dc; }

/* ---------- 6) الكروت (Grid) ----------
   grid + auto-fit + minmax = كروت بتظبط عددها لوحدها حسب عرض الشاشة
   يعني ده اللي بيخلي الموقع Responsive من غير ما نكتب كود كتير */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.card h3 { margin-bottom: 8px; color: var(--dark); }
.card .meta { font-size: 0.85rem; color: #7d705f; margin-bottom: 8px; }

/* شارة صغيرة للتصنيف */
.tag {
  display: inline-block;
  background: #eee8dc;
  color: var(--primary);
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* دايرة فيها أول حرف من اسم العضو */
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

/* مربعات الجاليري (ألوان بدل صور عشان نبسّط) */
.gallery-item {
  height: 160px;
  border-radius: var(--radius);
  color: var(--white);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-weight: bold;
}

/* ---------- 7) البحث والفلتر ---------- */
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar input, .toolbar select { flex: 1; min-width: 180px; }

/* ---------- 8) الفورم ---------- */
.form-box {
  background: var(--white);
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 4px; }

input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d9d0c3;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }

/* رسالة الغلط تحت الحقل (مخفية لحد ما الـ JS يكتب فيها) */
.error-msg { color: var(--error); font-size: 0.85rem; min-height: 1.1em; }

/* لما الحقل يبقى فيه غلط الـ JS بيضيف الكلاس ده فيحمّر الإطار */
.input-error { border-color: var(--error); }

/* رسالة النجاح (مخفية بـ hidden لحد ما الفورم يتنفذ صح) */
.success-box {
  background: #e5eee7;
  color: var(--success);
  border: 1px solid var(--success);
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.hidden { display: none; }

.no-results { text-align: center; color: #75695d; padding: 20px; }

/* ---------- 9) الأسئلة الشائعة (FAQ) ---------- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--dark);
}
.faq-answer { padding: 0 16px 16px; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ---------- 10) الفوتر ---------- */
.site-footer {
  background: var(--dark);
  color: #d0c4b4;
  text-align: center;
  padding: 24px 0;
  margin-top: 40px;
}
.site-footer a { color: #d8bd8d; }

/* ---------- 11) الموبايل (Responsive) ----------
   @media بتقول: "لو عرض الشاشة 800px أو أقل طبّق الكلام ده"
   هنا بنخفي المنيو ونظهر زرار ☰، والـ JS هو اللي بيفتح ويقفل المنيو */
@media (max-width: 800px) {
  .menu-btn { display: block; }

  .nav {
    display: none;            /* المنيو مخفي في الموبايل */
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 10px 16px;
  }
  /* الكلاس show بيضيفه main.js لما نضغط ع الزرار */
  .nav.show { display: flex; }

  .hero h1 { font-size: 1.8rem; }
}

/* ROBUSTA brand experience */
html { scroll-behavior: smooth; }

.site-header {
  background: rgba(20, 42, 32, 0.97);
  box-shadow: 0 4px 18px rgba(20, 42, 32, 0.2);
}

.logo { display: flex; align-items: center; gap: 10px; letter-spacing: 0.04em; }
.logo img { width: 48px; height: 54px; object-fit: cover; border: 1px solid rgba(220, 196, 148, .45); border-radius: 50% / 38%; }
.nav { gap: 2px; }
.nav a { color: #eee5d8; }
.nav a:hover, .nav a.active { background: rgba(220, 196, 148, 0.16); color: #fff; }
.nav a.active { box-shadow: inset 0 -2px #d4b77e; }

.hero {
  position: relative;
  overflow: hidden;
  text-align: right;
  padding: 88px 0;
  background:
    radial-gradient(ellipse at 82% 22%, rgba(201, 166, 107, 0.22), transparent 28%),
    linear-gradient(115deg, #142a20 10%, #234536 60%, #3b5940);
}

.hero-inner {
  display: block;
  align-items: center;
}

.hero-copy { max-width: 650px; }
.eyebrow {
  display: inline-block;
  color: #d8bd8d;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); line-height: 1.12; }
.hero h1 span { color: #e0c58f; }
.hero p { color: #eee5d8; margin: 18px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-light { background: #f3efe4; color: #142a20; }
.hero .btn-light:hover { background: #e6dcc5; }
.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }

.section { padding: 64px 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--dark); }
.section-intro { max-width: 700px; margin: -8px 0 24px; color: #75695d; }
.card {
  border: 1px solid #e8dfd2;
  box-shadow: 0 10px 28px rgba(54, 42, 30, 0.06);
}
.card h3 { color: var(--dark); }
.card .meta { color: #7d705f; }
.tag { background: #e9e1d0; color: #234536; }
.feature-card { border-top: 3px solid #c9a66b; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 15px;
  border-radius: 50%;
  background: #e9e1d0;
  color: #234536;
  font-size: 1.25rem;
}
.rhythm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rhythm-item { border-right: 2px solid #c9a66b; padding: 4px 16px 4px 0; }
.rhythm-item strong { display: block; color: #234536; margin-bottom: 6px; }
.rhythm-item span { display: block; color: #75695d; font-size: 0.9rem; }
.earth-section { background: #ece7dc; }
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.story-card { padding: 26px; }
.story-card p { margin-top: 8px; }
.visit-note {
  padding: 18px 20px;
  border-right: 3px solid #c9a66b;
  background: #ebe4d5;
  color: #5b5146;
}

.page-banner {
  background:
    radial-gradient(circle at 85% 20%, rgba(201, 166, 107, 0.2), transparent 25%),
    linear-gradient(115deg, #142a20, #3b5940);
  padding: 48px 0;
}
.page-banner h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-banner p { color: #e5dbc9; }

.gallery-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.gallery-item {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  align-items: flex-end;
  background:
    radial-gradient(ellipse at 65% 24%, rgba(237, 215, 174, 0.8), transparent 15%),
    linear-gradient(145deg, #536a4c, #31513d 52%, #142a20);
  box-shadow: 0 12px 30px rgba(37, 29, 23, 0.15);
}
.gallery-item::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  top: -50px;
  left: -20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255,255,255,.04), 0 0 0 38px rgba(255,255,255,.04);
}
.gallery-item span { position: relative; z-index: 1; }
.gallery-item small { display: block; font-weight: 400; opacity: 0.85; }
.gallery-item.library { background: linear-gradient(145deg, #756c59, #3b5940 65%, #142a20); }
.gallery-item.coffee { background: linear-gradient(145deg, #8b7453, #3b5940 60%, #142a20); }
.gallery-item.garden { background: linear-gradient(145deg, #718673, #3b5940 60%, #142a20); }
.gallery-item.culture { background: linear-gradient(145deg, #71806a, #3b5940 60%, #142a20); }
.gallery-item.sustainability { background: linear-gradient(145deg, #71877d, #3b5940 60%, #142a20); }

.faq-question { text-align: right; line-height: 1.6; }
.faq-question::after { content: "+"; float: left; color: #234536; font-size: 1.2rem; }
.faq-item.open .faq-question::after { content: "−"; }
.faq-answer { color: #62584d; }
.form-box { border: 1px solid #e8dfd2; }
.btn { background: var(--primary); }
.btn:hover { background: var(--primary-dark); }
.site-footer {
  background: #142a20;
  color: #d0c4b4;
  margin-top: 0;
}
.site-footer p + p { margin-top: 6px; }

@media (max-width: 800px) {
  .hero { padding: 60px 0; }
  .hero-inner { text-align: center; }
  .hero-actions { justify-content: center; }
  .rhythm-grid { grid-template-columns: 1fr; gap: 20px; }
  .story-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 2.35rem; }
  .section { padding: 48px 0; }
  .nav { text-align: right; }
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 28px 0 18px;
}
.journey-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid #e1dacb;
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  text-align: right;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.journey-step:hover { transform: translateY(-2px); border-color: #8b9b81; }
.journey-step span { color: #927344; font-size: .78rem; font-weight: 700; }
.journey-step[aria-selected="true"] { background: #234536; border-color: #234536; color: var(--white); }
.journey-step[aria-selected="true"] span { color: #e0c58f; }
.journey-detail, .comparison-card, .quiz-result {
  padding: 24px;
  border: 1px solid #e1dacb;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(6, 19, 33, .07);
}
.journey-detail h3, .comparison-card h3, .quiz-result h3 { margin: 8px 0; color: var(--dark); }
.journey-detail .meta { margin-top: 12px; }

.coffee-toolbar { align-items: center; }
.coffee-toolbar input { flex: 2; }
.coffee-toolbar select { flex: 1; }
.coffee-card { padding: 0; overflow: hidden; }
.coffee-card summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  cursor: pointer;
  color: var(--dark);
  list-style-position: inside;
}
.coffee-card[open] summary { border-bottom: 1px solid #e8dfd2; }
.coffee-card p { padding: 0 20px 10px; }
.coffee-card p:last-child { padding-bottom: 20px; }

.comparison-control {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0;
  color: var(--dark);
  font-weight: 700;
}
.comparison-control input { flex: 1; width: auto; accent-color: var(--primary); }
.comparison-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.comparison-facts div { padding: 14px; border-radius: 10px; background: #f3f5f6; }
.comparison-facts dt { color: #736957; font-size: .85rem; }
.comparison-facts dd { margin-top: 4px; color: var(--dark); font-weight: 700; }

.origin-card { border-top: 3px solid #b99a66; }
.quiz-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr); gap: 32px; align-items: start; }
.quiz-questions { display: grid; gap: 12px; margin-bottom: 20px; }
.quiz-question {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e1dacb;
  border-radius: 12px;
  background: var(--white);
}
.quiz-question legend { padding: 0 6px; color: var(--dark); font-weight: 700; }
.quiz-options { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-options label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.quiz-options input { width: auto; accent-color: var(--primary); }
.passport-card {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #31513d, #142a20);
  color: #f5f1e8;
  box-shadow: 0 16px 36px rgba(6, 19, 33, .18);
}
.passport-card h3 { margin: 14px 0 8px; color: var(--white); }
.passport-card p { margin-bottom: 14px; color: #d3dce2; }
.passport-card a { color: #e0c58f; }
.passport-stamp {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #e0c58f;
  border-radius: 50%;
  color: #e0c58f;
  font-weight: 800;
}
.quiz-result { margin-top: 18px; border-right: 4px solid #b99a66; }
.quiz-recommendation { color: #927344; font-size: 1.2rem; font-weight: 800; }

.brew-card h3, .recipe-card h3, .glossary-card h3 { margin-bottom: 10px; color: var(--dark); }
.brew-card p + p, .recipe-card p + p { margin-top: 7px; }
.sustainability-card { border-top: 3px solid #547786; }
.coffee-loop {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius);
  background: #e9e1d0;
  color: #234536;
  font-weight: 700;
}
.coffee-loop b { color: #a17d45; }
.glossary-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.glossary-card { padding: 18px; }

@media (max-width: 800px) {
  .quiz-layout { grid-template-columns: 1fr; }
  .journey-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .comparison-control { gap: 8px; font-size: .88rem; }
  .journey-step { min-height: 78px; padding: 10px; }
  .journey-detail, .comparison-card, .quiz-result { padding: 18px; }
}
