/* Applied Product Sciences — shared stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Work+Sans:wght@400;500;600&display=swap');

:root{
  --bg: oklch(0.96 0.013 80);
  --panel: oklch(0.925 0.016 78);
  --ink: oklch(0.24 0.02 155);
  --ink-soft: oklch(0.46 0.018 140);
  --accent: oklch(0.42 0.09 150);
  --accent-2: oklch(0.64 0.10 80);
  --line: oklch(0.85 0.014 85);
  --dark: oklch(0.17 0.012 260);
  --dark-ink: oklch(0.97 0.004 90);
  --dark-soft: oklch(0.68 0.01 260);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

.display { font-family: 'Newsreader', Georgia, serif; }
.eyebrow {
  font-family: 'Work Sans', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}

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

/* ---------- NAV ---------- */
.site-nav {
  background: var(--dark);
  color: var(--dark-ink);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 26px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--dark-ink);
}
.nav-links { display: flex; gap: 32px; font-size: 13px; font-weight: 500; color: var(--dark-soft); }
.nav-links a { color: inherit; }
.nav-links a:hover, .nav-links a.active { color: var(--dark-ink); font-weight: 600; }
.nav-toggle { display: none; }

/* ---------- HERO ---------- */
.hero { padding: 100px 0 84px; border-bottom: 1px solid var(--line); }
.hero .eyebrow { color: var(--accent); margin-bottom: 22px; display: block; }
.hero h1 { font-size: 72px; line-height: 1.06; font-weight: 400; margin: 0; letter-spacing: -0.005em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .tagline { font-size: 20px; color: var(--ink-soft); margin-top: 24px; font-style: italic; font-family: 'Newsreader', serif; }
.hero p.lede { max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--ink-soft); margin-top: 28px; }
.hero-actions { margin-top: 38px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* generic page header (non-hero, used on inner pages) */
.page-header { padding: 88px 0 64px; border-bottom: 1px solid var(--line); }
.page-header .eyebrow { color: var(--accent); margin-bottom: 20px; display: block; }
.page-header h1 { font-size: 50px; line-height: 1.14; font-weight: 400; max-width: 820px; margin: 0; }
.page-header h1 em { font-style: italic; color: var(--accent); }
.page-header p.lede { max-width: 620px; font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin-top: 24px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 15px 32px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-solid { background: var(--accent); color: var(--dark-ink); }
.btn-solid:hover { background: var(--ink); color: var(--dark-ink); }
.btn-outline-dark { border-color: var(--accent-2); color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.04em; padding: 16px 34px; }
.btn-outline-dark:hover { background: var(--accent-2); color: var(--dark); }
.btn-outline-light { border-color: var(--ink); color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; padding: 14px 30px; }
.btn-outline-light:hover { background: var(--ink); color: var(--bg); }

/* ---------- PILLARS (homepage) ---------- */
.pillars { border-bottom: 1px solid var(--line); }
.pillars-row { display: flex; max-width: var(--max); margin: 0 auto; padding: 0 56px; }
.pillar { flex: 1 1 0; padding: 52px 40px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 15px; }
.pillar:last-child { border-right: none; }
.pillar .num { font-size: 32px; font-style: italic; color: var(--accent-2); }
.pillar h3 { font-size: 27px; font-weight: 500; margin: 0; }
.pillar .tag { color: var(--accent); letter-spacing: 0.04em; }
.pillar p { font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin: 0; }

/* ---------- EQUITY / PANEL SECTIONS ---------- */
.panel-section { padding: 84px 0; background: var(--panel); border-bottom: 1px solid var(--line); }
.panel-section .eyebrow { color: var(--accent); margin-bottom: 26px; display: block; }
.panel-section .quote { font-size: 32px; line-height: 1.42; font-weight: 400; font-style: italic; max-width: 760px; color: var(--ink); margin: 0 0 22px; }
.panel-section p.support { font-size: 15px; line-height: 1.75; color: var(--ink-soft); max-width: 640px; margin: 0; }

/* ---------- CAPABILITY GRID (about) ---------- */
.capabilities { display: flex; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.capability { flex: 1 1 220px; padding: 0 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.capability:first-child { padding-left: 0; }
.capability:last-child { border-right: none; padding-right: 0; }
.capability h3 { font-size: 19px; font-weight: 500; margin: 0; }
.capability p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ---------- SERVICE ROWS ---------- */
.service-row { display: flex; border-bottom: 1px solid var(--line); }
.service-row.alt { background: var(--panel); }
.service-meta { width: 340px; flex: 0 0 340px; padding: 56px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.service-meta .num { font-size: 15px; font-style: italic; color: var(--accent-2); }
.service-meta h3 { font-size: 32px; font-weight: 500; line-height: 1.15; margin: 0; }
.service-price { margin-top: 8px; }
.service-price .amount { font-size: 26px; font-weight: 500; color: var(--accent); font-family: 'Newsreader', serif; }
.service-price .amount.tbd { font-size: 24px; color: var(--ink-soft); font-style: italic; }
.service-price .terms { color: var(--ink-soft); letter-spacing: 0.08em; margin-top: 4px; display: block; }
.service-body { flex: 1; padding: 56px; display: flex; flex-direction: column; gap: 20px; }
.service-hook { font-size: 16px; line-height: 1.6; font-style: italic; font-family: 'Newsreader', serif; color: var(--ink); margin: 0; }
.service-block h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--accent); margin: 0 0 6px; }
.service-block p { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

/* ---------- STATS ---------- */
.stats-row { display: flex; gap: 32px; flex-wrap: wrap; }
.stat h3 { font-size: 34px; color: var(--accent); font-family: 'Newsreader', serif; font-weight: 400; margin: 0; }
.stat p { margin: 4px 0 0; color: var(--ink-soft); }

/* ---------- FOOTER CTA ---------- */
.footer-cta { background: var(--dark); color: var(--dark-ink); }
.footer-cta .wrap { padding: 76px 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-cta h2 { font-size: 30px; font-weight: 400; max-width: 440px; margin: 0; }

.site-footer { background: var(--dark); color: var(--dark-soft); font-size: 12.5px; }
.site-footer .wrap { padding: 28px 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--dark-soft); }
.site-footer a:hover { color: var(--dark-ink); }

/* ---------- CONTACT FORM ---------- */
.contact-grid { display: flex; gap: 64px; padding: 72px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.contact-info h2 { font-family: 'Newsreader', serif; font-style: italic; font-weight: 400; font-size: 26px; color: var(--ink); margin: 0; }
.contact-form { flex: 1.3 1 420px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .wrap { padding: 0 28px; }
  .hero { padding: 72px 0 56px; }
  .hero h1 { font-size: 44px; }
  .page-header { padding: 64px 0 44px; }
  .page-header h1 { font-size: 36px; }
  .pillars-row { flex-direction: column; padding: 0 28px; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: none; }
  .capabilities { flex-direction: column; gap: 24px; }
  .capability { flex-basis: auto; border-right: none; padding: 0; }
  .service-row { flex-direction: column; }
  .service-meta { width: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .footer-cta .wrap, .site-nav .wrap { padding-left: 28px; padding-right: 28px; }
  .footer-cta h2 { font-size: 24px; }
  .nav-links { gap: 18px; font-size: 12px; flex-wrap: wrap; }
  .contact-grid { padding: 48px 0; }
  .panel-section .wrap, .site-footer .wrap { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 34px; }
  .nav-links { display: none; }
  .brand-name { font-size: 14px; }
}
