/**
 * Comprehensive Responsive Design Fixes
 * Mobile-first approach with progressive enhancement
 * Support for all browsers and devices
 */

/* ==========================================================================
   BASE MOBILE STYLES (320px+)
   ========================================================================== */

/* Ensure proper viewport behavior */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

/* Fix container overflow on small screens */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ==========================================================================
   TOP BAR - MOBILE
   ========================================================================== */

@media (max-width: 768px) {
  .top-bar {
    font-size: 0.8rem;
    padding: 8px 0;
  }
  
  .top-bar .container {
    padding: 0 12px;
  }
  
  .top-bar span {
    display: block;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .top-bar {
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   HEADER & NAVIGATION - MOBILE
   ========================================================================== */

/* Intermediate breakpoint - compact navbar for medium/large desktop screens.
   Tightened to fit 8 nav items (NIS2 added between Training and Abonamente). */
@media (min-width: 1561px) and (max-width: 1680px) {
  .nav {
    gap: 16px;
  }

  .nav__links {
    gap: 2px;
    font-size: 0.8125rem;
  }

  .nav__links a {
    padding: 8px 9px;
  }

  .nav__actions {
    gap: 10px;
  }

  .lang-switch button {
    padding: 5px 10px;
    font-size: 0.8125rem;
  }

  .btn {
    padding: 9px 14px;
    font-size: 0.8125rem;
  }
}

/* Prevent button overflow on narrow desktop screens */
@media (min-width: 1561px) and (max-width: 1600px) {
  .header .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .nav__actions .btn--primary {
    max-width: none;
    overflow: visible;
  }
}

/* Ensure menu toggle is hidden on desktop */
@media (min-width: 1561px) {
  .menu-toggle {
    display: none !important;
  }
  
  .nav__links {
    display: flex !important;
    flex-direction: row !important;
    width: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
  }
}

@media (max-width: 1560px) {
  /* ============================================================
     PREMIUM FULL-SCREEN MOBILE MENU - $50K DESIGN
     ============================================================ */
  
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }
  
  .header {
    /* Subtle top breathing room for the mobile header: a few px on phones,
       up to 8px on tablets. Applied as padding-top on the header itself so it
       ADDS to each breakpoint's existing .nav padding instead of replacing it,
       keeping the logo / language switcher / hamburger off the top browser bar.
       env() is 0 on normal Android/Chrome, so it stays subtle there and only
       grows on notched devices (e.g. iOS) that report a safe-area inset. */
    --mobile-header-top-offset: clamp(4px, 1.2vw, 8px);
    padding-top: calc(var(--mobile-header-top-offset) + env(safe-area-inset-top, 0px));
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000; /* Always above menu */
    transition: box-shadow 0.3s ease;
  }
  
  /* Subtle bottom shadow when menu is open */
  body.menu-open .header {
    box-shadow: 
      0 2px 16px rgba(15, 27, 45, 0.08),
      0 0 0 1px rgba(15, 27, 45, 0.04);
  }
  
  .header .container {
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
  }
  
  .nav {
    display: grid !important;
    grid-template-columns: auto 1fr auto auto auto;
    grid-template-areas: "logo . lang button hamburger";
    grid-template-rows: auto;
    gap: 11px;
    padding: 7px 0;
    align-items: center;
    width: 100%;
    position: relative;
    min-height: 56px;
  }
  
  .nav__brand {
    grid-area: logo;
    flex-shrink: 0;
    justify-self: start;
  }
  
  .nav__brand img {
    height: 36px;
  }
  
  /* Premium Hamburger Button */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 100, 251, 0.1) 0%, rgba(37, 100, 251, 0.05) 100%);
    border: 1.5px solid rgba(37, 100, 251, 0.25);
    border-radius: 10px;
    cursor: pointer;
    padding: 9px;
    width: 44px;
    height: 44px;
    gap: 0;
    position: relative;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }
  
  /* Subtle inner glow on hamburger */
  .menu-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 100, 251, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: inherit;
  }
  
  .menu-toggle:hover {
    background: linear-gradient(135deg, rgba(37, 100, 251, 0.15) 0%, rgba(37, 100, 251, 0.08) 100%);
    border-color: rgba(37, 100, 251, 0.4);
    box-shadow: 
      0 8px 24px rgba(37, 100, 251, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: translateY(-1px);
  }
  
  .menu-toggle:hover::after {
    transform: translate(-50%, -50%) scale(1.5);
  }
  
  .menu-toggle:active {
    transform: scale(0.96);
  }
  
  /* Premium Hamburger Lines */
  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #2564fb, #3b82f6);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    position: absolute;
    box-shadow: 0 0 5px rgba(37, 100, 251, 0.25);
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* Create additional lines via box-shadow for cleaner markup */
  .menu-toggle span::before,
  .menu-toggle span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    box-shadow: inherit;
    left: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  }
  
  .menu-toggle span::before {
    top: -7px;
  }
  
  .menu-toggle span::after {
    top: 7px;
  }
  
  /* Active state - elegant X transformation */
  .menu-toggle.is-active {
    background: linear-gradient(135deg, rgba(37, 100, 251, 0.2) 0%, rgba(37, 100, 251, 0.1) 100%);
    border-color: rgba(37, 100, 251, 0.5);
    box-shadow: 
      0 8px 32px rgba(37, 100, 251, 0.25),
      0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  }
  
  .menu-toggle.is-active span {
    background: transparent;
    box-shadow: none;
  }
  
  .menu-toggle.is-active span::before {
    top: 0;
    transform: rotate(45deg);
    background: linear-gradient(90deg, #2564fb, #60a5fa);
  }
  
  .menu-toggle.is-active span::after {
    top: 0;
    transform: rotate(-45deg);
    background: linear-gradient(90deg, #2564fb, #60a5fa);
  }

  body:not(.menu-open) .menu-toggle.is-active,
  body:not(.menu-open) .menu-toggle[aria-expanded="true"],
  .menu-toggle.is-active[aria-expanded="false"] {
    background: linear-gradient(135deg, rgba(37, 100, 251, 0.1) 0%, rgba(37, 100, 251, 0.05) 100%);
    border-color: rgba(37, 100, 251, 0.25);
    box-shadow: none;
    transform: none;
  }

  body:not(.menu-open) .menu-toggle.is-active span,
  body:not(.menu-open) .menu-toggle[aria-expanded="true"] span,
  .menu-toggle.is-active[aria-expanded="false"] span {
    background: linear-gradient(90deg, #2564fb, #3b82f6);
    box-shadow: 0 0 5px rgba(37, 100, 251, 0.25);
  }

  body:not(.menu-open) .menu-toggle.is-active span::before,
  body:not(.menu-open) .menu-toggle.is-active span::after,
  body:not(.menu-open) .menu-toggle[aria-expanded="true"] span::before,
  body:not(.menu-open) .menu-toggle[aria-expanded="true"] span::after,
  .menu-toggle.is-active[aria-expanded="false"] span::before,
  .menu-toggle.is-active[aria-expanded="false"] span::after {
    background: inherit;
    transform: none;
  }

  body:not(.menu-open) .menu-toggle.is-active span::before,
  body:not(.menu-open) .menu-toggle[aria-expanded="true"] span::before,
  .menu-toggle.is-active[aria-expanded="false"] span::before {
    top: -7px;
  }

  body:not(.menu-open) .menu-toggle.is-active span::after,
  body:not(.menu-open) .menu-toggle[aria-expanded="true"] span::after,
  .menu-toggle.is-active[aria-expanded="false"] span::after {
    top: 7px;
  }

  body.nav-linking .menu-toggle,
  body.nav-linking .menu-toggle.is-active {
    background: linear-gradient(135deg, rgba(37, 100, 251, 0.1) 0%, rgba(37, 100, 251, 0.05) 100%) !important;
    border-color: rgba(37, 100, 251, 0.25) !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body.nav-linking .menu-toggle span,
  body.nav-linking .menu-toggle.is-active span {
    background: linear-gradient(90deg, #2564fb, #3b82f6) !important;
    box-shadow: 0 0 5px rgba(37, 100, 251, 0.25) !important;
  }

  body.nav-linking .menu-toggle span::before,
  body.nav-linking .menu-toggle span::after,
  body.nav-linking .menu-toggle.is-active span::before,
  body.nav-linking .menu-toggle.is-active span::after {
    background: inherit !important;
    transform: none !important;
  }

  body.nav-linking .menu-toggle span::before,
  body.nav-linking .menu-toggle.is-active span::before {
    top: -7px !important;
  }

  body.nav-linking .menu-toggle span::after,
  body.nav-linking .menu-toggle.is-active span::after {
    top: 7px !important;
  }

  body.nav-linking .menu-toggle::after,
  body.nav-linking .menu-toggle:hover::after {
    transform: translate(-50%, -50%) scale(0) !important;
  }

  /* ============================================================
     FULL-SCREEN PREMIUM NAVIGATION MENU
     Appears below header - covers viewport beneath header row
     Uses --mobile-menu-top CSS variable set by JavaScript for
     pixel-perfect positioning across all devices.
     ============================================================ */
  .nav__links {
    position: fixed;
    /* Dynamic positioning: JS sets --mobile-menu-top based on actual header height */
    top: var(--mobile-menu-top, 120px);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    /* Height fills remaining viewport below the header */
    height: calc(100vh - var(--mobile-menu-top, 120px));
    height: calc(100dvh - var(--mobile-menu-top, 120px));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 32px 24px 80px;
    margin: 0;
    gap: 8px;
    z-index: 997;
    
    /* Premium gradient background with subtle grid pattern */
    background: 
      /* Subtle dot grid pattern */
      radial-gradient(circle at 1px 1px, rgba(37, 99, 235, 0.04) 1px, transparent 0),
      /* Main premium gradient */
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(248, 250, 255, 1) 30%,
        rgba(241, 245, 255, 1) 70%,
        rgba(237, 242, 255, 1) 100%
      );
    background-size: 32px 32px, 100% 100%;
    
    /* No top border - flush connection with header */
    border: none;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(15, 27, 45, 0.08);
    
    /* Initial hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    /* Premium entrance animation - slide up with fade */
    transform: translateY(20px);
    transition: 
      transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
      opacity 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    
    overflow-y: auto;
    overflow-x: hidden;
  }

  body.nav-resizing .nav__links,
  body.nav-resizing .nav__links::before,
  body.nav-resizing .nav__links::after,
  body.nav-resizing .nav__links a {
    transition: none !important;
    animation: none !important;
  }
  
  /* Decorative orb glow - top right */
  .nav__links::before {
    content: '';
    position: fixed;
    top: var(--mobile-menu-top, 120px);
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(
      circle,
      rgba(37, 99, 235, 0.1) 0%,
      rgba(37, 99, 235, 0.04) 40%,
      transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transform: scale(0.6) translateY(-20px);
    transition: 
      opacity 0.6s cubic-bezier(0.32, 0.72, 0, 1) 0.1s, 
      transform 0.7s cubic-bezier(0.32, 0.72, 0, 1) 0.1s;
  }
  
  /* Decorative orb glow - bottom left */
  .nav__links::after {
    content: '';
    position: fixed;
    bottom: 40px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(
      circle,
      rgba(59, 130, 246, 0.08) 0%,
      rgba(59, 130, 246, 0.03) 50%,
      transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transform: scale(0.6) translateY(20px);
    transition: 
      opacity 0.6s cubic-bezier(0.32, 0.72, 0, 1) 0.2s, 
      transform 0.7s cubic-bezier(0.32, 0.72, 0, 1) 0.2s;
  }
  
  /* Open state - elegant slide up reveal */
  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.nav-linking .nav__links {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(0) !important;
    transition: none !important;
  }

  body.nav-linking .nav__links::before,
  body.nav-linking .nav__links::after,
  body.nav-pressing .nav__links::before,
  body.nav-pressing .nav__links::after,
  body.nav-pressing .nav__links a,
  body.nav-linking .nav__links a {
    transition: none !important;
    animation: none !important;
  }
  
  .nav__links.is-open::before,
  .nav__links.is-open::after {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  
  /* Premium Menu Items - Clean, touch-optimized design */
  .nav__links a {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 18px 28px; /* Symmetrical padding - clean without arrows */
    margin: 0;
    border-radius: 14px;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.4;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow:
      0 10px 28px rgba(15, 27, 45, 0.045),
      0 1px 0 rgba(255, 255, 255, 0.95) inset;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    
    /* Initial hidden state for stagger animation */
    opacity: 0;
    transform: translateY(24px);
    
    /* Smooth, optimized transitions for mobile */
    transition: 
      opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1),
      transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
      background 0.15s ease,
      border-color 0.15s ease,
      box-shadow 0.15s ease;
  }
  
  /* Reset ALL desktop effects - prevent any leaking into responsive menu */
  .nav__links a::before {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    background: none !important;
    box-shadow: none !important;
    inset: auto !important;
    width: 0 !important;
    height: 0 !important;
  }
  
  /* Also reset any inherited hover/active states */
  .nav__links a:hover::before,
  .nav__links a:focus::before,
  .nav__links a:active::before {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
  }
  
  /* Staggered entrance animation - smooth cascade */
  .nav__links.is-open a {
    opacity: 1;
    transform: translateY(0);
  }
  
  .nav__links.is-open a:nth-child(1) { transition-delay: 0.08s; }
  .nav__links.is-open a:nth-child(2) { transition-delay: 0.14s; }
  .nav__links.is-open a:nth-child(3) { transition-delay: 0.20s; }
  .nav__links.is-open a:nth-child(4) { transition-delay: 0.26s; }
  .nav__links.is-open a:nth-child(5) { transition-delay: 0.32s; }
  .nav__links.is-open a:nth-child(6) { transition-delay: 0.38s; }
  .nav__links.is-open a:nth-child(7) { transition-delay: 0.44s; }
  .nav__links.is-open a:nth-child(8) { transition-delay: 0.50s; }
  
  /* Mobile: No hover effects - touch-only interface
     Clean, professional appearance for tap-based navigation */
  .nav__links a:not(.is-active) {
    background: rgba(255, 255, 255, 0.86) !important;
    border-color: rgba(37, 99, 235, 0.14) !important;
    color: #1e293b !important;
    transform: translateY(0) !important;
    box-shadow:
      0 10px 28px rgba(15, 27, 45, 0.045),
      0 1px 0 rgba(255, 255, 255, 0.95) inset !important;
  }
  
  /* Active tap feedback - subtle press state for touch */
  .nav__links a:active:not(.is-active) {
    background: rgba(248, 250, 255, 0.96) !important;
    border-color: rgba(37, 99, 235, 0.22) !important;
    transform: scale(0.99) !important;
    box-shadow:
      0 6px 18px rgba(15, 27, 45, 0.055),
      0 0 0 1px rgba(37, 99, 235, 0.06) inset !important;
  }

  body.nav-pressing .nav__links a,
  body.nav-pressing .nav__links a.is-navigating,
  body.nav-pressing .nav__links a:active,
  body.nav-pressing .nav__links a:focus {
    box-shadow: none !important;
    filter: none !important;
    outline: none !important;
    transform: none !important;
  }

  body.nav-linking .nav__links a,
  body.nav-linking .nav__links a.is-navigating,
  body.nav-linking .nav__links a.is-navigating:active,
  body.nav-linking .nav__links a.is-navigating:focus {
    opacity: 0 !important;
    visibility: hidden !important;
    background: rgba(255, 255, 255, 0.86) !important;
    border-color: rgba(37, 99, 235, 0.14) !important;
    color: #1e293b !important;
    box-shadow: none !important;
    filter: none !important;
    outline: none !important;
    transform: translateY(0) !important;
  }
  
  /* Active state - current page with premium styling */
  .nav__links a.is-active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 255, 0.96) 100%);
    border-color: rgba(37, 99, 235, 0.3);
    color: #2563eb;
    font-weight: 600;
    box-shadow: 
      0 14px 34px rgba(37, 99, 235, 0.13),
      0 5px 16px rgba(15, 27, 45, 0.055),
      0 0 0 1px rgba(255, 255, 255, 1) inset;
  }
  
  /* Premium glowing accent bar for active item */
  .nav__links a.is-active::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 4px !important;
    height: 55% !important;
    background: linear-gradient(180deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%) !important;
    border-radius: 0 4px 4px 0 !important;
    box-shadow: 
      0 0 16px rgba(37, 99, 235, 0.6),
      0 0 32px rgba(37, 99, 235, 0.3),
      4px 0 12px rgba(37, 99, 235, 0.2) !important;
    opacity: 1 !important;
  }
  
  /* Clean mobile menu - no arrows, minimal distraction
     Focus on content and active page indicator only */
  .nav__links a::after {
    content: none !important;
    display: none !important;
  }
  
  /* First item (Home) - normalized spacing with other items */
  .nav__links a:first-child {
    /* Same styling as other items - no extra separation */
  }
  
  /* Hide nav__actions wrapper - using grid now */
  .nav__actions {
    display: contents !important;
  }
  
  .lang-switch {
    grid-area: lang;
    padding: 4px;
    gap: 2px;
    flex-shrink: 0;
    justify-self: end;
    border-radius: 8px;
  }
  
  .lang-switch button {
    padding: 6px 12px;
    font-size: 0.8125rem;
    border-radius: 6px;
  }
  
  /* Keep button inline on tablet/small desktop */
  .nav__actions .btn--primary {
    grid-area: button;
    font-size: 0.8125rem;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    justify-self: end;
    border-radius: 8px;
  }
  
  .menu-toggle {
    grid-area: hamburger;
    flex-shrink: 0;
    justify-self: end;
  }
}

/* Gradual size reduction as screen narrows (1200-1560px) */
@media (max-width: 1560px) and (min-width: 1200px) {
  .nav {
    gap: 11px !important;
  }
  
  .nav__actions .btn--primary {
    font-size: 0.8125rem;
    padding: 9px 16px;
  }
  
  .lang-switch button {
    padding: 5px 10px;
  }
}

/* Further reduction (below 1200px, but above mobile breakpoint) */
@media (max-width: 1199px) and (min-width: 901px) {
  .nav {
    gap: 10px !important;
  }
  
  .nav__actions .btn--primary {
    font-size: 0.85rem;
    padding: 9px 16px;
  }
  
  .lang-switch button {
    padding: 6px 11px;
    font-size: 0.85rem;
  }
}

/* Two-row layout ONLY on actual mobile/tablet devices */
@media (max-width: 900px) {
  .nav {
    display: grid !important;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: 
      "logo . lang hamburger"
      "button button button button";
    gap: 9px 9px;
    padding: 9px 0 8px;
  }
  
  .nav__brand {
    grid-area: logo;
    justify-self: start;
  }
  
  .nav__actions {
    display: contents !important;
  }
  
  .lang-switch {
    grid-area: lang;
    justify-self: end;
  }
  
  .menu-toggle {
    grid-area: hamburger;
    justify-self: end;
  }
  
  .nav__actions .btn--primary {
    grid-area: button;
    width: 100%;
    font-size: 0.9rem;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(37, 100, 251, 0.2);
    justify-self: stretch;
  }
  
  /* Adjust menu padding for two-row header layout */
  .nav__links {
    /* top and height now use --mobile-menu-top variable (set by JS) */
    padding-top: 28px;
  }
}

/* Very small screens - refined sizing */
@media (max-width: 480px) {
  .header .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav {
    padding-top: 10px;
    padding-bottom: 9px;
  }

  .nav__brand img {
    height: 34px;
  }
  
  .nav__actions .btn--primary {
    font-size: 0.85rem;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .lang-switch button {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
  
  /* Premium mobile menu adjustments for small screens */
  .nav__links {
    /* top and height use --mobile-menu-top variable (set by JS) */
    padding: 24px 16px 60px;
  }
  
  /* Mobile menu item refinements */
  .nav__links a {
    padding: 18px 22px; /* Symmetrical padding */
    font-size: 1.05rem;
    max-width: 100%;
    border-radius: 12px;
    box-shadow:
      0 8px 22px rgba(15, 27, 45, 0.04),
      0 1px 0 rgba(255, 255, 255, 0.95) inset;
  }
  
  .nav__links a.is-active::before {
    width: 3px;
    height: 50%;
  }
  
  .menu-toggle {
    width: 42px;
    height: 42px;
  }
  
  .menu-toggle span {
    width: 20px;
  }
}

/* Extra small screens - iPhone SE and smaller (375px and below) */
@media (max-width: 375px) {
  .nav {
    padding-top: 11px;
    padding-bottom: 10px;
  }

  /* Menu position uses --mobile-menu-top variable (set by JS) */
  .nav__links {
    padding: 20px 12px 50px;
    gap: 6px;
  }
  
  .nav__links::before {
    width: 280px;
    height: 280px;
    right: -100px;
  }
  
  .nav__links::after {
    width: 200px;
    height: 200px;
  }
  
  .nav__links a {
    padding: 16px 20px;
    font-size: 1rem;
    border-radius: 10px;
    box-shadow:
      0 6px 18px rgba(15, 27, 45, 0.035),
      0 1px 0 rgba(255, 255, 255, 0.95) inset;
  }
  
  .nav__links a.is-active::before {
    width: 3px;
    height: 45%;
  }
  
  .menu-toggle {
    width: 40px;
    height: 40px;
  }
  
  .menu-toggle span {
    width: 18px;
  }
}

/* ==========================================================================
   HERO SECTIONS - RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .hero {
    padding: 80px 0 60px;
  }
  
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero__title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  
  .hero__text {
    font-size: 1.05rem;
    max-width: 100%;
  }
  
  .hero__actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero__visual,
  .hero--consultation .banner-dark--topics {
    display: none !important;
  }
  
  .orb {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Hero sections - Large phones */
@media (max-width: 768px) and (min-width: 428px) {
  .hero {
    padding: 60px 0 40px;
    text-align: center;
  }
  
  .hero__eyebrow {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  
  .hero__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: 20px;
    text-align: center;
  }
  
  .hero__text {
    font-size: 1rem;
    text-align: center;
    padding: 0 16px;
  }
  
  .hero p {
    text-align: center;
    padding: 0 16px;
  }
  
  .hero__actions {
    margin-top: 30px;
    gap: 12px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  
  .hero__actions .btn {
    width: calc(100% - 64px);
    max-width: 320px;
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
  }
}

/* Hero sections - Standard phones */
@media (max-width: 427px) and (min-width: 375px) {
  .hero {
    padding: 60px 0 40px;
    text-align: center;
  }
  
  .hero__title {
    font-size: clamp(1.65rem, 5vw, 2.25rem);
    margin-bottom: 18px;
    text-align: center;
  }
  
  .hero__text {
    font-size: 0.95rem;
    text-align: center;
    padding: 0 12px;
  }
  
  .hero p {
    text-align: center;
    padding: 0 12px;
  }
  
  .hero__actions {
    margin-top: 28px;
    gap: 10px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  
  .hero__actions .btn {
    width: calc(100% - 48px);
    max-width: 280px;
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
  }
}

/* Hero sections - Compact phones */
@media (max-width: 374px) {
  .hero {
    padding: 50px 0 35px;
    text-align: center;
  }
  
  .hero__title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 16px;
    text-align: center;
  }
  
  .hero__text {
    font-size: 0.9rem;
    text-align: center;
    padding: 0 8px;
  }
  
  .hero p {
    text-align: center;
    padding: 0 8px;
  }
  
  .hero__actions {
    margin-top: 24px;
    gap: 10px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  
  .hero__actions .btn {
    width: calc(100% - 40px);
    max-width: 260px;
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
  }
}

/* Dark hero specific */
@media (max-width: 1024px) {
  .hero--dark {
    padding: 80px 0 60px;
  }
}

/* ==========================================================================
   CARDS & GRIDS - RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card {
    padding: 28px 24px;
  }
  
  .card__icon {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
    margin-bottom: 16px;
    border-radius: 14px;
  }
  
  .card h3 {
    font-size: 1.2rem;
  }
}

/* Strip section */
@media (max-width: 1024px) {
  .strip {
    padding: 56px 32px;
    margin: 0;
  }
  
  .strip .section__title {
    font-size: 2rem;
    margin-bottom: 44px;
  }
  
  .strip__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .strip__item {
    padding: 28px 24px;
  }
  
  .strip__item h4 {
    font-size: 1.2rem;
  }
}

@media (max-width: 640px) {
  .strip {
    padding: 48px 24px;
    margin: 0;
    border-radius: 20px;
    text-align: center;
  }
  
  .strip .section__title {
    font-size: 1.65rem;
    margin-bottom: 40px;
    text-align: center;
  }
  
  .strip__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .strip__item {
    padding: 24px 20px;
    text-align: center;
  }
  
  .strip__item h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    text-align: center;
  }
  
  .strip__item p {
    font-size: 0.95rem;
    text-align: center;
  }
  
  .strip__item p {
    font-size: 0.95rem;
  }
}

/* Values list */
@media (max-width: 768px) {
  .values-list {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }
  
  .values-list li {
    padding: 20px;
  }
}

/* Steps */
@media (max-width: 1024px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .step {
    padding: 32px 24px;
  }
  
  .step__index {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
    margin-bottom: 20px;
  }
  
  .step h3 {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   BANNER SECTIONS - RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .banner-dark {
    padding: 64px 48px;
    margin: 0;
  }
  
  .banner-dark h2 {
    font-size: 2rem;
  }
}

/* Mobile - Large phones (iPhone 14 Pro Max, Galaxy S21+, etc.) */
@media (max-width: 768px) and (min-width: 428px) {
  .banner-dark {
    padding: 56px 32px;
    margin: 0;
    border-radius: 20px;
    text-align: center;
  }
  
  .banner-dark h2,
  .banner-dark .section__title {
    font-size: 1.65rem;
    margin-bottom: 20px;
    text-align: center;
  }
  
  .banner-dark p {
    font-size: 1rem;
    margin: 0 auto 24px;
    text-align: center;
    max-width: 90%;
    padding: 0 16px;
  }

  .banner-dark .cta-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 28px;
  }
  
  .banner-dark .btn--primary,
  .banner-dark .btn--secondary,
  .banner-dark .btn--cta,
  .banner-dark .btn--cta-secondary {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: calc(100% - 64px);
    max-width: 320px;
    margin: 12px auto;
    text-align: center;
    box-sizing: border-box;
  }
  
  .banner-dark .btn--primary {
    background: rgba(255, 255, 255, 0.95);
    color: #2563eb;
  }
  
  .banner-dark .btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
  }
}

/* Mobile - Standard phones (iPhone 12/13/14, Galaxy S20, etc.) */
@media (max-width: 427px) and (min-width: 375px) {
  .banner-dark {
    padding: 48px 24px;
    margin: 0;
    border-radius: 20px;
    text-align: center;
  }
  
  .banner-dark h2,
  .banner-dark .section__title {
    font-size: 1.5rem;
    margin-bottom: 18px;
    text-align: center;
  }
  
  .banner-dark p {
    font-size: 0.95rem;
    margin: 0 auto 20px;
    text-align: center;
    max-width: 90%;
    padding: 0 12px;
  }

  .banner-dark .cta-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 24px;
  }
  
  .banner-dark .btn--primary,
  .banner-dark .btn--secondary,
  .banner-dark .btn--cta,
  .banner-dark .btn--cta-secondary {
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: calc(100% - 48px);
    max-width: 280px;
    margin: 10px auto;
    text-align: center;
    box-sizing: border-box;
  }
  
  .banner-dark .btn--primary {
    background: rgba(255, 255, 255, 0.95);
    color: #2563eb;
  }
  
  .banner-dark .btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
  }
}

/* Mobile - Compact phones (iPhone SE, older Android, foldables folded) */
@media (max-width: 374px) {
  .banner-dark {
    padding: 40px 20px;
    margin: 0;
    border-radius: 16px;
    text-align: center;
  }
  
  .banner-dark h2,
  .banner-dark .section__title {
    font-size: 1.35rem;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.3;
  }
  
  .banner-dark p {
    font-size: 0.9rem;
    margin: 0 auto 18px;
    text-align: center;
    max-width: 92%;
    padding: 0 8px;
    line-height: 1.5;
  }

  .banner-dark .cta-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 22px;
  }
  
  .banner-dark .btn--primary,
  .banner-dark .btn--secondary,
  .banner-dark .btn--cta,
  .banner-dark .btn--cta-secondary {
    padding: 13px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: calc(100% - 40px);
    max-width: 260px;
    margin: 10px auto;
    text-align: center;
    box-sizing: border-box;
  }
  
  .banner-dark .btn--primary {
    background: rgba(255, 255, 255, 0.95);
    color: #2563eb;
  }
  
  .banner-dark .btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
  }

  .about-band {
    padding: 56px 32px;
    margin: 0;
    border-radius: 20px;
    text-align: center;
  }

  .about-band h2 {
    font-size: 1.65rem;
    margin-bottom: 20px;
  }

  .about-band p {
    font-size: 1rem;
  }
}

/* ==========================================================================
   FORMS - RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .form {
    padding: 28px 20px;
  }
  
  .form__group {
    margin-bottom: 16px;
  }
  
  .form input,
  .form select,
  .form textarea {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .form textarea {
    min-height: 120px;
  }
}

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

/* Contact split layout */
@media (max-width: 1024px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .contact-card {
    padding: 32px 24px;
  }
}

/* ==========================================================================
   FOOTER - RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .footer {
    padding: 60px 0 0;
  }
  
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
  }
  
  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 40px 0 0;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }
  
  .footer__brand img {
    height: 40px;
  }
  
  .footer h4 {
    font-size: 1rem;
    margin-bottom: 16px;
  }
  
  .footer__social {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .footer__bottom {
    padding: 20px 0;
    gap: 12px;
  }
  
  .footer__bottom-links {
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   TABLES - RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table th,
  table td {
    white-space: nowrap;
  }
}

/* ==========================================================================
   IMAGES & MEDIA - RESPONSIVE
   ========================================================================== */

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

svg {
  max-width: 100%;
  height: auto;
}

/* Hero visuals */
@media (max-width: 768px) {
  .hero__visual svg,
  .orb svg {
    max-width: 280px;
    height: auto;
  }
}

/* ==========================================================================
   TYPOGRAPHY - RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .section__heading {
    font-size: 0.75rem;
  }
  
  .section__title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    margin-bottom: 20px;
  }
  
  .section__subtitle {
    font-size: 1rem;
  }
  
  p {
    font-size: 1rem;
  }
}

/* ==========================================================================
   SPACING - RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .section {
    padding: 40px 0;
    text-align: center;
  }
  
  .section--tight {
    padding: 24px 0;
    text-align: center;
  }
  
  .section__heading {
    text-align: center;
  }
  
  .section__title {
    text-align: center;
  }
  
  .section p {
    text-align: center;
  }
}

/* ==========================================================================
   BUTTONS - RESPONSIVE (Universal fix for all devices)
   ========================================================================== */

/* Foldable phones unfolded (Galaxy Fold, etc.) */
@media (max-width: 884px) and (min-width: 769px) {
  .btn,
  .btn--primary,
  .btn--secondary {
    display: inline-block;
    min-width: 160px;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

/* Large phones (iPhone 14 Pro Max, Galaxy S21+, etc.) */
@media (max-width: 768px) and (min-width: 428px) {
  .btn,
  .btn--primary,
  .btn--secondary {
    display: block;
    width: calc(100% - 64px) !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  
  a.btn,
  a.btn--primary,
  a.btn--secondary {
    margin-top: 12px;
    margin-bottom: 12px;
  }
}

/* Standard phones (iPhone 12/13/14, Galaxy S20, Pixel, etc.) */
@media (max-width: 427px) and (min-width: 375px) {
  .btn,
  .btn--primary,
  .btn--secondary {
    display: block;
    width: calc(100% - 48px) !important;
    max-width: 280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
    padding: 14px 28px !important;
    font-size: 0.95rem !important;
  }
  
  a.btn,
  a.btn--primary,
  a.btn--secondary {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

/* Compact phones (iPhone SE, older Android, foldables folded) */
@media (max-width: 374px) {
  .btn,
  .btn--primary,
  .btn--secondary {
    display: block;
    width: calc(100% - 40px) !important;
    max-width: 260px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
    padding: 13px 24px !important;
    font-size: 0.9rem !important;
  }
  
  a.btn,
  a.btn--primary,
  a.btn--secondary {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

/* ==========================================================================
   BUTTONS - RESPONSIVE
   ========================================================================== */

@media (max-width: 480px) {
  .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  
  .hero__actions .btn {
    max-width: none;
  }
}

/* ==========================================================================
   UTILITY CLASSES - RESPONSIVE
   ========================================================================== */

/* Show/hide on different screens */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }
}

/* Text alignment */
@media (max-width: 768px) {
  .text-center-mobile {
    text-align: center;
  }
}

/* ==========================================================================
   BROWSER-SPECIFIC FIXES
   ========================================================================== */

/* iOS Safari */
@supports (-webkit-touch-callout: none) {
  /* Fix iOS Safari input zoom */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px;
  }
  
  /* Fix iOS Safari bottom bar */
  body {
    min-height: -webkit-fill-available;
  }
  
  html {
    height: -webkit-fill-available;
  }
}

/* Firefox */
@-moz-document url-prefix() {
  /* Fix Firefox button styling */
  button,
  .btn {
    -moz-appearance: none;
  }
}

/* Edge */
@supports (-ms-ime-align: auto) {
  /* Fix Edge flexbox issues */
  .nav,
  .footer__grid {
    display: -ms-flexbox;
  }
}

/* ==========================================================================
   LANDSCAPE ORIENTATION
   ========================================================================== */

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 40px 0 30px;
  }
  
  .hero__title {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 40px 0;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .header,
  .footer,
  .btn,
  .nav__actions,
  .scroll-progress {
    display: none;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  .hero,
  .hero--dark,
  .banner-dark {
    background: #fff;
    color: #000;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  /* Disable menu animations for accessibility */
  .nav__links,
  .nav__links a,
  .nav__links::before,
  .nav__links::after,
  .menu-toggle,
  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after,
  body::before {
    transition: none !important;
    animation: none !important;
  }
  
  .nav__links.is-open a {
    transition-delay: 0s !important;
  }
  
  /* Disable shimmer animation */
  .nav__links a.is-active::after {
    animation: none !important;
    opacity: 0 !important;
  }
  
  /* Instant clip-path change */
  .nav__links {
    clip-path: none !important;
  }
  
  .nav__links.is-open {
    clip-path: none !important;
  }
}

/* ==========================================================================
   HIGH RESOLUTION DISPLAYS
   ========================================================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure sharp rendering on retina displays */
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ==========================================================================
   TOUCH DEVICE OPTIMIZATIONS
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets for touch devices */
  .btn,
  .nav__links a,
  .lang-switch button {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Remove hover effects on touch devices */
  .card:hover,
  .btn:hover {
    transform: none;
  }

  .nav__links a,
  .nav__links a:not(.is-active),
  .nav__links a.is-active,
  .nav__links a:active,
  .nav__links a:focus {
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12) !important;
    filter: none !important;
    transform: none !important;
  }

  .nav__links a.is-active::before {
    box-shadow: none !important;
  }

  body.nav-pressing .nav__links,
  body.nav-linking .nav__links {
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   LARGE SCREENS (1440px+)
   ========================================================================== */

@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  
  .hero__title {
    font-size: 4rem;
  }
  
  .section__title {
    font-size: 3rem;
  }
}

/* ==========================================================================
   DESKTOP NAVBAR - EXPLICIT OVERRIDE FOR LARGE SCREENS
   ========================================================================== */

@media (min-width: 1561px) {
  .nav {
    display: flex !important;
    padding: 10px 0 !important;
    gap: 36px !important;
    min-height: 60px !important;
  }
  
  .nav__brand img {
    height: 40px !important;
  }
  
  .nav__links a {
    padding: 9px 14px !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
  }
  
  .lang-switch {
    padding: 4px !important;
    border-radius: 8px !important;
    gap: 2px !important;
  }
  
  .lang-switch button {
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
    border-radius: 6px !important;
  }
  
  .nav__actions .btn--primary {
    padding: 10px 22px !important;
    font-size: 0.875rem !important;
    border-radius: 10px !important;
  }
}

/* ========================================================================
   NAVBAR DENSITY REFINEMENT
   Keeps the full desktop nav professional on narrower desktop widths.
   Scoped to header/navigation only so the rest of the responsive system stays unchanged.
   ======================================================================== */

@media (min-width: 1681px) {
  .nav {
    gap: 24px !important;
  }

  .nav__links {
    gap: 1px !important;
  }

  .nav__links a {
    padding: 9px 12px !important;
  }

  .nav__actions {
    gap: 12px !important;
  }
}

@media (min-width: 1561px) and (max-width: 1680px) {
  .nav {
    gap: 14px !important;
    padding: 8px 0 !important;
    min-height: 58px !important;
  }

  .nav__brand img {
    height: 36px !important;
  }

  .nav__links {
    gap: 0 !important;
    font-size: 0.8125rem !important;
    min-width: 0 !important;
  }

  .nav__links a {
    padding: 8px 8px !important;
    font-size: 0.8125rem !important;
  }

  .nav__actions {
    gap: 9px !important;
  }

  .lang-switch button {
    padding: 5px 10px !important;
    font-size: 0.8125rem !important;
  }

  .nav__actions .btn--primary {
    padding: 9px 16px !important;
    font-size: 0.8125rem !important;
  }
}

@media (min-width: 1500px) and (max-width: 1620px) {
  .header,
  .nav,
  .nav__brand img,
  .lang-switch,
  .lang-switch button,
  .nav__actions .btn--primary {
    transition:
      padding 0.24s ease,
      gap 0.24s ease,
      min-height 0.24s ease,
      height 0.24s ease,
      font-size 0.24s ease,
      border-radius 0.24s ease,
      box-shadow 0.24s ease;
  }
}

/* ==========================================================================
   VERY LARGE SCREENS (1920px+)
   ========================================================================== */

@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }
}

/* ==========================================================================
   SMALL SCREENS (360px and below)
   ========================================================================== */

@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }
  
  .hero__title {
    font-size: 1.5rem;
  }
  
  .btn {
    font-size: 0.9rem;
    padding: 10px 16px;
  }
  
  .card {
    padding: 20px;
  }
}

/* ==========================================================================
   CARD RESPONSIVE ENHANCEMENTS - Professional $10k Design
   ========================================================================== */

/* Surface Pro / Tablet - Fix 3-card layout (900px - 1200px) */
@media (max-width: 1200px) and (min-width: 900px) {
  /* Force 3 cards to display as 3 columns on tablets */
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  /* Keep 2-card layout as 2 columns */
  .cards-grid--two {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  
  .card {
    padding: 40px 28px;
  }
  
  .card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }
  
  .card p {
    font-size: 0.9375rem;
    line-height: 1.65;
  }
  
  .card ul {
    margin-top: 12px;
  }
  
  .card li {
    font-size: 0.9375rem;
    padding: 8px 0 8px 28px;
  }
}

/* Medium Tablet - Improved card spacing and layout */
@media (max-width: 899px) and (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  
  .card {
    padding: 40px 32px;
  }
  
  .card h3 {
    font-size: 1.35rem;
    margin-bottom: 18px;
  }
  
  .card p {
    font-size: 1.0375rem;
  }
}

/* Mobile - Optimized for smaller screens */
@media (max-width: 767px) {
  .cards-grid,
  .cards-grid--two {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 100%;
  }
  
  .card {
    padding: 40px 32px;
    border-radius: 14px;
  }
  
  .card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
  }
  
  .card p {
    font-size: 1.0125rem;
    line-height: 1.75;
  }
}

/* Small mobile - Compact but readable */
@media (max-width: 480px) {
  .card {
    padding: 36px 28px;
    border-radius: 12px;
  }
  
  .card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
  }
  
  .card p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* ==========================================================================
   PREMIUM INCIDENT PLAYBOOK RESPONSIVE - $10k Design
   ========================================================================== */

/* Tablet - 2 column grid (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
  .process-timeline {
    margin-top: 48px;
  }
  
  .process-timeline::before {
    display: none; /* Hide horizontal line on tablet */
  }
  
  .process-timeline__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 28px;
  }
  
  .process-step__number {
    width: 96px;
    height: 96px;
    min-width: 96px;
    min-height: 96px;
    flex-shrink: 0;
    font-size: 2.25rem;
    margin-bottom: 24px;
  }
  
  .process-step__card {
    padding: 28px 20px;
    min-height: 160px;
  }
  
  .process-step__title {
    font-size: 1.2rem;
  }
  
  .process-step__text {
    font-size: 0.9rem;
    line-height: 1.65;
  }
}

/* Mobile - Vertical timeline (below 768px) */
@media (max-width: 767px) {
  .process-timeline {
    margin-top: 40px;
    padding: 0 16px;
  }
  
  .process-timeline::before {
    display: none; /* Hide horizontal line */
  }
  
  .process-timeline__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .process-step {
    position: relative;
    padding-left: 0;
  }
  
  /* Vertical line removed on mobile - was cutting through text */
  
  .process-step__number {
    width: 88px;
    height: 88px;
    min-width: 88px;
    min-height: 88px;
    flex-shrink: 0;
    font-size: 2rem;
    margin-bottom: 20px;
    box-shadow: 
      0 10px 32px rgba(37, 99, 235, 0.3),
      0 3px 10px rgba(37, 99, 235, 0.2),
      0 0 0 5px rgba(255, 255, 255, 1),
      0 0 0 7px rgba(37, 99, 235, 0.1);
  }
  
  .process-step__card {
    padding: 24px 20px;
    min-height: auto;
    border-radius: 16px;
  }
  
  .process-step__title {
    font-size: 1.15rem;
  }
  
  .process-step__text {
    font-size: 0.9rem;
    line-height: 1.65;
  }
}

/* Extra small mobile - Optimize for 360px width */
@media (max-width: 480px) {
  .process-timeline {
    padding: 0 12px;
  }
  
  .process-timeline__grid {
    gap: 36px;
  }
  
  .process-step__number {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    flex-shrink: 0;
    font-size: 1.875rem;
    margin-bottom: 18px;
  }
  
  /* Vertical line removed on mobile */
  
  .process-step__card {
    padding: 20px 18px;
    border-radius: 14px;
  }
  
  .process-step__title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .process-step__text {
    font-size: 0.875rem;
    line-height: 1.6;
  }
}


/* Premium CTA Buttons - Mobile Responsive */

@media (max-width: 768px) {

  .btn--cta,

  .btn--cta-secondary {

    display: block;

    width: calc(100% - 40px);

    max-width: 400px;

    margin: 12px auto;

    text-align: center;

    padding: 16px 32px;

    font-size: 1.05rem;

  }

  

  .banner-dark .btn--cta:first-of-type {

    margin-top: 32px;

  }

  

  .btn--cta-secondary {

    margin-left: auto !important;

  }

}



@media (max-width: 480px) {

  .btn--cta,

  .btn--cta-secondary {

    font-size: 1rem;

    padding: 14px 28px;

  }

}



/* Responsive Premium CTA Buttons - Redesigned for Professional Look */

@media (max-width: 768px) {

  .btn--cta {

    display: block;

    width: calc(100% - 40px);

    max-width: 400px;

    margin: 16px auto !important;

    text-align: center;

    padding: 18px 36px !important;

    font-size: 1.0625rem !important;

  }

  

  .btn--cta-secondary {

    display: block;

    width: calc(100% - 40px);

    max-width: 400px;

    margin: 16px auto !important;

    text-align: center;

    padding: 15px 33px !important; /* Adjust for 3px border */

    font-size: 1.0625rem !important;

  }

  

  /* Ensure proper stacking */

  .banner-dark .btn--cta,

  .banner-dark .btn--cta-secondary {

    margin-left: 0 !important;

  }

}



@media (max-width: 480px) {

  .btn--cta {

    padding: 16px 32px !important;

    font-size: 1rem !important;

  }

  

  .btn--cta-secondary {

    padding: 13px 29px !important; /* Adjust for 3px border */

    font-size: 1rem !important;

  }

}

/* Banner CTA stacking: keep Home/FAQ banner buttons centered when stacked. */
@media (max-width: 768px) {
  .banner-dark .cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
    margin-top: 22px;
  }

  .banner-dark .cta-actions .btn,
  .banner-dark .btn--cta,
  .banner-dark .btn--cta-secondary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(calc(100% - 40px), 400px) !important;
    max-width: 400px !important;
    margin: 6px auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .banner-dark .cta-actions .btn,
  .banner-dark .btn--cta,
  .banner-dark .btn--cta-secondary {
    width: min(calc(100% - 32px), 320px) !important;
    max-width: 320px !important;
  }
}

@media (max-width: 374px) {
  .banner-dark .cta-actions .btn,
  .banner-dark .btn--cta,
  .banner-dark .btn--cta-secondary {
    width: min(calc(100% - 24px), 280px) !important;
    max-width: 280px !important;
  }
}




/* ==========================================================================
   3-CARD LAYOUT RESPONSIVE - Stack at 900px when 4-card stacks to 1??4
   ========================================================================== */

/* Stack to single column when 4-card stacks (below 900px) */
@media (max-width: 899px) {
  .cards-grid.cards-grid--three {
    grid-template-columns: 1fr !important;
    gap: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* FIXED VERSION - separate media query for maximum force */
@media (max-width: 899px) {
  .cards-grid.cards-grid--three.cards-grid--three-fixed {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-columns: 1fr !important;
    gap: 28px !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Center ALL section titles for 3-card and 4-card at 1400px */
@media (max-width: 1399px) {
  /* Center titles above 3-card sections */
  section:has(.cards-grid--three) .section__title,
  section:has(.cards-grid--three-fixed) .section__title {
    text-align: center !important;
  }
  
  /* Center titles above 4-card sections */
  section:has(.cards-grid--four) .section__title {
    text-align: center !important;
  }
}

/* Mobile - optimize spacing */
@media (max-width: 767px) {
  .cards-grid.cards-grid--three {
    gap: 24px;
    max-width: 100%;
  }
  
  .cards-grid--two {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   4-CARD LAYOUT RESPONSIVE - Match incident response carousel behavior
   ========================================================================== */

/* Desktop: 4 columns (default) */
/* Tablet: 2??2 grid (below 1400px - earlier breakpoint) */
@media (max-width: 1399px) {
  .cards-grid--four {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* Mobile: 1 column (below 900px - earlier breakpoint) */
@media (max-width: 899px) {
  .cards-grid--four {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   STRIP GRID (4-ITEM SECTIONS) - Match 4-card layout behavior
   ========================================================================== */

/* Desktop: 4 columns (default) */
/* Tablet: 2??2 grid (below 1400px - earlier breakpoint) */
@media (max-width: 1399px) {
  .strip__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* Mobile: 1 column (below 900px - earlier breakpoint) */
@media (max-width: 899px) {
  .strip__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   SECTION HEADING RESPONSIVE FIXES
   ========================================================================== */

/* Fix section headings going too far left in responsive mode */
@media (max-width: 768px) {
  .section__heading,
  .section > .container > .section__heading {
    position: static !important;
    display: block !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
  }
}

/* ==========================================================================
   CARD LIST ALIGNMENT ON NARROW SCREENS
   ========================================================================== */

/* Keep card lists left-aligned on narrow screens */
@media (max-width: 768px) {
  .card ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    width: 100% !important;
  }
  
  .card li {
    display: block !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* Assessment cards - force left alignment at all sizes */
  .assessment-cards .card ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    width: 100% !important;
  }
  
  .assessment-cards .card ul li {
    display: block !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .training-cards .card ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    width: 100% !important;
  }

  .training-cards .card ul li {
    display: grid !important;
    grid-template-columns: 20px 1fr !important;
    column-gap: 9px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }
}

/* Extra small screens - maintain left alignment */
@media (max-width: 480px) {
  .assessment-cards .card ul,
  .assessment-cards .card ul li {
    text-align: left !important;
    align-items: flex-start !important;
  }

  .training-cards .card ul li {
    grid-template-columns: 19px 1fr !important;
    column-gap: 8px !important;
  }
}

@media (max-width: 375px) {
  .assessment-cards .card ul,
  .assessment-cards .card ul li {
    text-align: left !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 320px) {
  .assessment-cards .card ul,
  .assessment-cards .card ul li {
    text-align: left !important;
    align-items: flex-start !important;
  }
}

/* ==========================================================================
   BUTTON TEXT OVERFLOW FIXES
   ========================================================================== */

/* Prevent button text overflow and ensure proper wrapping */
.btn,
.btn--primary,
.btn--secondary,
.btn--cta,
.btn--cta-secondary {
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  text-align: center !important;
  line-height: 1.3 !important;
}

/* Mobile button text adjustments */
@media (max-width: 768px) {
  .hero__actions .btn {
    padding: 14px 24px !important;
    font-size: 0.9rem !important;
    max-width: 100%;
  }
  
  .hero__actions .btn--secondary {
    padding: 14px 20px !important;
    font-size: 0.875rem !important;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .hero__actions .btn {
    width: 100%;
    padding: 16px 20px !important;
    font-size: 0.9rem !important;
  }
  
  .hero__actions .btn--secondary {
    padding: 16px 20px !important;
    font-size: 0.875rem !important;
  }
}

/* ==========================================================================
   ASSESSMENT FLOW INFOGRAPHIC RESPONSIVE
   ========================================================================== */

/* Match 3-card grid breakpoints: stack at 1399px (when 4-card goes 2x2) */
@media (max-width: 1399px) {
  .assessment-flow-section .section__heading,
  .assessment-flow-section .section__title {
    text-align: center !important;
  }
}

/* Tablet and mobile adjustments */
@media (max-width: 899px) {
  .assessment-flow {
    max-width: 100%;
    margin: 32px auto 0;
  }
  
  .flow-item {
    grid-template-columns: 64px 1fr;
    gap: 24px;
    padding: 24px 0;
  }
  
  .flow-item__badge {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    box-shadow: 
      0 6px 20px rgba(37, 99, 235, 0.25),
      0 0 0 3px rgba(37, 99, 235, 0.1);
  }
  
  .flow-item__connector {
    left: 32px;
    top: 88px;
    bottom: -24px;
  }
  
  .flow-item__title {
    font-size: 1.375rem;
  }
  
  .flow-item__text {
    font-size: 1rem;
  }
}

/* Mobile - further refinement */
@media (max-width: 600px) {
  .flow-item {
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 20px 0;
  }
  
  .flow-item__badge {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
    box-shadow: 
      0 4px 16px rgba(37, 99, 235, 0.25),
      0 0 0 3px rgba(37, 99, 235, 0.1);
  }
  
  .flow-item__connector {
    left: 28px;
    top: 76px;
    bottom: -20px;
  }
  
  .flow-item__title {
    font-size: 1.25rem;
  }
  
  .flow-item__text {
    font-size: 0.9375rem;
  }
}

/* Training outcomes infographic responsive */
@media (max-width: 1399px) {
  .training-outcomes {
    gap: 32px;
  }
}

@media (max-width: 899px) {
  .training-outcomes {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 600px;
  }
  
  .training-outcomes::before {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, 
      transparent 0%,
      rgba(37, 99, 235, 0.2) 15%,
      rgba(37, 99, 235, 0.4) 50%,
      rgba(37, 99, 235, 0.2) 85%,
      transparent 100%
    );
  }
  
  .outcome-icon {
    width: 80px;
    height: 80px;
  }
  
  .outcome-icon-circle {
    width: 80px;
    height: 80px;
  }
  
  .outcome-number {
    font-size: 2rem;
  }
  
  .outcome-item {
    padding: 40px 32px;
  }
}

@media (max-width: 600px) {
  .training-outcomes {
    gap: 32px;
  }
  
  .outcome-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
  }
  
  .outcome-icon-circle {
    width: 72px;
    height: 72px;
  }
  
  .outcome-number {
    font-size: 1.75rem;
  }
  
  .outcome-item {
    padding: 36px 28px;
  }
  
  .outcome-item h3 {
    font-size: 1.375rem;
  }
  
  .outcome-item p {
    font-size: 0.9375rem;
  }
}

/* Training cards corner accent responsive */
@media (max-width: 768px) {
  .training-cards .card-icon {
    width: 60px;
    height: 60px;
  }
  
  .training-cards .card-icon::before {
    border-width: 0 50px 50px 0;
  }
  
  .training-cards .card:hover .card-icon::before {
    border-width: 0 60px 60px 0;
  }
  
  .training-cards .card-icon::after {
    width: 18px;
    height: 18px;
    top: 6px;
    right: 6px;
  }
}

@media (max-width: 600px) {
  .training-cards .card-icon {
    width: 50px;
    height: 50px;
  }
  
  .training-cards .card-icon::before {
    border-width: 0 40px 40px 0;
  }
  
  .training-cards .card:hover .card-icon::before {
    border-width: 0 50px 50px 0;
  }
  
  .training-cards .card-icon::after {
    width: 14px;
    height: 14px;
    top: 5px;
    right: 5px;
  }
  
  .training-cards .card {
    padding: 44px 32px;
  }
}

/* ==========================================================================
   TRUST & VALUES SECTION - RESPONSIVE
   ========================================================================== */

@media (max-width: 1399px) {
  .trust-values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 1024px) {
  .trust-values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 56px;
  }
  
  .trust-card {
    padding: 40px 32px;
  }
  
  .trust-card h3 {
    font-size: 1.375rem;
  }
  
  .trust-card__text {
    font-size: 1rem;
  }
  
  .trust-card__icon {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
  }
  
  .trust-card__icon svg {
    width: 44px;
    height: 44px;
  }
  
  .trust-card__badge {
    width: 36px;
    height: 36px;
    top: 16px;
    right: 16px;
  }
  
  .trust-card__badge svg {
    width: 18px;
    height: 18px;
  }
}

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

  .trust-values-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
    max-width: 500px; /* Constrain width for single column */
  }
  
  .trust-card {
    padding: 36px 28px;
  }
  
  .trust-card h3 {
    font-size: 1.25rem;
  }
  
  .trust-card__text {
    font-size: 0.9375rem;
  }
  
  .trust-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
  }
  
  .trust-card__icon svg {
    width: 40px;
    height: 40px;
  }
  
  .trust-card__badge {
    width: 32px;
    height: 32px;
    top: 14px;
    right: 14px;
  }
  
  .trust-card__badge svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .trust-values-section {
    padding: 40px 0;
  }
  
  .trust-values-grid {
    margin-top: 40px;
  }
  
  .trust-card {
    padding: 32px 24px;
  }
  
  .trust-card h3 {
    font-size: 1.15rem;
  }
  
  .trust-card__text {
    font-size: 0.875rem;
  }
  
  .trust-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }
  
  .trust-card__icon svg {
    width: 36px;
    height: 36px;
  }
  
  .trust-card__badge {
    width: 28px;
    height: 28px;
    top: 12px;
    right: 12px;
  }
  
  .trust-card__badge svg {
    width: 14px;
    height: 14px;
  }
}

/* ==========================================================================
   HERO BUTTONS - RESPONSIVE CONSISTENCY
   ========================================================================== */

/* Tablet & Small Desktop - Maintain button height consistency */
@media (max-width: 1200px) {
  .hero__actions {
    gap: 14px;
  }
  
  .hero__actions .btn--primary,
  .hero__actions .btn--secondary,
  .hero--dark .hero__actions .btn--primary,
  .hero--dark .hero__actions .btn--secondary {
    padding: 14px 28px !important;
    font-size: 0.95rem !important;
    min-height: 50px !important;
  }
}

/* Mobile - Stack buttons vertically */
@media (max-width: 768px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  
  .hero__actions .btn--primary,
  .hero__actions .btn--secondary,
  .hero--dark .hero__actions .btn--primary,
  .hero--dark .hero__actions .btn--secondary {
    width: 100% !important;
    max-width: 320px !important;
    padding: 16px 32px !important;
    font-size: 1rem !important;
    min-height: 54px !important;
    justify-content: center !important;
  }
}

/* Small Mobile - Slightly smaller buttons */
@media (max-width: 480px) {
  .hero__actions .btn--primary,
  .hero__actions .btn--secondary,
  .hero--dark .hero__actions .btn--primary,
  .hero--dark .hero__actions .btn--secondary {
    max-width: 280px !important;
    padding: 14px 28px !important;
    font-size: 0.95rem !important;
    min-height: 50px !important;
  }
}

/* Offers/retainers NIS2 band: keep CTA card centered and readable on mobile */
@media (max-width: 768px) {
  .nis2-band,
  .nis2-band__eyebrow,
  .nis2-band__title,
  .nis2-band__text,
  .nis2-band__actions {
    text-align: center !important;
  }

  .nis2-band {
    justify-items: center !important;
    padding: 28px 22px !important;
  }

  .nis2-band__title,
  .nis2-band__text {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .nis2-band__actions {
    justify-content: center !important;
    width: 100% !important;
  }

  .nis2-band__actions .btn {
    display: inline-flex !important;
    width: min(100%, 360px) !important;
    max-width: 360px !important;
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 16px 28px !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}

/* About / Despre team CTA: keep the mobile button optically centered and compact. */
.leadership-section__cta-row .leadership-section__cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

@media (max-width: 768px) {
  .leadership-section__cta-row .leadership-section__cta {
    width: min(100%, 340px) !important;
    max-width: 340px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 28px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1 !important;
  }
}

@media (max-width: 480px) {
  .leadership-section__cta-row .leadership-section__cta {
    width: min(100%, 320px) !important;
    max-width: 320px !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 24px !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 374px) {
  .leadership-section__cta-row .leadership-section__cta {
    max-width: 300px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 20px !important;
    font-size: 0.95rem !important;
  }
}

/* About / Despre trust cards: center mobile icons and keep card rhythm balanced. */
@media (max-width: 768px) {
  .trust-values-section .trust-card {
    align-items: center !important;
    text-align: center !important;
  }

  .trust-values-section .trust-card__icon {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 22px !important;
  }

  .trust-values-section .trust-card__title,
  .trust-values-section .trust-card__text {
    text-align: center !important;
  }

  .trust-values-section .trust-card__value {
    width: 100% !important;
    justify-content: center !important;
  }

  .trust-values-section .trust-card__value-label {
    display: inline-grid !important;
    grid-template-columns: auto minmax(0, auto) !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .trust-values-section .trust-values-grid {
    max-width: 390px !important;
  }

  .trust-values-section .trust-card {
    padding: 34px 22px 28px !important;
  }

  .trust-values-section .trust-card__icon {
    width: 62px !important;
    height: 62px !important;
    margin-bottom: 24px !important;
  }

  .trust-values-section .trust-card__icon svg {
    width: 32px !important;
    height: 32px !important;
  }
}

/* Let vertical scrolling start comfortably when a touch begins on an in-site
   link or CTA button — home service cards, hero buttons, and any .btn on every
   page. Touch devices only; desktop is unaffected. */
@media (pointer: coarse), (hover: none) {
  a.card[href],
  .btn {
    touch-action: pan-y;
  }
}

/* Incident response trigger strip: compact, professional mobile list cards. */
@media (max-width: 899px) {
  .when-to-call-section .incident-trigger-strip {
    width: min(100%, 680px) !important;
    gap: 12px !important;
    margin-top: 30px !important;
  }

  .when-to-call-section .incident-trigger {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 0 !important;
    padding: 18px 20px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(37, 99, 235, 0.12) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06) !important;
  }

  .when-to-call-section .incident-trigger::before {
    inset: 0 auto 0 0 !important;
    width: 4px !important;
    height: auto !important;
    border-radius: 18px 0 0 18px !important;
    background: linear-gradient(180deg, #3b82f6 0%, rgba(37, 99, 235, 0.14) 100%) !important;
  }

  .when-to-call-section .incident-trigger__index {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.06)) !important;
    font-size: 0.82rem !important;
    line-height: 1 !important;
    letter-spacing: 0.03em !important;
  }

  .when-to-call-section .incident-trigger__content {
    text-align: left !important;
  }

  .when-to-call-section .incident-trigger__title {
    margin: 0 0 4px !important;
    font-size: 1.08rem !important;
    line-height: 1.18 !important;
    text-align: left !important;
  }

  .when-to-call-section .incident-trigger__text {
    max-width: 34ch !important;
    margin: 0 !important;
    font-size: 0.94rem !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }
}

@media (max-width: 480px) {
  .when-to-call-section .incident-trigger-strip {
    gap: 10px !important;
    margin-top: 26px !important;
  }

  .when-to-call-section .incident-trigger {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 16px 16px 16px 18px !important;
    border-radius: 16px !important;
  }

  .when-to-call-section .incident-trigger::before {
    width: 3px !important;
    border-radius: 16px 0 0 16px !important;
  }

  .when-to-call-section .incident-trigger__index {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    font-size: 0.78rem !important;
  }

  .when-to-call-section .incident-trigger__title {
    font-size: 1rem !important;
  }

  .when-to-call-section .incident-trigger__text {
    font-size: 0.88rem !important;
    line-height: 1.42 !important;
  }
}

/* Leadership badges: use CSS-drawn icons instead of fragile text glyphs. */
.leadership-section .badge {
  gap: 7px !important;
}

.leadership-section .badge-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: 14px !important;
  height: 14px !important;
  margin-right: 0 !important;
  color: #2563eb !important;
  font-size: 0 !important;
  line-height: 0 !important;
  position: relative !important;
}

.leadership-section .badge-icon::before {
  content: '' !important;
  display: block !important;
  background: currentColor !important;
}

.leadership-section .badge-icon--bolt::before {
  width: 10px !important;
  height: 14px !important;
  clip-path: polygon(46% 0, 94% 0, 64% 39%, 100% 39%, 35% 100%, 48% 57%, 0 57%) !important;
}

.leadership-section .badge-icon--diamond::before {
  width: 9px !important;
  height: 9px !important;
  border-radius: 2px !important;
  transform: rotate(45deg) !important;
}

.leadership-section .badge-icon--stack::before {
  width: 13px !important;
  height: 12px !important;
  background:
    linear-gradient(currentColor 0 0) 0 1px / 13px 2px no-repeat,
    linear-gradient(currentColor 0 0) 0 5px / 13px 2px no-repeat,
    linear-gradient(currentColor 0 0) 0 9px / 13px 2px no-repeat !important;
  border-radius: 0 !important;
}
