/* Lighthouse — shared design system
   Rebuilt from the Framer site at aboutlighthouse.co */

:root {
  --yellow: #ffd23f;
  --cream: #fdefb2;
  --dark: #0a1015;
  --nav-dark: #10182b;
  --navy: #172335;
  --indigo: #16204d;
  --teal: #00bab9;
  --teal-light: #8dd4da;
  --blue: #405de5;
  --hero-blue: #b3edfc;
  --light-blue: #c5dffb;
  --peach: #ffe1cb;
  --gray-bg: #f7f8fa;
  --gray-100: #f5f5f5;
  --border: #ddd;
  --text: #0a1015;
  --text-muted: #3d4145;
  --text-faint: #0f0f10c2;
  --footer-text: #cecfd0;
  --white: #fff;

  --font-display: "Plus Jakarta Sans", "Plus Jakarta Sans Placeholder", sans-serif;
  --font-body: "Inter", "Inter Placeholder", sans-serif;

  --container: 1200px;
  --nav-h: 102px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
button { font: inherit; border: 0; background: none; cursor: pointer; padding: 0; color: inherit; }

/* ---------- Typography ---------- */

.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--dark);
  text-wrap: balance;
}

.h-section {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--dark);
  text-wrap: balance;
}

.h-card {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.04em;
  color: var(--dark);
  text-wrap: balance;
}

.h-card-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--dark);
  text-wrap: balance;
}

.h-item {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--dark);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
}

.body-lg { font-size: 18px; line-height: 1.5; color: var(--text-muted); }
.body-md { font-size: 16px; line-height: 1.5; color: var(--text-muted); }
.body-sm { font-size: 14px; line-height: 1.5; color: var(--text-muted); }

.on-dark { color: var(--white); }
.on-dark-muted { color: var(--footer-text); }

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

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

.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}

.btn-primary { background: var(--yellow); color: var(--dark); }
.btn-primary:hover { background: #ffdd6b; }

.btn-ghost-dark { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.16); }

.btn-outline { background: var(--white); color: var(--dark); box-shadow: inset 0 0 0 1px var(--border); }
.btn-outline:hover { background: var(--gray-100); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color .25s ease;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 34px; width: auto; max-width: none; }
.nav-logo .logo-light { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 16px;
  color: var(--dark);
}

.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--teal); }

/* Scrolled state: dark bar, light links */
.nav.scrolled { background: var(--nav-dark); }
.nav.scrolled .nav-links { color: var(--footer-text); }
.nav.scrolled .nav-links a:hover { color: var(--white); }
.nav.scrolled .nav-logo .logo-dark { display: none; }
.nav.scrolled .nav-logo .logo-light { display: block; }

/* Pages with dark hero keep the dark logo/light links from the start */
.nav.nav-dark { background: var(--nav-dark); }
.nav.nav-dark .nav-links { color: var(--footer-text); }
.nav.nav-dark .nav-links a:hover { color: var(--white); }
.nav.nav-dark .nav-logo .logo-dark { display: none; }
.nav.nav-dark .nav-logo .logo-light { display: block; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav.scrolled .nav-burger, .nav.nav-dark .nav-burger { color: var(--white); }

.nav-mobile {
  display: none;
  background: var(--nav-dark);
  padding: 12px 40px 32px;
}
.nav-mobile a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  color: var(--footer-text);
}
.nav.open .nav-mobile { display: block; }
.nav.open { background: var(--nav-dark); }
.nav.open .nav-links { color: var(--footer-text); }
.nav.open .nav-logo .logo-dark { display: none; }
.nav.open .nav-logo .logo-light { display: block; }
.nav.open .nav-burger { color: var(--white); }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- CTA banner ---------- */

.cta-banner {
  position: relative;
  background: var(--dark);
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.cta-banner-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  max-width: none;
}

.cta-banner .container { position: relative; }

.cta-banner h2 { text-align: left; color: var(--white); }

.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

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

.footer {
  background: var(--dark);
  color: var(--footer-text);
  padding: 64px 0 48px;
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}

.footer-row-label { flex-shrink: 0; font-size: 16px; color: var(--white); }

.footer-row-rule { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.14); }

.footer-row-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 16px;
}
.footer-row-links a { color: var(--footer-text); transition: color .2s ease; }
.footer-row-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 96px;
}

.footer-bottom .footer-logo img { height: 30px; width: auto; }

.footer-copy { font-size: 14px; color: var(--footer-text); flex: 1; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.2); }
.footer-social svg { width: 16px; height: 16px; fill: var(--white); }

/* ---------- Scroll-in animation ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Accordion ---------- */

.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:first-child { border-top: 1px solid var(--border); }

.accordion-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  text-align: left;
}

.accordion-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  position: relative;
}
.accordion-icon::before, .accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--dark);
  transition: transform .25s ease;
}
.accordion-icon::before { left: 0; right: 0; top: 9px; height: 2px; }
.accordion-icon::after { top: 0; bottom: 0; left: 9px; width: 2px; }
.accordion-item.open .accordion-icon::after { transform: scaleY(0); }

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.accordion-body > div { overflow: hidden; }
.accordion-body p { padding-bottom: 24px; max-width: 820px; }
.accordion-item.open .accordion-body { grid-template-rows: 1fr; }

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

@media (max-width: 1199px) {
  .h-display { font-size: 51px; }
  .h-section { font-size: 42px; }
  .h-card { font-size: 22px; }
  .h-card-lg { font-size: 32px; }
  .section { padding: 80px 0; }
}

@media (max-width: 809px) {
  :root { --nav-h: 76px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 16px; gap: 10px; }
  .nav-logo img { height: 26px; }
  .nav-cta { padding: 12px 14px; font-size: 15px; margin-left: auto; }
  .nav-mobile { padding: 4px 20px 24px; }
  .h-display { font-size: 32px; }
  .h-section { font-size: 32px; }
  .h-card { font-size: 19px; }
  .h-card-lg { font-size: 24px; }
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .footer-row { flex-wrap: wrap; }
  .footer-row-rule { display: none; }
  .footer-row-links { gap: 18px; }
  .footer-bottom { flex-wrap: wrap; margin-top: 48px; }
  .cta-banner-inner { padding: 80px 20px; }
}
