/* =========================================================================
   Palomar Aerospace — Website Styles
   Design language matched to Portal / PALAD ecosystem
   DM Sans · #035E31 green · #010101 black · #FAFBFC bg
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --black:          #010101;
  --black-soft:     #1A1A1A;
  --green:          #035E31;
  --green-hover:    #047A3F;
  --green-light:    #E6F4ED;
  --green-faint:    #F2FAF6;
  --white:          #FFFFFF;
  --bg:             #FAFBFC;
  --bg-dark:        #111111;
  --text:           #1A1A1A;
  --text-secondary: #555555;
  --text-muted:     #888888;
  --text-light:     #AAAAAA;
  --border:         #E5E7EB;
  --border-light:   #F0F1F3;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06);
  --shadow:         0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 12px rgba(0,0,0,0.08);
  --radius:         8px;
  --radius-lg:      10px;
  --font:           'DM Sans', -apple-system, sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --nav-height:     64px;
  --max-width:      1100px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.nav-logo-mark svg { width: 100%; height: 100%; }
.nav-wordmark {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--black);
  text-transform: uppercase;
}
.nav-wordmark-thin {
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text-muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-link:hover { color: var(--black); background: var(--bg); }
.nav-link.active { color: var(--green); font-weight: 600; }
.nav-link-cta {
  background: var(--green);
  color: var(--white) !important;
  margin-left: 8px;
  font-weight: 600;
}
.nav-link-cta:hover { background: var(--green-hover); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--green); border-color: var(--green); }
.btn-lg { padding: 13px 28px; font-size: 15px; }

/* ===== HERO ===== */
.hero {
  background: var(--white);
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border-light);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.hero-content { max-width: 560px; }
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}
.hero-headline {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--black);
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-mark {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  opacity: 0.06;
}
.hero-svg { width: 100%; height: 100%; }

/* ===== SECTION DIVIDER ===== */
.section-divider {
  height: 1px;
  background: var(--border-light);
}

/* ===== PILLARS ===== */
.pillars {
  padding: 72px 0;
  background: var(--bg);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.pillar-icon {
  width: 42px;
  height: 42px;
  background: var(--green-faint);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 16px;
}
.pillar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}
.pillar-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== ABOUT STRIP ===== */
.about-strip {
  padding: 80px 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.about-inner {
  display: flex;
  gap: 72px;
  align-items: flex-start;
}
.about-text { flex: 1; }
.about-text p { color: var(--text-secondary); font-size: 15px; }
.about-stat-col {
  flex-shrink: 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.about-stat {}
.stat-value {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 600;
  color: var(--black);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-plus, .stat-unit {
  font-size: 20px;
  color: var(--green);
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== SHARED SECTION LABELS / HEADINGS ===== */
.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.section-heading {
  font-size: 32px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 24px;
}

/* ===== CTA BAND ===== */
.cta-band {
  padding: 60px 0;
  background: var(--bg-dark);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.cta-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-mark { width: 26px; height: 26px; }
.footer-logo-mark svg { width: 100%; height: 100%; }
.footer-wordmark {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}
.footer-nav { display: flex; gap: 4px; }
.footer-link {
  padding: 6px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  border-radius: 4px;
  transition: color 0.15s;
}
.footer-link:hover { color: rgba(255,255,255,0.8); }
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 60px 0 52px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}
.page-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.page-heading {
  font-size: 42px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -1px;
  margin-bottom: 14px;
  line-height: 1.1;
}
.page-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 520px;
}

/* ===== SERVICES (Capabilities page) ===== */
.services {
  padding: 72px 0;
  background: var(--white);
}
.service-editorial {
  padding: 52px 0;
  border-bottom: 1px solid var(--border-light);
  max-width: 720px;
}
.service-editorial:first-child { padding-top: 0; }
.service-editorial:last-child { border-bottom: none; }
.service-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}
.service-rule {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--green);
  flex-shrink: 0;
}
.service-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.service-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 9px;
}

/* ===== BACKGROUND STRIP (Capabilities page) ===== */
.background-strip {
  padding: 72px 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.bg-inner {}
.bg-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 24px;
}
.bg-col p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CONTACT (Contact page) ===== */
.contact-section {
  padding: 72px 0 80px;
  background: var(--bg);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: flex-start;
}
.contact-form-wrap {}
.contact-form {}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 14px;
  background: var(--white);
  color: var(--text);
  transition: all 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(3,94,49,0.08);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}
.form-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

/* Contact sidebar */
.contact-info {
  padding-top: 8px;
}
.contact-info-block { margin-bottom: 28px; }
.ci-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 5px;
  font-family: var(--font-mono);
}
.ci-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  word-break: break-word;
}
a.ci-value { color: var(--green); }
a.ci-value:hover { text-decoration: underline; }
.contact-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}
.contact-note p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-mark { display: none; }
  .hero-headline { font-size: 42px; }
  .pillars-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-inner { flex-direction: column; gap: 40px; }
  .about-stat-col { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .bg-cols { grid-template-columns: 1fr; gap: 20px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { border-top: 1px solid var(--border); padding-top: 32px; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .hero { padding: 52px 0 48px; }
  .hero-headline { font-size: 34px; letter-spacing: -0.5px; }
  .nav-wordmark-thin { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
