/* ==========================================================================
   Publishers And Distributors — Site Stylesheet
   ========================================================================== */

:root {
  --blue-900: #0a3f6b;
  --blue-700: #0d4f85;
  --blue-600: #1571b8;
  --blue-500: #1a86d9;
  --blue-100: #eaf3fb;
  --ink: #16181d;
  --grey-700: #4b5563;
  --grey-500: #6b7280;
  --grey-200: #e6e8ec;
  --grey-100: #f5f6f8;
  --white: #ffffff;
  --black: #0c0c0e;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 10px 30px rgba(15, 45, 75, 0.08);
  --max-width: 1180px;
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --cream: #f2efe9;
}

* { 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;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  margin: 0;
}

.eyebrow {
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.section {
  padding: 84px 0;
}

.section--tight { padding: 56px 0; }

.section--grey { background: var(--grey-100); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: 2rem;
  margin-top: 8px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--blue-600);
  color: var(--white);
}
.btn--primary:hover { background: var(--blue-700); }

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

.btn--white {
  background: var(--white);
  color: var(--blue-700);
}
.btn--white:hover { background: var(--blue-100); }

.btn--outline-white {
  background: transparent;
  border-color: rgba(255,255,255,0.8);
  color: var(--white);
}
.btn--outline-white:hover { background: rgba(255,255,255,0.15); }

.btn--block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(10, 30, 55, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand img { width: 38px; height: 38px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue-600);
  border-color: var(--blue-600);
}

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero banner (shared blue header used on interior pages) ---- */
.page-hero {
  background: linear-gradient(120deg, var(--blue-600) 0%, var(--blue-900) 100%);
  color: var(--white);
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
}
.page-hero .eyebrow { color: #bfe0ff; }
.page-hero h1 {
  font-size: 2.6rem;
  letter-spacing: 0.03em;
  margin-top: 6px;
}
.page-hero p {
  max-width: 480px;
  margin: 14px auto 0;
  color: #dcecfb;
}

/* ---- Hero (home page) — full-bleed split, image flush to the edge ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 640px;
}
.hero-copy-col {
  background: linear-gradient(120deg, var(--blue-600) 0%, var(--blue-900) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 90px max(40px, calc((100vw - 1180px) / 2 + 24px)) 90px max(24px, calc((100vw - 1180px) / 2 + 24px));
}
.hero-copy-col::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -160px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
}
.hero-copy-col > div { position: relative; z-index: 1; }
.hero h1 {
  font-size: 2.5rem;
  letter-spacing: 0.01em;
}
.hero-copy-col p {
  color: #dcecfb;
  margin-top: 18px;
  max-width: 440px;
  font-size: 1.02rem;
}
.hero .btn-row { margin-top: 30px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media-col { position: relative; overflow: hidden; background: var(--grey-200); }
.hero-media-col img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 420px; }

/* ---- Logo strip ---- */
.logo-strip { padding: 44px 0; background: var(--grey-100); }
.logo-strip p {
  text-align: center;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--grey-500);
  margin-bottom: 26px;
}
.logo-strip .logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  opacity: 0.55;
}
.logo-strip .logos span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--grey-700);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.logo-strip .logos span:hover { opacity: 1; transform: translateY(-2px); }

/* ---- Stats grid (Home — "Trusted by publishers...") ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--grey-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat-card {
  background: var(--cream);
  padding: 28px 30px;
  transition: background 0.2s ease;
}
.stat-card:hover { background: var(--white); }
.stat-card b {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--ink);
}
.stat-card span { color: var(--grey-500); font-size: 0.88rem; }

/* ---- Floating stat card over an image ---- */
.media-float { position: relative; }
.float-card {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  width: 220px;
  z-index: 2;
}
.float-card .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--grey-500);
  margin-bottom: 8px;
}
.float-card .row b { color: var(--ink); font-weight: 600; }
.float-card .highlight {
  margin-top: 10px;
  background: var(--blue-100);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}
.float-card .highlight span { display: block; font-size: 0.76rem; color: var(--blue-700); }
.float-card .highlight b {
  display: block;
  margin-top: 6px;
  background: var(--blue-900);
  color: var(--white);
  padding: 7px;
  border-radius: 6px;
  font-size: 0.95rem;
}

/* ---- Pulse rings around the small logo mark (About/Vision) ---- */
.pulse-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 30px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pulse-wrap .ring {
  position: absolute;
  border: 1px solid var(--grey-200);
  border-radius: 20px;
  width: 100%;
  height: 100%;
  animation: ringPulse 3.2s ease-out infinite;
}
.pulse-wrap .ring:nth-child(2) { animation-delay: 1.05s; }
.pulse-wrap .ring:nth-child(3) { animation-delay: 2.1s; }
.vision-mark {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.vision-mark img { width: 28px; height: 28px; }

@keyframes ringPulse {
  0%   { transform: scale(0.55); opacity: 0; }
  35%  { opacity: 0.55; }
  100% { transform: scale(1); opacity: 0; }
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-wrap .ring { animation: none; display: none; }
  .btn:hover, .icon-grid > div:hover, .testimonial-card:hover { transform: none; }
}

/* ---- Service / icon cards ---- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.icon-grid > div {
  padding: 30px 22px;
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.icon-grid > div:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: transform 0.25s ease;
}
.icon-grid > div:hover .icon-circle { transform: scale(1.08) rotate(-4deg); }
.icon-grid h3 { font-size: 1.05rem; margin-bottom: 8px; }
.icon-grid p { color: var(--grey-500); font-size: 0.92rem; margin: 0; }

/* ---- Two column feature block (image + text) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); }
.split-copy p { color: var(--grey-700); margin-top: 16px; }
.split-copy .btn { margin-top: 22px; }

.mini-feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}
.mini-feature h4 { font-size: 1rem; margin: 14px 0 8px; }
.mini-feature p { color: var(--grey-500); font-size: 0.9rem; margin: 0; }
.mini-feature svg { color: var(--blue-600); width: 26px; height: 26px; transition: transform 0.25s ease; }
.mini-feature:hover svg { transform: scale(1.15); }

/* ---- Testimonial / vision card ---- */
.vision-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: center;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px;
  max-width: 340px;
  transition: transform 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-card .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.testimonial-card .who img { width: 40px; height: 40px; border-radius: 50%; }
.testimonial-card .who strong { color: #1e9e6c; font-size: 0.92rem; }
.testimonial-card p { color: var(--grey-700); font-size: 0.92rem; margin: 0; }
.vision-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 26px auto 0;
}
.vision-mark img { width: 28px; height: 28px; }

/* ---- Get started (blue full block) ---- */
.cta-split {
  background: linear-gradient(120deg, var(--blue-600) 0%, var(--blue-900) 100%);
  color: var(--white);
}
.cta-split .split-copy h2 { font-size: 2.1rem; }
.cta-split .split-copy p { color: #dcecfb; }
.cta-split .btn-row { display: flex; gap: 16px; margin-top: 26px; flex-wrap: wrap; }

/* ---- Bottom banner CTA (appears on every page) ---- */
.banner-cta {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 24px 90px;
}
.banner-cta__inner {
  background: linear-gradient(120deg, var(--blue-700) 0%, var(--blue-500) 130%);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  color: var(--white);
  margin-top: 60px;
}
.banner-cta h2 { font-size: 1.9rem; }
.banner-cta p { color: #e4f1fc; margin: 0; }
.banner-cta .btn-row { display: flex; gap: 14px; margin-top: 20px; }

/* ---- Contact / quote form ---- */
.quote-hero { padding-bottom: 130px; }
.quote-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(5, 30, 55, 0.25);
  padding: 44px;
  max-width: 640px;
  margin: -110px auto 0;
  position: relative;
  z-index: 2;
}
.quote-form-card > p {
  text-align: center;
  color: var(--grey-500);
  margin: 0 0 30px;
  font-size: 0.95rem;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-note {
  font-size: 0.82rem;
  color: var(--grey-500);
  margin-top: 14px;
  text-align: center;
  display: none;
}
.form-note.is-visible { display: block; }

/* ---- FAQ accordion ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--grey-200);
}
.faq-item:first-child { border-top: 1px solid var(--grey-200); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  color: var(--ink);
}
.faq-q .sign {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--blue-600);
}
.faq-item[data-open="true"] .faq-q .sign { background: var(--blue-600); color: var(--white); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a p {
  color: var(--grey-500);
  padding: 0 4px 22px;
  margin: 0;
  font-size: 0.95rem;
}

/* ---- About page copy blocks ---- */
.about-copy p { color: var(--grey-700); margin-top: 14px; }
.about-copy h2 { font-size: 1.7rem; }

.vision-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}
.vision-intro h2 { font-size: 1.8rem; margin-bottom: 14px; }
.vision-intro p { color: var(--grey-500); }

/* ---- Footer ---- */
.site-footer {
  background: var(--black);
  color: #cfd2d8;
  padding: 56px 0 26px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-brand .brand { color: var(--white); font-size: 1.05rem; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #9aa0aa;
}
.social-icons { display: flex; gap: 14px; }
.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.social-icons a:hover { background: var(--blue-600); border-color: var(--blue-600); }
.social-icons svg { width: 16px; height: 16px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero,
  .split,
  .vision-block,
  .banner-cta__inner {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-media { order: 0; }
  .icon-grid,
  .mini-feature-row,
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy-col { padding: 60px 24px; }
  .hero-media-col img { min-height: 320px; }
}

@media (max-width: 760px) {
  .nav-links, .header-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--grey-200);
    gap: 18px;
  }
  .site-header.is-open .header-actions .btn { display: inline-flex; }
  .icon-grid, .mini-feature-row, .stats-grid { grid-template-columns: 1fr; }
  .page-hero h1, .hero h1 { font-size: 2rem; }
  .float-card { position: static; margin-top: -40px; margin-left: 16px; margin-right: 16px; width: auto; }
  .quote-form-card { padding: 30px 22px; margin-top: -80px; }
  .banner-cta__inner, .quote-form-card { padding: 32px 22px; }
  .logo-strip .logos { justify-content: center; gap: 30px 40px; }
}
