/* ==========================================================================
   Adani Utilities — UI/UX Pro Max Design System
   Source: design-system/adani-utilities/MASTER.md
   Style: Trust & Authority | Pattern: Enterprise Gateway
   Typography: Poppins + Open Sans | Stack: HTML + Bootstrap
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  /* Color palette — Authority navy + trust gold (MASTER.md) */
  --color-primary: #1E3A8A;
  --color-on-primary: #FFFFFF;
  --color-secondary: #1E40AF;
  --color-accent: #B45309;
  --color-background: #F8FAFC;
  --color-foreground: #0F172A;
  --color-muted: #E9EEF5;
  --color-border: #CBD5E1;
  --color-destructive: #DC2626;
  --color-ring: #1E3A8A;
  --color-surface: #FFFFFF;
  --color-body-text: #475569;
  --color-body-muted: #64748B;

  /* Trust & Authority style tokens */
  --trust-color: #1E40AF;
  --metric-highlight: #F59E0B;
  --badge-height: 48px;

  /* Typography */
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;

  /* Spacing — 8px base unit, spacious density (dial: 3) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --section-py: clamp(4rem, 8vw, 6rem);
  --mobile-gutter: 1.25rem;

  /* Shadows (MASTER.md) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Radius (MASTER.md component specs) */
  --radius-btn: 8px;
  --radius-card: 12px;
  --radius-modal: 16px;

  /* Motion — subtle tier (dial: 3), 200ms ease */
  --transition: 200ms ease;

  /* Z-index scale (UX guideline) */
  --z-dropdown: 20;
  --z-sticky: 30;
  --z-fixed: 40;
  --z-skip: 50;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-body-text);
  background: var(--color-background);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}

#main-content {
  width: 100%;
  overflow-x: clip;
}

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

/* Typography hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-foreground);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

p { margin-bottom: 1rem; overflow-wrap: break-word; word-wrap: break-word; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6,
blockquote, li, .stat-label, .section-desc {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
  cursor: pointer;
}
a:hover { color: #92400E; }

img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container {
  width: 100%;
  max-width: 100%;
  padding-left: var(--mobile-gutter);
  padding-right: var(--mobile-gutter);
}

.row {
  --bs-gutter-x: 1.5rem;
  margin-left: calc(var(--bs-gutter-x) * -0.5);
  margin-right: calc(var(--bs-gutter-x) * -0.5);
  max-width: 100%;
}

.row > * {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

@media (min-width: 576px) {
  .container { max-width: 540px; padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1280px; } }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-on-primary);
  border-radius: 0 0 var(--radius-btn) var(--radius-btn);
  font-weight: 600;
  font-family: var(--font-heading);
}
.skip-link:focus-visible { top: 0; outline: none; }

/* Top bar */
.top-bar {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8125rem;
  padding: var(--space-sm) 0;
}
.top-bar a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}
.top-bar a:hover { color: var(--color-on-primary); }

/* Header / Navbar */
.site-header { position: relative; z-index: var(--z-sticky); overflow-x: clip; }

.navbar {
  background: var(--color-surface) !important;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.navbar-brand { padding: 0; margin-right: var(--space-lg); }
.navbar-brand img {
  height: 102px;
  width: auto;
  max-width: min(200px, calc(100vw - 5rem));
}

.navbar-toggler {
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
}
.navbar-toggler:focus-visible {
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
}
.navbar-toggler-icon { width: 1.25rem; height: 1.25rem; }

.navbar-nav { gap: var(--space-xs); }

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-foreground) !important;
  padding: 0.5rem 0.875rem !important;
  border-radius: var(--radius-btn);
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-primary) !important;
  background: var(--color-muted);
}
.nav-cta .btn-shimmer.active-cta {
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.25);
}
.nav-link.dropdown-toggle::after {
  margin-left: 0.35em;
  vertical-align: 0.15em;
}

.dropdown-menu {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  margin-top: var(--space-sm);
  z-index: var(--z-dropdown);
}
.dropdown-item {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-btn);
  color: var(--color-foreground);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--color-muted);
  color: var(--color-primary);
}

.nav-cta { margin-top: 0.75rem; }
@media (min-width: 992px) {
  .nav-cta { margin-top: 0; margin-left: var(--space-md); }
}

/* Buttons — MASTER.md component specs */
.btn-shimmer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  background: var(--color-accent);
  color: var(--color-on-primary) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-md);
}
.btn-shimmer::before { display: none; }
.btn-shimmer-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-shimmer:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  color: var(--color-on-primary) !important;
}
.btn-shimmer:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.35);
}

.btn-outline-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 22px;
  border: 2px solid var(--color-primary);
  color: var(--color-primary) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-btn);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline-brand:hover {
  background: var(--color-primary);
  color: var(--color-on-primary) !important;
}
.btn-outline-brand:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
}

/* Hero — Enterprise Gateway, trust signals */
.hero {
  position: relative;
  min-height: clamp(560px, 85vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  opacity: 0.15;
}
.hero-mesh {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.97) 0%,
    rgba(30, 64, 175, 0.88) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-on-primary);
  padding: clamp(2.5rem, 5vw, var(--space-3xl)) 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: var(--badge-height);
  padding: 0 var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-btn);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: var(--space-lg);
  color: var(--color-on-primary);
  transition: background var(--transition), border-color var(--transition);
}
.hero-badge:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}
.hero-badge svg { color: var(--metric-highlight); flex-shrink: 0; }
.hero h1 {
  color: var(--color-on-primary);
  font-size: clamp(2rem, 4.5vw, 3.125rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}
.hero .btn-outline-brand {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-on-primary) !important;
}
.hero .btn-outline-brand:hover {
  background: var(--color-on-primary);
  color: var(--color-primary) !important;
  border-color: var(--color-on-primary);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 100%;
}

/* Hero visual */
.hero-visual {
  position: relative;
  margin-top: var(--space-sm);
  max-width: 100%;
  overflow: hidden;
}
.hero-visual-glow { display: none; }
.hero-visual-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4 / 3;
}
.hero-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 58, 138, 0.45) 0%, transparent 50%);
  pointer-events: none;
}
.hero-visual-badge {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 36px;
  padding: 0 var(--space-md);
  background: var(--color-surface);
  color: var(--color-foreground);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-md);
  max-width: calc(100% - 2rem);
}
.hero-visual-badge span { line-height: 1.3; }
.hero-visual-badge svg { color: var(--color-accent); flex-shrink: 0; }

.stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-on-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-item .stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: var(--space-xs);
  line-height: 1.35;
  font-weight: 500;
}

@media (max-width: 991.98px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "visual" "cta";
    gap: var(--space-lg) !important;
    --bs-gutter-x: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .hero-grid > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
    max-width: 100%;
  }
  .hero-left-wrapper { display: contents; }
  .hero-intro { grid-area: intro; }
  .hero-visual-col { grid-area: visual; }
  .hero-cta { grid-area: cta; }
}

/* Page hero */
.page-hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: var(--color-primary);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(30, 64, 175, 0.25) 100%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  color: var(--color-on-primary);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.breadcrumb-nav {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  font-size: 0.8125rem;
  margin-bottom: var(--space-md);
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
.breadcrumb-nav a { color: rgba(255, 255, 255, 0.75); }
.breadcrumb-nav a:hover { color: var(--color-on-primary); }

/* Sections */
.section { padding: var(--section-py) 0; }
.section-alt { background: var(--color-surface); }
.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: var(--space-md);
  letter-spacing: -0.025em;
}
.section-subtitle {
  color: var(--trust-color);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.section-desc {
  max-width: 580px;
  margin-bottom: var(--space-2xl);
  font-size: 1.0625rem;
  color: var(--color-body-text);
  line-height: 1.7;
}
.section-header { margin-bottom: var(--space-2xl); }
.section-header.centered { text-align: center; }
.section-header.centered .section-desc {
  margin-left: auto;
  margin-right: auto;
}
.section-anchor { scroll-margin-top: 96px; }

.services-quick-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.services-quick-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4375rem var(--space-md);
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-body-text);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition);
}
.services-quick-nav a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-muted);
  box-shadow: var(--shadow-sm);
}

/* Cards — MASTER.md */
.glass-card,
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: default;
}
.glass-card:hover,
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.feature-card h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-sm);
  line-height: 1.35;
}
.feature-card p {
  font-size: 0.9375rem;
  margin: 0;
  color: var(--color-body-text);
}
.feature-icon {
  width: var(--badge-height);
  height: var(--badge-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-muted);
  border-radius: var(--radius-btn);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}
.feature-icon svg { width: 22px; height: 22px; }

/* Bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
  width: 100%;
  max-width: 100%;
}
.bento-item {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  min-height: 220px;
  background: var(--color-primary);
}
.bento-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform var(--transition), opacity var(--transition);
}
.bento-item:hover img {
  transform: scale(1.02);
  opacity: 0.62;
}
.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 58, 138, 0.92) 0%, rgba(30, 58, 138, 0.2) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  color: var(--color-on-primary);
}
.bento-overlay h3 {
  color: var(--color-on-primary);
  font-size: 1.0625rem;
  margin-bottom: var(--space-xs);
}
.bento-overlay p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.55;
}
.bento-span-6 { grid-column: span 6; }
.bento-span-4 { grid-column: span 4; }
.bento-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.bento-item-link:hover { color: inherit; }
.bento-item-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Service cards — overview & related */
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.service-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
  height: 100%;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: inherit;
}
.service-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.service-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--color-primary);
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.service-card:hover .service-card-img img { transform: scale(1.04); }
.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-lg);
}
.service-card-num {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.service-card-body h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-sm);
  line-height: 1.35;
}
.service-card-body p {
  font-size: 0.875rem;
  color: var(--color-body-text);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: var(--space-md);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
}
.service-card:hover .service-card-link { text-decoration: underline; }

.related-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.related-service-card {
  display: block;
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.related-service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
  color: inherit;
}
.related-service-card h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
}
.related-service-card p {
  font-size: 0.8125rem;
  color: var(--color-body-muted);
  margin: 0;
  line-height: 1.5;
}

/* Quote — Trust & Authority blockquote */
.quote-block {
  background: var(--color-primary);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-on-primary);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--color-accent);
}
.quote-block::before {
  content: '\201C';
  position: absolute;
  top: -5px;
  left: 16px;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
}
.quote-block blockquote {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list .check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--color-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-top: 2px;
}
.check-list .check-icon svg { width: 12px; height: 12px; }

/* Mission / Vision */
.mv-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: box-shadow var(--transition);
}
.mv-card:hover { box-shadow: var(--shadow-md); }
.mv-card h3 { font-size: 1.125rem; margin-bottom: var(--space-md); }

/* Awards — certificate styling */
.award-badge {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-md) var(--space-lg);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.award-badge:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.award-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-on-primary);
  flex-shrink: 0;
}
.award-icon svg { width: 22px; height: 22px; }
.award-badge h3 { font-size: 1rem; margin-bottom: 0.15rem; }

/* Images */
.img-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 100%;
  background: var(--color-muted);
  line-height: 0;
  border: 1px solid var(--color-border);
}
.img-card img {
  display: block;
  width: 100%;
  height: clamp(220px, 30vw, 300px);
  object-fit: cover;
}
.service-media img {
  display: block;
  height: clamp(240px, 28vw, 320px);
}

/* Services page */
.services-section { background: var(--color-background); }
.service-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.service-row-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: clamp(1.25rem, 2.5vw, var(--space-xl));
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.service-row-inner:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.service-row--reverse .service-row-content { order: 2; }
.service-row--reverse .service-row-media { order: 1; }
.service-feature--reverse .service-row-content { order: 2; }
.service-feature--reverse .service-row-media { order: 1; }
.service-row-content { min-width: 0; }
.service-row-content .section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.75rem;
}
.service-row-content .section-subtitle { margin-bottom: 0.35rem; }
.service-row-content > p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-body-text);
}
.service-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-btn);
  background: var(--color-muted);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-row-content h3 {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  margin-bottom: var(--space-sm);
  line-height: 1.35;
}
.service-row-media { min-width: 0; display: flex; }
.service-row-media .img-card {
  box-shadow: none;
  flex: 1;
  display: flex;
  border: none;
}
.service-row-media .service-media img {
  width: 100%;
  height: 100%;
  min-height: clamp(240px, 28vw, 320px);
  object-fit: cover;
}
.service-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-md);
}

.service-lead {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-foreground);
  margin-bottom: var(--space-md);
  line-height: 1.45;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.service-detail-item {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  padding: var(--space-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-detail-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.service-detail-item h4 {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-foreground);
  margin-bottom: var(--space-xs);
  line-height: 1.35;
}

.service-detail-item p {
  font-size: 0.875rem;
  margin: 0;
  color: var(--color-body-text);
  line-height: 1.55;
}
.service-detail {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  line-height: 1.35;
}

/* CTA banner */
.cta-banner {
  background: var(--color-primary);
  border-radius: var(--radius-card);
  padding: clamp(2.5rem, 5vw, var(--space-3xl));
  color: var(--color-on-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  color: var(--color-on-primary);
  margin-bottom: var(--space-md);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.025em;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--space-lg);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-banner .btn-shimmer {
  background: var(--color-accent);
  color: var(--color-on-primary) !important;
}

/* Contact */
.contact-section { background: var(--color-background); }
.contact-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-modal);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  width: 100%;
}
.contact-panel-header {
  text-align: center;
  padding: clamp(2rem, 4vw, var(--space-2xl)) clamp(1.5rem, 4vw, var(--space-2xl)) clamp(1.25rem, 3vw, var(--space-lg));
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.contact-panel-lead {
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 640px;
  color: var(--color-body-text);
}
.contact-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, var(--space-2xl));
  align-items: center;
}
.contact-panel-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}
.contact-email-block {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-email-block:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.contact-item-body { min-width: 0; flex: 1; }
.contact-item-body a {
  display: inline-block;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9375rem;
}
.contact-item-body a:hover { color: #92400E; }
.contact-icon {
  width: var(--badge-height);
  height: var(--badge-height);
  background: var(--color-muted);
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-trust-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.contact-trust-item {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-trust-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.contact-trust-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto var(--space-sm);
  background: var(--color-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.contact-trust-icon svg { width: 18px; height: 18px; }
.contact-trust-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  color: var(--color-foreground);
  margin-bottom: 0.15rem;
}
.contact-trust-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--color-body-muted);
  line-height: 1.4;
}
.contact-email-btn { align-self: flex-start; margin: 0; }
.contact-panel-media { min-width: 0; height: 100%; }
.contact-panel-media .contact-visual {
  height: 100%;
  max-width: none;
  margin: 0;
}
.contact-panel-media .contact-visual img {
  width: 100%;
  height: 100%;
  min-height: clamp(260px, 32vw, 340px);
  object-fit: cover;
}
.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border: 1px solid var(--color-border);
  height: 100%;
}
.service-block { padding: var(--section-py) 0; }
.service-block + .service-block { border-top: 1px solid var(--color-border); }

/* Pills */
.pill-tag {
  display: inline-block;
  padding: 0.375rem 0.8125rem;
  background: var(--color-muted);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-heading);
  margin: 0.2rem;
  transition: background var(--transition), border-color var(--transition);
}
.pill-tag:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(3rem, 6vw, var(--space-3xl)) 0 0;
}
.site-footer h5 {
  color: var(--color-on-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-footer nav a,
.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9375rem;
  transition: color var(--transition);
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: pointer;
}
.site-footer a:hover { color: var(--color-on-primary); }
.footer-contact-link {
  display: flex !important;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.35rem 0;
}
.footer-contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--metric-highlight);
}
.footer-contact-icon svg { width: 20px; height: 20px; display: block; }
.footer-desc {
  margin-top: var(--space-md);
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-logo img { height: 40px; width: auto; max-width: 100%; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: clamp(2rem, 4vw, var(--space-2xl));
  padding: var(--space-lg) 0;
  font-size: 0.8125rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
}

/* Scroll reveal — subtle motion tier */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  color: var(--color-on-primary);
  border: none;
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}
.back-to-top:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.35);
}

/* Forms — MASTER.md input specs */
.form-control, .form-select {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--color-ring);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}
.form-control:focus-visible, .form-select:focus-visible {
  border-color: var(--color-ring);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}
.form-label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-foreground);
  margin-bottom: 0.375rem;
}

/* Responsive — tablet */
@media (max-width: 991.98px) {
  html { scroll-padding-top: 72px; }
  .section-anchor { scroll-margin-top: 80px; }
  .bento-span-6, .bento-span-4 { grid-column: span 12; }
  .bento-item { min-height: 200px; }
  .service-card-grid,
  .related-services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; align-items: flex-start; }
  .hero-content { padding: 1.75rem 0 2.5rem; }
  .hero h1 { max-width: none; font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .hero-lead { max-width: none; margin-bottom: 0; font-size: 1rem; }
  .hero-visual { margin-top: 0; max-width: 100%; }
  .hero-visual-frame { aspect-ratio: 16 / 10; }
  .hero-cta .hero-stats { margin-top: var(--space-lg); padding-top: var(--space-md); }
  .navbar-collapse {
    padding: 0.75rem 0 var(--space-md);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-sm);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .navbar-nav { gap: var(--space-xs); width: 100%; }
  .nav-link {
    padding: 0.75rem 0.625rem !important;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-link::after { display: none; }
  .dropdown-item {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.625rem 0.875rem;
  }
  .dropdown-menu {
    border: none;
    box-shadow: none;
    padding: 0 0 0 var(--space-sm);
    margin: 0;
    background: transparent;
    position: static !important;
    transform: none !important;
  }
  .mobile-nav-divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-sm) 0;
    list-style: none;
  }
  .nav-cta { margin-top: var(--space-sm); width: 100%; }
  .nav-cta .btn-shimmer { min-height: 48px; width: 100%; }
  .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .section-header.centered { text-align: left; }
  .section-header.centered .section-desc { margin-left: 0; margin-right: 0; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .page-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .page-hero p { font-size: 1rem; }
  .quote-block { padding: var(--space-lg); }
  .quote-block::before { font-size: 4rem; }
  .award-badge { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-banner { padding: var(--space-xl) var(--space-lg); text-align: left; }
  .cta-banner p { margin-left: 0; margin-right: 0; text-align: left; }
}

/* Responsive — mobile */
@media (max-width: 767.98px) {
  :root {
    --mobile-gutter: 1.25rem;
    --section-py: 3.25rem;
  }
  .container {
    padding-left: max(var(--mobile-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--mobile-gutter), env(safe-area-inset-right, 0px));
  }
  .section-desc, .page-hero p, .hero-lead { max-width: 100%; }
  .hero-badge { max-width: 100%; white-space: normal; text-align: left; }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
  }
  .stat-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-btn);
    padding: 0.75rem 0.5rem;
    text-align: center;
    min-width: 0;
  }
  .stat-item .stat-num { font-size: 1.35rem; }
  .stat-item .stat-label { font-size: 0.6875rem; line-height: 1.3; hyphens: auto; }
  .hero-actions { flex-direction: column; gap: 0.75rem; }
  .hero-actions .btn-shimmer,
  .hero-actions .btn-outline-brand { width: 100%; min-height: 48px; }
  .btn-shimmer, .btn-outline-brand { min-height: 48px; }
  .bento-overlay { padding: var(--space-md); }
  .bento-overlay h3 { font-size: 1rem; }
  .bento-overlay p { font-size: 0.8125rem; }
  .feature-card, .glass-card, .mv-card, .contact-card { padding: var(--space-lg); }
  .service-row-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-md);
  }
  .service-row--reverse .service-row-content,
  .service-row--reverse .service-row-media,
  .service-feature--reverse .service-row-content,
  .service-feature--reverse .service-row-media { order: unset; }
  .service-row-media { order: -1; }
  .service-feature-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-card-grid,
  .related-services-grid { grid-template-columns: 1fr; }
  .service-card-img { height: 180px; }
  .service-media img { height: 220px; }
  .service-detail { padding: var(--space-lg) 0; }
  .service-detail h3 { font-size: 1.125rem; }
  .pill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    padding: 0 0.25rem;
  }
  .services-quick-nav {
    gap: 0.4rem;
    margin-bottom: var(--space-lg);
    padding: 0 0.25rem;
  }
  .services-quick-nav a {
    min-height: 44px;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  .award-badge { padding: var(--space-md); }
  .award-badge h3 { font-size: 0.9375rem; line-height: 1.35; }
  .quote-block blockquote { font-size: 0.9375rem; line-height: 1.7; }
  .contact-panel-grid { grid-template-columns: 1fr; padding: var(--space-md); }
  .contact-panel-header { padding: var(--space-lg) var(--space-md) var(--space-md); }
  .contact-panel-media { order: -1; }
  .contact-email-btn { align-self: stretch; width: 100%; text-align: center; }
  .form-control, .form-select { font-size: 16px; min-height: 48px; }
  .footer-desc { max-width: 100%; }
  .site-footer .row > [class*="col-"] { text-align: center; }
  .site-footer .footer-logo {
    display: block !important;
    margin-left: auto;
    margin-right: auto;
  }
  .site-footer .footer-logo img { margin-left: auto; margin-right: auto; }
  .site-footer .footer-desc { margin-left: auto; margin-right: auto; }
  .site-footer h5 { margin-bottom: 0.75rem; }
  .site-footer nav a,
  .site-footer .row > [class*="col-"] > a { padding: 0.35rem 0; }
  .footer-contact-link {
    justify-content: center;
    text-align: left;
    max-width: 100%;
  }
  .cta-banner .btn-shimmer,
  .section .btn-outline-brand,
  .section .btn-shimmer { width: 100%; min-height: 48px; }
  .back-to-top {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
  }
}

/* Responsive — small mobile */
@media (max-width: 575.98px) {
  :root { --mobile-gutter: 1rem; }
  .container {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }
  .navbar-brand img { height: 32px; }
  .hero-badge { font-size: 0.75rem; padding: 0 var(--space-md); }
  .hero-visual-badge {
    font-size: 0.6875rem;
    padding: 0 var(--space-sm);
    bottom: 0.75rem;
    left: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }
  .hero-visual-badge span { white-space: normal; }
  .hero-stats { grid-template-columns: 1fr; gap: var(--space-sm); }
  .stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
    padding: 0.75rem var(--space-md);
  }
  .stat-item .stat-label {
    font-size: 0.8125rem;
    margin-top: 0;
    max-width: none;
    flex: 1;
  }
  .section-title { font-size: 1.4375rem; }
  .breadcrumb-nav { flex-wrap: wrap; font-size: 0.75rem; line-height: 1.5; }
  .pill-tag { font-size: 0.75rem; padding: 0.375rem 0.6875rem; }
  .contact-trust-strip { grid-template-columns: 1fr; }
  .cta-banner h2 { font-size: 1.3125rem; line-height: 1.35; }
}

@media (min-width: 992px) {
  html { scroll-padding-top: 96px; }
}

.navbar{padding: 0}
