/* ============================================================
   PETROAN Landing Page — Shared Styles
   Petroleum Products Retail Outlets Owners Association of Nigeria
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark:   #1b5e20;
  --green:        #2e7d32;
  --green-mid:    #388e3c;
  --green-light:  #43a047;
  --green-pale:   #e8f5e9;
  --accent-red:   #c62828;
  --accent-amber: #f57f17;
  --text-dark:    #1a1a1a;
  --text-body:    #3a3a3a;
  --text-muted:   #6b6b6b;
  --white:        #ffffff;
  --border:       #d0d0d0;
  --card-shadow:  0 2px 16px rgba(0,0,0,0.08);
  --font-sans:    'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius:       10px;
  --transition:   0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--green-dark); text-decoration: underline; }

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

/* ---------- Utility ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,125,50,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover {
  background: var(--green-pale);
  color: var(--green-dark);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar-brand-text .brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: 0.04em;
}

.navbar-brand-text .brand-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.navbar-links a {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.navbar-links a:hover,
.navbar-links a.active {
  background: var(--green-pale);
  color: var(--green-dark);
  text-decoration: none;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.navbar-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 280px;
  margin-top: 10px;
}

.footer-brand .brand-name-footer {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Policy / Legal Pages ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 72px 0 60px;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero .meta {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.legal-body {
  padding: 64px 0 96px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 88px;
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.legal-toc h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.legal-toc ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-toc li { font-size: 0.85rem; }

.legal-toc a {
  color: var(--green);
  font-weight: 500;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 48px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-pale);
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 28px 0 10px;
}

.legal-content p {
  margin-bottom: 14px;
  color: var(--text-body);
}

.legal-content ul,
.legal-content ol {
  margin: 10px 0 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.legal-content li { color: var(--text-body); }

.legal-content strong { color: var(--text-dark); }

.legal-content .highlight-box {
  background: var(--green-pale);
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.95rem;
}

.legal-content .contact-card {
  background: #f9fbe7;
  border: 1px solid #c5e1a5;
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
}

.legal-content .contact-card h3 {
  margin-top: 0;
  color: var(--green-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 16px;
    gap: 4px;
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { width: 100%; padding: 10px 14px; }
  .navbar-toggle { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
