/* Marketing Advice NI — redesign stylesheet
   Logo-matched brand system: cyan wordmark blue leads, signal green supports,
   gold accents sparingly. Montserrat display, sentence case. */

:root {
  --cyan: #00b4e6;
  --cyan-dark: #0090b8;
  --cyan-tint: #d6f4fc;
  --green: #7dc24a;
  --green-dark: #5a9e30;
  --green-tint: #dcf0c8;
  --navy: #15202b;
  --navy-deep: #0d151d;
  --navy-tint: #e2eef5;
  --ink: #111111;
  --slate: #444444;
  --paper: #f0f4f8;
  --white: #ffffff;
  --gold: #f5c21e;
  --line: rgba(21, 32, 43, 0.12);

  --font-display: "Montserrat", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-hero: clamp(2.4rem, 1.2rem + 5vw, 4.75rem);
  --text-h2: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
  --text-h3: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);

  --space-section: clamp(4rem, 3rem + 4vw, 7.5rem);
  --wrap: 72rem;

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(12, 20, 40, 0.06), 0 12px 32px -16px rgba(12, 20, 40, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cyan-dark); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

.display {
  letter-spacing: 0.005em;
  font-weight: 600;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.6rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  padding: 0.85rem 1.9rem;
  border-radius: 6px;
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out-expo),
    background-color var(--duration-fast) ease, color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--cyan); color: var(--white); box-shadow: 0 8px 20px -10px rgba(0, 144, 184, 0.6); }
.btn-primary:hover { background: var(--cyan-dark); color: var(--white); }

.btn-ghost { border-color: var(--green); color: var(--green-dark); background: transparent; }
.btn-ghost:hover { background: var(--green-tint); color: var(--green-dark); }

.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { color: var(--cyan); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 244, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.brand em { font-style: normal; color: var(--cyan); }

.site-nav ul {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.8rem);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--cyan); border-bottom-color: var(--gold); }

.nav-cta { margin-left: 0.5rem; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 2px solid var(--navy);
    border-radius: 4px;
    padding: 0.4rem 0.7rem;
    font: 600 0.85rem var(--font-display);
    text-transform: uppercase;
    color: var(--navy);
    cursor: pointer;
  }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 1rem 1.5rem 1.5rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
}

.hero .network-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  padding-block: clamp(5rem, 4rem + 6vw, 9.5rem);
  max-width: 60rem;
}

.hero h1 {
  font-size: var(--text-hero);
  color: var(--white);
  margin-bottom: 0.35em;
}

.hero h1 .accent { color: var(--cyan); }

.hero .sub {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-local {
  margin-top: 3rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  font-family: var(--font-display);
}

/* ---------- Certifications strip ---------- */

.certs {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding-block: 1.4rem;
}

.certs .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2.5rem;
  align-items: center;
  justify-content: center;
}

.certs span.label {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--slate);
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.cert-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* ---------- Sections ---------- */

.section { padding-block: var(--space-section); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: var(--text-h2); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Feature grid (why FB/Google ads) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
}

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) ease;
}

.feature { position: relative; }
.feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: 2px 2px 0 0; background: linear-gradient(90deg, var(--cyan) 0%, var(--green) 60%, var(--gold) 100%); }
.feature:hover { transform: translateY(-4px); }
.feature h3 { font-size: var(--text-h3); margin-bottom: 0.4rem; }
.feature p { margin: 0; color: var(--slate); font-size: 0.97rem; }
.feature .glyph { font-size: 1.6rem; margin-bottom: 0.7rem; color: var(--green-dark); }

/* ---------- Services ---------- */

.service-list { display: grid; gap: 1.25rem; }

.service {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
}

.service .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--cyan-tint);
  -webkit-text-stroke: 1.5px var(--cyan);
  line-height: 1;
}

.service h3 { font-size: var(--text-h3); margin-bottom: 0.35rem; }
.service h3 .tag { display: block; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-top: 0.3rem; }
.service p { margin: 0; color: var(--slate); }
.service .lead-line { font-weight: 700; color: var(--navy); font-size: 1.02rem; margin: 0 0 0.5rem; }

@media (max-width: 560px) { .service { grid-template-columns: 1fr; } }

/* ---------- Logo wall ---------- */

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1rem;
}

.logo-wall .logo-cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 8 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
  transition: transform var(--duration-fast) var(--ease-out-expo), border-color var(--duration-fast) ease;
}

.logo-wall .logo-cell:hover { transform: translateY(-3px); border-color: var(--cyan); }

.logo-wall img {
  max-height: 3.6rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter var(--duration-normal) ease, opacity var(--duration-normal) ease;
}

.logo-wall .logo-cell:hover img { filter: none; opacity: 1; }

/* ---------- Testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1.25rem;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial blockquote { margin: 0; font-size: 0.98rem; color: var(--ink); flex: 1; }
.testimonial blockquote::before { content: "“"; display: block; font: 700 2.4rem/0.5 Georgia, serif; color: var(--cyan); margin-bottom: 0.7rem; }

.testimonial footer { display: flex; align-items: center; gap: 0.8rem; }

.testimonial .avatar {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  font: 600 0.95rem var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.testimonial cite { font-style: normal; font-weight: 700; color: var(--navy); display: block; font-size: 0.95rem; }
.testimonial .src { font-size: 0.8rem; color: var(--slate); }
.testimonial .src a { color: inherit; }

.review-links { margin-top: 2rem; text-align: center; font-size: 0.95rem; color: var(--slate); }

/* ---------- CTA banner (network motif) ---------- */

.cta-banner {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}

.cta-banner .network-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.cta-banner .wrap { position: relative; padding-block: clamp(3.5rem, 3rem + 4vw, 6rem); max-width: 46rem; }
.cta-banner h2 { color: var(--white); font-size: var(--text-h2); }
.cta-banner p { color: rgba(255, 255, 255, 0.82); margin-bottom: 2rem; }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem; }

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.team-card .photo {
  aspect-ratio: 4 / 3;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font: 600 1rem var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.team-card .body { padding: 1.5rem 1.6rem 1.8rem; }
.team-card h3 { font-size: 1.3rem; margin-bottom: 0.15rem; }
.team-card .role { color: var(--cyan); font-weight: 600; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.08em; }
.team-card p { color: var(--slate); font-size: 0.97rem; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 50rem; }

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  padding: 1.1rem 3rem 1.1rem 1.4rem;
  position: relative;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--cyan);
  transition: transform var(--duration-fast) ease;
}

.faq-list details[open] summary::after { content: "–"; }
.faq-list details > div { padding: 0 1.4rem 1.3rem; color: var(--slate); }

/* ---------- Forms ---------- */

.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

.form-card label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin: 1.1rem 0 0.35rem;
}

.form-card input,
.form-card textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  transition: border-color var(--duration-fast) ease;
}

.form-card input:focus,
.form-card textarea:focus { outline: none; border-color: var(--cyan); }

.form-card button { width: 100%; margin-top: 1.5rem; cursor: pointer; border: none; }

.response-promise {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--cyan-tint);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: var(--cyan-dark);
  margin-top: 1.4rem;
}

/* ---------- Article pages ---------- */

.article-hero { background: var(--navy); color: var(--white); }
.article-hero .wrap { padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem); max-width: 52rem; }
.article-hero h1 { color: var(--white); font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); }
.article-hero .meta { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 3rem; max-width: var(--wrap); margin-inline: auto; padding: var(--space-section) clamp(1.25rem, 4vw, 2.5rem); }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .article-toc { position: static; order: -1; } }

.article-body { max-width: 46rem; }
.article-body h1 { display: none; } /* duplicate of hero title from source content */
.article-body h2 { font-size: 1.6rem; margin-top: 2.2em; }
.article-body h3 { font-size: 1.2rem; margin-top: 1.8em; }
.article-body img { border-radius: var(--radius); margin-block: 1.5rem; }
.article-body li { margin-bottom: 0.4em; }

.article-toc {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  font-size: 0.9rem;
}

.article-toc strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--cyan); }
.article-toc ol { margin: 0.7rem 0 0; padding-left: 1.1rem; }
.article-toc li { margin-bottom: 0.45rem; }
.article-toc a { color: var(--navy); text-decoration: none; }
.article-toc a:hover { color: var(--cyan); text-decoration: underline; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.tag-row a {
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  background: var(--navy-tint);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}
.tag-row a:hover { background: var(--cyan-tint); color: var(--cyan); }

.author-box {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-top: 3rem;
}

.author-box .avatar { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--green-dark); color: var(--white); display: flex; align-items: center; justify-content: center; font: 600 1.1rem var(--font-display); flex: none; }
.author-box p { margin: 0.2rem 0 0; font-size: 0.93rem; color: var(--slate); }
.author-box strong { color: var(--navy); }

/* ---------- Article archive cards ---------- */

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.25rem; }

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.post-card:hover { transform: translateY(-4px); }

.post-card .thumb {
  aspect-ratio: 16 / 8;
  background: var(--navy);
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.2rem;
}

.post-card .cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}

.post-card .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.post-card h3 { font-size: 1.08rem; margin: 0; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--cyan); }
.post-card .note { font-size: 0.82rem; color: var(--slate); margin-top: auto; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.8); font-size: 0.94rem; }
.site-footer .wrap { padding-block: 3.5rem 2rem; }

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2.2rem; margin-bottom: 2.5rem; }

.site-footer h4 { color: var(--white); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.1em; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer-nap li { display: flex; gap: 0.6rem; align-items: baseline; }
.footer-nap .ico { color: var(--gold); }

.social-row { display: flex; gap: 0.8rem; margin-top: 0.9rem; }
.social-row a {
  width: 2.4rem;
  height: 2.4rem;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease;
}
.social-row a:hover { border-color: var(--gold); background: rgba(255, 255, 255, 0.08); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 100;
  max-width: 30rem;
  margin-left: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(12, 20, 40, 0.5);
  padding: 1.2rem 1.4rem;
  font-size: 0.88rem;
}

.cookie-banner .row { display: flex; gap: 0.8rem; margin-top: 0.9rem; }
.cookie-banner button {
  font: 600 0.82rem var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
}
.cookie-banner .accept { background: var(--navy); color: var(--white); border: none; }
.cookie-banner .decline { background: none; border: 1.5px solid var(--line); color: var(--slate); }

/* ---------- Motion safety ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Skip link (a11y) ---------- */

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--duration-fast) var(--ease-out-expo);
}

.skip-link:focus { top: 0.75rem; color: var(--white); }

/* ---------- How it works (3-step plan) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-card);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -1.1rem;
  left: 1.6rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--white);
  font: 700 1.15rem var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -6px rgba(0, 144, 184, 0.6);
}

.step h3 { font-size: var(--text-h3); margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--slate); font-size: 0.97rem; }

.step-connectors .step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  right: -0.75rem;
  width: 1.5rem;
  height: 2px;
  background: var(--line);
}

.magic-phrase {
  margin-top: 2rem;
  font-size: 1.05rem;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
  max-width: 44rem;
}

/* ---------- Results / case studies ---------- */

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
}

.result-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-card);
  border-top: 5px solid var(--green);
}

.result-card .metric {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.8rem);
  line-height: 1.05;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.result-card .client { font-weight: 700; color: var(--navy); }
.result-card p { margin: 0.3rem 0 0; color: var(--slate); font-size: 0.95rem; }
.result-card.placeholder { border-top-color: var(--line); opacity: 0.75; }
.result-card.placeholder .metric { color: var(--slate); }

.pull-quote {
  margin: 2.5rem auto 0;
  max-width: 44rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.3;
  color: var(--navy);
}

.pull-quote cite { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--cyan); margin-top: 1rem; font-style: normal; }

/* ---------- Success / stakes strip ---------- */

.success-stakes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .success-stakes { grid-template-columns: 1fr; } }

.ss-card { border-radius: var(--radius); padding: 1.8rem; }
.ss-card h3 { font-size: var(--text-h3); margin-bottom: 0.5rem; }
.ss-success { background: var(--green-tint); }
.ss-success h3 { color: var(--green-dark); }
.ss-stakes { background: var(--cyan-tint); }
.ss-stakes h3 { color: var(--cyan-dark); }
.ss-card p { margin: 0; color: var(--ink); }

/* ============================================================
   Landing polish — motion, depth, hero canvas, stats, marquee
   All motion is gated behind the `.motion` class (added only when
   JS is present and reduced-motion is off), so no-JS and
   reduced-motion users get the full static layout.
   ============================================================ */

:root { --shadow-hover: 0 2px 4px rgba(12,20,40,0.08), 0 24px 48px -20px rgba(12,20,40,0.38); }

/* ---- Scroll reveals ---- */
.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo); }
.motion [data-reveal].in-view { opacity: 1; transform: none; }
.motion [data-reveal="stagger"] > * { opacity: 0; transform: translateY(18px); transition: opacity 0.55s var(--ease-out-expo), transform 0.55s var(--ease-out-expo); }
.motion [data-reveal="stagger"].in-view > * { opacity: 1; transform: none; }
.motion [data-reveal="stagger"].in-view > *:nth-child(2) { transition-delay: 0.06s; }
.motion [data-reveal="stagger"].in-view > *:nth-child(3) { transition-delay: 0.12s; }
.motion [data-reveal="stagger"].in-view > *:nth-child(4) { transition-delay: 0.18s; }
.motion [data-reveal="stagger"].in-view > *:nth-child(5) { transition-delay: 0.24s; }
.motion [data-reveal="stagger"].in-view > *:nth-child(6) { transition-delay: 0.30s; }

/* ---- Hero ambient canvas (layered over the static SVG fallback) ---- */
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.9s ease; pointer-events: none; z-index: 0; }
.hero-net.on { opacity: 1; }
.motion .hero .network-bg { opacity: 0.22; }
.hero .wrap { z-index: 1; }

/* ---- Hero headline reveal on load ---- */
@keyframes heroRise { from { opacity: 0; transform: translateY(0.5em); } to { opacity: 1; transform: none; } }
.motion .hero h1 .line { display: inline-block; opacity: 0; animation: heroRise 0.75s var(--ease-out-expo) forwards; }
.motion .hero h1 .line:nth-child(1) { animation-delay: 0.06s; }
.motion .hero h1 .line:nth-child(2) { animation-delay: 0.16s; }
.motion .hero .sub, .motion .hero .hero-trust, .motion .hero .hero-ctas, .motion .hero .hero-local { opacity: 0; animation: heroRise 0.75s var(--ease-out-expo) forwards; }
.motion .hero .sub:nth-of-type(1) { animation-delay: 0.26s; }
.motion .hero .sub:nth-of-type(2) { animation-delay: 0.34s; }
.motion .hero .hero-trust { animation-delay: 0.42s; }
.motion .hero .hero-ctas { animation-delay: 0.50s; }
.motion .hero .hero-local { animation-delay: 0.58s; }

/* gold underline sweep on the accent line */
.hero h1 .accent { position: relative; }
.hero h1 .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.08em; height: 4px; background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: left; }
.motion .hero h1 .accent::after { animation: underlineSweep 0.7s var(--ease-out-expo) 0.7s forwards; }
@keyframes underlineSweep { to { transform: scaleX(1); } }

/* ---- Hero trust row ---- */
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 2rem; font-size: 0.9rem; color: rgba(255,255,255,0.82); }
.hero-trust .stars { color: var(--gold); letter-spacing: 0.1em; font-size: 1.05rem; }
.hero-trust a { color: rgba(255,255,255,0.92); text-decoration-color: rgba(255,255,255,0.4); }
.hero-trust .chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.7rem; border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.hero-trust .chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---- Scroll cue ---- */
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.35); border-radius: 14px; z-index: 1; }
.scroll-cue::before { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; border-radius: 2px; background: rgba(255,255,255,0.7); transform: translateX(-50%); }
.motion .scroll-cue::before { animation: cueDrop 1.7s ease-in-out infinite; }
@keyframes cueDrop { 0%,100% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 70% { opacity: 1; transform: translate(-50%, 14px); } }

/* ---- Sticky header: shadow on scroll (no size animation) ---- */
.site-header { transition: box-shadow var(--duration-normal) ease, background-color var(--duration-normal) ease; }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(12,20,40,0.45); background: rgba(240,244,248,0.97); }

/* ---- Card depth: hover elevation ---- */
.service, .testimonial, .step, .report-card, .team-card { transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) ease; }
.service:hover, .testimonial:hover, .step:hover, .report-card:hover, .team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature:hover, .post-card:hover { box-shadow: var(--shadow-hover); }

/* ---- Stats band ---- */
.stats-band { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-band .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.5rem 1rem; padding-block: clamp(2.2rem, 1.5rem + 2vw, 3.4rem); text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; color: var(--cyan); }
.stat .num .plus { color: var(--green-dark); }
.stat .label { display: block; margin-top: 0.4rem; font-size: 0.9rem; color: var(--slate); font-weight: 600; }
.stat .sub { display: block; font-size: 0.78rem; color: var(--slate); opacity: 0.8; }

/* ---- Logo marquee ---- */
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-marquee .track { display: flex; gap: 1rem; width: max-content; }
.motion .logo-marquee .track { animation: marquee 48s linear infinite; }
.logo-marquee:hover .track { animation-play-state: paused; }
.logo-marquee .logo-cell { flex: 0 0 auto; width: 9.5rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Bento: give the first "why" pillar prominence on wide screens ---- */
@media (min-width: 900px) {
  .feature-grid.bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
  .feature-grid.bento .feature:first-child { grid-column: span 2; }
  .feature-grid.bento .feature:first-child h3 { font-size: 1.7rem; }
}

.logo-marquee .logo-cell { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 8 / 5; display: flex; align-items: center; justify-content: center; padding: 1.1rem; }
.logo-marquee .logo-cell img { max-height: 3.4rem; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.72; transition: filter var(--duration-normal) ease, opacity var(--duration-normal) ease; }
.logo-marquee .logo-cell:hover img { filter: none; opacity: 1; }

/* Team photo slots: real image covers the branded placeholder; if the image is
   not supplied yet, onerror removes it and the placeholder label shows. */
.team-card .photo { position: relative; }
.team-card .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-card .photo .photo-ph { position: relative; z-index: 0; }
