/* Ilmtrix — site styles
   Plain CSS, no build step. Tokens first, then layout, then components. */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8f8;
  --surface: #ffffff;
  --border: #e2e8e8;
  --text: #16201f;
  --text-muted: #5b6b6a;
  --accent: #0f766e;
  --accent-strong: #0b5c56;
  --accent-soft: #e6f4f2;
  --accent-2: #0e7490;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 31, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 32, 31, 0.08);

  --max: 1120px;
  --gutter: 20px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

.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: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 84px; }

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head { max-width: 680px; margin-bottom: 44px; }

.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }

.section-sub {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark { display: inline-flex; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.brand-name.small { font-size: 1.05rem; }

/* The nav wrapper stays unpositioned on purpose: on small screens .nav-menu is
   absolutely positioned against the sticky .site-header so it spans full width. */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-menu a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-menu .nav-cta {
  margin-left: 6px;
  background: var(--accent);
  color: #fff;
}

.nav-menu .nav-cta:hover { background: var(--accent-strong); color: #fff; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  /* Generous up top, tighter underneath so the hero leads into the next section. */
  padding-block: clamp(76px, 12vw, 136px) clamp(60px, 8vw, 96px);
  background:
    radial-gradient(1200px 560px at 78% -16%, rgba(20, 184, 166, 0.26), transparent 60%),
    linear-gradient(180deg, var(--accent-soft) 0%, #eff9f7 42%, var(--bg) 100%);
  border-bottom: 1px solid rgba(15, 118, 110, 0.08);
}

.hero-glow {
  position: absolute;
  top: -220px;
  right: -140px;
  width: 680px;
  height: 680px;
  max-width: 100%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.30), rgba(20, 184, 166, 0) 70%);
  pointer-events: none;
}

/* Second, cooler glow low on the left for a bit of depth. */
.hero::after {
  content: "";
  position: absolute;
  left: -180px;
  bottom: -280px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.16), rgba(14, 116, 144, 0) 70%);
  pointer-events: none;
}

/* This element is also .container, so do NOT set a max-width here: a narrower
   value shrinks the container and pulls the hero out of line with the rest of
   the page. Constrain the text blocks individually instead. */
.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  max-width: 17ch;
}

.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.32rem);
  line-height: 1.6;
  color: #465a58;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* Chunkier buttons to match the heavier headline. */
.hero-actions .btn {
  padding: 15px 30px;
  font-size: 1.03rem;
}

.hero-actions .btn-primary {
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cfe3e0;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 { font-size: 1.1rem; margin-bottom: 8px; }

.card p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Who we are ---------- */

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: start;
}

.split-text h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  margin-bottom: 18px;
}

.split-text p {
  color: var(--text-muted);
  margin-bottom: 14px;
  max-width: 60ch;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.facts li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.fact-k {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 3px;
}

.fact-v {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Vision ---------- */

.quote {
  margin: 0 0 44px;
  padding: 28px 30px;
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  border: 1px solid #d4eae6;
}

.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.3vw, 1.4rem);
  line-height: 1.5;
  color: var(--accent-strong);
  max-width: 54ch;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

.pillar-n {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.pillar h3 { font-size: 1.08rem; margin-bottom: 8px; }

.pillar p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Contact ---------- */

.contact {
  background: linear-gradient(135deg, #0f766e 0%, #0e7490 100%);
  color: #fff;
}

.contact-inner { text-align: center; max-width: 620px; margin-inline: auto; }

.contact h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  margin-bottom: 12px;
}

.contact p {
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 26px;
}

.contact .btn-primary {
  background: #fff;
  color: var(--accent-strong);
}
.contact .btn-primary:hover { background: #eafaf7; }

/* ---------- Footer ---------- */

.site-footer {
  background: #0d1716;
  color: #cbd6d4;
  padding-block: 34px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.site-footer .brand-name { color: #fff; }

.footer-note { font-size: 0.92rem; color: #9fb0ae; margin-top: 2px; }

.footer-copy { font-size: 0.86rem; color: #7d908d; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 680px) {
  .section { padding-block: 62px; }

  .nav-toggle { display: inline-flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav-menu.is-open { display: flex; }

  .nav-menu a { padding: 11px 12px; }

  .nav-menu .nav-cta { margin-left: 0; text-align: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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