/* =============================================================
   Plinth Infrastructure — main.css
   Palette sourced from plinth-visuals-3.html (authoritative)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Custom properties ─────────────────────────────────────── */
:root {
  --navy:   #0F1F3D;
  --teal:   #0D6E8A;
  --accent: #00C2A8;
  --ink:    #1E2F3E;
  --muted:  #5E748A;
  --line:   #E3EAF0;
  --bg:     #F5F8FB;
  --bg-alt: #EDF2F7;
  --card:   #FFFFFF;
  --font:   "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  --max-text: 780px;
  --max-wide: 1120px;
  --gutter:   clamp(20px, 5vw, 80px);
  --section-py: clamp(64px, 8vw, 112px);
}

/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Focus ring ─────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Typography helpers ─────────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

h1, h2, h3, h4 {
  color: var(--navy);
  letter-spacing: -.01em;
  line-height: 1.2;
}

h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }

p { line-height: 1.65; color: var(--ink); }
p + p { margin-top: 1.1em; }

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section {
  padding-block: var(--section-py);
}

.section--alt {
  background: var(--bg);
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 31, 61, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-logo {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(15, 31, 61, 0.98);
    padding: 12px 0 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px var(--gutter);
    font-size: 15px;
  }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1;
}

.btn--primary {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: #00d9bc;
  border-color: #00d9bc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,194,168,.25);
  text-decoration: none;
  color: var(--navy);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--navy);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(145deg, var(--navy) 0%, #0a3050 55%, #0d5070 100%);
  padding-block: clamp(80px, 12vw, 148px);
  position: relative;
  overflow: hidden;
}

/* Subtle orchestration grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0,194,168,.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(13,110,138,.12) 0%, transparent 45%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-text);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero-tagline {
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 24px;
  max-width: 18ch;
}

.hero-subline {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 56ch;
}

/* ── Punch line ─────────────────────────────────────────────── */
.punchline {
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  background: rgba(0,194,168,.06);
  border-radius: 0 8px 8px 0;
  margin-block: 40px;
}

.punchline p {
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

/* ── Footnotes ──────────────────────────────────────────────── */
.footnotes {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footnotes p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.footnotes a {
  color: var(--teal);
}

/* ── Bold question block ────────────────────────────────────── */
.bold-q {
  text-align: center;
  max-width: 64ch;
  margin-inline: auto;
}

.bold-q p {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 32px;
}

/* ── CTA band ───────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #0a3050 100%);
  padding-block: clamp(56px, 8vw, 96px);
  text-align: center;
}

.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p  { color: rgba(255,255,255,.65); font-size: 17px; margin-bottom: 36px; }

/* ── What-we-do intro ───────────────────────────────────────── */
.intro-text p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--ink);
  line-height: 1.7;
}

/* ── Domain layer icons (lifted from plinth-visuals-3.html) ─── */
.pl-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.pl-icon-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.pl-icon-card:hover {
  transform: translateY(-3px);
  border-color: #CFE0EC;
  box-shadow: 0 10px 26px rgba(15,31,61,.08);
}

.pl-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,110,138,.08);
  color: var(--teal);
  margin-bottom: 14px;
}

.pl-badge svg { width: 26px; height: 26px; }

.pl-icon-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 4px;
}

.pl-icon-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* ── Lifecycle diagram (lifted from plinth-visuals-3.html) ──── */
.pl-cycle {
  text-align: center;
}

.pl-circle {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 32px auto 16px;
}

.pl-caption {
  max-width: 66ch;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 auto 10px;
}

.pl-bottlenecks {
  text-align: center;
  font-size: 12.5px;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: .02em;
  margin: 0 auto 36px;
}

.pl-stages2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
  text-align: left;
}

.pl-card2 {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.pl-s-eyebrow {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 4px;
  display: block;
}

.pl-card2 h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 8px;
}

.pl-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 14px;
}

.pl-parties {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pl-parties li {
  font-size: 11.5px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13,110,138,.06);
  border: 1px solid var(--line);
  color: #33576B;
}

.pl-close2 {
  text-align: center;
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 0;
  letter-spacing: .01em;
}

.pl-close2 .a { color: var(--accent); }

/* Halo animation */
@media (prefers-reduced-motion: no-preference) {
  .pl-halo { animation: plpulse 3.4s ease-in-out infinite; }
  .pl-halo.b { animation-delay: .6s; }
  .pl-halo.c { animation-delay: 1.2s; }
  @keyframes plpulse {
    0%, 100% { opacity: .16; }
    50%       { opacity: .04; }
  }
}

/* ── About page ─────────────────────────────────────────────── */
.about-body p {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
  color: var(--ink);
}

/* ── Contact page ───────────────────────────────────────────── */
.contact-form {
  margin-top: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .01em;
}

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,110,138,.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-email {
  margin-top: 36px;
  font-size: 14px;
  color: var(--muted);
}

.contact-email a {
  color: var(--teal);
  font-weight: 500;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  padding-block: 40px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-inner {
  max-width: var(--max-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
}

.footer-logo span { color: var(--accent); }

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}

.footer-nav a:hover {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 780px) {
  .pl-icons    { grid-template-columns: 1fr 1fr; }
  .pl-stages2  { grid-template-columns: 1fr; }
  .form-row    { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .pl-icons { grid-template-columns: 1fr; }
}
