/* Credo site styles for the rebuilt pages (home, contact).
   No Bootstrap / Hestia — these pages load fonts/roboto.css, credo.css
   (cookie banner, forms, brand type) and appbar.css, then this. */

:root {
  --navy-950: #030a3a;
  --navy-900: #010d63;
  --navy-800: #001c71;
  --steel: #0e7fb0;
  --gold: #ffcd2a;
  --accent: #ea2e00;
  --ink: #1a1d33;
  --ink-soft: #4d5375;
  --paper: #f5f6fb;
  --line: #dfe2ef;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px rgba(1, 13, 99, 0.06), 0 2px 6px rgba(1, 13, 99, 0.05);
  --shadow:
    0 1px 2px rgba(1, 13, 99, 0.06),
    0 6px 14px rgba(1, 13, 99, 0.06),
    0 18px 36px -12px rgba(1, 13, 99, 0.18);
  --head: var(--credo-headline, Impact, "Anton", sans-serif);
  --sub: var(--credo-subhead, "Copperplate Gothic Bold", "Cinzel", serif);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cr-page {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.cr-page img { max-width: 100%; height: auto; }
.cr-page a { color: var(--navy-800); }
.cr-page h1, .cr-page h2, .cr-page h3 { margin: 0; color: inherit; }
.cr-page p { margin: 0; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font-family: var(--sub);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__head h2 { font-size: clamp(26px, 18px + 1.2vw, 34px) !important; color: var(--navy-900); margin-top: 10px; }
.section__head p { margin-top: 14px; color: var(--ink-soft); font-size: 18px; }

/* ---------- buttons ---------- */
.btn-cr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-family: var(--head);
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease),
              background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.cr-page a.btn-cr--gold, .btn-cr--gold { background: var(--gold); color: var(--navy-950); box-shadow: 0 6px 18px -6px rgba(255, 205, 42, 0.55); }
.cr-page a.btn-cr--gold:hover { background: #ffd84f; }
.cr-page a.btn-cr--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.cr-page a.btn-cr--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.cr-page a.btn-cr--navy, .btn-cr--navy { background: var(--navy-900); color: #fff; box-shadow: var(--shadow-sm); }
.cr-page a.btn-cr--navy:hover, .btn-cr--navy:hover { background: var(--navy-800); }
.btn-cr:hover { transform: translateY(-1px); }
.btn-cr:active { transform: scale(0.97); transition-duration: 80ms; }
.btn-cr:focus-visible, .cr-page a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  /* the still of the wave: shown until wave.js paints, and for reduced motion */
  background: var(--navy-950) url("/assets/img/2022/04/Credo-bk-MAIN-2.png") center / cover no-repeat;
  overflow: hidden;
}
/* animated technical wave (assets/credo/wave.js) */
.hero__wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 600ms var(--ease);
}
.hero__wave.is-live { opacity: 1; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* darkest behind the centred copy, fading out toward the edges */
  background:
    radial-gradient(ellipse 60% 75% at 50% 50%, rgba(3, 10, 58, 0.75) 0%, rgba(3, 10, 58, 0.45) 55%, rgba(3, 10, 58, 0.1) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 12vw, 150px) 20px clamp(88px, 12vw, 160px);
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}
/* the block stays centred; the eyebrow lines up with the headline's left edge */
.hero__title { display: inline-block; text-align: left; }
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  margin-top: 14px;
  font-size: clamp(52px, 9vw, 104px) !important;
  line-height: 0.95 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cr-page .hero__lead { margin: 26px auto 0; max-width: 600px; font-size: clamp(18px, 1.6vw, 21px); color: rgba(255, 255, 255, 0.86); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- feature cards ---------- */
.features { background: var(--paper); }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.cr-page a.feature { color: inherit; text-decoration: none; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature:active { transform: translateY(-1px) scale(0.99); transition-duration: 80ms; }
.feature__img { aspect-ratio: 1 / 1; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.feature__img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 400ms var(--ease); }
.feature:hover .feature__img img { transform: scale(1.04); }
.feature__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.feature__body h3 { font-size: 19px !important; color: var(--navy-900); }
.feature__body p { color: var(--ink-soft); font-size: 16px; }
.feature__more {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-800);
  font-size: 15px;
}
.feature__more span { display: inline-block; transition: transform 220ms var(--ease); }
.feature:hover .feature__more span { transform: translateX(4px); }

/* ---------- YouTube band ---------- */
.yt {
  position: relative;
  color: #fff;
  background: var(--navy-900) url("/assets/img/2022/04/tech-bkg.png") center / cover no-repeat;
}
.yt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 13, 99, 0.94), rgba(1, 13, 99, 0.75)); }
.yt__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.yt__copy { display: flex; align-items: center; gap: 22px; }
.yt__icon { flex: none; width: 64px; height: 64px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.yt h2 { font-size: clamp(22px, 16px + 0.9vw, 28px) !important; }
.yt p { margin-top: 6px; color: rgba(255, 255, 255, 0.8); }

/* ---------- testimonials: rolling quote ticker ----------
   Two identical groups slide left by exactly one group's width, so the loop
   is seamless. The copy is aria-hidden. Mouse hover/focus pauses; the button
   (credo.js) pauses for good. Reduced motion: a plain swipeable row. */
.ticker { position: relative; }
.ticker__viewport {
  overflow: hidden;
  padding: 6px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-roll 75s linear infinite;
}
.ticker__group { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker__item { flex: none; width: 340px; padding-right: 20px; display: flex; }
.ticker:focus-within .ticker__track,
.ticker.is-paused .ticker__track { animation-play-state: paused; }
/* touch screens report a "sticky" hover after any tap or swipe — only pause on a real pointer */
@media (hover: hover) and (pointer: fine) {
  .ticker:hover .ticker__track { animation-play-state: paused; }
}
@keyframes ticker-roll { to { transform: translateX(-50%); } }

.tick {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.tick__logo { height: 60px; display: flex; align-items: center; margin-bottom: 12px; }
.tick__logo img { max-height: 60px; width: auto; max-width: 160px; object-fit: contain; }
.tick blockquote { flex: 1; margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.tick blockquote p { margin: 0; }
.tick blockquote p::before { content: "\201C"; }
.tick blockquote p::after { content: "\201D"; }
.tick figcaption {
  margin-top: 10px;
  font-family: var(--sub);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-800);
}

.ticker__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px auto 0;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-800);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.ticker { display: flex; flex-direction: column; }
.ticker__toggle:hover { background: var(--paper); }
.ticker__toggle:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.ticker__icon-play,
.ticker.is-paused .ticker__icon-pause { display: none; }
.ticker.is-paused .ticker__icon-play { display: inline; }

@media (max-width: 600px) {
  .ticker__item { width: 270px; padding-right: 14px; }
  .tick { padding: 16px 18px; }
  .tick__logo { height: 44px; }
  .tick__logo img { max-height: 44px; max-width: 120px; }
  .tick blockquote { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .ticker__track { animation: none; }
  .ticker__group[aria-hidden="true"], .ticker__toggle { display: none; }
  .ticker__item { scroll-snap-align: start; }
}

/* ---------- contact band ---------- */
.cta {
  position: relative;
  color: #fff;
  background: var(--navy-950) url("/assets/img/2023/08/Client-Proposal-demo-1.png") center / cover no-repeat;
}
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(3, 10, 58, 0.86); }
.cta__inner { position: relative; text-align: center; max-width: 760px; }
.cta .eyebrow { color: var(--gold); }
.cta h2 { margin-top: 10px; font-size: clamp(26px, 18px + 1.2vw, 34px) !important; }
.cta p { margin: 16px auto 32px; color: rgba(255, 255, 255, 0.84); font-size: 18px; }

/* ---------- contact page ---------- */
.page-hero { background: var(--navy-950) url("/assets/img/2022/04/tech-bkg.png") center / cover no-repeat; color: #fff; position: relative; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(3, 10, 58, 0.8); }
.page-hero .wrap { position: relative; padding-top: clamp(16px, 2vw, 22px); padding-bottom: clamp(16px, 2vw, 22px); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { margin-top: 10px; font-size: clamp(30px, 18px + 1.6vw, 42px) !important; text-transform: uppercase; }
.page-hero p { margin-top: 8px; max-width: 620px; color: rgba(255, 255, 255, 0.85); font-size: 17px; }

.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__aside h2 { font-size: 26px !important; color: var(--navy-900); }
.contact__aside p { margin-top: 14px; color: var(--ink-soft); }
.contact__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 12px; align-items: flex-start; }
.contact__list svg { flex: none; margin-top: 4px; color: var(--steel); }
.card-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); }
.card-form h2 { font-size: 22px !important; color: var(--navy-900); margin-bottom: 20px; }
.card-form .cforms-field { margin: 0 0 18px; }
.card-form .cforms-field-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.card-form .cforms-required-label { color: #b00020; }
.card-form input[type=text], .card-form input[type=email], .card-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9cde0;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.card-form input:focus, .card-form textarea:focus { outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(0, 28, 113, 0.15); }
.card-form .cforms-submit-container { margin-top: 6px; }
.card-form .cforms-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.72); font-size: 15px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h3 { font-family: var(--sub) !important; font-size: 13px !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cr-page .site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.cr-page .site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__brand img { height: 56px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; }
.site-footer__brand p { margin-top: 14px; max-width: 300px; }
.site-footer__base { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .features__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .yt__inner { flex-direction: column; align-items: flex-start; }
  .contact { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap, .hero__inner { padding-left: 16px; padding-right: 16px; }
  .hero__actions .btn-cr { flex: 1 1 100%; }
  .yt__copy { flex-direction: column; align-items: flex-start; }
  .card-form .cforms-field-row { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cr-page *, .cr-page *::before, .cr-page *::after { transition: none !important; }
}

/* ---------- consent (GDPR) checkbox on the contact form ---------- */
.card-form .credo-consent { border: 0; margin: 0; padding: 0; min-width: 0; }
.card-form .credo-consent legend { padding: 0; margin-bottom: 8px; }
.card-form .credo-consent ul { list-style: none; margin: 0; padding: 0; }
.card-form .credo-consent li { display: flex; gap: 10px; align-items: flex-start; }
.card-form .credo-consent input[type=checkbox] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--navy-900);
  cursor: pointer;
}
.card-form .credo-consent .cforms-field-label-inline { font-size: 15px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.card-form .credo-field-error .cforms-field-label-inline { color: #b00020; }
