/* ═══════════════════════════════════════════
   Jason Jones, PE — Site Styles
   Steel blue + gold (#F6B630) accent system
   ═══════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --surface-alt: #F0F2F4;
  --ink: #2D3436;
  --ink-muted: #636E72;
  --accent: #3D6B8E;
  --accent-hover: #2C5066;
  --accent-light: rgba(61,107,142,0.08);
  --gold: #F6B630;
  --gold-hover: #E5A520;
  --gold-light: rgba(246,182,48,0.1);
  --hero-bg: #2A3642;
  --hero-ink: #FFFFFF;
  --border: #DFE6E9;
  --shadow: rgba(0,0,0,0.08);

  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Inter', sans-serif;

  --content-width: 960px;
  --content-wide: 1100px;
  --nav-height: 64px;
  --radius: 6px;
}

.dark-mode {
  --bg: #1A1E23;
  --surface: #22272E;
  --surface-alt: #2D333B;
  --ink: #E6EDF3;
  --ink-muted: #8B949E;
  --accent: #6BA3C7;
  --accent-hover: #8BBAD6;
  --accent-light: rgba(107,163,199,0.1);
  --gold: #F6B630;
  --gold-hover: #FFCA50;
  --gold-light: rgba(246,182,48,0.12);
  --hero-bg: #1A2530;
  --hero-ink: #E6EDF3;
  --border: #373E47;
  --shadow: rgba(0,0,0,0.3);
}


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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }


/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

p + p { margin-top: 1rem; }


/* ── Layout ── */
.content-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.content-wide {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section--alt {
  background: var(--surface-alt);
}

.section--alt + .section,
.section + .section--alt {
  border-top: none;
}


/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-nav .content-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-brand img {
  height: 30px;
  width: auto;
}

.nav-brand .pe {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}


/* ── Hero (dark background) ── */
.hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

/* PE stamp — massive watermark, upper right, bleeding off page */
.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -15%;
  width: 45vw;
  height: 45vw;
  min-width: 360px;
  min-height: 360px;
  background: url('../assets/logo/pe-stamp.png') center / contain no-repeat;
  opacity: 0.18;
  filter: invert(1) blur(0.5px);
  transform: rotate(-6deg);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
  mask-image: radial-gradient(ellipse 70% 70% at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
  pointer-events: none;
}

/* Brand block — logo left, text right, always horizontal */
.hero-brand {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
  position: relative;
}

.hero-logo {
  width: 15vw;
  height: auto;
  flex-shrink: 0;
}

.hero-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--hero-ink);
  line-height: 0.8;
  letter-spacing: -0.085em;
}

.hero-name .mid {
  font-size: 0.5em;
  letter-spacing: 0;
}

.hero-name .pe {
  font-size: 0.55em;
  color: var(--accent);
  letter-spacing: 0;
}

.hero-brand-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 2.0vw, 1.5rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.05em;
  line-height: 1.0;
}

.hero-brand-subtitle:first-of-type {
  margin-top: 0.2em;
}

.hero-tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.65;
  position: relative;
}

.dark-mode .hero-tagline {
  color: rgba(230,237,243,0.65);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

/* Gold divider below hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}


/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: #1a1a1a;
}

.btn-gold:hover {
  background: var(--gold-hover);
  color: #1a1a1a;
  text-decoration: none;
}

.btn-outline-light {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #FFFFFF;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-light);
  text-decoration: none;
}


/* ── Service Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-left-color: var(--accent);
  box-shadow: 0 2px 12px var(--shadow);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.card p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.6;
}


/* ── Proof Bar ── */
.proof-bar {
  background: var(--hero-bg);
  color: #FFFFFF;
  padding: 4rem 0;
  position: relative;
}

.proof-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.proof-item .number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  display: block;
  color: var(--gold);
}

.proof-item .label {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 0.5rem;
  display: block;
  line-height: 1.35;
}


/* ── Page Header ── */
.page-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  color: var(--ink-muted);
  font-size: 1.15rem;
}


/* ── About / Story Sections ── */
.story-chapter {
  margin-bottom: 3rem;
}

.story-chapter:last-child {
  margin-bottom: 0;
}

.story-chapter h3 {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.story-chapter p {
  color: var(--ink);
}


/* ── Credentials ── */
.credentials-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem 3rem;
  align-items: start;
}

.credential-stamp {
  display: flex;
  align-items: center;
  justify-content: center;
}

.credential-stamp img {
  width: 160px;
  height: 160px;
  opacity: 0.85;
}

.dark-mode .credential-stamp img {
  filter: invert(1);
  opacity: 0.8;
}

.credential-details h3 {
  margin-bottom: 0.5rem;
}

.credential-list {
  list-style: none;
  padding: 0;
}

.credential-list li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.credential-list li strong {
  color: var(--ink);
  font-weight: 500;
}

.credential-section + .credential-section {
  margin-top: 2rem;
}


/* ── Track Record ── */
.record-category {
  margin-bottom: 3rem;
}

.record-category:last-child {
  margin-bottom: 0;
}

.record-category h3 {
  color: var(--accent);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold-light);
  margin-bottom: 1.25rem;
}

.record-list {
  list-style: none;
  padding: 0;
}

.record-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.98rem;
  line-height: 1.65;
  border-bottom: 1px solid var(--border);
}

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

.record-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.record-highlight {
  font-weight: 600;
  color: var(--gold);
}

.dark-mode .record-highlight {
  color: var(--gold);
}


/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 2rem;
}

.contact-detail {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-detail p + p {
  margin-top: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.2s ease;
  margin-bottom: 1.25rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Honeypot field: off-screen, not display:none (some bots skip hidden fields) */
.contact-form .form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Send result, shown under the button */
.contact-form .form-status {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-align: center;
}

.contact-form .form-status:empty {
  display: none;
}

.contact-form .form-status.is-error {
  color: #B3261E;
}

html.dark-mode .contact-form .form-status.is-error {
  color: #F2B8B5;
}

.contact-form .form-status a {
  color: inherit;
  text-decoration: underline;
}


/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent);
}


/* ── About Preview (homepage) ── */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.about-preview-stamp {
  display: flex;
  justify-content: center;
}

.about-preview-stamp img {
  width: 35vmax;
  opacity: 0.15;
}

.dark-mode .about-preview-stamp img {
  filter: invert(1);
  opacity: 0.18;
}


/* ── CTA Section ── */
.cta-section {
  background: var(--surface-alt);
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: var(--ink-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}


/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    gap: 0;
    box-shadow: 0 4px 12px var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero::before {
    width: 50vw;
    height: 50vw;
    top: -5%;
    right: -12%;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .proof-item .number {
    font-size: 2.25rem;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-preview {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-preview-stamp {
    order: -1;
  }


  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .section {
    padding: 3.5rem 0;
  }

  .page-header {
    padding: 3rem 0 2rem;
  }
}

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-brand {
    justify-content: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }
}
