/*
Theme Name: Baimbroq Theme
Theme URI: https://baimbroq.co.uk
Description: Baimbroq – AI agency theme. Swiss/Functional design. Built and maintained by BeBrand Agency.
Author: BeBrand Agency
Author URI: https://bebrand.hu
Version: 2.0.0
License: All Rights Reserved
Text Domain: baimbroq
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --lime: #CBF148;
  --lime-dark: #8BA800;
  --black: #080808;
  --charcoal: #2E3128;
  --grey-dark: #464646;
  --grey-mid: #848484;
  --grey-light: #C1C1C1;
  --grey-ultralight: #e8e8e0;
  --cream: #FCFCF4;
  --white: #FFFFFF;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  --container: 1200px;
  --font: 'Lato', Arial, Helvetica, sans-serif;
  --gutter: 24px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--black);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
strong { font-weight: 700; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--black);
}
.header-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-4) var(--gutter);
}
.logo {
  grid-column: 1 / span 3;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--black);
  display: inline-flex;
  align-items: center;
}
.logo .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--lime);
  margin: 0 4px 0 2px;
}
.nav {
  grid-column: 5 / span 8;
  display: flex;
  gap: var(--space-8);
  align-items: center;
  justify-content: flex-end;
}
.nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.3px;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav a:hover,
.nav a.current-menu-item { color: var(--lime-dark); }
.nav-cta {
  background: var(--black);
  color: var(--cream) !important;
  padding: 10px 18px !important;
  font-size: 13px;
}
.nav-cta:hover { background: var(--black); color: var(--lime) !important; }

/* Mega menu (Services dropdown) */
.nav-item.has-mega { position: relative; }
/* Invisible bridge between the button and the dropdown — keeps the menu open
   while the cursor crosses the gap. Same height as the gap below. */
.nav-item.has-mega::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 18px;
}
.mega-toggle {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.3px;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.mega-toggle:hover,
.mega-toggle[aria-expanded="true"] { color: var(--lime-dark); }
.mega-toggle svg { transition: transform 0.2s; }
.mega-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.mega-menu {
  position: absolute;
  top: calc(100% + 17px);
  left: -24px;
  background: var(--cream);
  border: 1px solid var(--black);
  padding: var(--space-6);
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  min-width: 540px;
  z-index: 100;
}
.mega-menu.open { display: grid; }
.mega-col-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-dark);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--black);
  margin-bottom: var(--space-3);
}
.mega-item {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--grey-ultralight);
  transition: color 0.2s, padding-left 0.2s;
}
.mega-item:last-child { border-bottom: none; }
.mega-item:hover { color: var(--lime-dark); padding-left: 6px; }

/* Mobile sub-list (Services) */
.mobile-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--grey-ultralight);
  text-align: left;
}
.mobile-sub-toggle svg { transition: transform 0.2s; flex-shrink: 0; }
.mobile-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-sub-list {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-4);
}
.mobile-sub-list.open { display: flex; }
.mobile-sub-list li { list-style: none; }
.mobile-sub-list a {
  font-size: 14px;
  font-weight: 700;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--grey-ultralight);
}
.mobile-sub-list li:last-child a { border-bottom: none; }

.hamburger {
  display: none;
  grid-column: 12 / span 1;
  justify-self: end;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.hamburger svg { width: 22px; height: 22px; color: var(--black); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 65px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--black);
  padding: var(--space-6) var(--gutter);
  z-index: 49;
}
.mobile-nav.active { display: block; }
/* Only the top-level <ul> needs flex stacking — the nested .mobile-sub-list
   manages its own display via the .open class. */
.mobile-nav > ul { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }
.mobile-nav a {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  padding: var(--space-2) 0;
  display: block;
  border-bottom: 1px solid var(--grey-ultralight);
}
.mobile-nav .nav-cta {
  display: inline-block;
  margin-top: var(--space-3);
}

/* ============================================================
   SECTION DEFAULTS
   ============================================================ */
main { display: block; }
section, .section {
  padding: var(--space-24) 0;
  border-bottom: 1px solid var(--black);
}
.section-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-dark);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--black);
  margin-bottom: var(--space-8);
  display: flex;
  justify-content: space-between;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: var(--space-12) 0 var(--space-24); }
.hero-meta {
  grid-column: 1 / span 12;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-dark);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--black);
  margin-bottom: var(--space-12);
}
.hero-title {
  grid-column: 1 / span 9;
  font-size: clamp(48px, 7vw, 108px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -3px;
  margin-bottom: var(--space-12);
}
.hero-title .lime,
.hero-title .accent {
  background: var(--lime);
  padding: 0 var(--space-2);
  display: inline-block;
  line-height: 0.95;
}
.hero-lead {
  grid-column: 1 / span 7;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--grey-dark);
  margin-bottom: var(--space-12);
}
.hero-meta-grid {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  border-top: 1px solid var(--black);
  padding-top: var(--space-6);
}
.hero-meta-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-dark);
  margin-bottom: var(--space-2);
}
.hero-meta-col p {
  font-size: 14px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.5;
}

/* Hero floating logo carousel (sits between hero-meta and audit cards) */
.hero-logos {
  grid-column: 1 / span 12;
  margin: var(--space-6) 0 var(--space-8);
}
.hero-logos-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-dark);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--black);
  margin-bottom: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-3);
  align-items: center;
}
.hero-logos-head > :nth-child(2) { text-align: center; }
.hero-logos-head > :nth-child(3) { text-align: right; }
.hero-logos-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.hero-logo-slot {
  height: 121px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  background: transparent;
  position: relative;
  animation: heroLogoFloat 5s ease-in-out infinite;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  opacity: 0.92;
}
.hero-logo-slot:nth-child(2) { animation-delay: -1.6s; }
.hero-logo-slot:nth-child(3) { animation-delay: -3.3s; }
.hero-logo-slot img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.hero-logo-slot:hover {
  transform: translateY(-3px);
  opacity: 1;
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-slot { animation: none; }
}
@media (max-width: 900px) {
  .hero-logos-track {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }
  .hero-logo-slot {
    height: 82px;
    padding: var(--space-2);
  }
}
@media (max-width: 540px) {
  .hero-logos-track { gap: var(--space-1); }
  .hero-logo-slot {
    height: 64px;
    padding: var(--space-1);
  }
}

/* ============================================================
   AUDIT CARDS (inside hero, above the H1)
   ============================================================ */
.hero-audits {
  grid-column: 1 / span 12;
  margin-bottom: var(--space-12);
}
.hero-audits .audits-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-dark);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--black);
  margin-bottom: var(--space-6);
}
.audit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.audit-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-6) var(--space-6);
  background: var(--black);
  border: 1px solid var(--charcoal);
  border-radius: 14px;
  color: var(--cream);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.audit-card:hover {
  transform: translateY(-3px);
  background: var(--lime);
  border-color: var(--lime);
  color: var(--black);
}
.audit-card h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
  color: var(--black);
  display: inline-block;
  align-self: flex-start;
  padding: 0 0.18em;
  background: var(--lime);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background 0.2s ease;
}
.audit-card:hover h3 { background: transparent; }
.audit-card-duration {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-top: -4px;
  transition: color 0.2s ease;
}
.audit-card:hover .audit-card-duration { color: var(--black); }
.audit-card p {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--grey-light);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-3);
  transition: color 0.2s ease;
}
.audit-card:hover p { color: var(--charcoal); }
.audit-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cream);
  padding-top: var(--space-4);
  border-top: 1px solid var(--charcoal);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.audit-card:hover .audit-card-cta {
  color: var(--black);
  border-top-color: var(--black);
}
.audit-card-cta::after {
  content: '→';
  transition: transform 0.2s ease;
}
.audit-card:hover .audit-card-cta::after { transform: translateX(6px); }

@media (max-width: 900px) {
  .audit-cards { grid-template-columns: 1fr; gap: var(--space-4); }
  .audit-card { padding: var(--space-6) var(--space-4) var(--space-4); }
}

/* ============================================================
   SERVICES SECTION (homepage)
   ============================================================ */
.services-head {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: 1fr 8fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: var(--space-12);
}
.services-num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.services-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
}
.services-title .lime {
  background: var(--lime);
  padding: 0 var(--space-2);
  display: inline-block;
}
.services-intro {
  grid-column: 6 / span 7;
  font-size: 17px;
  font-weight: 300;
  color: var(--grey-dark);
  line-height: 1.65;
  margin-bottom: var(--space-16);
}

.services-list {
  grid-column: 1 / span 12;
  border-top: 1px solid var(--black);
}
.service-row {
  display: grid;
  grid-template-columns: 1fr 4fr 5fr 1fr 1fr;
  gap: var(--gutter);
  align-items: start;
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--black);
  color: inherit;
  transition: background 0.2s;
  position: relative;
}
.service-row:hover { background: var(--white); }
.service-row:hover .service-link::after { transform: translateX(4px); }
.service-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--grey-mid);
  padding-top: var(--space-2);
}
.service-name {
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
  color: var(--black);
}
.service-desc {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--grey-dark);
  line-height: 1.65;
}
.service-time {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-dark);
  padding-top: var(--space-2);
}
.service-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  padding-top: var(--space-2);
  text-align: right;
}
.service-link::after {
  content: ' →';
  display: inline-block;
  transition: transform 0.2s;
}

/* Services head — dark band (mirrors Data section).
   The 9-service list stays light and is rendered separately in .services-list-block. */
.services-head-block {
  background: var(--black);
  color: var(--cream);
  padding: var(--space-24) 0;
  border-bottom: 1px solid var(--black);
}
.services-head-block .services-num { color: var(--lime); }
.services-head-block .services-title { color: var(--cream); }
.services-head-block .services-title .lime { color: var(--black); }
.services-head-block .services-intro { color: var(--grey-light); margin-bottom: 0; }

.services-list-block {
  padding: var(--space-24) 0;
  border-bottom: 1px solid var(--black);
}

/* Service template pages — remove inter-section black dividers,
   and tighten spacing now that there are no visual separators. */
.page-template-template-service-php section,
.page-template-template-service-php .service-hero,
.page-template-template-service-php .service-section {
  border-bottom: none;
}
.page-template-template-service-php .service-hero {
  padding: var(--space-12) 0 var(--space-8);
}
.page-template-template-service-php .service-section {
  padding: var(--space-8) 0;
}
.page-template-template-service-php .process {
  padding: var(--space-8) 0 var(--space-12);
}
.page-template-template-service-php .cta-section {
  padding: var(--space-12) 0;
}

/* ============================================================
   MISSION SECTION
   ============================================================ */
.mission-head {
  grid-column: 1 / span 12;
  border-top: 1px solid var(--black);
  padding-top: var(--space-6);
  margin-bottom: var(--space-12);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-dark);
}
.mission-title {
  grid-column: 1 / span 9;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: var(--space-12);
}
.mission-title strong { font-weight: 900; }
.mission-title .lime {
  background: var(--lime);
  padding: 0 var(--space-2);
  display: inline-block;
}
.mission-body {
  grid-column: 2 / span 7;
}
.mission-body p {
  font-size: 17px;
  font-weight: 300;
  color: var(--grey-dark);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.mission-body p strong { color: var(--black); font-weight: 700; }

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.process .grid-12 { align-items: start; }
.process-head {
  grid-column: 1 / span 4;
  position: sticky;
  top: 100px;
}
.process-num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-4);
}
.process-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: var(--space-4);
}
.process-title .lime {
  background: var(--lime);
  padding: 0 var(--space-2);
}
.process-intro {
  font-size: 15px;
  font-weight: 300;
  color: var(--grey-dark);
  line-height: 1.65;
}
.process-list {
  grid-column: 6 / span 7;
  border-top: 1px solid var(--black);
}
.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--gutter);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--black);
}
.process-step-num {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.5px;
}
.process-step h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.process-step p {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--grey-dark);
  line-height: 1.65;
}

/* ============================================================
   DATA SECTION (numbers)
   ============================================================ */
.data-section {
  background: var(--black);
  color: var(--cream);
  padding: var(--space-24) 0;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}
.data-meta {
  grid-column: 1 / span 12;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lime);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--charcoal);
  margin-bottom: var(--space-8);
  display: flex;
  justify-content: space-between;
}
.data-grid {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}
.data-cell {
  border-right: 1px solid var(--charcoal);
  padding-right: var(--gutter);
}
.data-cell:last-child { border-right: none; }
.data-num {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: var(--space-3);
}
.data-num .unit {
  color: var(--lime);
  font-size: 28px;
  font-weight: 700;
  vertical-align: top;
  margin-left: 4px;
}
.data-label {
  font-size: 13px;
  font-weight: 300;
  color: var(--grey-light);
  line-height: 1.5;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { padding: var(--space-24) 0; }
.cta-head {
  grid-column: 1 / span 12;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--black);
  padding-top: var(--space-4);
  margin-bottom: var(--space-12);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-dark);
}
.cta-title {
  grid-column: 1 / span 8;
  font-size: clamp(48px, 7vw, 108px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: var(--space-8);
}
.cta-title .lime {
  background: var(--lime);
  padding: 0 var(--space-2);
}
.cta-meta {
  grid-column: 1 / span 6;
  font-size: 17px;
  font-weight: 300;
  color: var(--grey-dark);
  margin-bottom: var(--space-8);
}
.cta-buttons {
  grid-column: 1 / span 12;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--black);
  color: var(--cream);
  padding: 18px 28px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  width: fit-content;
  border: 1px solid var(--black);
  transition: background 0.2s, color 0.2s;
}
.cta-btn:hover { background: var(--lime-dark); color: var(--cream); }
.cta-btn-secondary {
  background: transparent;
  color: var(--black);
}
.cta-btn-secondary:hover {
  background: var(--black);
  color: var(--lime);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  color: var(--grey-light);
  padding: var(--space-16) 0 var(--space-6);
}
.footer-meta {
  grid-column: 1 / span 12;
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-8);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lime);
}
.footer-brand-wrap { grid-column: 1 / span 5; }
.footer-brand {
  font-size: 48px;
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -1.5px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.footer-brand .dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--lime);
  margin: 0 6px;
}
.footer-partners {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--charcoal);
}
.footer-partner-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--space-3);
}
.footer-partner-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}
.footer-partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 56px;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
}
.footer-partner-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
.footer-partner-logo:hover { transform: translateY(-2px); opacity: 1; }
.footer-col { grid-column: span 2; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--charcoal);
}
.footer-col a {
  display: block;
  color: var(--grey-light);
  font-size: 13px;
  font-weight: 300;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  grid-column: 1 / span 12;
  border-top: 1px solid var(--charcoal);
  padding-top: var(--space-4);
  margin-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--grey-mid);
}
.footer-bottom a {
  color: var(--grey-light);
  text-decoration: underline;
  text-decoration-color: var(--charcoal);
  text-underline-offset: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.footer-bottom a:hover {
  color: var(--lime);
  text-decoration-color: var(--lime);
}

/* ============================================================
   SERVICE PAGE (template-service.php)
   ============================================================ */
.service-hero {
  padding: var(--space-32) 0 var(--space-24);
  border-bottom: 1px solid var(--black);
}
.service-hero-meta {
  grid-column: 1 / span 12;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-dark);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--black);
  margin-bottom: var(--space-12);
}
.service-hero h1 {
  grid-column: 1 / span 10;
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2.5px;
  margin-bottom: var(--space-8);
}
.service-hero h1 .lime {
  background: var(--lime);
  padding: 0 var(--space-2);
  display: inline-block;
}
.service-hero .service-subtitle {
  grid-column: 1 / span 8;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--grey-dark);
}

.service-section { padding: var(--space-24) 0; border-bottom: 1px solid var(--black); }
.service-block-head {
  grid-column: 1 / span 12;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-dark);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--black);
  margin-bottom: var(--space-8);
}
.service-intro-body {
  grid-column: 2 / span 8;
  font-size: 18px;
  font-weight: 300;
  color: var(--grey-dark);
  line-height: 1.7;
}

.benefits-head {
  grid-column: 1 / span 4;
}
.benefits-head h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.05;
}
.benefits-list {
  grid-column: 6 / span 7;
  border-top: 1px solid var(--black);
}
.benefit-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--gutter);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--black);
  align-items: start;
}
.benefit-row .benefit-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--grey-mid);
  padding-top: var(--space-1);
}
.benefit-row .benefit-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--black);
}

.service-cta-row {
  grid-column: 1 / span 12;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-8);
  margin-top: var(--space-8);
  border-top: 1px solid var(--black);
}
.service-cta-row p {
  font-size: 17px;
  font-weight: 300;
  color: var(--grey-dark);
  max-width: 540px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero {
  padding: var(--space-32) 0 var(--space-16);
  border-bottom: 1px solid var(--black);
}
.contact-hero h1 {
  grid-column: 1 / span 10;
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2.5px;
  margin-bottom: var(--space-6);
}
.contact-hero h1 .lime {
  background: var(--lime);
  padding: 0 var(--space-2);
  display: inline-block;
}
.contact-hero .contact-subtitle {
  grid-column: 1 / span 8;
  font-size: 20px;
  font-weight: 300;
  color: var(--grey-dark);
  line-height: 1.55;
}

.contact-section { padding: var(--space-16) 0 var(--space-24); border-bottom: 1px solid var(--black); }

.contact-info {
  grid-column: 1 / span 4;
}
.contact-info h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-dark);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--black);
  margin-bottom: var(--space-4);
}
.contact-info p { font-size: 15px; line-height: 1.65; color: var(--grey-dark); margin-bottom: var(--space-3); }
.contact-info .contact-email { font-weight: 700; color: var(--black); font-size: 17px; display: block; margin-bottom: var(--space-2); }
.contact-info .contact-callout {
  border-top: 1px solid var(--black);
  padding-top: var(--space-4);
  margin-top: var(--space-6);
}
.contact-info .contact-callout strong { display: block; font-size: 16px; margin-bottom: var(--space-1); color: var(--black); }

.contact-form-wrap { grid-column: 6 / span 7; }

.contact-form { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.contact-form .form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.contact-form label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-dark);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
  border: 1px solid var(--black);
  background: var(--white);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--black);
  border-radius: 0;
  transition: border-color 0.2s, background 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  background: var(--cream);
  border-color: var(--lime-dark);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--gutter); }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 14px;
  border: 1px solid var(--black);
  background: var(--white);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s;
}
.checkbox-item:hover { background: var(--cream); }
.checkbox-item input[type="checkbox"] { accent-color: var(--lime-dark); }

.btn,
.btn-primary,
.contact-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: var(--black);
  color: var(--cream);
  padding: 16px 26px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn:hover,
.btn-primary:hover,
.contact-form button[type="submit"]:hover { background: var(--lime-dark); color: var(--cream); }
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--cream); }

.contact-notice {
  padding: var(--space-4);
  border: 1px solid var(--black);
  background: var(--white);
  font-size: 14px;
}
.contact-notice.error { border-color: #b91c1c; background: #fef2f2; color: #7f1d1d; }

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.thankyou-section {
  padding: var(--space-32) 0 var(--space-24);
  border-bottom: 1px solid var(--black);
}
.thankyou-section h1 {
  grid-column: 1 / span 10;
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2.5px;
  margin-bottom: var(--space-6);
}
.thankyou-section h1 .lime {
  background: var(--lime);
  padding: 0 var(--space-2);
  display: inline-block;
}
.thankyou-section .thankyou-lead {
  grid-column: 1 / span 8;
  font-size: 20px;
  font-weight: 300;
  color: var(--grey-dark);
  line-height: 1.55;
  margin-bottom: var(--space-12);
}

.brief-form-wrap {
  grid-column: 1 / span 12;
  border-top: 1px solid var(--black);
  padding-top: var(--space-8);
}
.brief-form-wrap h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-dark);
  margin-bottom: var(--space-2);
}
.brief-form-wrap > p {
  font-size: 17px;
  font-weight: 300;
  color: var(--grey-dark);
  margin-bottom: var(--space-6);
  max-width: 720px;
}
.brief-section { display: flex; flex-direction: column; gap: var(--space-4); }
.brief-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-dark);
  padding-top: var(--space-4);
  border-top: 1px solid var(--black);
}
.brief-bottom { display: flex; flex-direction: column; gap: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--grey-ultralight); }
.brief-success {
  display: none;
  padding: var(--space-4);
  border: 1px solid var(--black);
  background: var(--lime);
  color: var(--black);
  font-weight: 700;
  margin-top: var(--space-4);
}
.brief-service-block { display: none; flex-direction: column; gap: var(--space-4); }

/* ============================================================
   GENERIC PAGE TEMPLATE (page.php fallback hero)
   ============================================================ */
.page-hero { padding: var(--space-24) 0 var(--space-16); border-bottom: 1px solid var(--black); }
.page-hero h1 {
  grid-column: 1 / span 10;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -2px;
}
.page-content { padding: var(--space-12) 0 var(--space-24); border-bottom: 1px solid var(--black); }
.page-content .container > * { max-width: 740px; }
.page-content p { font-size: 17px; font-weight: 300; color: var(--grey-dark); line-height: 1.7; margin-bottom: var(--space-4); }

/* ============================================================
   BACK TO TOP (kept from previous theme, restyled)
   ============================================================ */
.back-to-top {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--cream);
  border: none;
  cursor: pointer;
  z-index: 40;
  transition: background 0.2s;
}
.back-to-top.visible { display: inline-flex; }
.back-to-top:hover { background: var(--lime-dark); }
.back-to-top svg { width: 20px; height: 20px; }

/* Hide the reCAPTCHA v3 badge — Google allows this provided the attribution
   text is visible elsewhere (we display it under the contact form). */
.grecaptcha-badge { visibility: hidden !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .nav { display: none; }
  .hamburger { display: inline-flex; grid-column: 12 / span 1; }
  .header-inner { grid-template-columns: 1fr auto; padding: var(--space-3) var(--gutter); }
  .logo { grid-column: auto; }
  .hamburger { grid-column: auto; }

  section, .section { padding: var(--space-16) 0; }
  .hero { padding: var(--space-16) 0 var(--space-12); }

  .hero-title { grid-column: 1 / -1; letter-spacing: -1.5px; }
  .hero-lead { grid-column: 1 / -1; font-size: 17px; }
  .hero-meta-grid { grid-template-columns: 1fr 1fr; }

  .services-head { grid-template-columns: 1fr; }
  .services-intro { grid-column: 1 / -1; }
  .service-row {
    grid-template-columns: 32px 1fr auto;
    gap: var(--space-2) var(--space-3);
    padding: var(--space-6) 0;
  }
  .service-desc { grid-column: 1 / -1; }
  .service-time { display: none; }
  .service-link { grid-column: 3 / 4; grid-row: 1; }
  .service-name { grid-column: 2 / 3; grid-row: 1; }

  .mission-title, .mission-body { grid-column: 1 / -1; }
  .mission-title { letter-spacing: -1px; }

  .process-head { position: static; grid-column: 1 / -1; margin-bottom: var(--space-6); }
  .process-list { grid-column: 1 / -1; }

  .data-grid { grid-template-columns: 1fr 1fr; }
  .data-cell { border-right: none; border-bottom: 1px solid var(--charcoal); padding: 0 0 var(--space-4); }
  .data-cell:nth-last-child(-n+2) { border-bottom: none; }
  .data-num { font-size: 44px; letter-spacing: -2px; }

  .cta-title { grid-column: 1 / -1; letter-spacing: -1.5px; }
  .cta-meta { grid-column: 1 / -1; }

  .footer-brand-wrap { grid-column: 1 / -1; margin-bottom: var(--space-8); }
  .footer-brand { font-size: 36px; }
  .footer-col { grid-column: span 6; margin-bottom: var(--space-6); }
  .footer-bottom { flex-direction: column; gap: var(--space-2); }

  .service-hero h1, .contact-hero h1, .thankyou-section h1 { grid-column: 1 / -1; letter-spacing: -1.5px; }
  .service-hero .service-subtitle,
  .contact-hero .contact-subtitle,
  .thankyou-section .thankyou-lead { grid-column: 1 / -1; font-size: 17px; }

  .benefits-head, .benefits-list { grid-column: 1 / -1; }
  .benefits-head { margin-bottom: var(--space-6); }

  .contact-info, .contact-form-wrap { grid-column: 1 / -1; }
  .contact-info { margin-bottom: var(--space-8); padding-bottom: var(--space-6); border-bottom: 1px solid var(--black); }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-meta, .data-meta, .section-meta, .footer-meta, .footer-bottom { flex-direction: column; gap: var(--space-1); }
  .hero-meta-grid { grid-template-columns: 1fr; }
  .footer-col { grid-column: 1 / -1; }
}
