/* ==========================================================================
   Mobile Data Balance & Usage Guide (Qatar) — Stylesheet
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6fa;
  --color-bg-soft: #eef2f8;
  --color-border: #e2e7ef;
  --color-text: #0e1a2b;
  --color-text-muted: #5a6677;
  --color-text-soft: #7a8696;
  --color-blue: #1f4ed8;
  --color-blue-dark: #163ea8;
  --color-blue-soft: #e7edfb;
  --color-accent: #0a2240;
  --max-width: 1140px;
  --content-width: 720px;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.04);
  --shadow-md: 0 8px 24px -12px rgba(14, 26, 43, 0.18);
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif Pro", "Georgia", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--color-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
a:hover { color: var(--color-blue-dark); border-bottom-color: var(--color-blue-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--color-accent);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 1.65rem; font-weight: 700; margin-top: 2em; }
h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.6em; }
p  { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1em; }
li { margin-bottom: .35em; }
small { color: var(--color-text-muted); font-size: .85rem; }

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 3rem 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  color: var(--color-accent);
  border-bottom: 0;
}
.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--color-blue);
  color: #fff;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: .9rem;
  letter-spacing: -0.02em;
}
.brand-name { font-size: 1rem; line-height: 1.1; }
.brand-name small { display: block; color: var(--color-text-muted); font-weight: 400; }

.nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: .95rem;
  border-bottom: 0;
}
.nav a:hover { color: var(--color-blue-dark); }
.nav a.active { color: var(--color-accent); }

/* ---------- Hero / Page intro ---------- */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}
.hero .eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.65;
}
.hero .ctas { margin-top: 1.75rem; display: flex; gap: .75rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
}
.btn-primary:hover { background: var(--color-blue-dark); border-color: var(--color-blue-dark); border-bottom-color: var(--color-blue-dark); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-border);
}
.btn-secondary:hover { background: var(--color-bg-soft); color: var(--color-accent); border-bottom-color: var(--color-border); }

/* ---------- Sections ---------- */
section { padding: 3.5rem 0; }
section.alt { background: var(--color-bg-alt); }
.section-title {
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-blue);
  font-weight: 600;
  margin-bottom: .75rem;
}

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--color-blue); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 0; }
.card p { color: var(--color-text-muted); margin-bottom: 0; }
.card a.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  font-size: .9rem;
  border-bottom: 0;
  color: var(--color-blue);
}
.card a.card-link::after { content: " →"; transition: margin .2s; }
.card a.card-link:hover::after { margin-left: .25rem; }

/* ---------- Stat / Data strip ---------- */
.stat-strip {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2.5rem 0;
}
.stat {
  background: var(--color-bg);
  padding: 1.5rem;
}
.stat .num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  display: block;
}
.stat .label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-text-muted);
  margin-top: .25rem;
}

/* ---------- Notice / Disclaimer banner ---------- */
.notice {
  border-left: 3px solid var(--color-blue);
  background: var(--color-blue-soft);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-accent);
  margin: 2rem 0;
  font-size: .95rem;
}
.notice strong { color: var(--color-blue-dark); }

/* ---------- Article body ---------- */
.article {
  padding: 3.5rem 0 5rem;
}
.article p, .article ul, .article ol { font-size: 1.04rem; line-height: 1.75; color: #1c2a40; }
.article h2 { margin-top: 2.5em; }
.article .meta {
  color: var(--color-text-muted);
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.article .related {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* ---------- Data motif (decorative SVG bars) ---------- */
.data-motif {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 48px;
  margin: 1rem 0 0;
}
.data-motif span {
  display: block;
  width: 8px;
  background: var(--color-blue);
  border-radius: 2px 2px 0 0;
  opacity: .85;
}
.data-motif span:nth-child(1) { height: 20%; }
.data-motif span:nth-child(2) { height: 55%; }
.data-motif span:nth-child(3) { height: 35%; }
.data-motif span:nth-child(4) { height: 70%; }
.data-motif span:nth-child(5) { height: 45%; }
.data-motif span:nth-child(6) { height: 90%; opacity: 1; }
.data-motif span:nth-child(7) { height: 60%; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-accent);
  color: #c8d3e3;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.site-footer h4 {
  color: #fff;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.site-footer a { color: #c8d3e3; border-bottom: 0; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  margin-bottom: 2rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; font-size: .9rem; }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  font-size: .82rem;
  color: #8e9fb6;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.35rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: .85rem; }
  .nav { gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .legal { flex-direction: column; }
}
