/* ===== Al Madinah Furniture Buyers — brand tokens (green + gold, from logo) ===== */
:root {
  /* palette aligned to the brand assets: forest green + gold ribbon */
  --primary: #1c6b3a;          /* forest green (matches logo + theme-color) */
  --primary-hover: #14522c;    /* darker green for hover */
  --primary-light: #2e8b4f;    /* lighter green for gradients */
  --gold: #d9a441;             /* gold ribbon accent */
  --gold-soft: #e6bd68;
  --yellow: #fbbc34;
  --green: #199a00;
  --green2: #1c6b3a;
  --orange: #e35e03;
  --title: #1f2b23;
  --title2: #33443a;
  --text: #5c6b62;
  --body-bg: #f6f7f4;
  --white: #ffffff;
  --tint-tan: rgba(28,107,58,.06);     /* soft green tint */
  --tint-gray: rgba(217,164,65,.12);   /* soft gold tint */
  --tint-green: rgba(28,107,58,.08);
  --line: #e2e6e0;
  --wa: #25d366;
  --wa-dark: #1da851;
  --radius: 8px;               /* soft, modern corners */
  --container: 1200px;
  --body-font: "Open Sans", "Tajawal", Arial, Helvetica, sans-serif;
  --title-font: "Commissioner", "Cairo", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--text);
  background: var(--body-bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 { font-family: var(--title-font); color: var(--title); line-height: 1.3; }

/* ===== Buttons (sharp, tan accented) ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: var(--radius);
  font-family: var(--title-font); font-weight: 700; font-size: 16px;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn-ico { flex: none; }
.btn-ico-img { flex: none; width: 26px; height: 26px; border-radius: 7px; background: #fff; padding: 2px; box-sizing: border-box; object-fit: contain; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 52px; height: 52px; flex: none; object-fit: contain; }
.logo-text { font-family: var(--title-font); font-weight: 700; font-size: 18px; color: var(--title); }

.main-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.main-nav a {
  padding: 9px 13px; font-size: 15px; font-weight: 600; color: var(--title2);
  font-family: var(--title-font); transition: color .2s;
}
.main-nav a:hover { color: var(--primary); }

.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  background: #fff; border: 2px solid var(--primary);
  color: var(--primary); font-family: var(--title-font); font-weight: 700; font-size: 14px;
  min-width: 46px; height: 40px; padding: 0 12px; border-radius: var(--radius); cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-btn:hover { background: var(--primary); color: #fff; }

.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { width: 24px; height: 2.5px; background: var(--title); border-radius: 0; }

/* ===== Hero (two-column: message panel + branded showcase) ===== */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(217,164,65,.14), transparent 60%),
    linear-gradient(160deg, #f2f6f0 0%, #e8f0e6 100%);
  padding: 72px 0 84px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.hero-text { text-align: right; }
.hero-badge {
  display: inline-block; margin-bottom: 18px;
  background: var(--tint-green); color: var(--primary);
  border: 1px solid rgba(28,107,58,.2);
  font-family: var(--title-font); font-weight: 700; font-size: 14.5px;
  padding: 7px 16px; border-radius: 999px;
}
.hero h1 {
  color: var(--title); font-weight: 800;
  font-size: clamp(23px, 3vw, 36px); line-height: 1.45;
  margin: 0 0 18px;
}
.hero-sub {
  font-size: clamp(19px, 2.4vw, 25px);
  color: var(--gold); font-weight: 700; font-family: var(--title-font);
  margin-bottom: 18px;
}
.hero-contact { font-size: 16.5px; color: var(--title2); margin-bottom: 26px; }
.hero-contact a { color: var(--primary); font-weight: 700; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: 0 26px 60px rgba(28,107,58,.22);
  border: 4px solid #fff;
}
.hero-media img { width: 100%; height: auto; display: block; }

/* ===== About (two-column: text + infographic) ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 42px; align-items: center; }
.about-grid .prose { margin: 0; max-width: none; }
.about-figure img {
  width: 100%; height: auto; border-radius: 14px; border: 4px solid #fff;
  box-shadow: 0 18px 46px rgba(28,107,58,.16);
}

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--tint-tan); }
.section-title {
  font-weight: 800; font-size: clamp(26px, 3.4vw, 40px);
  color: var(--title); text-align: center; margin-bottom: 44px;
  position: relative; padding-bottom: 18px;
}
.section-title::after {
  content: ""; position: absolute; bottom: 0; right: 50%; transform: translateX(50%);
  width: 90px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}

/* ===== Prose ===== */
.prose { max-width: 900px; margin: 0 auto; }
.prose p { margin-bottom: 18px; font-size: 16.5px; color: var(--text); }
.prose-center { text-align: center; }

/* ===== What we buy — alternating image + text rows ===== */
.buy-list { display: grid; gap: 40px; }
.buy-row {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; align-items: stretch;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; scroll-margin-top: 90px;
  box-shadow: 0 14px 38px rgba(28,107,58,.08);
  transition: box-shadow .25s, transform .25s;
}
.buy-row:hover { box-shadow: 0 20px 50px rgba(28,107,58,.14); transform: translateY(-3px); }
.buy-media { display: flex; min-height: 300px; background: #f0f3ee; }
.buy-media img { width: 100%; height: 100%; object-fit: cover; }
.buy-row:nth-child(even) .buy-media { order: 2; }
.buy-text { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.buy-text h3 {
  font-size: clamp(21px, 2.5vw, 27px); color: var(--primary);
  margin-bottom: 16px; padding-bottom: 12px; position: relative; font-weight: 800;
}
.buy-text h3::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 64px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}
.buy-text p { font-size: 16.5px; color: var(--text); margin: 0; }

/* ===== Services (image cards) ===== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  scroll-margin-top: 84px; transition: box-shadow .25s, transform .25s;
}
.service-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.12); transform: translateY(-4px); }
.service-ico {
  height: 128px; display: grid; place-items: center; font-size: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border-bottom: 3px solid var(--gold);
}
.service-card h3 { font-size: 22px; color: var(--title); margin: 22px 24px 12px; }
.service-card p { color: var(--text); font-size: 15.5px; margin: 0 24px 26px; }

/* ===== Why choose us ===== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  border-top: 3px solid var(--primary);
  transition: box-shadow .25s;
}
.why-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.10); }
.why-card h3 { font-size: 19px; color: var(--green2); margin-bottom: 10px; font-weight: 700; }
.why-card p { color: var(--text); font-size: 15px; }

/* ===== Figures (branded infographics) ===== */
.how-figure, .contact-figure, .services-figure, .cond-figure { max-width: 900px; margin: 0 auto 40px; }
.how-figure img, .contact-figure img, .services-figure img, .cond-figure img {
  width: 100%; height: auto; border-radius: 14px;
  border: 4px solid #fff;
  box-shadow: 0 18px 46px rgba(28,107,58,.16);
}
.services-figure { margin: 46px auto 0; }
.cond-figure { max-width: 940px; margin: 0 auto 40px; }
.contact-figure { max-width: 520px; margin: 40px auto 0; }

/* ===== Steps ===== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 42px 22px 28px; text-align: center;
}
.step-num {
  position: absolute; top: -26px; right: 50%; transform: translateX(50%);
  width: 54px; height: 54px; display: grid; place-items: center;
  background: var(--primary); color: #fff;
  font-family: var(--title-font); font-weight: 800; font-size: 24px;
}
.step-card h3 { font-size: 18px; color: var(--title); margin: 8px 0 10px; }
.step-card p { color: var(--text); font-size: 14.5px; }

/* ===== Reviews ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.review-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
}
.review-card::before {
  content: "★★★★★"; color: var(--gold); font-size: 18px; letter-spacing: 2px;
  display: block; margin-bottom: 14px;
}
.review-card blockquote { font-size: 16.5px; color: var(--title2); margin-bottom: 20px; font-style: italic; }
.review-card figcaption { display: flex; align-items: center; gap: 14px; }
.review-avatar {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
  font-family: var(--title-font); font-weight: 700; font-size: 22px;
}
.review-person { display: flex; flex-direction: column; }
.review-person strong { font-family: var(--title-font); color: var(--title); font-size: 16px; font-weight: 700; }
.review-person span { color: var(--text); font-size: 13.5px; }

/* ===== Contact ===== */
.contact-intro { text-align: center; max-width: 780px; margin: 0 auto 36px; font-size: 17px; color: var(--text); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 940px; margin: 0 auto; }
.contact-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px;
  border-inline-start: 4px solid var(--primary);
}
.contact-card h3 { font-size: 19px; color: var(--title); margin-bottom: 8px; font-weight: 700; }
.contact-card p { color: var(--text); font-size: 15.5px; }
.contact-card a { color: var(--green2); font-weight: 700; }
.contact-cta {
  text-align: center; margin: 36px auto 0; max-width: 820px;
  font-size: 18px; font-weight: 700; font-family: var(--title-font); color: var(--primary);
}

/* ===== Summary band ===== */
.summary-band {
  background: var(--title); color: #fff; text-align: center; padding: 60px 0;
}
.summary-band h2 { color: #fff; font-size: clamp(22px, 3vw, 32px); margin-bottom: 14px; }
.summary-band > .container > p { font-size: 17px; color: #d7d2ca; max-width: 780px; margin: 0 auto 26px; }
.summary-list { display: inline-flex; flex-direction: column; gap: 12px; text-align: right; margin: 0 auto 24px; }
.summary-list li { font-size: 17px; color: #ece8e1; }
.summary-list a { color: var(--gold); }
.summary-cta { font-family: var(--title-font); font-weight: 700; font-size: 19px; color: var(--gold); }

/* ===== Quick process ===== */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.quick-item { text-align: center; }
.quick-num {
  width: 60px; height: 60px; margin: 0 auto 14px;
  display: grid; place-items: center;
  background: var(--tint-tan); color: var(--primary);
  font-family: var(--title-font); font-weight: 800; font-size: 26px;
  border: 2px solid var(--primary); border-radius: 50%;
}
.quick-item h4 { font-size: 17px; color: var(--title); margin-bottom: 6px; }
.quick-item p { color: var(--text); font-size: 14.5px; }

/* ===== Footer ===== */
.site-footer { background: #fff; border-top: 3px solid var(--primary); padding: 44px 0 28px; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; }
.footer-brand img { width: 72px; height: 72px; object-fit: contain; }
.footer-brand .logo-text { font-size: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; margin-bottom: 22px; }
.footer-nav a { color: var(--title2); font-family: var(--title-font); font-weight: 600; font-size: 15px; transition: color .2s; }
.footer-nav a:hover { color: var(--primary); }
.copyright { text-align: center; font-size: 14px; color: var(--text); border-top: 1px solid var(--line); padding-top: 22px; }

/* ===== Floating buttons (Click-to-Chat style, bottom-left) ===== */
.floating {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-end;
}
.float-btn {
  position: relative; width: 58px; height: 58px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.28);
  transition: transform .2s;
}
.float-btn:hover { transform: scale(1.07); }
.float-wa { background: #25D366; animation: wa-pop .5s ease-out both, pulse 2.6s 1s infinite; }
.wa-glyph { width: 34px; height: 34px; fill: #fff; }
.float-call { background: var(--primary); }
/* hover CTA pill (plugin style-2) */
.wa-cta {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) scale(.85); transform-origin: right center;
  white-space: nowrap; background: #25D366; color: #fff;
  font-family: var(--title-font); font-weight: 700; font-size: 15px; line-height: 1.6;
  padding: 6px 16px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.float-wa:hover .wa-cta { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }
@keyframes wa-pop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== English (LTR) tweaks ===== */
html[dir="ltr"] .summary-list { text-align: left; }
html[dir="ltr"] body { font-family: "Open Sans", Arial, Helvetica, sans-serif; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-media { order: -1; }
  .hero-text { max-width: none; }
  .buy-row { grid-template-columns: 1fr; }
  .buy-row:nth-child(even) .buy-media { order: 0; }
  .buy-media { min-height: 220px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-grid, .why-grid, .steps-grid, .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid, .contact-grid { grid-template-columns: 1fr; }
  .menu-btn { display: flex; }
  .main-nav {
    order: 4; flex-basis: 100%; flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 460px; padding-bottom: 12px; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .service-grid, .why-grid, .steps-grid, .quick-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 78px; }
}

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid #e3e8e5; border-radius: var(--radius); padding: 0 18px; }
.faq-item summary { cursor: pointer; padding: 16px 0; font-family: var(--title-font); font-weight: 700; color: var(--title); list-style-position: inside; }
.faq-item[open] summary { border-bottom: 1px solid #e3e8e5; }
.faq-item p { margin: 12px 0 16px; }
