/* ==========================================================================
   ReadyLeads (readyleads.co.uk) — Build 1.3 Canonical Stylesheet
   AOS v2.4 Compliant: Light Canvas, White Interactive Cards, Moving Ticker,
   Sticky Header, Bold/Highlighted Active Nav, Zero-CLS, Reduced-Motion Safe
   ========================================================================== */

:root {
  --bg-canvas: #f8fafc;
  --bg-subtle: #f1f5f9;
  --surface-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --brand-primary: #0b57d0;
  --brand-primary-dark: #0842a0;
  --brand-tint: #e8f0fe;
  --accent-emerald: #047857;
  --accent-emerald-bg: #ecfdf5;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 10px 26px rgba(15, 23, 42, 0.09), 0 2px 6px rgba(11, 87, 208, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --ticker-height: 38px;
  --header-height: 72px;
  --total-sticky-offset: calc(var(--ticker-height) + var(--header-height));
  --container-max: 1160px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--total-sticky-offset) + 20px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

[id] {
  scroll-margin-top: calc(var(--total-sticky-offset) + 20px);
}

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

a:hover {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--brand-primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Moving Ticker (GPU-composited transform, pauses on hover/focus)
   -------------------------------------------------------------------------- */
.ticker-bar {
  position: sticky;
  top: 0;
  z-index: 1001;
  height: var(--ticker-height);
  background: #0f172a;
  color: #f8fafc;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid #1e293b;
  font-size: 0.85rem;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: tickerScroll 36s linear infinite;
}

.ticker-bar:hover .ticker-track,
.ticker-bar:focus-within .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-right: 1.75rem;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
}

@keyframes tickerScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* --------------------------------------------------------------------------
   Sticky Header & Bold/Highlighted Active Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: var(--ticker-height);
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-logo:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-link:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  text-decoration: none;
}

/* Active / Selected Menu State: Bold + Highlighted */
.nav-link.is-active,
.nav-link[aria-current="page"] {
  font-weight: 700;
  color: var(--brand-primary-dark);
  background-color: var(--brand-tint);
  box-shadow: inset 0 -2px 0 var(--brand-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.header-mandate {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  text-align: center;
}

.header-mandate .mandate-pill {
  padding: 0.24rem 0.72rem;
  font-size: 0.76rem;
}

.header-mandate .mandate-pill-link {
  font-size: 0.78rem;
  margin-top: 0.2rem;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Buttons & Pill Callouts
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(11, 87, 208, 0.25);
}

.btn-primary:hover {
  background: var(--brand-primary-dark);
}

.btn-secondary {
  background: var(--surface-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.hero-sub-callout {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border: 1px solid #a7f3d0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
}

.mandate-pill-box {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
}

.mandate-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-primary-dark);
  border: 1px solid #bfdbfe;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mandate-pill-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mandate-pill-link:hover {
  color: var(--brand-primary-dark);
}

/* --------------------------------------------------------------------------
   Sections & Typography
   -------------------------------------------------------------------------- */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
  color: var(--text-primary);
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: var(--text-primary);
}

h3 {
  font-size: 1.2rem;
  line-height: 1.32;
  margin: 0 0 0.55rem;
  color: var(--text-primary);
}

.lead-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 68ch;
  margin: 0 0 1.75rem;
}

.section-header {
  max-width: 72ch;
  margin-bottom: 2.5rem;
}

/* --------------------------------------------------------------------------
   Hero & Trust Strip
   -------------------------------------------------------------------------- */
.hero {
  padding: 4.25rem 0 3.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2.25rem;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   White Interactive Cards (Core UI System)
   -------------------------------------------------------------------------- */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.white-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}

.white-card:hover,
.white-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: #93c5fd;
}

.white-card--compact {
  padding: 1.15rem 1.25rem;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  margin-bottom: 0.75rem;
}

.card-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-primary-dark);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.card-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--brand-primary);
}

.card-cta-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   Booking Form Card & Mon–Fri 9am–5pm Booking Calendar Selector
   -------------------------------------------------------------------------- */
.booking-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.15rem;
  box-shadow: var(--shadow-card-hover);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.field-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.96rem;
  color: var(--text-primary);
  background: #ffffff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand-primary);
  outline: 2px solid rgba(11, 87, 208, 0.2);
}

.calendar-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.calendar-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.calendar-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 1rem 0 1.25rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: var(--accent-emerald-bg);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --------------------------------------------------------------------------
   FAQ Hub Cards (Always rendered open in HTML for Zero-Click AI & Search)
   -------------------------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: 1.15rem;
}

.faq-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}

.faq-card p {
  margin: 0;
  color: var(--text-secondary);
}

.section-cta-row {
  margin-top: 2.25rem;
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: var(--border-strong);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid #1e293b;
}

.site-footer h2,
.site-footer h3 {
  color: #ffffff;
  font-size: 1.05rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.94rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Cookie / Analytics Consent Banner (UK GDPR & PECR Compliant)
   -------------------------------------------------------------------------- */
.consent-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 760px;
  margin: 0 auto;
  z-index: 1100;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  display: none;
}

.consent-banner.is-visible {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.consent-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 52ch;
}

.consent-actions {
  display: flex;
  gap: 0.6rem;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints & Mobile Navigation Drawer
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid,
  .card-grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .header-actions .btn,
  .header-actions .header-mandate {
    display: none;
  }

  .primary-nav {
    position: fixed;
    top: var(--total-sticky-offset);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--total-sticky-offset));
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.25rem;
    gap: 0.5rem;
    overflow-y: auto;
    border-top: 1px solid var(--border-subtle);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.22s ease, visibility 0.22s ease;
    z-index: 1050;
  }

  .primary-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-link {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
  }

  .form-grid,
  .calendar-row,
  .card-grid-2,
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Reduced Motion Support (AOS Section 7 & 14)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker-track {
    animation: none;
    transform: none;
  }

  .white-card,
  .btn,
  .primary-nav {
    transition: none;
  }

  .white-card:hover,
  .btn:hover {
    transform: none;
  }
}
