/*
Theme Name: Gate Digital
Description: Custom theme for Gate Digital, built from the approved static HTML/CSS design. Content editable via ACF fields in wp-admin.
Author: Gate Digital
Version: 1.0
Text Domain: gate-digital
*/

:root {
  --navy: #2a345e;
  --navy-light: #384577;
  --blue: #3d7ec1;
  --blue-dark: #2f649c;
  --teal: #2db3a3;
  --teal-dark: #22897b;
  --cream: #f5f6f9;
  --bg: #0c1023;
  --surface: #161c3a;
  --surface-2: #212a4d;
  --text: #f4f5f9;
  --text-muted: #b3b9d1;
  --border: rgba(255, 255, 255, 0.1);
  --white: #ffffff;
  --radius: 6px;
  --max-width: 1120px;
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-muted);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 3px;
}

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

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: block;
  text-decoration: none;
  line-height: 0;
}

.logo-img {
  height: 58px;
  width: auto;
  display: block;
}

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

.main-nav > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
}

.main-nav a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav > ul > li > a:not(.nav-cta) {
  position: relative;
  padding: 10px 4px;
  margin: 0 10px;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.main-nav > ul > li > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav > ul > li > a:not(.nav-cta):hover { color: var(--text); background: none; }
.main-nav > ul > li > a:not(.nav-cta):hover::after,
.main-nav > ul > li > a.active::after { transform: scaleX(1); }

.main-nav a.active {
  color: var(--text);
  font-weight: 700;
  background: none;
}

.dropdown a:hover { background: var(--surface-2); }

.main-nav .has-dropdown {
  position: relative;
}

.dropdown {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown li { width: 100%; }
.dropdown a { padding: 10px 12px; }

.nav-cta {
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
  color: var(--white) !important;
  font-weight: 700;
  margin-left: 12px;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(45, 179, 163, 0.25);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.nav-cta:hover { background: linear-gradient(180deg, #38c4b3, var(--teal)); box-shadow: 0 6px 18px rgba(45, 179, 163, 0.4); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text);
}

/* Eight nav items plus the CTA need ~820px; below 1000px the bar collapses to the menu button. */
@media (max-width: 1000px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }

  .main-nav.open { display: block; }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 0 0 12px;
  }

  .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  background-image: var(--grain);
  color: var(--white);
  padding: 112px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -160px;
  width: 560px;
  height: 560px;
  background: var(--navy-light);
  opacity: 0.5;
  border-radius: 999px;
  filter: blur(40px);
  transform: translateY(-50%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -140px;
  right: 200px;
  width: 320px;
  height: 320px;
  background: var(--teal);
  opacity: 0.16;
  border-radius: 999px;
  filter: blur(50px);
}

.hero .wrap { max-width: 900px; position: relative; }

.kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
  max-width: 820px;
}

.hero p.lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: #d6dced;
  margin: 0 0 36px;
  max-width: 680px;
}

.hero-buttons { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.trust-label {
  font-size: 0.85rem;
  color: #b9c1d6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 22px;
  font-size: 0.92rem;
  color: #d6dced;
}

.hero-rating .testimonials-stars { font-size: 1rem; letter-spacing: 1px; }
.hero-rating a { color: var(--white); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.hero-rating a:hover { text-decoration-color: currentColor; }

/* ---------- Proof cards ---------- */

.proof-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 70%);
  border-color: rgba(45, 179, 163, 0.22);
}

.proof-card::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: var(--teal);
  opacity: 0.14;
  filter: blur(50px);
  pointer-events: none;
}

.proof-card > * { position: relative; }

.proof-card .tag {
  margin: 0 0 22px;
  background: rgba(45, 179, 163, 0.12);
  border-color: rgba(45, 179, 163, 0.35);
  color: #8fe3d6;
}

.proof-number {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 14px;
}

.proof-desc {
  color: var(--text-muted);
  margin: 0 0 22px;
}

.page-hero {
  background: var(--navy);
  background-image: var(--grain);
  color: var(--white);
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -140px;
  width: 420px;
  height: 420px;
  background: var(--navy-light);
  opacity: 0.45;
  border-radius: 999px;
  filter: blur(40px);
  transform: translateY(-50%);
}

.page-hero .wrap { position: relative; }

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.page-hero p { color: #d6dced; font-size: 1.15rem; margin: 0; max-width: 640px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(45, 179, 163, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #38c4b3, var(--teal));
  box-shadow: 0 12px 28px rgba(45, 179, 163, 0.42);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 3px;
  transition: border-color 0.18s ease, gap 0.18s ease;
}

.link-arrow svg { width: 16px; height: 16px; transition: transform 0.18s ease; }

.link-arrow:hover {
  border-color: currentColor;
  gap: 12px;
}

.link-arrow:hover svg { transform: translateX(2px); }

.btn-outline-navy {
  background: transparent;
  color: var(--text);
  border-color: var(--teal);
}

.btn-outline-navy:hover { background: var(--teal); color: var(--white); }

/* ---------- Why statement ---------- */

.why-section .kicker { color: var(--teal); }

.why-statement {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 820px;
  margin: 20px 0 0;
}

.pull-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  border-left: 3px solid var(--teal);
  padding: 2px 0 2px 28px;
  margin: 44px 0;
  max-width: 640px;
}

/* wpautop wraps the blockquote text in a <p>, strip its default margin and keep the quote's own type */
.pull-quote p,
.prose .pull-quote p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

/* ---------- Long-form prose (the Overview / About sections) ---------- */

.prose { max-width: 720px; }

.prose h2 { margin-bottom: 22px; }

.prose p {
  font-size: 1.05rem;
  line-height: 1.72;
  color: #c1c7dc;
  margin: 0 0 1.35em;
}

.prose p:last-child { margin-bottom: 0; }

/* Lead paragraph: the first one after the heading (or the first one full stop on About) */
.prose h2 + p,
.prose > p:first-child {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.prose a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: rgba(45, 179, 163, 0.45);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.prose a:hover { color: #38c4b3; text-decoration-color: currentColor; }

/* "Check this yourself" box: a short, practical checklist inside the long-form column */
.teach-box {
  margin: 48px 0 0;
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid rgba(45, 179, 163, 0.3);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.teach-box .kicker { margin-bottom: 10px; }

.teach-box h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--text);
}

.teach-box > p {
  margin: 0 0 20px;
  color: var(--text-muted);
}

.teach-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: teach;
}

.teach-steps li {
  counter-increment: teach;
  position: relative;
  padding: 16px 0 16px 52px;
  border-top: 1px solid var(--border);
  color: #c1c7dc;
  line-height: 1.6;
}

.teach-steps li strong { color: var(--text); display: block; margin-bottom: 2px; }

.teach-steps li::before {
  content: counter(teach);
  position: absolute;
  left: 0;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(45, 179, 163, 0.12);
  border: 1px solid rgba(45, 179, 163, 0.4);
  color: var(--teal);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teach-box .teach-foot {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (max-width: 780px) {
  .teach-box { padding: 24px 22px; }
}

/* Proof card sitting beside the prose on the service pages, sticky while you read */
.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: start;
}

.overview-aside {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 960px) {
  .overview-layout { grid-template-columns: 1fr; gap: 48px; }
  .overview-aside { position: static; order: -1; max-width: 460px; }
}

/* ---------- Sections ---------- */

section { padding: 96px 0; }

@media (max-width: 780px) {
  section { padding: 72px 0; }
  .hero { padding: 72px 0 64px; }
  .page-hero { padding: 64px 0 56px; }
  .cta-band { padding: 72px 0; }
}

.section-alt { background: var(--surface); }

/* The section holding the promise panel drops its top padding, so it reads as part of the section above
   rather than stacking two lots of 132px around a panel. */
.promise-section { padding-top: 0; }

/* Promise panel: a contained navy panel inside a normal section, rather than a full-bleed band.
   Gives the page one navy anchor mid-page without a heavy wall of colour edge to edge. */
.promise-panel {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 55%, #222b52 100%);
  background-image: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 55%, #222b52 100%), var(--grain);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 64px 72px;
  color: #d6dced;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.promise-panel::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: var(--teal);
  opacity: 0.12;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
}

.promise-panel > * { position: relative; }
.promise-panel h2 { color: var(--white); }
.promise-panel .section-intro { color: #d6dced; }

@media (max-width: 780px) {
  .promise-panel { padding: 40px 28px; border-radius: 18px; }
}

/* Promise split: heading and intro on the left, the list on the right */
.promise-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

.promise-split h2 { margin-bottom: 14px; }
.promise-split .section-intro { margin-bottom: 0; }

@media (max-width: 900px) {
  .promise-split { grid-template-columns: 1fr; gap: 36px; }
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--text);
}

.section-intro {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 780px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(45, 179, 163, 0.25);
  border-color: rgba(45, 179, 163, 0.4);
  transform: translateY(-3px);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--text);
}

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

/* Accent card: the one card in a pair that carries the price or the direct contact details */
.card--accent {
  border-color: rgba(45, 179, 163, 0.35);
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 70%);
}

.card--accent strong {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2em;
  color: var(--teal);
  white-space: nowrap;
}

.card--accent a { color: var(--teal); }

/* Stat card: a plain card whose heading is a number, so the number does the talking */
.stat-card h3 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 14px;
}

.icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--teal);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.icon-badge svg { width: 24px; height: 24px; }

.card:hover .icon-badge {
  background: var(--teal);
  color: var(--white);
}

/* ---------- Editorial service list ---------- */

.service-list { border-top: 1px solid var(--border); }

.service-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s ease;
}

.service-row:hover { padding-left: 12px; }

.service-num {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.service-row:hover .service-num { color: var(--teal); }

.service-body h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

.service-body p { margin: 0; color: var(--text-muted); max-width: 460px; }

.link-arrow-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: border-color 0.18s ease, gap 0.18s ease, color 0.18s ease;
}

.link-arrow-navy svg { width: 16px; height: 16px; transition: transform 0.18s ease; }

.link-arrow-navy:hover {
  border-color: var(--teal);
  gap: 12px;
  color: var(--teal);
}

.link-arrow-navy:hover svg { transform: translateX(2px); }

@media (max-width: 680px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0;
  }
  .service-row:hover { padding-left: 0; }
}

/* ---------- Process steps ---------- */

.step-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
}

.step-card {
  background: var(--surface);
  padding: 44px 40px;
  position: relative;
  transition: background-color 0.3s ease;
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.step-card:hover { background: var(--surface-2); }
.step-card:hover::before { transform: scaleX(1); }

.step-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.14);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.step-card:hover .step-num { color: var(--teal); }

.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
}

.step-card p { margin: 0; color: var(--text-muted); }

@media (max-width: 680px) {
  .step-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 1px solid var(--border);
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
}

@media (max-width: 780px) {
  .faq-list { grid-template-columns: 1fr; }
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  padding: 24px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--teal); }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 0 0 24px;
  color: var(--text-muted);
  max-width: 640px;
}

/* ---------- Tags ---------- */

.tag-group {
  margin-bottom: 22px;
}

.tag-group:last-child { margin-bottom: 0; }

.tag-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
}

.tag-groups .tag-group { margin-bottom: 0; }

@media (max-width: 780px) {
  .tag-groups { grid-template-columns: 1fr; }
}

.tag-group h4 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

a.tag { text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease; }
a.tag:hover { border-color: var(--teal); color: var(--teal); }

.tag {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- Status card ---------- */

.status-card {
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 24px 28px;
  background: var(--surface);
}

.status-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--text);
}

.status-card p { color: var(--text-muted); margin: 0; }
.status-card p + p { margin-top: 12px; }

.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-check li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.list-check li:last-child { border-bottom: none; }

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12.5 10 17.5 19 7'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.list-check--large li {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--text);
  padding: 18px 0 18px 40px;
}

.list-check--large li::before {
  top: 21px;
  width: 22px;
  height: 22px;
  background-size: 13px 13px;
}

.promise-panel .list-check li { border-color: rgba(255, 255, 255, 0.14); color: var(--white); }

/* ---------- Result cards ---------- */

.result-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 32px;
}

.result-card + .result-card { margin-top: 28px; }

.result-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.result-meta .tag { margin: 0; }

.result-period {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.result-card h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.result-context {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 24px;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
  padding: 26px 30px;
  background: rgba(12, 16, 35, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 26px;
}

@media (max-width: 780px) {
  .result-stats { grid-template-columns: 1fr; gap: 24px; }
}

.result-stats--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .result-stats--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .result-stats--4 { grid-template-columns: 1fr; }
}

.result-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.result-value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.result-value .before { color: var(--text-muted); font-weight: 600; }
.result-value .arrow { color: var(--text-muted); font-size: 1rem; }
.result-value .after { color: var(--teal); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; }

.result-change {
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(45, 179, 163, 0.12);
  border: 1px solid rgba(45, 179, 163, 0.3);
  font-size: 0.82rem;
  font-weight: 700;
  color: #8fe3d6;
}

.result-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 640px;
  margin: 0 0 24px;
}

.result-changes h4 {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  background-image: var(--grain);
  color: var(--white);
  text-align: center;
  padding: 88px 0;
}

.cta-band h2 { color: var(--white); }

.cta-band p { color: #d6dced; margin: 0 0 28px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  background-image: var(--grain);
  color: #b9c1d6;
  padding: 48px 0 28px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
}

.footer-logo {
  height: 40px;
  width: auto;
  display: block;
  margin: 0 0 16px;
}

.footer-address { margin: 12px 0 0; font-size: 0.9rem; color: #b9c1d6; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; color: #b9c1d6; }
.footer-grid a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-legal {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(185, 193, 214, 0.7);
}

.footer-legal p { margin: 0; }
.footer-legal a { color: rgba(185, 193, 214, 0.85); text-decoration: underline; }
.footer-legal a:hover { color: var(--white); }

/* ---------- Form ---------- */

form .field { margin-bottom: 18px; }

form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--text);
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
}

form input[type="checkbox"],
form input[type="radio"] {
  width: auto !important;
  padding: 0 !important;
  margin: 0 8px 0 0 !important;
  vertical-align: middle;
}

form label.ff-el-form-check-label {
  display: flex;
  align-items: center;
  font-weight: 400;
  margin-bottom: 8px;
}

form input::placeholder,
form textarea::placeholder { color: var(--text-muted); }

form select { color-scheme: dark; }

form input:focus,
form select:focus,
form textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

form textarea { resize: vertical; min-height: 120px; }

.honeypot-field { position: absolute; left: -9999px; top: -9999px; }

/* Fluent Forms submit button: match .btn-primary instead of the plugin's default blue.
   Extra specificity is needed to beat the inline style the plugin prints with the form. */
body form.frm-fluent-form .ff-btn-submit:not(.ff_btn_no_style) {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  color: var(--white);
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
  box-shadow: 0 8px 20px rgba(45, 179, 163, 0.3);
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

body form.frm-fluent-form .ff-btn-submit:not(.ff_btn_no_style):hover {
  background: linear-gradient(180deg, #38c4b3, var(--teal));
  box-shadow: 0 12px 28px rgba(45, 179, 163, 0.42);
  transform: translateY(-2px);
}

.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; }

.form-success {
  display: none;
  background: rgba(45, 179, 163, 0.12);
  border: 1px solid var(--teal);
  color: #8fe3d6;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- WP-specific overrides ---------- */

.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ---------- Legal content (Privacy Policy etc.) ---------- */

.legal-content { max-width: 820px; }
.legal-content .legal-meta { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 32px; }
.legal-content h2 { font-size: 1.5rem; margin: 40px 0 12px; color: var(--white); }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--white); }
.legal-content p { margin: 0 0 16px; }
.legal-content ul { margin: 0 0 16px; padding-left: 20px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--teal); text-decoration: underline; }
.legal-content strong { color: var(--text); }

/* ---------- Testimonials (Google reviews) ---------- */

.testimonials-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: -20px 0 40px;
}

.testimonials-stars {
  color: #f2b230;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonials-rating-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.testimonials-rating-text a {
  color: var(--teal);
  font-weight: 600;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Fixed 3-column grid for a set count of cards (6 on the homepage) so rows stay even, no orphan card. */
.testimonial-grid--fixed {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 980px) {
  .testimonial-grid--fixed { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .testimonial-grid--fixed { grid-template-columns: 1fr; }
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(45, 179, 163, 0.25);
  border-color: rgba(45, 179, 163, 0.4);
  transform: translateY(-3px);
}

.testimonial-card .testimonials-stars {
  margin-bottom: 14px;
}

.testimonial-quote {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1;
}

.testimonial-name {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.92rem;
}

.testimonial-strip .testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 780px) {
  .testimonial-strip .testimonial-grid { grid-template-columns: 1fr; }
}

/* ---------- Blog ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(45, 179, 163, 0.25);
  border-color: rgba(45, 179, 163, 0.4);
  transform: translateY(-3px);
}

.blog-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
}

.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }

.blog-card-image--placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%), var(--grain);
}

.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.blog-meta .tag { padding: 4px 12px; font-size: 0.78rem; }

.blog-meta--hero { color: #d6dced; margin-top: 20px; }

.blog-card-body h3 { margin: 0 0 10px; font-size: 1.15rem; }
.blog-card-body h3 a { text-decoration: none; color: var(--text); }
.blog-card-body h3 a:hover { color: var(--teal); }
.blog-card-body p { margin: 0 0 16px; color: var(--text-muted); flex: 1; }

.blog-empty {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 24px;
}

.blog-empty h2 { color: var(--text); margin-bottom: 12px; }

.blog-pagination { margin-top: 48px; display: flex; justify-content: center; gap: 16px; }
.blog-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.blog-pagination a, .blog-pagination span.page-numbers {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.blog-pagination a:hover { border-color: var(--teal); color: var(--teal); }
.blog-pagination span.current { background: var(--teal); border-color: var(--teal); color: var(--white); }

.post-featured-image { border-radius: 16px; overflow: hidden; }
.post-featured-image img { width: 100%; height: auto; }

.post-content { max-width: 780px; }
.post-content img { border-radius: 12px; margin: 8px 0 24px; }
.post-content blockquote {
  margin: 24px 0;
  padding: 4px 24px;
  border-left: 3px solid var(--teal);
  color: var(--text);
  font-style: italic;
}
.post-content h2 a, .post-content h3 a { color: inherit; }

.author-box {
  max-width: 780px;
  margin-top: 48px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.author-box-name { color: var(--text); font-weight: 700; margin-bottom: 8px; }
.author-box p { margin: 0; }
.author-box a { color: var(--teal); text-decoration: underline; }
