/* Jabur Media public site, lamar.com layout language: white space, near-black bold
   headings, square-cornered buttons, photos edge to edge. Capital Media cyan is the
   accent only (rules, codes, pins, focus), never a background wash.
   Light only. Direction-aware through logical properties, so Arabic (dir=rtl) mirrors. */

:root {
  --cyan: #00a8e8;
  --cyan-text: #0079b0;
  --bg: #ffffff;
  --bg-soft: #f4f5f6;
  --bg-tint: #eaf6fc;
  --ink: #111820;
  --muted: #55606b;
  --line: #e1e4e7;
  --navy: #111820;
  --pill: #f4f5f6;
  --whatsapp: #0f7a3e;
  --radius: 8px;
  --font: "DM Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
html[lang="ar"] body { font-family: var(--font-ar); }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.03em; font-weight: 700; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--cyan-text); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

.skip {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 4px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---- Buttons and pills ---- */
.btn, .pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 4px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.btn { padding: 14px 28px; font-size: 1.0625rem; letter-spacing: .01em; transition: background-color .15s ease, color .15s ease; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-cyan { background: var(--ink); color: #fff; }
.btn-cyan:hover { background: var(--cyan-text); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.pill { padding: 9px 20px; background: var(--pill); color: var(--ink); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 8px; min-height: 76px; }
.header-gap { flex: 1; }
.wordmark {
  display: inline-flex; align-items: center; gap: .32em; color: var(--ink); text-decoration: none;
  font-family: "DM Sans", system-ui, sans-serif; font-size: 1.375rem; letter-spacing: .06em;
  white-space: nowrap; line-height: 1; direction: ltr; /* the Latin name never reverses in Arabic */
}
@media (max-width: 479px) { .wordmark { font-size: 1.0625rem; } } /* room for Login + ☰ */
.wordmark b { font-weight: 900; }
.wordmark span:last-child { font-weight: 400; }
.wordmark-rule { width: 5px; height: 1.15em; background: var(--cyan); margin-inline-end: .3em; }
.header-nav { display: none; }
.lang-toggle { display: none; }
.burger {
  width: 44px; height: 44px; border-radius: 4px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-size: 1.25rem; display: inline-flex; align-items: center; justify-content: center;
}
@media (min-width: 900px) {
  .header-nav { display: flex; gap: 4px; }
  .header-nav a {
    padding: 10px 16px; text-decoration: none; font-weight: 500; font-size: 1.0625rem; color: var(--ink);
    border-bottom: 2px solid transparent;
  }
  .header-nav a:hover { color: var(--cyan-text); }
  .header-nav a[aria-current="page"] { border-bottom-color: var(--cyan); }
  .lang-toggle {
    display: inline-block; margin-inline-start: 12px; padding: 9px 16px; border: 1px solid var(--line);
    border-radius: 4px; background: #fff; font-weight: 500; font-size: .9375rem;
  }
  .lang-toggle:lang(ar) { font-family: var(--font-ar); }
  .lang-toggle:hover { border-color: var(--ink); }
  .burger { display: none; }
}
.menu {
  position: absolute; top: calc(100% + 1px); inset-inline-end: 16px;
  width: min(300px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(17, 24, 32, .14); padding: 12px;
}
@media (min-width: 768px) { .menu { inset-inline-end: 32px; } }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a {
  padding: 12px 14px; border-radius: 4px; text-decoration: none; font-weight: 500; font-size: 1.1875rem;
}
.menu-nav a:hover { background: var(--bg-soft); }
.menu-nav a[aria-current="page"] { color: var(--cyan-text); font-weight: 700; }
.lang-switch {
  margin: 10px 14px 4px; padding: 8px 20px; border-radius: 4px; border: 1px solid var(--line);
  background: #fff; font-weight: 700; font-size: 1rem;
}
.lang-switch:lang(ar) { font-family: var(--font-ar); }

/* ---- Home: hero ---- */
.hero { text-align: center; padding-block: clamp(56px, 9vw, 104px) clamp(40px, 6vw, 72px); background: var(--bg); }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5.25rem); max-width: 13em; margin-inline: auto; }
.lead { color: var(--muted); font-size: 1.1875rem; max-width: 40rem; margin: 22px auto 0; }

/* ---- Home: photo band ---- */
.band {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  min-height: clamp(300px, 46vw, 620px); overflow: hidden; background: #3b4650;
  padding-block-end: clamp(28px, 5vw, 56px);
}
.band-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 55%, rgba(10, 16, 22, .45));
}
.band .btn { position: relative; z-index: 1; }

/* ---- Home: sections ---- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section.soft { background: var(--bg-soft); }
.section.tint { background: var(--bg-soft); }
.section h2, .cta h2 { text-align: center; font-size: clamp(1.875rem, 4vw, 2.75rem); margin-bottom: 36px; }

.format-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 720px) { .format-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.fmt {
  display: flex; flex-direction: column; overflow: hidden; background: #fff; text-decoration: none;
}
.fmt-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: opacity .15s ease; }
.fmt:hover .fmt-photo { opacity: .88; }
.placeholder { background: linear-gradient(135deg, #cfd6dc, #eef1f3); }
.fmt-body { display: flex; flex-direction: column; padding: 12px 2px 4px; }
.fmt-name { font-weight: 700; font-size: 1.1875rem; }
.fmt:hover .fmt-name { color: var(--cyan-text); }
.fmt-count { color: var(--muted); font-size: .9375rem; }

/* ---- Board card: one look for Home's featured strip and the Locations rows ---- */
.board-card {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; text-align: start; font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.board-card:hover { border-color: var(--ink); }
.board-card-thumb { flex: none; width: 76px; height: 76px; border-radius: 4px; object-fit: cover; }
.board-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.board-card-title { font-weight: 700; line-height: 1.3; }
.board-card-code { color: var(--cyan-text); unicode-bidi: isolate; }
.board-card-meta { color: var(--muted); font-size: .9375rem; }

/* ---- Home: Find a location ---- */
.find-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .find-grid { grid-template-columns: 1.25fr 1fr; align-items: stretch; } }
.find-map {
  min-height: 260px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #e9edf0;
}
@media (min-width: 900px) { .find-map { min-height: 380px; } }
.find-cards { display: grid; gap: 10px; align-content: start; }
.find-all-row { text-align: center; margin: 26px 0 0; }
.pin { background: none; border: 0; }
.pin-dot {
  display: flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--cyan); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 32, .35); color: #fff; font: 700 12px/1 "DM Sans", sans-serif;
}

/* Campaigns carousel: a scroll-snap track, so swipe works without script. */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--radius); scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.story {
  position: relative; scroll-snap-align: start; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5; display: flex; align-items: flex-end; color: #fff;
}
@media (min-width: 720px) { .story { aspect-ratio: 16 / 7; } }
.story-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-text {
  position: relative; width: 100%; padding: 64px 24px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
}
.story-text h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.story-text p { margin: 8px 0 0; max-width: 40rem; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--navy);
  font-size: 1.75rem; line-height: 1; box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}
.carousel-btn.prev { inset-inline-start: 12px; }
.carousel-btn.next { inset-inline-end: 12px; }
[dir="rtl"] .carousel-btn { transform: translateY(-50%) scaleX(-1); }
.dots { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.dot { width: 28px; height: 28px; border: 0; background: none; padding: 9px; }
.dot::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--cyan); }
.dot[aria-current="true"]::before { background: var(--cyan); }

/* Why Jabur Media: figures under a cyan rule, no boxes. */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; text-align: start; }
.why > div { border-top: 3px solid var(--cyan); padding-top: 20px; }
.why b { display: block; color: var(--ink); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(2.75rem, 6vw, 4rem); line-height: 1.05; }
.why b.why-text { font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.2; }
.why span { color: var(--muted); font-size: 1.0625rem; }

/* Closing band */
.cta { background: var(--ink); color: #fff; text-align: center; padding-block: clamp(64px, 9vw, 104px); }
.cta .btn-cyan { background: #fff; color: var(--ink); }
.cta .btn-cyan:hover { background: var(--cyan); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* "Talk to us" side tab (physical sides: vertical writing-mode remaps logical ones). */
.talk-tab {
  position: fixed; right: 0; top: 42%; z-index: 40;
  writing-mode: vertical-rl; padding: 18px 11px; border-radius: 4px 0 0 4px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: .9375rem; letter-spacing: .02em;
  text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.talk-tab:hover { background: var(--cyan-text); }
@media (max-width: 767px) { .talk-tab { top: auto; bottom: 22%; } } /* clear of the opening text */
[dir="rtl"] .talk-tab { right: auto; left: 0; border-radius: 0 4px 4px 0; }

/* ---- Inner pages ---- */
.page { padding-block: 56px 72px; }
.narrow { max-width: calc(46rem + 64px); }
.page h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
.page .lead { margin-inline: 0; }
.page p { font-size: 1.0625rem; max-width: 42rem; }
.page .btn { margin-top: 16px; }

.contact-list { margin: 36px 0 0; display: grid; gap: 12px; }
.contact-row {
  display: grid; gap: 2px; padding: 18px 22px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--line);
}
@media (min-width: 600px) { .contact-row { grid-template-columns: 12rem 1fr; align-items: baseline; } }
.contact-row dt { color: var(--muted); font-weight: 500; }
.contact-row dd { margin: 0; font-weight: 700; font-size: 1.1875rem; }
.contact-row dd a { color: var(--navy); }
.coming-soon { color: var(--muted); font-weight: 500; font-style: italic; }
.office-map { margin-top: 40px; }
.office-map h2 { font-size: 1.5rem; margin-bottom: 14px; }
.map-box { height: 340px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

/* ---- Locations (mockup board-map.html): list | map, the board card over the map ---- */
.loc-page { padding-block: 28px 56px; }
.loc-page h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 18px; }
.loc-tabs { display: none; }
.loc-body {
  position: relative; display: grid; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
}
@media (min-width: 768px) {
  .loc-body { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); height: clamp(560px, calc(100vh - 190px), 860px); }
  .loc-side { overflow-y: auto; border-inline-end: 1px solid var(--line); }
}
.loc-side { background: #fff; padding: 16px; min-width: 0; }
.loc-search {
  width: 100%; padding: 12px 18px; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.chip {
  padding: 6px 14px; border-radius: 4px; border: 1px solid var(--line); background: #fff;
  font-weight: 500; font-size: .9375rem; color: var(--ink);
}
.chip:hover { border-color: var(--cyan); }
/* Selected: tint + cyan rule + navy text, so the small chip text keeps its contrast. */
.chip[aria-pressed="true"] { background: var(--bg-tint); border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); color: var(--navy); font-weight: 700; }
.chip-count { color: var(--cyan-text); font-weight: 700; }
.loc-count { color: var(--muted); font-size: .9375rem; margin: 0 0 8px; }
.page p.loc-empty { color: var(--muted); font-size: 1rem; }
.loc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board-card[aria-current="true"] { background: var(--bg-tint); border-color: var(--cyan); }
.board-card-note { color: var(--cyan-text); font-size: .875rem; font-weight: 500; }

.loc-mapwrap { display: flex; flex-direction: column; min-width: 0; }
.page p.loc-map-count {
  margin: 0; max-width: none; padding: 8px 16px; font-size: .875rem; color: var(--muted);
  background: #fff; border-bottom: 1px solid var(--line);
}
.loc-map { flex: 1; min-height: 0; background: #e9edf0; }
.leaflet-container { font-family: var(--font); }
.pin.is-selected .pin-dot { background: var(--navy); transform: scale(1.25); }
.pin-list-title { margin: 0 0 8px; font-weight: 700; font-size: .875rem; }
.pin-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board-card-compact { gap: 10px; padding: 6px; border-radius: 4px; font-size: .875rem; }
.board-card-compact .board-card-thumb { width: 44px; height: 44px; border-radius: 8px; }
.board-card-compact .board-card-meta { font-size: .8125rem; }

.loc-card {
  position: absolute; top: 52px; inset-inline-end: 16px; z-index: 1100;
  width: min(340px, calc(100% - 32px)); max-height: calc(100% - 68px); overflow-y: auto;
  background: #fff; border-radius: var(--radius); box-shadow: 0 12px 36px rgba(17, 24, 32, .2);
}
.loc-card-close {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92);
  color: var(--navy); font-size: 1rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.loc-card-photo { position: relative; aspect-ratio: 16 / 10; }
.loc-card-img { width: 100%; height: 100%; object-fit: cover; }
.loc-card-counter {
  position: absolute; bottom: 8px; inset-inline-end: 10px; padding: 2px 10px; border-radius: 3px;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: .8125rem; font-weight: 700;
}
.loc-card-step {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92);
  color: var(--navy); font-size: 1.5rem; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.loc-card-step.prev { inset-inline-start: 8px; }
.loc-card-step.next { inset-inline-end: 8px; }
[dir="rtl"] .loc-card-step { transform: translateY(-50%) scaleX(-1); }
.loc-card-in { padding: 16px 18px 18px; }
.loc-card-title { font-size: 1.25rem; line-height: 1.3; padding-inline-end: 40px; }
.loc-card-title:focus { outline: none; }
.page p.loc-card-note { color: var(--cyan-text); font-weight: 500; font-size: 1rem; margin: 6px 0 0; }
.loc-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 14px 0 16px; }
.loc-card dt { color: var(--muted); }
.loc-card dd { margin: 0; font-weight: 700; }
.loc-card-actions { display: grid; gap: 8px; }
.page .loc-card .btn { margin-top: 0; padding: 11px 20px; white-space: normal; text-align: center; }
.btn-wa-line { background: #fff; color: var(--whatsapp); box-shadow: inset 0 0 0 2px var(--whatsapp); }

@media (max-width: 767px) {
  .loc-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
  .loc-tabs [role="tab"] {
    flex: 1; padding: 10px; border-radius: 4px; border: 1px solid var(--line); background: #fff;
    font-weight: 700; color: var(--ink);
  }
  .loc-tabs [aria-selected="true"] { background: var(--bg-tint); border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); color: var(--navy); }
  .loc-app[data-tab="list"] .loc-mapwrap, .loc-app[data-tab="map"] .loc-side { display: none; }
  .loc-map { flex: none; height: 70vh; min-height: 360px; }
  /* The card becomes a sheet at the bottom of the screen, over either tab. */
  .loc-card {
    position: fixed; inset: auto 0 0 0; width: auto; max-height: 85vh;
    border-radius: 10px 10px 0 0; box-shadow: 0 -10px 36px rgba(17, 24, 32, .22);
  }
}

/* ---- Footer ---- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-block: 40px 24px; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-tagline { color: var(--muted); margin: 12px 0 0; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-nav a, .footer-contact a { text-decoration: none; font-weight: 500; }
.footer-nav a:hover, .footer-contact a:hover { text-decoration: underline; }
.footer-rights { color: var(--muted); font-size: .875rem; margin-top: 28px; margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
