/* Tuatara Consulting - Custom Styles */

:root {
  --color-bg: #0a0a0a;
  --color-bg-card: #141414;
  --color-bg-card-hover: #1a1a1a;
  --color-border: #262626;
  --color-text: #ffffff;
  --color-text-muted: #a3a3a3;
  --color-text-subtle: #737373;
  --color-green: #74992e;
  --color-green-light: #8ab536;
  --color-green-dark: #5a7a22;
  --color-green-bg: rgba(116, 153, 46, 0.1);
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Navigation */
.nav-link {
  position: relative;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-green);
  border-radius: 1px;
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active::after {
  width: 100%;
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
  max-height: 400px;
}

/* Hero gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-green-light), var(--color-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cards */
.card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  background-color: var(--color-bg-card-hover);
  border-color: var(--color-green);
  transform: translateY(-2px);
}

/* Journey step cards */
.journey-step {
  position: relative;
}

.journey-step .step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Journey connector line */
.journey-connector {
  width: 2px;
  background: linear-gradient(to bottom, var(--color-green), var(--color-border));
}

/* Green accent border */
.green-border-left {
  border-left: 3px solid var(--color-green);
  padding-left: 1.5rem;
}

/* Button styles */
.btn-primary {
  background-color: var(--color-green);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--color-green-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--color-green);
  color: var(--color-green-light);
}

/* Stats bar */
.stats-bar {
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
}

/* Partner logos - grayscale to color on hover */
.partner-logo {
  filter: grayscale(100%) brightness(0.7);
  transition: filter 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%) brightness(1);
}

/* Form inputs */
.form-input {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  width: 100%;
  transition: border-color 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-green);
}

.form-input::placeholder {
  color: var(--color-text-subtle);
}

/* Badge / Tag */
.badge {
  display: inline-block;
  background-color: var(--color-green-bg);
  color: var(--color-green-light);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Certification badge */
.cert-badge {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-green);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  text-align: center;
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Pulse glow for CTA */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(116, 153, 46, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 4px rgba(116, 153, 46, 0.2);
  }
}

.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ============================
   American Flag / Veteran Aesthetic
   ============================ */

/* Base flag background mixin - used by all flag variants */
.flag-bg {
  position: relative;
  overflow: hidden;
}

.flag-bg::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url('../images/flag-pattern.svg') no-repeat right top;
  background-size: cover;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.flag-bg > * {
  position: relative;
  z-index: 1;
}

/* Hero sections - flag fades in from right */
.flag-hero {
  position: relative;
  overflow: hidden;
}

.flag-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: url('../images/flag-pattern.svg') no-repeat center top;
  background-size: cover;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.flag-hero > * {
  position: relative;
  z-index: 1;
}

/* Stronger flag for government page hero */
.flag-hero-strong::before {
  opacity: 0.8;
}

/* Footer flag - full width, very subtle, anchored bottom-right */
.flag-footer {
  position: relative;
  overflow: hidden;
}

.flag-footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: url('../images/flag-pattern.svg') no-repeat center bottom;
  background-size: cover;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.flag-footer > * {
  position: relative;
  z-index: 1;
}

/* Section flag - centered, for callout/CTA sections */
.flag-section {
  position: relative;
  overflow: hidden;
}

.flag-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 120%;
  background: url('../images/flag-pattern.svg') no-repeat center center;
  background-size: cover;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.flag-section > * {
  position: relative;
  z-index: 1;
}

/* Stats bar flag - flag behind the green gradient */
.flag-stats {
  position: relative;
  overflow: hidden;
}

.flag-stats::before {
  display: none;
}

.flag-stats > * {
  position: relative;
  z-index: 1;
}

/* Veteran ribbon accent - thin decorative stripe */
.veteran-ribbon {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.03) 0%,
    rgba(255,255,255,0.06) 15%,
    rgba(255,255,255,0.03) 30%,
    rgba(255,255,255,0.06) 45%,
    rgba(255,255,255,0.03) 60%,
    rgba(255,255,255,0.06) 75%,
    rgba(255,255,255,0.03) 90%,
    rgba(255,255,255,0.06) 100%
  );
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Header logo image */
.logo-img {
  height: 32px;
  width: auto;
}

/* Footer logo - slightly larger */
.logo-img-footer {
  height: 36px;
  width: auto;
}

/* Partner logo images in cards */

/* ============================
   Big 3 Consulting-Grade Visual Components
   ============================ */

/* Section category tag with accent line (EY-style) */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green-light);
  margin-bottom: 1.25rem;
}

.section-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--color-green-light);
  flex-shrink: 0;
}

/* Photo-backed hero section */
.hero-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(10, 10, 10, 0.98) 0%,
    rgba(10, 10, 10, 0.95) 38%,
    rgba(10, 10, 10, 0.85) 65%,
    rgba(10, 10, 10, 0.75) 100%
  );
  z-index: 0;
}

.hero-photo > * {
  position: relative;
  z-index: 1;
}

/* Inner page hero with photo (centered overlay) */
.page-hero-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  z-index: 0;
}

.page-hero-photo > * {
  position: relative;
  z-index: 1;
}

/* Image-backed card (service tiles) */
.img-card {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: all 0.35s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.img-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.99) 0%,
    rgba(10, 10, 10, 0.90) 35%,
    rgba(10, 10, 10, 0.75) 65%,
    rgba(10, 10, 10, 0.60) 100%
  );
  z-index: 1;
  transition: background 0.35s ease;
}

.img-card:hover::before {
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.99) 0%,
    rgba(10, 10, 10, 0.94) 40%,
    rgba(10, 10, 10, 0.82) 70%,
    rgba(10, 10, 10, 0.68) 100%
  );
}

.img-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-green);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.img-card > * {
  position: relative;
  z-index: 2;
}

/* Editorial insight card with photo (McKinsey-style) */
.insight-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.insight-card:hover {
  border-color: var(--color-green);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.insight-card-image {
  height: 210px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
}

.insight-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--color-bg-card), transparent);
}

.insight-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Feature split (Accenture-style: half image, half content) */
.feature-split-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 480px;
}

/* Alternate section backgrounds for visual rhythm */
.section-alt {
  background-color: #0d0d0d;
}

.section-deep {
  background-color: #070707;
}

/* Large bold stat number */
.stat-number {
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-green-light), var(--color-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* White stat variant (for use on green bg) */
.stat-number-white {
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
}

/* Service icon box */
.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(116, 153, 46, 0.12);
  border: 1px solid rgba(116, 153, 46, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green-light);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

/* Quote/pullquote callout */
.quote-callout {
  border-left: 3px solid var(--color-green);
  padding: 1.25rem 1.75rem;
  background: rgba(116, 153, 46, 0.06);
  border-radius: 0 8px 8px 0;
}

/* Category pill tag for insight cards */
.insight-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-green-light);
  padding: 0.25rem 0.6rem;
  background: rgba(116, 153, 46, 0.12);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* Arrow link (read more style) */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-green-light);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.arrow-link:hover {
  color: var(--color-text);
  gap: 0.75rem;
}

/* Leadership card (about page) */
.leadership-card {
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  overflow: hidden;
  transition: all 0.3s ease;
}

.leadership-card:hover {
  border-color: rgba(116, 153, 46, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.leadership-card-image {
  height: 280px;
  background-size: cover;
  background-position: center top;
  position: relative;
}

.leadership-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--color-bg-card), transparent);
}

/* Practice area section with photo panel */
.practice-photo-panel {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  min-height: 360px;
}

.practice-photo-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.65) 0%,
    rgba(10, 10, 10, 0.30) 100%
  );
  z-index: 0;
}

.practice-photo-panel > * {
  position: relative;
  z-index: 1;
}

/* Horizontal rule accent */
.rule-green {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-green), transparent);
  margin: 0;
}

/* Numbered process steps */
.process-num {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(116, 153, 46, 0.15);
  font-variant-numeric: tabular-nums;
}

/* Hover lift utility */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

/* Dark image overlay section */
.image-section {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.image-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.82);
  z-index: 0;
}

.image-section > * {
  position: relative;
  z-index: 1;
}

