/* ============================================================
   Yathiraja Inc. — Design System
   Colors: Navy #0D1B2A | Gold #C9A84C | White #FFFFFF
   Type:   Georgia (headings) | Inter (body)
   ============================================================ */

/* -- Google Font import ------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* -- CSS Custom Properties --------------------------------- */
:root {
  --navy:        #0D1B2A;
  --navy-light:  #162439;
  --navy-mid:    #1e3350;
  --gold:        #C9A84C;
  --gold-light:  #e0c070;
  --gold-pale:   #f5edda;
  --white:       #FFFFFF;
  --off-white:   #F8F9FA;
  --gray-100:    #F2F4F6;
  --gray-200:    #E5E8EC;
  --gray-400:    #9DA5B1;
  --gray-600:    #5A6472;
  --gray-800:    #2D3748;
  --text-dark:   #1A2332;
  --text-body:   #3D4A5C;
  --text-muted:  #6B7787;

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

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --shadow-sm:   0 1px 3px rgba(13,27,42,0.08), 0 1px 2px rgba(13,27,42,0.04);
  --shadow-md:   0 4px 16px rgba(13,27,42,0.10), 0 2px 6px rgba(13,27,42,0.06);
  --shadow-lg:   0 10px 40px rgba(13,27,42,0.14), 0 4px 12px rgba(13,27,42,0.08);
  --shadow-gold: 0 0 0 3px rgba(201,168,76,0.25);

  --transition:  0.3s ease;
  --max-width:   1160px;
  --nav-height:  72px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* -- Typography -------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-gold  { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

/* -- Layout ------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}
.section--alt {
  background: var(--off-white);
}
.section--navy {
  background: var(--navy);
  color: var(--white);
}
.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-headline {
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 56px;
}
.text-center .section-intro {
  margin-left: auto;
  margin-right: auto;
}

/* -- Gold Rule --------------------------------------------- */
.gold-rule {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 20px 0 32px;
  border-radius: 2px;
}
.text-center .gold-rule {
  margin-left: auto;
  margin-right: auto;
}

/* -- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: linear-gradient(135deg, #D4A843 0%, #C9A84C 60%, #B8963E 100%);
  color: var(--navy);
  border-color: #C9A84C;
  box-shadow: 0 2px 8px rgba(201,168,76,0.30);
}
.btn--primary:hover {
  background: var(--navy);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,27,42,0.30);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn--outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline-navy:hover {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}
.btn--outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.30);
}

/* -- Navigation -------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled,
.nav.nav--solid {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.nav.scrolled .nav__link,
.nav.nav--solid .nav__link { color: var(--navy); }
.nav.scrolled .nav__link:hover,
.nav.nav--solid .nav__link:hover { color: var(--gold); }
.nav.scrolled .nav__logo-text,
.nav.nav--solid .nav__logo-text { color: var(--navy); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav__logo img {
  height: 44px;
  width: auto;
}
/* Inverted logo for dark background (hero), normal for scrolled */
.nav .logo-dark    { display: none; }
.nav .logo-light   { display: block; }
.nav.scrolled .logo-dark,
.nav.nav--solid .logo-dark  { display: block; }
.nav.scrolled .logo-light,
.nav.nav--solid .logo-light { display: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link:hover { color: var(--gold); }

.nav__link--home {
  font-size: 1rem;
  display: flex;
  align-items: center;
  padding-right: 4px;
}
.nav__link--home::after { display: none; }

.nav__cta {
  padding: 9px 20px;
  font-size: 0.85rem;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav.scrolled .nav__toggle span,
.nav.nav--solid .nav__toggle span { background: var(--navy); }
.nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* -- Hero -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

/* Hero canvas — animated ambient background */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0; /* explicitly layered above background color */
}
/* Subtle vignette overlay — above canvas, below content */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 40% at 50% 100%, rgba(13,27,42,0.55) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 50%, rgba(13,27,42,0.35) 0%, transparent 70%);
  z-index: 1; /* above canvas so vignette frames the particles */
  pointer-events: none;
}
/* Content z-index stacking */
.hero__scroll { z-index: 2; }
/* Legacy class kept for safety, hidden */
.hero__grid { display: none; }

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding-top: var(--nav-height);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1.5px;
  background: var(--gold);
}

.hero__headline {
  color: var(--white);
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
}
.hero__headline em {
  color: var(--gold);
  font-style: normal;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero__stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero__stat-value {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero__stat-value span {
  color: var(--gold);
}
.hero__stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.45);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
  cursor: pointer;
}
.hero__scroll:hover {
  color: var(--gold);
}
.hero__scroll:hover .scroll-mouse {
  border-color: var(--gold);
}
.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(201,168,76,0.45);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
  transition: border-color var(--transition);
}
.scroll-wheel {
  width: 3px;
  height: 6px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%   { transform: translateY(0);   opacity: 1; }
  80%  { transform: translateY(10px); opacity: 0; }
  81%  { transform: translateY(0);   opacity: 0; }
  100% { transform: translateY(0);   opacity: 1; }
}

/* -- Capabilities ------------------------------------------ */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cap-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.cap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.cap-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.cap-card:hover::before { transform: scaleX(1); }

.cap-card__icon {
  width: 52px; height: 52px;
  background: var(--gold-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 1.4rem;
  transition: background var(--transition);
}
.cap-card:hover .cap-card__icon {
  background: var(--gold);
  color: var(--navy);
}
.cap-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--navy);
}
.cap-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* -- Case Studies ------------------------------------------ */
/* ── Case study stack (homepage) ─────────────────────────── */
.cs-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 48px;
}

/* Each card: full width, dark header on top, 3-col body below */
.cs-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), transform var(--transition);
}
.cs-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Header — full-width dark band: icon LEFT, text RIGHT */
.cs-card__header {
  background: var(--navy);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.cs-card__header::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(201,168,76,0.07);
  pointer-events: none;
}

/* Icon — LEFT side, large square */
.cs-card__header-icon {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.90);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12);
}
/* SVG image variant — transparent bg, gold SVG fills itself */
.cs-card__header-icon--img {
  background: rgba(201,168,76,0.10);
  border-color: rgba(201,168,76,0.25);
}
.cs-card__header-img {
  width: 52px;
  height: 52px;
  display: block;
}

/* Text — RIGHT of icon */
.cs-card__header-text { flex: 1; }
.cs-card__industry {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.cs-card__title {
  font-family: var(--font-heading);
  font-size: 1.30rem;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 6px;
}
.cs-card__type {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

/* Body — 3 equal columns */
.cs-card__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 3px solid var(--gold);
}
.cs-card__col {
  padding: 24px 28px;
  border-right: 1px solid var(--gray-200);
}
.cs-card__col:last-child { border-right: none; }

/* Column label — prominent section header */
.cs-card__col-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,168,76,0.25);
  display: flex;
  align-items: center;
  gap: 7px;
}
.cs-card__col-text {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* Footer — tags left, CTA right */
.cs-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px 18px;
  border-top: 1px solid var(--gray-200);
  background: #e8e8e4;
  flex-wrap: wrap;
}
.cs-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cs-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  transition: gap var(--transition), color var(--transition);
}
.cs-card__cta:hover { gap: 12px; color: var(--navy); }

/* Shared tag pill */
.tag {
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

/* View All CTA row */
.work-viewall {
  text-align: center;
  margin-top: 48px;
  padding-top: 12px;
}

/* Responsive */
@media (max-width: 860px) {
  .cs-card__body { grid-template-columns: 1fr; }
  .cs-card__col  { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .cs-card__col:last-child { border-bottom: none; }
  .cs-card__header { padding: 20px 24px; }
  .cs-card__header-icon { width: 60px; height: 60px; font-size: 1.6rem; }
}
@media (max-width: 640px) {
  .cs-card__header { padding: 18px 16px; gap: 16px; }
  .cs-card__col    { padding: 18px 16px; }
  .cs-card__footer { padding: 12px 16px; flex-direction: column; align-items: flex-start; }
}

/* -- Architecture Diagram ---------------------------------- */
.arch-diagram {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  margin: 48px 0;
  overflow-x: auto;
}
.arch-diagram__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}
.arch-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 700px;
}
.arch-node {
  flex: 1;
  min-width: 140px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.arch-node--accent { border-color: rgba(201,168,76,0.55); background: rgba(201,168,76,0.07); }
.arch-node--input  { border-color: rgba(255,255,255,0.15); }
.arch-node__icon {
  width: 36px; height: 36px;
  background: rgba(201,168,76,0.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1rem;
}
.arch-node__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.arch-node__name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--white);
  line-height: 1.3;
}
.arch-node__items {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.arch-node__items li {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  padding-left: 10px;
  position: relative;
}
.arch-node__items li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--gold);
  opacity: 0.5;
  font-size: 0.6rem;
}
.arch-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: rgba(201,168,76,0.4);
  font-size: 1.2rem;
  flex-shrink: 0;
}
/* Hub diagram (vertical) */
.arch-hub {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.arch-hub__tier {
  display: flex;
  gap: 16px;
  justify-content: center;
  width: 100%;
}
.arch-hub__connector {
  width: 2px;
  height: 20px;
  background: rgba(201,168,76,0.3);
  margin: 0 auto;
}

/* -- Comprehensive Case Studies Page (archive-inspired) ---- */
.cs-full {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--gray-200);
}
.cs-full:last-of-type { border-bottom: none; }
.cs-full__hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.cs-full__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin: 0;
}
.cs-full__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cs-full__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--gray-100);
  padding: 5px 12px;
  border-radius: 999px;
}
.cs-full__badge i { color: var(--gold); font-size: 0.72rem; }
/* Cloud product badges (inspired by archive cloud icons) */
.cs-full__products {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 32px;
}
.cs-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid;
}
.cs-product-badge--sf    { background: #EBF5FF; border-color: #0070D2; color: #0070D2; }
.cs-product-badge--ms    { background: #FFF3E0; border-color: #E07B00; color: #E07B00; }
.cs-product-badge--green { background: #EFF9F3; border-color: #1A8A54; color: #1A8A54; }
.cs-product-badge--red   { background: #FFF0F1; border-color: #C82333; color: #C82333; }
.cs-product-badge--purple{ background: #F5EFFF; border-color: #7B4FBF; color: #7B4FBF; }
.cs-product-badge--dark  { background: var(--gray-100); border-color: var(--gray-400); color: var(--gray-800); }
/* 3-column content grid */
.cs-full__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
}
.cs-full__col {
  padding: 28px 24px;
  border-right: 1px solid var(--gray-200);
}
.cs-full__col:last-child { border-right: none; }
.cs-full__col-head {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cs-full__col-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-body);
  margin: 0;
}
.cs-full__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

/* -- Case Study Page --------------------------------------- */
.case-study-hero {
  background: var(--navy);
  padding: 120px 0 64px;
}
.case-study-hero .section-label { color: var(--gold); margin-bottom: 12px; }
.case-study-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  max-width: 720px;
  margin-bottom: 16px;
}
.case-study-hero .meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.case-study-hero .meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}
.case-study-hero .meta-chip i { color: var(--gold); }
.cs-section { margin: 56px 0; }
.cs-section h2 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cs-section h2 i { color: var(--gold); font-size: 1rem; }
.cs-section p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--text-body);
}
.cs-section__divider {
  height: 1px;
  background: var(--gray-200);
  margin: 56px 0;
}
.cs-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 64px; }

/* Shared diagram wrapper — used on both case-study.php and case-studies.php */
.cs-diagram-wrapper {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
}
.cs-diagram-wrapper h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cs-diagram-wrapper h3 i { color: var(--gold); }
.case-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

/* -- Labs Teaser ------------------------------------------- */
/* -- Labs Teaser ------------------------------------------- */
.labs-teaser {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 72px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
/* No dot grid — plain background */
.labs-teaser::before { content: none; }
/* Gold glow orb top-right */
.labs-teaser::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(201,168,76,0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
/* Content & action sit above scribbles */
.labs-teaser__content,
.labs-teaser__action {
  position: relative;
  z-index: 1;
}
.labs-teaser__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.labs-teaser h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.labs-teaser p {
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  font-size: 1rem;
  margin: 0;
}
.labs-teaser__action { flex-shrink: 0; }

/* -- Scribbled keyword background -------------------------- */
.labs-scribble {
  position: absolute;
  color: #ffffff;
  font-family: 'Caveat', cursive;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: 0.03em;
  line-height: 1;
}

/* -- About ------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__industries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}
.about__industry-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-body);
  font-weight: 500;
}
.about__industry-item i {
  color: var(--gold);
  font-size: 0.8rem;
}

.about__visual {
  position: relative;
}
.about__card {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  color: var(--white);
}
.about__card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}
.about__metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.about__metric-value {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.about__metric-value span { color: var(--gold); }
.about__metric-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

/* Official Salesforce Partner Badge image */
.partner-badge-img {
  position: absolute;
  bottom: -16px; right: -16px;
  width: 120px;
  height: 120px;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0,161,224,0.40));
}

/* -- Certifications ---------------------------------------- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cert-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 16px 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--cert-accent, var(--gold));
  border-radius: 4px 0 0 4px;
}
.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.cert-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
/* ── Cert category row ─────────────────────────────────────── */
.cert-category { margin-bottom: 40px; }
.cert-category__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cert-category__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cat-accent, var(--gold));
  flex-shrink: 0;
}
.cert-category__name {
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cat-accent, var(--navy));
}
.cert-category__count {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--gray-100);
  border-radius: 999px;
  padding: 1px 8px;
}

/* ── Text-based icon (e.g. PMI) ────────────────────────────── */
.cert-text-icon {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Recognition chips row */
.cert-recognition {
  margin-top: 56px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.cert-recognition__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  margin-right: 4px;
}
.cert-recognition__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--gold-pale);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--navy);
}
.cert-recognition__chip i {
  color: var(--gold);
  font-size: 0.72rem;
}
.cert-card__name {
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}
.cert-card__meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* -- Contact ----------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.contact-info h2 { color: var(--navy); margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 32px; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--text-body);
}
.contact-detail i {
  width: 40px; height: 40px;
  background: var(--gold-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-detail a { color: var(--text-body); }
.contact-detail a:hover { color: var(--gold); }

.contact-form {
  background: var(--off-white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 120px; }

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

.form-submit { width: 100%; justify-content: center; margin-top: 8px; }

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  margin-top: 16px;
  display: none;
}
.form-message--success {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #86EFAC;
}
.form-message--error {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
}
.form-message.visible { display: block; }

/* -- Footer ------------------------------------------------ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo img { height: 40px; }
.footer__tagline {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin: 0;
  flex: 1;
  text-align: center;
  text-shadow: 0 0 24px rgba(201,168,76,0.35);
  opacity: 0.88;
}
.footer__social {
  display: flex;
  gap: 14px;
}
.footer__social-link {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all 0.25s ease;
  text-decoration: none;
  color: #fff;
}
.footer__social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  filter: brightness(1.15);
}
/* LinkedIn — brand blue */
.footer__social-link--linkedin {
  background: #0A66C2;
  border: 1.5px solid #0A66C2;
}
/* Trailblazer — Trailhead teal */
.footer__social-link--trailblazer {
  background: #0B827C;
  border: 1.5px solid #0B827C;
}
/* Labs — gold */
.footer__social-link--labs {
  background: var(--gold);
  border: 1.5px solid var(--gold);
  color: var(--navy);
}
.footer__bottom {
  padding-top: 24px;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__partner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--gold);
}
.footer__partner i { font-size: 0.85rem; }

/* -- AOS (Animate on Scroll) overrides --------------------- */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* -- Responsive -------------------------------------------- */
@media (max-width: 1024px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-row__sections  { grid-template-columns: 1fr; }
  .certs-grid        { grid-template-columns: repeat(3, 1fr); }
  .about-grid        { grid-template-columns: 1fr; gap: 48px; }
  .about__visual     { order: -1; }
  .labs-teaser       { grid-template-columns: 1fr; }
  .labs-teaser__action { display: flex; justify-content: flex-start; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .section { padding: 64px 0; }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    background: var(--navy);
    padding: 32px 24px;
    gap: 8px;
    overflow-y: auto;
  }
  .nav__links.open .nav__link {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.88);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    width: 100%;
  }
  .nav__links.open .btn { margin-top: 16px; width: 100%; justify-content: center; }

  .hero__stats { gap: 28px; }
  .hero__stat-value { font-size: 2rem; }

  .capabilities-grid { grid-template-columns: 1fr; }
  .cs-row            { grid-template-columns: 1fr; }
  .certs-grid        { grid-template-columns: repeat(2, 1fr); }
  .contact-grid      { grid-template-columns: 1fr; gap: 40px; }
  .form-row          { grid-template-columns: 1fr; }
  .labs-teaser       { padding: 40px 28px; }
  .about__metric-grid{ grid-template-columns: 1fr 1fr; }
  .footer__inner     { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .certs-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .about__industries { grid-template-columns: 1fr; }
}
