/* Tamam Solutions site stylesheet
   Brand: navy #05264A, teal #15C1D3.
   Teal fails contrast on white (2.2:1), so it is used only as a non-text accent
   or as text on navy. Small text accents on white use --teal-text (#0B7480, 5.5:1). */

/* ---- Self-hosted fonts (latin subsets, SIL OFL, see shared/fonts/LICENSE.txt) ---- */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300; font-display: swap; src: url("/shared/fonts/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("/shared/fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("/shared/fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("/shared/fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/shared/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/shared/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }

:root {
  --navy: #05264A;
  --navy-deep: #031A33;
  --teal: #15C1D3;
  --teal-text: #0B7480;
  --ink: #05264A;
  --ink-2: #4A5B70;
  --ink-3: #6B7A8C;
  --line: rgba(5, 38, 74, 0.12);
  --line-soft: rgba(5, 38, 74, 0.07);
  --surface: #FFFFFF;
  --surface-2: #F4F7F9;
  --max: 1160px;
  --gutter: clamp(20px, 4vw, 48px);
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  padding-top: 72px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); letter-spacing: -0.03em; line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 1.9vw, 1.65rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px;
}
ul { padding-left: 1.2em; }
strong { font-weight: 500; }
img, svg { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Type helpers ---- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 18px;
}
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 640px; }
.muted { color: var(--ink-2); }
.small { font-size: 14.5px; }
.rule { width: 40px; height: 2px; background: var(--teal); margin: 0 0 24px; }

/* ---- Sections ---- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--surface-2); }
.section-navy { background: var(--navy); color: rgba(255,255,255,0.82); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: var(--teal); }
.section-navy .lede { color: rgba(255,255,255,0.72); }
.section-navy a { color: #fff; }
.section-navy .btn-light, .section-navy .btn-light:hover { color: var(--navy); }
.section-header { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.divider { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }

/* ---- Hero ---- */
.hero { padding: clamp(72px, 11vw, 150px) 0 clamp(56px, 8vw, 110px); }
.hero h1 { max-width: 22ch; margin-bottom: 28px; }
.br-desk { display: none; }
@media (min-width: 900px) { .br-desk { display: inline; } }
.hero .lede { margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  padding: 14px 26px; border-radius: 3px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; line-height: 1;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: #F4F7F9; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { border-color: #fff; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Two-track cards ---- */
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.track {
  display: flex; flex-direction: column;
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--teal);
  background: var(--surface);
  text-decoration: none; color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s;
}
.track:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(5,38,74,0.35), 0 2px 6px rgba(5,38,74,0.05); }
.track h3 { margin-bottom: 12px; }
.track p { color: var(--ink-2); font-size: 16px; flex: 1; }
.track .link { margin-top: 24px; font-weight: 500; font-size: 15px; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.track .link .arrow { transition: transform 0.25s var(--ease); }
.track:hover .link .arrow { transform: translateX(3px); }

/* ---- Service lists ---- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; }
@media (max-width: 700px) { .services { grid-template-columns: 1fr; gap: 32px; } }
.service { border-top: 1px solid var(--line); padding-top: 22px; }
.service h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service p { color: var(--ink-2); font-size: 16px; }
.numbered { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.numbered li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.numbered li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.6rem; color: var(--teal-text); line-height: 1.1; padding-top: 2px;
}
.numbered h3 { font-size: 1.3rem; margin-bottom: 6px; }
.numbered p { color: var(--ink-2); font-size: 16px; }

/* ---- Split layouts ---- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-sticky { position: sticky; top: 100px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split-sticky { position: static; } }

/* ---- Statement block ---- */
.statement { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.3; letter-spacing: -0.015em; color: var(--navy); max-width: 30ch; }
.section-navy .statement { color: #fff; }

/* ---- CTA band ---- */
.cta-band { padding: clamp(56px, 8vw, 96px) 0; }
.cta-band .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0; color: rgba(255,255,255,0.7); max-width: 520px; }

/* ---- Forms ---- */
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-size: 14px; font-weight: 500; color: var(--navy); margin-bottom: 8px; letter-spacing: 0.01em; }
.field input[type="text"], .field input[type="email"], .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; font-weight: 300; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 3px; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:hover, .field textarea:hover { border-color: rgba(5,38,74,0.3); }
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(21,193,211,0.25); }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 3px; cursor: pointer; font-size: 15.5px; font-weight: 300;
  transition: border-color 0.2s, background-color 0.2s;
}
.choice:hover { border-color: rgba(5,38,74,0.35); }
.choice input { accent-color: var(--navy); width: 17px; height: 17px; margin: 0; flex-shrink: 0; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--surface-2); }
.choice:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-note { font-size: 14px; color: var(--ink-3); }
.form-status { font-size: 15px; padding: 14px 16px; border-left: 3px solid var(--teal); background: var(--surface-2); display: none; }
.form-status[data-show] { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Contact aside ---- */
.contact-aside { display: grid; gap: 28px; }
.contact-aside h3 { font-size: 1.2rem; margin-bottom: 6px; }
.contact-aside p { font-size: 15.5px; color: var(--ink-2); }

/* ---- Article / prose ---- */
.prose { font-size: 17.5px; }
.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 2px solid var(--teal); color: var(--ink-2); font-style: italic; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--surface-2); padding: 2px 6px; border-radius: 3px; }
.article-meta { font-size: 14.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 40px; }
.article-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.article-list li { border-top: 1px solid var(--line-soft); padding: 28px 0; display: grid; grid-template-columns: 120px 1fr; gap: 20px; }
.article-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.article-list time { font-size: 14px; color: var(--ink-3); padding-top: 6px; }
.article-list h3 { font-size: 1.45rem; margin-bottom: 8px; }
.article-list h3 a { text-decoration: none; }
.article-list h3 a:hover { text-decoration: underline; }
.article-list p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 600px) { .article-list li { grid-template-columns: 1fr; gap: 6px; } }
.empty { border: 1px dashed var(--line); padding: 40px; text-align: center; color: var(--ink-2); }

/* ---- Reveal on scroll (transform + opacity only) ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---- Utilities ---- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Pressures (problem block) ---- */
.pressures { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 40px; }
.pressures li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 16.5px; line-height: 1.55; }
.pressures li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--teal); }

/* ---- Benefit trio ---- */
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 48px; }
.trio h3 { font-size: 1.4rem; margin-bottom: 10px; }
.trio p { color: var(--ink-2); font-size: 16px; }
.trio .rule { margin-bottom: 18px; }

/* ---- Audience / who this is for ---- */
.audience { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.audience li { border: 1px solid var(--line-soft); padding: 18px 20px; font-size: 15.5px; color: var(--ink); background: var(--surface); }

/* ---- Deliverables ---- */
.deliverables { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 48px; }
.deliverables li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; color: var(--ink); }
@media (max-width: 640px) { .deliverables { columns: 1; } }

/* ---- Standards strip ---- */
.standards { display: flex; flex-wrap: wrap; gap: 10px 12px; list-style: none; padding: 0; margin: 0; }
.standards li { font-size: 13.5px; font-weight: 400; letter-spacing: 0.02em; color: var(--navy); border: 1px solid var(--line); padding: 8px 14px; border-radius: 2px; background: var(--surface); }
.section-navy .standards li { color: #fff; border-color: rgba(255,255,255,0.25); background: transparent; }

/* ---- Principles ---- */
.principles { list-style: none; padding: 0; margin: 0; }
.principles li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line-soft); font-size: 17px; }
.principles li:last-child { border-bottom: 1px solid var(--line-soft); }
.principles li::before { content: ""; width: 14px; height: 2px; background: var(--teal); margin-top: 0.75em; }
.principles strong { font-weight: 500; display: block; margin-bottom: 4px; }
.principles span { color: var(--ink-2); font-size: 16px; }

/* ---- FAQ ---- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; font-size: 1.5rem; color: var(--teal-text); transition: transform 0.25s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--navy-deep); }
.faq summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); font-size: 16.5px; max-width: 70ch; }
