/* =========================================================
   Lamartine Valley Labs, Inc. — styles.css
   Single stylesheet. CSS custom properties at :root.
   No build step. No framework. Drop-in to cPanel.
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Colors */
  --bg:           #FBFAF7;
  --bg-soft:      #F4F2EC;
  --bg-sunken:    #ECEAE2;
  --ink:          #14181F;
  --ink-2:        #4A5260;
  --ink-3:        #7A8290;
  --line:         #E6E3DB;
  --line-strong:  #CFCCC2;
  --accent:       #2B5CE6;
  --accent-dark:  #1E47C4;
  --accent-soft:  #E7EDFD;
  --success:      #1F8A4C;
  --error:        #C0392B;

  /* Type — mobile defaults */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   22px;
  --fs-xl:   28px;
  --fs-2xl:  34px;
  --fs-3xl:  42px;

  /* Spacing — 4-px scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20,24,31,.05);
  --shadow:    0 4px 12px rgba(20,24,31,.06);
  --shadow-lg: 0 12px 28px rgba(20,24,31,.08);

  /* Layout */
  --container:      1120px;
  --container-narrow: 720px;

  /* Fonts */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* Desktop type scale */
@media (min-width: 768px) {
  :root {
    --fs-xl:  32px;
    --fs-2xl: 42px;
    --fs-3xl: 56px;
  }
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  margin: 0 0 var(--s-4);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-3xl); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }

p  { margin: 0 0 var(--s-4); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--accent-dark); }

ul { padding-left: 1.2em; margin: 0 0 var(--s-4); }
li { margin-bottom: var(--s-2); }

hr.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: var(--s-4);
  background: var(--ink);
  color: #fff;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-md);
  z-index: 1000;
  font-size: var(--fs-sm);
}
.skip-link:focus { top: var(--s-4); color: #fff; }

/* ---------- 3. LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.container.narrow { max-width: var(--container-narrow); }

@media (min-width: 768px) {
  .container { padding-inline: var(--s-7); }
}

section { padding-block: var(--s-8); }

@media (min-width: 768px) {
  section { padding-block: var(--s-9); }
}

.bg-soft { background: var(--bg-soft); }

/* Section head */
.section-head { max-width: 760px; margin-bottom: var(--s-7); }
.section-head h2 { margin-bottom: var(--s-4); }
.section-head p {
  font-size: var(--fs-md);
  color: var(--ink-2);
  margin: 0;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* Two-col block (about page) */
.two-col {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}
.two-col .col-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: var(--s-2);
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 2fr; gap: var(--s-7); }
}

/* Generic grid */
.grid { display: grid; gap: var(--s-4); }
.grid.cols-2 { grid-template-columns: 1fr; }
.grid.cols-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Lede */
.lede {
  font-size: var(--fs-md);
  color: var(--ink-2);
  max-width: 60ch;
}

/* ---------- 4. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,250,247,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding-block: var(--s-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-suffix { color: var(--ink-3); font-weight: 500; }

.nav {
  display: none;
  align-items: center;
  gap: var(--s-6);
}
.nav a {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  position: relative;
  padding: var(--s-2) 0;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav .btn { padding: var(--s-2) var(--s-5); }

@media (min-width: 900px) {
  .nav { display: inline-flex; }
}

/* Mobile menu button */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
}
.menu-btn:hover { background: var(--bg-soft); }
@media (min-width: 900px) { .menu-btn { display: none; } }

/* Mobile menu panel */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: var(--s-4) var(--s-5);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-1);
  color: var(--ink);
  font-weight: 500;
  border-radius: var(--r-md);
  font-size: var(--fs-md);
}
.mobile-menu a:hover { background: var(--bg-soft); }
.mobile-menu a.active { background: var(--bg-soft); color: var(--ink); }
.mobile-menu .btn {
  display: block;
  text-align: center;
  margin-top: var(--s-3);
}
.mobile-menu .btn.btn-primary { color: #fff; }
.mobile-menu .btn.btn-primary:hover { background: #000; color: #fff; }
.mobile-menu .btn.btn-accent { color: #fff; }
@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  min-height: 44px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--ink-3); }

.btn-arrow::after {
  content: "→";
  font-size: 1em;
  transition: transform .2s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- 6. HEROES ---------- */
.hero {
  padding-block: var(--s-9) var(--s-8);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding-block: 120px var(--s-9); }
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: var(--s-5);
}
.hero .lede { margin-bottom: var(--s-3); }
.hero .lede + .lede { margin-bottom: var(--s-6); color: var(--ink-2); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* Subtle background mark */
.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

/* Page hero (interior pages) */
.page-hero {
  padding-block: var(--s-8) var(--s-7);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .page-hero { padding-block: var(--s-9) var(--s-8); }
}
.page-hero h1 { margin-bottom: var(--s-4); }
.page-hero .lede { margin-bottom: 0; }

/* ---------- 7. CARDS ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--s-5);
}

.card h3 { margin-bottom: var(--s-3); }
.card p {
  color: var(--ink-2);
  margin: 0;
  font-size: var(--fs-base);
}

/* ---------- 8. INDUSTRIES GRID ---------- */
.industry-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
.industry {
  padding: var(--s-6);
  border-top: 1px solid var(--line);
}
.industry:first-child { border-top: 0; }
.industry h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--s-2);
}
.industry p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.industry-num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: var(--s-3);
}

@media (min-width: 700px) {
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .industry { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .industry:nth-child(odd) { border-left: 0; }
  .industry:nth-child(-n+2) { border-top: 0; }
}
@media (min-width: 1000px) {
  .industry-grid { grid-template-columns: repeat(5, 1fr); }
  .industry { border-top: 0; border-left: 1px solid var(--line); }
  .industry:first-child { border-left: 0; }
  .industry:nth-child(odd) { border-left: 1px solid var(--line); }
  .industry:nth-child(1) { border-left: 0; }
}

/* ---------- 9. CTA SECTION ---------- */
.cta-section {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-8) var(--s-5);
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .cta-section { padding: var(--s-9) var(--s-7); }
}
.cta-section .eyebrow { color: rgba(255,255,255,0.6); }
.cta-section .eyebrow::before { background: var(--accent); }
.cta-section h2 { color: #fff; margin-bottom: var(--s-4); }
.cta-section p {
  color: rgba(255,255,255,0.75);
  max-width: 60ch;
  margin: 0 auto var(--s-6);
  font-size: var(--fs-md);
}

/* CTA wrapper container — gives it breathing room from sections above */
.cta-wrap { padding-block: var(--s-8); }
@media (min-width: 768px) { .cta-wrap { padding-block: var(--s-9); } }

/* ---------- 10. VALUE LIST (about page) ---------- */
.value-list {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0 0;
  display: grid;
  gap: var(--s-4);
}
.value-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: baseline;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.value-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.value-list .num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  letter-spacing: 0.08em;
}
.value-list .text { color: var(--ink); font-weight: 500; }

/* ---------- 11. CONTACT PAGE ---------- */
.contact-grid {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.4fr; gap: var(--s-8); }
}

.contact-list { display: grid; gap: var(--s-5); margin-top: var(--s-5); }

.contact-item {
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 0; }

.contact-item .label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-2);
}
.contact-item .value {
  font-size: var(--fs-md);
  color: var(--ink);
  font-weight: 500;
}
.contact-item .value a { color: var(--ink); }
.contact-item .value a:hover { color: var(--accent); }
.contact-item .note {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  margin-top: var(--s-1);
  font-weight: 400;
}

/* ---------- 12. FORM ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
@media (min-width: 768px) { .form-card { padding: var(--s-7); } }

.form-card h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--s-3);
}
.form-card .lede {
  font-size: var(--fs-base);
  margin-bottom: var(--s-6);
}

.form-row {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--s-4);
}
.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-2);
}
.field .req { color: var(--accent); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237A8290' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--s-4) center; padding-right: var(--s-7); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field .err {
  display: none;
  margin-top: var(--s-2);
  color: var(--error);
  font-size: var(--fs-sm);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); }
.field.has-error .err { display: block; }

.form-card .btn { width: 100%; margin-top: var(--s-2); }
@media (min-width: 600px) {
  .form-card .btn { width: auto; }
}

.form-success {
  display: none;
  padding: var(--s-6);
  background: #F0F8F2;
  border: 1px solid #CFE5D7;
  border-radius: var(--r-md);
  color: var(--success);
}
.form-success.show { display: block; }
.form-success strong { color: var(--success); display: block; margin-bottom: var(--s-1); font-size: var(--fs-md); }
.form-success p { color: var(--ink-2); margin: 0; }

/* ---------- 13. PRIVACY / LEGAL ---------- */
.last-updated-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: var(--s-5);
}
.last-updated-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.legal { padding-block: var(--s-8) var(--s-9); }
.legal section {
  padding: 0 0 var(--s-7);
  margin-bottom: var(--s-7);
  border-bottom: 1px solid var(--line);
}
.legal section:last-of-type { border-bottom: 0; }

.legal h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--s-4);
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.legal h2 .num {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.legal p {
  font-size: var(--fs-base);
  color: var(--ink-2);
}
.legal a { font-weight: 500; }

.last-updated-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  margin-top: var(--s-7);
}
.last-updated-card .label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-2);
}
.last-updated-card .date { color: var(--ink); font-weight: 500; font-size: var(--fs-md); margin: 0; }

/* ---------- 14. FOOTER ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding-block: var(--s-8) var(--s-5);
  margin-top: 0;
}

.footer-grid {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-6); }
}

.footer-brand .brand { margin-bottom: var(--s-4); }
.footer-brand p {
  color: var(--ink-3);
  font-size: var(--fs-sm);
  max-width: 36ch;
  margin: 0;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--s-2); }
.footer-col a {
  color: var(--ink-2);
  font-size: var(--fs-sm);
}
.footer-col a:hover { color: var(--ink); }
.footer-col p {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  margin: 0 0 var(--s-2);
}
.footer-col p span {
  display: block;
  color: var(--ink-3);
  font-size: var(--fs-xs);
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-5);
  flex-wrap: wrap;
  gap: var(--s-3);
}
.footer-bottom p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

/* ---------- 15. UTILITY ---------- */
.text-ink { color: var(--ink); }
.text-muted { color: var(--ink-3); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero::after { display: none; }
}
