/* Moncton Invest Theme - Design Tokens & Base Styles */

:root {
  --nb-bg: #0B1220;
  --nb-deep: #0E2138;
  --nb-gold: #C4A484;
  --nb-gold-hover: #E7C765;
  --nb-cream: #F7F9FC;
  --ink: #111827;
  --hero-animation-duration: 0.6s;
  --hero-card-hover-duration: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background-color: white;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--nb-deep);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 4px 0;
  font-weight: 600;
}

.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--nb-gold);
  outline-offset: 2px;
}

/* Remove outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Touch target optimization - minimum 44px for mobile */
button,
a.btn,
.cta-button,
.card[role="button"],
.mobile-menu-toggle,
.tab-button,
a.social-icon-link,
a.social-link-item {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Sticky Header */
#header-placeholder {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nb-deep);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Ensure header content has proper styling */
#header-placeholder > * {
  width: 100%;
}

header {
  background-color: var(--nb-deep);
  width: 100%;
}

.header-container {
  position: relative;
  width: 100%;
  background: var(--nb-deep);
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--nb-gold);
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--nb-gold);
}

/* Consolidated CTA Button Base Styles */
.cta-button {
  background: var(--nb-gold);
  color: var(--ink);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 164, 132, 0.3);
}

/* Context-specific CTA button variants */
.action-card .cta-button {
  background: var(--nb-deep);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  border: 2px solid var(--nb-deep);
}

.action-card .cta-button:hover {
  background: var(--nb-bg);
  border-color: var(--nb-bg);
  box-shadow: 0 4px 12px rgba(14, 33, 56, 0.4);
}

.cta-section .cta-button {
  padding: 1.25rem 3rem;
  font-size: 1.15rem;
  border: 2px solid var(--nb-gold);
  box-shadow: 0 6px 20px rgba(196, 164, 132, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
}

.cta-section .cta-button:hover {
  background: var(--nb-gold-hover);
  border-color: var(--nb-gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(196, 164, 132, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .hero-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .hero-card {
    background: rgba(255, 255, 255, 0.9);
  }
}

.header-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-container.hero--card,
.hero-container.hero--split {
  grid-template-columns: 1fr minmax(320px, 400px);
}

.hero-section .hero-container,
.hero-enhanced .hero-container,
.hero-container.hero--split {
  gap: 2.5rem;
}

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

.hero-container::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hero-container,
  .hero-container.hero--split,
  .hero-container.hero--card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Consolidated above - removed duplicate */

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    z-index: 1002;
  }
  
  nav {
    position: relative;
  }
  
  nav ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--nb-deep);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  nav ul.active {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
  }
  
  nav ul li {
    width: 100%;
    text-align: left;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  nav ul li:last-child {
    border-bottom: none;
  }
  
  nav ul li a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }
  
  nav ul li .cta-button {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
  }
}

/* --------------------------------------------------------------
   Home Landing Hero & Interactive Sections
-------------------------------------------------------------- */

@keyframes heroGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes heroGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@keyframes heroFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-modern {
  background: linear-gradient(135deg, var(--nb-deep), #152A50);
  background-size: 200% 200%;
  animation: heroGradientShift 15s ease infinite;
  color: white;
  padding: clamp(2rem, 5vh, 4rem) 2rem;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  will-change: background-position;
}

/* Optimize animations for mobile performance */
@media (prefers-reduced-motion: reduce) {
  .hero-modern {
    animation: none;
    background-position: center;
  }
  
  .hero-modern::before {
    animation: none;
  }
  
  .hero-content h1,
  .hero-content p {
    animation: none;
  }
}

/* Reduce animation intensity on mobile for better performance */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  .hero-modern {
    will-change: auto;
    animation-duration: 25s;
  }
}

.hero-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(196, 164, 132, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(196, 164, 132, 0.15) 0%, transparent 55%);
  pointer-events: none;
  animation: heroGlow 4s ease-in-out infinite;
}

/* Consolidated Hero Heading Styles */
.hero-content h1,
.hero-content-left h1,
.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
  animation: heroFadeInUp var(--hero-animation-duration) ease-out;
  hyphens: auto;
  word-wrap: break-word;
}

/* Hero section specific override (for hero-section, not hero-modern) */
.hero-section .hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
  animation: none;
}

/* Hero enhanced specific override */
.hero-enhanced .hero-content h1,
.hero-enhanced .hero-content-left h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: none;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0.95;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  animation: heroFadeInUp calc(var(--hero-animation-duration) + 0.2s) ease-out;
  animation-fill-mode: both;
  hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-metrics {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.metric-item { display: flex; flex-direction: column; }
.metric-number { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; color: var(--nb-gold); line-height: 1; }
.metric-label { font-size: 0.9rem; opacity: 0.9; margin-top: 0.5rem; }

.commitment-grid {
  display: grid;
  gap: 0.75rem;
}

/* Data & Insight Cards */
.data-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.data-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.data-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--nb-gold), rgba(196, 164, 132, 0.85));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.data-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--nb-gold);
}

.data-card:hover::before {
  transform: scaleX(1);
}

.data-card h4 {
  color: var(--nb-deep);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trend-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.trend-up { color: #10b981; background: rgba(16, 185, 129, 0.12); }
.trend-down { color: #ef4444; background: rgba(239, 68, 68, 0.12); }
.trend-neutral { color: #6b7280; background: rgba(107, 114, 128, 0.12); }

.data-value {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--nb-gold);
  margin: 1rem 0;
  line-height: 1;
}

.data-value.loading { opacity: 0.5; }

.data-meta {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.data-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--nb-deep);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.data-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--nb-deep);
}

.data-card:hover .data-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-15px);
}

.sparkline {
  height: 40px;
  margin-top: 1rem;
  background: linear-gradient(to right, rgba(196, 164, 132, 0.3) 0%, rgba(196, 164, 132, 0.5) 50%, rgba(196, 164, 132, 0.3) 100%);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.sparkline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.1) 2px, rgba(255, 255, 255, 0.1) 4px);
}

/* Services, Value & Action Cards */
.services-grid-modern,
.value-grid,
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card-3d,
.action-card-enhanced,
.value-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all var(--hero-card-hover-duration) ease;
  position: relative;
  overflow: hidden;
}

.service-card-3d::before,
.action-card-enhanced::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(196, 164, 132, 0.1), transparent 65%);
  transform: translate(25%, -25%);
  transition: transform 0.3s ease;
  z-index: 0;
}

.service-card-3d:hover,
.action-card-enhanced:hover,
.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--nb-gold);
}

.service-card-3d:hover::before,
.action-card-enhanced:hover::after {
  transform: translate(10%, -10%) scale(1.1);
}

.service-card-3d > *,
.action-card-enhanced > *,
.value-card > * {
  position: relative;
  z-index: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--nb-gold), rgba(196, 164, 132, 0.9));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(196, 164, 132, 0.3);
}

.value-card h3,
.action-card-enhanced h3,
.service-card-3d h3 {
  color: var(--nb-deep);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.action-card-enhanced .subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1rem;
  color: var(--ink);
  font-weight: 500;
}

.action-card-enhanced p,
.value-card p,
.service-card-3d p {
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Progressive reveal helpers */
.lazy-load {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s;
}

.lazy-load.loaded {
  opacity: 1;
  transform: translateY(0);
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s ease-in-out infinite;
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Consolidated Grid Layout Media Queries */
@media (max-width: 1024px) {
  .hero-container,
  .hero-container.hero--split,
  .hero-container.hero--card,
  .hero-container-enhanced {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .data-dashboard,
  .services-grid-modern,
  .value-grid,
  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-modern {
    padding: clamp(2rem, 6vh, 3.5rem) 1.5rem;
    min-height: auto;
    height: auto;
    display: flex;
    align-items: flex-start;
    overflow: visible;
    padding-top: calc(80px + clamp(1rem, 4vh, 2rem));
  }

  /* Optimize gradient animation for mobile performance */
  .hero-modern::before {
    animation: heroGlow 6s ease-in-out infinite;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vh, 2.5rem);
    width: 100%;
    max-width: 100%;
  }

  /* Content typography optimization */
  .hero-content {
    order: 1;
    width: 100%;
  }

  /* Hero h1 mobile styles consolidated above */

  .hero-content p {
    font-size: clamp(1rem, 3vw, 1.15rem);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    max-width: 100%;
  }

  /* Metrics layout optimization */
  .hero-metrics {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 1.5rem 0;
    justify-content: space-between;
  }

  .metric-item {
    text-align: center;
    flex: 1 1 calc(50% - 0.625rem);
    min-width: 0;
  }

  .metric-number {
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.1;
  }

  .metric-label {
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    margin-top: 0.4rem;
    line-height: 1.3;
    opacity: 0.9;
  }

  /* CTA button optimization */
  .cta-button:not(.action-card .cta-button):not(.cta-section .cta-button) {
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
    font-size: clamp(1rem, 3vw, 1.1rem);
    min-height: 48px;
    margin-top: 1rem;
  }

  /* Commitment cards - touch-friendly optimization */
  .commitment-grid {
    order: 2;
    width: 100%;
    gap: 1rem;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    /* Ensure adequate spacing between interactive elements */
    row-gap: 1rem;
  }

  .commitment-card {
    padding: clamp(1.25rem, 3vh, 1.75rem) clamp(1rem, 4vw, 1.5rem);
    min-height: 64px;
    text-align: left;
    border-radius: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -moz-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    /* Ensure minimum touch target of 44px height */
    min-height: max(64px, 44px);
    /* Add spacing between interactive elements */
    margin-bottom: 0.5rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
  }

  /* Reduce transform on mobile for better performance */
  .commitment-card:hover,
  .commitment-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--nb-gold);
    outline: none;
  }

  /* Enhanced :active state for better touch feedback */
  .commitment-card:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: rgba(196, 164, 132, 0.05);
    border-color: var(--nb-gold);
    transition-duration: 0.1s;
  }

  /* Focus state for keyboard navigation */
  .commitment-card:focus {
    outline: 3px solid var(--nb-gold);
    outline-offset: 2px;
  }

  .commitment-card:focus:not(:focus-visible) {
    outline: none;
  }

  /* Ensure expanded text is readable on mobile */
  .commitment-card .expand-text {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.6;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(14, 33, 56, 0.1);
  }

  .commitment-card strong {
    font-size: clamp(1rem, 3vw, 1.15rem);
    display: block;
    margin-bottom: 0.5rem;
  }

  /* Grid layouts - simplified for mobile performance */
  .data-dashboard,
  .services-grid-modern,
  .value-grid,
  .action-grid,
  .hero-container,
  .hero-container.hero--split,
  .hero-container.hero--card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Reduce card padding on mobile */
  .data-card,
  .service-card-3d,
  .action-card-enhanced,
  .value-card,
  .card,
  .insight-card,
  .content-card,
  .step-card,
  .fit-card,
  .action-card {
    padding: 1.25rem 1rem;
  }

  /* Simplify box-shadows on mobile for better performance */
  .data-card,
  .service-card-3d,
  .action-card-enhanced,
  .value-card,
  .card,
  .insight-card,
  .content-card,
  .commitment-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  /* Ensure text remains readable without zoom */
  body {
    font-size: clamp(16px, 4vw, 18px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* Minimum readable font sizes */
  p,
  .data-meta,
  .metric-label,
  .hero-content p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.6;
    min-height: 1.5em;
  }

  h1,
  .hero-content h1,
  .hero-content-left h1,
  .hero-text h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.2;
  }

  h2,
  .section-title h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
    line-height: 1.3;
  }

  h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    line-height: 1.4;
  }

  h4 {
    font-size: clamp(1.1rem, 3.5vw, 1.25rem);
    line-height: 1.4;
  }

  /* Ensure buttons and links are readable */
  .cta-button,
  button,
  a {
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .hero-modern {
    padding: clamp(1.5rem, 5vh, 2.5rem) 1rem;
    padding-top: calc(70px + clamp(0.75rem, 3vh, 1.5rem));
  }

  /* Hero h1 small mobile styles consolidated above */

  .hero-content p {
    font-size: clamp(0.95rem, 4vw, 1.05rem);
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }

  .hero-metrics {
    gap: 1rem;
    margin: 1.25rem 0;
  }

  .metric-item {
    flex: 1 1 100%;
  }

  .commitment-grid {
    gap: 0.875rem;
  }

  .commitment-card {
    padding: 1.25rem 1rem;
    min-height: max(56px, 44px);
    /* Ensure adequate padding for touch targets */
    padding-top: max(1.25rem, 0.875rem);
    padding-bottom: max(1.25rem, 0.875rem);
  }

  .commitment-card strong {
    font-size: 1rem;
  }

  .cta-button:not(.action-card .cta-button):not(.cta-section .cta-button) {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    min-height: 44px;
  }
  
  .cta-section .cta-button {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
  }
}

/* Main Content */
main {
  min-height: calc(100vh - 400px);
  padding: 2rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-header {
  background: linear-gradient(135deg, var(--nb-deep), #152A50);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Section Styles */
section {
  padding: 3rem 0;
}

/* Enhanced Card Styles */
.card {
  background: white;
  border-radius: 8px;
  padding: 1.875rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid transparent;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card h3 {
  color: var(--nb-deep);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.card p {
  color: var(--ink);
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* Card Icons */
.card-icon {
  width: 60px;
  height: 60px;
  background: var(--nb-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: bold;
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: var(--nb-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--nb-gold);
}

/* Enhanced Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-title h2 {
  font-size: 1.6rem;
  color: var(--nb-deep);
  margin-bottom: 0.5rem;
}

.section-title p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink);
  opacity: 0.8;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title + p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink);
  opacity: 0.8;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Market Insight Cards */
.insight-card {
  background: white;
  color: var(--ink);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border-left: 4px solid var(--nb-gold);
}

.insight-card:hover {
  transform: translateY(-5px);
}

.insight-card h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.insight-value {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.insight-meta {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Footer Styles */
footer {
  background-color: var(--nb-deep);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 2vw, 2rem);
  align-items: start;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-middle {
  gap: 2rem;
  text-align: center;
}

.footer-middle .footer-section {
  text-align: center;
}

.footer-middle .footer-section h4 {
  text-align: center;
}

.footer-middle .social-links {
  align-items: center;
}

.footer-middle .social-link-item {
  justify-content: center;
}

.footer-middle .footer-links {
  gap: 1rem;
}

.footer-middle .footer-links ul {
  margin-top: 0.5rem;
  text-align: center;
  padding: 0;
}

.footer-middle .footer-links ul li {
  text-align: center;
}

.footer-newsletter {
  min-width: 0;
}

.footer-newsletter .newsletter-form {
  max-width: 100%;
  min-width: 0;
}

.footer-newsletter .newsletter-form iframe,
.footer-newsletter .newsletter-form form,
.footer-newsletter .newsletter-form .hs-form,
.footer-newsletter .newsletter-form .hs-form-frame {
  max-width: 100% !important;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }

  .footer-newsletter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-column {
    gap: 1.25rem;
  }

  .footer-container {
    padding: 0 1.5rem;
  }
}

.footer-brand h3 {
  color: var(--nb-gold);
  margin-bottom: 1rem;
}

.footer-brand a.brand-link {
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-brand a.brand-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.footer-brand a.brand-link h3 {
  transition: color 0.3s ease;
}

.footer-brand a.brand-link:hover h3 {
  color: var(--nb-gold-hover);
}

.footer-brand p {
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-section h4 {
  color: var(--nb-gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--nb-gold);
}

.footer-contact {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  color: var(--nb-gold);
  vertical-align: middle;
}

.footer-contact .obf-email,
.footer-contact .obf-phone {
  color: white;
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-contact .obf-email a,
.footer-contact .obf-phone a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact .obf-email a:hover,
.footer-contact .obf-phone a:hover {
  color: var(--nb-gold);
  text-decoration: underline;
}

.phone-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.phone-link:hover {
  color: var(--nb-deep);
  text-decoration: underline;
}

/* Footer Contact Buttons Styling */
.footer-contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
  width: 100%;
}

.footer-contact-btn {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  background: transparent;
  visibility: visible !important;
  opacity: 1 !important;
}

/* LinkedIn Button */
.footer-contact-btn.linkedin-link {
  color: #0077b5;
  border-color: #0077b5;
}

.footer-contact-btn.linkedin-link:hover {
  background: #0077b5;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

/* Email Button - Same color as Phone (Gold) */
.footer-contact-btn.email-link-btn {
  color: var(--nb-gold, #C4A484);
  border-color: var(--nb-gold, #C4A484);
}

.footer-contact-btn.email-link-btn:hover {
  background: var(--nb-gold, #C4A484);
  color: var(--ink, #1a1a1a);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 164, 132, 0.3);
}

/* Phone Button */
.footer-contact-btn.phone-link-btn {
  color: var(--nb-gold, #C4A484);
  border-color: var(--nb-gold, #C4A484);
}

.footer-contact-btn.phone-link-btn:hover {
  background: var(--nb-gold, #C4A484);
  color: var(--ink, #1a1a1a);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 164, 132, 0.3);
}

/* Button Icons */
.footer-contact-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Footer Logo in Column One */
.footer-brand .footer-logo {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-brand .footer-logo a {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-brand .footer-logo a:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.footer-brand .footer-logo img {
  max-width: 120px;
  width: auto;
  height: auto;
  display: block;
  opacity: 0.9;
}

.footer-logo img {
  max-width: 120px;
  height: auto;
  display: block;
}

.footer-logo a {
  display: inline-block;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.social-links a.social-icon-link:hover {
  opacity: 1;
  background-color: var(--nb-gold);
  color: var(--ink);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 12px rgba(196, 164, 132, 0.4);
  border-color: var(--nb-gold);
}

.social-links a.social-icon-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.social-links a.social-icon-link:hover svg {
  transform: scale(1.1);
}

/* Social Link Items with Icons and Text */
.social-links a.social-link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.social-links a.social-link-item:hover {
  opacity: 1;
  color: var(--nb-gold);
  transform: translateX(5px);
}

.social-links .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.social-links a.social-link-item:hover .social-icon {
  background-color: var(--nb-gold);
  color: var(--ink);
  transform: scale(1.1);
}

.social-links .social-icon svg {
  width: 18px;
  height: 18px;
}

.social-links .social-text {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Newsletter Form */
.footer-container .newsletter-form {
  max-width: 640px;
  margin: 1.5rem auto 0;
}

.footer-container .newsletter-form iframe {
  width: 100%;
}

.hubspot-newsletter-form {
  width: 100%;
}

.footer-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--nb-deep);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Button Styles */
.btn {
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--nb-gold);
  color: var(--ink);
  border-color: var(--nb-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 164, 132, 0.4);
  border-color: var(--nb-gold-hover);
}

.btn-secondary {
  background-color: var(--nb-deep);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--nb-bg);
}

/* Form Styles */
form {
  max-width: 600px;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--nb-deep);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px; /* Prevent zoom on iOS focus */
  transition: border-color 0.3s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Ensure input focus doesn't trigger zoom on mobile */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  outline: none;
  border-color: var(--nb-gold);
}

/* Calculator Styles */
.calculator-container {
  max-width: 800px;
  margin: 2rem auto;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calculator-result {
  background: var(--nb-gold);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: center;
}

.calculator-result h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.calculator-result-value {
  font-size: 3rem;
  font-weight: bold;
  color: var(--ink);
}


/* Enhanced Hero Section - Above Fold Standard */
.hero-enhanced {
  background: linear-gradient(135deg, var(--nb-deep), #152A50);
  color: white;
  min-height: 60vh;
  max-height: none;
  height: auto;
  display: flex;
  align-items: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(196, 164, 132, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(196, 164, 132, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container.hero--split { gap: 3rem; }

/* Consolidated above - removed duplicate */

.hero-content-left .subtitle,
.hero-content .subheadline,
.hero-text .subheadline {
  font-size: 1.4rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero-enhanced,
  .hero-section {
    min-height: 70vh;
    max-height: none;
    height: auto;
    padding: 80px 1.5rem 50px;
  }
  
  /* Grid layouts consolidated above */
}

@media (max-width: 640px) {
  .hero-content-left h1,
  .hero-content h1,
  .hero-text h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
}
/* Hero Section with Right Card */
.hero-section {
  background: linear-gradient(135deg, var(--nb-deep), #152A50);
  color: white;
  min-height: 60vh;
  max-height: none;
  height: auto;
  display: flex;
  align-items: center;
  padding: 100px 2rem 60px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(196, 164, 132, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(196, 164, 132, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section .hero-container { gap: 3rem; }

/* Consolidated above - removed duplicate */

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 700px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid rgba(196, 164, 132, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-card h3 {
  color: var(--nb-gold);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}

.commitment-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.commitment-item:last-child {
  border-bottom: none;
}

.commitment-item strong {
  color: var(--nb-gold);
  margin-right: 0.5rem;
  font-size: 1rem;
}

/* Consolidated above - removed duplicate (968px merged with 1024px) */

/* Consolidated above - removed duplicate */

/* Pre-Footer Action Trio */
.pre-footer-trio {
  background: var(--nb-cream);
  padding: 4rem 2rem;
  margin-top: 4rem;
}

.pre-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Enhanced Action Cards */
.action-card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--nb-gold);
  text-align: center;
}

.action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.action-card h3 {
  color: var(--nb-deep);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.action-card p {
  color: var(--ink);
  margin-bottom: 1.5rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* Consolidated above - removed duplicate */

@media (max-width: 768px) {
  .pre-footer-container {
    grid-template-columns: 1fr;
  }
  
  /* Force 3-column grids to stack on mobile */
  .card-grid[style*="repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  
  .card {
    padding: 20px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.hidden {
  display: none;
}


/* Consolidated above - removed duplicate */

/* Enhanced Section Styling */
.section {
  padding: 80px 0;
}

.section-title + p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink);
  opacity: 0.8;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Enhanced Card Hover Effects */
.card {
  border-left: 4px solid transparent;
}

.card:hover {
  border-left-color: var(--nb-gold);
}



/* Clickable Card Styles */
.clickable-card {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.clickable-card:hover {
  text-decoration: none;
  color: inherit;
}

/* Tab Styles for Legal Page */
.legal-tabs {
  max-width: 900px;
  margin: 3rem auto;
}

.tab-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  border-bottom: 2px solid #e5e7eb;
  gap: 0;
}

.tab-item {
  margin: 0;
}

.tab-button {
  background: none;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s ease;
  position: relative;
}

.tab-button:hover {
  color: var(--nb-gold);
  background: var(--nb-cream);
}

.tab-button[aria-selected="true"],
.tab-button.active {
  color: var(--nb-deep);
  border-bottom-color: var(--nb-gold);
}

.tab-panel {
  display: none;
  padding: 2rem 0;
  animation: fadeIn 0.3s ease;
}

.tab-panel[aria-hidden="false"],
.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content h4 {
  color: var(--nb-deep);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.tab-content h4:first-child {
  margin-top: 0;
}

.tab-content p {
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.tab-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.tab-content ul li {
  margin-bottom: 0.75rem;
  color: var(--ink);
  line-height: 1.6;
  opacity: 0.9;
}

.tab-content a {
  color: var(--nb-gold);
  text-decoration: none;
}

.tab-content a:hover {
  text-decoration: underline;
}

.tab-content .last-updated {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9rem;
  opacity: 0.7;
  font-style: italic;
}

.hubspot-section {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--nb-cream);
  border-radius: 8px;
  border-left: 4px solid var(--nb-gold);
}

.hubspot-section h4 {
  color: var(--nb-deep);
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.legal-contact {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--nb-cream);
  border-radius: 8px;
}

.legal-contact p {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.legal-contact a {
  color: var(--nb-gold);
  text-decoration: none;
  font-weight: 600;
}

.legal-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .tab-list {
    flex-direction: column;
    border-bottom: none;
  }
  
  .tab-button {
    border-bottom: none;
    border-left: 3px solid transparent;
    text-align: left;
    width: 100%;
  }
  
  .tab-button[aria-selected="true"],
  .tab-button.active {
    border-bottom-color: transparent;
    border-left-color: var(--nb-gold);
  }
  
  .tab-content {
    padding: 1.5rem 0;
  }
}

/* Email Obfuscation Styles */
.email-link {
  color: var(--nb-gold);
  text-decoration: none;
}

.email-link:hover {
  text-decoration: underline;
}

/* Enhanced About Page Tab Styles */
.tab-content h2 {
  color: var(--nb-deep);
  font-size: 2.2rem;
  font-weight: 700;
}

.tab-content .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.tab-content .process-step {
  transition: transform 0.3s ease;
}

.tab-content .process-step:hover {
  transform: translateY(-5px);
}

/* Enhanced list item styling for about page */
.tab-content div[style*="display: flex"][style*="gap: 1rem"]:hover {
  transform: translateX(5px);
  transition: transform 0.2s ease;
}

/* Enhanced Tab Navigation for About Page */
.legal-tabs .tab-list {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 3rem;
  padding: 0;
  list-style: none;
  background: #F7F9FC;
  padding: 0.5rem;
  border-radius: 12px;
}

.legal-tabs .tab-button {
  background: transparent;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  margin: 0;
  opacity: 0.7;
}

.legal-tabs .tab-button:hover {
  background: rgba(196, 164, 132, 0.1);
  color: var(--nb-deep);
  opacity: 1;
  transform: translateY(-2px);
}

.legal-tabs .tab-button.active {
  background: white;
  color: var(--nb-deep);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--nb-gold);
}

.legal-tabs .tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--nb-gold);
  border-radius: 2px 2px 0 0;
}

/* Enhanced Advisor Profile Section */
.advisor-profile {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  margin: 3rem 0 4rem;
  align-items: start;
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(196, 164, 132, 0.2);
  border-left: 6px solid var(--nb-gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advisor-profile:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.advisor-image-wrapper {
  position: relative;
}

.advisor-image-wrapper img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border: 5px solid var(--nb-gold);
  transition: transform 0.3s ease;
}

.advisor-image-wrapper:hover img {
  transform: scale(1.02);
}

.advisor-content h4 {
  color: var(--nb-gold);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  border-bottom: 2px solid rgba(196, 164, 132, 0.2);
  padding-bottom: 0.75rem;
}

.advisor-content p {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  color: var(--ink);
  font-weight: 400;
}

.advisor-content strong {
  color: var(--nb-deep);
  font-weight: 700;
}

/* Modern Content Cards */
.content-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(196, 164, 132, 0.15);
  margin-bottom: 3rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.content-card h4 {
  color: var(--nb-deep);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.content-card h4::before {
  content: '';
  width: 6px;
  height: 45px;
  background: var(--nb-gold);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(196, 164, 132, 0.4);
}

.section-divider {
  height: 3px;
  background: linear-gradient(to right, transparent, var(--nb-gold), transparent);
  margin: 4rem 0;
  border-radius: 2px;
}

/* Enhanced Step Cards */
.step-card {
  display: flex;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--nb-gold);
  transition: all 0.3s ease;
  margin-bottom: 1.25rem;
}

.step-card:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  border-left-width: 6px;
}

.step-number {
  min-width: 40px;
  height: 40px;
  background: var(--nb-gold);
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(196, 164, 132, 0.4);
  flex-shrink: 0;
}

.step-card p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--ink);
  font-weight: 400;
}

/* Enhanced Commitment Cards with Touch Optimizations */
.commitment-card {
  text-align: center;
  padding: 1.5rem 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(196, 164, 132, 0.2);
  background: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 80px;
  min-width: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

/* Enhanced touch-friendly interaction states */
.commitment-card:focus-visible {
  outline: 3px solid var(--nb-gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(196, 164, 132, 0.2);
}

.commitment-card:active {
  transform: scale(0.98);
  background-color: rgba(196, 164, 132, 0.05);
  border-color: var(--nb-gold);
  transition-duration: 0.1s;
}

/* Improved touch feedback for commitment cards */
@media (hover: none) and (pointer: coarse) {
  .commitment-card:active {
    transform: scale(0.96);
    background-color: rgba(196, 164, 132, 0.08);
  }
}

.commitment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--nb-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.commitment-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--nb-gold);
}

.commitment-card:hover::before {
  transform: scaleX(1);
}

.commitment-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--nb-gold), rgba(196, 164, 132, 0.9));
  border-radius: 16px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(196, 164, 132, 0.4);
  border: 3px solid rgba(196, 164, 132, 0.2);
  transition: transform 0.3s ease;
}

.commitment-card:hover .commitment-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Reduce animation on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
  .commitment-card:hover .commitment-icon {
    transform: scale(1.05);
  }
}

.commitment-card h4 {
  color: var(--nb-deep);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.commitment-card p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
  font-weight: 400;
}

/* Expand text styling */
.commitment-card .expand-text {
  display: none;
  color: var(--ink);
  opacity: 0.85;
}

.commitment-card[aria-expanded="true"] .expand-text {
  display: block;
  animation: heroFadeInUp 0.3s ease-out;
}

.commitment-card strong {
  display: block;
  color: var(--nb-deep);
  font-weight: 700;
}

/* Enhanced CTA Section */
.cta-section {
  margin-top: 4rem;
  padding: 4rem 3rem;
  background: linear-gradient(135deg, var(--nb-gold), rgba(196, 164, 132, 0.95));
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(196, 164, 132, 0.4);
  border: 2px solid rgba(196, 164, 132, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-section h3 {
  color: var(--ink);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--ink);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Consolidated above - removed duplicate */

/* Process Chart Enhancement */
.process-chart-container {
  margin: 3rem 0;
  position: relative;
  background: linear-gradient(to bottom, rgba(196, 164, 132, 0.05), transparent);
  padding: 4rem 2.5rem;
  border-radius: 20px;
  border: 2px solid rgba(196, 164, 132, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.process-step-card {
  position: relative;
  z-index: 2;
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.process-step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--nb-gold);
}

.process-step-number {
  background: linear-gradient(135deg, var(--nb-gold), rgba(196, 164, 132, 0.9));
  color: var(--ink);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(196, 164, 132, 0.5);
  border: 5px solid white;
  letter-spacing: -0.5px;
  transition: transform 0.3s ease;
}

.process-step-card:hover .process-step-number {
  transform: scale(1.1) rotate(5deg);
}

/* Fit For Cards */
.fit-card {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-left: 6px solid var(--nb-gold);
  transition: all 0.3s ease;
  margin-bottom: 1.25rem;
}

.fit-card:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-left-width: 8px;
}

.fit-card p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--ink);
  font-weight: 400;
}

.fit-card strong {
  color: var(--nb-deep);
  font-weight: 700;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, var(--nb-cream), rgba(247, 249, 252, 0.8));
  padding: 2.5rem;
  border-radius: 16px;
  border-left: 8px solid var(--nb-gold);
  border: 2px solid rgba(196, 164, 132, 0.2);
  border-left: 8px solid var(--nb-gold);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  margin-top: 2rem;
}

.highlight-box p {
  font-size: 1.15rem;
  line-height: 2;
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.highlight-box strong {
  color: var(--nb-deep);
  font-weight: 700;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .advisor-profile {
    grid-template-columns: 250px 1fr;
    gap: 2.5rem;
  }
  
  .commitment-card {
    padding: 2.5rem 1.5rem;
  }
  
  .content-card {
    padding: 2.5rem 1.5rem;
  }
  
  .process-chart-container {
    padding: 2.5rem 1.5rem;
  }
  
  .cta-section {
    padding: 3rem 2rem;
  }
  
  .tab-content div[style*="grid-template-columns: repeat(4, 1fr)"]:not(.process-chart) {
    grid-template-columns: 1fr !important;
  }
  
  .process-chart {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .process-arrow {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .about-page .page-header {
    padding: 4rem 1.5rem 3rem;
  }
  
  .about-page .page-header h1 {
    font-size: 2.5rem;
  }
  
  .about-page .page-header p {
    font-size: 1.15rem;
  }
  
  .legal-tabs .tab-list {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  .legal-tabs .tab-button {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
  }
  
  .legal-tabs .tab-button.active::after {
    display: none;
  }
  
  .advisor-profile {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 2rem;
  }
  
  .advisor-image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .content-card {
    padding: 2.5rem 2rem;
  }
  
  .content-card h4 {
    font-size: 1.75rem;
    padding-left: 1.5rem;
  }
  
  .content-card h4::before {
    width: 6px;
    height: 40px;
  }
  
  .process-chart-container {
    padding: 3rem 1.5rem;
  }
  
  .cta-section {
    padding: 4rem 2.5rem;
  }
  
  .cta-section h3 {
    font-size: 1.75rem;
  }
  
  .cta-section p {
    font-size: 1.15rem;
  }
  
  /* CTA button mobile styles consolidated above */
  
  .tab-content div[style*="grid-template-columns: repeat(4, 1fr)"]:not(.process-chart) {
    grid-template-columns: 1fr !important;
  }
  
  .process-chart {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  
  .process-arrow {
    display: none !important;
  }
  
  .step-card {
    padding: 2rem 1.5rem;
  }
  
  .fit-card {
    padding: 2rem 1.5rem;
  }
}

.newsletter-form-wrapper {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 33, 56, 0.12);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.newsletter-form-wrapper .newsletter-form {
  max-width: 100%;
  margin: 0;
}

/* ============================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Enhanced Touch Interaction Optimizations */
/* Add touch-action to all interactive elements for better scrolling */
button,
a,
.cta-button,
.commitment-card,
.data-card,
.service-card-3d,
.action-card-enhanced,
.value-card,
.card,
.insight-card,
.tab-button,
input,
textarea,
select,
.clickable-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: transparent;
}

/* Ensure all touch targets are at least 44px */
button,
.cta-button,
.mobile-menu-toggle,
.tab-button,
.commitment-card,
a.social-icon-link,
a.social-link-item,
a.btn,
.card[role="button"] {
  min-height: 44px;
  min-width: 44px;
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover transforms for touch devices */
  .data-card:hover,
  .data-card:focus-visible {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .service-card-3d:hover,
  .action-card-enhanced:hover,
  .value-card:hover,
  .card:hover,
  .insight-card:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .commitment-card:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .cta-button:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(196, 164, 132, 0.3);
  }

  .step-card:hover,
  .fit-card:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .tab-content .card:hover,
  .tab-content .process-step:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }

  .process-step-card:hover .process-step-number {
    transform: none;
  }

  /* Use active states instead for touch feedback */
  .data-card:active {
    transform: scale(0.98);
  }

  .service-card-3d:active,
  .action-card-enhanced:active,
  .value-card:active,
  .card:active,
  .insight-card:active {
    transform: scale(0.98);
  }

  /* Enhanced :active states for better touch feedback */
  .data-card:active {
    transform: scale(0.98);
    background-color: rgba(196, 164, 132, 0.03);
  }

  .service-card-3d:active,
  .action-card-enhanced:active,
  .value-card:active,
  .card:active,
  .insight-card:active {
    transform: scale(0.98);
    background-color: rgba(196, 164, 132, 0.03);
  }

  .commitment-card:active {
    transform: scale(0.96);
    background-color: rgba(196, 164, 132, 0.08);
  }

  .cta-button:active {
    transform: scale(0.96);
    background-color: var(--nb-gold-hover);
    transition-duration: 0.1s;
  }

  button:active,
  .tab-button:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
  }

  a:active {
    opacity: 0.8;
  }
}

/* Mobile-specific optimizations (max-width: 768px) */
@media (max-width: 768px) {

  /* Reduce transform distances on hover effects for mobile */
  .data-card:hover,
  .data-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .service-card-3d:hover,
  .action-card-enhanced:hover,
  .value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .card:hover,
  .insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }

  .commitment-card:hover,
  .commitment-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .step-card:hover,
  .fit-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  .tab-content .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .tab-content .process-step:hover {
    transform: translateY(-4px);
  }

  .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 164, 132, 0.3);
  }
}

/* Simplify gradients on low-end devices */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  /* Use simpler gradients for better performance on mobile */
  .hero-modern::before {
    background: radial-gradient(circle at center, rgba(196, 164, 132, 0.12) 0%, transparent 70%);
  }

  .service-card-3d::before,
  .action-card-enhanced::after {
    background: radial-gradient(circle, rgba(196, 164, 132, 0.08), transparent 70%);
  }

  .service-icon,
  .process-step-number {
    background: var(--nb-gold);
  }

  .commitment-icon {
    background: var(--nb-gold);
  }
}

/* Additional touch target optimizations for small screens */
@media (max-width: 480px) {
  /* Ensure minimum touch targets on very small screens */
  button,
  .cta-button,
  .mobile-menu-toggle,
  .tab-button,
  .commitment-card {
    min-height: 48px;
    min-width: 48px;
    padding: 0.875rem 1.25rem;
  }

  /* Enhanced touch feedback for very small screens */
  .commitment-card:active {
    transform: scale(0.95);
    background-color: rgba(196, 164, 132, 0.1);
  }

  /* Reduce animation complexity further on very small devices */
  .hero-modern {
    animation-duration: 30s;
  }

  /* Further reduce transform distances */
  .data-card:hover,
  .service-card-3d:hover,
  .action-card-enhanced:hover,
  .value-card:hover,
  .card:hover,
  .insight-card:hover,
  .commitment-card:hover {
    transform: translateY(-2px);
  }

  .step-card:hover,
  .fit-card:hover {
    transform: translateX(2px);
  }

  /* Additional card padding optimizations for very small screens */
  .data-card,
  .service-card-3d,
  .action-card-enhanced,
  .value-card,
  .card,
  .insight-card,
  .content-card,
  .step-card,
  .fit-card {
    padding: 1rem 0.875rem;
  }

  /* Further simplify box-shadows on very small devices */
  .data-card,
  .service-card-3d,
  .action-card-enhanced,
  .value-card,
  .card,
  .insight-card,
  .content-card,
  .commitment-card {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  }

  /* Ensure minimum text sizes for readability */
  body {
    font-size: 16px;
  }

  p,
  .data-meta,
  .metric-label {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  h2 {
    font-size: clamp(1.3rem, 6vw, 1.75rem);
  }

  h3 {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
  }

  h4 {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }
}

/* Additional mobile optimizations consolidated above in main 768px query */

/* Mobile Responsive - Footer Contact Buttons */
@media (max-width: 768px) {
  .footer-contact-btn {
    min-width: 100%;
    justify-content: center;
  }
  
  .footer-logo img {
    max-width: 100px;
  }
}

/* Remove any conflicting styles from about page */
.footer-brand .linkedin-link,
.footer-brand .email-link-btn,
.footer-brand .phone-link-btn {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.footer-brand .footer-contact-btn .contact-btn-text {
  display: inline !important;
}
