/**
 * OPTION A: ONE-PAGE SCROLLABLE SITE
 * Nwestco Website Redesign
 *
 * Complete styles for single-page scrollable experience
 * Mobile-first responsive design (375px → 1920px)
 */

/* ============================================================
   GLOBAL STYLES & UTILITIES
   ============================================================ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for sticky header */
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-primary);
  color: var(--nwestco-neutral-900);
  background-color: var(--nwestco-white);
  line-height: var(--leading-normal);
  overflow-x: hidden;
}

/* Text utilities */
.text-center { text-align: center; }
.text-white { color: var(--nwestco-white) !important; }

/* Skip navigation */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--nwestco-blue);
  color: var(--nwestco-white);
  padding: var(--space-4);
  text-decoration: none;
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-nav:focus {
  top: 0;
  outline: 3px solid var(--nwestco-green);
  outline-offset: 0;
}


/* ============================================================
   STICKY HEADER
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--nwestco-white);
  border-bottom: 1px solid var(--nwestco-neutral-100);
  z-index: var(--z-sticky);
  transition: box-shadow var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height-mobile);
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .main-nav {
    height: var(--header-height);
  }
}

.nav-brand .logo {
  height: 55px;
  width: auto;
  display: block;
}

.nav-menu {
  display: none;
  list-style: none;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: var(--nwestco-neutral-700);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  text-decoration: none;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--nwestco-blue);
  border-bottom-color: var(--nwestco-blue);
}

.nav-menu a.active {
  color: var(--nwestco-blue);
  border-bottom-color: var(--nwestco-blue);
}

.nav-cta {
  display: none;
  gap: var(--space-4);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}

.mobile-menu-toggle .hamburger {
  width: 100%;
  height: 3px;
  background-color: var(--nwestco-blue);
  border-radius: 2px;
  transition: all var(--transition-fast);
  transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile menu expanded */
.nav-menu.mobile-expanded {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  right: 0;
  background: var(--nwestco-white);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  gap: var(--space-6);
  max-height: calc(100vh - var(--header-height-mobile));
  overflow-y: auto;
}

/* Desktop navigation */
@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
  }

  .nav-cta {
    display: flex;
  }
}

/* Dropdown menu styles */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.8em;
}

.dropdown-menu {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 8px 0;
  margin-top: 8px;
  list-style: none;
  z-index: 100;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu {
  display: block !important;
  visibility: visible;
  opacity: 1;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--nwestco-neutral-700);
  font-weight: var(--font-normal);
  border-bottom: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--nwestco-blue-pale);
  color: var(--nwestco-blue);
  border-bottom: none;
}

/* Mobile dropdown - only show when mobile menu is expanded */
@media (max-width: 767px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: var(--nwestco-neutral-50);
    margin: var(--space-2) 0;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    display: none;
  }

  /* Show dropdown in mobile expanded menu */
  .nav-menu.mobile-expanded .dropdown-menu {
    display: block;
  }

  .nav-dropdown > a::after {
    content: '';
  }
}


/* ============================================================
   HERO SECTION
   ============================================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nwestco-white);
  overflow: hidden;
  padding: calc(var(--header-height) + var(--space-16)) var(--space-6) var(--space-20);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #25617C url('../../shared/assets/images/Image_202512030939.jpeg') center center/cover no-repeat;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 97, 124, 0.65) 0%, rgba(26, 68, 86, 0.7) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: var(--font-black);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: var(--nwestco-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  color: var(--nwestco-white);
  font-weight: var(--font-normal);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero-phone {
  margin-bottom: var(--space-12);
}

.emergency-phone {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--nwestco-white);
  text-decoration: none;
  border: 2px solid var(--nwestco-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  display: inline-block;
  transition: all var(--transition-fast);
}

.emergency-phone:hover {
  background: var(--nwestco-white);
  color: var(--nwestco-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--nwestco-white);
  opacity: 0.8;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator .chevron {
  animation: bounce 1.5s ease-in-out infinite;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .hero-section {
    min-height: calc(100vh - var(--header-height-mobile));
    padding: var(--space-12) var(--space-4);
  }

  .hero-title {
    font-size: var(--text-5xl);
  }

  .hero-subtitle {
    font-size: var(--text-sm);
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

/* Desktop hero */
@media (min-width: 1280px) {
  .hero-title {
    font-size: 5rem;
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }
}


/* ============================================================
   SECTION LAYOUTS
   ============================================================ */

.section {
  padding: var(--section-padding-y-mobile) var(--space-6);
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: var(--section-padding-y) var(--space-6);
  }
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--nwestco-neutral-700);
  margin-bottom: var(--space-12);
  line-height: var(--leading-tight);
}

.section-subtitle {
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
  opacity: 0.9;
}

/* Section variants */
.section-alt {
  background-color: var(--nwestco-neutral-50);
}

.section-blue {
  background: linear-gradient(135deg, var(--nwestco-blue) 0%, var(--nwestco-blue-dark) 100%);
  color: var(--nwestco-white);
}

.section-dark {
  background: linear-gradient(135deg, var(--nwestco-neutral-700) 0%, var(--nwestco-neutral-900) 100%);
  color: var(--nwestco-white);
}

.section-contact {
  background: linear-gradient(135deg, var(--nwestco-blue-dark) 0%, var(--nwestco-blue-darker) 100%);
  color: var(--nwestco-white);
}


/* ============================================================
   PAIN POINTS SECTION
   ============================================================ */

.pain-points-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pain-points-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pain-point-card {
  background: var(--nwestco-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.pain-icon {
  color: var(--nwestco-blue);
  margin-bottom: var(--space-4);
}

.pain-point-card h3 {
  font-size: var(--text-xl);
  color: var(--nwestco-neutral-700);
  margin-bottom: var(--space-4);
  font-weight: var(--font-bold);
}

.pain-point-card p {
  color: var(--nwestco-neutral-600);
  line-height: var(--leading-relaxed);
  margin: 0;
}


/* ============================================================
   MARKETS SECTION
   ============================================================ */

.markets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .markets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .markets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.market-card {
  background: var(--nwestco-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.market-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.market-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.market-card:hover .market-image img {
  transform: scale(1.05);
}

.market-content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.market-card h3 {
  font-size: var(--text-xl);
  color: var(--nwestco-neutral-700);
  margin-bottom: var(--space-4);
  font-weight: var(--font-bold);
}

.market-card p {
  color: var(--nwestco-neutral-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.market-card .btn {
  margin-top: auto;
  align-self: flex-start;
}


/* ============================================================
   SERVICES LIFECYCLE SECTION
   ============================================================ */

.services-wheel {
  max-width: 1200px;
  margin: 0 auto var(--space-12);
}

.services-center {
  text-align: center;
  padding: var(--space-8);
  margin-bottom: var(--space-10);
}

.services-center h3 {
  font-size: var(--text-3xl);
  color: var(--nwestco-white);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
}

.services-center p {
  font-size: var(--text-lg);
  color: var(--nwestco-white);
  opacity: 0.9;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

@media (min-width: 1280px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
  text-align: center;
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.service-item h4 {
  font-size: var(--text-lg);
  color: var(--nwestco-white);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
}

.service-item p {
  color: var(--nwestco-white);
  opacity: 0.9;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin: 0;
}

.services-closing {
  font-size: var(--text-lg);
  margin: var(--space-10) auto var(--space-8);
  max-width: 800px;
  line-height: var(--leading-relaxed);
}


/* ============================================================
   WHY NWESTCO / UNIQUES SECTION
   ============================================================ */

.uniques-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .uniques-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.unique-card {
  background: var(--nwestco-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
}

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

.unique-icon {
  color: var(--nwestco-blue);
  margin-bottom: var(--space-6);
  display: flex;
  justify-content: center;
}

.unique-card h3 {
  font-size: var(--text-xl);
  color: var(--nwestco-neutral-700);
  margin-bottom: var(--space-4);
  font-weight: var(--font-bold);
}

.unique-card p {
  color: var(--nwestco-neutral-600);
  line-height: var(--leading-relaxed);
  margin: 0;
}


/* ============================================================
   SERVICE COMMITMENT SECTION
   ============================================================ */

.commitment-stat {
  text-align: center;
  margin-bottom: var(--space-12);
}

.stat-number {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: var(--font-black);
  color: var(--nwestco-white);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.stat-description {
  font-size: var(--text-xl);
  color: var(--nwestco-white);
  opacity: 0.95;
}

.commitment-points {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.commitment-point {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-lg);
  color: var(--nwestco-white);
}

.commitment-point .checkmark {
  font-size: var(--text-2xl);
  color: var(--nwestco-green);
  font-weight: var(--font-bold);
  flex-shrink: 0;
}


/* ============================================================
   GEOGRAPHIC COVERAGE SECTION
   ============================================================ */

.map-container {
  max-width: 900px;
  margin: 0 auto var(--space-10);
}

.map-placeholder {
  background: var(--nwestco-neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.map-text {
  font-size: var(--text-xl);
  color: var(--nwestco-neutral-500);
  margin-bottom: var(--space-8);
}

.branch-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  width: 100%;
}

.branch-item {
  background: var(--nwestco-white);
  padding: var(--space-4);
  border-radius: var(--radius-base);
  font-weight: var(--font-semibold);
  color: var(--nwestco-neutral-700);
}


/* ============================================================
   BRAND PARTNERS SECTION - SCROLLING CAROUSEL
   ============================================================ */

/* Logo Carousel Container */
.logo-carousel {
  width: 100%;
  overflow: hidden;
  padding: var(--space-6) 0;
  position: relative;
  background: linear-gradient(
    90deg,
    var(--nwestco-white) 0%,
    transparent 5%,
    transparent 95%,
    var(--nwestco-white) 100%
  );
}

.logo-carousel::before,
.logo-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.logo-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--nwestco-white) 0%, transparent 100%);
}

.logo-carousel::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, var(--nwestco-white) 100%);
}

/* Carousel Track - holds all logos in a row */
.logo-carousel-track {
  display: flex;
  gap: var(--space-10);
  width: max-content;
  animation: scrollLeft 60s linear infinite;
}

/* Reverse direction for second row */
.logo-carousel-reverse .logo-carousel-track {
  animation: scrollRight 55s linear infinite;
}

/* Pause animation on hover */
.logo-carousel:hover .logo-carousel-track {
  animation-play-state: paused;
}

/* Individual Logo Styling */
.carousel-logo {
  width: 180px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-normal);
  padding: var(--space-2);
}

.carousel-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Larger logos on desktop */
@media (min-width: 768px) {
  .carousel-logo {
    width: 220px;
    height: 120px;
  }
}

@media (min-width: 1024px) {
  .carousel-logo {
    width: 260px;
    height: 140px;
  }
}

/* Scrolling Animations */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .logo-carousel-track {
    animation: none;
  }

  .logo-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.brands-subtitle {
  font-size: var(--text-lg);
  color: var(--nwestco-neutral-600);
  margin-top: var(--space-8);
}


/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--nwestco-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

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

.testimonial-photo {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--nwestco-neutral-100);
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-quote {
  padding: var(--space-6);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--nwestco-neutral-700);
  font-style: italic;
  margin: 0;
  border-left: 4px solid var(--nwestco-blue);
  background: var(--nwestco-blue-tint);
}

.testimonial-attribution {
  padding: var(--space-6);
  padding-top: 0;
}

.testimonial-name {
  font-weight: var(--font-bold);
  color: var(--nwestco-neutral-700);
  margin-bottom: var(--space-1);
}

.testimonial-title {
  font-size: var(--text-sm);
  color: var(--nwestco-neutral-600);
  margin-bottom: var(--space-1);
}

.testimonial-location {
  font-size: var(--text-sm);
  color: var(--nwestco-neutral-500);
}


/* ============================================================
   ABOUT & CAREERS SECTION
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-card {
  background: var(--nwestco-white);
  padding: var(--space-10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.about-card h3 {
  font-size: var(--text-2xl);
  color: var(--nwestco-neutral-700);
  margin-bottom: var(--space-6);
  font-weight: var(--font-bold);
}

.about-card p {
  color: var(--nwestco-neutral-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.about-card .btn {
  margin-top: auto;
  align-self: flex-start;
}


/* ============================================================
   CORE VALUES SECTION
   ============================================================ */

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .values-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.value-item {
  background: var(--nwestco-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
}

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

.value-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--nwestco-green);
  color: var(--nwestco-white);
  border-radius: 50%;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.value-item h3 {
  font-size: var(--text-lg);
  color: var(--nwestco-neutral-700);
  margin-bottom: var(--space-3);
  font-weight: var(--font-bold);
}

.value-item p {
  color: var(--nwestco-neutral-600);
  line-height: var(--leading-relaxed);
  font-size: var(--text-sm);
  margin: 0;
}


/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px) {
  .contact-buttons {
    flex-direction: column;
  }

  .contact-buttons .btn {
    width: 100%;
  }
}

.contact-divider {
  text-align: center;
  margin: var(--space-12) 0;
  position: relative;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.contact-divider::before {
  left: 0;
}

.contact-divider::after {
  right: 0;
}

.contact-divider span {
  color: var(--nwestco-white);
  background: transparent;
  padding: 0 var(--space-4);
  font-size: var(--text-lg);
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  padding: var(--space-10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-weight: var(--font-semibold);
  color: var(--nwestco-neutral-700);
  font-size: var(--text-base);
}

.form-group .required {
  color: var(--nwestco-error);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--input-padding-y) var(--input-padding-x);
  border: var(--input-border-width) solid var(--input-border-color);
  border-radius: var(--input-border-radius);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--nwestco-neutral-900);
  background: var(--nwestco-white);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--input-border-color-focus);
  box-shadow: var(--shadow-focus);
}

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

.form-hint {
  font-size: var(--text-sm);
  color: var(--nwestco-neutral-500);
}

.form-submit {
  margin-top: var(--space-8);
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--nwestco-neutral-700);
  color: var(--nwestco-neutral-100);
  padding: var(--space-20) var(--space-6) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-column h4 {
  color: var(--nwestco-white);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: var(--space-2);
}

.footer-column a {
  color: var(--nwestco-neutral-200);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--nwestco-white);
  text-decoration: underline;
}

.footer-contact {
  text-align: center;
  padding: var(--space-8) 0;
  border-top: 1px solid var(--nwestco-neutral-600);
  border-bottom: 1px solid var(--nwestco-neutral-600);
  margin-bottom: var(--space-8);
}

.footer-contact p {
  margin-bottom: var(--space-3);
  color: var(--nwestco-neutral-100);
}

.footer-contact a {
  color: var(--nwestco-blue-light);
  text-decoration: none;
  font-weight: var(--font-semibold);
}

.footer-contact a:hover {
  color: var(--nwestco-white);
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.footer-social a {
  color: var(--nwestco-neutral-200);
  text-decoration: none;
  font-weight: var(--font-semibold);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--nwestco-white);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.footer-legal a {
  color: var(--nwestco-neutral-300);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--nwestco-white);
  text-decoration: underline;
}

.footer-copyright {
  text-align: center;
  color: var(--nwestco-neutral-400);
  font-size: var(--text-sm);
}


/* ============================================================
   ANIMATIONS
   ============================================================ */

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }
.fade-in:nth-child(7) { animation-delay: 0.7s; }


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

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

  .scroll-indicator {
    animation: none;
  }

  .fade-in {
    opacity: 1;
    animation: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .hero-overlay {
    background: rgba(0, 0, 0, 0.8);
  }

  .btn {
    border-width: 3px;
  }
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--nwestco-blue);
  outline-offset: 2px;
}


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

@media (max-width: 767px) {
  .section-title {
    font-size: var(--text-3xl);
  }

  .section-subtitle {
    font-size: var(--text-lg);
  }
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}


/* ============================================================
   FLIP BOX WIDGETS - SERVICES
   ============================================================ */

.flip-box-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .flip-box-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .flip-box-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

@media (min-width: 1400px) {
  .flip-box-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flip-box {
  perspective: 1000px;
  height: 280px;
}

.flip-box-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-box:hover .flip-box-inner,
.flip-box.flipped .flip-box-inner {
  transform: rotateY(180deg);
}

.flip-box-front,
.flip-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
}

.flip-box-front {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--nwestco-white);
}

.flip-box-back {
  background: var(--nwestco-white);
  color: var(--nwestco-neutral-700);
  transform: rotateY(180deg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
}

.flip-box-back .btn {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
}

.flip-box-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.flip-box-front .flip-box-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--nwestco-white);
  margin-bottom: var(--space-3);
}

.flip-box-front .flip-box-teaser {
  font-size: var(--text-sm);
  color: var(--nwestco-white);
  opacity: 0.9;
  line-height: var(--leading-normal);
}

.flip-box-back .flip-box-title {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--nwestco-blue);
  margin-bottom: var(--space-2);
}

.flip-box-back .flip-box-description {
  font-size: var(--text-xs);
  color: var(--nwestco-neutral-600);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-3);
  flex-grow: 1;
}

.flip-box-back .flip-box-cta {
  margin-top: auto;
}

/* Touch indicator for mobile */
.flip-box-touch-hint {
  display: none;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-2);
}

@media (hover: none) {
  .flip-box-touch-hint {
    display: block;
  }

  .flip-box:hover .flip-box-inner {
    transform: none;
  }

  .flip-box.flipped .flip-box-inner {
    transform: rotateY(180deg);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .flip-box-inner {
    transition: none;
  }

  .flip-box:hover .flip-box-inner,
  .flip-box.flipped .flip-box-inner {
    transform: none;
  }

  .flip-box-back {
    transform: none;
    position: relative;
    margin-top: var(--space-4);
  }

  .flip-box {
    height: auto;
  }
}


/* ============================================================
   PROJECTS / CASE STUDIES SECTION
   ============================================================ */

.projects-section {
  background-color: var(--nwestco-neutral-50);
}

.projects-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.filter-btn {
  padding: var(--space-2) var(--space-5);
  border: 2px solid var(--nwestco-neutral-200);
  background: var(--nwestco-white);
  color: var(--nwestco-neutral-600);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: var(--radius-full);
}

.filter-btn:hover {
  border-color: var(--nwestco-blue);
  color: var(--nwestco-blue);
}

.filter-btn:focus {
  outline: 3px solid var(--nwestco-blue);
  outline-offset: 2px;
}

.filter-btn.active,
.filter-btn[aria-pressed="true"] {
  background: var(--nwestco-blue);
  border-color: var(--nwestco-blue);
  color: var(--nwestco-white);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background: var(--nwestco-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.project-card.filter-hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  position: absolute;
}

.project-card.filter-visible {
  opacity: 1;
  transform: scale(1);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-4) 0;
}

.project-tag {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--nwestco-blue-pale);
  color: var(--nwestco-blue);
}

.project-content {
  padding: var(--space-4) var(--space-6) var(--space-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  font-size: var(--text-lg);
  color: var(--nwestco-neutral-700);
  margin-bottom: var(--space-2);
  font-weight: var(--font-bold);
}

.project-client {
  font-size: var(--text-sm);
  color: var(--nwestco-neutral-500);
  margin-bottom: var(--space-3);
}

.project-result {
  font-size: var(--text-sm);
  color: var(--nwestco-green-dark);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
}

.project-stats {
  display: flex;
  gap: var(--space-4);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--nwestco-neutral-100);
}

.project-stat {
  text-align: center;
  flex: 1;
}

.project-stat-value {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--nwestco-blue);
}

.project-stat-label {
  font-size: var(--text-xs);
  color: var(--nwestco-neutral-500);
  text-transform: uppercase;
}


/* ============================================================
   TESTIMONIAL CAROUSEL - Single Slide Display
   ============================================================ */

.testimonial-carousel {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--space-16);
}

/* Slides - show one at a time */
.testimonial-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
  display: block;
}

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

.testimonial-slide.active {
  animation: testimonialFadeIn 0.4s ease;
}

/* Testimonial content card */
.testimonial-content {
  background: var(--nwestco-white);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

/* Photo */
.testimonial-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-6);
  border: 4px solid var(--nwestco-blue);
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quote */
.testimonial-quote {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--nwestco-neutral-700);
  font-style: italic;
  margin: 0 0 var(--space-6) 0;
  padding: 0;
  border: none;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: 5rem;
  color: var(--nwestco-blue);
  opacity: 0.15;
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Attribution */
.testimonial-attribution {
  padding-top: var(--space-4);
  border-top: 1px solid var(--nwestco-neutral-100);
}

.testimonial-name {
  font-weight: var(--font-bold);
  color: var(--nwestco-neutral-700);
  font-size: var(--text-lg);
  margin: 0 0 var(--space-1) 0;
}

.testimonial-title {
  font-size: var(--text-base);
  color: var(--nwestco-neutral-600);
  margin: 0 0 var(--space-1) 0;
}

.testimonial-location {
  font-size: var(--text-sm);
  color: var(--nwestco-neutral-500);
  margin: 0;
}

/* Navigation arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--nwestco-blue);
  background: var(--nwestco-white);
  color: var(--nwestco-blue);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-nav:hover {
  background: var(--nwestco-blue);
  color: var(--nwestco-white);
}

.carousel-nav:focus {
  outline: 3px solid var(--nwestco-blue);
  outline-offset: 2px;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--nwestco-blue);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.carousel-dot:hover {
  background: var(--nwestco-blue-pale);
}

.carousel-dot.active {
  background: var(--nwestco-blue);
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .testimonial-carousel {
    padding: 0 var(--space-4);
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
  }

  .carousel-prev {
    left: -8px;
  }

  .carousel-next {
    right: -8px;
  }

  .testimonial-content {
    padding: var(--space-6);
  }

  .testimonial-quote {
    font-size: var(--text-lg);
  }

  .testimonial-photo {
    width: 80px;
    height: 80px;
  }
}


/* ============================================================
   MARKET TABS FOR SUB-SEGMENTS - Underline Style
   ============================================================ */

.market-tabs {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-5);
  margin-bottom: var(--space-4);
  border-bottom: 2px solid var(--nwestco-neutral-200);
}

.market-tab {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--nwestco-neutral-500);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.market-tab:hover {
  color: var(--nwestco-blue);
}

.market-tab.active {
  color: var(--nwestco-blue);
  border-bottom-color: var(--nwestco-blue);
}

.market-tab:focus {
  outline: none;
  color: var(--nwestco-blue);
}

.market-tab:focus-visible {
  outline: 2px solid var(--nwestco-blue);
  outline-offset: 2px;
}

.market-tab-panels {
  min-height: 80px;
}

.market-tab-panel {
  display: none;
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--nwestco-neutral-600);
}

.market-tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.market-tab-panel p {
  margin: 0;
}

.market-tab-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.market-tab-panel li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--nwestco-neutral-100);
  color: var(--nwestco-neutral-700);
}

.market-tab-panel li:last-child {
  border-bottom: none;
}

.market-tab-panel li::before {
  content: '✓';
  color: var(--nwestco-green);
  margin-right: var(--space-2);
  font-weight: var(--font-bold);
}


/* ============================================================
   BRANCH FLIP CARDS SECTION
   ============================================================ */

.branch-flip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .branch-flip-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .branch-flip-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

@media (max-width: 480px) {
  .branch-flip-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.branch-flip {
  perspective: 1000px;
  height: 180px;
}

.branch-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.branch-flip:hover .branch-flip-inner {
  transform: rotateY(180deg);
}

.branch-flip-front,
.branch-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  text-align: center;
}

.branch-flip-front {
  background: var(--nwestco-white);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--nwestco-neutral-100);
}

.branch-flip-front.hq {
  border-color: var(--nwestco-green);
  background: linear-gradient(135deg, var(--nwestco-white) 0%, rgba(130, 189, 66, 0.05) 100%);
}

.branch-flip-front.training {
  border-color: var(--nwestco-blue);
  background: linear-gradient(135deg, var(--nwestco-white) 0%, rgba(37, 97, 124, 0.05) 100%);
}

.branch-state {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--nwestco-neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-1);
}

.branch-flip-front h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--nwestco-neutral-700);
  margin: 0 0 var(--space-2) 0;
}

.branch-badge {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-top: var(--space-2);
}

.branch-flip-front.hq .branch-badge {
  background: var(--nwestco-green);
  color: var(--nwestco-white);
}

.branch-flip-front.training .branch-badge {
  background: var(--nwestco-blue);
  color: var(--nwestco-white);
}

.branch-flip-back {
  background: var(--nwestco-blue);
  color: var(--nwestco-white);
  transform: rotateY(180deg);
  box-shadow: var(--shadow-lg);
  justify-content: flex-start;
  padding-top: var(--space-6);
}

.branch-flip-back h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--nwestco-white);
  margin: 0 0 var(--space-3) 0;
}

.branch-phone {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--nwestco-white);
  text-decoration: none;
  margin-bottom: var(--space-3);
  transition: opacity var(--transition-fast);
}

.branch-phone:hover {
  opacity: 0.8;
}

.branch-coverage {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 var(--space-2) 0;
  line-height: var(--leading-normal);
}

.branch-services {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Touch device support */
@media (hover: none) {
  .branch-flip:hover .branch-flip-inner {
    transform: none;
  }

  .branch-flip.flipped .branch-flip-inner {
    transform: rotateY(180deg);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .branch-flip-inner {
    transition: none;
  }

  .branch-flip:hover .branch-flip-inner {
    transform: none;
  }

  .branch-flip-back {
    transform: none;
    position: relative;
    margin-top: var(--space-2);
  }

  .branch-flip {
    height: auto;
  }
}


/* ============================================================
   LEGAL MODALS
   ============================================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.modal-content,
.modal {
  background: var(--nwestco-white);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--nwestco-neutral-100);
  position: sticky;
  top: 0;
  background: var(--nwestco-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: var(--text-2xl);
  color: var(--nwestco-blue);
  margin: 0;
}

.modal-close {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--nwestco-neutral-100);
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--text-xl);
  color: var(--nwestco-neutral-600);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--nwestco-neutral-200);
  color: var(--nwestco-neutral-900);
}

.modal-body {
  padding: var(--space-6);
}

.modal-body h3 {
  color: var(--nwestco-blue);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  color: var(--nwestco-neutral-700);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.modal-body ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.modal-body li {
  color: var(--nwestco-neutral-700);
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Legal Link Buttons in Footer */
.legal-link {
  background: none;
  border: none;
  color: var(--nwestco-neutral-400);
  font-size: var(--text-sm);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.legal-link:hover {
  color: var(--nwestco-white);
}

/* Effective Date Style in Modals */
.effective-date {
  color: var(--nwestco-neutral-500);
  font-style: italic;
  margin-bottom: var(--space-6);
}

/* Emergency Banner */
.emergency-banner {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  color: var(--nwestco-neutral-700);
}

.emergency-link {
  color: var(--nwestco-blue);
  font-weight: var(--font-bold);
  text-decoration: none;
}

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