/*
Theme Name: Manchester Speak
Theme URI: https://manchesterspeak.com
Author: Manchester Speak
Description: Custom WordPress theme for Manchester Speak / Tradregat certified translation, sworn translation, interpreting and Hague Apostille legalisation services.
Version: 1.0
Requires PHP: 7.4
Text Domain: manchester-speak
*/

:root {
  color-scheme: light;
  --color-blue: #1666CC;
  --color-blue-light: #4A9EF5;
  --color-blue-tint: #D7E9FB;
  --color-gold: #F0B429;
  --color-gold-tint: #FBE7B8;
  --color-charcoal: #111214;
  --color-charcoal-soft: #1D1F22;
  --color-bg-light: #F5F6F8;
  --color-white: #FFFFFF;
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-soft: 0 8px 24px rgba(17, 18, 20, 0.08);
  --shadow-hover: 0 16px 32px rgba(17, 18, 20, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  line-height: 1.6;
  background: var(--color-white);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-charcoal);
  line-height: 1.2;
}

h2 { font-size: 2.1rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin-bottom: 16px; max-width: 720px; }
p:last-child { margin-bottom: 0; }
p, h1, h2, h3, li { text-wrap: pretty; }

ul { padding-left: 0; margin-bottom: 16px; list-style: none; }
li { margin-bottom: 6px; }

/* Feature-list styling used inside content sections: a clean flowing list
   with a small dash marker (no boxes, no checkmarks). Uses CSS Grid (not
   `columns`) because multi-column text flow was fragmenting list items
   across the column break and clipping the wrapped remainder — grid never
   splits an item, it just places each li in its own cell. */
.section ul,
.card ul {
  display: grid;
  /* a fixed max (not 1fr) keeps columns a sensible reading width even when a
     list has few items — 1fr stretched short lists across the full section
     width, spacing a handful of items out oddly far apart */
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  align-items: start;
  column-gap: 40px;
  row-gap: 18px;
  margin-top: 24px;
  margin-bottom: 24px;
}
.card ul { grid-template-columns: 1fr; margin-bottom: 8px; }
.section ul li,
.card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  font-size: 0.96rem;
  line-height: 1.5;
  max-width: none;
}
/* A fixed top offset (not percentage/50% centering) keeps the dash aligned
   to the first line specifically — centering on the whole box instead would
   put the dash mid-way down any item that wraps to 2+ lines. */
.section ul li::before,
.card ul li::before {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 2px;
  margin-top: 0.7em;
  background: var(--color-blue);
}
.section-dark ul li::before { background: var(--color-gold); }

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

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

/* Header / Nav */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 24px 14px;
  border-bottom: 1px solid #e5e8eb;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.site-header .logo { display: inline-block; }
.site-header .logo img { height: 76px; transition: transform 0.3s ease; }
.site-header .logo:hover img { transform: scale(1.05) rotate(-2deg); }
.header-contact { margin: -4px 0 0; font-size: 0.8rem; color: #5a6672; text-align: center; }
.header-contact a { color: inherit; }
.header-contact a:hover { color: var(--color-blue); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  list-style: none;
  padding-left: 0;
}

.site-nav li { margin-bottom: 0; }

.site-nav a {
  color: var(--color-charcoal);
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 4px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-blue);
  transition: width 0.25s ease;
}
.site-nav a:hover { text-decoration: none; color: var(--color-blue); }
.site-nav a:hover::after { width: 100%; }

.site-nav a[aria-current="page"] { color: var(--color-blue); }
.site-nav a[aria-current="page"]::after { width: 100%; background: var(--color-gold); }

.site-nav li.has-dropdown { position: relative; }
.site-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  background: var(--color-white);
  border: 1px solid #e5e8eb;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 16px 0 10px;
  min-width: 250px;
  z-index: 200;
  list-style: none;
  flex-direction: column;
  gap: 0;
  text-align: left;
}
.site-nav li.has-dropdown:hover .dropdown,
.site-nav li.has-dropdown:focus-within .dropdown { display: flex; }
.site-nav .dropdown li { width: 100%; }
.site-nav .dropdown a {
  display: block;
  padding: 7px 20px;
  font-size: 0.85rem;
  font-weight: 500;
}
.site-nav .dropdown a::after { display: none; }
.site-nav .dropdown a:hover { background: var(--color-bg-light); }
.dropdown-heading {
  padding: 8px 20px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a939c;
}
.dropdown-divider { height: 1px; background: #e5e8eb; margin: 6px 0; }

.nav-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-charcoal);
}

@media (max-width: 900px) {
  .site-header .logo img { height: 56px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid #e5e8eb;
    padding: 16px 24px;
  }
  .site-nav.is-open {
    display: block;
    position: fixed;
    top: var(--header-h, 140px);
    left: 0;
    right: 0;
    bottom: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 150;
  }
  .site-header.nav-is-open { backdrop-filter: none; }
  .site-nav ul { flex-direction: column; gap: 12px; align-items: center; }
  .site-nav .dropdown {
    display: flex;
    position: static;
    transform: none;
    margin-top: 8px;
    border: none;
    box-shadow: none;
    background: var(--color-bg-light);
    border-radius: var(--radius);
    padding: 8px 0;
    min-width: 0;
    width: 100%;
    text-align: center;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; opacity: 1; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-primary { background: var(--color-blue); color: var(--color-white); border-color: var(--color-blue); }
.btn-gold { background: var(--color-gold); color: var(--color-charcoal); border-color: var(--color-gold); }
.btn-outline { background: transparent; color: var(--color-charcoal); border-color: var(--color-charcoal); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* Breathing room between text/list content and whatever follows it */
.section ul + .btn,
.section p + .btn,
.section ul + .cta-row,
.section p + .cta-row,
.section ul + .button-grid,
.section p + .button-grid,
.bento-grid + .btn,
.bento-groups + .btn,
.category-card-grid + .btn,
.bento-grid + .cta-row,
.bento-groups + .cta-row,
.bento-grid + .button-grid,
.bento-groups + .button-grid {
  margin-top: 32px;
}
.section ul + p,
.card ul + p,
.section ul + h3,
.section ul + h2 {
  /* padding, not margin — margin-top here would collapse with the list's
     own margin-bottom and collapse down to whichever value is larger,
     silently cancelling this rule out. Padding always stacks on top. */
  padding-top: 28px;
}

/* Sections */
.section { padding: 88px 0; position: relative; }
.section--sm { padding: 52px 0; }
.section-alt { background: var(--color-bg-light); }
.section-blue { background: var(--color-blue-tint); }
.section-gold { background: var(--color-gold-tint); }
.section-dark { background: var(--color-charcoal); color: #e8eaec; }
.section-dark h2, .section-dark h3 { color: var(--color-white); }
.section-dark a { color: var(--color-gold); }
.section-dark .lede { color: #cfd3d6; }
.section-dark .btn-outline { border-color: var(--color-white); color: var(--color-white); }
.section-dark .card {
  background: var(--color-charcoal-soft);
  border-color: #4a5157;
  color: #e8eaec;
}
.section-dark .card h3 { color: var(--color-gold); }
.section h2 { margin-bottom: 20px; }
.section .lede { font-size: 1.1rem; max-width: 800px; margin-bottom: 24px; }

/* Eyebrow pill label used above headings, borrowed from the reference site */
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue);
  background: var(--color-blue-tint);
  border: 1px solid rgba(22, 102, 204, 0.18);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-tag--light {
  color: var(--color-blue-light);
  background: rgba(74, 158, 245, 0.12);
  border-color: rgba(74, 158, 245, 0.28);
}
.section-dark .section-tag { color: var(--color-blue-light); background: rgba(74, 158, 245, 0.12); border-color: rgba(74, 158, 245, 0.28); }

.page-header {
  position: relative;
  padding: 84px 0 64px;
  background: var(--color-charcoal);
  text-align: center;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -5%, rgba(22, 102, 204, 0.35) 0%, transparent 65%),
    radial-gradient(circle at 10% 90%, rgba(74, 158, 245, 0.1) 0%, transparent 40%);
  pointer-events: none;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-size: 2.3rem; margin-bottom: 12px; color: var(--color-white); }
.page-header .subheading { font-size: 1.1rem; color: rgba(255, 255, 255, 0.55); max-width: 700px; margin: 0 auto; }
.page-header .page-tag { margin-bottom: 16px; }
.page-header-flag {
  width: 108px;
  height: auto;
  margin: 0 auto 18px;
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
}
.page-header-flags {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 0 auto 18px;
}
.page-header-flags .page-header-flag { margin: 0; }

/* Hero */
.hero {
  padding: 130px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--color-charcoal);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 0%, rgba(22, 102, 204, 0.4) 0%, transparent 65%),
    radial-gradient(circle at 85% 80%, rgba(240, 180, 41, 0.12) 0%, transparent 45%);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: dotDrift 20s linear infinite;
  z-index: 0;
}
@keyframes dotDrift {
  from { background-position: 0 0; }
  to { background-position: 28px 28px; }
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 2.8rem; margin-bottom: 20px; color: var(--color-white); letter-spacing: -0.03em; }
.hero p { font-size: 1.2rem; max-width: 680px; margin: 0 auto 8px; color: rgba(255, 255, 255, 0.62); }
.hero .section-tag { margin-bottom: 20px; }
.hero .btn-outline { border-color: rgba(255, 255, 255, 0.5); color: var(--color-white); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.hero-centered { text-align: center; max-width: 780px; margin: 0 auto; }

/* Trust bar */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 36px 24px;
  background: var(--color-charcoal-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--color-white);
  text-align: center;
}
.trust-bar img {
  height: 90px;
  border-radius: var(--radius);
  animation: badgeGlow 3s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(254, 194, 0, 0)); }
  50% { filter: drop-shadow(0 0 14px rgba(254, 194, 0, 0.55)); }
}
.trust-bar .trust-fact { font-weight: 600; max-width: 220px; font-size: 0.95rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e8eb;
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 12px; color: var(--color-blue); }
.card p { flex-grow: 1; }
.card .btn { align-self: flex-start; margin-top: 12px; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--color-blue-tint);
  color: var(--color-blue);
  border: 1px solid rgba(0, 169, 228, 0.18);
  flex-shrink: 0;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.gold { background: var(--color-gold-tint); color: #8a6600; border-color: rgba(254, 194, 0, 0.3); }
.card-icon.dark { background: var(--color-charcoal); color: var(--color-white); border-color: var(--color-charcoal); }

.feature-icon-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 28px 0 32px;
}
.feature-icon-item {
  background: var(--color-white);
  border: 1px solid rgba(50, 55, 60, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-icon-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.feature-icon-item img { margin: 0 auto 12px; }
.feature-icon-item h4 { margin-bottom: 6px; }
.feature-icon-item p { font-size: 0.9rem; color: #55595e; margin-bottom: 0; }

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.button-grid .btn { text-align: center; }

/* Bio / photo layout */
.bio-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}
.bio-block img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
@media (max-width: 700px) {
  .bio-block { grid-template-columns: 1fr; text-align: center; }
  .bio-block img { margin: 0 auto; max-width: 220px; }
}

/* Text + supporting illustration layout used on Romania/Fast Apostille/Spain */
.split-block {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.split-visual { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.split-visual-card { max-width: 220px; filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.12)); }
.split-visual-card--lg { max-width: 380px; border-radius: var(--radius-lg); }
.split-visual-card--md { max-width: 640px; border-radius: var(--radius-lg); }

.section-banner-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 28px;
}
.split-visual--bleed-right { align-items: flex-end; margin-right: -130px; }

@media (max-width: 1000px) {
  .split-visual--bleed-right { margin-right: 0; }
}

@media (max-width: 800px) {
  .split-block { grid-template-columns: 1fr; text-align: center; }
  .split-block > * { min-width: 0; }
  .split-visual { margin-top: 12px; }
  .split-visual-card, .split-visual-card--lg, .split-visual-card--md { max-width: 100%; }
}

.video-wide-frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}
.video-wide-frame::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: inherit;
  filter: blur(24px) brightness(0.55);
  transform: scale(1.15);
  z-index: 0;
}
.video-wide-frame video {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
}

.photo-wide-frame {
  position: relative;
  max-width: 480px;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}
.photo-wide-frame::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: inherit;
  filter: blur(20px) brightness(0.7);
  transform: scale(1.15);
  z-index: 0;
}
.photo-wide-frame img {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
}

/* How it works */
.steps-list { counter-reset: step; list-style: none; padding-left: 0; margin-top: 24px; }
.steps-list li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-bottom: 28px;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps-list li:nth-child(even)::before { background: var(--color-gold); color: var(--color-charcoal); }
.steps-list h3 { margin-bottom: 6px; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid #e5e8eb; }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-charcoal);
  font-family: var(--font-body);
}
.faq-question .chevron { transition: transform 0.25s ease; color: var(--color-blue); }
.faq-item.is-open .faq-question .chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  color: #45494e;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.is-open .faq-answer { max-height: 800px; padding: 0 0 20px; }

/* Wizard */
.wizard-progress {
  height: 6px;
  background: #e5e8eb;
  border-radius: 3px;
  margin-bottom: 32px;
  overflow: hidden;
}
.wizard-progress-bar { height: 100%; background: linear-gradient(90deg, var(--color-blue), var(--color-gold)); transition: width 0.3s ease; width: 10%; }
.wizard-step { display: none; }
.wizard-step.is-active { display: block; animation: stepFadeIn 0.4s ease; }
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.wizard-step h2 { margin-bottom: 8px; }
.wizard-step .step-hint { color: #55595e; margin-bottom: 20px; }
.wizard-options label {
  display: block;
  padding: 12px 16px;
  border: 1px solid #e5e8eb;
  border-radius: var(--radius);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.wizard-options label:hover { border-color: var(--color-blue); background: var(--color-blue-tint); }
.wizard-options input { margin-right: 10px; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 32px; }
.wizard-field { margin-bottom: 18px; }
.wizard-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.wizard-field input[type="text"],
.wizard-field input[type="email"],
.wizard-field input[type="tel"],
.wizard-field input[type="date"],
.wizard-field input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c9cdd1;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.wizard-field input:focus { border-color: var(--color-blue); outline: none; }
.conditional-field { display: none; margin-top: 12px; padding-left: 4px; }
.conditional-field.is-visible { display: block; animation: stepFadeIn 0.3s ease; }
.consent-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.consent-item input { margin-top: 4px; }

/* Footer */
.site-footer {
  background: var(--color-charcoal);
  color: #cfd3d6;
  padding: 48px 0 24px;
  font-size: 0.9rem;
}
.site-footer h4 { color: var(--color-white); margin-bottom: 12px; }
.footer-logo-chip {
  display: inline-block;
  background: var(--color-white);
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.footer-logo-chip img { height: 48px; }
.site-footer a { color: var(--color-white); }
.site-footer p { margin-bottom: 0; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.site-footer .disclaimer { border-top: 1px solid #4a4f55; padding-top: 16px; font-size: 0.8rem; }

/* Scroll-reveal animation (classes added by js/main.js; content is fully
   visible with no JS since these rules only apply once body.js-ready is set) */
body.js-ready .reveal-target {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
body.js-ready .reveal-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.card-grid .card.reveal-target:nth-child(1) { transition-delay: 0.05s; }
.card-grid .card.reveal-target:nth-child(2) { transition-delay: 0.15s; }
.card-grid .card.reveal-target:nth-child(3) { transition-delay: 0.25s; }
.card-grid .card.reveal-target:nth-child(4) { transition-delay: 0.35s; }
.card-grid .card.reveal-target:nth-child(5) { transition-delay: 0.45s; }
.card-grid .card.reveal-target:nth-child(6) { transition-delay: 0.55s; }

/* Staggered reveal for tile-grid list items and numbered steps */
body.js-ready .reveal-target.reveal-tile {
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.section ul li.reveal-target:nth-child(1), .card ul li.reveal-target:nth-child(1) { transition-delay: 0.03s; }
.section ul li.reveal-target:nth-child(2), .card ul li.reveal-target:nth-child(2) { transition-delay: 0.08s; }
.section ul li.reveal-target:nth-child(3), .card ul li.reveal-target:nth-child(3) { transition-delay: 0.13s; }
.section ul li.reveal-target:nth-child(4), .card ul li.reveal-target:nth-child(4) { transition-delay: 0.18s; }
.section ul li.reveal-target:nth-child(5), .card ul li.reveal-target:nth-child(5) { transition-delay: 0.23s; }
.section ul li.reveal-target:nth-child(6), .card ul li.reveal-target:nth-child(6) { transition-delay: 0.28s; }
.section ul li.reveal-target:nth-child(n+7), .card ul li.reveal-target:nth-child(n+7) { transition-delay: 0.32s; }

.steps-list li.reveal-target:nth-child(1) { transition-delay: 0.05s; }
.steps-list li.reveal-target:nth-child(2) { transition-delay: 0.15s; }
.steps-list li.reveal-target:nth-child(3) { transition-delay: 0.25s; }
.steps-list li.reveal-target:nth-child(4) { transition-delay: 0.35s; }
.steps-list li.reveal-target:nth-child(5) { transition-delay: 0.45s; }

.faq-item.reveal-target:nth-child(1) { transition-delay: 0.03s; }
.faq-item.reveal-target:nth-child(2) { transition-delay: 0.08s; }
.faq-item.reveal-target:nth-child(3) { transition-delay: 0.13s; }
.faq-item.reveal-target:nth-child(4) { transition-delay: 0.18s; }
.faq-item.reveal-target:nth-child(n+5) { transition-delay: 0.22s; }

/* ============================================================
   DESIGN EXPERIMENT — trialled on solicitors-businesses.html
============================================================ */

/* Stat strip: bold numbers with dividers */
.stat-strip {
  background: var(--color-charcoal);
  padding: 44px 0;
}
.stat-strip .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-strip-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 0 32px;
  position: relative;
}
.stat-strip-item + .stat-strip-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.stat-strip-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-blue-light);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-strip-label {
  margin-top: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 700px) {
  .stat-strip-item { min-width: 45%; margin-bottom: 24px; }
  .stat-strip-item + .stat-strip-item::before { display: none; }
}

/* Bento grid: varying tile sizes, icon-led */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.bento-tile {
  grid-column: span 1;
  background: var(--color-white);
  border: 1px solid rgba(50, 55, 60, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px 22px 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bento-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: transparent; }
.bento-tile--wide { grid-column: span 2; }
.bento-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue-tint);
  color: var(--color-blue);
}
.bento-tile-icon.gold { background: var(--color-gold-tint); color: #8a6600; }
.bento-tile-icon.dark { background: var(--color-charcoal); color: var(--color-white); }
.bento-tile-icon svg { width: 22px; height: 22px; }
.bento-tile span { font-weight: 700; font-size: 1rem; color: var(--color-charcoal); }
@media (max-width: 760px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-tile--wide { grid-column: span 1; }
}

/* Grouped bento: one icon per group (in a header) instead of one per tile —
   used where a bento section has more than ~12 items, so the grid doesn't
   turn into a wall of repeated icons */
.bento-group { margin-bottom: 32px; }
.bento-group:last-child { margin-bottom: 0; }
.bento-group-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.bento-group-header h3 { margin-bottom: 0; }
.bento-tile-plain {
  background: var(--color-white);
  border: 1px solid rgba(50, 55, 60, 0.12);
  border-radius: var(--radius-lg);
  padding: 20px 20px 42px;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--color-charcoal);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bento-tile-plain:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: transparent; }

/* Category cards: grouped feature lists, dark cards on dark section */
/* Two independent stacking columns (masonry-style) so a short card in one
   column can sit directly under its column neighbour instead of being held
   down to the row height of a tall card in the other column. */
.category-card-grid {
  display: flex;
  gap: 20px;
  margin-top: 28px;
}
.category-card-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.category-card {
  background: var(--color-charcoal-soft);
  border: 1px solid #3a4046;
  border-radius: var(--radius-lg);
  padding: 26px 26px 50px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.category-card:hover { border-color: var(--color-blue-light); transform: translateY(-3px); }
.category-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.category-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(74, 158, 245, 0.15);
  color: var(--color-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.category-card-icon svg { width: 20px; height: 20px; }
.category-card h3 { color: var(--color-white); margin-bottom: 0; font-size: 1.1rem; }
.category-card ul { list-style: none; padding: 0; margin: 0; }
.category-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 10px;
}
.category-card ul li:last-child { margin-bottom: 0; }
.category-card ul li::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 2px;
  margin-top: 0.7em;
  background: var(--color-gold);
}
@media (max-width: 700px) {
  .category-card-grid { flex-direction: column; }
}

/* Bold closing CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--color-blue) 0%, #103e7a 100%);
  padding: 64px 0;
  text-align: center;
  color: var(--color-white);
}
.cta-banner h2 { color: var(--color-white); }
.cta-banner p { color: rgba(255, 255, 255, 0.75); max-width: 600px; margin: 0 auto 28px; }
.cta-banner .btn-gold:hover { transform: translateY(-2px); }
.cta-banner .btn-outline { border-color: rgba(255, 255, 255, 0.6); color: var(--color-white); }
.cta-banner .btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
