/* Averis Labs — site stylesheet
   Palette: Ink #102A33, Teal #1F7A6C, Stone #EDE8DF, Slate #2B2F33, Copper #B5703C
   Type: IBM Plex Sans (headings) + Inter (body) */

:root {
  --ink: #102A33;
  --ink-light: #1c3f4a;
  --teal: #1F7A6C;
  --teal-dark: #175e53;
  --stone: #EDE8DF;
  --slate: #2B2F33;
  --copper: #B5703C;
  --white: #FFFFFF;
  --border: #E2DDD2;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--slate);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  position: relative;
}
/* Thin brand-gradient accent, always visible at the top of the viewport */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--teal) 55%, var(--copper) 100%);
  z-index: 200;
}
h1, h2, h3, h4 {
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3, h4 { font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 16px; }
a { color: var(--teal); }
ul { margin: 0; padding: 0; }
img, svg { display: block; }

/* Scroll-reveal (paired with script.js) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Icon badges used alongside cards / list items */
.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(31, 122, 108, 0.09);
  color: var(--teal);
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.icon-badge svg { width: 22px; height: 22px; display: block; }
.card.service-summary .icon-badge,
.tag-row .icon-badge.copper {
  background: rgba(181, 112, 60, 0.12);
  color: var(--copper);
}

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

/* Header / nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo svg { width: 30px; height: 30px; flex-shrink: 0; }
nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
nav.primary-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}
nav.primary-nav a {
  position: relative;
  color: var(--slate);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  padding-bottom: 4px;
  transition: color 0.15s ease;
}
nav.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
nav.primary-nav a:hover { color: var(--teal); }
nav.primary-nav a:hover::after,
nav.primary-nav a.active::after { transform: scaleX(1); }
nav.primary-nav a.active { color: var(--teal); }
.logo { transition: opacity 0.15s ease; }
.logo:hover { opacity: 0.8; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-dark); box-shadow: 0 8px 20px rgba(31,122,108,0.28); }
.btn-outline-light {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--white); box-shadow: 0 8px 20px rgba(16,42,51,0.18); }

/* Hero (home only) */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: 124px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,122,108,0.35) 0%, rgba(31,122,108,0) 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9FC6BD;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
  opacity: 0.7;
  flex-shrink: 0;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 4.4vw, 3.4rem);
  letter-spacing: -0.02em;
  max-width: 780px;
  margin-bottom: 22px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: #CBD4D2;
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Page banner (non-home pages) */
.page-banner {
  background: var(--stone);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.page-banner h1 { margin-bottom: 14px; }
.page-banner p.lead {
  font-size: 1.08rem;
  color: var(--slate);
  max-width: 680px;
  margin-bottom: 0;
}

/* Sections */
section { padding: 92px 0; }
section.alt { background: var(--stone); }
.section-head { max-width: 700px; margin-bottom: 52px; }
.section-head .eyebrow { color: var(--copper); }
.section-head.dark-bg .eyebrow { color: #9FC6BD; }

/* Grids & cards */
.grid {
  display: grid;
  gap: 26px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(16,42,51,0.10);
  border-color: rgba(16,42,51,0.05);
}
.card.pillar { border-top: 3px solid var(--teal); }
.card.service-summary { border-top: 3px solid var(--copper); }
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 0.96rem; margin-bottom: 0; }
.card .num {
  display: inline-block;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-weight: 700;
  color: var(--teal);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

/* Service detail blocks (services page) */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.service-block:last-child { border-bottom: none; }
.service-block h2 { margin-bottom: 14px; }
.service-block .icon-badge { background: rgba(181, 112, 60, 0.12); color: var(--copper); }
.service-block .tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--copper);
  margin-bottom: 10px;
  display: block;
}
.service-block ul {
  list-style: none;
  margin-bottom: 0;
}
.service-block ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.96rem;
}
.service-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
}
.value-box {
  background: var(--stone);
  border-radius: 6px;
  padding: 22px 24px;
  margin-top: 18px;
}
.value-box strong { color: var(--ink); display: block; margin-bottom: 6px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.value-box p { margin-bottom: 0; font-size: 0.95rem; }

/* Diff / values lists */
.value-list { list-style: none; }
.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 18px;
  margin: 0 -18px;
  border-bottom: 1px solid var(--border);
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, border-left-color 0.2s ease;
}
.value-list li:last-child { border-bottom: none; }
.value-list li:hover { background: rgba(31,122,108,0.04); border-left-color: var(--teal); }
.value-list li .icon-badge { margin-bottom: 0; margin-top: 2px; }
.value-list h3 { font-size: 1.02rem; margin-bottom: 8px; }
.value-list p { margin-bottom: 0; color: var(--slate); }

/* Two-column compare blocks (differentiation sections) */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.compare-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.compare-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(16,42,51,0.10); }
.compare-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.compare-card p { margin-bottom: 0; color: var(--slate); font-size: 0.96rem; }
.compare-note {
  margin-top: 26px;
  padding: 22px 24px;
  background: var(--stone);
  border-radius: 8px;
  border-left: 3px solid var(--copper);
}
.compare-note p { margin-bottom: 0; font-size: 0.97rem; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: #CBD4D2; max-width: 560px; margin: 0 auto 28px; }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.96rem;
  color: var(--slate);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-note {
  font-size: 0.85rem;
  color: #6b7278;
  margin-top: 6px;
}
.contact-side {
  background: var(--stone);
  border-radius: 6px;
  padding: 30px 28px;
}
.contact-side h3 { font-size: 1.02rem; margin-bottom: 14px; }
.contact-side a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-side a:hover { color: var(--teal); }
.contact-side .row { margin-bottom: 22px; }
.contact-side .row:last-child { margin-bottom: 0; }
.contact-side .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--copper);
  font-weight: 700;
  margin-bottom: 6px;
}

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: #B9C4C1;
  padding: 56px 0 30px;
  font-size: 0.92rem;
}
footer.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 36px;
}
footer.site-footer .logo { color: var(--white); margin-bottom: 12px; }
footer.site-footer .tagline { max-width: 320px; color: #9FAEAB; }
footer.site-footer nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}
footer.site-footer a { color: #DCE3E1; text-decoration: none; }
footer.site-footer a:hover { color: var(--white); }
footer.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: #8FA09D;
}

/* Responsive */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .service-block { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 64px; }
  section { padding: 56px 0; }
  nav.primary-nav { width: 100%; justify-content: space-between; }
  nav.primary-nav ul { gap: 18px; flex-wrap: wrap; }
  footer.site-footer .footer-top { flex-direction: column; }
  .value-list li { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .compare-card:hover { transform: none; }
}
