:root {
  --navy: #0A1628;
  --navy-mid: #152238;
  --forest: #2D6A4F;
  --forest-dark: #1B4332;
  --slate: #4A5568;
  --muted: #718096;
  --border: #E2E8F0;
  --surface: #F7F9FC;
  --white: #FFFFFF;
  --accent-line: #4A90A4;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.hidden { display: none !important; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(10,22,40,0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1.5rem;
}

.nav-logo img { height: 1.75rem; width: auto; display: block; }

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover { color: var(--navy); background: var(--surface); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
  border-radius: 1px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.25rem;
  background: var(--white);
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child { border-bottom: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.375rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

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

.btn-primary:hover { background: var(--navy-mid); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn-outline:hover { border-color: var(--navy); }

.btn-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.btn-forest {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

.btn-forest:hover { background: var(--forest-dark); }

/* Section labels */
.eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 1rem;
}

.section-lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--slate);
  max-width: 42rem;
  margin: 0;
}

.section-header { margin-bottom: 3.5rem; }
.section-header.center { text-align: center; }
.section-header.center .section-lead { margin: 0 auto; }

/* Hero */
.hero {
  position: relative;
  border-bottom: 1px solid var(--border);
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

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

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 22, 40, 0.92) 0%,
    rgba(10, 22, 40, 0.78) 42%,
    rgba(10, 22, 40, 0.35) 100%
  );
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: end;
  padding: 8rem 0 4.5rem;
  width: 100%;
}

.hero-content {
  max-width: 40rem;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-eyebrow-line {
  width: 2.5rem;
  height: 1px;
  background: var(--forest);
}

.hero-eyebrow span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-eyebrow-line { background: var(--forest); }

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.375rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--white);
  margin: 0 0 1.5rem;
  max-width: 16ch;
}

.hero-desc {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34rem;
  margin: 0 0 2.25rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-metrics {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.hero-metrics-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0;
}

.metric {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metric:nth-child(2n) { border-right: none; }
.metric:nth-last-child(-n+2) { border-bottom: none; }

.metric-value {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.375rem;
}

.metric-value.green { color: var(--forest); }

.metric-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}

/* Services */
.services {
  padding: 6rem 0;
  background: var(--white);
}

.pillar-grid-services {
  display: grid;
  gap: 1.5rem;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pillar-card:hover {
  border-color: rgba(45, 106, 79, 0.28);
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.06);
}

.pillar-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.pillar-icon--navy {
  background: rgba(10, 22, 40, 0.06);
  color: var(--navy);
}

.pillar-icon--forest {
  background: rgba(45, 106, 79, 0.1);
  color: var(--forest);
}

.pillar-index {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.pillar-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 1rem;
}

.pillar-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--slate);
  margin: 0 0 1.5rem;
  flex: 1;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.service-list li {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 0.375rem 0;
  padding-left: 1rem;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 4px;
  height: 1px;
  background: var(--forest);
}

/* Equipment */
.equipment {
  padding: 6rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.equipment-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.equipment-visual {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 4 / 3;
}

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

.equipment-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
}

.equipment-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate);
  margin: 0 0 1rem;
}

.equipment-lead strong { color: var(--navy); font-weight: 600; }

.equipment-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 2rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.spec-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.spec-item:nth-child(2n) { border-right: none; }
.spec-item:nth-last-child(-n+2) { border-bottom: none; }

.spec-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.35rem;
}

.spec-value {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--navy);
  font-weight: 500;
}

.equipment-source {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.equipment-source a {
  color: var(--forest);
  text-decoration: none;
  font-weight: 500;
}

.equipment-source a:hover { text-decoration: underline; }

/* Advantage */
.advantage {
  padding: 6rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.advantage-grid {
  display: grid;
  gap: 1.5rem;
}

.advantage-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.advantage-card:hover {
  border-color: rgba(10, 22, 40, 0.14);
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.05);
}

.advantage-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(10, 22, 40, 0.05);
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.advantage-card:nth-child(2) .advantage-icon {
  background: rgba(45, 106, 79, 0.1);
  color: var(--forest);
}

.advantage-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.35;
}

.advantage-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate);
  margin: 0 0 1rem;
}

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

/* Contact */
.contact {
  padding: 6rem 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contact-detail a,
.contact-detail span {
  font-size: 0.875rem;
  color: var(--slate);
  text-decoration: none;
}

.contact-detail a:hover { color: var(--forest); }

.contact-note {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
  padding: 1.25rem;
  background: var(--surface);
  border-left: 2px solid var(--forest);
  border-radius: 0 4px 4px 0;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group--last { margin-bottom: 1.25rem; }

.form-submit { width: 100%; margin-top: 0.5rem; }

.form-error {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: #C53030;
  text-align: center;
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding: 3rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 1.5rem;
  opacity: 0.95;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 0;
  max-width: 22rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal a:hover { color: #6EE7B7; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 0 1.5rem;
}

.footer-bottom p {
  font-size: 0.6875rem;
  margin: 0;
  color: rgba(255,255,255,0.35);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,22,40,0.6);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.modal {
  background: var(--white);
  border-radius: 4px;
  padding: 2.5rem;
  max-width: 24rem;
  width: 100%;
  text-align: center;
  border: 1px solid var(--border);
}

.modal h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.modal p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.modal-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(45,106,79,0.1);
  color: var(--forest);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Responsive */
@media (min-width: 640px) {
  .form-row.two-col { grid-template-columns: 1fr 1fr; }
  .hero-metrics-inner { grid-template-columns: repeat(4, 1fr); }
  .metric { border-bottom: none; }
  .metric:not(:last-child) { border-right: 1px solid var(--border); }
  .metric:nth-child(2n) { border-right: 1px solid var(--border); }
  .metric:last-child { border-right: none; }
  .advantage-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .pillar-grid-services { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .contact-grid { grid-template-columns: 1fr 1.2fr; }
  .equipment-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .hero-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
  .hero-grid { padding: 9rem 0 5rem; }
  .hero h1 { max-width: 14ch; }
}

@media (max-width: 639px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec-item { border-right: none !important; }
  .spec-item:last-child { border-bottom: none; }

  .hero { min-height: 92vh; }
  .hero-visual-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 22, 40, 0.55) 0%,
      rgba(10, 22, 40, 0.88) 55%,
      rgba(10, 22, 40, 0.94) 100%
    );
  }
}