/* OOG Africa — site styles
   Palette taken from the logo and company profile. */
:root {
  --navy: #15233f;
  --navy-deep: #0c172c;
  --gold: #b98a45;
  --gold-light: #d6ad6a;
  --steel: #5d6878;
  --mist: #eef1f5;
  --line: #d9dee6;
  --white: #ffffff;
  --text: #1f2a3c;

  --font-head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; font-stretch: 105%; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #d7dce5; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.lead { font-size: 1.2rem; color: var(--steel); }
.section--navy .lead { color: #b9c1ce; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--white); padding: .5rem 1rem; }

/* The gauge rule: a dimension line with end ticks, used under section headings.
   It is the site's one recurring motif — a nod to "out of gauge". */
.gauge {
  position: relative;
  height: 14px;
  width: min(220px, 60%);
  margin: 0 0 1.75rem;
}
.gauge::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  border-top: 2px solid var(--gold);
}
.gauge::after {
  content: "";
  position: absolute; inset: 0;
  border-inline: 2px solid var(--gold);
}
.center .gauge { margin-inline: auto; }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; font-stretch: 105%;
  padding: .9rem 1.6rem;
  border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-light); }
.btn--line { border-color: currentColor; color: var(--white); background: transparent; }
.btn--line:hover { background: rgba(255,255,255,.1); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--wa { background: #1f9d55; color: var(--white); }
.btn--wa:hover { background: #17834a; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Top bar + header */
.topbar { background: var(--navy-deep); color: #b9c1ce; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: #e4e8ee; }
.topbar a:hover { color: var(--gold-light); }
.topbar__contacts { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 72px; height: auto; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-stretch: 115%; color: var(--navy); line-height: 1.05; font-size: 1.05rem; }
.brand__name small { display: block; font-weight: 600; font-size: .78rem; color: var(--steel); font-stretch: 100%; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav a {
  display: block; padding: .6rem .85rem; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--navy);
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav .btn { margin-left: .75rem; padding: .7rem 1.2rem; }
.nav-toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.25rem; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--line); }
  .nav .btn { margin: 1rem 0 0; }
  .topbar__hide-sm { display: none; }
}

/* Hero */
.hero {
  position: relative; isolation: isolate;
  color: var(--white);
  min-height: clamp(560px, 82vh, 760px);
  display: flex; align-items: flex-end;
  padding-block: clamp(6rem, 12vw, 9rem) clamp(3rem, 6vw, 5rem);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12,23,44,.92) 0%, rgba(12,23,44,.75) 45%, rgba(12,23,44,.15) 100%);
}
.hero h1 { color: var(--white); max-width: 11ch; margin-bottom: .35em; }
.hero__tag { font-size: clamp(1.1rem, 2vw, 1.35rem); color: #dfe4ec; max-width: 40ch; margin-bottom: 2rem; }
.hero .gauge { width: min(320px, 70%); }

/* The hero's one moment: the gauge rule draws out to full width on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero .gauge::before { transform-origin: left; animation: draw 1.1s .3s cubic-bezier(.2,.7,.2,1) both; }
  .hero .gauge::after { animation: fadein .4s 1.2s both; }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
}

/* Page banner (inner pages) */
.banner {
  position: relative; isolation: isolate; color: var(--white);
  padding-block: clamp(5rem, 10vw, 7.5rem) clamp(3rem, 6vw, 4.5rem);
}
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,23,44,.92), rgba(12,23,44,.55)); }
.banner h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 3.75rem); margin-bottom: .3em; }
.banner p { color: #dfe4ec; font-size: 1.2rem; margin: 0; }
.crumbs { font-size: .9rem; color: #b9c1ce; margin-bottom: 1rem; }
.crumbs a { color: #e4e8ee; }

/* Pillars under hero */
.pillars { background: var(--navy); color: #d7dce5; }
.pillars .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 2rem 1.75rem; border-left: 1px solid rgba(255,255,255,.12); }
.pillar:last-child { border-right: 1px solid rgba(255,255,255,.12); }
.pillar h3 { color: var(--white); margin-bottom: .35rem; display: flex; align-items: center; gap: .75rem; }
.pillar svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.pillar p { margin: 0; font-size: 1rem; }
@media (max-width: 760px) {
  .pillars .wrap { grid-template-columns: 1fr; }
  .pillar { border: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding-inline: 0; }
  .pillar:last-child { border: 0; }
}

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--wide-text { grid-template-columns: 1.1fr .9fr; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split__media figcaption { font-size: .9rem; color: var(--steel); margin-top: .6rem; }
@media (max-width: 860px) { .split, .split--wide-text { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; }
.ticks li { padding-left: 1.6rem; position: relative; font-weight: 600; color: var(--navy); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg);
}
@media (max-width: 520px) { .ticks { grid-template-columns: 1fr; } }

.text-link { font-family: var(--font-head); font-weight: 700; color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.text-link:hover { color: var(--gold); }

/* Services grid */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.service { grid-column: span 2; background: var(--white); display: flex; flex-direction: column; border-top: 4px solid var(--navy); }
.service:nth-child(4), .service:nth-child(5) { grid-column: span 3; }
.service img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.service__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.service__body p { color: var(--steel); font-size: 1rem; flex: 1; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } .service, .service:nth-child(4), .service:nth-child(5) { grid-column: span 1; } .service:nth-child(5) { grid-column: span 2; } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } .service:nth-child(5) { grid-column: span 1; } }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(255,255,255,.12); margin-top: 2.5rem; border: 1px solid rgba(255,255,255,.12); }
.industry { background: var(--navy); padding: 1.75rem 1.25rem; text-align: center; }
.industry svg { width: 40px; height: 40px; color: var(--gold); margin: 0 auto .9rem; }
.industry h3 { font-size: 1.05rem; margin: 0; }
@media (max-width: 960px) { .industries { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .industries { grid-template-columns: repeat(2, 1fr); } }

/* Process */
.process { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 23px; left: 10%; right: 10%; border-top: 2px dashed var(--line); }
.process li { counter-increment: step; text-align: center; padding: 0 .9rem; position: relative; }
.process li::before {
  content: counter(step);
  display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 1.1rem;
  border-radius: 50%; background: var(--navy); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 0 0 6px var(--mist);
  position: relative;
}
.process h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.process p { font-size: .97rem; color: var(--steel); margin: 0 auto; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 1.75rem; }
  .process::before { top: 0; bottom: 0; left: 23px; right: auto; border-top: 0; border-left: 2px dashed var(--line); }
  .process li { text-align: left; padding: 0 0 0 4.5rem; min-height: 48px; }
  .process li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .process p { margin: 0; }
}

/* Project photo strip */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { font-size: .92rem; color: var(--steel); margin-top: .5rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* CTA band */
.cta { position: relative; isolation: isolate; color: var(--white); padding-block: clamp(4.5rem, 9vw, 6.5rem); }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12,23,44,.82); }
.cta h2 { color: var(--white); max-width: 18ch; }
.cta p { color: #dfe4ec; font-size: 1.15rem; max-width: 52ch; margin-bottom: 2rem; }

/* Service detail rows */
.detail + .detail { margin-top: clamp(3.5rem, 8vw, 6rem); }
.detail:nth-child(even) .split__media { order: 2; }
@media (max-width: 860px) { .detail:nth-child(even) .split__media { order: 0; } }
.detail h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* Why cards */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.why > div { border-left: 3px solid var(--gold); padding: .25rem 0 .25rem 1.25rem; }
.why h3 { font-size: 1.1rem; }
.why p { font-size: 1rem; color: var(--steel); margin: 0; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* Industry detail list */
.ind-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; margin-top: 2.5rem; }
.ind-list article { display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; align-items: start; }
.ind-list svg { width: 56px; height: 56px; color: var(--gold); padding: 10px; background: var(--navy); border-radius: var(--radius); }
.ind-list p { color: var(--steel); margin: 0; }
@media (max-width: 760px) { .ind-list { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border-top: 1px solid var(--line); padding-block: 1.25rem; }
.contact-card:last-of-type { border-bottom: 1px solid var(--line); }
.contact-card h3 { font-size: 1rem; color: var(--steel); font-weight: 600; margin-bottom: .3rem; font-stretch: 100%; }
.contact-card a { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--navy); text-decoration: none; }
.contact-card a:hover { color: var(--gold); }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .95rem; color: var(--navy); margin-bottom: .35rem; }
.field .req { color: #b42318; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: .75rem .85rem; border: 1px solid #c3cad6; border-radius: var(--radius); background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: #b42318; }
.form__error { grid-column: 1 / -1; color: #b42318; font-weight: 600; margin: 0; min-height: 1.4em; }
.form__note { grid-column: 1 / -1; font-size: .9rem; color: var(--steel); margin: 0; }
.form__note a { color: var(--navy); }
.form-panel { background: var(--mist); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); }

/* Quote modal */
.modal { border: 0; padding: 0; width: min(100% - 2rem, 980px); max-height: calc(100vh - 2rem); border-radius: 6px; }
.modal::backdrop { background: rgba(12,23,44,.75); }
.modal__inner { display: grid; grid-template-columns: .8fr 1.2fr; }
.modal__side { background: var(--navy); color: #d7dce5; padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.modal__side img.logo { width: 120px; background: var(--white); border-radius: 6px; padding: .5rem; }
.modal__side img.photo { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.modal__side ul { margin: 0; padding-left: 1.1rem; }
.modal__side li { margin-bottom: .35rem; }
.modal__main { padding: 2rem; position: relative; overflow-y: auto; }
.modal__close { position: absolute; top: .75rem; right: .75rem; background: none; border: 0; cursor: pointer; padding: .5rem; color: var(--navy); }
.modal__close svg { width: 24px; height: 24px; }
.modal h2 { font-size: 1.8rem; margin-bottom: .25rem; }
@media (max-width: 760px) { .modal__inner { grid-template-columns: 1fr; } .modal__side { display: none; } .modal__main { padding: 1.5rem; } }

/* Footer */
.footer { background: var(--navy-deep); color: #aeb7c5; font-size: .98rem; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: 4rem 3rem; }
.footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .5rem; }
.footer a { color: #d5dbe4; text-decoration: none; }
.footer a:hover { color: var(--gold-light); }
.footer__logo { width: 110px; background: var(--white); border-radius: 6px; padding: .5rem; margin-bottom: 1rem; }
.footer__base { border-top: 1px solid rgba(255,255,255,.1); }
.footer__base .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.25rem; grid-template-columns: none; font-size: .9rem; }
@media (max-width: 900px) { .footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer .wrap { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1f9d55; color: var(--white); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(12,23,44,.3);
}
.wa-float svg { width: 30px; height: 30px; }

/* Legal page */
.legal h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.legal ul { max-width: 68ch; }
.legal li { margin-bottom: .4rem; }
