/*
  File: style.css
  URL: www.brianmorganpalmer.com
  Copyright: Brian Morgan Palmer
  Author: Brian Palmer
  Revision: 4.0 - June 2026
*/

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIABLES ── */
:root {
  --deep:   #071e2e;
  --navy:   #0a2a4a;
  --mid:    #1a5276;
  --teal:   #1abc9c;
  --light:  #d6eaf8;
  --muted:  rgba(214,234,248,0.65);
  --white:  #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --section-pad: 5rem 8%;
  --max-w: 100%;
}

/* ── BASE ── */
html { scroll-behavior: smooth; font-size: 18px; }

body {
  font-family: var(--font-body);
  background: var(--deep);
  color: var(--white);
}

/* ── NAV ── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background: rgba(7, 30, 46, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26,188,156,0.15);
  transition: background 0.3s;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--light);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.nav-brand span { color: var(--teal); }

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 2rem;
  transition: color 0.2s;
  opacity: 0.85;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); opacity: 1; }

/* ── SECTION BASE ── */
section {
  padding: var(--section-pad);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

/* Keep body text left-aligned for readability */
.content-block,
.stats-grid,
.hero-links,
.pills { text-align: left; }

/* Full-width wrappers for background alternation */
.section-wrap { width: 100%; }
.section-wrap.alt { background: rgba(10, 42, 74, 0.35); }

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,188,156,0.3), transparent);
  max-width: 100%;
}

/* ── HERO ── */
#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 7rem 2.5rem 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(7,30,46,0.95) 0%, rgba(10,42,74,0.85) 60%, rgba(26,82,118,0.75) 100%),
    radial-gradient(ellipse at 75% 50%, rgba(26,188,156,0.07) 0%, transparent 60%);
}

#home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg, transparent, transparent 70px,
    rgba(26,188,156,0.025) 70px, rgba(26,188,156,0.025) 71px
  );
  pointer-events: none;
}

.hero-inner { max-width: 1200px; position: relative; width: 100%; }

.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.2rem;
}

h1.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
}
h1.hero-title em { font-style: normal; color: var(--teal); }

.hero-sub {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--light);
  max-width: 780px;
  margin: 0 auto 2.25rem;
  opacity: 0.9;
}

/* ── PILLS ── */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}
.pill {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(26,188,156,0.35);
  border-radius: 2px;
  padding: 0.4rem 1rem;
  background: rgba(26,188,156,0.05);
}

/* ── BUTTONS ── */
.hero-links { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn-primary-custom {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--teal);
  color: var(--deep);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary-custom:hover { background: #17a589; transform: translateY(-1px); color: var(--deep); text-decoration: none; }

.btn-ghost {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 1px solid rgba(214,234,248,0.35);
  color: var(--light);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }

/* ── SECTION HEADINGS ── */
.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(26,188,156,0.2);
}

h3.sub-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
  margin-top: 2rem;
}
h3.sub-title:first-of-type { margin-top: 0; }

p.body-text {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--light);
  margin-bottom: 1.2rem;
  opacity: 0.92;
}

.content-block { margin-bottom: 2.5rem; }

/* ── STATS GRID ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.stat-card {
  background: rgba(26,188,156,0.06);
  border: 1px solid rgba(26,188,156,0.2);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── COMPLIANCE / TOOL LIST ── */
ul.compliance-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.6rem;
}

ul.compliance-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--light);
  background: rgba(26,188,156,0.05);
  border: 1px solid rgba(26,188,156,0.18);
  border-left: 3px solid var(--teal);
  border-radius: 2px;
  padding: 0.65rem 1rem;
  line-height: 1.4;
}

ul.compliance-list li::before {
  content: '✦';
  color: var(--teal);
  font-size: 0.6rem;
  flex-shrink: 0;
}

/* ── FOOTER ── */
footer {
  padding: 1.5rem 8%;
  background: rgba(5, 20, 35, 0.98);
  border-top: 1px solid rgba(26,188,156,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--muted);
}
footer a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
  transition: color 0.2s;
}
footer a:hover { color: var(--teal); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  :root { --section-pad: 3.5rem 5%; }
  nav.site-nav { padding: 0.9rem 5%; }
  .nav-brand { font-size: 1rem; }
  .nav-links a { margin-left: 0.9rem; font-size: 0.9rem; }
  #home { padding: 6rem 5% 4rem; }
  .body-text { font-size: 1.1rem; line-height: 1.9; }
  .hero-sub { font-size: 1.15rem; }
  h2.section-title { font-size: 1.9rem; }
  h3.sub-title { font-size: 0.95rem; }
  .hero-eyebrow { font-size: 0.9rem; }
  .pill { font-size: 0.88rem; }
  .stat-label { font-size: 0.9rem; }
  .stat-number { font-size: 2rem; }
  .btn-primary-custom, .btn-ghost { font-size: 0.95rem; padding: 0.8rem 1.75rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  ul.compliance-list { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; font-size: 0.95rem; }
  footer a { margin: 0 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
