/* ================================================
   Happy Melk — International (EN / AR) Stylesheet
   Shared base for en/ and ar/ versions
   ================================================ */

/* -------- CSS VARIABLES -------- */
:root {
  --green:      #8DC63F;
  --green-dark: #2e7d32;
  --green-mid:  #4a9a35;
  --green-light:#a8d65e;
  --green-bg:   #f0f8e8;
  --gray:       #4D4D4D;
  --gray-dark:  #1a1a1a;
  --gray-light: #7a7a7a;
  --gray-50:    #f8f8f8;
  --gray-100:   #f0f0f0;
  --white:      #ffffff;
  --gold:       #c8922a;
  --gold-bg:    #fff8ec;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.13);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --header-h:  70px;
}

/* -------- RESET -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul, ol { list-style: none; padding: 0; }

body {
  color: var(--gray);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* English body */
body.lang-en {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  direction: ltr;
}

/* Arabic body */
body.lang-ar {
  font-family: 'Noto Sans Arabic', 'Tajawal', Tahoma, Arial, sans-serif;
  direction: rtl;
}

/* -------- CONTAINER -------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -------- HEADER -------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.logo-link {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; color: var(--green-dark);
}
.logo-link img { width: 72px; }
.logo-text { font-size: 1.1rem; font-weight: 800; color: var(--green-dark); line-height: 1.2; }
.logo-sub  { font-size: 0.68rem; color: var(--gray-light); font-weight: 400; display: block; }

/* ═══════════════════════════════════════
   DESKTOP NAV — Professional Redesign (EN/AR)
   ═══════════════════════════════════════ */
.main-nav { display: flex; align-items: center; gap: 2px; }

.nav-link {
  padding: 8px 12px; border-radius: 8px;
  font-size: 0.86rem; font-weight: 500; color: var(--gray);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
}
.nav-link:hover { background: var(--green-bg); color: var(--green-dark); }
.nav-link.active { background: var(--green-bg); color: var(--green-dark); font-weight: 600; }

.nav-cta {
  background: var(--green) !important; color: #fff !important;
  padding: 9px 18px !important; border-radius: 9px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 12px rgba(141,198,63,0.28);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  display: inline-flex; align-items: center; gap: 7px;
}
.nav-cta:hover {
  background: var(--green-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(141,198,63,0.38);
}

/* ══════════════════════════════════════
   LANGUAGE SWITCHER — Professional Globe (EN/AR)
   ══════════════════════════════════════ */
.lang-switcher {
  position: relative;
  margin-inline-start: 8px;
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--gray-100);
}
.lang-switcher-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 9px;
  border: 1.5px solid #e0e0e0;
  background: #fff; color: var(--gray);
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap;
  /* inherit font from body so EN/AR both render correctly */
  font-family: inherit;
}
.lang-switcher-btn:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-bg); }
.lang-switcher-btn .globe-icon { font-size: 0.9rem; color: var(--green-dark); }
.lang-switcher-btn .lang-chevron {
  font-size: 0.6rem; opacity: 0.5;
  transition: transform 0.25s ease;
}
.lang-switcher:hover .lang-chevron,
.lang-switcher:focus-within .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  /* LTR: align left edge; RTL (AR): align right */
  left: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.07);
  padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 600;
}
.lang-ar .lang-dropdown { left: auto; right: 0; }
.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-dropdown a,
.lang-dropdown span {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  font-size: 0.84rem; font-weight: 600;
  color: var(--gray); transition: var(--transition);
  white-space: nowrap; text-decoration: none; cursor: pointer;
}
.lang-dropdown a:hover { background: var(--green-bg); color: var(--green-dark); }
.lang-dropdown span.lang-active {
  background: var(--green-bg); color: var(--green-dark);
  pointer-events: none; font-weight: 700;
}
.lang-dropdown .lang-flag-emoji { font-size: 1.1rem; line-height: 1; }
.lang-dropdown .lang-name { flex: 1; }
.lang-dropdown .lang-check { color: var(--green-dark); font-size: 0.75rem; }

/* keep old .lang-btn classes for any still-present markup */
.lang-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 7px;
  font-size: 0.78rem; font-weight: 700;
  color: var(--gray-light); cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: 1px solid transparent;
}
.lang-btn:hover { background: var(--green-bg); color: var(--green-dark); }
.lang-btn.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.lang-btn .lang-flag { font-size: 1rem; }

/* HAMBURGER */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 6px;
}
.hamburger span { width: 22px; height: 2px; background: var(--gray-dark); border-radius: 2px; transition: var(--transition); }

/* MOBILE NAV */
.mobile-nav {
  display: none; position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: #fff; z-index: 999; max-height: 85vh; overflow-y: auto;
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.mobile-nav.open { display: block; }
.mobile-nav-list { padding: 12px 0; }
.mobile-nav-list li { border-bottom: 1px solid var(--gray-100); }
.mobile-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; font-size: 0.93rem; font-weight: 500;
  color: var(--gray-dark);
  transition: background var(--transition);
}
.mobile-nav-link:hover { background: var(--green-bg); color: var(--green-dark); }
.mobile-nav-link i { width: 18px; color: var(--green); }
.mobile-cta {
  background: var(--green) !important; color: #fff !important;
  margin: 10px 16px; border-radius: 10px;
}
.mobile-cta i { color: #fff !important; }
.mobile-lang-row {
  display: flex; gap: 8px; padding: 12px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-lang-btn {
  flex: 1; text-align: center; padding: 9px 0;
  border-radius: 8px; font-size: 0.82rem; font-weight: 700;
  border: 1px solid var(--gray-200); color: var(--gray);
}
.mobile-lang-btn:hover { background: var(--green-bg); border-color: var(--green); color: var(--green-dark); }
.mobile-lang-btn.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }

/* -------- HERO -------- */
.hero-section {
  min-height: 100svh; display: flex; align-items: center;
  background-size: cover; background-position: center; position: relative;
  padding-top: var(--header-h);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(150deg,rgba(15,30,16,0.93) 0%,rgba(30,55,30,0.86) 60%,rgba(10,20,12,0.90) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px; padding: 60px 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(141,198,63,0.15); border: 1px solid rgba(141,198,63,0.35);
  color: var(--green-light); padding: 6px 16px; border-radius: 30px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; color: #fff; line-height: 1.2;
  margin-bottom: 20px; letter-spacing: -0.01em;
}
.hero-title span { color: var(--green); }
.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,0.78); margin-bottom: 32px; line-height: 1.7;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px; font-size: 0.93rem; font-weight: 700;
  cursor: pointer; transition: all var(--transition); border: none;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(141,198,63,0.35); }
.btn-outline { background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.35); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.18); }
.btn-dark { background: var(--green-dark); color: #fff; }
.btn-dark:hover { background: #1b5e20; }

/* Hero trust strip */
.hero-trust {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 36px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12);
}
.trust-item {
  display: flex; flex-direction: column;
}
.trust-num { font-size: 1.5rem; font-weight: 900; color: var(--green); line-height: 1; }
.trust-lbl { font-size: 0.73rem; color: rgba(255,255,255,0.55); margin-top: 3px; }

/* -------- SECTIONS SHARED -------- */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: linear-gradient(135deg, #1a3a1a, #2e5d2e); }

.section-label {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-bg); color: var(--green-dark);
  padding: 5px 16px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 700; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; color: var(--gray-dark); margin-bottom: 12px;
}
.section-title span { color: var(--green); }
.section-sub {
  font-size: 0.97rem; color: var(--gray-light);
  max-width: 640px; line-height: 1.8;
}
.section-header { text-align: center; margin-bottom: 48px; }

/* -------- CARDS -------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 28px 24px; border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--green-bg); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 18px;
}
.card-title { font-size: 1.05rem; font-weight: 800; color: var(--gray-dark); margin-bottom: 8px; }
.card-text  { font-size: 0.87rem; color: var(--gray-light); line-height: 1.85; }

/* -------- ACCORDION (FAQ) -------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-100); overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--gray-dark);
  font-size: 0.95rem; gap: 12px;
}
.faq-q i { color: var(--green); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.3s; font-size: 0.88rem; color: var(--gray-light); line-height: 1.9; }
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 20px; }

/* -------- REGIONS STRIP -------- */
.regions-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.region-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--green-bg);
  padding: 7px 16px; border-radius: 30px;
  font-size: 0.83rem; font-weight: 600; color: var(--green-dark);
  transition: background var(--transition), border-color var(--transition);
}
.region-tag:hover { background: var(--green-bg); }
.region-tag i { color: var(--green); }

/* -------- LEGAL / STEPS -------- */
.steps-list { display: flex; flex-direction: column; gap: 20px; max-width: 740px; }
.step-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border-radius: var(--radius); padding: 22px 20px;
  border: 1px solid var(--gray-100);
}
.step-num {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
}
.step-title { font-size: 0.97rem; font-weight: 700; color: var(--gray-dark); margin-bottom: 5px; }
.step-text  { font-size: 0.85rem; color: var(--gray-light); line-height: 1.85; }

/* -------- CONTACT / WHATSAPP -------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-card {
  background: var(--gray-50); border-radius: var(--radius-lg); padding: 32px 28px;
  border: 1px solid var(--gray-100);
}
.contact-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--green-bg); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  margin-bottom: 16px;
}
.contact-title { font-size: 1rem; font-weight: 800; color: var(--gray-dark); margin-bottom: 8px; }
.contact-val { font-size: 1.15rem; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.contact-note { font-size: 0.8rem; color: var(--gray-light); }
.wa-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
  margin-top: 20px;
}
.wa-btn:hover { background: #1da851; transform: translateY(-2px); }
.wa-btn i { font-size: 1.15rem; }

/* -------- TERMS / PRIVACY -------- */
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-section { margin-bottom: 44px; }
.legal-section h2 {
  font-size: 1.1rem; font-weight: 800; color: var(--green-dark);
  border-inline-start: 4px solid var(--green);
  padding-inline-start: 14px; margin-bottom: 16px;
}
.legal-section p { font-size: 0.9rem; color: var(--gray); line-height: 2; margin-bottom: 10px; }
.legal-section ul { display: flex; flex-direction: column; gap: 8px; padding-inline-start: 20px; }
.legal-section ul li { font-size: 0.88rem; color: var(--gray); line-height: 1.85; list-style: disc; }

/* -------- DISCLAIMER BANNER -------- */
.disclaimer-bar {
  background: #fff8ec; border: 1px solid #f0c070;
  border-radius: var(--radius); padding: 14px 20px;
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 32px;
}
.disclaimer-bar i { color: #c8922a; font-size: 1.1rem; margin-top: 3px; flex-shrink: 0; }
.disclaimer-bar p { font-size: 0.82rem; color: #7a5800; line-height: 1.8; }

/* -------- FOOTER -------- */
.site-footer {
  background: #0f1f10;
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-name { font-size: 1.25rem; font-weight: 800; color: var(--green); margin-bottom: 10px; }
.footer-brand-desc { font-size: 0.82rem; line-height: 1.9; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--green); color: #fff; }
.footer-col-title { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-links a:hover { color: var(--green); }
.footer-bottom {
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--green); }

/* -------- PAGE HERO (inner pages) -------- */
.page-hero {
  background: linear-gradient(135deg, #1a3a1a 0%, #2e5d2e 100%);
  padding: 80px 0 60px;
  margin-top: var(--header-h);
}
.page-hero-label {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(141,198,63,0.15); border: 1px solid rgba(141,198,63,0.3);
  color: var(--green-light); padding: 5px 14px; border-radius: 20px;
  font-size: 0.76rem; font-weight: 700; margin-bottom: 16px;
}
.page-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 14px;
}
.page-hero-sub {
  font-size: 0.97rem; color: rgba(255,255,255,0.65);
  max-width: 580px; line-height: 1.8;
}

/* -------- HIGHLIGHT BOX -------- */
.highlight-box {
  background: var(--green-bg); border-radius: var(--radius-lg); padding: 28px 24px;
  border: 1px solid rgba(141,198,63,0.25);
}
.highlight-box h3 { font-size: 1rem; font-weight: 800; color: var(--green-dark); margin-bottom: 10px; }
.highlight-box p { font-size: 0.87rem; color: var(--gray); line-height: 1.85; }

/* -------- BACK TO TOP -------- */
.back-to-top {
  position: fixed; bottom: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  opacity: 0; pointer-events: none; transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 4px 14px rgba(141,198,63,0.4);
  z-index: 900;
}
body.lang-en .back-to-top { right: 24px; }
body.lang-ar .back-to-top { left:  24px; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* -------- BREADCRUMB -------- */
.intl-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 0 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  max-width: 900px;
  margin: 0 auto;
}
.intl-breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
}
.intl-breadcrumb a:hover { color: var(--green-light); }
.intl-breadcrumb .bc-sep {
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
  margin: 0 2px;
}
.intl-breadcrumb .bc-current {
  color: var(--green-light);
  font-weight: 600;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .hero-actions { flex-direction: column; }
  .hero-trust { gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
