/* Toba Consult - Custom Styles */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ── Skip link ──────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: #243545;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0 0 2px 0;
}
.skip-link:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

body {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  background-color: #faf8f3;
  color: #525a72;
}

/* ── Typography refinement ─────────────────────────────
   Even line lengths on headings, fewer orphans in prose. */
h1, h2, h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

/* ── Focus indicators ───────────────────────────────────
   Navy reads clearly on the light/white sections that make
   up most of the page; inside dark sections (navy hero,
   process, contact, footer) the same navy would vanish
   against its own background, so it swaps to gold there. */
:focus-visible {
  outline: 2px solid #243545;
  outline-offset: 2px;
  border-radius: 2px;
}

.bg-navy :focus-visible,
.bg-navy-dark :focus-visible,
.page-hero :focus-visible,
footer :focus-visible {
  outline-color: #B99B5E;
}

/* ── Hexagon clip shape ─────────────────────────────── */
.hex-clip {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ── Avatar placeholder ─────────────────────────────── */
.avatar-initials {
  background: linear-gradient(135deg, #243545 0%, #3a4d61 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

/* ── Nav active underline ───────────────────────────── */
.nav-link-active {
  color: #243545;
  border-bottom: 2px solid #B99B5E;
}

/* ── Section heading gold bar ───────────────────────── */
.section-heading::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: #B99B5E;
  margin-top: 12px;
}

.section-heading-center::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: #B99B5E;
  margin: 12px auto 0;
}

/* ── Eyebrow label ───────────────────────────────────
   Gold rule + small-caps mono label; the most-repeated
   atomic pattern across every page in the new system. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8A7148;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 34px;
  height: 1px;
  background: #B99B5E;
  flex-shrink: 0;
}
.eyebrow-center {
  justify-content: center;
}
.eyebrow-center::after {
  content: '';
  display: block;
  width: 34px;
  height: 1px;
  background: #B99B5E;
  flex-shrink: 0;
}

/* ── Pull-quote ───────────────────────────────────────
   Italic serif quote with a gold left rule; recurs across
   service/process/DEI/sustainability pages at a few sizes. */
.pull-quote {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  border-left: 2px solid #B99B5E;
  padding-left: 22px;
  color: #243545;
}
.pull-quote--lg { font-size: 34px; line-height: 1.35; }
.pull-quote--md { font-size: 22px; line-height: 1.45; }
.pull-quote--sm { font-size: 21px; line-height: 1.5; }

/* ── Bordered table-grid card technique ──────────────
   Outer border-top+border-left, children add their own
   border-right+border-bottom, avoiding doubled borders.
   Used by the services grid, Four D's teasers, values
   grid, partners grid, and DEI/Sustainability link-cards. */
.table-grid {
  border-top: 1px solid rgba(36, 53, 68, .12);
  border-left: 1px solid rgba(36, 53, 68, .12);
}
.table-grid > * {
  border-right: 1px solid rgba(36, 53, 68, .12);
  border-bottom: 1px solid rgba(36, 53, 68, .12);
}

/* ── Closing CTA band ─────────────────────────────────
   Byte-identical "Ready to get started?" band shared by
   the services overview page and all six service detail
   pages. */
.cta-band {
  background: #243545;
  padding: 92px 40px;
  text-align: center;
}

/* ── Service card hover ─────────────────────────────── */
.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(36, 53, 68, 0.1);
}

/* ── Process step card ──────────────────────────────── */
.process-step {
  transition: transform 0.2s ease;
}
.process-step:hover {
  transform: translateY(-4px);
}

/* ── Team member card ───────────────────────────────── */
.team-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(36, 53, 68, 0.1);
}

/* ── Scroll reveal ─────────────────────────────────────
   Visible by default so content still renders with JS
   disabled/blocked. JS opts elements into the pending
   (hidden) state right before observing them, so there's
   never a window where content depends on JS to appear. */
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
  }
  .reveal.reveal-pending {
    opacity: 1;
    transform: none;
  }
}

/* ── Homepage hero: signature moment ───────────────────
   The one section that gets a bespoke, one-time choreographed
   entrance instead of the generic scroll-triggered .reveal
   used everywhere else — reserved for the moment that earns it. */
.hero-mark {
  position: absolute;
  top: 50%;
  right: -6vw;
  transform: translateY(-50%);
  width: clamp(320px, 38vw, 620px);
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-mark-in {
  from { opacity: 0; transform: translateY(-50%) scale(0.92); }
  to { opacity: 0.9; transform: translateY(-50%) scale(1); }
}

.hero-enter {
  opacity: 0;
  animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 120ms + 150ms);
}
.hero-mark {
  animation: hero-mark-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero-enter, .hero-mark {
    opacity: 1;
    animation: none;
  }
  .hero-mark { opacity: 0.9; }
  .animate-bounce {
    animation: none;
  }
}

/* ── Services: divided list, not a card grid ───────────
   Rejects the identical icon+heading+text card tell; rows
   share a hairline rule and nudge right on hover instead of
   lifting, so the interaction reads as "list", not "card". */
.service-row {
  transition: padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-row:hover,
.service-row:focus-within {
  padding-left: 0.5rem;
}
.service-row-icon {
  transition: background-color 0.2s ease, color 0.2s ease;
}
.service-row:hover .service-row-icon,
.service-row:focus-within .service-row-icon {
  background-color: #B99B5E;
}

/* ── Testimonials: editorial pull-quote, not an icon card ─ */
.testimonial-row {
  border-top: 2px solid #243545;
}
.testimonial-mark {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
  color: #B99B5E;
  display: block;
}

/* ── Reveal variant: images clip-reveal instead of fading ─
   Same accessible .reveal/.reveal-pending/.visible lifecycle
   (see above), so JS and prefers-reduced-motion are already
   handled; this only overrides the visual treatment so a
   photo doesn't fade up identically to the text beside it. */
.reveal-image.reveal-pending {
  opacity: 0;
  transform: none;
  clip-path: inset(0 0 12% 0);
}
.reveal-image.visible {
  clip-path: inset(0 0 0% 0);
}
.reveal-image {
  transition: opacity 0.7s ease, clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-image.reveal-pending {
    clip-path: inset(0);
  }
}

/* ── Navy button ───────────────────────────────────────
   Primary CTA everywhere. Gold is never a filled button
   background under the new system (client revision — navy
   emphasis, "no glow" on gold); a former .btn-gold class
   was removed, swap any lingering references to this or
   .btn-outline instead. */
.btn-navy {
  background-color: #243545;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 2px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-navy:hover {
  background-color: #141D24;
  transform: translateY(-1px);
}

/* ── Gold solid button (hero CTA only) ────────────────
   The one sanctioned filled-gold use: the homepage hero's
   primary CTA, per the handoff. Not for repeated use as a
   general-purpose button — prefer .btn-navy/.btn-outline. */
.btn-gold {
  background-color: #B99B5E;
  color: #243545;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 2px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-gold:hover {
  background-color: #C9AF7C;
  transform: translateY(-1px);
}

/* ── Outline button ─────────────────────────────────── */
.btn-outline {
  border: 2px solid white;
  color: white;
  font-weight: 600;
  padding: 0.7rem 2rem;
  border-radius: 2px;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-outline:hover {
  background-color: white;
  color: #243545;
}

/* ── Partner logo box ───────────────────────────────── */
.partner-box {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 80px;
}
.partner-box:hover {
  border-color: #B99B5E;
  box-shadow: 0 4px 16px rgba(185, 155, 94, 0.15);
}

/* ── Job card ───────────────────────────────────────── */
.job-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.job-card:hover {
  border-color: #243545;
  box-shadow: 0 4px 16px rgba(36, 53, 68, 0.1);
}

/* ── Page hero banner ───────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #243545 0%, #141D24 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 60px,
    rgba(255,255,255,0.015) 60px,
    rgba(255,255,255,0.015) 61px
  );
}
.page-hero--image {
  background-size: cover;
  background-position: center;
}
.page-hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 29, 36, 0.88) 0%, rgba(36, 53, 68, 0.78) 100%);
  z-index: 0;
}
.page-hero--image::after {
  z-index: 0;
}

/* ── Homepage hero with regional photography ─────────── */
.hero-with-photo {
  background-color: #243545;
  background-size: cover;
  background-position: center;
}
.hero-with-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(36, 53, 68, .92) 0%, rgba(36, 53, 68, .82) 38%, rgba(36, 53, 68, .5) 72%, rgba(36, 53, 68, .32) 100%);
  z-index: 0;
}
.hero-with-photo > * {
  position: relative;
  z-index: 1;
}

/* ── Nav dropdown ───────────────────────────────────── */
[x-cloak] { display: none !important; }

/* ── Mobile menu transition ─────────────────────────── */
.mobile-menu-enter { transition: opacity 0.15s ease, transform 0.15s ease; }
.mobile-menu-enter-start { opacity: 0; transform: translateY(-8px); }
.mobile-menu-enter-end { opacity: 1; transform: translateY(0); }

/* ── Custom scrollbar ───────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #243545; border-radius: 4px; }

/* ── Print styles ───────────────────────────────────── */
@media print {
  nav, footer { display: none; }
}
