/* LINC site styles. Colors and fonts come from brand/tokens.css. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--leading-body);
  color: var(--linc-ink);
  background: var(--linc-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; line-height: var(--leading-heading); color: inherit; }
p { margin: 0; }
/* The site is light-only, so use the fixed brand blue rather than the dark-mode-aware --color-link */
a { color: var(--linc-blue-text); text-underline-offset: 3px; }
:root { color-scheme: light; }
figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--linc-blue); outline-offset: 3px; border-radius: 4px; }

.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 {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--linc-blue-dark); color: #fff; padding: 10px 16px; border-radius: var(--radius-button);
  font-weight: 500; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* Shared layout elements from js/layout.js: let their contents lay out as direct children of body (keeps the header sticky) */
linc-header, linc-footer { display: contents; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1.2;
  padding: .8em 1.4em; border-radius: var(--radius-button); border: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--linc-blue); color: #fff; }
.btn-primary:hover { background: var(--linc-blue-text); }
.btn-primary:active { transform: translateY(1px); }
.btn-dark { background: var(--linc-blue-text); }
.btn-dark:hover { background: var(--linc-blue-dark); }
.btn-lg { font-size: 1.125rem; padding: .9em 1.6em; }
.btn-soft { background: var(--linc-blue-light); color: var(--linc-blue-text); }
.btn-soft:hover { background: #d7defa; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .96);
  backdrop-filter: saturate(1.4) blur(8px);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--linc-border), 0 6px 20px rgb(18 49 124 / .06); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { flex: none; }
.brand img { width: 108px; }

.site-nav { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: .9375rem; font-weight: 500; color: var(--linc-ink);
  text-decoration: none; border-radius: var(--radius-button);
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--linc-blue-text); background: var(--linc-blue-light); }
.nav-link.is-current { color: var(--linc-blue-text); }
.menu a[aria-current="page"] { color: var(--linc-blue-text); background: var(--linc-blue-light); font-weight: 500; }
.chev { width: 10px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
  list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--linc-border); border-radius: var(--radius-card);
  box-shadow: 0 18px 40px rgb(18 49 124 / .14);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.nav-link[aria-expanded="true"] + .menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--linc-ink); text-decoration: none; font-size: .9375rem; line-height: 1.35;
}
.menu a:hover { background: var(--linc-gray-bg); color: var(--linc-blue-text); }

.nav-cta { font-size: .9375rem; padding: .7em 1.15em; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: var(--radius-button);
  background: none; cursor: pointer; position: relative;
}
.nav-toggle:hover { background: var(--linc-gray-bg); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: var(--linc-blue-dark);
  transition: transform .25s, opacity .2s;
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  /* backdrop-filter would make the fixed nav panel position against the header */
  .site-header { backdrop-filter: none; background: #fff; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 76px 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 16px clamp(16px, 4vw, 32px) 32px; margin: 0;
    background: #fff; overflow-y: auto; border-top: 1px solid var(--linc-border);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--linc-border); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.0625rem; border-radius: 0; }
  .nav-link:hover, .nav-link[aria-expanded="true"] { background: none; }
  .menu {
    position: static; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; border-radius: 0;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .nav-link[aria-expanded="true"] + .menu { display: block; }
  .menu a { padding: 10px 12px; }
  .nav-cta { align-self: stretch; padding: 1em; font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Markers (hand-drawn underlines) ---------- */
.marker, .marker-sm { position: relative; display: inline-block; white-space: nowrap; }
.marker::after, .marker-sm::after {
  content: ""; position: absolute; left: -2%; right: -2%; pointer-events: none;
  background: no-repeat center / 100% 100%;
}
.marker::after { bottom: -.12em; height: .3em; }
.marker-sm::after { bottom: -.25em; height: .32em; }
.marker.marker-orange::after { background-image: url("../assets/img/marker-orange.svg"); }
.marker-sm.marker-orange::after { background-image: url("../assets/img/marker-orange-sm.svg"); }
.marker-sm.marker-red::after { background-image: url("../assets/img/marker-red-sm.svg"); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; isolation: isolate;
  background: var(--linc-blue-dark) url("../assets/img/hero-classroom.jpg") center right / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(8 16 44 / .72) 0%, rgb(8 16 44 / .35) 45%, rgb(8 16 44 / 0) 70%);
}
.hero-inner { min-height: clamp(520px, 72vh, 680px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 72px; }
.hero-title { font-size: clamp(2.5rem, 5.4vw, 4rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.12; }
.hero-sub { margin-top: 28px; font-family: var(--font-heading); font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 400; }
.hero-sub em { color: var(--linc-orange); font-weight: 500; }
.hero-lede { margin-top: 14px; max-width: 34rem; font-size: 1.125rem; color: rgb(255 255 255 / .9); }
.hero .btn { margin-top: 32px; box-shadow: 0 10px 30px rgb(66 96 230 / .45); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-gray { background: var(--linc-gray-bg); }
.section-tint { background: linear-gradient(180deg, #fff 0%, var(--linc-blue-light) 100%); }
.section-title { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 400; letter-spacing: -.01em; color: var(--linc-ink); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head > * + * { margin-top: 16px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { font-weight: 700; color: var(--linc-blue-text); font-size: 1rem; letter-spacing: .01em; }
.body-lg { font-size: 1.125rem; line-height: 1.7; }
.muted-strong { color: #4a5568; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-text > * + * { margin-top: 20px; }
.split-media img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-card); }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.value-card {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  min-height: 168px; padding: 28px; border-radius: var(--radius-card);
  background: var(--linc-gray-bg); color: var(--linc-ink);
  transition: transform .25s, box-shadow .25s;
}
.value-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgb(18 49 124 / .12); }
.value-card > div { display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; gap: 28px; }
.value-title { font-size: 1.5rem; font-weight: 700; }
.value-card p { font-size: .9375rem; }
.value-lavender { background: var(--linc-lavender); color: #fff; }
.value-navy { background: var(--linc-blue-dark); color: #fff; }
.value-icon { width: 96px; flex: none; margin: -6px -6px 0 0; }
.values-heading { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 400; line-height: 1.25; color: var(--linc-blue-dark); }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px);
  background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgb(18 49 124 / .12); }
.product-card p { max-width: 30rem; color: #2d3748; }
.product-logo { height: 64px; width: auto; }
.product-yourway { padding-inline: clamp(56px, 18%, 120px); }
.product-yourway::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../assets/img/yourwai-bg.svg") center / 100% 100% no-repeat; opacity: .9;
}

/* ---------- Technique ---------- */
.phases {
  display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 12px;
}
.phase { display: flex; flex-direction: column; gap: 12px; }
.phase-name {
  display: flex; align-items: center; min-height: 64px;
  padding: 10px 40px 10px 20px;
  font-family: var(--font-heading); font-size: 1.125rem; font-weight: 500; line-height: 1.2; color: #fff;
  background: linear-gradient(90deg, var(--linc-purple-md), var(--linc-lavender));
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%);
  border-radius: 6px 0 0 6px;
}
.phase + .phase .phase-name { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%); padding-left: 36px; border-radius: 0; }
.steps { display: grid; grid-template-columns: repeat(var(--steps), 1fr); gap: 12px; flex: 1; }
.step {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 170px; padding: 22px 20px; border-radius: 10px; background: var(--linc-gray-bg);
}
.step p { font-size: .9375rem; line-height: 1.55; }
.step-num { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 500; color: var(--linc-lavender); opacity: .75; }

/* ---------- CTA ---------- */
.cta-section { padding-top: 0; }
.cta-text { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 28px; }
.cta-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 400; line-height: 1.25; max-width: 18ch; }
.cta-media img { aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- Testimonials ---------- */
.voices { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.video-card {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer; aspect-ratio: 956 / 536;
  border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--shadow-card);
}
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.video-card:hover img { transform: scale(1.03); opacity: .9; }
.play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.play img { width: 84px; height: 84px; filter: drop-shadow(0 6px 18px rgb(0 0 0 / .35)); transition: transform .25s; }
.video-card:hover .play img { transform: scale(1.08); }

.quotes {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 4vw, 40px); border-radius: 16px; background: #fff; box-shadow: var(--shadow-card);
}
.quote-track { display: grid; }
.quote { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(12px); transition: opacity .45s, transform .45s, visibility 0s .45s; }
.quote.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s, transform .45s; }
.quote blockquote { margin: 0; position: relative; }
.quote blockquote::before {
  content: "“"; display: block; font-family: var(--font-heading); font-weight: 700;
  font-size: 4.5rem; line-height: .8; height: .55em; color: var(--linc-orange);
}
.quote blockquote p { font-size: 1rem; line-height: 1.6; color: var(--linc-blue-text); }
.quote figcaption { margin-top: 20px; font-size: .9375rem; color: var(--linc-muted); }
.quote figcaption strong { display: block; color: var(--linc-ink); font-weight: 700; }
.quote-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quote-arrow {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--linc-border); background: #fff; cursor: pointer; transition: background .2s, border-color .2s;
}
.quote-arrow:hover { background: var(--linc-blue-light); border-color: transparent; }
.quote-arrow svg { width: 16px; height: 16px; fill: none; stroke: var(--linc-blue-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quote-dots { display: flex; gap: 6px; }
.quote-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: #c9d1ec; transition: width .25s, background .25s;
}
.quote-dots button[aria-current="true"] { width: 28px; background: var(--linc-blue); }

/* ---------- Video dialog ---------- */
.video-dialog {
  width: min(960px, 92vw); padding: 0; border: 0; border-radius: 14px; background: #000; overflow: visible;
}
.video-dialog::backdrop { background: rgb(8 16 44 / .8); backdrop-filter: blur(3px); }
.video-frame { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.dialog-close {
  position: absolute; top: -48px; right: 0; width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgb(255 255 255 / .15); cursor: pointer;
}
.dialog-close:hover { background: rgb(255 255 255 / .28); }
.dialog-close svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; stroke-linecap: round; }

/* ---------- Footer ---------- */
.site-footer { background: var(--linc-blue); color: #fff; padding-block: 64px 32px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgb(255 255 255 / .2); }
.footer-heading { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 700; margin-bottom: 16px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { font-size: .9375rem; color: rgb(255 255 255 / .88); }
.footer-legal { margin-top: 24px !important; }
.badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; align-self: start; gap: 12px; }
.badges li { display: grid; place-items: center; height: 92px; padding: 10px 14px; background: #fff; border-radius: 10px; }
.badges img { max-height: 72px; width: auto; }
.badges li:nth-child(n+2) img { width: 124px; }
.footer-bottom { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding-top: 32px; }
.footer-brand img { width: 140px; }
.footer-contact { font-style: normal; display: flex; flex-direction: column; gap: 2px; font-size: .9375rem; color: rgb(255 255 255 / .88); }
.footer-contact strong { color: #fff; font-family: var(--font-heading); font-weight: 500; }
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .12); transition: background .2s; }
.social a:hover { background: rgb(255 255 255 / .25); text-decoration: none; }
.social svg { width: 18px; height: 18px; fill: #fff; }
.social svg.stroke { fill: none; stroke: #fff; stroke-width: 2; }
.social svg .dot { fill: #fff; stroke: none; }
.copyright { margin-top: 32px; text-align: center; font-size: .875rem; color: rgb(255 255 255 / .75); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .values { grid-template-columns: 1fr; }
  .values-heading { order: -1; text-align: center; }
  .phases { grid-template-columns: 1fr; }
  .phase-name, .phase + .phase .phase-name { clip-path: none; border-radius: 8px; padding: 14px 20px; min-height: 0; }
  .voices { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .badges { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 760px) {
  .split, .product-grid { grid-template-columns: 1fr; }
  .split-reverse-mobile .cta-media { order: -1; }
  .cta-text { align-items: flex-start; text-align: left; }
  .hero { background-position: 70% center; }
  .hero::before { background: linear-gradient(180deg, rgb(8 16 44 / .55), rgb(8 16 44 / .75)); }
  .footer-bottom { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .value-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; flex-direction: row; align-items: center; }
  .step-num { order: -1; }
  .footer-top { grid-template-columns: 1fr; }
  .hero .btn { width: 100%; }
  .product-yourway { padding-inline: 40px; }
  .product-yourway::before { background-size: 135% 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
