/* peter-engineering.com — Website Styles */

:root {
  --navy: #001838;
  --navy-light: #0f2b52;
  --navy-tint: #eef2f6;
  --green: #287000;
  --green-light: #3f9111;
  --green-tint: #eef7e8;
  --ink: #1c2530;
  --muted: #5b6675;
  --border: #e2e6eb;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(0, 24, 56, 0.08);
  --max-width: 1160px;
  --font: "Jost", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink); }
.lede { font-size: 1.15rem; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.8em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--green);
  display: inline-block;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  height: 58px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
}
.main-nav a:hover { color: var(--green); text-decoration: none; }
.main-nav a[aria-current="page"] {
  color: var(--green);
  border-bottom: 2px solid var(--green);
  padding-bottom: 4px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.header-cta:hover { background: var(--green-light); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .header-cta { margin-top: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy-tint) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero-watermark {
  position: absolute;
  top: 50%;
  right: -6%;
  height: 145%;
  width: auto;
  transform: translateY(-50%);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1.6em;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--green-light); text-decoration: none; }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; text-decoration: none; }

.hero-badge {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.hero-badge .num { font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.hero-badge small { color: var(--muted); display: block; margin-top: 2px; }

.hero-visual {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.hero-visual .pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pillar-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--bg-alt);
  border-radius: 8px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.pillar-chip .ico { color: var(--green); flex-shrink: 0; }

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy {
  background: var(--navy);
  color: #fff;
}
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #cfd9e6; }
.section-head {
  max-width: 680px;
  margin: 0 0 40px;
}
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card .ico-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card ul {
  margin: 0.6em 0 0;
  padding-left: 1.1em;
  color: var(--muted);
}
.card li { margin-bottom: 0.35em; }

.pillar-card {
  border-top: 4px solid var(--green);
}

.step {
  display: flex;
  gap: 18px;
}
.step .step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Locations ---------- */
.location-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.location-card .ico-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy-tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Quote / trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}
.trust-strip strong { color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band .btn-primary { background: #fff; color: var(--green); }
.cta-band .btn-primary:hover { background: var(--navy-tint); }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
textarea { resize: vertical; min-height: 130px; }
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checkbox-row input { width: auto; margin-top: 4px; }
.checkbox-row label { font-weight: 400; color: var(--muted); margin: 0; }

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

/* ---------- Contact info list ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list .ico-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--green-tint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Breadcrumb / page header ---------- */
.page-header {
  background: var(--navy-tint);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 44px;
}
.page-header .eyebrow { color: var(--green); }

/* ---------- Legal pages ---------- */
.legal-content h2 { margin-top: 1.6em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { color: var(--ink); }
.placeholder {
  background: #fff8e6;
  border: 1px dashed #d9a300;
  color: #7a5900;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.92em;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cfd9e6;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.site-footer a { color: #cfd9e6; }
.site-footer a:hover { color: #fff; }
.site-footer .brand img { height: 48px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #9db0c6;
}
.footer-bottom a { color: #9db0c6; }
.footer-bottom nav a { margin-left: 18px; }
.footer-bottom nav a:first-child { margin-left: 0; }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { flex-direction: column; text-align: center; }
  section { padding: 52px 0; }
}
