/* ==========================================================================
   Vitro Software — site.css
   Design language: "the clinical chart, redesigned"
   Paper-first editorial aesthetic. Ink navy + chartreuse from the Vitro mark,
   pastel chart-stripe ribbon + halftone dots as signature motifs.
   ========================================================================== */

:root {
  /* Brand */
  --ink: #12405e;            /* deep navy — headings, body on paper */
  --ink-soft: #3d6480;       /* secondary text */
  --brand: #1d6a96;          /* Vitro blue — links, accents */
  --lime: #b4bd00;           /* Vitro chartreuse — highlights, CTAs */
  --lime-deep: #8f9600;      /* accessible lime for text/hover */

  /* Paper */
  --paper: #f9f7f2;          /* page ground */
  --paper-raised: #ffffff;   /* cards */
  --paper-shade: #efece3;    /* alt bands */
  --rule: #dcd7ca;           /* hairlines */

  /* Chart stripes (from the obs chart) */
  --stripe-pink: #f3c6d2;
  --stripe-blue: #c8e0ec;
  --stripe-yellow: #f1e5ab;

  /* Dark */
  --navy-950: #0b2638;
  --navy-900: #103247;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px rgba(18, 64, 94, .08), 0 2px 8px rgba(18, 64, 94, .06);
  --shadow-md: 0 2px 4px rgba(18, 64, 94, .08), 0 12px 32px rgba(18, 64, 94, .12);
  --radius: 10px;
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--lime-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* --------------------------------------------------------------------------
   Signature motifs
   -------------------------------------------------------------------------- */

/* Pastel chart-stripe ribbon */
.stripe-ribbon {
  height: 8px;
  background: linear-gradient(to right,
    var(--stripe-pink) 0 25%,
    var(--stripe-blue) 25% 50%,
    var(--stripe-yellow) 50% 75%,
    var(--lime) 75% 100%);
  border: 0;
}

/* Halftone dots (echoes the Vitro spiral mark) */
.dotfield {
  position: relative;
}
.dotfield::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(29, 106, 150, .28) 1.6px, transparent 1.7px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 480px 360px at var(--dot-x, 92%) var(--dot-y, 12%), #000 0%, transparent 68%);
          mask-image: radial-gradient(ellipse 480px 360px at var(--dot-x, 92%) var(--dot-y, 12%), #000 0%, transparent 68%);
}

/* Ruled chart-paper texture */
.ruled {
  background-image: repeating-linear-gradient(
    to bottom, transparent 0 30px, rgba(18, 64, 94, .045) 30px 31px);
}

/* Kicker label above headings */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  width: 26px; height: 8px;
  background: linear-gradient(to right,
    var(--stripe-pink) 0 33%, var(--stripe-blue) 33% 66%, var(--lime) 66% 100%);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 247, 242, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 72px;
}
.logo img { width: 180px; height: 36px; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--lime); color: var(--brand); }
.site-nav a.btn,
.site-nav a.btn[aria-current="page"] {
  padding: .7rem 1.5rem;
  border-bottom: 2px solid transparent;
  color: var(--navy-950);
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  padding: .7rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--lime); color: var(--navy-950); }
.btn-primary:hover { background: #c6cf1a; color: var(--navy-950); box-shadow: var(--shadow-sm); }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-ondark { background: var(--lime); color: var(--navy-950); }
.btn-ondark:hover { background: #c6cf1a; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--brand);
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-figure { position: relative; }
.hero-figure .chart-card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
  transform: rotate(1.5deg);
}
.hero-figure .chart-card img { border-radius: 4px; }
.hero-figure figcaption {
  margin-top: .9rem;
  font-size: .85rem;
  color: var(--ink-soft);
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3.25rem;
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); margin-bottom: 1rem; max-width: 18em; }
.page-hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 44em; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
section { padding: 4.5rem 0; }
.section-shade { background: var(--paper-shade); }
.section-head { max-width: 46em; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: .9rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* Card grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.9rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.3rem; margin: .9rem 0 .6rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card .icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(29, 106, 150, .08);
  color: var(--brand);
}
.card .icon svg { width: 26px; height: 26px; }

/* Stat band */
.stat-band { padding: 3.75rem 0; }
.stat-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { border-left: 3px solid var(--lime); padding-left: 1.25rem; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.stat .label { font-size: .92rem; color: var(--ink-soft); margin-top: .5rem; max-width: 15em; }

/* Case-study / photo cards */
.photo-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.photo-card img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.photo-card .body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.photo-card .meta {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lime-deep);
  margin-bottom: .5rem;
}
.photo-card h3 { margin: 0 0 .55rem; }
.photo-card .result {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  color: var(--brand);
  font-size: .95rem;
}

/* Quote */
.pullquote {
  position: relative;
  max-width: 52em;
  margin: 0 auto;
  padding: 2.5rem 2rem 2.5rem 3.25rem;
}
.pullquote::before {
  content: "\201C";
  position: absolute;
  left: 0; top: 1.2rem;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--lime);
}
.pullquote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-style: italic;
  line-height: 1.45;
}
.pullquote cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Split feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3rem 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--rule); }
.feature-row h3 { font-size: 1.7rem; margin-bottom: .9rem; }
.feature-row p { color: var(--ink-soft); }
.feature-row ul { margin: 1rem 0 0 1.2rem; color: var(--ink-soft); }
.feature-row li { margin-bottom: .45rem; }
.feature-row .media img {
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}
.feature-row.flip .media { order: -1; }

/* Checklist */
.checklist { list-style: none; margin: 1.25rem 0 0 !important; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .6rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 15px; height: 8px;
  border-left: 3px solid var(--lime);
  border-bottom: 3px solid var(--lime);
  transform: rotate(-45deg);
}

/* Logo strip */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.5rem;
  padding: 1rem 0 0;
}
.logo-strip span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
  opacity: .85;
  white-space: nowrap;
}
.logo-strip span::after {
  content: "·";
  margin-left: 2.5rem;
  color: var(--lime);
}
.logo-strip span:last-child::after { content: ""; }

/* CTA band */
.cta-band {
  background: var(--navy-950);
  color: #e8eef2;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(180, 189, 0, .35) 1.6px, transparent 1.7px);
  background-size: 15px 15px;
  -webkit-mask-image: radial-gradient(ellipse 540px 420px at 95% 100%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 540px 420px at 95% 100%, #000 0%, transparent 70%);
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  max-width: 20em;
  margin-bottom: 1rem;
}
.cta-band p { color: #b9c9d4; max-width: 40em; margin-bottom: 2rem; }
.cta-band .wrap { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-form label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin: 1.1rem 0 .35rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: .75rem .9rem;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
.contact-form button { margin-top: 1.5rem; }

.office {
  border-top: 3px solid var(--lime);
  background: var(--paper-raised);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.6rem 1.75rem;
  margin-bottom: 1.5rem;
}
.office h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.office p { color: var(--ink-soft); font-size: .96rem; margin-bottom: .35rem; }
.office a { font-weight: 600; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: #b9c9d4;
  padding: 4rem 0 2.5rem;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr .9fr 1.45fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer .logo img { width: 180px; filter: brightness(0) invert(1); opacity: .92; }
.site-footer .tagline { margin-top: 1rem; max-width: 24em; font-style: italic; font-family: var(--font-display); }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #cfdbe3; text-decoration: none; }
.site-footer a[href^="tel:"] { white-space: nowrap; }
.site-footer a:hover { color: var(--lime); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: .85rem;
  color: #7e93a1;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
html.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-figure { max-width: 460px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-band .wrap { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row.flip .media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
    padding: .5rem 1.5rem 1.25rem;
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: .85rem 0; border-bottom: 1px solid var(--rule); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--rule); }
  .site-nav .btn { margin-top: 1rem; text-align: center; }
  section { padding: 3.25rem 0; }
  .hero { padding: 3.25rem 0; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-band .wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pullquote { padding-left: 2.5rem; }
}
