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

:root {
  --color-bg:        #fafaf9;
  --color-surface:   #ffffff;
  --color-alt:       #f4f3f0;
  --color-text:      #1c1917;
  --color-muted:     #57534e;
  --color-accent:    #0f172a;
  --color-accent-light: #1e293b;
  --color-gold:      #22c55e;
  --color-border:    #e7e5e4;
  --font-sans:       'Inter', system-ui, sans-serif;
  --font-mono:       'JetBrains Mono', ui-monospace, monospace;
  --shadow-sm:       0 1px 3px rgba(0,0,0,.06);
  --shadow-md:       0 4px 20px rgba(0,0,0,.08);
  --radius:          8px;
  --max-width:       1120px;
  --header-h:        72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-accent-light); }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ── Typography helpers ───────────────────────────────────── */
.section-label {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: .75rem;
}

.section { padding: 5rem 0; }
.section-alt { background: var(--color-alt); }

.section-header { max-width: 560px; margin-bottom: 3rem; }
.section-header h2,
.about-text h2,
.contact-info h2 {
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-intro { color: var(--color-muted); font-size: 1.0625rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.5rem;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}

.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-light);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.7);
}

.btn-full { width: 100%; }

/* ── Header / Nav ─────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  display: flex;
  flex-direction: column;
  color: var(--color-text);
  line-height: 1.2;
}
.logo:hover { color: var(--color-text); }

.logo-mark {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-accent);
}

.logo-text {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

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

.nav-links a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--color-muted);
}
.nav-links a:hover { color: var(--color-accent); }

.nav-cta {
  padding: .5rem 1rem !important;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: var(--radius);
}
.nav-cta:hover {
  background: var(--color-accent-light);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform .25s, opacity .25s;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(15,23,42,.97) 0%, rgba(15,23,42,.88) 40%, rgba(6,78,59,.35) 100%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2322c55e' stroke-opacity='0.07'%3E%3Cpath d='M0 20h40M20 0v40'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 4rem;
  max-width: 680px;
  color: #fff;
}

.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.82);
  margin-bottom: 2rem;
  max-width: 520px;
}

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

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

.about-text p { color: var(--color-muted); margin-bottom: 1rem; }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: .375rem;
}

.stat-label {
  font-size: .9375rem;
  color: var(--color-muted);
  line-height: 1.5;
}

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

@media (min-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: .625rem;
}

.service-card p {
  font-size: .9375rem;
  color: var(--color-muted);
}

/* ── Approach ─────────────────────────────────────────────── */
.approach-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.approach-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
}

.approach-step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: .375rem;
}

.approach-step p {
  font-size: .9375rem;
  color: var(--color-muted);
}

/* ── Certifications ───────────────────────────────────────── */
.cert-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cert-group-title {
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.cert-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  padding: .5rem .875rem;
  font-size: .875rem;
  font-weight: 600;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
}

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

.contact-info p { color: var(--color-muted); margin-bottom: 1.5rem; }

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.detail-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

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

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

.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: .375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .625rem .875rem;
  font-family: inherit;
  font-size: .9375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(30,58,95,.12);
}

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

.form-note {
  margin-top: .75rem;
  font-size: .75rem;
  color: var(--color-muted);
  text-align: center;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,.6);
  padding: 1.75rem 0;
  font-size: .875rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-to-top { color: rgba(255,255,255,.6); }
.back-to-top:hover { color: #fff; }

/* ── Mobile nav open state ────────────────────────────────── */
.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--color-surface);
  padding: 1.5rem 1rem 2rem;
  border-bottom: 1px solid var(--color-border);
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

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

  .approach-steps { grid-template-columns: 1fr; }

  .cert-groups { grid-template-columns: 1fr; }
}

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

  .nav-links { display: none; }

  .nav { position: relative; }

  .section { padding: 3.5rem 0; }
}
