

/* =========================
   RESET & BASE
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  background: #f5f5f7; /* off-white */
  color: #1d1d1f; /* near-black */
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: #ffffff;
  padding: 8px 12px;
  z-index: 1000;
}

/* Helpers */
.muted {
  color: #4b5563;
}
.small {
  font-size: 0.85rem;
}

/* =========================
   LAYOUT & RHYTHM
   ========================= */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Default section spacing */
.section {
  padding: 80px 0;
}

/* Home hero spacing */
.hero {
  padding-top: 88px;
  padding-bottom: 36px;
}

/* Page heroes (Services/About/Contact/etc.) */
.page-hero {
  padding: 56px 0 28px;
}

/* Reduce dead air between hero and the next section */
.hero + .section {
  padding-top: 64px;
}
.page-hero + .section {
  padding-top: 48px;
}

/* Alternate section styling */
.section-alt {
  background: #ffffff;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

/* Split layouts */
.split {
  display: grid;
  gap: 48px;
}
@media (min-width: 768px) {
  .split {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* Prose wrapper */
.prose {
  max-width: 900px;
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1,
h2,
h3 {
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 3.2vw, 3rem);
}
h2 {
  font-size: clamp(1.55rem, 2.1vw, 1.95rem);
}
h3 {
  font-size: 1.1rem;
  line-height: 1.25;
}

p {
  margin: 0 0 16px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 12px;
}

.lead {
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

/* =========================
   HEADER & NAV
   ========================= */
.site-header {
  background: rgba(245, 245, 247, 0.85);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 18px;
  height: 18px;
  background: url("/assets/logo-mark.svg") no-repeat center / contain;
  border-radius: 0; /* remove square rounding */
}

.brand-name {
  font-size: 1.1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-weight: 500;
  color: #1d1d1f;
  transition: opacity 160ms ease;
}

.nav a:hover {
  opacity: 0.7;
}

.nav a.active {
  font-weight: 600;
}

/* --- Logo optical alignment (single source of truth) --- */
header .brand .brand-mark {
  transform: translateY(-2px);
}

/* =========================
   BUTTONS (Premium micro-interactions)
   ========================= */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 12px 20px;
  background: #1d1d1f;
  border: 1px solid #1d1d1f;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease,
    border-color 160ms ease;
}

.btn:hover {
  background: #000000;
  border-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.btn-small {
  padding: 9px 16px;
  font-size: 0.92rem;
}

.btn-ghost {
  background: transparent;
  color: #1d1d1f;
  border: 1px solid rgba(29, 29, 31, 0.18);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(29, 29, 31, 0.06);
  border-color: rgba(29, 29, 31, 0.22);
  transform: translateY(-1px);
}

.nav a.btn,
.nav a.btn:visited,
.nav a.btn:hover {
  color: #ffffff;
}

/* CTA spacing */
.cta-row,
.section-cta,
.final-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-row {
  margin-top: 18px;
  margin-bottom: 16px;
}

.section-cta {
  margin-top: 26px;
}
.final-cta-actions {
  margin-top: 18px;
}

/* =========================
   HERO GRID + VALUE COLUMN
   ========================= */
.hero-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* Right-side wrapper (if used) */
.hero-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(229, 231, 235, 0.7);
  border-radius: 18px;
  padding: 24px;
}

/* grid-3 helper used in index.html */
.grid-3 {
  display: grid;
  gap: 16px;
}

/* =========================
   CARDS (Premium but not over-tuned)
   ========================= */
.cards {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease,
    background 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(29, 29, 31, 0.22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.09);
}

/* Soft cards remain softer */
.card.soft {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(29, 29, 31, 0.1);
  box-shadow: none;
}

.card.soft:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(29, 29, 31, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

/* =========================
   LISTS & STEPS
   ========================= */
.list {
  padding-left: 20px;
}
.list li {
  margin-bottom: 10px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  margin-bottom: 24px;
}

.step-title {
  font-weight: 600;
}
.step-text {
  color: #4b5563;
}

/* =========================
   FORMS
   ========================= */
.field {
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(29, 29, 31, 0.18);
  background: #ffffff;
  font-family: inherit;
}

textarea {
  resize: vertical;
}
.hidden {
  display: none;
}

/* Notes */
.note {
  background: rgba(255, 255, 255, 0.85);
  border-left: 4px solid #1d1d1f;
  border-radius: 12px;
  padding: 16px;
  margin-top: 32px;
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
  background: #f5f5f7;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  margin-top: 96px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 0;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  transition: opacity 160ms ease;
}
.footer-links a:hover {
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  padding: 16px 0;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 900px) {
  .section {
    padding: 72px 0;
  }
  .hero {
    padding-top: 72px;
    padding-bottom: 28px;
  }
  .page-hero {
    padding: 44px 0 22px;
  }
  .split {
    grid-template-columns: 1fr;
  }
}

/* =========================
   MOBILE HEADER FIX
   ========================= */
@media (max-width: 520px) {
  .header-inner {
    height: auto;
    padding: 12px 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav a {
    font-size: 0.95rem;
  }

  /* Keep the Contact button from dominating the row */
  .btn-small {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  /* Optional: slightly reduce brand text if needed */
  .brand-name {
    font-size: 1.05rem;
  }
}

/* --- Prose spacing: ensure blocks don't feel glued together --- */
.prose .grid-2 {
  margin-bottom: 40px;
}

.prose h2 {
  margin-top: 48px;
}

.prose h2:first-of-type {
  margin-top: 0;
}

@media (min-width: 900px) {
  .brand-mark {
    width: 20px;
    height: 20px;
  }
}