/*
Theme Name: Gate Oil
Theme URI: https://gateoilpetroleumnigeria.com
Author: Judicator
Description: Bespoke corporate theme for Gate Oil Petroleum (Nigeria) Limited. Brand navy/red/tint system, Archivo + Source Sans 3 + IBM Plex Mono.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Text Domain: gateoil
*/

/* ── Fonts (self-hosted) ───────────────────────────────────────────── */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ────────────────────────────────────────────────────────── */
:root {
  --navy: #15467f;
  --navy-dark: #10365f;
  --red: #c0181c;
  --tint: #dce6f1;
  --tint-soft: #eef3f8;
  --ink: #161616;
  --slate: #3a3a3a;
  --muted: #5f6b78;
  --white: #ffffff;
  --line: #c9d6e4;
  --page: #f4f7fa;
  --radius: 4px;
  --head: "Archivo", "Arial Black", sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --container: 1160px;
}

/* ── Base ──────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--red);
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy);
}

p {
  margin: 0;
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

::selection {
  background: var(--navy);
  color: var(--white);
}

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

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  min-height: 44px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--red);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-light:hover {
  border-color: var(--tint);
  color: var(--tint);
}

.btn-on-navy {
  background: var(--white);
  color: var(--navy);
}

.btn-on-navy:hover {
  background: var(--tint);
  color: var(--navy);
}

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand-lockup img {
  height: 38px;
  width: auto;
  display: block;
}

.brand-lockup-light img {
  height: 34px;
  margin-bottom: 16px;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--red);
}

.site-nav .btn {
  margin-left: 6px;
}

@media (max-width: 767px) {
  .nav-toggle-label {
    display: block;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    border: 2px solid var(--navy);
    border-radius: var(--radius);
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--navy);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle-label span {
    top: 20px;
  }

  .nav-toggle-label span::before {
    top: -7px;
    left: 0;
    right: 0;
  }

  .nav-toggle-label span::after {
    top: 7px;
    left: 0;
    right: 0;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    display: none;
  }

  .nav-toggle:checked ~ .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .site-nav li {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .site-nav .btn {
    margin: 8px 0 0;
  }
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--red);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0 72px;
}

.hero .eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tint);
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  max-width: 18ch;
}

.hero .tag {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 600;
  color: var(--tint);
}

.hero .sub {
  margin-top: 12px;
  font-size: 16px;
  color: #c7d8ea;
  max-width: 52ch;
}

.hero-ctas {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-spec {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: #d5e2f0;
  line-height: 2;
}

.hero-spec .k {
  color: #8fa8c4;
}

.hero-spec .v {
  color: var(--white);
  font-weight: 500;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow,
  .hero h1,
  .hero .tag,
  .hero .sub,
  .hero-ctas {
    animation: rise 0.6s ease both;
  }

  .hero h1 {
    animation-delay: 0.05s;
  }

  .hero .tag {
    animation-delay: 0.1s;
  }

  .hero .sub {
    animation-delay: 0.15s;
  }

  .hero-ctas {
    animation-delay: 0.2s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ── Sections ──────────────────────────────────────────────────────── */
.section {
  padding: 84px 0;
}

.section-tint {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-head {
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  display: inline-block;
  border-bottom: 3px solid var(--red);
  padding-bottom: 8px;
}

.section-navy .section-head h2 {
  color: var(--white);
  border-bottom-color: var(--red);
}

.section-head .lede {
  margin-top: 18px;
  color: var(--slate);
  max-width: 70ch;
  font-size: 16.5px;
}

.section-navy .section-head .lede {
  color: #c7d8ea;
}

/* ── Overview ──────────────────────────────────────────────────────── */
.overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.overview-copy p {
  color: var(--slate);
  margin-bottom: 18px;
  max-width: 64ch;
}

.reg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.reg-list li {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--slate);
}

.reg-list li:last-child {
  border-bottom: none;
}

.reg-list strong {
  color: var(--navy);
  display: block;
  font-family: var(--head);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Services ──────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  align-items: start;
}

.service-group h3 {
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 3px solid var(--red);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.service-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-group li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(21, 70, 127, 0.14);
  font-size: 15.5px;
  color: var(--slate);
  position: relative;
  padding-left: 18px;
}

.service-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--red);
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── Clients ───────────────────────────────────────────────────────── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cli {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}

@media (max-width: 900px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── HSE / Personnel (navy) ────────────────────────────────────────── */
.navy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.navy-block h3 {
  color: var(--white);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-left: 4px solid var(--red);
  padding-left: 14px;
  margin-bottom: 18px;
}

.navy-block p,
.navy-block li {
  color: #c7d8ea;
  font-size: 15.5px;
}

.navy-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navy-block li {
  padding: 7px 0 7px 20px;
  position: relative;
}

.navy-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 7px;
  height: 7px;
  background: var(--red);
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .navy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── Offices ───────────────────────────────────────────────────────── */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.office-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.office-card h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 3px solid var(--red);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.office-card p {
  font-size: 15px;
  color: var(--slate);
}

.office-card .phone {
  margin-top: 10px;
  font-weight: 700;
  color: var(--navy);
}

.contact-meta {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.contact-meta a {
  color: var(--navy);
  font-weight: 500;
}

@media (max-width: 900px) {
  .offices-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 32px;
}

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

.footer-grid h3 {
  color: var(--tint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #b9cee2;
  font-size: 14px;
  max-width: 44ch;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  font-size: 14px;
  color: #d5e2f0;
  margin-bottom: 8px;
}

.footer-grid a {
  color: var(--white);
}

.footer-grid a:hover {
  color: var(--tint);
}

.footer-legal {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: #b9cee2;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Fallback pages ────────────────────────────────────────────────── */
.page-content {
  padding: 64px 0 88px;
  max-width: 800px;
}

.page-content h1 {
  margin-bottom: 22px;
}

.page-content p {
  color: var(--slate);
  margin-bottom: 16px;
}
