/* =========================================================
   itad.co — design tokens
   ========================================================= */
:root{
  /* color */
  --color-ink:        #10151b;   /* near-black, cool — headings, dark bands */
  --color-navy:       #0e2a3b;   /* deep teal-navy — secondary dark accent */
  --color-body:       #4a535c;
  --color-muted:      #78828b;
  --color-line:       #e2e6e9;
  --color-bg:         #f5f6f5;
  --color-surface:    #ffffff;
  --color-brand:      #0ac775;
  --color-brand-dark: #089657;
  --color-brand-tint: #e6f9f0;

  /* type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* shared control tokens — buttons, inputs, textareas all read from these */
  --radius-control: 10px;
  --radius-card: 4px;
  --control-height: 52px;
  --control-padding-x: 18px;
  --border-width: 1px;

  /* layout */
  --wrap: 1180px;
  --header-h: 84px; /* fallback; recalculated in JS to match the real rendered height */
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 600;
}
p{ margin: 0 0 16px; }
p:last-child{ margin-bottom: 0; }
button{ font-family: inherit; }

.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link{
  position: absolute; left: 12px; top: -60px; background: var(--color-ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-control); z-index: 1000; transition: top .2s ease;
}
.skip-link:focus{ top: 12px; }

:focus-visible{ outline: 2px solid var(--color-brand-dark); outline-offset: 2px; }

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

/* Every anchored section lines up under the sticky header, whatever its height is */
section[id]{ scroll-margin-top: var(--header-h); }

/* =========================================================
   Buttons, inputs — shared control system
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--control-height);
  padding: 0 26px;
  border-radius: var(--radius-control);
  border: var(--border-width) solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--color-brand);
  color: #ffffff;
  border-color: var(--color-brand);
}
.btn-primary:hover{ background: var(--color-brand-dark); border-color: var(--color-brand-dark); }
.btn-ghost{
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover{ background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-cta{
  background: var(--color-ink);
  color: #ffffff;
  border-color: var(--color-ink);
}
.btn-cta:hover{ background: #000; border-color: #000; }
.btn-compact{ height: 44px; padding: 0 20px; font-size: 0.9rem; }
.btn-block{ width: 100%; }

input, textarea{
  width: 100%;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--color-ink);
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-control);   /* same radius token as .btn */
  padding: 0 var(--control-padding-x);
  height: var(--control-height);
  transition: border-color .18s ease, box-shadow .18s ease;
}
textarea{
  height: auto;
  padding: 14px var(--control-padding-x);
  resize: vertical;
  min-height: 120px;
}
input:focus, textarea:focus{
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-tint);
  outline: none;
}
label{
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 8px;
}
.field{ margin-bottom: 18px; }
.field-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-note{
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--color-muted);
  text-align: center;
}
.form-note.is-success{ color: var(--color-brand-dark); font-weight: 600; }
.form-note.is-error{ color: #c23b3b; font-weight: 600; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner{
  display: flex;
  align-items: center;
  gap: 32px;
  height: 84px;
}
.brand{ display: flex; align-items: center; margin-right: auto; }
.brand-mark{ height: 36px; width: auto; }

.main-nav ul{
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a{
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--color-body);
  padding: 8px 2px;
  position: relative;
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover{ color: var(--color-ink); }
.main-nav a.is-active{ color: var(--color-ink); }
.main-nav a.is-active::after{ transform: scaleX(1); }

.header-cta{ flex-shrink: 0; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-ink);
}

/* =========================================================
   Hero — bold typography, minimal imagery
   ========================================================= */
.hero{
  background: var(--color-ink);
  color: #fff;
  overflow: hidden;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 110px 24px 90px;
}
.hero h1{
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero-lead{
  font-size: 1.12rem;
  color: rgba(255,255,255,0.72);
  max-width: 52ch;
  margin-bottom: 34px;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

.hero-graphic{ display: flex; flex-direction: column; align-items: center; gap: 18px; }
.asset-grid{ width: 100%; max-width: 320px; height: auto; }
.asset-grid .cell-line{ fill: none; stroke: rgba(255,255,255,0.22); stroke-width: 1.4; }
.asset-grid .cell-fill{ fill: var(--color-brand); opacity: 0.92; }
.hero-graphic-caption{
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  max-width: 240px;
  margin: 0;
}

.eyebrow{
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-brand-dark);
  margin-bottom: 14px;
}
.eyebrow-light{ color: #7ee9bd; }

/* =========================================================
   Trust strip
   ========================================================= */
.trust-strip{
  border-bottom: 1px solid var(--color-line);
  padding: 36px 0;
}
.trust-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.trust-item{ display: flex; align-items: flex-start; gap: 14px; }
.trust-item svg{ width: 26px; height: 26px; flex-shrink: 0; color: var(--color-brand-dark); margin-top: 2px; }
.trust-item h3{ font-size: 0.98rem; margin-bottom: 4px; }
.trust-item p{ font-size: 0.87rem; color: var(--color-muted); }

/* =========================================================
   Stats band
   ========================================================= */
.stats{
  background: var(--color-navy);
  color: #fff;
  padding: 48px 0;
}
.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number{
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-brand);
}
.stat-label{
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band{
  background: var(--color-brand);
  padding: 38px 0;
}
.cta-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-inner p{
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  max-width: 60ch;
}

/* =========================================================
   Generic section rhythm
   ========================================================= */
.section{ padding: 100px 0; }
.section-alt{ background: var(--color-bg); }
.section-dark{ background: var(--color-ink); color: rgba(255,255,255,0.78); }
.section-dark h2, .section-dark h3{ color: #fff; }

.section-head{ max-width: 640px; margin: 0 auto 56px; text-align: left; }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-lead{ color: var(--color-body); font-size: 1.02rem; }
.section-lead-light{ color: rgba(255,255,255,0.68); }

/* =========================================================
   About — editorial pillar row (no card-kit boxes)
   ========================================================= */
.pillar-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.pillar{
  border-top: 2px solid var(--color-ink);
  padding-top: 24px;
}
.pillar-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-brand-dark);
  margin-bottom: 18px;
}
.pillar-icon svg{ width: 30px; height: 30px; }
.pillar h3{ font-size: 1.1rem; margin-bottom: 10px; }
.pillar p{ font-size: 0.95rem; }

/* =========================================================
   Split proof section
   ========================================================= */
.split-wrap{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.split-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.split-copy .section-lead{ margin-bottom: 36px; }

.callout-row{ display: flex; gap: 40px; }
.callout{
  padding-left: 20px;
  border-left: 2px solid var(--color-line);
}
.callout-number{
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-brand-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.callout-label{ font-size: 0.88rem; color: var(--color-body); }

/* =========================================================
   Services — flat list rows (distinct from the pillar/card motifs)
   ========================================================= */
.service-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
}
.service-row{
  padding: 26px 0;
  border-top: 1px solid var(--color-line);
}
.service-list .service-row:nth-last-child(-n+2){ border-bottom: 1px solid var(--color-line); }
.service-row h3{ font-size: 1.05rem; margin-bottom: 8px; }
.service-row p{ font-size: 0.93rem; }

/* =========================================================
   Certifications — compact badge row
   ========================================================= */
.cert-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.cert-item{
  border-left: 2px solid var(--color-line);
  padding-left: 20px;
}
.cert-mark{
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--color-brand-dark);
  background: var(--color-brand-tint);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.cert-item h3{ font-size: 1rem; margin-bottom: 8px; }
.cert-item p{ font-size: 0.9rem; }

/* =========================================================
   Process
   ========================================================= */
.process-wrap{ display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.section-head-light{ margin: 0; }
.process-list{ display: flex; flex-direction: column; gap: 30px; }
.process-step{ display: flex; gap: 20px; }
.step-index{
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10,199,117,0.16);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}
.process-step h3{ font-size: 1.02rem; margin-bottom: 6px; color: #fff; }
.process-step p{ font-size: 0.92rem; color: rgba(255,255,255,0.68); }

/* =========================================================
   Contact — the aligned two-column grid
   ========================================================= */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 64px;
  align-items: start;   /* both columns share the same top gridline */
}

/* Left column intro gets the same top offset as the card's internal
   padding, so the two eyebrow labels — and the headings beneath them —
   land on the same visual baseline even though the card has padding
   and the intro block does not. */
.contact-intro{ padding-top: 40px; }
.contact-intro > *:first-child{ margin-top: 0; }

.contact-details{ margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.contact-details li{ display: flex; flex-direction: column; gap: 4px; font-size: 0.95rem; }
.detail-label{ font-size: 0.8rem; font-weight: 600; color: var(--color-muted); }
.contact-details a:hover{ color: var(--color-brand-dark); }

.contact-card{
  background: var(--color-bg);
  border-radius: var(--radius-card);
  padding: 40px;               /* same 40px used as .contact-intro's padding-top */
}
.contact-card > *:first-child{ margin-top: 0; }
.contact-card h3{ font-size: 1.3rem; margin-bottom: 24px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background: var(--color-ink);
  color: rgba(255,255,255,0.6);
  padding-top: 56px;
}
.footer-newsletter{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-newsletter h4{ color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.footer-newsletter p{ font-size: 0.9rem; max-width: 42ch; margin: 0; }
.footer-newsletter-form{ flex-shrink: 0; width: 100%; max-width: 420px; }
.footer-newsletter-form form{ display: flex; gap: 12px; }
.footer-newsletter-form input{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.footer-newsletter-form input::placeholder{ color: rgba(255,255,255,0.4); }
.newsletter-note{
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-align: right;
}
.newsletter-note.is-success{ color: var(--color-brand); font-weight: 600; }
.newsletter-note.is-error{ color: #ff8a8a; font-weight: 600; }

.footer-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-mark{ height: 22px; margin-bottom: 18px; }
.footer-brand p{ font-size: 0.92rem; max-width: 32ch; }
.social-list{ display: flex; gap: 18px; margin-top: 20px; }
.social-list a{ font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.social-list a:hover{ color: var(--color-brand); }

.footer-col h4{
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li{ font-size: 0.9rem; }
.footer-col a:hover{ color: var(--color-brand); }

.footer-bottom{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
  font-size: 0.82rem;
}
.footer-bottom a:hover{ color: var(--color-brand); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; padding-top: 130px; }
  .hero-graphic{ order: -1; max-width: 220px; margin: 0 auto 8px; }
  .trust-grid{ grid-template-columns: 1fr; gap: 20px; }
  .pillar-row{ grid-template-columns: 1fr; gap: 36px; }
  .split-wrap{ grid-template-columns: 1fr; gap: 32px; }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
  .cert-row{ grid-template-columns: repeat(2, 1fr); }
  .process-wrap{ grid-template-columns: 1fr; gap: 40px; }
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-intro{ padding-top: 0; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .cta-inner{ justify-content: flex-start; }
}

@media (max-width: 720px){
  .header-cta{ display: none; }
  .main-nav ul{
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-line);
    padding: 12px 24px 20px;
    gap: 4px;
    display: none;
  }
  .main-nav ul.is-open{ display: flex; }
  .main-nav a{ display: block; padding: 10px 0; width: 100%; }
  .main-nav a::after{ display: none; }
  .nav-toggle{ display: flex; }

  .service-list{ grid-template-columns: 1fr; }
  .service-list .service-row:nth-last-child(-n+2){ border-bottom: none; }
  .service-list .service-row:last-child{ border-bottom: 1px solid var(--color-line); }
  .cert-row{ grid-template-columns: 1fr; }
  .field-row{ grid-template-columns: 1fr; gap: 0; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-newsletter-form form{ flex-direction: column; }
  .newsletter-note{ text-align: left; }
  .callout-row{ flex-direction: column; gap: 20px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
