/* ============================================
   TAX FILINGS CANADA — COMPLETE DESIGN SYSTEM
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Font Awesome CDN loaded in HTML */

/* ── CSS Variables ─────────────────────────── */
:root {
  --primary: #CC785C; /* Book Cloth - Brand orange/rust */
  --primary-dark: #B06148;
  --primary-light: #FAF2EE;
  --dark-green: #191919; /* Slate Dark */
  --dark-green-hover: #262625; /* Slate Medium */
  --teal: #262625; /* Slate Medium */
  --teal-light: #40403E; /* Slate Light */
  --footer-start: #191919;
  --footer-end: #262625;
  --body-text: #191919; /* Slate Dark */
  --body-text-light: #666663; /* Cloud Dark */
  --white: #FAFAF7; /* Ivory Light */
  --off-white: #F0F0EB; /* Ivory Medium */
  --light-gray: #E5E4DF; /* Ivory Dark */
  --border-gray: #BFBFBA; /* Cloud Light */
  --medium-gray: #91918D; /* Cloud Medium */
  --top-bar: #191919;
  --success: #27AE60;
  --info: #1A6FA8;
  --warning: #F39C12;
  --danger: #E74C3C;
  --whatsapp: #25D366;
  --google-blue: #4285F4;
  --star-gold: #FFC107;

  /* Anthropic Custom Colors */
  --color-slate-dark: #191919;
  --color-slate-med: #262625;
  --color-slate-light: #40403E;
  --color-cloud-dark: #666663;
  --color-cloud-med: #91918D;
  --color-cloud-light: #BFBFBA;
  --color-ivory-dark: #E5E4DF;
  --color-ivory-med: #F0F0EB;
  --color-ivory-light: #FAFAF7;
  --color-bookcloth: #CC785C;
  --color-kraft: #D4A27F;
  --color-manilla: #EBDBBC;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-blog: 'Inter', sans-serif;
  --font-blog-heading: 'Newsreader', Georgia, serif;

  --container: 1300px;
  --container-narrow: 900px;
  --header-height: 80px;
  --top-bar-height: 40px;
  --radius: 16px; /* Enhanced rounded corners to match Anthropic cards */
  --radius-lg: 24px;
  --radius-pill: 50px;
  --shadow-sm: 0 2px 12px rgba(25, 25, 25, 0.04);
  --shadow-md: 0 6px 24px rgba(25, 25, 25, 0.06);
  --shadow-lg: 0 12px 48px rgba(25, 25, 25, 0.08);
  --shadow-xl: 0 20px 80px rgba(25, 25, 25, 0.12);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother premium transitions */
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset & Base ──────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Clip horizontal overflow at the ROOT so the off-canvas mobile nav drawer
     (position:fixed, off-screen right) can't extend the document scroll width.
     body's overflow-x can't clip fixed elements — they're relative to the
     viewport. `clip` (not `hidden`) avoids creating a scroll container, so the
     sticky header keeps working. */
  overflow-x: clip;
}

body {
  font-family: var(--font-primary);
  color: var(--body-text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--dark-green);
  font-weight: 500;
  line-height: 1.25;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; margin-bottom: 1rem; }
h3 { font-size: 1.6rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.3rem; margin-bottom: 0.5rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--body-text-light);
  line-height: 1.8;
}

/* ── Container & Layout ────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

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

.section {
  padding: 45px 0;
}

.section-gray {
  background: var(--light-gray);
}

.section-white {
  background: var(--white);
}

.section-dark {
  background: var(--dark-green);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 25px;
}

.section-header h2 {
  margin-bottom: 0;
}

.section-header p {
  display: none;
}

.section-header .accent-line {
  display: none;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 35px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

@media (max-width: 576px) {
  .btn { white-space: normal; max-width: 100%; }
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}
.btn-primary:hover {
  background: var(--dark-green-hover);
  border-color: var(--dark-green-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: var(--white);
  color: var(--dark-green);
  border: 2px solid var(--dark-green);
}
.btn-outline:hover {
  background: var(--dark-green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid var(--white);
  backdrop-filter: blur(5px);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 22px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 45px;
  font-size: 1.05rem;
}

.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* ── Top Bar ───────────────────────────────── */
.top-bar {
  display: none !important;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 25px;
  align-items: center;
}

.top-bar-left a {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-bar-left a:hover {
  opacity: 0.8;
}

.top-bar-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.top-bar-right a {
  color: var(--white);
  font-size: 0.95rem;
}
.top-bar-right a:hover {
  opacity: 0.7;
}

/* ── Header / Navigation ──────────────────── */
.header {
  background: var(--white);
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-gray);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  /* Positioning context for the mega panels: they centre on the container,
     not on their trigger, so a left-hand item (Services) cannot push the
     panel off the viewport edge. Full height so the panels open flush with
     the bottom of the header rather than 12px up inside it. */
  position: relative;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark-green);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}

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

@media (max-width: 576px) {
  .logo-img { height: 40px; }
}

.logo span {
  color: var(--primary);
}

.logo small {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: -3px;
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav > li {
  position: relative;
}

.main-nav > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 28px 12px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--body-text);
  transition: var(--transition-fast);
}

.main-nav > li > a:hover {
  color: var(--primary);
}

.main-nav > li > a .fa-chevron-down {
  font-size: 0.65rem;
  transition: var(--transition-fast);
}

.main-nav > li:hover > a .fa-chevron-down {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  padding: 10px 0;
  border-top: 3px solid var(--primary);
}

.main-nav > li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 22px;
  font-size: 0.9rem;
  color: var(--body-text);
  transition: var(--transition-fast);
}

.dropdown li a:hover {
  color: var(--primary);
  background: var(--light-gray);
  padding-left: 28px;
}

/* ── Mega Menu ─────────────────────────────────────────────────────────────
   Services / Industries / Locations each hold hundreds of pages, so they open
   as a columned panel with a promo rail and a footer bar instead of a long
   list. Built by megaPanel() in layout.cjs. */
/* The trigger drops its own positioning context so the panel resolves
   against .header .container (see above). Plain dropdowns keep theirs. */
.main-nav > li.has-mega { position: static; }

/* Desktop only: stretch the nav and its items to the full header height so a
   menu opens flush against the bottom of its trigger. Without this the panel
   sits ~19px below the trigger's box, and a pointer crossing that dead strip
   un-hovers the item and closes the menu mid-travel. */
@media (min-width: 769px) {
  .header nav {
    align-self: stretch;
    display: flex;
    align-items: center;
  }

  .main-nav { height: 100%; }

  .main-nav > li {
    height: 100%;
    display: flex;
    align-items: center;
  }
}

.mega-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--white);
  width: max-content;
  max-width: min(1180px, calc(100vw - 48px));
  border-radius: 16px;
  box-shadow: 0 24px 60px -12px rgba(16, 24, 40, 0.22), 0 8px 20px -8px rgba(16, 24, 40, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 100;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-gray);
  border-top: 3px solid var(--primary);
}

.main-nav > li:hover > .mega-menu,
.main-nav > li:focus-within > .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Hover bridge: the 12px gap under the trigger would otherwise close the
   panel as the pointer travels into it. */
.main-nav > li.has-mega > .mega-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.mega-body {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.mega-grid {
  display: grid;
  /* --mega-cols is set per menu by megaPanel() in layout.cjs. */
  grid-template-columns: repeat(var(--mega-cols, 3), minmax(180px, 1fr));
  gap: 22px 30px;
  padding: 26px 30px 24px;
  flex: 1 1 auto;
}

.mega-col-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--dark-green, #1c2b2b);
  margin: 0 0 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border-gray);
}

.mega-col-title i {
  font-size: 0.78rem;
  color: var(--primary);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 122, 87, 0.12);
  border-radius: 7px;
  flex: 0 0 auto;
}

.mega-col-title a { color: inherit; }
.mega-col-title a:hover { color: var(--primary); }

.mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-col ul li { margin: 0; }

.mega-col ul a {
  display: block;
  padding: 6px 10px 6px 9px;
  margin-left: -9px;
  border-radius: 7px;
  font-size: 0.855rem;
  line-height: 1.35;
  color: var(--body-text-light);
  transition: background 0.15s ease, color 0.15s ease;
}

.mega-col ul a:hover {
  color: var(--primary);
  background: var(--light-gray);
}

/* Promo rail */
.mega-promo {
  flex: 0 0 250px;
  padding: 28px 26px;
  background: linear-gradient(160deg, #1f2f2c 0%, #16211f 100%);
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Centred so a tall panel (Services runs two rows of columns) does not
     leave a dead band of empty green under the copy. */
  justify-content: center;
}

.mega-promo-eyebrow {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(214, 122, 87, 0.16);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.mega-promo-title {
  display: block;
  font-weight: 600;
  font-family: var(--font-serif, inherit);
  font-size: 1.08rem;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 9px;
}

.mega-promo p {
  font-size: 0.83rem;
  line-height: 1.55;
  margin: 0 0 18px;
}

.mega-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.mega-promo-btn:hover {
  color: #fff;
  filter: brightness(1.07);
  transform: translateX(2px);
}

.mega-promo-btn i { font-size: 0.72rem; }

/* Footer bar */
.mega-foot {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 13px 30px;
  background: var(--light-gray);
  border-top: 1px solid var(--border-gray);
}

.mega-foot a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--body-text-light);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mega-foot a:hover { color: var(--primary); }

.mega-foot a.strong {
  font-weight: 800;
  color: var(--primary);
  margin-right: auto;
}

.mega-foot a.strong i {
  font-size: 0.7rem;
  transition: transform 0.15s ease;
}

.mega-foot a.strong:hover i { transform: translateX(3px); }

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-phone {
  background: var(--primary);
  color: var(--white);
  padding: 10px 25px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-phone:hover {
  background: var(--dark-green-hover);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 2.5px;
  background: var(--dark-green);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Page Title Banner ─────────────────────── */
.page-banner {
  background: var(--dark-green);
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(251, 119, 13, 0.08);
  border-radius: 50%;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(24, 78, 74, 0.3);
  border-radius: 50%;
}

.page-banner h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: var(--primary);
}
.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb .separator {
  color: rgba(255,255,255,0.4);
}

/* ── Hero Section ──────────────────────────── */
.hero {
  padding: 60px 0 40px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #141413;
}

.hero-content h1 span {
  display: block;
  color: #d97757;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: #15803d; /* Vibrant trust green */
  font-style: italic;
  margin-bottom: 12px;
  font-weight: 600;
}

.hero-tagline {
  font-size: 1.15rem;
  color: #141413;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: 0.3px;
}

.hero-text {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 25px;
  max-width: 520px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* Floating cards on hero image */
.hero-float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  animation: floatCard 3s ease-in-out infinite;
}

.hero-float-card.card-refund {
  top: 10%;
  right: -10px;
  background: var(--primary);
  color: var(--white);
}

.hero-float-card.card-refund .amount {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-float-card.card-refund .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.hero-float-card.card-credentials {
  bottom: 30%;
  left: -20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-float-card .credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--success);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

.hero-float-card.card-expert {
  bottom: 5%;
  right: 5%;
  background: var(--dark-green);
  color: var(--white);
}

.hero-float-card.card-expert .stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.hero-float-card.card-expert .stat-bar {
  width: 80px;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  overflow: hidden;
}

.hero-float-card.card-expert .stat-bar-fill {
  height: 100%;
  border-radius: 3px;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Google Reviews Bar ────────────────────── */
.reviews-bar {
  padding: 30px 0;
  background: var(--off-white);
  border-top: 1px solid var(--border-gray);
  border-bottom: 1px solid var(--border-gray);
}

.reviews-bar .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.reviews-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
}

.reviews-badge .excellent {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.reviews-stars {
  display: flex;
  gap: 2px;
  color: var(--star-gold);
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.reviews-badge .reviews-count {
  font-size: 0.8rem;
  color: var(--body-text-light);
  margin-bottom: 5px;
}

.reviews-badge .google-logo {
  font-size: 1.3rem;
  font-weight: 700;
}
.reviews-badge .google-logo .g-blue { color: #4285F4; }
.reviews-badge .google-logo .g-red { color: #EA4335; }
.reviews-badge .google-logo .g-yellow { color: #FBBC05; }
.reviews-badge .google-logo .g-green { color: #34A853; }

.reviews-marquee-wrapper {
  display: flex;
  overflow: hidden;
  width: 100%;
  gap: 15px;
  flex: 1;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.reviews-marquee-content {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
  animation: marquee-scroll 30s linear infinite;
}

.reviews-marquee-wrapper:hover .reviews-marquee-content {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 15px));
  }
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  padding: 15px;
  width: 245px;
  min-width: 245px;
  flex-shrink: 0;
}

.review-card .review-stars {
  display: flex;
  gap: 2px;
  color: var(--star-gold);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.review-card .review-stars .google-icon {
  margin-left: auto;
  color: var(--google-blue);
  font-size: 1.1rem;
}

.review-card .review-text {
  font-size: 0.85rem;
  color: var(--body-text-light);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card .read-more {
  font-size: 0.8rem;
  color: var(--google-blue);
  font-weight: 500;
}

.review-card .reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-gray);
}

.review-card .reviewer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.review-card .reviewer-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--body-text);
}

/* ── Cards ─────────────────────────────────── */

/* Service Card */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-gray);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-card .card-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 18px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .card-icon {
  background: var(--primary);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.88rem;
  margin-bottom: 15px;
}

.service-card .card-link {
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.service-card .card-link:hover {
  gap: 10px;
}

/* Card Color Variants for Anthropic aesthetics */
.card-manilla {
  background: var(--color-manilla) !important;
  color: var(--color-slate-dark) !important;
  border-color: transparent !important;
}
.card-manilla h1, .card-manilla h2, .card-manilla h3, .card-manilla h4, .card-manilla h5, .card-manilla h6, .card-manilla p, .card-manilla i, .card-manilla span, .card-manilla div {
  color: var(--color-slate-dark) !important;
}
.card-manilla .card-icon {
  background: rgba(25, 25, 25, 0.08) !important;
  color: var(--color-slate-dark) !important;
}
.card-manilla .reviewer-avatar, .card-manilla .author-avatar {
  background: var(--color-slate-dark) !important;
  color: var(--color-manilla) !important;
}

.card-kraft {
  background: var(--color-kraft) !important;
  color: var(--color-slate-dark) !important;
  border-color: transparent !important;
}
.card-kraft h1, .card-kraft h2, .card-kraft h3, .card-kraft h4, .card-kraft h5, .card-kraft h6, .card-kraft p, .card-kraft i, .card-kraft span, .card-kraft div {
  color: var(--color-slate-dark) !important;
}
.card-kraft .card-icon {
  background: rgba(25, 25, 25, 0.08) !important;
  color: var(--color-slate-dark) !important;
}
.card-kraft .reviewer-avatar, .card-kraft .author-avatar {
  background: var(--color-slate-dark) !important;
  color: var(--color-kraft) !important;
}

.card-bookcloth {
  background: var(--color-bookcloth) !important;
  color: var(--color-ivory-light) !important;
  border-color: transparent !important;
}
.card-bookcloth h1, .card-bookcloth h2, .card-bookcloth h3, .card-bookcloth h4, .card-bookcloth h5, .card-bookcloth h6, .card-bookcloth p, .card-bookcloth i, .card-bookcloth span, .card-bookcloth div {
  color: var(--color-ivory-light) !important;
}
.card-bookcloth .card-icon {
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--color-ivory-light) !important;
}
.card-bookcloth .card-link {
  color: var(--color-ivory-light) !important;
}
.card-bookcloth .reviewer-avatar, .card-bookcloth .author-avatar {
  background: var(--color-ivory-light) !important;
  color: var(--color-bookcloth) !important;
}

.card-slate {
  background: var(--color-slate-dark) !important;
  color: var(--color-ivory-light) !important;
  border-color: transparent !important;
}
.card-slate h1, .card-slate h2, .card-slate h3, .card-slate h4, .card-slate h5, .card-slate h6, .card-slate p, .card-slate i, .card-slate span, .card-slate div {
  color: var(--color-ivory-light) !important;
}
.card-slate .card-icon {
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--color-ivory-light) !important;
}
.card-slate .card-link {
  color: var(--color-ivory-light) !important;
}
.card-slate .reviewer-avatar, .card-slate .author-avatar {
  background: var(--color-ivory-light) !important;
  color: var(--color-slate-dark) !important;
}

.card-cloud {
  background: var(--color-cloud-light) !important;
  color: var(--color-slate-dark) !important;
  border-color: transparent !important;
}
.card-cloud h1, .card-cloud h2, .card-cloud h3, .card-cloud h4, .card-cloud h5, .card-cloud h6, .card-cloud p, .card-cloud i, .card-cloud span, .card-cloud div {
  color: var(--color-slate-dark) !important;
}
.card-cloud .card-icon {
  background: rgba(25, 25, 25, 0.08) !important;
  color: var(--color-slate-dark) !important;
}
.card-cloud .reviewer-avatar, .card-cloud .author-avatar {
  background: var(--color-slate-dark) !important;
  color: var(--color-cloud-light) !important;
}

.card-ivory-med {
  background: var(--color-ivory-med) !important;
  color: var(--color-slate-dark) !important;
  border-color: transparent !important;
}
.card-ivory-med h1, .card-ivory-med h2, .card-ivory-med h3, .card-ivory-med h4, .card-ivory-med h5, .card-ivory-med h6, .card-ivory-med p, .card-ivory-med i, .card-ivory-med span, .card-ivory-med div {
  color: var(--color-slate-dark) !important;
}
.card-ivory-med .card-icon {
  background: rgba(25, 25, 25, 0.08) !important;
  color: var(--color-slate-dark) !important;
}
.card-ivory-med .reviewer-avatar, .card-ivory-med .author-avatar {
  background: var(--color-slate-dark) !important;
  color: var(--color-ivory-med) !important;
}

.card-white {
  background: #FFFFFF !important;
  color: var(--color-slate-dark) !important;
  border: 1px solid var(--border-gray) !important;
}
.card-white h1, .card-white h2, .card-white h3, .card-white h4, .card-white h5, .card-white h6, .card-white p, .card-white i, .card-white span, .card-white div {
  color: var(--color-slate-dark) !important;
}
.card-white .card-icon {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
}

/* Icon Card (smaller) */
.icon-card {
  text-align: center;
  padding: 25px 20px;
}

.icon-card .card-icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 15px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
}

.icon-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.icon-card p {
  font-size: 0.85rem;
}

/* Pricing Card */
.pricing-card {
  border-radius: var(--radius);
  padding: 30px 25px;
  color: var(--white);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.orange {
  background: var(--primary);
}

.pricing-card.teal {
  background: var(--teal);
}

.pricing-card h3,
.pricing-card h4 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 5px;
}

.pricing-card .price {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--white);
}

.pricing-card .includes {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 20px;
  flex: 1;
  line-height: 1.6;
  color: var(--white);
}

.pricing-card .btn-outline-white {
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 22px;
  font-size: 0.85rem;
}

/* Pricing Tier Card */
.tier-card {
  background: var(--white);
  border: 2px solid var(--border-gray);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.tier-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.tier-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.tier-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.tier-card .tier-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--dark-green);
}

.tier-card .tier-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.tier-card .tier-price span {
  font-size: 0.85rem;
  color: var(--body-text-light);
  font-weight: 400;
}

.tier-card .tier-features {
  text-align: left;
  margin-bottom: 25px;
}

.tier-card .tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--body-text-light);
  border-bottom: 1px solid var(--light-gray);
}

.tier-card .tier-features li i {
  color: var(--success);
  margin-top: 3px;
}

/* Team Card */
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-gray);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-card .team-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  /* Portraits are framed with headroom, so centring the crop cut faces off at
     the top. Bias the crop upward to keep heads in frame at every width. */
  object-position: 50% 18%;
  background: var(--light-gray);
}

.team-card .team-info {
  padding: 20px;
  text-align: center;
}

.team-card .team-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.team-card .team-role {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 5px;
}

.team-card .team-credentials {
  font-size: 0.8rem;
  color: var(--body-text-light);
}

/* Blog Card */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-gray);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-card .blog-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--light-gray);
}

.blog-card .blog-body {
  padding: 20px;
}

.blog-card .blog-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--body-text-light);
  margin-bottom: 10px;
}

.blog-card .blog-date i {
  color: var(--primary);
}

.blog-card h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-card .blog-excerpt {
  font-size: 0.85rem;
  color: var(--body-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Industry Card */
.industry-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-gray);
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.industry-card .card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--primary);
  transition: var(--transition);
}

.industry-card:hover .card-icon {
  background: var(--primary);
  color: var(--white);
}

.industry-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.industry-card p {
  font-size: 0.85rem;
  margin-bottom: 15px;
}

/* Location Card */
.location-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-gray);
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.location-card .city-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--light-gray);
}

.location-card .city-info {
  padding: 20px;
}

.location-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.location-card .city-address {
  font-size: 0.85rem;
  color: var(--body-text-light);
  margin-bottom: 5px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.location-card .city-address i {
  color: var(--primary);
  margin-top: 3px;
}

.location-card .city-phone {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Stats Counter ─────────────────────────── */
.stats-section {
  background: var(--dark-green);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.stat-item .stat-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

/* ── Process Steps ─────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--border-gray);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step .step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--primary-light);
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
  transition: var(--transition);
}

.process-step:hover .step-number {
  background: var(--primary);
  color: var(--white);
}

.process-step h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.85rem;
}

/* ── Testimonials Section ──────────────────── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.testimonial-card .testimonial-stars {
  display: flex;
  gap: 2px;
  color: var(--star-gold);
  font-size: 1rem;
  margin-bottom: 15px;
}

.testimonial-card .testimonial-text {
  font-size: 0.95rem;
  color: var(--body-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card .testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-card .author-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-card .author-role {
  font-size: 0.8rem;
  color: var(--body-text-light);
}

/* ── CTA Banner ────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--teal) 100%);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(251, 119, 13, 0.1);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-group {
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ── FAQ Accordion ─────────────────────────── */
.faq-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.faq-item {
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  background-color: #ffffff;
  overflow: hidden;
  transition: var(--transition);
  height: max-content;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.01);
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 25px;
  background: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-slate-dark);
  text-align: left;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  line-height: 1.4;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question i {
  transition: var(--transition);
  font-size: 0.8rem;
  color: var(--primary);
  background: var(--primary-light);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  flex-shrink: 0;
}

.faq-item.active {
  border-color: var(--primary);
  background-color: #fff8f2;
  box-shadow: 0 10px 15px -3px rgba(204, 120, 92, 0.08);
}

.faq-item.active .faq-question {
  color: var(--primary);
  background: #fff8f2;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  background: var(--primary);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 25px 22px;
  font-size: 0.88rem;
  color: var(--body-text-light);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

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

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


/* ── Footer ────────────────────────────────── */
.footer {
  background: linear-gradient(45deg, var(--footer-start) 20%, var(--footer-end) 80%);
  padding: 70px 0 0;
  color: rgba(255,255,255,0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 50px;
}

.footer h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

/* ── Partner institutions section (standalone, before the footer) ── */
.partners-strip {
  background: #ffffff;
  padding: 96px 0 92px;
  border-top: 1px solid var(--border-gray);
  text-align: center;
}

.partners-heading {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--dark-green);
  max-width: 820px;
  margin: 0 auto 60px;
  line-height: 1.28;
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 84px;
  flex-wrap: wrap;
  row-gap: 44px;
}

.partners-logos img {
  height: 132px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 991px) {
  .partners-logos { gap: 52px; }
  .partners-logos img { height: 104px; }
}

@media (max-width: 768px) {
  .partners-strip { padding: 64px 0 60px; }
  .partners-heading { font-size: 1.45rem; margin-bottom: 40px; }
  .partners-logos { gap: 30px; row-gap: 26px; }
  .partners-logos img { height: 76px; }
}

.footer .logo {
  color: var(--white);
}

.footer-about p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '›';
  color: var(--primary);
  font-size: 1.1rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.88rem;
}

.footer-contact li i {
  color: var(--primary);
  margin-top: 3px;
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom-links a:hover {
  color: var(--primary);
}

/* Parent-company line under the footer logo. */
.footer-parent {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.62);
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
.footer-parent a {
  color: var(--primary);
  font-weight: 600;
}
.footer-parent a:hover { text-decoration: underline; }

/* Legal disclaimer. Small but must stay readable: 0.62 alpha on the dark
   footer is ~7:1, well clear of AA. */
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0 4px;
}
.footer-disclaimer p {
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.62);
  margin: 0;
  max-width: 108ch;
}
.footer-disclaimer strong { color: rgba(255,255,255,0.82); }

/* The bottom bar is a two-up row that has to stack on small screens. */
@media (max-width: 767px) {
  .footer-bottom .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-bottom-links {
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  /* The floating WhatsApp and back-to-top buttons sit fixed at bottom-right
     and were covering the copyright and attribution line. Clear them. */
  .footer-bottom {
    padding-bottom: 96px;
  }
}

/* ── WhatsApp Widget ───────────────────────── */
.whatsapp-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
}

.whatsapp-btn {
  width: 55px;
  height: 55px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6); }
}

/* ── Back to Top ───────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 998;
  border: none;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--dark-green);
  transform: translateY(-3px);
}

/* ── Contact Form ──────────────────────────── */
.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--dark-green);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(251, 119, 13, 0.1);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* ── Blog Post Styles ──────────────────────── */
.blog-content {
  font-family: var(--font-blog);
}

.blog-content h2 {
  font-family: var(--font-blog-heading);
  font-size: 1.6rem;
  margin-top: 35px;
  margin-bottom: 15px;
  color: var(--dark-green);
}

.blog-content h3 {
  font-family: var(--font-blog-heading);
  font-size: 1.3rem;
  margin-top: 25px;
  margin-bottom: 12px;
}

.blog-content p {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 18px;
}

.blog-content ul, .blog-content ol {
  margin: 15px 0;
  padding-left: 25px;
}

.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }

.blog-content li {
  margin-bottom: 8px;
  line-height: 1.7;
  font-size: 0.95rem;
  color: var(--body-text-light);
}

/* Blog TOC */
.blog-toc {
  background: var(--light-gray);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 25px 30px;
  margin: 25px 0;
}

.blog-toc h4 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.blog-toc ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.blog-toc ul li {
  margin: 0;
}

.blog-toc a {
  color: var(--primary);
  font-size: 0.88rem;
}
.blog-toc a:hover {
  text-decoration: underline;
}

/* Blog Callout Boxes */
.callout {
  border-radius: var(--radius);
  padding: 20px 25px;
  margin: 20px 0;
  border-left: 4px solid;
}

.callout-info {
  background: #e8f4fc;
  border-color: var(--info);
}

.callout-tip {
  background: #e8f8ef;
  border-color: var(--success);
}

.callout-warning {
  background: #fef5e7;
  border-color: var(--warning);
}

.callout-dark {
  background: var(--dark-green);
  border-color: var(--primary);
  color: var(--white);
}
.callout-dark p { color: rgba(255,255,255,0.85); }

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

/* Blog Author Box */
.author-box {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  margin: 30px 0;
}

.author-box .author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-box .author-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--dark-green);
}

.author-box .author-role {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.author-box .author-bio {
  font-size: 0.88rem;
  color: var(--body-text-light);
  margin: 0;
}

/* Blog Sidebar */
.blog-sidebar .widget {
  margin-bottom: 30px;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  padding: 20px;
}

.blog-sidebar .widget h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.blog-sidebar .widget ul {
  padding: 0;
}

.blog-sidebar .widget li {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
}

.blog-sidebar .widget li:last-child {
  border-bottom: none;
}

.blog-sidebar .widget a {
  font-size: 0.88rem;
  color: var(--body-text-light);
}
.blog-sidebar .widget a:hover {
  color: var(--primary);
}

.blog-sidebar .search-input {
  display: flex;
}

.blog-sidebar .search-input input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 0.88rem;
}

.blog-sidebar .search-input button {
  padding: 10px 18px;
  background: var(--primary);
  color: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ── Grids ─────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.grid-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3-1 { display: grid; grid-template-columns: 3fr 1fr; gap: 40px; }

/* ── Utility Classes ───────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.text-dark { color: var(--dark-green); }
.text-light { color: var(--body-text-light); }

.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--body-text-light);
}

.check-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--success);
  margin-top: 3px;
  flex-shrink: 0;
}

/* ── Scroll Animations ─────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Comparison Table ──────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table th {
  background: var(--dark-green);
  color: var(--white);
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
}

.comparison-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-gray);
  font-size: 0.9rem;
  color: var(--body-text-light);
}

.comparison-table tr:nth-child(even) td {
  background: var(--light-gray);
}

.comparison-table .check {
  color: var(--success);
}

.comparison-table .cross {
  color: var(--danger);
}

/* ── Price Match Banner ────────────────────── */
.price-match {
  background: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 30px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
}

.price-match .match-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.price-match h3 {
  margin-bottom: 5px;
}

.price-match p {
  margin: 0;
  font-size: 0.9rem;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .hero .container { grid-template-columns: 1fr; gap: 30px; }
  .hero-image { max-width: 500px; margin: 0 auto; }

  .grid-2-1 { grid-template-columns: 1fr; }
  .grid-1-1 { grid-template-columns: 1fr; }
  .grid-3-1 { grid-template-columns: 1fr; }

  .reviews-bar .container { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .section { padding: 50px 0; }

  .top-bar-left { gap: 15px; }
  .top-bar-right { display: none; }

  /* Mobile nav */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 25px 30px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    overflow-y: auto;
    z-index: 999;
    gap: 0;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav > li > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--light-gray);
    width: 100%;
  }

  .dropdown,
  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    min-width: auto;
    max-width: none;
    width: auto;
    padding: 0 0 0 15px;
    display: none;
    background: var(--light-gray);
    border-radius: 0;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .main-nav > li.open > .dropdown,
  .main-nav > li.open > .mega-menu {
    display: block;
  }

  /* Mega panel collapses to a plain accordion list on mobile: no hover
     bridge, no promo rail, one column, footer links stacked. */
  .main-nav > li.has-mega > .mega-menu::before { display: none; }

  .mega-body { display: block; }

  .mega-grid {
    display: block;
    padding: 4px 0 6px;
  }

  .mega-col { margin-bottom: 14px; }

  .mega-col-title {
    font-size: 0.68rem;
    margin-bottom: 6px;
    padding-bottom: 6px;
  }

  .mega-col ul a {
    padding: 9px 8px;
    margin-left: 0;
    font-size: 0.86rem;
  }

  .mega-promo { display: none; }

  .mega-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 12px 8px 14px;
    background: transparent;
    border-top: 1px solid var(--border-gray);
  }

  .mega-foot a.strong { margin-right: 0; }

  .menu-toggle {
    display: flex;
    /* Primary mobile nav control. The bars stay 24px wide; the button itself
       needs a 44px touch target (was 35x28, awkward to hit). */
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-right: -8px;
  }
  .menu-toggle span { width: 24px; }

  /* The header pill is now "Contact Us" — the label must stay visible on
     phones (hiding it made sense for the long phone number it replaced). */
  .header-cta .header-phone {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .header-cta .header-phone i {
    display: none;
  }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-item .stat-number { font-size: 2rem; }

  .footer-grid { grid-template-columns: 1fr; }

  .page-banner { padding: 70px 0 40px; }
  .page-banner h1 { font-size: 1.8rem; }

  .hero-float-card { display: none; }

  .reviews-carousel { overflow-x: auto; }

  .blog-toc ul { grid-template-columns: 1fr; }

  .price-match {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner h2 { font-size: 1.6rem; }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group .btn {
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  .container { padding: 0 15px; }
  .section { padding: 40px 0; }
  .grid-5 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ── Provincial Accordions (Locations Hub) ── */
.location-prov-item {
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  margin-bottom: 15px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.location-prov-item.active {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.location-prov-question {
  width: 100%;
  padding: 20px 25px;
  background: var(--white);
  border: none;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-green);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
}

.location-prov-question i {
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.location-prov-item.active .location-prov-question i {
  transform: rotate(90deg);
}

.location-prov-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: var(--white);
}

.location-prov-item.active .location-prov-answer {
  max-height: 1000px;
}

.location-prov-answer-inner {
  padding: 20px 25px 30px;
  border-top: 1px solid var(--border-gray);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.location-prov-answer-inner a {
  font-size: 0.95rem;
  color: var(--body-text);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-weight: 500;
  transition: var(--transition-fast);
}

.location-prov-answer-inner a::before {
  content: '📍';
  font-size: 0.85rem;
}

.location-prov-answer-inner a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

/* ── Industry Accordion Styles ── */
.industry-acc-item {
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  margin-bottom: 15px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.industry-acc-item.active {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.industry-acc-question {
  width: 100%;
  padding: 20px 25px;
  background: var(--white);
  border: none;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-green);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
}

.industry-acc-question i {
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.industry-acc-item.active .industry-acc-question i {
  transform: rotate(90deg);
}

.industry-acc-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: var(--white);
}

.industry-acc-item.active .industry-acc-answer {
  max-height: 1000px;
}

.industry-acc-answer-inner {
  padding: 20px 25px 30px;
  border-top: 1px solid var(--border-gray);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.industry-acc-answer-inner a {
  font-size: 0.95rem;
  color: var(--body-text);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-weight: 500;
  transition: var(--transition-fast);
}

.industry-acc-answer-inner a::before {
  content: '•';
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
}

.industry-acc-answer-inner a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

/* ── Service Accordion Styles ── */
.service-acc-item {
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  margin-bottom: 15px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.service-acc-item.active {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.service-acc-question {
  width: 100%;
  padding: 20px 25px;
  background: var(--white);
  border: none;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-green);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
}

.service-acc-question i {
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.service-acc-item.active .service-acc-question i {
  transform: rotate(90deg);
}

.service-acc-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: var(--white);
}

.service-acc-item.active .service-acc-answer {
  max-height: 1200px;
}

.service-acc-answer-inner {
  padding: 20px 25px 30px;
  border-top: 1px solid var(--border-gray);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.service-acc-answer-inner a {
  font-size: 0.95rem;
  color: var(--body-text);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-weight: 500;
  transition: var(--transition-fast);
}

.service-acc-answer-inner a::before {
  content: '•';
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
}

.service-acc-answer-inner a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

/* ── Hero Expert & Badges Stack Custom Styles ── */
.hero-expert-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  z-index: 1;
  position: relative;
}

.hero-badge-stack {
  position: absolute;
  left: 0px;
  bottom: 12%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
  background-color: var(--color-ivory-med);
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border: 1.5px solid var(--color-ivory-dark);
  width: 230px;
  animation: floatCard 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

.hero-badge-item {
  padding: 6px 10px;
  border-radius: 4px;
  color: #ffffff !important;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
  width: 100%;
}

.hero-badge-item i {
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
}

.badge-orange {
  background-color: var(--color-bookcloth) !important;
  color: var(--color-ivory-light) !important;
}

.badge-blue {
  background-color: var(--color-kraft) !important;
  color: var(--color-slate-dark) !important;
}

.badge-blue i {
  color: var(--color-slate-dark) !important;
}

.badge-green {
  background-color: var(--color-manilla) !important;
  color: var(--color-slate-dark) !important;
}

.badge-green i {
  color: var(--color-slate-dark) !important;
}

.badge-dark {
  background-color: var(--color-slate-med) !important;
  color: var(--color-ivory-light) !important;
}

/* Refund Floating Card */
.card-refund-new {
  position: absolute;
  right: -30px;
  top: 15%;
  background-color: var(--color-slate-dark);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 10;
  color: #ffffff;
  min-width: 150px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.card-refund-new .card-header-lbl {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.card-refund-new .card-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0;
  line-height: 1.1;
}

.card-refund-new .card-footer-lbl {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.5;
}

.card-refund-new .card-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 8px;
  height: 42px;
}

.card-refund-new .card-chart .bar {
  flex: 1;
  background-color: var(--color-bookcloth);
  border-radius: 2px 2px 0 0;
  width: 6px;
}

/* Expert Rates Floating Card */
.card-expert-new {
  position: absolute;
  right: -25px;
  bottom: 8%;
  background-color: var(--color-manilla);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 12px 16px;
  border-radius: 8px;
  z-index: 10;
  color: var(--color-slate-dark);
  min-width: 140px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.card-expert-new .card-header-lbl {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: var(--color-slate-dark);
}

.card-expert-new .stat-line {
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 2px;
  color: var(--color-slate-dark);
}

.card-expert-new .stat-line span {
  color: var(--color-bookcloth);
  font-weight: 800;
  margin-right: 5px;
}

/* ── Checkerboard Pricing Grid Styles ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 40px;
}

.pricing-grid .pricing-card {
  border-radius: 4px;
  padding: 25px 20px;
  text-align: left;
  box-shadow: none;
  border: none;
}

.pricing-grid .pricing-card h4 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff !important;
}

.pricing-grid .pricing-card .price {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff !important;
}

.pricing-grid .pricing-card .includes {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.4;
  margin-bottom: 20px;
  min-height: 40px;
  color: rgba(255, 255, 255, 0.9) !important;
}

.pricing-grid .pricing-card .btn {
  margin-top: auto;
  align-self: flex-start;
  border-radius: 4px;
  font-weight: 700;
}

.pricing-grid .pricing-card:hover {
  transform: scale(1.015);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  z-index: 5;
}

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

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

/* ── Recommended Logos Layout ── */
.logo-flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  opacity: 0.75;
  margin-top: 10px;
}

.logo-flex-item {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--body-text);
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.logo-flex-item:hover {
  opacity: 1;
}

.logo-flex-item img {
  height: 30px;
  width: auto;
  max-width: 34px;
  object-fit: contain;
  margin-right: 9px;
  flex-shrink: 0;
}

/* Full wordmark client logos (300x100 sources from the parent brand site) */
.logo-flex-item img.client-wordmark {
  height: 56px;
  max-width: 190px;
  margin-right: 0;
}

@media (max-width: 768px) {
  .logo-flex-item img.client-wordmark { height: 42px; max-width: 150px; }
}

@media (max-width: 991px) {
  .hero-badge-stack {
    display: flex !important;
    left: 8px !important;
    bottom: 8px !important;
    /* Was a hard 175px, which clipped the credential text once it was set at a
       readable size. Cap against the viewport instead of a magic number. */
    width: auto !important;
    max-width: min(62vw, 230px) !important;
    padding: 4px !important;
    gap: 4px !important;
  }
  .hero-badge-item {
    /* These are credential trust signals; 0.58rem rendered them at 9.3px,
       below the readable floor. 0.72rem (~11.5px) keeps the stack compact
       while staying legible. */
    font-size: 0.72rem !important;
    padding: 4px 7px !important;
    gap: 4px !important;
  }
  .hero-badge-item i {
    font-size: 0.78rem !important;
    width: 13px !important;
  }
  .hero-badge-item small {
    font-size: 0.9em !important;
  }
  .card-refund-new {
    display: block !important;
    right: 8px !important;
    top: 8px !important;
    transform: scale(0.75) !important;
    transform-origin: top right !important;
  }
  .card-expert-new {
    display: block !important;
    right: 8px !important;
    bottom: 8px !important;
    transform: scale(0.75) !important;
    transform-origin: bottom right !important;
  }
  .logo-flex-container {
    justify-content: center;
  }
}

/* Choose Us Grid and Cards Styling */
.choose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.choose-card {
  position: relative;
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 20px;
  height: 100%;
}

.choose-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.choose-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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


.choose-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.choose-card-icon {
  font-size: 1.4rem;
  line-height: 1.1;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.choose-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: inherit;
}

.choose-card-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
  color: inherit;
  opacity: 0.9;
}

/* ── Workflow Split Section Custom Styles ── */
.workflow-section {
  padding: 45px 0;
  overflow: hidden;
  background-color: var(--color-ivory-med);
  border-top: 1px solid var(--color-ivory-dark);
  border-bottom: 1px solid var(--color-ivory-dark);
}

.workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--color-slate-dark);
}

.workflow-img-col {
  position: relative;
  width: 100%;
}

.workflow-team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.workflow-content-col {
  padding: 45px 50px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.workflow-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1.3;
  margin-bottom: 30px;
  font-weight: 500;
  color: #ffffff !important;
}

.workflow-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workflow-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.workflow-list li i {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  font-size: 0.68rem;
  padding: 4px;
  border-radius: 50%;
  margin-top: 4px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.workflow-list li strong {
  color: #ffffff;
  font-weight: 700;
}

.workflow-tagline-text {
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
}

@media (max-width: 991px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .workflow-img-col {
    min-height: 380px;
    height: 380px;
  }
  /* The fixed 380px band is for the photo variant. When the column holds
     the quote-form card (~900px tall) it must size to its content, or the
     card overflows the grid row and buries the steps panel below it. */
  .workflow-img-col.workflow-form-col {
    height: auto;
    min-height: 0;
    padding: 34px 0 10px;
  }
  .workflow-content-col {
    padding: 50px 30px;
  }
  .workflow-title {
    font-size: 1.8rem;
  }
}

/* ── Testimonials Split Layout Custom Styles ── */
.testimonials-split-section {
  padding: 0;
  overflow: hidden;
  background-color: var(--white);
}

.testimonials-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  align-items: stretch;
}

/* Left Dark Column */
.testimonials-dark-col {
  background-color: var(--color-slate-dark);
  padding: 80px 70px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.testimonials-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-bookcloth);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.testimonials-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  line-height: 1.25;
  margin-bottom: 25px;
  font-weight: 500;
  color: #ffffff !important;
}

.testimonials-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 35px;
  max-width: 480px;
}

/* Social Boxes Row */
.testimonials-social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.social-box {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 1.1rem;
  transition: transform 0.2s, opacity 0.2s;
}

.social-box:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.social-box.fb { background-color: #3B5998; }
.social-box.li { background-color: #0077B5; }
.social-box.tw { background-color: #191919; border: 1px solid rgba(255,255,255,0.2); }
.social-box.ig { background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%); }
.social-box.yt { background-color: #FF0000; }
.social-box.wa { background-color: #25D366; }
.social-box.gg { background-color: #ffffff; color: #4285F4 !important; border: 1px solid #E5E7EB; }

/* Right Light Column */
.testimonials-light-col {
  padding: 80px 70px;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.software-heading {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-slate-dark);
  margin-bottom: 25px;
  text-align: left;
}

/* Software Logos Grid */
.software-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}

.software-logo-box {
  background-color: #ffffff;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-slate-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.software-logo-box:hover {
  border-color: var(--color-bookcloth);
  box-shadow: var(--shadow-md);
}

.software-logo-box i {
  font-size: 1.15rem;
}

/* Testimonial Slider Box */
.testimonial-slider-container {
  background-color: #ffffff;
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 35px;
  box-shadow: var(--shadow-md);
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-text {
  font-size: 0.96rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--color-slate-med);
  margin: 0;
  text-align: left;
}

.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.testimonial-author-row .author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-row .author-avatar-initial {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-manilla);
  color: var(--color-slate-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.testimonial-author-row .author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-slate-dark);
  line-height: 1.2;
}

.testimonial-author-row .author-role {
  font-size: 0.8rem;
  color: var(--body-text-light);
  margin-top: 2px;
}

/* Slider Controls */
.slider-controls {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  align-self: flex-start;
}

.slider-controls button {
  background-color: #ffffff;
  border: 1px solid var(--border-gray);
  color: var(--color-slate-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.slider-controls button:hover {
  background-color: var(--color-slate-dark);
  color: #ffffff;
  border-color: var(--color-slate-dark);
}

@media (max-width: 991px) {
  .testimonials-split-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-dark-col, .testimonials-light-col {
    padding: 60px 30px;
  }
  .testimonials-title {
    font-size: 1.9rem;
  }
  .software-logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Case Study Card Custom Styles ── */
.case-study-card {
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border-gray);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  word-wrap: break-word;
  overflow-wrap: break-word;
  background-color: var(--white);
}

.case-study-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.case-study-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-bookcloth);
  font-family: var(--font-serif);
}

.case-study-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--color-slate-dark);
}

.case-study-card p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-cloud-dark);
  margin-bottom: 15px;
  flex-grow: 1;
}

.case-study-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 991px) {
  .case-study-card {
    aspect-ratio: auto;
    min-height: 280px;
  }
}

/* Color theme mappings for case study cards */
.case-study-card.card-manilla {
  background-color: var(--color-manilla);
  border-color: rgba(0,0,0,0.05);
}

.case-study-card.card-kraft {
  background-color: var(--color-kraft);
  border-color: rgba(0,0,0,0.05);
}

.case-study-card.card-slate {
  background-color: var(--color-slate-dark);
  border-color: rgba(255,255,255,0.05);
  color: #ffffff;
}

.case-study-card.card-slate h5 {
  color: #ffffff;
}

.case-study-card.card-slate p {
  color: rgba(255,255,255,0.8);
}

.case-study-card.card-cloud {
  background-color: var(--color-ivory-dark);
  border-color: rgba(0,0,0,0.05);
}

/* ── Checkerboard Locations Grid Styles ── */
.location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 40px;
}

.location-grid .location-card {
  border-radius: 4px;
  padding: 35px 25px;
  text-align: left;
  box-shadow: none;
  border: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #ffffff;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.location-grid .location-card.orange {
  background-color: var(--color-bookcloth);
}

.location-grid .location-card.teal {
  background-color: var(--color-slate-med);
}

.location-grid .location-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff !important;
  font-family: var(--font-serif);
}

.location-grid .location-card .prov-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.location-grid .location-card .teaser {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
  margin-bottom: 25px;
  min-height: 45px;
}

.location-grid .location-card .btn {
  margin-top: auto;
  align-self: flex-start;
  border-radius: 4px;
  font-weight: 700;
}

.location-grid .location-card:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-lg);
  z-index: 5;
}

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

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

/* ── Checkerboard Industry Grid Styles ── */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 40px;
}

.industry-grid-card {
  border-radius: 12px;
  padding: 35px 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid rgba(0,0,0,0.04);
}

.industry-grid-card.card-dark {
  background-color: var(--dark-green);
  color: var(--white);
}

.industry-grid-card.card-dark h4 {
  color: var(--white) !important;
}

.industry-grid-card.card-dark .teaser {
  color: rgba(255, 255, 255, 0.85);
}

.industry-grid-card.card-dark .card-icon {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

.industry-grid-card.card-light {
  background-color: #f7f5ef;
  color: var(--dark-green);
}

.industry-grid-card.card-light h4 {
  color: var(--dark-green) !important;
}

.industry-grid-card.card-light .teaser {
  color: var(--body-text);
}

.industry-grid-card.card-light .card-icon {
  background-color: rgba(26, 51, 42, 0.06);
  color: var(--primary);
}

.industry-grid-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.industry-grid-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-serif);
}

.industry-grid-card .teaser {
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 20px;
  min-height: 45px;
}

.industry-grid-card .btn {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 700;
  border-radius: 6px;
}

.industry-grid-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.industry-grid-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

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

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

/* ============================================
   Horizontal & Vertical Marquees (Scrolling)
   ============================================ */

/* Left-to-Right Scrolling Marquee for Logos */
.software-marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 10px 0;
  background-color: var(--color-ivory-light);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  margin-top: 15px;
}

.software-marquee-wrapper {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: scroll-left-to-right 25s linear infinite;
}

.software-marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: #ffffff;
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-slate-dark);
  box-shadow: var(--shadow-sm);
}

.software-marquee-item i {
  font-size: 1.1rem;
}

@keyframes scroll-left-to-right {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.testimonial-card-single {
  background-color: #ffffff;
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 15px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
}

.testimonial-text {
  font-size: 0.82rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--color-slate-med);
  margin: 0;
  text-align: left;
}

.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.author-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-slate-dark);
  line-height: 1.2;
}

.author-role {
  font-size: 0.68rem;
  color: var(--body-text-light);
  margin-top: 1px;
}

/* Vertical Scrolling Testimonial Marquee (Top-to-Bottom) */
.testimonial-marquee-container {
  max-height: 380px;
  overflow: hidden;
  position: relative;
  padding: 5px 0;
  width: 100%;
  border-radius: 12px;
}

.testimonial-marquee-container::before,
.testimonial-marquee-container::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 2;
  pointer-events: none;
}

.testimonial-marquee-container::before {
  top: 0;
  background: linear-gradient(to bottom, var(--color-ivory-light), rgba(250, 250, 247, 0));
}

.testimonial-marquee-container::after {
  bottom: 0;
  background: linear-gradient(to top, var(--color-ivory-light), rgba(250, 250, 247, 0));
}

.testimonial-marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: scroll-top-to-bottom 45s linear infinite;
}

.testimonial-marquee-wrapper:hover {
  animation-play-state: paused;
}

.testimonial-marquee-wrapper-reverse {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: scroll-bottom-to-top 45s linear infinite;
}

.testimonial-marquee-wrapper-reverse:hover {
  animation-play-state: paused;
}

@keyframes scroll-top-to-bottom {
  0% {
    transform: translate3d(0, -50%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes scroll-bottom-to-top {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, -50%, 0);
  }
}

@media (max-width: 768px) {
  .testimonials-two-cols-wrapper {
    flex-direction: column;
  }
  .testimonial-col-2 {
    display: none !important;
  }
}

/* Testimonials Symmetrical Split Section */
.testimonials-symmetrical-section {
  padding: 80px 0;
  background-color: #fcfcf9;
}

.testimonials-symmetrical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* Symmetrical Left Box (Dark Gray Card) */
.testimonials-left-box {
  background-color: #1e1e1f;
  border-radius: 20px;
  padding: 50px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}

.testimonials-left-box .box-header {
  margin-bottom: 30px;
}

.testimonials-left-box .testimonials-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-bookcloth);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.testimonials-left-box .testimonials-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 20px;
}

.testimonials-left-box .testimonials-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

/* Symmetrical Right Box (Light Ivory Card) */
.testimonials-right-box {
  background-color: #f6f6f3;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e5e5e0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.testimonials-right-box .software-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-slate-dark);
  margin-bottom: 20px;
  text-align: left;
}

/* Responsive adjust */
@media (max-width: 991px) {
  .testimonials-symmetrical-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .testimonials-left-box {
    padding: 40px 30px;
    min-height: auto;
  }
  .testimonials-right-box {
    padding: 30px 20px;
    min-height: auto;
  }
  .testimonials-left-box .testimonials-title {
    font-size: 1.8rem;
  }
}

/* Software Logos RTL Marquee */
.software-marquee-container-rtl {
  overflow: hidden;
  width: 100%;
  display: flex;
  position: relative;
}

.software-marquee-wrapper-rtl {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scroll-right-to-left 25s linear infinite;
}

@keyframes scroll-right-to-left {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}








/* ── Mobile fixes: embedded form height and wide tables ────────────────────
   Reported from a phone: the lead form's first field was cut off, and the
   services comparison tables ran past the right edge of the screen. */
@media (max-width: 768px) {
  /* The Zoho embed sets its height inline and resizes by postMessage. A floor
     keeps the stacked mobile form fully visible if that message is late or
     never arrives; min-height still lets the resize grow it further. */
  .prc-sticky-card iframe,
  .hero-form-col iframe {
    min-height: 500px; /* floor for a late/lost Zoho resize message; the
                          old 660px floor left a big blank band when the
                          stacked form is shorter */
  }

  /* Tables are wrapped in .table-scroll at build time (see
     scripts/optimize-images-in-html.cjs) so a wide table scrolls inside its
     own box instead of pushing the page sideways. */
  .table-scroll {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-scroll > table { min-width: 520px; }
}

/* Desktop and tablet: the wrapper must not change how a table that already
   fits is laid out. */
.table-scroll { max-width: 100%; }

/* Team portraits: fixed-height cover crops must keep faces in frame.
   Stylesheet !important beats the inline object-fit styles on the cards. */
.team-card img, .team-photo, .team-info img {
  object-position: 50% 15% !important;
}

/* ── Mobile overflow guards (site-wide) ──────────────────────────────────
   Generated pages carry inline styles that cannot hold media queries, and
   several per-page <style> blocks repeat nowrap patterns. These guards win
   via !important and apply to every generated page. */
@media (max-width: 820px) {
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns: 3fr 2fr"],
  [style*="grid-template-columns: 2fr 3fr"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 640px) {
  .prov-filter-container { flex-wrap: wrap; min-width: 0; }
  .prov-btn { white-space: normal !important; line-height: 1.3 !important; }
  .panel-bullet-item { min-width: 0; }
  .panel-bullet-item span {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
}

/* Real brand logos in the software marquee */
.software-marquee-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: inline-block;
  vertical-align: -4px;
  margin-right: 2px;
}
