/* ==========================================================================
   Theia Evidence — marketing site styles
   Design tokens per handoff README (design_handoff_theia_site/README.md)
   ========================================================================== */

:root {
  /* Colors */
  --charcoal: #222B2E;
  --charcoal-deep: #1B2325;
  --teal: #0E5C5B;
  --teal-hover: #0A4746;
  --teal-deep-text: #0E3D3C;
  --light-teal: #86D0C7;
  --pale-teal: #BCE6E0;
  --mist: #DCEDEA;
  --paper: #F4F2ED;
  --border-1: #E3DDD1;
  --border-2: #EAE7DF;
  --border-3: #EDEBE6;
  --text-muted-1: #3A4346;
  --text-muted-2: #4A5457;
  --text-caption: #6C7375;

  /* Type */
  --font-display: 'Century Gothic', 'Jost', sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --content-max: 1000px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--teal-hover); }

.display { font-family: var(--font-display); }
.serif { font-family: var(--font-serif); }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--teal);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
  color: var(--paper);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin: 0;
}

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Section anchor targets shouldn't be hidden under the sticky nav */
section[id] {
  scroll-margin-top: var(--nav-height);
}

/* Buttons */
.btn {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  font-weight: 600;
  background: var(--teal);
  padding: 15px 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--teal-hover); color: var(--paper); }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ==========================================================================
   Nav
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 242, 237, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-1);
}

.site-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  min-height: var(--nav-height);
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--charcoal);
}
.site-nav__brand:hover { color: var(--charcoal); }
.site-nav__brand svg { width: 26px; height: 26px; flex-shrink: 0; }
.site-nav__wordmark {
  font-size: 15px;
  letter-spacing: 0.24em;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navlink {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted-2);
  font-weight: 600;
}
.navlink:hover { color: var(--teal); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--charcoal);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 88px;
}

.hero__mark {
  position: absolute;
  top: -30px;
  right: -150px;
  width: 640px;
  height: 640px;
  opacity: 0.5;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 640px;
}

.hero__eyebrow { letter-spacing: 0.26em; }

.hero h1 {
  font-weight: 700;
  font-size: 60px;
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 26px 0 0;
}
.hero h1 .accent { color: var(--teal); }

.hero__body {
  font-size: 20px;
  line-height: 1.65;
  color: var(--text-muted-1);
  margin: 26px 0 0;
  max-width: 34ch;
}

.hero .btn { margin-top: 36px; }

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  padding: 80px 24px;
  background: #fff;
  border-top: 1px solid var(--border-3);
}

.services__intro { max-width: 60ch; }

.services__intro p {
  font-size: 21px;
  line-height: 1.6;
  color: var(--charcoal);
  margin: 20px 0 0;
}

.services__list { margin-top: 52px; }

.service-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 26px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--border-2);
}

.service-row__icon { width: 44px; height: 44px; color: var(--teal); }

.service-row h3 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

.service-row p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted-2);
  margin: 10px 0 0;
  max-width: 66ch;
}

/* ==========================================================================
   Approach
   ========================================================================== */

.approach {
  padding: 84px 24px;
  background: var(--mist);
}

.approach h2 {
  font-size: 42px;
  font-weight: 700;
  margin: 16px 0 0;
  color: var(--teal-deep-text);
}

.approach__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-top: 34px;
  max-width: 840px;
}

.approach__grid p {
  font-size: 18px;
  line-height: 1.7;
  color: #28413F;
  margin: 0;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  padding: 84px 24px;
  background: var(--paper);
}

.about__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

.about__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mist);
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.about__name {
  font-size: 17px;
  font-weight: 600;
}

.about__role {
  font-size: 13px;
  color: var(--text-caption);
  margin-top: 3px;
}

.about__bio {
  font-size: 20px;
  line-height: 1.7;
  color: #2E3A3D;
  margin: 0;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  padding: 88px 24px;
  background: var(--charcoal);
  color: var(--paper);
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.contact .eyebrow { color: var(--light-teal); }

.contact h2 {
  font-size: 40px;
  font-weight: 700;
  margin: 12px 0 0;
}

.contact__body {
  font-size: 19px;
  line-height: 1.6;
  color: #C3C8C9;
  margin: 14px 0 26px;
  max-width: 46ch;
}

.contact__email {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--light-teal);
  border-bottom: 2px solid rgba(134, 208, 199, 0.4);
  padding-bottom: 4px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.contact__email:hover {
  color: var(--pale-teal);
  border-color: rgba(188, 230, 224, 0.6);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 30px 24px;
  background: var(--charcoal-deep);
  color: #8A9294;
}

.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.site-footer__brand svg { width: 22px; height: 22px; }
.site-footer__brand span {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #C3C8C9;
}

.site-footer__copy {
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Responsive — ≤ 900px
   ========================================================================== */

@media (max-width: 900px) {
  .site-nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border-1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }

  .site-nav__links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  .site-nav__links .navlink {
    padding: 14px 0;
    border-top: 1px solid var(--border-3);
    width: 100%;
  }

  .site-nav__links .btn {
    margin: 16px 0 4px;
    width: 100%;
  }

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

  .hero { padding: 64px 24px 64px; }
  .hero h1 { font-size: 44px; }

  .approach__grid,
  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__side { flex-direction: row; align-items: center; }
  .about__photo { width: 96px; height: 96px; }
}

/* ==========================================================================
   Responsive — ≤ 600px
   ========================================================================== */

@media (max-width: 600px) {
  .hero,
  .services,
  .approach,
  .about {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .contact { padding-top: 56px; padding-bottom: 56px; }

  .hero { padding-top: 48px; }
  .hero__mark {
    width: 380px;
    height: 380px;
    top: -60px;
    right: -180px;
    opacity: 0.35;
  }
  .hero h1 { font-size: 36px; }
  .hero__body { font-size: 18px; }

  .services__intro p { font-size: 19px; }
  .service-row {
    grid-template-columns: 40px 1fr;
    gap: 18px;
  }
  .service-row__icon { width: 36px; height: 36px; }
  .service-row h3 { font-size: 21px; }

  .approach h2,
  .contact h2 { font-size: 30px; }

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

  .contact__email { font-size: 22px; }

  .site-footer__row { justify-content: center; text-align: center; }
}
