/* Voyage IQ — shared styles (rebuilt from the Squarespace original).
   Tokens extracted from the live site's computed styles. */
@import url('../fonts/fonts.css');

:root {
  --ink: #313d41;               /* hsl(195,14%,22%) headings + body text */
  --ink-90: rgba(49, 61, 65, 0.9);
  --accent: #efb071;            /* hsl(30,80%,69%) primary buttons */
  --accent-ink: #121211;        /* text on accent buttons */
  --teal: #476c77;              /* hsl(194,25%,37%) dark sections */
  --lavender: #e0e2ed;          /* hsl(231,27%,90%) light sections + wave lines */
  --white: #ffffff;
  --heading: 'Manrope', sans-serif;
  --body: 'Poppins', sans-serif;
  --pad-x: 1.6vw;               /* ~23px at 1440 */
  --content-max: 1160px;        /* inner column for testimonials/case study */
}

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

h1 { font-size: clamp(2.9rem, 4.71vw, 67.84px); line-height: 1.056; }
h2 { font-size: clamp(2.375rem, 3.27vw, 47.1px); line-height: 1.114; }
h4 { font-size: clamp(1.5rem, 1.83vw, 26.37px); line-height: 1.171; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.text-large { font-size: clamp(1.15rem, 1.59vw, 22.9px); line-height: 1.5; }

a { color: inherit; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 300px;
  padding: 1.65em 3.4em;
  max-width: 330px;
  cursor: pointer;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:focus-visible { outline-color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 2.5vw;
  background: var(--white);
  position: relative;
  z-index: 50;
}
.site-header__logo img { width: 213px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__folder { position: relative; }
.site-nav__label {
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 6px;
  display: inline-block;
}
.site-nav__label:hover { opacity: 0.7; }
.site-nav__dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 260px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(49, 61, 65, 0.12), 0 2px 8px rgba(49, 61, 65, 0.08);
  border-radius: 10px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0.18s;
}
.site-nav__folder:hover .site-nav__dropdown,
.site-nav__folder:focus-within .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-nav__dropdown a {
  display: block;
  padding: 10px 22px;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__dropdown a:hover { background: rgba(224, 226, 237, 0.45); }
.site-nav__dropdown a:focus-visible,
.site-nav__label:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }

/* mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 9px 0;
  transition: transform 0.22s ease-out;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 96px;
  background: var(--white);
  z-index: 40;
  padding: 24px 6vw;
  overflow-y: auto;
}
.mobile-menu a {
  display: block;
  font-family: var(--heading);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: 14px 0;
}
/* Sets the Who We Help destinations apart from the top-level Home link, so
   Home doesn't read as another business type. Mirrors the desktop nav folder. */
.mobile-menu__group {
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(49, 61, 65, 0.3);
}
.mobile-menu__label {
  margin: 0 0 4px;
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
body.menu-open .mobile-menu { display: block; }
body.menu-open { overflow: hidden; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- sections ---------- */
.section { padding: 100px var(--pad-x) 86px; position: relative; }
.section--flush-top { padding-top: 100px; }
.inner { max-width: var(--content-max); margin: 0 auto; }

/* wave dividers */
.divider { display: block; width: 100%; height: 86px; }
.divider--line path { fill: none; stroke: var(--lavender); stroke-width: 2; }
.divider--fill { height: 116px; margin-bottom: -1px; }
.divider--scoop { height: 29px; margin-bottom: -1px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 40px var(--pad-x) 44px;
}
.site-footer h2 { color: var(--white); margin-bottom: 18px; }
.site-footer p { color: var(--white); }
.site-footer .btn { margin-top: 28px; padding: 1.65em 3.4em; }

/* ---------- accordion ---------- */
.accordion { border-top: 1px solid rgba(49, 61, 65, 0.3); }
.accordion__item { border-bottom: 1px solid rgba(49, 61, 65, 0.3); }
.accordion__title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: none;
  border: 0;
  padding: 18px 6px;
  font-family: var(--heading);
  font-size: clamp(1.2rem, 1.83vw, 26.37px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.accordion__title:hover { opacity: 0.75; }
.accordion__title:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.accordion__icon { flex: none; width: 22px; height: 22px; position: relative; }
.accordion__icon::before, .accordion__icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: transform 0.22s ease-out;
}
.accordion__icon::before { left: 0; right: 0; top: 10px; height: 2px; }
.accordion__icon::after { top: 0; bottom: 0; left: 10px; width: 2px; }
.accordion__item[data-open] .accordion__icon::after { transform: scaleY(0); }
.accordion__panel { overflow: hidden; height: 0; transition: height 0.25s ease-out; }
.accordion__panel-inner { padding: 0 6px 24px; font-size: 16px; line-height: 1.6; max-width: 62ch; }

/* ---------- reusable image shape ---------- */
.squircle { clip-path: url(#squircle); }

/* ---------- utility ---------- */
.center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- scroll reveal ----------
   Elements start slightly low and transparent, then ease up as they enter view.
   The hidden state only applies while html.js-reveal is set by the small <head>
   bootstrap script, so no-JS visitors (and pages without that script, like 404
   and the legal pages) always see full content.
   The selector list below is mirrored in REVEAL_SELECTOR in /assets/js/main.js —
   keep the two in sync. */
html.js-reveal .hero h1,
html.js-reveal .hero h2,
html.js-reveal .hero__text,
html.js-reveal .hero__image,
html.js-reveal .section > h2,
html.js-reveal .section > p,
html.js-reveal .inner > h2,
html.js-reveal .inner > p,
html.js-reveal .card,
html.js-reveal .t-rule,
html.js-reveal .t-row,
html.js-reveal .video-frame,
html.js-reveal .what-grid > *,
html.js-reveal .how-grid > *,
html.js-reveal .why-grid > *,
html.js-reveal .cta-band__inner > *,
html.js-reveal .ind-hero__heads h1,
html.js-reveal .ind-hero__ps,
html.js-reveal .ind-hero__image,
html.js-reveal .problems > h2,
html.js-reveal .problems li,
html.js-reveal .solve > h1,
html.js-reveal .solve .accordion__item,
html.js-reveal .solve__image,
html.js-reveal .expect h2,
html.js-reveal .expect__ps,
html.js-reveal .client-proof,
html.js-reveal .ready__card {
  opacity: var(--reveal-o, 0);
  transform: var(--reveal-t, translateY(18px));
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* The revealed state flips two custom properties rather than opacity/transform
   directly. Only this rule ever sets them, so it can't lose a specificity
   contest with the multi-class selectors above (a plain `.is-revealed` rule
   would be outranked by e.g. `html.js-reveal .hero h1`). */
html.js-reveal .is-revealed { --reveal-o: 1; --reveal-t: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Custom properties inherit, so this shows every target at once. */
  html.js-reveal { --reveal-o: 1; --reveal-t: none; }
}

/* ================= responsive ================= */
@media (max-width: 900px) {
  :root { --pad-x: 6vw; }
  .site-header { padding: 22px 6vw; }
  .site-header__logo img { width: 170px; }
  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .divider { height: 48px; }
  .divider--fill { height: 64px; }
  .divider--scoop { height: 20px; }
}
