/* ═══════════════════════════════════════════
   Bugshah brand tokens
   Palette extracted from the official logo
   ═══════════════════════════════════════════ */
:root {
  --teal: #2A8590;
  --teal-dark: #1E6570;
  --orange: #C2611E;
  --brick: #8E3434;
  --charcoal: #283231;
  --cream: #FAFAF8;
  --sand: #F3EFE8;
  --ink: #222928;
  --ink-soft: #5A6462;

  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --font-en: "Montserrat", "IBM Plex Sans Arabic", sans-serif;

  --radius: 14px;
  --container: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ar);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.8;
}

html[lang="en"] body { font-family: var(--font-en); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(40, 50, 49, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 44px; width: auto; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-inline-start: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--teal); }

.lang-toggle {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 7px 16px;
  border: 1.5px solid var(--charcoal);
  border-radius: 8px;
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-toggle:hover { background: var(--charcoal); color: var(--cream); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
  padding: 110px 0 130px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Crect x='32' y='32' width='8' height='8' rx='1.5' transform='rotate(45 36 36)' fill='%23FAFAF8'/%3E%3C/svg%3E");
  background-size: 72px 72px;
}

.hero-inner { position: relative; z-index: 2; }

.hero-kicker {
  color: #7FC4CC;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-sub {
  max-width: 620px;
  margin-inline: auto;
  font-size: 18px;
  font-weight: 300;
  color: rgba(250, 250, 248, 0.85);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #A9511A; }

.btn-ghost {
  border: 1.5px solid rgba(250, 250, 248, 0.5);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--cream); background: rgba(250,250,248,0.08); }

/* decorative logo-inspired shapes */
.hero-shapes {
  position: absolute;
  bottom: -34px;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  gap: 22px;
  z-index: 1;
}

.shape {
  width: 88px;
  height: 88px;
  border-radius: 50% 50% 8px 8px;
  opacity: 0.9;
}

.shape-teal { background: var(--teal); border-radius: 8px 8px 50% 50%; }
.shape-orange { background: var(--orange); }
.shape-red { background: var(--brick); border-radius: 50%; }
.shape-dark { background: #3A4644; border-radius: 8px 8px 50% 50%; }

/* ─── Sections ─── */
.section { padding: 96px 0; }

.section-tinted { background: var(--sand); }

.section-kicker {
  color: var(--orange);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 40px;
}

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-text p {
  margin-bottom: 18px;
  font-size: 17px;
  color: var(--ink-soft);
}

.about-text p:first-child {
  font-size: 19px;
  color: var(--ink);
  font-weight: 500;
}

.about-text .about-closing {
  font-weight: 700;
  color: var(--charcoal);
}

.about-facts {
  display: grid;
  gap: 16px;
}

.fact {
  border-inline-start: 3px solid var(--orange);
  padding: 6px 22px;
}

.fact:nth-child(2) { border-color: var(--teal); }
.fact:nth-child(3) { border-color: var(--brick); }

.fact-num {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.3;
}

.fact-label { font-size: 14.5px; color: var(--ink-soft); }

/* ─── Experience cards ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid rgba(40, 50, 49, 0.15);
}

.card {
  padding: 30px 4px 34px;
  border-bottom: 1px solid rgba(40, 50, 49, 0.15);
  margin-inline-end: 40px;
}

.card-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  transform: rotate(45deg);
  margin: 4px 6px 22px;
}

.card-icon svg { display: none; }

.icon-teal { background: var(--teal); }
.icon-orange { background: var(--orange); }
.icon-red { background: var(--brick); }
.icon-dark { background: var(--charcoal); }

.card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.card p { font-size: 15px; color: var(--ink-soft); }

/* premium tier: spans the full grid width */
.card-feature {
  grid-column: 1 / -1;
  margin-inline-end: 0;
  margin-top: 34px;
  border-bottom: none;
  border-radius: 14px;
  background: var(--charcoal);
  padding: 34px 36px 38px;
}

.card-feature h3 {
  font-size: 22px;
  color: var(--cream);
}

.card-feature p {
  font-size: 16px;
  color: rgba(250, 250, 248, 0.82);
  max-width: 640px;
}

/* ─── Why ─── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}

.why-item { display: flex; gap: 18px; align-items: flex-start; }

.why-num {
  flex-shrink: 0;
  position: relative;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 6px 0;
}

.why-num::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 8px;
  transform: rotate(45deg);
  background: var(--teal);
  z-index: -1;
}

.why-item:nth-child(2) .why-num::before { background: var(--orange); }
.why-item:nth-child(3) .why-num::before { background: var(--brick); }

.why-item h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.why-item p { font-size: 15px; color: var(--ink-soft); }

/* ─── Contact ─── */
.section-contact {
  background: var(--teal);
  color: var(--cream);
  text-align: center;
}

.section-contact .section-title { color: #fff; margin-bottom: 12px; }

.contact-sub {
  font-size: 17px;
  color: rgba(250, 250, 248, 0.9);
  margin-bottom: 34px;
}

.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-link {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 500;
  font-family: var(--font-en);
  transition: background 0.2s;
}

.contact-link:hover { background: rgba(255, 255, 255, 0.22); }

.contact-link svg { width: 20px; height: 20px; }

/* ─── Footer ─── */
.site-footer {
  background: var(--charcoal);
  color: rgba(250, 250, 248, 0.7);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner p { font-size: 14px; }

/* ─── Responsive ─── */
@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(40, 50, 49, 0.08);
    padding: 8px 24px 16px;
  }

  .nav-links.open { display: flex; }

  .nav-links li { padding: 10px 0; }

  .nav-burger { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }

  .about-facts { grid-template-columns: repeat(3, 1fr); }

  .hero { padding: 80px 0 110px; }

  .shape { width: 64px; height: 64px; }

  .section { padding: 68px 0; }
}

@media (max-width: 540px) {
  .about-facts { grid-template-columns: 1fr; }
}
