/* Burke Consulting - Trust & Authority Design System
   Typography: Lexend (headings) / Source Sans 3 (body)
   Palette: Authority Navy, Trust Blue, Security Green, Gold Accent
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-navy: #1E40AF;
  --color-navy-dark: #1E3A8A;
  --color-blue: #2563EB;
  --color-blue-light: #3B82F6;
  --color-blue-pale: #DBEAFE;
  --color-green: #059669;
  --color-green-light: #D1FAE5;
  --color-gold: #F59E0B;
  --color-gold-light: #FEF3C7;
  --color-bg: #F8FAFC;
  --color-bg-white: #FFFFFF;
  --color-text: #1E293B;
  --color-text-secondary: #475569;
  --color-text-light: #64748B;
  --color-border: #E2E8F0;
  --color-border-light: #F1F5F9;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-heading: 'Lexend', sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  --transition: 200ms ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-navy);
}

a:focus-visible {
  outline: 3px solid var(--color-blue-light);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-navy-dark);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.85rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

ul {
  list-style: none;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background-color: var(--color-bg-white);
}

/* ===== CIRCUIT BOARD BACKGROUND PATTERN ===== */
.circuit-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='circuit' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='10' cy='10' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='50' cy='10' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='90' cy='10' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='10' cy='50' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='50' cy='50' r='2' fill='rgba(255,255,255,0.12)'/%3E%3Ccircle cx='90' cy='50' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='10' cy='90' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='50' cy='90' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='90' cy='90' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Cline x1='10' y1='10' x2='50' y2='10' stroke='rgba(255,255,255,0.04)' stroke-width='0.5'/%3E%3Cline x1='50' y1='10' x2='50' y2='50' stroke='rgba(255,255,255,0.04)' stroke-width='0.5'/%3E%3Cline x1='50' y1='50' x2='90' y2='50' stroke='rgba(255,255,255,0.04)' stroke-width='0.5'/%3E%3Cline x1='10' y1='50' x2='10' y2='90' stroke='rgba(255,255,255,0.04)' stroke-width='0.5'/%3E%3Cline x1='90' y1='10' x2='90' y2='50' stroke='rgba(255,255,255,0.04)' stroke-width='0.5'/%3E%3Cline x1='50' y1='90' x2='90' y2='90' stroke='rgba(255,255,255,0.04)' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23circuit)'/%3E%3C/svg%3E");
}

.circuit-bg-light {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='circuit' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='10' cy='10' r='1.5' fill='rgba(30,64,175,0.06)'/%3E%3Ccircle cx='50' cy='10' r='1.5' fill='rgba(30,64,175,0.06)'/%3E%3Ccircle cx='90' cy='10' r='1.5' fill='rgba(30,64,175,0.06)'/%3E%3Ccircle cx='10' cy='50' r='1.5' fill='rgba(30,64,175,0.06)'/%3E%3Ccircle cx='50' cy='50' r='2' fill='rgba(30,64,175,0.08)'/%3E%3Ccircle cx='90' cy='50' r='1.5' fill='rgba(30,64,175,0.06)'/%3E%3Ccircle cx='10' cy='90' r='1.5' fill='rgba(30,64,175,0.06)'/%3E%3Ccircle cx='50' cy='90' r='1.5' fill='rgba(30,64,175,0.06)'/%3E%3Ccircle cx='90' cy='90' r='1.5' fill='rgba(30,64,175,0.06)'/%3E%3Cline x1='10' y1='10' x2='50' y2='10' stroke='rgba(30,64,175,0.04)' stroke-width='0.5'/%3E%3Cline x1='50' y1='10' x2='50' y2='50' stroke='rgba(30,64,175,0.04)' stroke-width='0.5'/%3E%3Cline x1='50' y1='50' x2='90' y2='50' stroke='rgba(30,64,175,0.04)' stroke-width='0.5'/%3E%3Cline x1='10' y1='50' x2='10' y2='90' stroke='rgba(30,64,175,0.04)' stroke-width='0.5'/%3E%3Cline x1='90' y1='10' x2='90' y2='50' stroke='rgba(30,64,175,0.04)' stroke-width='0.5'/%3E%3Cline x1='50' y1='90' x2='90' y2='90' stroke='rgba(30,64,175,0.04)' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23circuit)'/%3E%3C/svg%3E");
}

/* ===== HEADER / NAV ===== */
.header {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1140px;
  margin: 0 auto;
  height: 80px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header__logo img {
  height: 56px;
  width: auto;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-navy);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav__link:hover {
  background: var(--color-blue-pale);
  color: var(--color-navy);
}

.nav__link--active {
  background: var(--color-blue-pale);
  color: var(--color-navy);
  font-weight: 600;
}

/* ===== HERO (two-column with illustration) ===== */
.hero {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, #1a3278 40%, var(--color-blue) 100%);
  color: #FFFFFF;
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero__badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 540px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 36px;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero__trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
}

/* Hero illustration */
.hero__illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__illustration svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
}

/* Floating glow behind illustration */
.hero__illustration::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 28px 32px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
  display: block;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-navy) 0%, var(--color-blue-light) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-blue-light);
}

.service-card:focus-visible {
  outline: 3px solid var(--color-blue-light);
  outline-offset: 2px;
}

.service-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--color-blue-pale) 0%, #EFF6FF 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue) 100%);
  transform: scale(1.05);
}

.service-card__icon svg {
  width: 34px;
  height: 34px;
  color: var(--color-navy);
  transition: color var(--transition);
}

.service-card:hover .service-card__icon svg {
  color: #FFFFFF;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-navy-dark);
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ===== VISUAL FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px 36px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-blue-light);
}

.feature-card__bg {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  opacity: 0.06;
  pointer-events: none;
}

.feature-card__bg svg {
  width: 100%;
  height: 100%;
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__icon--blue {
  background: linear-gradient(135deg, var(--color-blue-pale), #EFF6FF);
}

.feature-card__icon--green {
  background: linear-gradient(135deg, var(--color-green-light), #ECFDF5);
}

.feature-card__icon--gold {
  background: linear-gradient(135deg, var(--color-gold-light), #FFFBEB);
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
}

.feature-card__icon--blue svg { color: var(--color-navy); }
.feature-card__icon--green svg { color: var(--color-green); }
.feature-card__icon--gold svg { color: #B45309; }

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 0;
  line-height: 1.65;
}

/* ===== ABOUT / CONTENT SECTION ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__text h2 {
  margin-bottom: 20px;
}

.about__text p {
  margin-bottom: 16px;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.stat-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-blue-light));
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card__label {
  font-size: 0.88rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ===== EXPERTISE LIST ===== */
.expertise-list {
  list-style: none;
  padding: 0;
}

.expertise-list li {
  position: relative;
  padding: 12px 0 12px 36px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
  font-size: 1rem;
}

.expertise-list li:last-child {
  border-bottom: none;
}

.expertise-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: var(--color-green-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== PAGE HERO (service pages, with pattern) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, #1a3278 40%, var(--color-blue) 100%);
  color: #FFFFFF;
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #FFFFFF;
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 640px;
}

/* Large decorative SVG in page hero */
.page-hero__graphic {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.08;
  pointer-events: none;
  width: 400px;
  height: 400px;
}

.page-hero__graphic svg {
  width: 100%;
  height: 100%;
}

.page-content {
  padding: 64px 0;
}

.page-content__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.page-content__main h2 {
  margin-bottom: 16px;
}

.page-content__main p {
  margin-bottom: 20px;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
}

.sidebar__nav {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.sidebar__nav h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-blue-pale);
}

.sidebar__nav ul {
  list-style: none;
}

.sidebar__nav li {
  margin-bottom: 4px;
}

.sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}

.sidebar__nav a:hover {
  background: var(--color-blue-pale);
  color: var(--color-navy);
}

.sidebar__nav a.a--active {
  background: var(--color-blue-pale);
  color: var(--color-navy);
  font-weight: 600;
}

.sidebar__nav a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-blue-light);
}

/* Trust badge box */
.trust-badge-box {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-top: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.trust-badge-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='0' cy='0' r='1' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='60' cy='0' r='1' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='0' cy='60' r='1' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='60' cy='60' r='1' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.trust-badge-box > * {
  position: relative;
  z-index: 1;
}

.trust-badge-box svg {
  width: 44px;
  height: 44px;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.trust-badge-box h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.trust-badge-box p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ===== INDUSTRIES / TRUST SECTION ===== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.industry-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.industry-badge:hover {
  border-color: var(--color-blue-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.industry-badge__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.industry-badge__icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-navy);
}

.industry-badge span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

/* ===== VISUAL BANNER / CTA STRIP ===== */
.visual-banner {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, #1a3278 50%, var(--color-blue) 100%);
  color: #FFFFFF;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.visual-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.92) 0%, rgba(26, 50, 120, 0.88) 50%, rgba(37, 99, 235, 0.85) 100%);
  z-index: 0;
}

.visual-banner .container {
  position: relative;
  z-index: 1;
}

.visual-banner__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  text-align: center;
}

.visual-banner__stat {
  padding: 20px;
}

.visual-banner__stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-banner__stat-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-gold);
}

.visual-banner__number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 8px;
}

.visual-banner__label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 32px;
  position: relative;
  overflow: hidden;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer__brand h3 {
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 340px;
  line-height: 1.6;
}

.footer h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: #FFFFFF;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a:hover {
  color: #FFFFFF;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--color-text-light);
}

.section-header__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--color-blue-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-header__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-navy);
}

/* ===== PHOTO HERO (full-bleed background image) ===== */
.hero--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.88) 0%, rgba(30, 64, 175, 0.75) 50%, rgba(37, 99, 235, 0.65) 100%);
  z-index: 0;
}

.page-hero--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0 88px;
}

.page-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(26, 50, 120, 0.78) 40%, rgba(37, 99, 235, 0.65) 100%);
  z-index: 0;
}

/* ===== IMAGE SHOWCASE (photo grid on service pages) ===== */
.image-showcase {
  padding: 0 0 64px;
}

.image-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.image-showcase__grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.image-showcase__item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.image-showcase__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.image-showcase__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-showcase__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 16px;
  background: linear-gradient(to top, rgba(30, 58, 138, 0.85) 0%, transparent 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ===== PHOTO FEATURE (side-by-side image + text) ===== */
.photo-feature {
  padding: 64px 0;
}

/* Grid applies to whichever element directly holds image + text */
.photo-feature,
.photo-feature > .container,
.photo-feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* When section has a container child, section itself is block */
.photo-feature:has(> .container) {
  display: block;
}

.photo-feature--reverse > .container,
.photo-feature--reverse > .photo-feature__inner,
.photo-feature--reverse.photo-feature:not(:has(> .container)) {
  direction: rtl;
}

.photo-feature--reverse > .container > *,
.photo-feature--reverse > .photo-feature__inner > *,
.photo-feature--reverse:not(:has(> .container)) > * {
  direction: ltr;
}

.photo-feature__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.photo-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}

.photo-feature__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(30, 64, 175, 0.1);
  pointer-events: none;
}

.photo-feature__text h2 {
  margin-bottom: 16px;
}

.photo-feature__text p {
  margin-bottom: 20px;
}

/* ===== PHOTO CARDS (feature cards with image backgrounds) ===== */
.photo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.photo-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 32px 24px 24px;
  background: linear-gradient(to top, rgba(30, 58, 138, 0.92) 0%, rgba(30, 58, 138, 0.6) 60%, transparent 100%);
}

.photo-card__overlay h3 {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.photo-card__overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__illustration {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .page-content__grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .visual-banner__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .page-hero__graphic {
    width: 280px;
    height: 280px;
    opacity: 0.05;
  }

  .image-showcase__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-feature,
  .photo-feature > .container,
  .photo-feature__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .photo-feature--reverse > .container,
  .photo-feature--reverse > .photo-feature__inner,
  .photo-feature--reverse:not(:has(> .container)) {
    direction: ltr;
  }

  .photo-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .header__inner {
    height: 64px;
  }

  .header__logo img {
    height: 44px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }

  .nav--open {
    display: flex;
  }

  .nav__link {
    width: 100%;
    padding: 12px 16px;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero__trust {
    flex-direction: column;
    gap: 12px;
  }

  .section {
    padding: 48px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    text-align: left;
    display: flex;
    gap: 20px;
    padding: 24px;
    align-items: flex-start;
  }

  .service-card__icon {
    margin: 0;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
  }

  .service-card__icon svg {
    width: 26px;
    height: 26px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about__stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card__number {
    font-size: 1.6rem;
  }

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .visual-banner__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .visual-banner__number {
    font-size: 2.2rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .page-hero__graphic {
    display: none;
  }

  .image-showcase__grid,
  .image-showcase__grid--two {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .photo-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .photo-card {
    min-height: 240px;
  }

  .page-hero--photo {
    padding: 56px 0 64px;
  }
}

/* Small phones */
@media (max-width: 375px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .service-card:hover,
  .industry-badge:hover {
    transform: none;
  }
}
