/* ============================================================
   PLANNING VOICE — Main Stylesheet
   No5 Chambers inspired: Navy · Teal · Warm Grey
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  --navy:         #1A2744;
  --navy-deep:    #111B33;
  --navy-mid:     #243258;
  --teal:         #E8174B;
  --teal-dark:    #007F8C;
  --teal-light:   #E0F5F8;
  --warm-grey:    #EDEAE4;
  --warm-grey-2:  #F5F3EF;
  --white:        #FFFFFF;
  --text-dark:    #1A1A2E;
  --text-mid:     #3D3D5C;
  --text-light:   #6B6B80;
  --border:       #D8D4CC;
  --shadow-sm:    0 2px 8px rgba(26,39,68,0.08);
  --shadow-md:    0 6px 24px rgba(26,39,68,0.12);
  --shadow-lg:    0 16px 48px rgba(26,39,68,0.18);
  --radius:       4px;
  --radius-lg:    8px;
  --transition:   0.22s ease;
  --max-w:        1140px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--warm-grey);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--teal-dark); }
p { color: var(--text-mid); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: var(--white); }
.section--dark { background: var(--navy); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.72); }
.section--dark strong { color: rgba(255,255,255,0.9); }
.section--tint { background: var(--warm-grey-2); }
.section--navy { background: var(--navy-deep); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.72); }
.section--navy strong { color: rgba(255,255,255,0.9); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--teal);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 68px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav__logo span { color: var(--teal); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--white); }
.nav__cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav__cta:hover { background: var(--teal-dark) !important; transform: translateY(-1px); }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-mid); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.45); }
.btn--outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn--lg { padding: 16px 32px; font-size: 0.95rem; }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 80px 0 72px;
  border-bottom: 4px solid var(--teal);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--teal);
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero__trust-item {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}

/* ── Hero Card ───────────────────────────────────────────── */
.enquiry-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--teal);
}
.enquiry-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 5px;
}
.enquiry-card__sub {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 22px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--warm-grey-2);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,168,184,0.12);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-note { font-size: 0.78rem; color: var(--text-light); margin-top: 10px; text-align: center; }

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar { background: var(--teal); padding: 18px 0; }
.stats-bar__inner {
  display: flex;
  justify-content: center;
  gap: 56px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.stat { text-align: center; color: var(--white); }
.stat__number { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.stat__label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; opacity: 0.88; margin-top: 2px; }

/* ── Trust Bar ───────────────────────────────────────────── */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 14px 0; }
.trust-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
}

/* ── Section Header ──────────────────────────────────────── */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-header h4 { margin-bottom: 10px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; }

/* ── Feature Grid ────────────────────────────────────────── */
.feature { display: flex; gap: 18px; }
.feature__icon {
  width: 44px; height: 44px;
  background: var(--teal-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-dark);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 1.1rem;
}
.feature__text h3 { font-size: 1.05rem; margin-bottom: 7px; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__icon {
  width: 48px; height: 48px;
  background: var(--teal-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--teal-dark);
  font-size: 1.2rem;
}

/* ── Process Steps ───────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 30px; left: 12%; right: 12%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step { text-align: center; padding: 0 14px; position: relative; z-index: 1; }
.step__number {
  width: 60px; height: 60px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.step__number--active { background: var(--teal); color: var(--white); border-color: var(--teal); }
.step h3 { font-size: 1rem; margin-bottom: 8px; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 24px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1.5px solid var(--border);
  position: relative;
}
.price-card--featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow-md);
  background: var(--white);
}
.price-card--free { background: var(--teal-light); border-color: var(--teal); }
.price-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin: 10px 0 4px;
}
.price-amount span { font-size: 1rem; font-weight: 400; color: var(--text-light); font-family: var(--font-body); }
.price-list { margin: 18px 0; }
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-mid);
}
.price-list li:last-child { border-bottom: none; }
.price-list li::before { content: '✓'; color: var(--teal-dark); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ── Reviews ─────────────────────────────────────────────── */
.review-card {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.14);
}
.review-stars { color: var(--teal); font-size: 1rem; margin-bottom: 12px; }
.review-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 18px;
}
.review-author { font-size: 0.875rem; font-weight: 600; color: var(--white); }
.review-meta { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ── Case Study Cards ────────────────────────────────────── */
.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.case-card__img { height: 160px; background: var(--teal-light); overflow: hidden; }
.case-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: rgba(255,255,255,0.2);
  font-size: 2.5rem;
}
.case-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.case-card__outcome {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: 12px; width: fit-content;
}
.outcome--refused { background: #FEE2E2; color: #991B1B; }
.outcome--withdrawn { background: #FEF3C7; color: #92400E; }
.outcome--amended { background: #DBEAFE; color: #1E40AF; }
.case-card__type { font-size: 0.75rem; color: var(--text-light); margin-bottom: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.case-card h3 { font-size: 1rem; margin-bottom: 8px; }
.case-card p { font-size: 0.86rem; flex: 1; }
.case-card__link { display: inline-flex; align-items: center; gap: 5px; font-size: 0.86rem; font-weight: 600; color: var(--teal-dark); margin-top: 14px; transition: gap var(--transition); }
.case-card__link:hover { gap: 9px; }

/* ── Case Study Page ─────────────────────────────────────── */
.case-hero { background: var(--navy); padding: 56px 0; border-bottom: 3px solid var(--teal); }
.case-breadcrumb { font-size: 0.83rem; color: rgba(255,255,255,0.55); margin-bottom: 18px; }
.case-breadcrumb a { color: rgba(255,255,255,0.55); }
.case-breadcrumb a:hover { color: var(--white); }
.case-hero h1 { color: var(--white); font-size: clamp(1.4rem, 3vw, 2.1rem); margin-bottom: 14px; }
.case-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; }
.case-meta-item { display: flex; align-items: center; gap: 7px; font-size: 0.86rem; color: rgba(255,255,255,0.65); }
.case-content { max-width: 760px; margin: 0 auto; }
.case-content h2 { font-size: 1.45rem; margin: 38px 0 14px; color: var(--navy); }
.case-content h3 { font-size: 1.1rem; margin: 26px 0 10px; color: var(--navy); }
.case-content p { margin-bottom: 16px; }
.policy-box {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 22px 0;
}
.policy-box h4 { color: var(--navy); margin-bottom: 7px; font-size: 0.8rem; }
.policy-box ul li { padding: 3px 0; padding-left: 14px; position: relative; font-size: 0.88rem; color: var(--text-mid); }
.policy-box ul li::before { content: '›'; position: absolute; left: 0; color: var(--teal-dark); font-weight: 700; }
.outcome-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px; margin: 36px 0; text-align: center;
  border-top: 4px solid var(--teal);
}
.outcome-box h3 { color: var(--teal); margin-bottom: 10px; font-size: 1.3rem; }
.outcome-box p { color: rgba(255,255,255,0.8); margin-bottom: 0; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  user-select: none;
}
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--teal); font-weight: 300; flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { font-size: 0.95rem; color: var(--text-mid); max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding-top 0.35s ease; }
.faq-item.open .faq-a { max-height: 600px; padding-top: 14px; }

/* ── Knowledge Hub Articles ──────────────────────────────── */
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-card__body { padding: 22px; }
.article-card__cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 7px; }
.article-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.article-card p { font-size: 0.86rem; }
.article-card__link { display: inline-flex; align-items: center; gap: 5px; font-size: 0.86rem; font-weight: 600; color: var(--teal-dark); margin-top: 12px; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info-item { display: flex; gap: 14px; }
.contact-info-icon {
  width: 42px; height: 42px;
  background: var(--teal-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-dark);
  flex-shrink: 0;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
}
.contact-card h3 { margin-bottom: 5px; }
.contact-card .sub { font-size: 0.86rem; color: var(--text-light); margin-bottom: 24px; }

/* ── Dark Background Universal Override ──────────────────── */
/* Forces ALL text white inside any section with a dark background */
.page-hero, .cta-band, .footer, .section--dark, .section--navy,
.hero, .stats-bar, .nav {
  color: rgba(255,255,255,0.8);
}
.page-hero *, .cta-band *, .footer *, .section--dark *, .section--navy *,
.hero *, .stats-bar * {
  color: inherit;
}
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4,
.cta-band h1, .cta-band h2, .cta-band h3,
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4,
.footer h4 {
  color: var(--white) !important;
}
.page-hero p, .cta-band p, .section--dark p, .section--navy p {
  color: rgba(255,255,255,0.72) !important;
}
.page-hero strong, .cta-band strong, .section--dark strong, .section--navy strong,
.footer strong {
  color: rgba(255,255,255,0.9) !important;
}
.page-hero a, .cta-band a, .section--dark a, .section--navy a {
  color: rgba(255,255,255,0.85);
}
.page-hero a:hover, .cta-band a:hover, .section--dark a:hover, .section--navy a:hover {
  color: var(--white);
}
/* Buttons keep their own colors */
.page-hero .btn, .cta-band .btn, .section--dark .btn, .section--navy .btn,
.footer .btn {
  color: var(--white);
}

/* ── Page Hero ───────────────────────────────────────────── */
.page-hero { background: var(--navy); padding: 56px 0; text-align: center; border-bottom: 3px solid var(--teal); }
.page-hero h1 { margin-bottom: 14px; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }

/* ── CTA Band ────────────────────────────────────────────── */
.cta-band { background: var(--navy); padding: 72px 0; text-align: center; }
.cta-band p { max-width: 500px; margin: 0 auto 28px; }
.cta-band__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb { font-size: 0.8rem; color: var(--text-light); margin-bottom: 28px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-light); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--navy); }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--navy-deep); color: rgba(255,255,255,0.6); padding: 60px 0 28px; }
.footer p { color: rgba(255,255,255,0.6) !important; }
.footer a { color: rgba(255,255,255,0.55); }
.footer a:hover { color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 44px; margin-bottom: 44px; }
.footer__brand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer__brand span { color: var(--teal); }
.footer p { font-size: 0.86rem; line-height: 1.7; }
.footer h4 { color: var(--white); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-body); }
.footer__links { display: flex; flex-direction: column; gap: 9px; }
.footer__links a { font-size: 0.86rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer__links a:hover { color: var(--white); }
.footer__contact-item { display: flex; align-items: flex-start; gap: 9px; font-size: 0.86rem; margin-bottom: 10px; }
.footer__contact-item a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer__contact-item a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.78rem; }
.footer__rtpi { background: rgba(255,255,255,0.07); border-radius: var(--radius); padding: 7px 13px; font-size: 0.76rem; color: rgba(255,255,255,0.6); }


/* ── RTPI Logo ───────────────────────────────────────────── */
.rtpi-logo {
  height: 48px;
  width: auto;
  display: block;
}
/* On dark navy backgrounds — black bg becomes invisible */
.rtpi-logo--dark {
  mix-blend-mode: screen;
  height: 44px;
  opacity: 0.9;
}
/* On light/white backgrounds — invert to dark navy mark */
.rtpi-logo--light {
  filter: invert(1) brightness(2) sepia(1) hue-rotate(180deg) saturate(3);
  height: 40px;
  opacity: 0.75;
}

/* ── Utilities ───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-navy { color: var(--navy); }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.inline-link { color: var(--teal-dark); text-decoration: underline; text-decoration-color: rgba(0,127,140,0.3); }
.inline-link:hover { text-decoration-color: var(--teal-dark); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr !important; gap: 40px; }
  .enquiry-card { max-width: 500px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps::before { display: none; }
  .pricing-flanks { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 52px 0; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy); padding: 20px 24px; gap: 18px;
    border-bottom: 3px solid var(--teal); z-index: 99;
  }
  .nav__hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .stats-bar__inner { gap: 28px; flex-wrap: wrap; justify-content: center; }
  .pricing-hero, .pricing-flanks { max-width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr !important; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .trust-bar__inner { gap: 16px; flex-wrap: wrap; justify-content: center; }

  /* Force ALL grids to single column on mobile */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }

  /* Fix sidebar stacking */
  .enquiry-card { position: static !important; margin-top: 32px; }

  /* Full width everything */
  .page-hero p { max-width: 100%; }
  .page-hero h1 { font-size: 1.6rem !important; }
  .case-content { max-width: 100%; }
  .loc-grid { grid-template-columns: 1fr !important; }
  .contact-layout { grid-template-columns: 1fr !important; }

  /* Prevent horizontal overflow */
  html, body { overflow-x: hidden !important; max-width: 100vw !important; }
  * { max-width: 100vw; box-sizing: border-box; }
  img { max-width: 100% !important; height: auto !important; }
  .container { padding: 0 16px; max-width: 100% !important; }
  .hero__inner { max-width: 100% !important; padding: 0 16px !important; }
  .enquiry-card { max-width: 100% !important; width: 100% !important; }
  pre, code, table { overflow-x: auto; max-width: 100%; }
  .policy-box { overflow-x: auto; }

  /* Fix hero on mobile */
  .hero__inner { grid-template-columns: 1fr !important; gap: 24px !important; }
  .hero h1 { font-size: 1.5rem !important; line-height: 1.3 !important; }
  .hero__sub { font-size: 0.95rem !important; max-width: 100% !important; }
  .hero__trust { flex-wrap: wrap; gap: 8px; }
  .hero__trust-item { font-size: 0.75rem; }
  .hero { padding: 48px 0 40px !important; }
  .hero__eyebrow { font-size: 0.7rem; }

  /* CTA band mobile */
  .cta-band h2 { font-size: 1.4rem; }
  .cta-band__btns { flex-direction: column; gap: 10px; }
  .cta-band__btns .btn { width: 100%; justify-content: center; }

  /* Case study cards */
  .case-card { max-width: 100%; }

  /* Landing page mobile */
  .lp-hero__inner { grid-template-columns: 1fr !important; }
  .lp-problem__pains { grid-template-columns: 1fr !important; }
  .lp-solution__steps { grid-template-columns: 1fr !important; }
  .lp-reviews__grid { grid-template-columns: 1fr !important; }
  .lp-types__grid { grid-template-columns: 1fr 1fr !important; }
  .lp-sticky { padding: 0 12px; }
  .lp-sticky__site-link { display: none; }
  .lp-form-card { margin-top: 24px; }

  /* Pricing cards stack */
  .pricing-grid { grid-template-columns: 1fr !important; max-width: 100% !important; }
  .price-card { padding: 24px !important; }
  .price-amount { font-size: 2rem; }

  /* Stats bar mobile */
  .stats-bar__inner { gap: 16px !important; flex-wrap: wrap !important; }
  .stat__number { font-size: 1.3rem; }
  .stat__label { font-size: 0.65rem; }

  /* Trust bar mobile */
  .trust-bar__inner { flex-direction: column; gap: 8px !important; }
  .trust-item { font-size: 0.78rem; }

  /* Forms on mobile */
  .form-group { margin-bottom: 14px; }
  .form-group label { font-size: 0.9rem; }
  input, textarea, select { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; font-size: 16px !important; padding: 12px !important; }
  textarea { min-height: 100px; }
  /* Stack radio buttons vertically on mobile */
  .form-group div[style*="display:flex"][style*="gap:20px"] { flex-direction: column !important; gap: 6px !important; }
  .form-group label[style*="font-weight:400"] { font-size: 0.95rem !important; display: flex !important; align-items: center !important; gap: 8px !important; padding: 6px 0 !important; }
  .form-group label[style*="font-weight:400"] input[type="radio"] { margin: 0 !important; width: 18px !important; height: 18px !important; flex-shrink: 0; }
  .contact-card { padding: 20px !important; max-width: 100% !important; }
  .contact-layout { gap: 24px !important; }

  /* Buttons full width */
  .btn--lg { padding: 12px 20px !important; font-size: 0.9rem !important; }

  /* Breadcrumbs wrap */
  .breadcrumb { font-size: 0.72rem; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeUp 0.55s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* Nav compact scroll state */
.nav { transition: height var(--transition), box-shadow var(--transition); }
.nav--scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav--scrolled .nav__inner { height: 56px; }

/* Scroll reveal base states */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger children */
.stagger-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.stagger-item.is-visible { opacity: 1; transform: none; }

/* Ripple keyframe */
@keyframes ripple-anim {
  to { transform: scale(1); opacity: 0; }
}

/* Hero canvas */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero { position: relative; }
.hero__inner { position: relative; z-index: 1; }
.lp-hero { position: relative; }
.lp-hero__inner { position: relative; z-index: 1; }

/* Typed cursor */
#typed-text::after {
  content: '|';
  color: var(--teal);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Stat number pulse on count complete */
.stat__number.counted { animation: pulse-once 0.4s ease; }
@keyframes pulse-once {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Enhanced card hover */
.case-card, .card, .price-card, .lp-testimonial, .lp-benefit {
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}
.case-card:hover, .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(26,39,68,0.16);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(26,39,68,0.14);
}
.lp-benefit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26,39,68,0.1);
}

/* Feature icon bounce on card hover */
.feature:hover .feature__icon,
.lp-benefit:hover .lp-benefit__icon {
  transform: scale(1.1) rotate(-3deg);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.feature__icon, .lp-benefit__icon { transition: transform 0.25s ease; }

/* Animated teal underline on headings */
.section-header h2,
.lp-solution__header h2,
.lp-problem h2 {
  position: relative;
  display: inline-block;
}

/* Gradient shimmer on stats bar numbers */
.lp-stat__number {
  background: linear-gradient(90deg, #fff 0%, #b2edf5 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* Button micro lift */
.btn {
  transition: all 0.22s cubic-bezier(0.22,1,0.36,1);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

/* Teal border glow on form focus */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  box-shadow: 0 0 0 3px rgba(0,168,184,0.18);
}

/* Animated hero gradient overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0,168,184,0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
