/* MonTek LLC - site styles. Hand-written, no framework. */

:root {
  --navy: #10263f;
  --navy-2: #17375a;
  --blue: #2367a1;
  --teal: #20a59b;
  --teal-dark: #0b7a72;
  --bg: #f3f6f9;
  --white: #fff;
  --ink: #1d2b3a;
  --muted: #55657a;
  --line: #dbe3ec;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 38, 63, 0.06), 0 8px 24px rgba(16, 38, 63, 0.07);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.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; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 8px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-accent { background: var(--teal); color: var(--navy); }
.btn-accent:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 9px 18px; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { border-radius: 6px; display: block; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-llc { font-weight: 500; color: var(--muted); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink);
  font-weight: 500; font-size: 0.97rem; text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--blue); background: var(--bg); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--blue); font-weight: 650; box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.site-nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px; color: var(--navy); cursor: pointer; line-height: 0;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }

@media (max-width: 1080px) and (min-width: 921px) {
  .site-nav a:not(.btn) { padding: 8px 6px; font-size: 0.9rem; }
  .site-nav .btn { margin-left: 4px; }
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(16, 38, 63, 0.1);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .site-nav a:not(.btn) { padding: 12px; }
  .site-nav .btn { margin: 8px 0 0; }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--navy); color: #d8e3ef; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: 14px; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-dark);
}
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--teal); }
.lead { font-size: 1.18rem; color: var(--muted); }
.section-dark .lead { color: #c3d3e4; }

@media (max-width: 720px) { .section { padding: 60px 0; } }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1000px 500px at 85% -10%, rgba(32, 165, 155, 0.22), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #d8e3ef; padding: 76px 0 84px;
}
.hero h1 { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-sub { font-size: 1.25rem; color: #c3d3e4; max-width: 34em; }
.hero-tags { list-style: none; margin: 26px 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags li {
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 5px 14px;
  font-size: 0.9rem; font-weight: 500; color: #fff;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.cert-badge {
  display: inline-flex; align-items: center; gap: 16px; background: #fff; color: var(--ink);
  padding: 12px 18px 12px 12px; border-radius: var(--radius);
}
.cert-badge img { width: 118px; height: auto; display: block; border-radius: 4px; }
.cert-badge strong { display: block; color: var(--navy); font-size: 0.95rem; line-height: 1.35; }
.cert-badge span { display: block; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

.hero-visual {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px; padding: 18px;
}

@media (max-width: 920px) {
  .hero { padding: 52px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #d8e3ef; padding: 64px 0 60px; }
.page-hero h1 { color: #fff; margin-bottom: 0.4em; font-size: clamp(2rem, 4vw, 2.9rem); }
.page-hero .lead { color: #c3d3e4; max-width: 46em; margin-bottom: 0; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px;
  border-radius: 10px; background: #e7f4f3; color: var(--teal-dark);
}
.card-icon .icon { width: 24px; height: 24px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 8px; }

.section-dark .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); box-shadow: none; }
.section-dark .card h3 { color: #fff; }

.check-list { list-style: none; margin: 0 0 1em; padding: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 0.55em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 16px; height: 9px;
  border-left: 2.5px solid var(--teal-dark); border-bottom: 2.5px solid var(--teal-dark);
  transform: rotate(-45deg) translateY(-3px);
}

.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 11px; font-size: 0.88rem; font-weight: 500; color: var(--navy);
}
.deliverables { font-size: 0.95rem; color: var(--muted); margin-top: 14px; }
.deliverables strong { color: var(--navy); }

/* Capability rows */
.cap-row {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px;
  padding: 44px 0; border-top: 1px solid var(--line);
}
.cap-row:first-of-type { border-top: 0; padding-top: 0; }
.cap-row h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 14px; }
.cap-row .card-icon { margin: 0; flex: none; }
@media (max-width: 820px) { .cap-row { grid-template-columns: 1fr; gap: 18px; } }

/* Steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--teal); color: var(--navy); font-weight: 800; margin-bottom: 14px;
}
.steps h3 { font-size: 1.08rem; margin-bottom: 0.3em; }
.steps p { color: #c3d3e4; font-size: 0.97rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ID / facts grid */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.fact dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fact dd { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; word-break: break-word; }
.fact dd small { display: block; font-size: 0.88rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 2px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--bg); color: var(--navy); font-weight: 650; font-size: 0.9rem; }
tr:last-child td { border-bottom: 0; }

/* CTA band */
.cta-band { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #d8e3ef; padding: 72px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 38em; margin-left: auto; margin-right: auto; color: #c3d3e4; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* Cert layout */
.cert-layout { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; }
.cert-layout img { width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow); }
@media (max-width: 820px) { .cert-layout { grid-template-columns: 1fr; } .cert-layout img { max-width: 360px; } }

/* Prose (privacy, terms) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-list .card-icon { margin: 0; width: 44px; height: 44px; flex: none; }
.contact-list strong { display: block; color: var(--navy); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .form { padding: 22px; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.93rem; color: var(--navy); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #b9c6d4; border-radius: 8px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(32, 165, 155, 0.45); border-color: var(--teal-dark); }
.check-field { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; margin-bottom: 20px; }
.check-field input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-weight: 500; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-info { background: #eaf2fa; color: var(--navy); }
.form-status.is-success { background: #e3f6ec; color: #11592f; }
.form-status.is-error { background: #fdecea; color: #8a1c13; }
.recaptcha-note { font-size: 0.8rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Credentials strip ---------- */
.cred-strip { background: #fff; border-bottom: 1px solid var(--line); }
.cred-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 14px; padding-bottom: 14px; }
.cred-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.cred-strip li { font-size: 0.92rem; color: var(--muted); }
.cred-strip li span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 4px; }
.cred-strip li strong { color: var(--navy); font-weight: 650; }
.cred-strip li em { font-style: normal; font-size: 0.78rem; color: var(--teal-dark); font-weight: 600; margin-left: 2px; }
.cred-strip a { font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Experience & case studies ---------- */
.note {
  margin: 0 0 32px; padding: 18px 22px; border-radius: var(--radius);
  background: #eaf2fa; border: 1px solid #c6dcf0; border-left: 5px solid var(--blue);
  color: var(--navy); font-size: 0.97rem; line-height: 1.55;
}
.note strong { color: var(--navy); }

.breadcrumb { font-size: 0.9rem; margin-bottom: 18px; color: #9fb3c8; }
.breadcrumb a { color: #c3d3e4; }
.breadcrumb a:hover { color: #fff; }

.exp-grid { align-items: stretch; }
.exp-card { display: flex; flex-direction: column; }
.exp-card .tag-list { margin-top: auto; padding-top: 6px; }
.exp-card .card-link { margin-top: 16px; }
.card-linked { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s; }
.card-linked:hover { border-color: var(--teal); transform: translateY(-2px); color: inherit; }
.card-linked h3 { color: var(--navy); }
.card-meta { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-dark); margin: 0 0 8px; }

.case-facts { margin-bottom: 28px; grid-template-columns: repeat(4, 1fr); }
.case-facts .fact dd { font-size: 1.05rem; }
@media (max-width: 960px) { .case-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .case-facts { grid-template-columns: 1fr; } }

.case-layout { display: grid; grid-template-columns: 1.7fr 0.8fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .case-layout { grid-template-columns: 1fr; gap: 32px; } }
.case-body { max-width: none; }
.case-body h2 { font-size: 1.45rem; margin-top: 1.6em; }
.case-body h2:first-child { margin-top: 0; }
.case-aside { position: sticky; top: 92px; }
@media (max-width: 900px) { .case-aside { position: static; } }
code { font-size: 0.92em; background: var(--bg); padding: 1px 6px; border-radius: 4px; }

/* ---------- Articles ---------- */
.article-meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 28px; }
.article-body > p:first-child { font-size: 1.12rem; color: var(--ink); }
.article-body h2 { font-size: 1.4rem; margin-top: 1.8em; }
.article-body ol { padding-left: 1.3em; }
.article-body ol li { margin-bottom: 0.55em; }
.takeaways { background: #f3f6f9; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0 8px; }
.takeaways h2 { font-size: 1rem; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal-dark); }
.takeaways ul { margin: 0; padding-left: 1.2em; }
.takeaways li { margin-bottom: 0.4em; }
.article-note { margin-top: 2.5em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.exp-card h3 a { color: var(--navy); text-decoration: none; }
.exp-card h3 a:hover { color: var(--blue); text-decoration: underline; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq h3 { font-size: 1.1rem; margin: 1.6em 0 0.35em; }
.faq p { margin: 0 0 0.6em; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1c2f; color: #b4c4d6; font-size: 0.95rem; }
.site-footer a { color: #dce7f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.1fr; gap: 40px; padding: 64px 20px 44px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; padding-top: 48px; } }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-llc { color: #9fb3c8; }
.footer-brand p { max-width: 26em; }
.footer-swam { margin-top: 14px; border-radius: 4px; width: 190px; height: auto; display: block; }
.footer-brand .footer-social-heading { margin-top: 28px; }
.footer-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); color: #dce7f2; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.footer-social a:hover { background: var(--teal); border-color: var(--teal); color: var(--navy); text-decoration: none; }
.footer-social .icon-brand { width: 18px; height: 18px; }
.footer-heading { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 9px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 22px; font-size: 0.88rem; }
.footer-bottom p { margin: 0; }

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