/* ==========================================================================
   Canalyst clone — shared stylesheet
   Fonts: Barlow (headings) + Roboto (body). Brand yellow #ffd200, navy #0d2240.
   ========================================================================== */

:root {
  --yellow: #ffd200;
  --yellow-dark: #f0c400;
  --navy: #0d2240;
  --navy-2: #10294d;
  --blue: #1863dc;
  --blue-dark: #124fb3;
  --ink: #212121;
  --grey: #667085;
  --grey-light: #f5f7fa;
  --border: #e4e8ee;
  --white: #ffffff;
  --header-h: 76px;
  --maxw: 1200px;
  --font-head: "Barlow", "Segoe UI", sans-serif;
  --font-body: "Roboto", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy);
}

h1 { font-size: 50px; }
h2 { font-size: 40px; }
h3 { font-size: 26px; }

p { margin: 0 0 1.1em; }

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 16px 30px 13px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .05s ease;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

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

.btn-outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--navy); }

.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* underline "learn more" link */
.link-more {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 6px;
}
.link-more.on-dark { color: #fff; }
.link-more:hover { text-decoration: none; color: var(--blue-dark); }
.link-more.on-dark:hover { color: var(--yellow); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 1px 0 rgba(16,41,77,.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: 26px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0; padding: 0;
}
.main-nav > ul > li { position: relative; }
.nav-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 28px 0;
  cursor: pointer;
}
.nav-top:hover { color: var(--blue); text-decoration: none; }
.has-dropdown > .nav-top::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform .2s;
}
.has-dropdown:hover > .nav-top::after { transform: rotate(-135deg); margin-top: 2px; }

.dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  min-width: 260px;
  box-shadow: 0 18px 40px rgba(13,34,64,.16);
  border-top: 3px solid var(--yellow);
  list-style: none;
  margin: 0; padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 24px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.dropdown li a:hover { background: var(--grey-light); color: var(--blue); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 22px; }
.login-link {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}
.header-actions .btn { padding: 13px 22px 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  margin-top: var(--header-h);
  position: relative;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(9,24,48,.94) 0%, rgba(13,34,64,.82) 45%, rgba(13,34,64,.55) 100%),
    url("../assets/img/hero-bg.jpg") center/cover no-repeat;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 0;
  max-width: 720px;
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lead {
  font-size: 21px;
  color: #dbe4f0;
  max-width: 560px;
  margin-bottom: 2em;
}
.hero.compact .hero-inner { min-height: 360px; }
.hero-eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow);
  font-size: 15px;
  margin-bottom: 18px;
}

/* ==========================================================================
   Generic sections
   ========================================================================== */
.section { padding: 90px 0; }
.section.tight { padding: 64px 0; }
.section-grey { background: var(--grey-light); }
.section-navy { background: var(--navy); color: #eaf0f8; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto 54px; text-align: center; }
.section-head p { color: var(--grey); font-size: 19px; }
.section-navy .section-head p { color: #c6d3e6; }

.lead-lg { font-size: 20px; }

/* two-column split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; box-shadow: 0 24px 60px rgba(13,34,64,.18); }
.split-text h2 { margin-bottom: .5em; }

/* stat band */
.stat-band {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat-figure { text-align: center; flex: 0 0 auto; }
.stat-number {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 72px;
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 15px;
  color: #c6d3e6;
  margin-top: 8px;
}
.stat-body { flex: 1 1 320px; }

/* feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 40px 32px;
  text-align: center;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 18px 44px rgba(13,34,64,.12); transform: translateY(-4px); }
.card .card-icon {
  width: 68px; height: 68px;
  margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
}
.card .card-icon img { width: 100%; height: 100%; object-fit: contain; }
.card h3 { font-size: 22px; }
.card p { color: var(--grey); font-size: 16px; margin-bottom: 0; }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 0 0 16px 38px;
  font-size: 17px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 22px; height: 22px;
  background: var(--yellow);
  border-radius: 50%;
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 7px; top: 9px;
  width: 9px; height: 5px;
  border-left: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(-45deg);
}
.checklist.on-dark li { color: #dbe4f0; }

/* numbered process steps */
.steps { counter-reset: step; max-width: 820px; margin: 0 auto; }
.step {
  display: flex;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.section-navy .step { border-color: rgba(255,255,255,.12); }
.step:last-child { border-bottom: 0; }
.step-num {
  counter-increment: step;
  flex: 0 0 auto;
  width: 46px; height: 46px;
  background: var(--yellow);
  color: #111;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step-num::before { content: counter(step); }
.step-text { padding-top: 8px; }
.step-text strong { font-family: var(--font-head); }

/* pill sub-nav links (used on subpages) */
.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.pill-nav a {
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 14px 26px 11px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.section-navy .pill-nav a { border-color: rgba(255,255,255,.55); color: #fff; }
.pill-nav a:hover { background: var(--yellow); border-color: var(--yellow); color: #111; text-decoration: none; }

/* ---------- Logo strip ---------- */
.logo-strip { padding: 56px 0; background: var(--navy); }
.logo-strip .logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px 56px;
}
.logo-strip img {
  height: 42px;
  width: auto;
  opacity: .9;
  filter: brightness(0) invert(1);
  transition: opacity .2s;
}
.logo-strip img:hover { opacity: 1; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--grey-light); padding: 90px 0; }
.quote-track { position: relative; max-width: 820px; margin: 0 auto; min-height: 200px; }
.quote {
  text-align: center;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.quote.active { opacity: 1; position: relative; pointer-events: auto; }
.quote p {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 24px;
}
.quote .who { font-size: 15px; color: var(--grey); letter-spacing: .04em; text-transform: uppercase; }
.quote-nav { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.quote-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #c6cfda;
  border: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.quote-dot.active { background: var(--yellow); transform: scale(1.2); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 1em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #0a1a30; color: #b9c5d6; padding: 70px 0 30px; font-size: 15px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 30px; filter: brightness(0) invert(1); margin-bottom: 22px; }
.footer-contact div { margin-bottom: 10px; }
.footer-contact a { color: #fff; }
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: #b9c5d6; }
.footer-col a:hover { color: var(--yellow); text-decoration: none; }

.footer-social { display: flex; gap: 14px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-social img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.footer-social a:hover { background: rgba(255,255,255,.1); }

.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: #8494a8;
}

/* ==========================================================================
   Forms (demo request)
   ========================================================================== */
.form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.form-benefits h2 { margin-bottom: .6em; }
.form-benefits .lead-lg { color: var(--grey); }
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(13,34,64,.10);
  padding: 40px;
}
.form-row { margin-bottom: 20px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-card label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-card input,
.form-card select,
.form-card textarea,
.auth-card input,
.auth-card select,
.forgot-box input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid #cdd5e0;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.auth-card input:focus,
.auth-card select:focus,
.forgot-box input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24,99,220,.14);
}
.form-card textarea { resize: vertical; min-height: 110px; }

/* the "Remember me" checkbox must stay its natural size, not full-width */
.auth-card input[type="checkbox"] { width: auto; }
.form-card .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--grey); margin-top: 14px; text-align: center; }
.form-success {
  display: none;
  background: #eaf7ee;
  border: 1px solid #bfe3cb;
  color: #1d7a3d;
  padding: 16px 18px;
  border-radius: 2px;
  margin-bottom: 20px;
  font-weight: 500;
}
.form-success.show { display: block; }

/* resource cards */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.resource-card {
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.resource-card:hover { box-shadow: 0 18px 44px rgba(13,34,64,.12); transform: translateY(-4px); }
.resource-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--navy); }
.resource-thumb img { width: 100%; height: 100%; object-fit: cover; }
.resource-body { padding: 26px 24px 30px; flex: 1; display: flex; flex-direction: column; }
.resource-tag {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.resource-body h3 { font-size: 21px; margin-bottom: 12px; }
.resource-body p { color: var(--grey); font-size: 15px; flex: 1; }
.resource-body .link-more { margin-top: 16px; align-self: flex-start; }

@media (max-width: 860px) {
  .form-split { grid-template-columns: 1fr; gap: 40px; }
  .resource-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Login / auth page
   ========================================================================== */
.login-page { background: #eef2f7; }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

.auth-aside {
  position: relative;
  background: var(--navy);
  color: #dbe4f0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.auth-aside::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(150deg, rgba(9,24,48,.95), rgba(13,34,64,.78)),
    url("../assets/img/hero-bg.jpg") center/cover no-repeat;
  z-index: 0;
}
.auth-aside-inner { position: relative; z-index: 1; padding: 64px 56px; max-width: 520px; margin: 0 auto; }
.auth-logo { height: 30px; filter: brightness(0) invert(1); margin-bottom: 40px; }
.auth-aside h2 { color: #fff; font-size: 38px; margin-bottom: .5em; }
.auth-aside p { font-size: 18px; margin-bottom: 1.6em; }

.auth-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(13,34,64,.12);
  padding: 44px 40px;
}
.auth-card-logo { display: none; }
.auth-card h1 { font-size: 32px; margin-bottom: .25em; }
.auth-sub { color: var(--grey); margin-bottom: 26px; }
.req { color: #d23; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--blue);
}

.auth-row-between {
  display: flex; align-items: center; justify-content: space-between;
  margin: 6px 0 24px; font-size: 15px;
}
.remember { display: inline-flex; align-items: center; gap: 8px; color: var(--grey); cursor: pointer; }
.remember input { width: auto; }
.forgot-link { font-weight: 500; }
.auth-submit { width: 100%; }

.auth-divider {
  text-align: center; position: relative; margin: 26px 0 18px; color: var(--grey); font-size: 14px;
}
.auth-divider::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border);
}
.auth-divider span { position: relative; background: #fff; padding: 0 14px; }

.auth-foot { font-size: 14px; color: var(--grey); text-align: center; margin: 22px 0 0; }
.auth-legal { margin-top: 26px; font-size: 13px; color: #8494a8; }
.auth-legal a { color: #6b7a90; }

/* forgot-password overlay */
.forgot-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(9,20,38,.62);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.forgot-overlay[hidden] { display: none; }
.forgot-box {
  position: relative;
  background: #fff; width: 100%; max-width: 440px;
  padding: 40px 36px; box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.forgot-box h2 { font-size: 26px; }
.forgot-box p { color: var(--grey); font-size: 15px; }
.forgot-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: 0; font-size: 30px; line-height: 1;
  color: var(--grey); cursor: pointer;
}

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-card-logo { display: block; text-align: center; margin-bottom: 20px; }
  .auth-card-logo img { height: 26px; display: inline-block; }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -6px 0 30px rgba(0,0,0,.12);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-top { padding: 16px 24px; justify-content: space-between; width: 100%; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border-top: 0;
    background: var(--grey-light);
    padding: 0;
    display: none;
    min-width: 0;
  }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown:hover .dropdown { transform: none; }
  .header-actions { gap: 14px; }
  .header-actions .login-link { display: none; }

  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .stat-band { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .hero .lead { font-size: 18px; }
  .section { padding: 60px 0; }
  .quote p { font-size: 22px; }
  .header-actions .btn { padding: 11px 16px 8px; font-size: 12px; }
  .brand img { height: 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
