/* ==========================================================================
   BSS Commerce — CRO Agency London silo site
   Brand colors sourced from bsscommerce.com live CSS custom properties:
   --odefy-primary-color: #0053B3 | hover: #1675D3 | dark surface: #020C1C
   ========================================================================== */

:root {
  --primary: #0053B3;
  --primary-hover: #1675D3;
  --dark: #020C1C;
  --text: #1B1F27;
  --text-light: #5A6472;
  --bg: #FFFFFF;
  --bg-alt: #F4F7FB;
  --border: #E3E8EF;
  --success: #1D9A6C;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1140px;
  margin: 0 auto;
  gap: 24px;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.logo-mark img { height: 36px; width: auto; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

nav.main-nav > a,
nav.main-nav > span.current {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
nav.main-nav > a:hover { color: var(--primary); text-decoration: none; }
nav.main-nav > span.current {
  color: var(--primary);
  cursor: default;
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown > span.dropdown-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(2,12,28,0.12);
  padding: 10px;
  min-width: 320px;
  max-height: 420px;
  overflow-y: auto;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel { display: block; }
.nav-dropdown-panel a,
.nav-dropdown-panel span.current {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}
.nav-dropdown-panel a:hover { background: var(--bg-alt); text-decoration: none; color: var(--primary); }
.nav-dropdown-panel span.current { color: var(--primary); background: var(--bg-alt); cursor: default; }

.header-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.header-cta:hover { background: var(--primary-hover); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-alt);
  padding: 56px 0 48px;
}
.hero h1 {
  font-size: 2.15rem;
  line-height: 1.25;
  margin: 0 0 18px;
  max-width: 760px;
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 0 24px;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.pill {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.pill::before { content: "✔ "; color: var(--success); }

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
}
.btn-primary:hover { background: var(--primary-hover); text-decoration: none; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }
section h2 {
  font-size: 1.7rem;
  margin: 0 0 14px;
  max-width: 760px;
}
section p.section-intro {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 0 32px;
  font-size: 1.02rem;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--text-light); font-size: 0.95rem; }

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.step .step-num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-light); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--text-light); font-size: 0.9rem; }

.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.case-card .meta { font-size: 0.82rem; color: var(--text-light); font-weight: 600; margin-bottom: 8px; }
.case-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.case-card ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-light); font-size: 0.95rem; }
.case-card ul li { margin-bottom: 6px; }

.quote-card {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 22px;
  font-style: italic;
  color: var(--text);
}
.quote-card cite { display: block; margin-top: 12px; font-style: normal; font-weight: 600; font-size: 0.88rem; color: var(--text-light); }

details.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; float: right; font-size: 1.3rem; color: var(--primary); }
details.faq-item[open] summary::after { content: "–"; }
details.faq-item p { margin: 12px 0 0; color: var(--text-light); }

.cta-band {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 56px 24px;
}
.cta-band h2 { color: #fff; margin: 0 0 12px; }
.cta-band p { color: #B7C2D3; margin: 0 0 24px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--dark);
  color: #B7C2D3;
  padding: 48px 0 24px;
  font-size: 0.92rem;
}
footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 780px) { footer.site-footer .footer-grid { grid-template-columns: 1fr; } }
footer.site-footer h4 { color: #fff; font-size: 0.95rem; margin: 0 0 14px; }
footer.site-footer a { color: #B7C2D3; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .footer-logo { height: 32px; margin-bottom: 14px; }
footer.site-footer address { font-style: normal; }
footer.site-footer .footer-list { list-style: none; padding: 0; margin: 0; }
footer.site-footer .footer-list li { margin-bottom: 8px; }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); align-items: center; justify-content: center; }
.social-row img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}
.footer-bottom a { margin-right: 16px; }

/* ---------- Misc pages (About / Privacy) ---------- */
.page-hero {
  background: var(--bg-alt);
  padding: 48px 0;
}
.page-hero h1 { font-size: 2rem; margin: 0 0 10px; }
.prose h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.prose p { margin: 0 0 16px; color: var(--text); }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.office-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 24px 0; }
@media (max-width: 700px) { .office-grid { grid-template-columns: 1fr; } }
