/* ============================================================
   O.J Tech And Mobile — Serekunda
   Composition: all-navy dusk + lime accent / variable-width
   breathing headings / marquee ticker / full-bleed gallery /
   layered gradient depth / no signature gimmick.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #0e1a2b;
  --bg-deep: #08111d;
  --ink: #eaeef7;
  --ink-dim: #a8b6cd;
  --ink-faint: #6f8099;
  --accent: #ccff33;
  --accent-ink: #0e1a2b;
  --rule: rgba(234, 238, 247, 0.14);
  --panel: rgba(234, 238, 247, 0.045);
  --panel-strong: rgba(234, 238, 247, 0.08);
  --glow-a: rgba(38, 92, 160, 0.55);
  --glow-b: rgba(204, 255, 51, 0.10);
  --glow-c: rgba(20, 44, 78, 0.85);

  --pad: clamp(1.25rem, 5vw, 5rem);
  --measure: 62ch;

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 8% -5%, var(--glow-a) 0, transparent 62%),
    radial-gradient(ellipse 70% 55% at 100% 22%, var(--glow-b) 0, transparent 58%),
    radial-gradient(ellipse 120% 70% at 50% 108%, var(--glow-c) 0, transparent 65%),
    linear-gradient(178deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 9vw, 7.5rem);
  font-variation-settings: "wdth" 88;
  animation: breathe 7s ease-in-out infinite;
}

h2 {
  font-size: clamp(1.9rem, 5.2vw, 3.6rem);
  font-variation-settings: "wdth" 92;
  animation: breathe 9s ease-in-out infinite;
  animation-delay: -2.5s;
}

h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.15; }

@keyframes breathe {
  0%, 100% { font-variation-settings: "wdth" 78; }
  50%      { font-variation-settings: "wdth" 122; }
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.1rem;
  font-weight: 600;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-dim);
  max-width: var(--measure);
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- marquee ticker ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(8, 17, 29, 0.6);
  padding: 0.7rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: scroll 34s linear infinite;
}
.marquee__track span {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee__track span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 5;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.wordmark b { color: var(--accent); font-weight: 700; }
.wordmark small {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.masthead nav a {
  color: var(--ink-dim);
  text-decoration: none;
  padding: 0.55rem 0;
  transition: color 0.2s ease;
}
.masthead nav a:hover { color: var(--accent); }

.call-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.call-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(204, 255, 51, 0.55);
}

/* ---------- hero ---------- */
.hero { position: relative; }
.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 17, 29, 0.55) 0%, rgba(8, 17, 29, 0.15) 40%, rgba(8, 17, 29, 0.92) 100%),
    linear-gradient(90deg, rgba(8, 17, 29, 0.7) 0%, transparent 60%);
}
.hero__copy {
  position: relative;
  margin-top: -14vh;
  padding: 0 var(--pad) clamp(2.5rem, 6vw, 5rem);
  z-index: 2;
}
.hero__copy h1 { max-width: 18ch; }
.hero__copy h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero__meta span::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- generic section ---------- */
.section { padding: clamp(3rem, 8vw, 6.5rem) var(--pad); }
.section--tight { padding-top: clamp(2rem, 5vw, 3.5rem); }
.section__head { max-width: var(--measure); margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section__head h2 { margin-bottom: 1rem; }

/* ---------- full-bleed gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  width: 100%;
}
.gallery > * { grid-column: 1 / -1; }
.gallery > .half { grid-column: span 12; }
@media (min-width: 760px) {
  .gallery > .half { grid-column: span 6; }
}
.gallery figure { margin: 0; position: relative; overflow: hidden; }
.gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery .half figure img { aspect-ratio: 4 / 3; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem var(--pad) 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, transparent, rgba(8, 17, 29, 0.88));
}

/* ---------- services ---------- */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background 0.25s ease;
}
.service:hover { background: var(--panel); }
.service__num {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
}
.service h3 { color: var(--ink); }
.service p { color: var(--ink-dim); font-size: 0.95rem; margin: 0; }
.service__note {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- split panel (about / visit) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr 0.85fr; }
}
.split p { color: var(--ink-dim); max-width: var(--measure); }
.split strong { color: var(--ink); }

.panel {
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: clamp(1.4rem, 3vw, 2rem);
  backdrop-filter: blur(6px);
}
.panel h3 { margin-bottom: 1rem; }
.panel + .panel { margin-top: 1rem; }

/* hours table */
.hours { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.hours th, .hours td {
  text-align: left;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
}
.hours th { color: var(--ink-dim); font-weight: 500; }
.hours td { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-closed td { color: var(--ink-faint); }
.hours tr.is-today th,
.hours tr.is-today td { color: var(--accent); font-weight: 700; }

/* contact block */
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-lines li { display: grid; gap: 0.25rem; }
.contact-lines .k {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact-lines .v { font-size: 1.02rem; color: var(--ink); }
.contact-lines .v a { color: var(--accent); text-decoration: none; }
.contact-lines .v a:hover { text-decoration: underline; }

.big-call {
  display: block;
  margin-top: 1.4rem;
  padding: 1.1rem 1.3rem;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.01em;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.big-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -14px rgba(204, 255, 51, 0.6);
}
.big-call small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 0.3rem;
}

/* ---------- quote band ---------- */
.quote-band {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad);
  background: linear-gradient(120deg, rgba(204, 255, 51, 0.05), transparent 55%);
}
.quote-band blockquote {
  margin: 0;
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.quote-band cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- footer ---------- */
.site-footer {
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad) 5.5rem;
  border-top: 1px solid var(--rule);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-grid h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.footer-grid p, .footer-grid li { color: var(--ink-dim); font-size: 0.92rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-grid a { color: var(--ink-dim); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.footer-wordmark b { color: var(--accent); }

/* claim banner — deliberately quiet, sits above the attribution */
.claim-banner {
  display: block;
  margin: 2.5rem auto 0;
  max-width: 46rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: rgba(234, 238, 247, 0.04);
  color: var(--ink-dim);
  font-size: 0.78rem;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.claim-banner:hover { color: var(--accent); border-color: rgba(204, 255, 51, 0.4); }

/* attribution — required on free tier */
.attribution {
  position: fixed;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.7rem;
  opacity: 0.5;
  font-family: system-ui, sans-serif;
  z-index: 20;
}
.attribution a { color: inherit; text-decoration: none; }
.attribution a:hover { text-decoration: underline; }

/* ---------- reveal on scroll (CSS-only, no JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 32%;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  h1, h2 { font-variation-settings: "wdth" 100; }
  .marquee__track { animation: none; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
