/* ============================================================
   RoadYawa GH — | Focus Agency Ghana
   ============================================================ */
:root {
  --asphalt: #15130f; /* hero / footer background — warm near-black, like wet asphalt */
  --asphalt-soft: #1e1c17;
  --paper: #faf9f6; /* content background */
  --paper-dim: #f2f0ea;
  --ink: #1f1e1b;
  --muted: #7b776f;
  --line: #e6e3db;
  --green: #137742;
  --green-bright: #06a04c;
  --yellow: #efa400;
  --red: #c6292d;

  --display: "Poppins", "Inter", sans-serif;
  --body: "Inter", "Poppins", sans-serif;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;
  --container: 1180px;

  --header-h: 64px; /* min height of the sticky bar */
  --header-z: 100;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Our `clip` stops sideways scroll without turning the page into a scroll
   container — `hidden` here would silently break position: sticky. */
html,
body {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: visible;
  }
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--yellow);
  display: inline-block;
}

/* Ghana-tricolor structural rule */
.tri-rule {
  width: 96px;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  margin: 18px 0 28px;
}

.tri-rule.center {
  margin-left: auto;
  margin-right: auto;
}

.tri-rule span {
  flex: 1;
}

.tri-rule .g {
  background: var(--green);
}

.tri-rule .y {
  background: var(--yellow);
}

.tri-rule .r {
  background: var(--red);
}

/* ===Buttons=== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(19, 119, 66, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(19, 119, 66, 0.34);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
  background: var(--asphalt);
  color: #fff;
}

.btn-dark:hover {
  transform: translateY(-2px);
}

/* ====Header / Nav===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  background: var(--asphalt);
  padding-top: env(safe-area-inset-top);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--green) 0 33.33%,
    var(--yellow) 0 66.66%,
    var(--red) 0
  );
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 1 auto;
  min-width: 0; /* Wordmark to shrink instead of pushing the toggle off-screen */
}

.brand img {
  width: 64px;
  height: 64px;
  flex: none;
}

.brand span {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  font-size: 1.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-color: var(--yellow);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  margin-right: -9px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Backdrop is opt-in: it only ever paints while the menu is open. */
.nav-backdrop {
  display: none;
}

/* Focus states */
.site-header a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: calc(var(--header-z) + 1);
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-s);
  font-weight: 700;
}

/* --- Mobile nav --- */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  /* Anchored to site-header (itself a positioned element), so the panel */
  .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 28px calc(26px + env(safe-area-inset-bottom));
    background: var(--asphalt);
    max-height: calc(100vh - var(--header-h) - env(safe-area-inset-top));
    max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  body.nav-open .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    padding: 15px 2px;
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-bottom-color: var(--yellow);
  }

  .nav-cta {
    padding-top: 20px;
  }

  .nav-cta .btn {
    width: 100%;
  }

  /* Lock at the root, not on body — body already has overflow-x: clip, so a
     body-level lock would make body its own scroll container and unstick
     the header. If :has() is unsupported the page just scrolls: cosmetic. */
  html:has(body.nav-open) {
    overflow: hidden;
  }

  body.nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: calc(var(--header-z) - 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-panel,
  .nav-toggle-bar {
    transition: none;
  }
}

/* ==== Page header band (non-home pages) — dark, consistent with hero === */
.page-head {
  background: var(--asphalt);
  color: #fff;
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-head .container {
  position: relative;
  z-index: 2;
}

.page-head p.lede {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  max-width: 640px;
}

.page-head h1 {
  color: #fff;
}

/* === Hero (home)=== */
.hero {
  background: var(--asphalt);
  color: #fff;
  padding: 96px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: #fff;
}

.hero .lede {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.15rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
}

.hero-stats div span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.road-motif {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  background: #000;
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-screen {
  background: linear-gradient(180deg, #efece3, #e6e2d6);
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9/17.5;
  position: relative;
}

.phone-pin {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 10px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.phone-pin::after {
  content: "!";
  font-family: var(--display);
  font-weight: 800;
  color: #fff;
  width: 52px;
  height: 52px;
  background: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  clip-path: polygon(50% 6%, 94% 92%, 6% 92%);
}

.phone-search {
  position: absolute;
  top: 24px;
  left: 16px;
  right: 16px;
  height: 38px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* ===Sections===*/
section {
  padding: 88px 0;
}

.section-alt {
  background: var(--paper-dim);
}

.section-dark {
  background: var(--asphalt);
  color: #fff;
}

.section-dark h2,
.section-dark .eyebrow {
  color: #fff;
}

.section-dark .eyebrow {
  color: var(--yellow);
}

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(21, 19, 15, 0.08);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--paper-dim);
}

.feature-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Hazard taxonomy strip */
.taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tax-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px 10px 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.tax-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
}

/* Steps (See it / Snap it / Share it) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  position: relative;
  padding-top: 8px;
}

.step-phase {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
  display: block;
}

.step-card h3 {
  font-size: 1.4rem;
}

.step-card p {
  color: var(--muted);
}

.step-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
  margin: 10px 0 40px;
  opacity: 0.35;
}

/* Two column content */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split img,
.split .media {
  border-radius: var(--radius-l);
}

.media-block {
  background: var(--asphalt);
  border-radius: var(--radius-l);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Stats band */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-band strong {
  display: block;
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 800;
}

.stats-band span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Cards / policy blocks */
.policy-block {
  max-width: 760px;
  margin: 0 auto;
}

.policy-block h2 {
  font-size: 1.5rem;
  margin-top: 2.2em;
}

.policy-block h2:first-child {
  margin-top: 0;
}

.policy-block ul {
  padding-left: 1.2em;
  color: var(--ink);
}

.policy-block li {
  margin-bottom: 0.5em;
}

.callout {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-s);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: var(--body);
  font-size: 16px; /* 16px stops iOS Safari zooming the page on focus */
  background: #fff;
  color: var(--ink);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item .dot {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--paper-dim);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--green);
}

/* CTA band */
.cta-band {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 6px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ============================================================
   Store badges, Apple / Google artwork + guidelines
   (developer.apple.com/app-store/marketing/guidelines/,
   play.google.com/intl/en_us/badges/).
   ============================================================ */
.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 9px 18px 9px 14px;
  min-width: 172px;
}

.store-badge svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.store-badge .badge-text {
  line-height: 1.15;
}

.store-badge .badge-text small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

.store-badge .badge-text strong {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
}

.store-badge.disabled {
  opacity: 0.55;
  cursor: default;
}

/* ====Footer ===== */
.site-footer {
  background: var(--asphalt);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand span {
  color: #fff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  max-width: 280px;
  margin-top: 14px;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

.footer-flag {
  display: flex;
  gap: 5px;
}

.footer-flag span {
  width: 16px;
  height: 5px;
  border-radius: 2px;
}

/* ===Responsive=== */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 32px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 20px;
    
    .footer-brand .brand img {
    width: 64px;
    height: 64px;
  }
  
  }

  .nav-panel {
    padding-left: 20px;
    padding-right: 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .page-head {
    padding: 52px 0 44px;
  }

  .cta-band {
    padding: 40px 24px;
  }

  .phone-frame {
    width: 232px;
  }

  .hero-actions .btn,
  .cta-band .btn {
    width: 100%;
  }
}