/* ============================================================
   Prospecting Dynamics — flat site stylesheet
   ------------------------------------------------------------
   All brand decisions live in the :root block below. To match
   the old WordPress theme exactly, view-source the old site's
   /wp-content/themes/prospecting/style.css, grab its hex values
   and fonts, and swap them in here. Nothing else needs touching.
   ============================================================ */

:root {
  /* Brand palette — swap to match the WP theme */
  --navy: #142a4a;          /* headings, nav text */
  --navy-deep: #0d1e36;     /* footer background */
  --blue: #1f6fb2;          /* links, buttons */
  --blue-hover: #17578d;
  --accent: #f2b705;        /* small highlights, quote marks */
  --bg: #ffffff;
  --bg-alt: #f2f6fa;        /* alternating section background */
  --text: #33404f;
  --text-muted: #6b7787;
  --rule: #dde5ee;

  /* Type */
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;

  --maxw: 1140px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(13, 30, 54, 0.08);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1em; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 64px 0; }
section[id], div[id] { scroll-margin-top: 84px; }
.section--alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 40px; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--blue-hover); color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 48px; width: auto; }
@media (max-width: 760px) { .brand-logo { height: 40px; } }
.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: 0; background: var(--bg-alt); }
.hero img { width: 100%; }
.hero--desktop { display: block; }
.hero--mobile { display: none; }
@media (max-width: 640px) {
  .hero--desktop { display: none; }
  .hero--mobile { display: block; }
}
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}
.page-hero h1 { color: #fff; margin: 0; }

/* ---------- Intro (what we do) ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) {
  .intro-grid { grid-template-columns: 1fr; }
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 940px;
  margin: 0 auto;
}
.card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 36px;
  text-align: center;
}
.card img {
  width: 96px;
  margin: 0 auto 24px;
}
.card h3 { margin-bottom: 20px; }

/* ---------- Client logos ---------- */
ul.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 24px;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}
.logo-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 116px;
}
.logo-grid img { max-height: 72px; width: auto; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
}
@media (max-width: 480px) {
  .testimonials { grid-template-columns: 1fr; }
}
.testimonial {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.testimonial blockquote {
  margin: 0 0 16px;
  position: relative;
  max-height: 13.6em;   /* ~8 lines at 1.7 line-height */
  overflow: hidden;
}
.testimonial blockquote p { margin: 0 0 1em; }
.testimonial blockquote p:last-child { margin-bottom: 0; }
/* fade-out at the cut point while collapsed */
.testimonial:not(.is-expanded) blockquote::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2.6em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
}
.testimonial.is-expanded blockquote {
  max-height: none;
  overflow: visible;
}
.testimonial .toggle[hidden] { display: none; }
/* Fallback text brand if images/logo.png is missing */
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.2;
}
.brand-text span { color: var(--blue); }
.testimonial .toggle {
  background: none;
  border: 0;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  align-self: flex-start;
  margin-bottom: 16px;
}
.testimonial footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.testimonial footer img { max-height: 44px; width: auto; }
.testimonial cite { font-style: normal; }
.testimonial cite strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy);
}
.testimonial cite span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Quote band ---------- */
.quote-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}
.quote-band .mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  display: block;
}
.quote-band blockquote {
  margin: 0 auto;
  max-width: 860px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.4;
}
.quote-band cite {
  display: block;
  margin-top: 20px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
}
.quote-band cite strong { color: #fff; display: block; font-size: 1.1rem; }

/* ---------- News feed ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.news-item {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.news-item h3 { font-size: 1.1rem; }
.news-item p { flex: 1; font-size: 0.95rem; }
.news-item a { font-family: var(--font-display); font-weight: 600; text-decoration: none; }

/* ---------- Services page ---------- */
.services-list {
  columns: 2;
  column-gap: 48px;
  padding-left: 20px;
  margin: 0 0 24px;
}
.services-list li {
  break-inside: avoid;
  margin-bottom: 10px;
}
@media (max-width: 700px) {
  .services-list { columns: 1; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  text-align: center;
}
.contact-grid h3 { margin-bottom: 12px; }
.contact-grid a { text-decoration: none; font-size: 1.1rem; }
.contact-grid .big { font-family: var(--font-display); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 24px;
  font-size: 0.95rem;
}
.site-footer h5 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.8); }

/* ---------- Privacy page ---------- */
.prose { max-width: 800px; }
.prose table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}
.prose th, .prose td {
  border: 1px solid var(--rule);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
