/* Umrī marketing site — shared styles.
   Palette/type match the Android app exactly (app/src/main/res/values/colors.xml) so the site and
   the app read as the same product, not a separate re-skin. */

@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/Metropolis-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/Metropolis-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/Metropolis-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/Metropolis-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --deep-emerald: #0D5B43;
  --dark-forest: #083A2F;
  --emerald-bright: #3DBE8F;
  --emerald-100: #D9EDE4;
  --emerald-50: #EFF7F3;
  --warm-ivory: #FAF6EC;
  --ivory-surface: #FFFFFF;
  --muted-gold: #B8935A;
  --muted-gold-dark: #D8AE73;
  --gold-50: #FBF3E6;
  --text-primary: #1C2620;
  --text-secondary: #5B6B62;
  --alert-red: #C0392B;
  --border-soft: #E7E6E1;
  --font-body: 'Metropolis', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Cairo', var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--warm-ivory);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--deep-emerald);
}
.brand img { width: 34px; height: 34px; }
.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.main-nav a:hover { background: var(--emerald-50); }
.main-nav a.current { color: var(--deep-emerald); background: var(--emerald-100); font-weight: 600; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--deep-emerald);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--deep-emerald); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(13, 91, 67, 0.28); }
.btn-outline { background: transparent; color: var(--deep-emerald); border-color: var(--deep-emerald); }
.btn-outline:hover { background: var(--emerald-50); }
.btn-disabled {
  background: var(--border-soft);
  color: var(--text-secondary);
  cursor: not-allowed;
  pointer-events: none;
}
.btn-gold { background: var(--muted-gold); color: #fff; }
.btn-gold:hover { box-shadow: 0 8px 20px rgba(184, 147, 90, 0.32); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--dark-forest) 0%, var(--deep-emerald) 100%);
  color: #fff;
  padding: 76px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-arabic {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--muted-gold-dark);
  margin-bottom: 6px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  margin: 0 0 18px;
  max-width: 760px;
}
.hero p.lede {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.hero-note { font-size: 13px; color: rgba(255, 255, 255, 0.55); margin-top: 12px; }

/* ---------- Screenshot gallery ---------- */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .screenshot-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .screenshot-strip { grid-template-columns: 1fr; max-width: 280px; margin-left: auto; margin-right: auto; }
}
.phone-frame {
  background: var(--dark-forest);
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 18px 34px rgba(8, 58, 47, 0.18);
}
.phone-frame .screen-crop {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 9 / 13;
  background: var(--warm-ivory);
}
.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.screenshot-caption {
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 12px;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-gold);
  margin: 0 0 10px;
}
.section-title { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 14px; color: var(--deep-emerald); }
.section-lede { color: var(--text-secondary); max-width: 640px; font-size: 16.5px; margin: 0 0 40px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--ivory-surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 28px 24px;
}
.feature-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--emerald-50);
  color: var(--deep-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--text-secondary); font-size: 14.5px; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

.callout {
  background: var(--dark-forest);
  color: #fff;
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 24px;
  align-items: center;
}
@media (max-width: 700px) {
  .callout { grid-template-columns: 1fr; text-align: center; }
}
.callout h2 { margin: 0 0 10px; font-size: 26px; }
.callout p { margin: 0; color: rgba(255, 255, 255, 0.75); }

/* ---------- Banner (sample-data warning etc.) ---------- */
.banner {
  background: var(--gold-50);
  border: 1px solid var(--muted-gold-dark);
  color: #6b4d1f;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14.5px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.banner strong { color: var(--deep-emerald); }

/* ---------- Operator cards ---------- */
.operator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 32px;
}
.operator-card {
  background: var(--ivory-surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 24px;
  position: relative;
}
.sample-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--alert-red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.operator-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--deep-emerald);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}
.operator-card h3 { margin: 0 0 4px; font-size: 17px; padding-right: 60px; }
.operator-meta { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 12px; }
.operator-meta span { display: inline-block; background: var(--emerald-50); color: var(--deep-emerald); border-radius: 999px; padding: 3px 10px; margin-right: 6px; margin-bottom: 6px; }
.operator-card p.desc { font-size: 14px; color: var(--text-secondary); margin: 0 0 14px; }
.operator-card .verified-badge { font-size: 12.5px; font-weight: 600; color: var(--muted-gold); display: flex; align-items: center; gap: 6px; }

/* ---------- Portal perks ---------- */
.perk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.perk-list li { display: flex; gap: 14px; align-items: flex-start; }
.perk-list .tick {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--emerald-100);
  color: var(--deep-emerald);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  margin-top: 2px;
}
.perk-list div strong { display: block; margin-bottom: 2px; }
.perk-list div span { color: var(--text-secondary); font-size: 14.5px; }

.contact-card {
  background: var(--ivory-surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 36px;
  text-align: center;
}
.contact-card h3 { margin: 0 0 10px; font-size: 20px; }
.contact-card p { color: var(--text-secondary); margin: 0 0 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-forest);
  color: rgba(255, 255, 255, 0.7);
  padding: 52px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: rgba(255, 255, 255, 0.7); }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom img { height: 22px; }
.footer-bottom small { color: rgba(255, 255, 255, 0.5); }

/* ---------- Simple page header (non-home pages) ---------- */
.page-header {
  background: linear-gradient(180deg, var(--dark-forest) 0%, var(--deep-emerald) 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.page-header .section-eyebrow { color: var(--muted-gold-dark); }
.page-header h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); }
.page-header p { color: rgba(255, 255, 255, 0.8); max-width: 640px; margin: 0; font-size: 16.5px; }

/* ---------- Responsive nav ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--warm-ivory);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 18px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 6px; border-radius: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
