/* ==========================================================================
   Mick Baines — site styles
   Tokens are the values Avada computed at runtime, copied verbatim from
   RECON/original-recon.json so the rebuild matches the original exactly.
   ========================================================================== */

:root {
  /* palette (was --awb-color1..8) */
  --white: #ffffff;
  --grey-100: #e0e0e0;
  --grey-500: #6a7684;
  --blue: #0f6ace;
  --blue-primary: #0e6ace;
  --navy: #004188;
  --ink: #212934;
  --black: #020202;

  --tint: rgba(14, 106, 206, 0.04);
  --page-bg: rgba(14, 106, 205, 0.03);
  --footer-bg: #fafafa;
  --hairline: rgba(33, 41, 52, 0.12);

  /* type */
  --font-head: "Poppins", Arial, Helvetica, sans-serif;
  --font-body: "Assistant", Arial, Helvetica, sans-serif;
  --fs-body: 16px;
  --lh-body: 1.8;
  --ls-body: 0.015em;

  /* layout */
  --container: 1248px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(56px, 7vw, 96px);
  --radius: 6px;
  --header-h: 96px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--blue-primary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(38px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3vw, 30px); }
h3 { font-size: 20px; }
h4 { font-size: clamp(22px, 2.6vw, 28px); }
h5 { font-size: 24px; }
h6 { font-size: 18px; }

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

:focus-visible {
  outline: 3px solid var(--blue-primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--tint); }
.section--white { background: var(--white); }
.section--black { background: var(--black); color: #fff; }
.section--black h1, .section--black h2, .section--black h3, .section--black h4 { color: #fff; }

.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split > * { min-width: 0; }
@media (min-width: 861px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--reverse > :first-child { order: 2; }
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.015em;
  color: var(--blue-primary);
  margin: 0 0 0.6em;
}

.section-title { margin-bottom: 0.35em; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius);
  background: var(--blue-primary);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--blue-primary);
  box-shadow: inset 0 0 0 2px var(--blue-primary);
}
.btn--ghost:hover { background: var(--blue-primary); color: #fff; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  padding-block: 22px;
  transition: box-shadow 0.3s ease;
}
.site-header.is-stuck { box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: 280px; max-width: 46vw; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.015em;
  padding: 2px 13px;
  color: var(--ink);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--blue-primary); }
.nav .btn { color: #fff; padding: 15px 26px; }
.nav .btn:hover { color: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.1);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .nav .btn { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: #eef4fb center top / cover no-repeat;
  padding-block: clamp(120px, 20vw, 290px) clamp(70px, 14vw, 205px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(176deg, rgba(14, 106, 206, 0.03) 27%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-copy { max-width: 50%; }
.hero-eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 8px;
}
.hero h1 {
  font-size: clamp(40px, 4.6vw, 64px);
  letter-spacing: -3px;
  line-height: 1.41;
  color: var(--blue);
  margin: -20px 0 18px;
  min-height: 1.41em;
}
.hero p {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 34ch;
}
@media (max-width: 860px) {
  .hero { text-align: center; background-position: right bottom; }
  .hero-copy { max-width: none; }
  .hero p { margin-inline: auto; }
}

/* rotating headline */
.rotator { display: inline-block; position: relative; }
.rotator span {
  display: none;
  animation: clip-in 0.6s ease both;
}
.rotator span.is-active { display: inline-block; }
@keyframes clip-in {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

/* ---------- intro card ---------- */

.intro-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 52px) clamp(24px, 5vw, 72px);
  text-align: center;
  max-width: 1000px;
  margin-inline: auto;
  position: relative;
  z-index: 3;
}
.intro-card p { font-size: 15px; line-height: 1.9; }
.intro-tab {
  width: 300px;
  max-width: 42%;
  height: 40px;
  margin: 0 auto;
  background: var(--blue-primary);
  border-radius: 0 0 calc(var(--radius) * 4) calc(var(--radius) * 4);
}

/* ---------- logo grid ---------- */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
  margin: 0;
  padding: 0;
}
.logo-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.logo-grid li {
  list-style: none;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 22px);
}
.logo-grid--plain li { background: transparent; }
.logo-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 520px) {
  .logo-grid, .logo-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- post cards ---------- */

.post-grid {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.post-card { display: flex; flex-direction: column; }
.post-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--grey-100);
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__meta {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin: 16px 0 6px;
}
.post-card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
}
.post-card:hover .post-card__title { color: var(--blue-primary); }

/* ---------- pagination ---------- */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(32px, 5vw, 54px);
  font-family: var(--font-head);
  font-size: 14px;
}
.pagination a,
.pagination span {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding-inline: 10px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.pagination [aria-current="page"] { background: var(--blue-primary); color: #fff; }

/* ---------- quote ---------- */

.quote { text-align: center; max-width: 780px; margin-inline: auto; }
.quote p {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.45;
  color: var(--navy);
  margin: 0 0 0.5em;
}
.quote cite {
  display: block;
  font-family: var(--font-head);
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  color: var(--blue-primary);
}

/* ---------- raise banner ---------- */

.raise {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.raise > * { min-width: 0; }
@media (min-width: 861px) { .raise { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.raise h2 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.5; }
.raise a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.raise a:hover { color: var(--grey-100); }
.raise img { margin-inline: auto; max-width: 330px; }

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

.cta {
  background: linear-gradient(120deg, var(--blue-primary), var(--navy));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 46px) clamp(24px, 4vw, 54px);
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.cta > * { min-width: 0; }
@media (min-width: 861px) { .cta { grid-template-columns: auto minmax(0, 1fr) auto; } }
.cta h2 { color: #fff; margin-bottom: 0.3em; font-size: clamp(24px, 2.6vw, 32px); }
.cta p { color: rgba(255, 255, 255, 0.92); font-size: 16px; line-height: 1.6; margin: 0; max-width: 56ch; }
.cta img { width: 84px; }
.cta .btn { background: var(--white); color: var(--blue-primary); white-space: nowrap; }
.cta .btn:hover { background: var(--ink); color: #fff; }

/* ---------- page header (inner pages) ---------- */

.page-head { padding-block: clamp(48px, 7vw, 90px) clamp(24px, 3vw, 40px); }
.page-head .eyebrow { font-size: 16px; }
.page-head h1 { margin-bottom: 0; }

/* ---------- prose ---------- */

.prose { max-width: 74ch; margin-inline: auto; }
/* page intros sit under a left-aligned page heading, so they align left too */
.prose--intro { margin-inline: 0; max-width: 68ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(22px, 2.4vw, 28px); }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius); margin-block: 1.6em; }
.prose a { color: var(--blue-primary); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 1.8em 0;
  padding-left: 22px;
  border-left: 3px solid var(--blue-primary);
  font-style: italic;
  color: var(--grey-500);
}
.prose hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.4em 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }

/* ---------- article ---------- */

.article-head { text-align: center; padding-block: clamp(40px, 6vw, 76px) clamp(20px, 3vw, 32px); }
.article-head h1 { max-width: 20ch; margin-inline: auto; }
.article-meta {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.article-hero {
  max-width: 1000px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: clamp(28px, 4vw, 44px) 0;
  padding: 0;
}
.gallery li { list-style: none; }
.gallery button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  width: 100%;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.4s ease; }
.gallery button:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 8, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; border-radius: var(--radius); }
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.lightbox .lb-close { top: 3vmin; right: 3vmin; }
.lightbox .lb-prev { left: 3vmin; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 3vmin; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- resources ---------- */

.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 44px);
  padding: 0;
}
.tabs li { list-style: none; }
.tabs button {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--blue-primary); color: #fff; }

.tabpanel[hidden] { display: none; }
.card-grid {
  display: grid;
  gap: clamp(16px, 2.6vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  padding: 0;
}
.card-grid li { list-style: none; }
.card-grid img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- contact form ---------- */

.contact-grid { display: grid; gap: clamp(28px, 5vw, 60px); }
.contact-grid > * { min-width: 0; }
@media (min-width: 861px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 13px 15px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--white);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--blue-primary); outline: none; }
.form-note { font-size: 14px; color: var(--grey-500); }
/* honeypot — off-screen rather than display:none, which some bots check for */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; }
.form-status.is-error { color: #b3261e; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--footer-bg);
  padding-block: clamp(28px, 4vw, 40px);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--blue-primary); }
.social { display: flex; gap: 14px; padding: 0; margin: 0; }
.social li { list-style: none; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--white); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
