/* Enclave Technology Group — site styles.
   Colours taken from the logo (logo/refine.py, enclave-tile-square-1024.png):
   navy #111C36, ink #14213D, teal #2A9684, off-white #F8F8F4.
   #1F7366 is a darker teal for text/buttons on light backgrounds (5.3:1+). */

:root {
  --navy: #111C36;
  --ink: #14213D;
  --teal: #2A9684;        /* brand teal: decoration, and text on navy only (4.66:1) */
  --teal-dark: #1F7366;   /* text + buttons on light backgrounds */
  --teal-light: #3FB8A2;  /* accents on navy (6.9:1) */
  --paper: #F8F8F4;
  --white: #FFFFFF;
  --muted: #4A5568;
  --line: #DCDDD6;
  --on-navy: #F8F8F4;
  --on-navy-muted: #C9D1E0;
  --radius: 12px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

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

:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 3px;
  border-radius: 2px;
}
.site-header :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible {
  outline-color: var(--teal-light);
}
main:focus { outline: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 10px 16px;
  border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header { background: var(--navy); color: var(--on-navy); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-navy); text-decoration: none; }
.brand:hover { color: var(--on-navy); }
.brand img { width: 48px; height: 48px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-light); }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav-list a {
  display: inline-block; padding: 8px 10px; border-radius: 6px;
  color: var(--on-navy); text-decoration: none; font-size: 0.98rem;
}
.nav-list a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.nav-list a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal-light); }

@media (max-width: 720px) {
  nav[aria-label="Main"] { width: 100%; }
  .nav-list { gap: 2px; margin-left: -10px; }
  .nav-list a { padding: 10px; }
}

/* Buttons */
.button {
  display: inline-block; background: var(--teal-dark); color: var(--white);
  padding: 14px 24px; border-radius: 8px; font-weight: 600; text-decoration: none;
  min-height: 44px;
}
.button:hover { background: var(--navy); color: var(--white); }
.button-light { background: var(--paper); color: var(--navy); }
.button-light:hover { background: var(--white); color: var(--navy); }

.text-link { font-weight: 600; }
.text-link::after { content: " \2192"; }

/* Sections */
.hero { padding: 72px 0 56px; }
.hero h1 { max-width: 16ch; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 46em; }
.hero .lead { color: var(--ink); }

.page-head { padding: 56px 0 8px; }
.page-head .lead { margin-bottom: 0; }

.section { padding: 48px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Three points */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 800px) { .points { grid-template-columns: repeat(3, 1fr); } }
.points li {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal);
  border-radius: var(--radius); padding: 24px;
}
.points p { margin: 0; color: var(--muted); }

/* Founder */
.founder-inner, .about-inner { display: grid; gap: 28px; align-items: center; }
.headshot { width: 100%; max-width: 260px; border-radius: var(--radius); }
@media (min-width: 720px) {
  .founder-inner { grid-template-columns: 220px 1fr; gap: 40px; }
  .about-inner { grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
}
blockquote {
  margin: 0 0 1em; padding-left: 18px; border-left: 4px solid var(--teal);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--navy);
}
blockquote p { margin: 0; }

/* Lists */
.tick-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.tick-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.tick-list li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px;
  border-top: 3px solid var(--teal); border-left: 3px solid var(--teal);
}

.card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 720px) { .card-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-list { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card p { margin: 0; color: var(--muted); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step; position: relative; padding: 20px 20px 20px 76px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px;
  width: 40px; height: 40px; border-radius: 8px; background: var(--navy); color: var(--on-navy);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--muted); }

.two-col { display: grid; gap: 20px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.fit-box { border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); background: var(--white); }
.fit-yes { border-top: 4px solid var(--teal); }
.fit-no { border-top: 4px solid var(--muted); }
.fit-box ul { margin: 0; padding-left: 1.2em; }
.fit-box li { margin-bottom: 8px; }

.data-list { list-style: none; margin: 0; padding: 0; }
.data-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.data-list li:first-child { padding-top: 0; }
.data-list strong { color: var(--navy); }

/* FAQ */
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-item:first-child { padding-top: 0; }
.faq-item h2 { font-size: 1.2rem; margin-bottom: 0.4em; }
.faq-item p { margin: 0; }

/* Contact */
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal);
  border-radius: var(--radius); padding: 28px;
}
.contact-card h2 { font-size: 1.35rem; }
.contact-card h2 + p { color: var(--muted); }
.contact-card .button { margin-bottom: 1.2em; }
.small { font-size: 0.95rem; color: var(--muted); }

/* Prose (legal pages) */
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

/* CTA band */
.cta-band { background: var(--navy); color: var(--on-navy); padding: 56px 0; text-align: center; }
.cta-band h2 { color: var(--on-navy); }
.cta-band p { color: var(--on-navy-muted); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-navy-muted); font-size: 0.95rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 28px; padding-bottom: 28px;
}
.site-footer p { margin: 0; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
.site-footer a { color: var(--on-navy); }
.site-footer a:hover { color: var(--teal-light); }

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