/* ==========================================================================
   1. CORE SYSTEM & VARIABLES
   ========================================================================== */
:root {
  --bg-cream: #FBF6F3;
  --bg-white: #FFFFFF;
  --bg-dark: #2A1810;            /* deep espresso — much richer than a washed brown */
  --text-dark: #1F1310;          /* near-black, warm */
  --text-muted: #8B6F63;
  --text-light: #F5E9E3;
  --accent-green: #7A4A3A;       /* sharper, more saturated version of #6e574f */
  --accent-green-hover: #5C3527; /* deep hover state, real contrast on click */
  --accent-gold: #E8A891;        /* brightened, more saturated version of #dfc1b6 */
  --accent-pop: #D9724F;         /* NEW — burnt-terracotta for badges/CTAs that need extra punch */
  --border-light: #F0DDD5;
  --border-dark: #4A2E22;


  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.logo-img {
  height: 24px;
  width: auto;
  object-fit: contain;
}
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.services .container {
  padding-left: 40px;
  padding-right: 40px;
}

.page-intro .container {
  padding-left: 40px;
  padding-right: 40px;
}

.scroll-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gold);
  width: 0%;
  z-index: 101;
  transition: width 0.1s linear;
}

/* ==========================================================================
   2. TYPOGRAPHY & BUTTONS
   ========================================================================== */
.section-tag {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  font-weight: 300;
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--accent-gold);
}

.heading-secondary {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
 background: linear-gradient(135deg, var(--accent-green) 0%, #935B48 100%);
  color: var(--bg-white);
}

.btn-primary:hover {
 background: linear-gradient(135deg, var(--accent-green-hover) 0%, var(--accent-green) 100%);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--accent-green);
  background-color: var(--bg-white);
  transform: translateY(-2px);
}

/* ==========================================================================
   3. NAVIGATION BAR
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 248, 242, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background-color: var(--accent-green);
  color: var(--bg-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--accent-green);
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-top: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--accent-green);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
}

.hero {
  background: linear-gradient(
    135deg,
    var(--bg-cream) 0%,
    var(--bg-white) 26%,
    #FCEAE2 60%,     /* soft blush pull-through, sits between cream and accent-gold */
    var(--bg-cream) 100%
  );
  padding: 80px 0 60px;
}

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

.text-accent {
  color: var(--accent-green);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 50px;
}

.hero-buttons .btn svg {
  flex-shrink: 0;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 24px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent-green);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 6px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.hero-badge-engagement {
  position: absolute;
  top: 28px;
  left: -30px;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  color: var(--text-dark);
  padding: 18px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  max-width: 260px;
  z-index: 2;
  animation: floatY 4.5s ease-in-out infinite;
}

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

.hero-badge-engagement .badge-tag {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-badge-engagement .badge-text {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.badge-progress {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background-color: var(--border-light);
  overflow: hidden;
  margin-bottom: 8px;
}

.badge-progress-fill {
  width: 74%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-gold));
}

.badge-percent {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-green);
}

.hero-badge-trust {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}

.badge-trust-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--bg-cream);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.badge-trust-copy {
  flex: 1;
}

.badge-trust-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.badge-trust-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.badge-trust-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

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

  .stats-bar {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

/* Client Marquee */
.ticker-section {
  padding: 28px 0;
  background-color: var(--bg-white);
  overflow: hidden;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.ticker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ticker-track {
  display: flex;
  gap: 50px;
  white-space: nowrap;
  animation: scroll 50s linear infinite;
  width: max-content;
}

.ticker-item {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.page-intro {
  background: linear-gradient(
        135deg,
    var(--bg-cream) 0%,
    var(--bg-white) 26%,
    #FCEAE2 60%,     /* soft blush pull-through, sits between cream and accent-gold */
    var(--bg-cream) 100%
  );
  padding: 64px 0 0;
}

.page-intro .lead-text {
  margin-bottom: 56px;
}

.page-intro .services-divider {
  margin-bottom: 0;
}

/* ==========================================================================
   5. SERVICES (WHAT WE DO)
   ========================================================================== */
.services {
  padding-top: 90px;
  padding-bottom: 100px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--accent-green);
}

.breadcrumbs .separator {
  color: var(--text-muted);
}

.breadcrumbs .current {
  color: var(--text-dark);
  font-weight: 300;
}

.heading-primary {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.lead-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.8;
  margin-bottom: 120px;
}

.services-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-light);
  margin-bottom: 48px;
}

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

.service-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
  will-change: transform, box-shadow;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-gold);
}

.service-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.icon-box {
  width: 52px;
  height: 52px;
  background-color: var(--border-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .icon-box {
  background-color: var(--accent-green);
  transform: scale(1.05);
}

.service-icon {
  width: 22px;
  height: 22px;
  stroke: var(--accent-green);
  transition: stroke 0.35s ease;
}

.service-card:hover .service-icon {
  stroke: var(--bg-white);
}

.all-practices-tag {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.7;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 28px;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease, gap 0.3s ease;
}

.service-card:hover .service-link {
  color: var(--accent-green);
  gap: 12px;
}

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

/* ==========================================================================
   6. OUR APPROACH
   ========================================================================== */
.approach {
  padding: 100px 0;
 background: linear-gradient(160deg, var(--bg-dark) 0%, #3A2216 100%);
}

.approach-card {
  border-top: 2px solid var(--accent-gold);
  padding-top: 24px;
}

.approach-num {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent-gold);
  font-style: italic;
  margin-bottom: 12px;
}

.approach-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.section-tag-approach {
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-tag-line {
  width: 24px;
  height: 2px;
  background-color: var(--accent-gold);
  display: inline-block;
}

.approach-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--bg-cream);
  line-height: 1.15;
  margin-bottom: 20px;
}

.approach-lead {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 680px;
  margin-bottom: 60px;
  line-height: 1.6;
}

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

.approach-card-dark {
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
}

.approach-card-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.approach-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--bg-cream);
  margin-bottom: 12px;
  font-weight: 600;
}

.approach-card-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ==========================================================================
   7. WHAT CLIENTS SAY (TESTIMONIALS SLIDER)
   ========================================================================== */
.testimonials {
  padding: 100px 0;
  background-color: var(--bg-cream);
}

.testimonials-controls {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.dot {
  width: 32px;
  height: 4px;
  background-color: var(--border-light);
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active {
  background-color: var(--accent-green);
  width: 48px;
}

.testimonial-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 48px;
  border: 1px solid var(--border-light);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.3s ease;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.4;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.quote-mark {
  position: absolute;
  right: 40px;
  bottom: 20px;
  font-family: var(--font-heading);
  font-size: 140px;
  color: var(--border-light);
  line-height: 0;
  user-select: none;
  z-index: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

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

.author-name {
  font-weight: 700;
  font-size: 1rem;
}

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

.back-to-top {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-green);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.testimonials-v2 {
  padding: 100px 0;
  background-color: var(--bg-cream);
}

.testimonials-flex {
  display: flex;
  gap: 64px;
  align-items: center;
  flex-wrap: wrap;
}

.testimonials-left {
  flex: 1 1 380px;
  max-width: 420px;
}

.testimonials-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 20px;
}

.testimonials-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.testimonial-dot-v2 {
  width: 32px;
  height: 4px;
  background-color: var(--border-light);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot-v2.active {
  width: 48px;
  background-color: var(--accent-green);
}

.testimonials-right {
  flex: 1 1 500px;
}

.testimonial-card-v2 {
  background-color: var(--bg-white);
  border: none;
  border-radius: 20px;
  padding: 56px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.testimonial-quote-mark-v2 {
  position: absolute;
  right: 48px;
  top: 20px;
  font-family: var(--font-heading);
  font-size: 100px;
  color: var(--border-light);
  line-height: 0;
  user-select: none;
  pointer-events: none;
}

.testimonial-content-v2 {
  position: relative;
  z-index: 1;
  transition: opacity 0.25s ease;
}

.testimonial-quote-v2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 36px;
  font-weight: 500;
}

.testimonial-author-v2 {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-author-img-v2 {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.testimonial-author-name-v2 {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.testimonial-author-role-v2 {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   8. INSIGHTS SECTION (SHARP THINKING, PLAINLY WRITTEN)
   ========================================================================== */
.insights {
  padding: 100px 0;
}

.insights-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.article-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.article-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-body {
  padding: 28px;
}

.article-meta {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.article-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   9. LET'S TALK / FOOTER
   ========================================================================== */
.cta-section {
  padding: 80px 0;
  background-color: var(--bg-cream);
  border-top: 1px solid var(--border-light);
}

.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.lets-talk {
  padding: 60px 0;
  background-color: var(--bg-cream);
}

.lets-talk-box {
  background-color: var(--accent-green);
  border-radius: 24px;
  padding: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.lets-talk-copy {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.lets-talk-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  color: var(--bg-cream);
  line-height: 1.2;
  margin-bottom: 16px;
}

.lets-talk-lead {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.6;
}

.lets-talk-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.lets-talk-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 16px 28px;
  background-color: var(--accent-gold);
  color: var(--text-dark);
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.lets-talk-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 16px 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--bg-cream);
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 40px;
}

.footer-top {
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 60px;
}

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

.footer-brand p {
  color: var(--text-light);
  margin-top: 16px;
  max-width: 320px;
  font-size: 0.9rem;
}

.logo-badge-gold {
  background-color: var(--accent-gold);
}

.logo-text-light {
  color: var(--bg-white);
}

.logo-sub-light {
  color: var(--text-light);
}

/* In the footer both halves of the wordmark share one colour. */
.footer .logo-title,
.footer .logo-sub {
  color: var(--text-light);
}

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-light);
}

.footer-col ul a {
  color: var(--text-light);
  font-size: inherit;
}

.footer-col ul a:hover {
  color: var(--bg-white);
}

.newsletter-form {
  display: flex;
  margin-top: 16px;
}

.newsletter-form input {
  padding: 10px 14px;
  border-radius: 6px 0 0 6px;
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.05);
  color: var(--bg-white);
  font-size: 0.85rem;
  outline: none;
}

.newsletter-form button {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  border: none;
  padding: 10px 16px;
  border-radius: 0 6px 6px 0;
  font-weight: 700;
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* Copyright line and bottom links share one size and face. */
.footer-bottom p,
.footer-bottom-links a,
.footer-bottom-links span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   10. FLOATING "ASK STANDARD" CHAT & BACK TO TOP
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  right: 24px;
  bottom: 90px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent-green);
  color: var(--bg-white);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: opacity 0.3s ease, transform 0.2s ease;
  opacity: 0;
}

.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-trigger {
  background-color: var(--accent-green);
  color: var(--bg-white);
  padding: 12px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.chat-trigger:hover {
  transform: scale(1.03);
}

.chat-trigger svg {
  flex-shrink: 0;
}

.chat-box {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 360px;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-box.active {
  display: flex;
}

.chat-header {
  background: var(--accent-green);
  color: var(--bg-white);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
}

.chat-header-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-header-status {
  font-size: 0.7rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-header-status::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--accent-pop);
  border-radius: 50%;
}

.chat-close {
  background: none;
  border: none;
  color: var(--bg-white);
  font-size: 1.2rem;
  cursor: pointer;
}

.chat-body {
  padding: 16px;
  height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--bg-cream);
}

.chat-msg {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  max-width: 88%;
  line-height: 1.4;
}

.chat-msg.bot {
  background-color: var(--bg-white);
  color: var(--text-dark);
  align-self: flex-start;
  border: 1px solid var(--border-light);
}

.chat-msg.user {
  background-color: var(--accent-green);
  color: var(--bg-white);
  align-self: flex-end;
}

.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chat-chip {
  background: var(--bg-white);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chat-chip:hover {
  background: var(--accent-green);
  color: var(--bg-white);
}

.chat-input-area {
  display: flex;
  padding: 12px;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.chat-input-area input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.85rem;
  padding: 6px;
}

.chat-input-area button {
  background: var(--accent-green);
  color: var(--bg-white);
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}

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

/* ==========================================================================
   12. SMALL UTILITY OVERRIDES
   ========================================================================== */
.nav-cta-btn {
  padding: 10px 20px;
}

.ticker-tag-flush {
  margin-bottom: 0;
}

.ticker-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.ticker-cta-btn {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.service-title-spaced {
  margin-top: 8px;
}

.insights-heading-flush {
  margin-bottom: 0;
}

.tag-gold {
  color: var(--accent-gold);
}

.newsletter-h4 {
  margin-top: 24px;
  margin-bottom: 8px;
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 900px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
  }

  .brand-logo {
    display: flex;
    align-items: center;
  }

  .logo-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    text-align: center;
    pointer-events: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 101;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 32px;
    background-color: var(--bg-cream);
    border-bottom: 1px solid var(--border-light);
    box-sizing: border-box;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    box-sizing: border-box;
    padding: 18px 4px;
    border-bottom: 1px solid var(--border-light);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: normal;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link::after {
    content: "→";
    color: var(--accent-gold);
    opacity: 0.6;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-left: 12px;
  }

  .nav-link:hover,
  .nav-link:active {
    color: var(--accent-green);
    padding-left: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .footer-brand,
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

.footer-col ul a,
.contact-val,
.footer-brand p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ==========================================================================
   13. SCROLL REVEAL TRANSITIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.56s; }

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

/* ==========================================================================
   CASE STUDIES SECTION & IMAGE CARDS
   ========================================================================== */
.case-studies-section {
  padding: 60px 0 100px;
}

.case-studies-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.case-study-card {
  background-color: var(--bg-white);
  border-radius: 24px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.case-card-media {
  flex: 0 0 42%;
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.case-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-card:hover .case-card-media img {
  transform: scale(1.04);
}

.case-card-body {
  flex: 1;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.case-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.case-category {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent-green);
}

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

.case-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.case-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 400;
  padding: 10px 20px;
  border-radius: 100px;
  margin-bottom: 36px;
}

.metric-icon {
  width: 18px;
  height: 18px;
  stroke: var(--accent-gold);
  stroke-width: 2.2;
}

.case-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease, color 0.3s ease;
}

.case-study-card:hover .case-link {
  gap: 14px;
}

@media (max-width: 900px) {
  .case-study-card {
    flex-direction: column;
  }

  .case-card-media {
    flex: none;
    width: 100%;
    min-height: 240px;
  }

  .case-card-body {
    padding: 32px 24px;
  }

  .case-title {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   ABOUT PAGE SPECIFIC STYLES
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.story-media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 20px;
}

.story-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-top: 24px;
}

.story-text p {
  margin-bottom: 20px;
}

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

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background-color: var(--bg-white);
  padding: 36px 28px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.value-icon-box {
  width: 44px;
  height: 44px;
  background-color: var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.value-icon-box svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-green);
}

.value-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.value-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.pillar-col {
  border-left: 2px solid var(--accent-gold);
  padding-left: 28px;
}

.pillar-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--accent-green);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.pillars-cta {
  text-align: center;
  margin-top: 60px;
}

@media (max-width: 992px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

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

/* ==========================================================================
   INSIGHTS PAGE STYLES
   ========================================================================== */
.insights-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 10px 22px;
  border-radius: 100px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-pill:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.filter-pill.active {
  background-color: var(--accent-green);
  color: var(--bg-white);
  border-color: var(--accent-green);
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 46px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(122, 74, 58, 0.1);
}

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

.insight-card {
  background: var(--bg-white);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.insight-media {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.insight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.insight-card:hover .insight-media img {
  transform: scale(1.04);
}

.insight-content {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.category-tag {
  background-color: var(--border-light);
  color: var(--accent-green);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.read-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.insight-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 14px;
}

.insight-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.insight-title a:hover {
  color: var(--accent-green);
}

.insight-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.insight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-top: auto;
}

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

.read-more-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-green);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.insight-card:hover .read-more-link {
  transform: translateX(3px);
}

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

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

  .insights-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: 100%;
  }
}

/* ==========================================================================
   CAREERS PAGE STYLES
   ========================================================================== */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.why-us-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-card {
  background-color: var(--bg-white);
  padding: 20px 28px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
}

.gold-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.roles-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.roles-count {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.roles-card-container {
  background: var(--bg-white);
  border-radius: 24px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.role-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 36px;
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.25s ease;
}

.role-item:last-child {
  border-bottom: none;
}

.role-item:hover {
  background-color: rgba(0, 0, 0, 0.015);
}

.role-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.role-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.meta-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--text-muted);
}

.role-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.role-apply-btn:hover {
  background-color: var(--accent-green);
  color: var(--bg-white);
  border-color: var(--accent-green);
}

.general-apply-cta {
  text-align: center;
  margin-top: 56px;
}

.general-apply-cta p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

@media (max-width: 992px) {
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .role-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }

  .role-apply-btn {
    width: 100%;
  }

  .benefit-card {
    border-radius: 16px;
  }
}

/* ==========================================================================
   FAQ PAGE STYLES
   ========================================================================== */
.faq-section {
  padding: 40px 0 80px;
}

.faq-lead-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 48px;
}

.faq-accordion-card {
  max-width: 800px;
  margin: 0 auto 48px auto;
  background: var(--bg-white);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

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

.faq-row:last-child {
  border-bottom: none;
}

.faq-trigger {
  width: 100%;
  padding: 28px 36px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-dark);
  gap: 20px;
}

.faq-chevron-icon {
  width: 18px;
  height: 18px;
  stroke: var(--accent-green);
  stroke-width: 2;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-row.active .faq-chevron-icon {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 36px;
}

.faq-row.active .faq-body {
  max-height: 250px;
  padding: 0 36px 30px 36px;
}

.faq-body p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.faq-cta-center {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 60px;
}

.btn-ask-direct {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-green);
  color: var(--bg-white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-ask-direct:hover {
  background-color: var(--accent-green-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */
.contact-section {
  padding: 90px 0 100px;
  background-color: var(--bg-cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.contact-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  line-height: 1.15;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 12px;
  margin-bottom: 40px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-green);
}

.contact-item-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-val {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.contact-val a:hover {
  color: var(--accent-green);
}

.contact-map-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
}

.contact-map-wrapper iframe {
  display: block;
}

/* Form Layout */
.contact-form-card {
  background-color: var(--bg-white);
  border-radius: 24px;
  padding: 48px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 40px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group textarea {
  border-radius: 16px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(122, 74, 58, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 16px 28px;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--accent-green) 0%, #935B48 100%);
  color: var(--bg-white);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.btn-submit:hover {
 background: linear-gradient(135deg, var(--accent-green-hover) 0%, var(--accent-green) 100%);
  transform: translateY(-2px);
}

.form-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 20px;
}

.form-disclaimer a {
  color: var(--text-dark);
  text-decoration: underline;
}

.form-disclaimer a:hover {
  color: var(--accent-green);
}

/* Breakpoints */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .contact-form-card {
    padding: 32px 20px;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==========================================================================
   14. SERVICE DETAIL PAGES (audit-assurance.html, taxation.html, etc.)
   ========================================================================== */
.service-detail-section {
  padding: 90px 0 100px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

.service-main {
  min-width: 0;
}

.service-main > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.service-block {
  margin-bottom: 56px;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
}

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

.feature-card {
  background-color: var(--bg-white);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.feature-num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent-gold);
  font-style: italic;
  margin-bottom: 10px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--bg-white);
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
}

.checklist-item .gold-dot {
  margin-top: 7px;
}

.checklist-item-text strong {
  display: block;
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.checklist-item-text span {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tag-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill {
  padding: 9px 18px;
  border-radius: 100px;
  background-color: var(--border-light);
  color: var(--accent-green);
  font-size: 0.9rem;
  font-weight: 600;
}

.service-sidebar {
  position: sticky;
  top: 104px;
}

.service-sidebar-card {
  background-color: var(--accent-green);
  border-radius: 24px;
  padding: 40px 32px;
  color: var(--bg-cream);
  margin-bottom: 24px;
}

.service-sidebar-tag {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.service-sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 14px;
}

.service-sidebar-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 28px;
}

.service-sidebar-card .btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-white);
  width: 100%;
  border-color: var(--accent-gold);
  justify-content: center;
}

.service-sidebar-card .btn-primary:hover {
  background-color: var(--accent-gold);
}

.service-sidebar-contact {
  background-color: var(--bg-white);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--border-light);
}

.service-sidebar-contact .contact-details-list {
  gap: 18px;
  margin-bottom: 0;
}

.service-sidebar-related {
  margin-top: 24px;
}

.service-sidebar-related-title {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 14px;
}

.service-sidebar-related-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service-sidebar-related-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.service-sidebar-related-list a:last-child {
  border-bottom: none;
}

.service-sidebar-related-list a:hover {
  color: var(--accent-green);
  padding-left: 4px;
}

@media (max-width: 992px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .feature-list-grid,
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   15. SERVICES HUB PAGE (services.html)
   ========================================================================== */
.services-hub-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-hub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background-color: var(--bg-white);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 40px 44px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.service-hub-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-gold);
}

.service-hub-num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent-gold);
  font-style: italic;
  flex-shrink: 0;
  width: 40px;
}

.service-hub-body {
  flex: 1;
}

.service-hub-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.service-hub-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 560px;
}

.service-hub-link {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-hub-link svg {
  stroke: var(--accent-green);
  transition: stroke 0.3s ease;
}

.service-hub-row:hover .service-hub-link {
  background-color: var(--accent-green);
  transform: rotate(45deg);
}

.service-hub-row:hover .service-hub-link svg {
  stroke: var(--bg-white);
}

@media (max-width: 768px) {
  .service-hub-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
  }

  .service-hub-link {
    align-self: flex-end;
  }
}

/* ==========================================================================
   16. PARTNERS PAGE (partners.html)
   ========================================================================== */
.partners-intro-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 50px;
}

.partners-intro-stats {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}

.partners-intro-stat {
  text-align: center;
}

.partners-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}

.partner-row {
  display: flex;
  align-items: stretch;
  gap: 56px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-light);
}

.partner-row:first-child {
  padding-top: 0;
}

.partner-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.partner-row:nth-child(even) {
  flex-direction: row-reverse;
}

.partner-photo {
  flex: 0 0 320px;
}

.partner-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-light);
}

.partner-photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.partner-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.partner-role {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-green);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.partner-role::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background-color: var(--accent-green);
}

.partner-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--bg-dark);
  line-height: 1.25;
  margin-bottom: 18px;
}

.partner-bio-lead {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 62ch;
  margin-bottom: 28px;
}

.partner-about {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 62ch;
  margin-bottom: 24px;
}

.partner-links {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.partner-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg-dark);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.partner-link-btn:hover {
  color: var(--accent-green);
  transform: translateX(3px);
}

.partners-cta-strip {
  margin-top: 60px;
  padding: 32px;
  background-color: rgba(122, 74, 58, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 900px) {
  .partners-intro-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .partner-row,
  .partner-row:nth-child(even) {
    flex-direction: column;
    gap: 24px;
    padding: 40px 0;
  }

  .partner-photo {
    flex: none;
    width: 100%;
    max-width: 360px;
  }

  .partner-photo-frame {
    aspect-ratio: 16 / 10;
  }

  .partner-details {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .partners-intro-stats {
    gap: 28px;
  }

  .partner-name {
    font-size: 1.5rem;
  }

  .partner-row,
  .partner-row:nth-child(even) {
    padding: 32px 0;
  }

  .partners-cta-strip {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .btn,
  .lets-talk-btn-primary,
  .lets-talk-btn-outline {
    padding: 10px 18px;
    font-size: 0.85rem;
    gap: 8px;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
}

/* ==========================================================================
   Mobile Auto-Switching Cards Styling
   ========================================================================== */
.cards-grid,
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

@media (max-width: 600px) {
  .services-grid,
  .insights-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: start !important;
    position: relative;
    width: 100%;
    min-height: 200px;
    margin-top: 16px !important;
  }

  .service-card,
  .article-card {
    grid-area: 1 / 1;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.97);
    filter: blur(3px);
    transition: 
      opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
      transform 0.7s cubic-bezier(0.25, 1, 0.5, 1),
      filter 0.7s cubic-bezier(0.25, 1, 0.5, 1),
      visibility 0.7s ease;
    box-sizing: border-box;
  }

  .service-card.active,
  .article-card.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    filter: blur(0px);
    z-index: 2;
  }

  .service-card.exiting,
  .article-card.exiting {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
    filter: blur(3px);
    z-index: 1;
  }
}
/* ==========================================================================
   13. CHAT WIDGET — OVERFLOW, WRAPPING & RESPONSIVE FIXES
   These rules come last on purpose: they override the base widget styles
   in section 11 without editing them.
   ========================================================================== */

/* The panel must never be wider than the viewport it sits in. */
.chat-box {
  width: min(380px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: min(560px, calc(100vh - 120px));
}

/* chatbot.js toggles .open; section 11 only knew about .active. */
.chat-box.open,
.chat-box.active {
  display: flex;
}

.chat-header {
  flex-shrink: 0;
  gap: 12px;
}

.chat-header-title {
  font-family: var(--font-body);
  letter-spacing: 0.2px;
}

.chat-close {
  flex-shrink: 0;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.chat-close:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.chat-body {
  height: auto;
  flex: 1 1 auto;
  min-height: 240px;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ---- The core fix: no text may escape a bubble. -------------------------
   min-width:0 lets a flex child shrink below its content width; the wrap
   properties break long words, URLs and email addresses instead of
   letting them push the bubble past its max-width.                        */
.chat-msg {
  min-width: 0;
  max-width: 85%;
  width: fit-content;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  hyphens: auto;
  box-sizing: border-box;
}

.chat-msg a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

/* A bubble that carries chips needs room for them to wrap onto new rows. */
.chat-msg:has(.chat-options) {
  max-width: 92%;
}

.chat-options {
  max-width: 100%;
}

.chat-chip {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
  line-height: 1.35;
  font-family: var(--font-body);
}

/* Link-style chips inside bot answers (Read the page / Email us / ...) */
.chat-chip.chat-chip-link {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: var(--bg-white);
  text-decoration: none;
  display: inline-block;
}

.chat-chip.chat-chip-link:hover {
  background: var(--accent-green-hover);
  border-color: var(--accent-green-hover);
  color: var(--bg-white);
}

/* Typing indicator */
.chat-msg.typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
}

.chat-msg.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-muted);
  opacity: 0.45;
  animation: chatTypingBounce 1.2s infinite ease-in-out;
}

.chat-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30%           { transform: translateY(-4px); opacity: 0.9; }
}

.chat-input-area {
  flex-shrink: 0;
  gap: 8px;
  align-items: center;
}

.chat-input-area input {
  min-width: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-cream);
}

.chat-input-area input::placeholder {
  color: var(--text-muted);
}

.chat-input-area button {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 9px 16px;
  transition: background-color 0.2s ease;
}

.chat-input-area button:hover {
  background: var(--accent-green-hover);
}

/* On phones the panel becomes a sheet anchored to the viewport, so a long
   answer can never spill off the side of the screen. */
@media (max-width: 480px) {
  .chat-widget {
    bottom: 16px;
    right: 16px;
    left: 16px;
    align-items: flex-end;
  }

  .chat-box {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 76px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 140px);
  }

  .chat-body {
    max-height: none;
  }

  .chat-msg {
    max-width: 90%;
    font-size: 0.9rem;
  }

  .chat-trigger span {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   14. DOCUMENT-STYLE ARTICLE (case studies / technical papers)
   ========================================================================== */
.doc-body > p,
.doc-block > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 18px;
}

.doc-body > p:last-child,
.doc-block > p:last-child {
  margin-bottom: 0;
}

.doc-block {
  margin-bottom: 52px;
}

.doc-block:last-child {
  margin-bottom: 0;
}

.doc-block-num {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.doc-block-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.doc-sub-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 28px 0 10px;
}

.doc-sub-title:first-child {
  margin-top: 0;
}

/* Lead paragraph that opens a numbered section */
.doc-lead {
  color: var(--text-dark) !important;
  font-size: 1.08rem !important;
  line-height: 1.8 !important;
}

/* --- Lists ------------------------------------------------------------- */
.doc-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: doc-counter;
}

.doc-list:last-child {
  margin-bottom: 0;
}

.doc-list > li {
  position: relative;
  padding-left: 30px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.doc-list > li strong,
.doc-list > li b {
  color: var(--text-dark);
  font-weight: 700;
}

.doc-list > li em {
  color: var(--text-dark);
}

/* Bulleted variant */
.doc-list.bulleted > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-gold);
}

/* Numbered variant */
.doc-list.numbered > li {
  counter-increment: doc-counter;
}

.doc-list.numbered > li::before {
  content: counter(doc-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent-gold);
  line-height: 1.75;
}

/* A nested list (e.g. the financial context in the worked example) */
.doc-list .doc-list {
  margin-top: 12px;
  margin-bottom: 0;
}

/* --- Callout card ------------------------------------------------------- */
.doc-callout {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent-gold);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 24px;
}

.doc-callout-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 10px;
}

.doc-callout p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

/* --- Tables ------------------------------------------------------------- */
.doc-table-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-style: italic;
}

/* The scroll container is the only element allowed to scroll sideways, so
   a wide table never widens the page itself. */
.doc-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background-color: var(--bg-white);
  margin-bottom: 24px;
}

.doc-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.doc-table th,
.doc-table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.6;
}

.doc-table thead th {
  background-color: var(--bg-cream);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-green);
  white-space: normal;
}

.doc-table tbody th {
  font-weight: 700;
  color: var(--text-dark);
  width: 24%;
  background-color: rgba(251, 246, 243, 0.55);
}

.doc-table tbody td {
  color: var(--text-muted);
}

.doc-table tbody td strong {
  color: var(--text-dark);
}

.doc-table tbody tr:last-child th,
.doc-table tbody tr:last-child td {
  border-bottom: none;
}

.doc-table tbody tr:hover th,
.doc-table tbody tr:hover td {
  background-color: rgba(232, 168, 145, 0.07);
}

/* Highlight the column carrying the current/preferred position */
.doc-table .col-current {
  background-color: rgba(232, 168, 145, 0.1);
  color: var(--text-dark);
}

.doc-table tbody tr:hover .col-current {
  background-color: rgba(232, 168, 145, 0.16);
}

/* --- Author signature --------------------------------------------------- */
.doc-signature {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 16px;
}

.doc-signature-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.doc-signature-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.doc-signature-name span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

.doc-signature-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* --- Article meta row (read time / date) -------------------------------- */
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.doc-meta .doc-meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent-gold);
}

@media (max-width: 992px) {
  .doc-block-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .doc-block {
    margin-bottom: 40px;
  }

  .doc-block-title {
    font-size: 1.35rem;
  }

  .doc-body > p,
  .doc-block > p {
    font-size: 0.95rem;
  }

  .doc-table th,
  .doc-table td {
    padding: 13px 16px;
  }

  .doc-signature {
    gap: 14px;
  }
}

/* ==========================================================================
   15. MISC PAGE POLISH
   ========================================================================== */

/* Insights grid on the home page carries two live articles, not three. */
.insights-grid.insights-grid-2up {
  grid-template-columns: repeat(2, 1fr);
}

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

@media (max-width: 600px) {
  .insights-grid.insights-grid-2up {
    grid-template-columns: 1fr;
  }
}

/* Article cards are links now — keep the type from inheriting link colour. */
a.article-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Long case-study titles should wrap, not overflow their card. */
.case-title,
.article-title,
.insight-card-title {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* --- Contact form feedback --------------------------------------------- */
.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  display: none;
  font-family: var(--font-body);
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background-color: rgba(122, 74, 58, 0.07);
  border: 1px solid var(--accent-gold);
  color: var(--text-dark);
}

.form-status.is-error {
  background-color: rgba(217, 114, 79, 0.08);
  border: 1px solid var(--accent-pop);
  color: var(--text-dark);
}

.form-status a {
  color: var(--accent-green);
  font-weight: 600;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.btn-submit[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Form controls should inherit the body font rather than the UA default. */
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea,
.newsletter-form input,
.newsletter-form button {
  font-family: var(--font-body);
  font-size: 0.95rem;
}

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

/* Insights header now carries a CTA next to the heading. */
.insights-header {
  flex-wrap: wrap;
  gap: 20px;
}

.insights-header .btn-outline {
  flex-shrink: 0;
}

/* Long technical-paper titles need a smaller, tighter setting than the
   4rem marketing hero, and a measure that stays readable. */
.heading-primary.heading-doc {
  font-size: clamp(1.75rem, 3.4vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  max-width: 940px;
  margin-bottom: 0;
  text-wrap: balance;
}

@media (max-width: 640px) {
  .heading-primary.heading-doc {
    font-size: clamp(1.5rem, 6vw, 1.9rem);
    line-height: 1.22;
  }
}

/* Case cards now carry full paper titles, so the 2.25rem setting is too
   heavy — step it down and let the body column shrink properly. */
.case-study-card .case-title {
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  line-height: 1.28;
  margin-bottom: 22px;
}

.case-card-body {
  min-width: 0;
}

.case-card-header .case-client {
  overflow-wrap: anywhere;
}

/* Empty state for the insights filter/search. */
.insights-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 560px;
  margin: 24px auto 0;
}

.insights-empty a {
  color: var(--accent-green);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.insights-empty-reset {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent-green);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.insight-card[hidden] {
  display: none !important;
}

.insights-grid[hidden] {
  display: none !important;
}

/* ==========================================================================
   16. GLOBAL FONT NORMALISATION
   Form controls do NOT inherit font-family from the page by default, so
   every button, input, select and textarea without an explicit rule was
   rendering in the browser UI font instead of Plus Jakarta Sans. Element
   selectors sit below every class rule in specificity, so the explicit
   families already declared elsewhere still win.
   ========================================================================== */
button,
input,
select,
textarea,
optgroup {
  font-family: inherit;
  letter-spacing: inherit;
}

/* Headings without a utility class should still be Playfair. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* ...except the footer column headings and the chat header, which the
   design deliberately sets in the body face. */
.footer-col h4,
.footer-brand h4,
.newsletter-h4,
.doc-sub-title,
.chat-header-title {
  font-family: var(--font-body);
}

/* Keep the uppercase footer labels at the weight they have always had. */
.footer-col h4,
.footer-brand h4,
.newsletter-h4 {
  font-weight: 700;
}

/* The body face renders slightly small next to Playfair; nudge the numerals
   and small caps used in tags so baselines line up across a row. */
.section-tag,
.case-category,
.doc-block-num,
.doc-meta,
.article-meta {
  font-variant-numeric: tabular-nums;
}

/* These two never declared a weight and so rendered at the UA default of
   700. The global h1-h6 rule above would silently drop them to 600, so pin
   them where they have always been. */
.heading-secondary,
.article-title {
  font-weight: 700;
}
