/* ══════════════════════════════════════════════
   PROSPER ENERGY — Unified Theme v1.0
   Applied across all 7 core sites
   Based on joinspwr.com visual language
   ══════════════════════════════════════════════ */

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

:root {
  /* ── Full Prosper Palette ── */
  --navy-deep: #07253d;       /* darkest — footer, deep overlays */
  --navy: #002d52;            /* primary brand — section backgrounds */
  --navy-mid: #003e71;        /* card bg within navy sections */
  --navy-50: #002d5280;       /* 50% navy — subtle overlays */
  --blue: #095cfb;            /* bright accent — nav panel, CTAs, links */
  --blue-light: #3b82f6;      /* lighter blue — hover states, tags */
  --blue-10: #3b82f61a;       /* 10% blue — subtle tint backgrounds */
  --yellow: #fdfd00;          /* highlight — active states, bolt, nav accent */
  --red: #dc143c;             /* urgency — danger, critical CTAs */
  --cream: #f9f4ed;           /* page background — warm, not sterile white */
  --white: #ffffff;           /* card backgrounds, button fills */
  --ink: #141414;             /* primary text on light */
  --ink-90: #141414e6;        /* 90% ink — strong overlays */
  --ink-0: #14141400;         /* transparent ink — fade targets */
  --black: #000000;           /* pure black — rare, shadows */
  --black-50: #00000080;      /* 50% black — heavy overlays */
  --black-25: #00000040;      /* 25% black — medium overlays */
  --black-0: #00000000;       /* transparent — gradient ends */
  --border: #dddddd;          /* card/input borders on light */
  --transparent: transparent;

  /* ── Semantic ── */
  --bg: var(--cream);
  --text: var(--ink);
  --text-muted: #666;
  --accent: var(--navy);
  --accent-bright: var(--blue);
  --accent-light: var(--blue-light);
  --success: #16a34a;
  --warning: #d97706;
  --danger: var(--red);
  --nav-bg: var(--blue);      /* nav panel uses bright blue, not navy */

  /* Typography */
  --display: 'Oswald', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Radii */
  --radius: 20px;
  --radius-sm: 10px;
  --radius-pill: 64px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 45, 82, 0.06);
  --shadow: 0 4px 16px rgba(0, 45, 82, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 45, 82, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 45, 82, 0.16);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.24s;
  --duration-slow: 0.4s;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-light); text-decoration: none; }
button, input, select, textarea { font: inherit; }

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

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }

/* ── Display Typography ── */
.display-xxl {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.8;
  letter-spacing: -0.02em;
}

.display-xl {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 55px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
}

.display-lg {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.display-md {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
}

.display-sm {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

/* ── Body Typography ── */
.body-xl { font-size: clamp(18px, 2vw, 24px); font-weight: 500; line-height: 1.6; }
.body-lg { font-size: 18px; line-height: 1.6; }
.body-md { font-size: 16px; line-height: 1.6; }
.body-sm { font-size: 14px; line-height: 1.5; }
.body-xs { font-size: 12px; line-height: 1.4; }

.text-navy { color: var(--navy); }
.text-blue { color: var(--blue); }
.text-yellow { color: var(--yellow); }
.text-red { color: var(--red); }
.text-white { color: var(--white); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--white);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duration), color var(--duration), border-color var(--duration), transform 0.2s;
  flex-shrink: 0;
}
.btn:hover { background: var(--yellow); border-color: var(--yellow); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn:active { transform: translateY(0); }

.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--navy); border-color: var(--navy); }

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

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

.btn--green { background: var(--success); border-color: var(--success); color: var(--white); }
.btn--green:hover { background: #15803d; border-color: #15803d; }

.btn--sm { font-size: 14px; padding: 8px 16px; }
.btn--lg { font-size: 24px; padding: 14px 28px; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  transition: box-shadow var(--duration), transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card--clickable:hover { transform: translateY(-2px); cursor: pointer; }

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

.card--navy-mid {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
}

/* ── Sections ── */
.section { padding: var(--space-xl); }

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

.section__title {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 55px);
  font-weight: 700;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
}

.section__divider {
  display: flex;
  justify-content: center;
  padding: var(--space-md) 0;
}

.section__bolt {
  display: block;
  width: 64px;
  height: 64px;
  background: var(--yellow);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E") center / 60% no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E") center / 60% no-repeat;
}

.section__desc {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  max-width: 650px;
  margin: 0 auto var(--space-2xl);
  opacity: 0.85;
}

/* ── Hero Blocks ── */
.hero {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--navy-deep) 10%, var(--navy-50) 50%, var(--black-0) 90%);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-xl);
}

/* ── Layout Helpers ── */
.container { max-width: 1750px; margin: 0 auto; padding: 0 var(--space-md); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; }
.flex-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ── Tags / Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}
.badge--navy { background: var(--navy); color: var(--white); }
.badge--blue { background: var(--blue); color: var(--white); }
.badge--yellow { background: var(--yellow); color: var(--ink); }
.badge--green { background: var(--success); color: var(--white); }
.badge--red { background: var(--red); color: var(--white); }
.badge--outline { background: transparent; border: 1px solid currentColor; }

/* ── Form Inputs ── */
.input {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream-alt);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: border-color var(--duration);
}
.input:focus { border-color: var(--navy); }
.input--lg { font-size: 20px; padding: 14px 20px; }

/* ── Accent Line (top of card) ── */
.accent-top { position: relative; }
.accent-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--navy);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.accent-top--blue::before { background: var(--blue); }
.accent-top--red::before { background: var(--red); }
.accent-top--yellow::before { background: var(--yellow); }
.accent-top--green::before { background: var(--success); }

/* ── Quote Block ── */
.quote-block {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-4xl) var(--space-3xl);
  gap: var(--space-4xl);
}

.quote-block__portrait {
  position: relative;
  flex-shrink: 0;
  width: min(489px, 40vw);
  min-width: 280px;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.quote-block__portrait img { width: 100%; height: 100%; object-fit: cover; }

.quote-block__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-lg);
  background: linear-gradient(0deg, var(--navy-deep) 15%, var(--black-25) 60%, var(--black-0) 100%);
  color: var(--white);
}

/* ── Navigation (bright blue panel) ── */
.site-nav__inner {
  background: var(--nav-bg);
  border-radius: var(--radius-sm);
  color: var(--white);
}

.nav-toggle {
  background: var(--nav-bg);
}

.nav-toggle:hover {
  background: var(--navy);
}

.nav-link {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color var(--duration);
}

.nav-link:hover { color: var(--yellow); }
.nav-link--active { color: var(--yellow); }
.nav-link__accent { color: var(--yellow); }

/* ── Status Colors ── */
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.bg-navy-deep { background: var(--navy-deep); }
.bg-navy { background: var(--navy); }
.bg-navy-mid { background: var(--navy-mid); }
.bg-blue { background: var(--blue); }
.bg-blue-10 { background: var(--blue-10); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-ink { background: var(--ink); }

/* ── Overlay utilities ── */
.overlay-dark { background: var(--black-50); }
.overlay-light { background: var(--black-25); }
.overlay-navy { background: var(--navy-50); }
.overlay-ink { background: var(--ink-90); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.4s var(--ease) both; }
.delay-1 { animation-delay: 0.06s; }
.delay-2 { animation-delay: 0.12s; }
.delay-3 { animation-delay: 0.18s; }
.delay-4 { animation-delay: 0.24s; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .hero__footer { flex-direction: column; align-items: flex-start; gap: var(--space-lg); }
  .quote-block { flex-direction: column; padding: var(--space-2xl); gap: var(--space-xl); text-align: center; }
  .quote-block__portrait { width: min(400px, 80vw); }
}

@media (max-width: 720px) {
  .section { padding: var(--space-lg) var(--space-md); }
  .hero { min-height: 400px; padding: var(--space-lg); }
  .quote-block { padding: var(--space-xl) var(--space-md); gap: var(--space-lg); }
  .quote-block__portrait { width: min(300px, 80vw); }
  .btn { font-size: 16px; padding: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ── Print ── */
@media print {
  body { background: white; color: black; }
  .section--navy { background: white; color: black; border: 2px solid black; }
  .btn { border: 1px solid black; background: white; color: black; }
}
</style>
