:root {
  /* Page backgrounds */
  --background: #fdf8f8;       /* warm pinkish-white */
  --foreground: #1a0a0d;       /* near-black with warm tint */
  --card: #ffffff;
  --secondary: #f7eced;        /* warm blush for section alternates */
  --muted: #f2e8e9;            /* slightly deeper warm muted */
  --muted-foreground: #7a5560; /* warm muted text */
  --input: #e8d5d8;

  /* Dark section backgrounds — deep warm charcoal (NOT burgundy) */
  --navy: #1e0f12;             /* very dark warm charcoal */
  --navy-deep: #130709;        /* near-black warm charcoal for deepest sections */
  --navy-foreground: #fdf0f2;  /* warm off-white for dark section text */

  /* Primary accent */
  --teal: #761429;             /* primary brand color */
  --teal-soft: #f3dce0;        /* pale rose for subtle highlights */
  --teal-mid: #a01e38;         /* lighter vibrant variation for hovers */

  /* Structural */
  --hairline: #e8d5d8;
  --hairline-invert: rgba(255, 255, 255, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  text-wrap: balance;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Eyebrow on dark backgrounds — use soft rose so it pops on the charcoal */
.bg-navy .eyebrow,
.bg-navy-deep .eyebrow,
.bg-black .eyebrow {
  color: var(--teal-soft);
}


.bg-background {
  background-color: var(--background) !important;
}

.bg-card {
  background-color: var(--card) !important;
}

.bg-secondary {
  background-color: var(--secondary) !important;
}

.bg-navy {
  background-color: var(--navy) !important;
}

.bg-navy-deep {
  background-color: var(--navy-deep) !important;
}

.bg-teal {
  background-color: var(--teal) !important;
}

.text-foreground {
  color: var(--foreground) !important;
}

.text-muted-foreground {
  color: var(--muted-foreground) !important;
}

.text-navy-foreground {
  color: var(--navy-foreground) !important;
}

.text-teal {
  color: var(--teal) !important;
}

.text-teal-soft {
  color: var(--teal-soft) !important;
}

.border-hairline {
  border-color: var(--hairline) !important;
}

.border-hairline-invert {
  border-color: var(--hairline-invert) !important;
}

.border-teal {
  border-color: var(--teal) !important;
}

.border-input {
  border-color: var(--input) !important;
}

/* ── Gradient utility overrides to match warm-charcoal dark sections ── */

.from-navy-deep {
  --tw-gradient-from: var(--navy-deep) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgba(19, 7, 9, 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.via-navy-deep\/90 {
  --tw-gradient-to: rgba(19, 7, 9, 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), rgba(19, 7, 9, 0.9) var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

.via-navy-deep\/85 {
  --tw-gradient-to: rgba(19, 7, 9, 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), rgba(19, 7, 9, 0.85) var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

.to-navy\/55 {
  --tw-gradient-to: rgba(30, 15, 18, 0.55) var(--tw-gradient-to-position) !important;
}

.to-navy-deep\/40 {
  --tw-gradient-to: rgba(19, 7, 9, 0.4) var(--tw-gradient-to-position) !important;
}

.from-navy {
  --tw-gradient-from: var(--navy) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgba(30, 15, 18, 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.via-navy\/90 {
  --tw-gradient-to: rgba(30, 15, 18, 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), rgba(30, 15, 18, 0.9) var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

.to-navy\/50 {
  --tw-gradient-to: rgba(30, 15, 18, 0.5) var(--tw-gradient-to-position) !important;
}

.rule-teal::before {
  background: var(--teal);
  content: "";
  display: block;
  height: 2px;
  margin-bottom: 1.25rem;
  width: 2.75rem;
}

.hero-image {
  animation: imageLoad 1s ease both;
}

.animate-rise {
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

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

.reveal.delay-1 {
  transition-delay: 0.08s;
}

.reveal.delay-2 {
  transition-delay: 0.16s;
}

.reveal.delay-3 {
  transition-delay: 0.24s;
}

.mobile-menu.is-open {
  max-height: 32rem;
}

.mobile-menu-button.is-open .menu-open {
  display: none;
}

.mobile-menu-button.is-open .menu-close {
  display: block;
}

.check-icon,
.shield-icon,
.grad-icon {
  align-items: center;
  color: var(--teal);
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.check-icon::before {
  content: "✓";
  font-weight: 800;
}

.shield-icon::before {
  content: "◇";
  font-size: 1.5rem;
  line-height: 1;
}

.grad-icon::before {
  content: "◫";
  font-size: 1.35rem;
  line-height: 1;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes imageLoad {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

#main-header.is-scrolled img {
  filter: brightness(0) invert(1);
}

/* ─────────────────────────────────────────────────────────
   LEADER CARDS — Cinematic full-bleed overlay reveal
───────────────────────────────────────────────────────── */

.leader-card {
  cursor: pointer;
  transform: translateZ(0); /* force GPU compositing — eliminates subpixel top-line artifact */
  box-shadow: 0 8px 24px -2px rgba(0,0,0,0.18); /* negative spread removes top shadow */
}

/* Hover: reveal detail overlay */
.leader-card:hover .leader-card__hover {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Hover: hide default name bar */
.leader-card:hover .leader-card__default {
  opacity: 0 !important;
  transform: translateY(1rem) !important;
}

/* Scale photo on hover */
.leader-card:hover .leader-card__photo {
  transform: scale(1.05);
}

.leader-social {
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  position: relative;
  z-index: 30;
  pointer-events: auto;
}

.leader-social:hover {
  color: #ffffff;
}

/* ─────────────────────────────────────────────────────────
   DIFF CARDS — how_we_are_different & data_policies grids
───────────────────────────────────────────────────────── */

.diff-card {
  background: var(--secondary);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 2rem;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}

.diff-card:hover {
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.diff-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.diff-card__badge {
  font-family: 'Sora', sans-serif;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.diff-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  color: var(--teal);
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

.diff-card__title {
  font-family: 'Sora', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.3;
}

.diff-card__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--foreground);
}

/* ─────────────────────────────────────────────────────────
   COMMITMENT CARDS — our_firm.php
───────────────────────────────────────────────────────── */

.commitment-card {
  background: #ffffff;
  border-top: 3px solid var(--hairline);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.commitment-card:hover {
  border-top-color: var(--teal);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.commitment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  color: var(--teal);
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

.commitment-card:hover .commitment-icon {
  background: var(--teal);
  color: #ffffff;
}

.commitment-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  transition: color 0.3s;
}

.commitment-card:hover .commitment-title {
  color: var(--teal);
}

.commitment-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--foreground);
}

/* ─────────────────────────────────────────────────────────
   VALUES CARDS — our_firm.php
───────────────────────────────────────────────────────── */

.values-card {
  border-top: 2px solid var(--hairline);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.3s, background 0.3s;
}

.values-card:hover {
  border-top-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 4%, transparent);
}

.values-card--empty {
  background: color-mix(in srgb, var(--secondary) 60%, transparent);
}

.values-number {
  font-family: 'Sora', sans-serif;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--teal);
}

.values-title {
  font-family: 'Sora', sans-serif;
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.values-text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--foreground);
}

/* ─────────────────────────────────────────────────────────
   WHY PILLS — our_firm.php
───────────────────────────────────────────────────────── */

.why-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--hairline);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.why-pill svg {
  color: var(--teal);
}

.why-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ─────────────────────────────────────────────────────────
   FIRM STAT CARDS — our_firm.php
───────────────────────────────────────────────────────── */

.firm-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--hairline);
  background: var(--secondary);
  border-radius: 8px;
}

.firm-stat-number {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
}

.firm-stat-label {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
}

/* ─────────────────────────────────────────────────────────
   PROFILE BREADCRUMB BAR — dushan, nuwan profile pages
───────────────────────────────────────────────────────── */

.profile-breadcrumb-bar {
  background: #2e0811;
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ─────────────────────────────────────────────────────────
   PROFILE PHOTO FRAME — teal accent border
───────────────────────────────────────────────────────── */

.profile-photo-frame {
  position: relative;
}

.profile-photo-accent {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 2.5rem;
  height: calc(100% + 8px);
  background: var(--teal);
  z-index: 0;
  border-radius: 2px;
}

.profile-photo-frame .relative {
  position: relative;
  z-index: 1;
  margin-left: 1rem;
}

/* ─────────────────────────────────────────────────────────
   PROFILE CONTACT CARD
───────────────────────────────────────────────────────── */

.profile-contact-card {
  background: #2e0811;
  padding: 1.5rem;
  margin-top: 0;
}

.profile-contact-label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-soft);
}

.profile-contact-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.profile-contact-link:hover {
  color: #ffffff;
}

.profile-contact-link svg {
  color: var(--teal-soft);
}

/* ─────────────────────────────────────────────────────────
   PROFILE SECTION — content sections inside profile page
───────────────────────────────────────────────────────── */

.profile-section {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--hairline);
}

.profile-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.profile-section__header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.profile-section__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  color: var(--teal);
  flex-shrink: 0;
}

.profile-section__title {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-deep);
}

/* ─────────────────────────────────────────────────────────
   SKILL PILLS
───────────────────────────────────────────────────────── */

.skill-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 20%, transparent);
  padding: 0.3125rem 0.875rem;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}

.skill-pill:hover {
  background: var(--teal);
  color: #ffffff;
}

/* ─────────────────────────────────────────────────────────
   CREDENTIAL CARDS — qualifications
───────────────────────────────────────────────────────── */

.credential-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: var(--secondary);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  transition: background 0.2s, box-shadow 0.2s;
}

.credential-card:hover {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.credential-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  color: var(--teal);
  flex-shrink: 0;
}

.credential-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.credential-card__subtitle {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

/* ─────────────────────────────────────────────────────────
   SERVICE CARDS — what-we-do sub-pages
───────────────────────────────────────────────────────── */

.service-card {
  background: #ffffff;
  border-top: 3px solid var(--hairline);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border-radius: 0 0 8px 8px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.service-card:hover {
  border-top-color: var(--teal);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  color: var(--teal);
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

.service-card:hover .service-card__icon {
  background: var(--teal);
  color: #ffffff;
}

.service-card__title {
  font-family: 'Sora', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.3;
  transition: color 0.3s;
}

.service-card:hover .service-card__title {
  color: var(--teal);
}

.service-card__text {
  font-size: 0.9rem;
  line-height: 1.7;
  /* color: var(--muted-foreground); */
  color: var(--foreground);
  flex: 1;
}

/* Horizontal layout variant (title | content split) */
.service-card--wide {
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
  border-top-width: 2px;
  border-radius: 0;
  padding: 1.5rem 0;
  box-shadow: none;
  background: transparent;
}

.service-card--wide:hover {
  transform: none;
  box-shadow: none;
  background: color-mix(in srgb, var(--teal) 3%, transparent);
}

.service-card--wide .service-card__label {
  flex: 0 0 auto;
  width: 30%;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-deep);
  transition: color 0.3s;
}

.service-card--wide:hover .service-card__label {
  color: var(--teal);
}

/* ─────────────────────────────────────────────────────────
   BENEFIT ITEMS — what-we-do sub-pages
───────────────────────────────────────────────────────── */

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--foreground);
  font-weight: 500;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.benefit-item:hover {
  background: color-mix(in srgb, var(--teal) 5%, #ffffff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  transform: translateX(3px);
}

.benefit-item__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────
   WWD CTA BOX — dark closing banner on sub-pages
───────────────────────────────────────────────────────── */

.wwd-cta-box {
  background: #2e0811;
  border-radius: 12px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wwd-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
}

.wwd-cta-box__eyebrow {
  font-family: 'Sora', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-soft);
}

.wwd-cta-box__title {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 1rem 0 0.75rem;
  line-height: 1.3;
}

.wwd-cta-box__text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(253, 240, 242, 0.8);
  max-width: 48rem;
  margin: 0 auto 1.75rem;
}

.wwd-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal);
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.wwd-cta-btn:hover {
  background: var(--teal-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(118, 20, 41, 0.35);
}

/* ─────────────────────────────────────────────────────────
   WWD SECTION HEADER — reusable eyebrow+h2+bar pattern
───────────────────────────────────────────────────────── */

.wwd-section-bar {
  margin-top: 1rem;
  height: 3px;
  width: 3.5rem;
  background: var(--teal);
  border-radius: 2px;
}

/* Checklist item used in bullet lists */
.wwd-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  /* color: var(--muted-foreground); */
  color: var(--foreground);
  line-height: 1.6;
}

.wwd-check-item__icon {
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-weight: 800;
}

