/* ============================================
   Canton Advisors - V2 Light Theme Styles
   ============================================ */

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

:root {
  --navy: #0a1628;
  --navy-light: #121f36;
  --navy-mid: #1a2a45;
  --red: #c5303c;
  --red-dark: #a82832;
  --red-light: #e04450;
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f0f2f5;
  --gray-200: #e1e5eb;
  --gray-300: #c8cdd6;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --transition-slow: 0.5s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section[id] {
  scroll-margin-top: 88px;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-lg {
  max-width: 1400px;
}

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--white);
}

.text-white h1, .text-white h2, .text-white h3,
.text-white h4, .text-white h5, .text-white h6 {
  color: var(--white);
}

.bg-navy {
  background: var(--navy);
}

.bg-gray {
  background: var(--gray-50);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography ---------- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-label--light {
  color: rgba(255,255,255,.75);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 640px;
  line-height: 1.7;
}

.section-subtitle--light {
  color: rgba(255,255,255,.75);
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197,48,60,.35);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-300);
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(197,48,60,.04);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10,22,40,.35);
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* ---------- Navigation (Light Theme) ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition), box-shadow var(--transition);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
}

.navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 1px 20px rgba(0,0,0,.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 40px;
  width: auto;
}

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

.nav-link {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
  background: var(--gray-50);
}

.nav-cta {
  margin-left: 12px;
  padding: 10px 24px;
  font-size: 0.875rem;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* Homepage hero navbar variant - transparent over dark image */
.navbar--hero {
  background: transparent;
  backdrop-filter: none;
}

.navbar--hero .nav-link {
  color: rgba(255,255,255,.8);
}

.navbar--hero .nav-link:hover,
.navbar--hero .nav-link.active {
  color: var(--white) !important;
  background: rgba(255,255,255,.1);
}

.navbar--hero .nav-toggle span {
  background: var(--white);
}

/* Logo swap: show white logo by default on hero, dark on scroll */
.navbar--hero .nav-logo--light {
  display: block;
}
.navbar--hero .nav-logo--dark {
  display: none;
}

.navbar--hero.scrolled .nav-logo--light {
  display: none;
}
.navbar--hero.scrolled .nav-logo--dark {
  display: block;
}

/* When scrolled, revert to standard light navbar */
.navbar--hero.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
}

.navbar--hero.scrolled .nav-link {
  color: var(--gray-600);
}

.navbar--hero.scrolled .nav-link:hover,
.navbar--hero.scrolled .nav-link.active {
  color: var(--navy) !important;
  background: var(--gray-50);
}

.navbar--hero.scrolled .nav-toggle span {
  background: var(--navy);
}

/* Non-hero pages: always hide the light logo */
.navbar:not(.navbar--hero) .nav-logo--light {
  display: none;
}
.navbar:not(.navbar--hero) .nav-logo--dark {
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Skyline background image */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('https://publicprimary.s3.us-east-1.amazonaws.com/CantonAdvisors/Web+Assets/mark-boss-aTWNx7yoJWo-unsplash.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

/* Dark overlay for text readability - stronger on the left */
.hero-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 22, 40, .92) 0%,
    rgba(10, 22, 40, .84) 40%,
    rgba(10, 22, 40, .62) 70%,
    rgba(10, 22, 40, .48) 100%
  );
}

/* Subtle red accent glow */
.hero-bg-image::after {
  content: '';
  position: absolute;
  top: -20%;
  right: 10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(197,48,60,.1) 0%, transparent 65%);
  pointer-events: none;
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .4;
}

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

.hero-content {
  max-width: 720px;
  padding: 120px 0 100px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(197,48,60,.15);
  border: 1px solid rgba(197,48,60,.3);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--red-light);
  margin-bottom: 28px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight,
.page-hero h1 .highlight {
  background: linear-gradient(135deg, var(--red-light), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1875rem;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Override secondary button for dark hero */
.hero .btn-secondary {
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}

.hero .btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
  font-weight: 500;
}

/* ---------- Pillars / Service Pillars Section ---------- */
.pillars {
  padding: 120px 0;
  background: var(--gray-50);
}

.pillars-header {
  text-align: center;
  margin-bottom: 72px;
}

.pillars-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.pillar-card {
  position: relative;
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pillar-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-slow);
}

.pillar-card:hover::after {
  transform: scaleX(1);
}

.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.pillar-card--tech {
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.pillar-card--tech::before {
  background: radial-gradient(circle at 80% 20%, rgba(197,48,60,.04) 0%, transparent 60%);
}

.pillar-card--realestate {
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.pillar-card--realestate::before {
  background: radial-gradient(circle at 20% 80%, rgba(197,48,60,.04) 0%, transparent 60%);
}

.pillar-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: rgba(197,48,60,.08);
  border: 1px solid rgba(197,48,60,.12);
}

.pillar-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--red);
}

.pillar-card h3 {
  font-size: 1.625rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.pillar-card p {
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.pillar-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.pillar-tag {
  padding: 5px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--gray-600);
  font-weight: 500;
}

.pillar-card--tech .pillar-tag,
.pillar-card--realestate .pillar-tag {
  background: var(--gray-50);
  border-color: var(--gray-200);
  color: var(--gray-600);
}

.pillar-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.pillar-card-link:hover {
  gap: 12px;
  color: var(--red-dark);
}

.pillar-card-link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.pillar-card-link:hover svg {
  transform: translateX(4px);
}

/* ---------- Industries ---------- */
.industries {
  padding: 120px 0;
  background: var(--white);
}

.industries-header {
  text-align: center;
  margin-bottom: 64px;
}

.industries-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

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

.industry-card {
  background: var(--gray-50);
  padding: 36px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  background: var(--white);
}

.industry-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(197,48,60,.06);
}

.industry-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--red);
}

.industry-card h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.industry-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ---------- Differentiators / Why Section ---------- */
.why-section {
  padding: 120px 0;
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(197,48,60,.03) 0%, transparent 60%);
}

.why-header {
  text-align: center;
  margin-bottom: 72px;
  position: relative;
}

.why-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.why-card {
  padding: 40px 32px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.why-card:hover {
  background: var(--white);
  border-color: rgba(197,48,60,.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-card-number {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.why-card h4 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.why-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 100px 0;
  background: var(--white);
  text-align: center;
}

.cta-section.bg-gray {
  background: var(--gray-50);
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 20px;
}

.cta-inner p {
  font-size: 1.0625rem;
  color: var(--gray-500);
  margin-bottom: 36px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Contact Form ---------- */
.contact-form {
  max-width: 560px;
  margin: 0 auto 8px;
  text-align: left;
}

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

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(197, 48, 60, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.cta-contact-row {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 0;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.cta-contact-row > span {
  position: relative;
  padding: 0 20px;
}

.cta-contact-row > span + span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: var(--gray-300);
}

.cta-contact-row a {
  color: var(--gray-600);
  font-weight: 500;
  transition: color var(--transition);
}

.cta-contact-row a:hover {
  color: var(--red);
}

/* ---------- Footer (Enhanced Light Theme) ---------- */
.footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 72px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--gray-200);
}

.footer-brand p {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 20px;
  max-width: 320px;
}

.footer-brand-contact {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-brand-contact a:hover {
  color: var(--red);
}

.footer-brand-contact svg {
  width: 16px;
  height: 16px;
  color: var(--red);
  flex-shrink: 0;
}

.footer-col h5 {
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--gray-600);
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--red);
}

/* ---------- Hero Locations Strip ---------- */
.hero-locations {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.hero-location-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.hero-location-item:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(197,48,60,.4);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.hero-location-item svg {
  width: 20px;
  height: 20px;
  color: var(--red-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-location-item div {
  display: flex;
  flex-direction: column;
}

.hero-location-city {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
}

.hero-location-area {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.65);
  margin-top: 2px;
}

/* ---------- About Page ---------- */
.about-story {
  padding: 100px 0;
}

/* About page modifiers */
.why-grid--2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .why-grid--2col {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

.locations-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .locations-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .locations-grid--4col {
    grid-template-columns: 1fr;
  }
}

.about-coverage-block {
  margin-bottom: 64px;
}

.about-coverage-block:last-child {
  margin-bottom: 0;
}

.about-coverage-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.about-coverage-sub {
  color: var(--gray-500);
  margin-bottom: 28px;
  font-size: 0.9375rem;
}

.location-card--wide {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 40px;
}

.location-card--wide .location-card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.location-card--wide h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.location-card--wide > div p {
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .location-card--wide {
    flex-direction: column;
    gap: 16px;
    padding: 32px 24px;
  }
}

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

.about-story-content .section-title {
  margin-bottom: 28px;
}

.about-story-content p {
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.0625rem;
}

.about-story-content p:last-child {
  margin-bottom: 0;
}

.about-values-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-value {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about-value-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197,48,60,.06);
  flex-shrink: 0;
}

.about-value-icon svg {
  width: 22px;
  height: 22px;
  color: var(--red);
}

.about-value h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.about-value p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 0;
}

.about-services {
  padding: 100px 0;
}

/* Location Cards */
.about-locations {
  padding: 100px 0;
  background: var(--white);
}

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

.location-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: all var(--transition);
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  background: var(--white);
}

.location-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(197,48,60,.08);
}

.location-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--red);
}

.location-card h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.location-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 20px;
}

.location-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.location-highlights span {
  padding: 4px 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--gray-600);
  font-weight: 500;
}

.location-card:hover .location-highlights span {
  background: var(--gray-50);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.footer-bottom p {
  color: var(--gray-500);
  font-size: 0.8125rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--gray-400);
  font-size: 0.8125rem;
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--red);
}

.footer-locations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
}

.footer-locations span {
  position: relative;
  color: var(--gray-500);
  font-size: 0.8125rem;
  padding: 0 14px;
}

.footer-locations span::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  background: var(--gray-300);
  border-radius: 50%;
}

.footer-locations span:last-child {
  padding-right: 0;
}

.footer-locations span:first-child {
  padding-left: 0;
}

.footer-locations span:last-child::after {
  display: none;
}

/* ---------- Landing Page Shared ---------- */
.page-hero {
  position: relative;
  padding: 180px 0 100px;
  background: linear-gradient(135deg, #f8f9fb 0%, #e8eaef 100%);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,22,40,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,22,40,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .4;
}

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

.page-hero-content {
  max-width: 680px;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.page-hero .section-label--light {
  color: var(--red);
}

.page-hero-description {
  font-size: 1.125rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 540px;
}

/* ---------- Services Grid ---------- */
.services-section {
  padding: 100px 0;
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}

.services-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

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

.service-card {
  padding: 36px 32px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

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

.bg-gray .service-card {
  background: var(--white);
}

.service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197,48,60,.06);
  margin-bottom: 20px;
}

.service-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--red);
}

.service-card h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ---------- Process / Approach Section ---------- */
.process-section {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.process-header {
  text-align: center;
  margin-bottom: 72px;
  position: relative;
}

.process-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.process-steps {
  display: grid;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  align-items: start;
}

.process-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197,48,60,.12);
  border: 1px solid rgba(197,48,60,.3);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--red-light);
  position: relative;
}

.process-step-content h4 {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 10px;
}

.process-step-content p {
  color: rgba(255,255,255,.7);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- Feature Highlight ---------- */
.feature-highlight {
  padding: 100px 0;
}

.feature-highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-highlight-content {
  max-width: 520px;
}

.feature-highlight h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 20px;
}

.feature-highlight p {
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 28px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-list-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--red);
  background: rgba(197,48,60,.08);
  border-radius: 50%;
  padding: 3px;
  margin-top: 1px;
}

.feature-list-item span {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.feature-visual {
  position: relative;
}

.feature-visual-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.feature-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 30%, rgba(197,48,60,.1) 0%, transparent 60%);
}

.visual-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
}

.visual-stat {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

.visual-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.visual-stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.65);
}

/* ---------- Partners / Clients ---------- */
.partners-section {
  padding: 80px 0;
  background: var(--gray-50);
  text-align: center;
}

.partners-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  opacity: .4;
}

.partners-logos span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-700);
  letter-spacing: 0.02em;
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(.4,0,.2,1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ---------- Mobile Nav ---------- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(280px, 80vw);
    height: 100vh;
    height: 100svh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 24px 40px;
    gap: 4px;
    transition: right var(--transition);
    box-shadow: -4px 0 30px rgba(0,0,0,.15);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  /* Force readable colors on the white slide-out panel, even on hero pages */
  .nav-link,
  .navbar--hero .nav-link,
  .navbar--hero.scrolled .nav-link {
    width: 100%;
    padding: 14px 16px;
    color: var(--gray-700);
    background: transparent;
    font-size: 1rem;
  }

  .nav-link:hover,
  .nav-link.active,
  .navbar--hero .nav-link:hover,
  .navbar--hero .nav-link.active,
  .navbar--hero.scrolled .nav-link:hover,
  .navbar--hero.scrolled .nav-link.active {
    color: var(--navy) !important;
    background: var(--gray-50);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
    text-align: center;
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.9375rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  /* When the menu is open, ensure the X icon is visible against the white panel */
  .nav-toggle.open span,
  .navbar--hero .nav-toggle.open 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);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, .45);
    z-index: 998;
    backdrop-filter: blur(2px);
  }

  .nav-overlay.open {
    display: block;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }

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

  .why-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

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

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

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

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

  .feature-highlight-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .hero-content {
    padding: 140px 0 80px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 32px;
  }

  .pillars-grid {
    gap: 20px;
  }

  .pillar-card {
    min-height: 360px;
    padding: 36px 28px;
  }

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

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

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

  .locations-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .footer-locations {
    justify-content: center;
  }

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

  .cta-contact-row {
    flex-direction: column;
    gap: 12px;
  }

  .cta-contact-row > span {
    padding: 0;
  }

  .cta-contact-row > span + span::before {
    display: none;
  }

  .page-hero {
    padding: 140px 0 72px;
  }

  .process-step {
    grid-template-columns: 48px 1fr;
    gap: 20px;
  }

  .process-step-number {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

  .visual-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-contact-row a {
    word-break: break-word;
  }

  .pillar-card {
    padding: 32px 24px;
  }

  .industry-card,
  .why-card,
  .service-card,
  .location-card {
    padding: 28px 24px;
  }
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible,
.nav-cta:focus-visible {
  outline-offset: 4px;
}

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

  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}
