/* saderra.com: an editorial agency look. Near-black and warm white, one accent (the Saderra aqua),
   hairline rules instead of colored boxes. Every text color meets WCAG AA on the background it sits on. */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #0e1116;          /* dark sections and body text */
  --ink-2: #161a21;        /* raised panels on dark */
  --text: #12161c;
  --muted: #535b68;        /* 6.6:1 on --paper */
  --paper: #fafaf7;
  --white: #ffffff;
  --line: #e3e3dd;
  --line-dark: #2a303a;
  --on-dark: #f4f4f1;
  --on-dark-muted: #a6aebb; /* 8:1 on --ink */
  --aqua: #14b3bf;         /* the Saderra symbol; accent on dark */
  --aqua-ink: #0b7f88;     /* aqua for text on light, 4.9:1 on white */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --wrap: 1480px;
  --gutter: clamp(20px, 4vw, 40px);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--aqua-ink); }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
/* Display headlines: heavy, condensed, uppercase. Accent words are aqua rather than italic. */
h1, h2, .service h3, .stat-num, .office h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.95; }
h1 em, h2 em { font-style: normal; color: var(--aqua-ink); }
.dark h1 em, .dark h2 em { color: var(--aqua); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--text); font-weight: 600; border-radius: 4px; }
.skip-link:focus { top: 12px; }

/* ---- Header -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; gap: 12px 36px; min-height: 72px; flex-wrap: wrap; }
.brand { display: block; line-height: 0; margin-right: auto; }
.brand img { height: 28px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px 30px; flex-wrap: wrap; }
.site-nav a { color: var(--on-dark); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: currentColor; }
.site-nav a[aria-current=page] { border-bottom-color: var(--aqua); }
.site-nav a.btn { padding: 10px 18px; border: 1px solid var(--on-dark); }
.site-nav a.btn:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 8px;
  font: 500 15px/1.2 var(--sans); text-decoration: none; white-space: nowrap; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-dark { background: var(--text); color: var(--white); border: 1px solid var(--text); }
.btn-dark:hover { background: #2a313c; border-color: #2a313c; }
.btn-light { background: var(--white); color: var(--ink); border: 1px solid var(--white); }
.btn-light:hover { background: var(--aqua); border-color: var(--aqua); }
.btn-ghost { background: transparent; color: var(--on-dark); border: 1px solid #727a88; }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: inherit; text-decoration: underline; text-decoration-color: var(--aqua); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.text-link:hover { text-decoration-color: currentColor; }

/* ---- Sections ------------------------------------------------------------- */
section { padding: clamp(80px, 11vw, 140px) 0; }
.dark { background: var(--ink); color: var(--on-dark); }
.dark a:not(.btn) { color: var(--on-dark); }
.label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); flex: none; }
.dark .label { color: var(--on-dark-muted); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { font-size: clamp(44px, 6.4vw, 96px); }
.section-head p { font-size: 19px; color: var(--muted); max-width: 480px; }
.dark .section-head p { color: var(--on-dark-muted); }

/* ---- Home: hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(96px, 13vw, 168px) 0 0; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(20, 179, 191, 0.20), transparent 62%); pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(60px, 11vw, 176px); max-width: 1300px; }
.hero h1 em { color: var(--aqua); }
.hero-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; margin-top: clamp(40px, 5vw, 64px); }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--on-dark-muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; margin-top: clamp(72px, 9vw, 120px); padding: 28px 0; border-top: 1px solid var(--line-dark); font-size: 15px; color: var(--on-dark-muted); }
.platforms li { display: flex; align-items: center; gap: 10px; }
.platforms .partner { color: var(--on-dark); font-weight: 500; }
.platforms .partner svg { color: var(--aqua); flex: none; }

/* Stats: a row split by hairlines */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 36px 28px 36px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-num { font-size: clamp(48px, 5.6vw, 84px); }
.stat-label { margin-top: 12px; font-size: 15px; color: var(--muted); }
.stats-section { padding: 0; }

/* Services: numbered rows */
.services { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 40px; padding: 40px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.service .num { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.service h3 { font-size: clamp(40px, 5vw, 76px); }
.service p { color: var(--muted); }
.service .tag { display: inline-block; margin-top: 14px; padding: 4px 10px; border: 1px solid var(--aqua-ink); border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--aqua-ink); }

/* Featured work */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line-dark); border-radius: 20px; overflow: hidden; background: var(--ink-2); }
.feature-art {
  position: relative; display: grid; place-items: center; min-height: 440px; padding: 48px;
  background: radial-gradient(circle at 30% 20%, rgba(20, 179, 191, 0.35), transparent 55%), radial-gradient(circle at 80% 90%, rgba(123, 86, 184, 0.35), transparent 55%), #0a0c10;
}
.feature-art .wordmark { font-family: var(--serif); font-style: italic; font-size: clamp(64px, 9vw, 128px); line-height: 1; letter-spacing: -0.02em; color: var(--white); }
.feature-art .chips { position: absolute; left: 32px; right: 32px; bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.feature-art .chips li { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 6px; font-size: 13px; color: var(--on-dark); background: rgba(255, 255, 255, 0.06); }
.feature-body { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.feature-body h3 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -0.03em; }
.feature-body > p { margin-top: 20px; font-size: 18px; color: var(--on-dark-muted); }
.feature-list { margin: 28px 0 36px; border-top: 1px solid var(--line-dark); }
.feature-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.feature-list li span:first-child { color: var(--on-dark-muted); }
.feature-body .btn { align-self: flex-start; }

/* Approach: three columns */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.pillar { padding-top: 28px; border-top: 1px solid var(--text); }
.pillar .num { font-size: 14px; color: var(--muted); }
.pillar h3 { margin: 40px 0 16px; font-size: 28px; letter-spacing: -0.025em; }
.pillar p { color: var(--muted); }
.note { margin-top: 56px; font-size: 15px; color: var(--muted); }
.note strong { color: var(--text); font-weight: 600; }

/* Client names: a wall split by hairlines */
.client-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.client-wall li { display: flex; flex-direction: column; justify-content: center; min-height: 128px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.client-wall small { display: block; margin-top: 8px; font-size: 13px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.wall-foot { margin-top: 40px; }

/* Health tools */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tool-card { display: block; color: inherit; text-decoration: none; }
.tool-card img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; transition: transform 0.3s, box-shadow 0.3s; }
.tool-card:hover img { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(14, 17, 22, 0.16); }
.tool-card h3 { margin-top: 22px; font-size: 24px; letter-spacing: -0.025em; }
.tool-card p { margin-top: 6px; color: var(--muted); }

/* Offices */
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.office { padding: 40px 40px 40px 0; }
.office + .office { padding-left: 40px; border-left: 1px solid var(--line); }
.office h3 { font-size: clamp(40px, 4.4vw, 64px); }
.office address { margin-top: 18px; font-style: normal; color: var(--muted); line-height: 1.8; }

/* Call to action */
.cta h2 { font-size: clamp(56px, 10vw, 168px); max-width: 1300px; }
.cta h2 em { color: var(--aqua); }
.cta-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; margin-top: 48px; }
.cta p { max-width: 520px; font-size: 19px; color: var(--on-dark-muted); }
.cta .mail { font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.02em; text-decoration: underline; text-decoration-color: var(--aqua); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.cta .mail:hover { text-decoration-color: currentColor; }

/* ---- Inner page header -------------------------------------------------------- */
.page-head { position: relative; overflow: hidden; padding: clamp(88px, 11vw, 140px) 0 clamp(64px, 8vw, 100px); }
.page-head::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(circle, rgba(20, 179, 191, 0.18), transparent 62%); pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(56px, 9.4vw, 148px); max-width: 1300px; }
.page-head h1 em { color: var(--aqua); }
.page-head p { margin-top: 32px; font-size: clamp(18px, 1.6vw, 21px); color: var(--on-dark-muted); max-width: 640px; }

/* Clients page: one block per sector */
.sector { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 24px 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.sector:last-child { border-bottom: 1px solid var(--line); }
.sector h2 { font-size: clamp(30px, 3vw, 44px); }
.sector .count { margin-top: 8px; font-size: 14px; color: var(--muted); }
.sector-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.sector-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.sector-list li:nth-last-child(-n+2):nth-child(odd), .sector-list li:last-child { border-bottom: 0; }

/* Health page: one row per tool */
.tool-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.tool-row + .tool-row { margin-top: clamp(80px, 10vw, 128px); }
.tool-row:nth-child(even) .tool-shot { order: 2; }
.tool-shot { display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(14, 17, 22, 0.16); }
.tool-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; transition: transform 0.4s; }
.tool-shot:hover img { transform: scale(1.02); }
.tool-row .label { margin-bottom: 18px; }
.tool-row h2 { font-size: clamp(44px, 5vw, 76px); }
.tool-row .summary { margin-top: 18px; font-size: 18px; color: var(--muted); }
.features { margin: 28px 0 36px; border-top: 1px solid var(--line); }
.features li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.features strong { color: var(--text); font-weight: 600; }
.note-box { margin-top: clamp(80px, 10vw, 128px); padding: clamp(32px, 4vw, 48px); border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.note-box h2 { font-size: clamp(30px, 3vw, 44px); margin-bottom: 14px; }
.note-box p { color: var(--muted); max-width: 720px; }

/* ---- Footer -------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 72px 0 40px; border-top: 1px solid var(--line-dark); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; padding-bottom: 48px; }
.site-footer .brand { margin-right: 0; }
.site-footer .brand img { height: 26px; }
.footer-tagline { margin-top: 18px; max-width: 320px; font-size: 15px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.site-footer .footer-cols h2 { font-family: var(--sans); line-height: 1.4; margin-bottom: 14px; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.footer-cols li + li { margin-top: 8px; }
.footer-cols a { color: var(--on-dark); text-decoration: none; font-size: 15px; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: 14px; }
.footer-partner { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); }
.footer-partner svg { color: var(--aqua); }

/* ---- Smaller screens -------------------------------------------------------------- */
@media (max-width: 960px) {
  .section-head, .hero-sub, .feature, .tool-row, .sector { grid-template-columns: 1fr; }
  .tool-row:nth-child(even) .tool-shot { order: 0; }
  .feature-art { min-height: 320px; }
  .pillars, .tools { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .client-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { grid-template-columns: 56px minmax(0, 1fr); }
  .service p, .service .service-body { grid-column: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { position: static; }
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
  .site-header .site-nav { width: 100%; justify-content: space-between; gap: 4px 16px; }
  .client-wall, .offices, .sector-list { grid-template-columns: 1fr; }
  .sector-list li:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  .office, .office + .office { padding: 32px 0; border-left: 0; }
  .office + .office { border-top: 1px solid var(--line); }
  .service { grid-template-columns: 1fr; gap: 10px; }
  .service p, .service .service-body { grid-column: auto; }
  .stat, .stat + .stat { padding: 28px 16px 28px 0; }
  .stat:nth-child(even) { padding-left: 16px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.dark .tool-card p { color: var(--on-dark-muted); }
