/* Bonasso Engineering and Audits, LLC — site stylesheet */

:root {
  --blue-900: #042C53;
  --blue-800: #0C447C;
  --blue-600: #185FA5;
  --blue-400: #378ADD;
  --blue-200: #85B7EB;
  --blue-100: #B5D4F4;
  --blue-50: #E6F1FB;

  --ink: var(--blue-900);
  --body-text: #2B3A48;
  --muted: #5B6B7A;
  --border: #D8E4F0;
  --bg: #FFFFFF;
  --bg-alt: var(--blue-50);

  --font: Arial, Helvetica, "Helvetica Neue", sans-serif;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 16px;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-600);
  margin-bottom: 12px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 86px;
  width: auto;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--body-text);
  font-weight: 600;
  font-size: 0.95rem;
}

nav.main-nav a:hover {
  color: var(--blue-600);
  text-decoration: none;
}

nav.main-nav a.current {
  color: var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  padding-bottom: 4px;
}

nav.main-nav a.header-cta {
  background: var(--blue-600);
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

nav.main-nav a.header-cta:hover {
  background: var(--blue-800);
  color: #fff;
  text-decoration: none;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-800);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.btn-outline-dark:hover {
  background: var(--blue-50);
  color: var(--blue-800);
  text-decoration: none;
}

/* Hero */

.hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: #fff;
  padding: 88px 0 96px;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--blue-200);
}

.hero h1 {
  color: #fff;
}

.hero .subhead {
  font-size: 1.2rem;
  color: var(--blue-100);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero .cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.page-hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: #fff;
  padding: 64px 0 72px;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--blue-100);
  font-size: 1.1rem;
  max-width: 680px;
  margin-bottom: 0;
}

/* Sections */

section {
  padding: 72px 0;
}

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

.section-intro {
  max-width: 720px;
  margin-bottom: 40px;
}

/* Grid cards */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  font-weight: 700;
  font-size: 1.2rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  margin: 0;
  padding-left: 20px;
}

.card ul li {
  margin-bottom: 6px;
}

/* Credibility strip */

.credibility {
  background: var(--blue-900);
  color: #fff;
  padding: 40px 0;
}

.credibility .grid-3 {
  gap: 24px;
}

.credibility .stat {
  text-align: center;
}

.credibility .stat strong {
  display: block;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 4px;
}

.credibility .stat span {
  color: var(--blue-200);
  font-size: 0.9rem;
}

/* Services list sections */

.service-block {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.service-block:first-of-type {
  border-top: none;
}

.service-block .grid-2 {
  align-items: start;
}

.service-block ul {
  margin: 0;
  padding-left: 20px;
}

.service-block ul li {
  margin-bottom: 10px;
}

/* Timeline */

.timeline {
  border-left: 2px solid var(--blue-200);
  margin-left: 8px;
  padding-left: 28px;
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-600);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--blue-200);
}

.timeline-item .years {
  color: var(--blue-600);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-item h3 {
  margin-bottom: 2px;
}

.timeline-item .company {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

/* Lists (patents, education) */

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

/* Empty state */

.empty-state {
  border: 1px dashed var(--blue-200);
  border-radius: 8px;
  background: var(--blue-50);
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

.empty-state h3 {
  color: var(--ink);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.contact-grid-centered {
  grid-template-columns: 1fr;
  justify-items: center;
}

.contact-grid-centered .contact-form {
  width: 100%;
  max-width: 640px;
}

form.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.9rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--body-text);
  background: #fff;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--blue-400);
  outline-offset: 1px;
  border-color: var(--blue-400);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 16px;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 16px 0 0;
}

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

.form-status-success {
  color: #1a7f4b;
}

.form-status-error {
  color: #b3261e;
}

/* Final CTA band */

.cta-band {
  background: var(--blue-50);
  color: var(--body-text);
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--ink);
}

.cta-band p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

/* Footer */

.site-footer {
  background: var(--blue-900);
  color: var(--blue-100);
  padding: 48px 0 28px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand img {
  height: 76px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--blue-200);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-weight: 600;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--blue-100);
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--blue-200);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* Responsive */

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

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

  .service-block .grid-2 {
    gap: 16px;
  }

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

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .credibility .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .brand img {
    height: 60px;
  }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
  }

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

  nav.main-nav a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  nav.main-nav .header-cta {
    margin-top: 12px;
    text-align: center;
    width: 100%;
  }

  .site-header .container {
    position: relative;
    flex-wrap: wrap;
  }

  .hero {
    padding: 56px 0 64px;
  }

  section {
    padding: 48px 0;
  }

  .form-two {
    grid-template-columns: 1fr;
  }
}
