/* ==========================================================================
   Fælles Fordele — Mobile-Only Styles
   IMPORTANT: All styles in this file are STRICTLY for mobile (max-width: 767px)
   These styles do NOT affect desktop (≥768px) or tablet layouts
   ========================================================================== */

/* --------------------------------------------------------------------------
   Mobile-Only Media Query Wrapper
   All styles below are scoped to mobile devices only
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {

  /* ==========================================================================
     CSS Variables for Mobile
     ========================================================================== */
  :root {
    --mobile-header-top-height: 56px;
    --mobile-header-nav-height: 44px;
    --mobile-touch-target: 44px;
  }

  /* ==========================================================================
     Mobile Header - Compact Single-Line Design
     ========================================================================== */
  .mobile-header {
    display: block !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #0c1e21;
    padding-top: env(safe-area-inset-top, 0px);
  }

  /* Add top padding to body to account for fixed header + safe area */
  body {
    padding-top: calc(72px + env(safe-area-inset-top, 0px)) !important;
  }

  /* Header bar - simple flexbox centering */
  .mobile-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 1rem;
    position: relative;
    box-sizing: border-box;
  }

  /* Logo - absolutely centered */
  .mobile-header__logo-link {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-header__logo {
    height: 44px !important;
    width: 44px !important;
    border-radius: 12px;
  }

  /* Modern button design */
  .mobile-header__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 105px;
    height: 44px;
    padding: 0 1.25rem;
    background: rgba(13, 148, 136, 0.15);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
  }

  .mobile-header__btn svg {
    width: 18px;
    height: 18px;
    stroke: #5eead4;
    flex-shrink: 0;
  }

  .mobile-header__btn span {
    font-size: 14px;
    font-weight: 600;
    color: white;
    letter-spacing: -0.01em;
  }

  .mobile-header__btn:active {
    background: rgba(13, 148, 136, 0.25);
    transform: scale(0.98);
  }

  /* Category dropdown */
  .mobile-header__dropdown {
    background: #0f2a2e;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0.75rem;
    animation: slideDown 0.15s ease;
  }

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

  .mobile-header__dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .mobile-header__cat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 0.25rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-header__cat-btn:active {
    background: rgba(255,255,255,0.08);
  }

  .mobile-header__cat-btn svg {
    width: 20px;
    height: 20px;
    stroke: #5eead4;
    stroke-width: 1.5;
  }

  .mobile-header__cat-btn span {
    font-size: 0.5625rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
  }

  /* ==========================================================================
     IFRAME-SAFE MOBILE NAVIGATION
     Uses VisualViewport API heights to work in iframes + iOS Safari
     Height set via JS using ViewportManager for accuracy
     ========================================================================== */

  /* Container - covers full viewport when open */
  /* Height is set via JS using visualViewport.height for iframe compatibility */
  .mobile-nav-container {
    display: none;
    position: fixed;
    /* Use inset positioning - more reliable than height:100% in iframes */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* JS will override with actual height for extra safety */
    height: var(--viewport-height, 100vh);
    z-index: 2000;
    /* Prevent scroll from escaping */
    overscroll-behavior: contain;
    overscroll-behavior-y: none;
    touch-action: none;
  }

  .mobile-nav-container.is-open {
    display: flex;
  }

  /* Backdrop - prevents scroll pass-through */
  .mobile-nav__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    touch-action: none;
    overscroll-behavior: none;
  }

  /* Menu Panel - slides in from right */
  .mobile-nav__panel {
    position: absolute;
    /* Use inset for reliable sizing */
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: #0c1e21;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    /* Safe-area padding */
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
  }

  /* Fill safe-area at top with dark background */
  .mobile-nav__panel::before {
    content: '';
    position: absolute;
    top: calc(-1 * env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    height: env(safe-area-inset-top, 0px);
    background: #0c1e21;
    z-index: 1;
  }

  /* Fill safe-area at bottom with dark background */
  .mobile-nav__panel::after {
    content: '';
    position: absolute;
    bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    height: env(safe-area-inset-bottom, 0px);
    background: #0c1e21;
    z-index: 1;
  }

  .mobile-nav-container.is-open .mobile-nav__panel {
    transform: translateX(0);
  }

  /* Panel Header */
  .mobile-nav__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }

  .mobile-nav__panel-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
  }

  .mobile-nav__close {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav__close:active {
    background: rgba(255,255,255,0.15);
  }

  .mobile-nav__close svg {
    width: 22px;
    height: 22px;
    stroke: white;
  }

  /* Scrollable Content - iOS-safe scroll containment */
  .mobile-nav__scroll {
    flex: 1;
    min-height: 0; /* Critical for flex child scrolling */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    /* Extra padding at bottom for home indicator */
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
    position: relative;
    z-index: 2;
  }

  /* User Section */
  .mobile-nav__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    cursor: pointer;
  }

  .mobile-nav__user:active {
    background: rgba(255,255,255,0.1);
  }

  .mobile-nav__user-avatar {
    width: 44px;
    height: 44px;
    background: #0d9488;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
  }

  .mobile-nav__user-info {
    flex: 1;
    min-width: 0;
  }

  .mobile-nav__user-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
  }

  .mobile-nav__user-hint {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    margin-top: 0.125rem;
  }

  .mobile-nav__user-arrow {
    width: 20px;
    height: 20px;
    stroke: rgba(255,255,255,0.4);
    flex-shrink: 0;
  }

  /* Sections */
  .mobile-nav__section {
    padding: 0 1rem;
    margin-bottom: 1rem;
  }

  .mobile-nav__section-title {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
  }

  /* Menu Items */
  .mobile-nav__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 48px;
    padding: 0.625rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav__item:active {
    background: rgba(255,255,255,0.08);
  }

  .mobile-nav__item-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mobile-nav__item-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
  }

  .mobile-nav__item-icon--pink {
    background: rgba(236, 72, 153, 0.15);
  }
  .mobile-nav__item-icon--pink svg {
    stroke: #ec4899;
  }

  .mobile-nav__item-icon--purple {
    background: rgba(139, 92, 246, 0.15);
  }
  .mobile-nav__item-icon--purple svg {
    stroke: #8b5cf6;
  }

  .mobile-nav__item-icon--green {
    background: rgba(34, 197, 94, 0.15);
  }
  .mobile-nav__item-icon--green svg {
    stroke: #22c55e;
  }

  /* Categories List - Desktop-style design */
  .mobile-nav__categories {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .mobile-nav__cat-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
    text-align: left;
    width: 100%;
  }

  .mobile-nav__cat-btn:active {
    background: rgba(255,255,255,0.1);
  }

  .mobile-nav__cat-btn.active {
    background: rgba(255,255,255,0.12);
  }

  .mobile-nav__cat-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--cat-color, rgba(255,255,255,0.5));
    flex-shrink: 0;
    transition: stroke 0.15s ease, filter 0.15s ease;
  }

  .mobile-nav__cat-btn:active svg,
  .mobile-nav__cat-btn.active svg {
    stroke: var(--cat-color, rgba(255,255,255,0.9));
    filter: brightness(1.2);
  }

  .mobile-nav__cat-btn span {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    letter-spacing: 0.01em;
  }

  .mobile-nav__cat-btn:active span,
  .mobile-nav__cat-btn.active span {
    color: white;
  }

  /* Footer */
  .mobile-nav__footer {
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
  }

  .mobile-nav__footer-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    min-height: 44px;
    padding: 0.625rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.8125rem;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav__footer-item:active {
    background: rgba(255,255,255,0.05);
  }

  .mobile-nav__footer-item svg {
    width: 18px;
    height: 18px;
  }

  .mobile-nav__footer-item--logout {
    color: #ef4444;
  }

  .mobile-nav__footer-item--logout svg {
    stroke: #ef4444;
  }

  /* ==========================================================================
     Content Adjustments for Mobile Header
     ========================================================================== */
  /* NOTE: No body padding-top needed - header is sticky, not fixed */
  body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* Adjust main content area */
  .app-content {
    margin-left: 0 !important;
  }

  /* Container padding for mobile */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* ==========================================================================
     Partners Grid - Mobile Single Column Layout
     ========================================================================== */
  .partners-grid {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
  }

  /* ==========================================================================
     Card Hero - Mobile Optimized
     ========================================================================== */
  .card-hero {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  .card-hero__image-wrap {
    height: 120px;
    border-radius: 12px 12px 0 0;
  }

  .card-hero__content {
    padding: 1rem;
  }

  .card-hero__header {
    gap: 0.75rem;
  }

  .card-hero__logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .card-hero__name {
    font-size: 1rem;
  }

  .card-hero__category {
    font-size: 0.6875rem;
  }

  /* Discount badge */
  .card-hero__discount {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    border-radius: 8px;
  }

  /* Action buttons - ensure touch targets */
  .card-hero__footer {
    padding-top: 0.75rem;
    margin-top: 0.75rem;
  }

  .card-hero__btn {
    min-height: var(--mobile-touch-target);
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border-radius: 10px;
  }

  .card-hero__action {
    min-width: var(--mobile-touch-target);
    min-height: var(--mobile-touch-target);
  }

  /* ==========================================================================
     Promo Banner - Mobile Optimized
     ========================================================================== */
  .promo-banner {
    padding: 0.75rem 0;
  }

  .promo-banner__slider {
    border-radius: 12px;
    min-height: auto !important;
  }

  .promo-banner__slide-inner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    min-height: 160px;
    height: auto !important;
    gap: 0.5rem;
  }

  .promo-banner__text {
    flex: none !important;
    width: 100%;
  }

  .promo-banner__text h3 {
    font-size: 1rem !important;
    line-height: 1.3;
    margin: 0.25rem 0 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .promo-banner__text p {
    font-size: 0.75rem !important;
    line-height: 1.4;
    margin: 0;
  }

  .promo-banner__badge {
    font-size: 0.625rem !important;
    padding: 0.2rem 0.5rem !important;
  }

  .promo-banner__image {
    width: 60px;
    height: 60px;
    order: -1;
  }

  /* Fix dots - make them small and circular */
  .promo-banner__dots {
    margin-top: 0.75rem !important;
    gap: 6px !important;
    align-items: center !important;
  }

  .promo-banner__dot {
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    min-height: 6px !important;
    max-width: 6px !important;
    max-height: 6px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .promo-banner__nav {
    width: 32px;
    height: 32px;
  }

  .promo-banner__nav--prev {
    left: 0.5rem;
  }

  .promo-banner__nav--next {
    right: 0.5rem;
  }

  /* ==========================================================================
     Modal - Full Screen Takeover

     Simpel fuldskærms løsning der virker i alle kontekster inkl. iframe.
     Ingen kompleks positionering eller transform-animation.
     ========================================================================== */

  .modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    padding: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .modal__content {
    width: 100% !important;
    max-width: 100% !important;
    /* Use JS-calculated height for iframe compatibility */
    max-height: calc(var(--viewport-height, 100vh) * 0.9) !important;
    margin: 0 !important;
    border-radius: 16px !important;
    background: white !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    /* Flex layout to handle header/body/footer properly */
    display: flex !important;
    flex-direction: column !important;
  }

  .modal__header {
    padding: 1rem !important;
    background: white !important;
    border-bottom: 1px solid #e5e7eb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .modal__title {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
  }

  .modal__close {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    border: none !important;
    cursor: pointer !important;
  }

  .modal__body {
    padding: 1.25rem !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    flex: 1 !important;
    min-height: 0 !important; /* Allows flex item to shrink below content size */
  }

  .modal__footer {
    flex-shrink: 0 !important;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Access options - touch-venlige */
  .access-option {
    min-height: 60px !important;
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
  }

  .access-option:last-child {
    margin-bottom: 0 !important;
  }

  .access-option__icon {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0 !important;
  }

  .access-option__text strong {
    font-size: 0.9375rem !important;
  }

  .access-option__text span {
    font-size: 0.8125rem !important;
  }

  /* ==========================================================================
     Access Modal - Fælles Forsikring Dark Theme (matches login page)
     ========================================================================== */
  .access-modal-branded {
    max-width: 320px !important;
    background: #0f2a2e !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  .access-modal__header {
    background: linear-gradient(180deg, #0c1e21 0%, #0f2a2e 100%) !important;
    padding: 1.25rem 1rem 1rem !important;
    border-bottom: none !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.25rem !important;
  }

  .access-modal__logo {
    height: 72px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
  }

  .access-modal__badge {
    background: #00c9a7 !important;
    color: #0c1e21 !important;
    font-size: 0.5625rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    padding: 0.25rem 0.625rem !important;
    border-radius: 12px !important;
    text-transform: uppercase !important;
    margin-top: 0.375rem !important;
  }

  .access-modal__header .modal__close {
    background: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
    position: absolute !important;
    right: 0.75rem !important;
    top: 0.75rem !important;
    transform: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
  }

  .access-modal__header .modal__close:active {
    background: rgba(255, 255, 255, 0.15) !important;
  }

  .access-modal__header .modal__close svg {
    stroke: rgba(255,255,255,0.7) !important;
    width: 16px !important;
    height: 16px !important;
  }

  .access-modal-branded .modal__body {
    background: #0f2a2e !important;
    padding: 0 1.25rem 1.5rem !important;
  }

  .access-modal__title {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: white !important;
    margin: 0 0 0.375rem 0 !important;
    text-align: center !important;
  }

  .access-modal__desc {
    font-size: 0.8125rem !important;
    color: rgba(255,255,255,0.6) !important;
    margin: 0 0 1rem 0 !important;
    text-align: center !important;
    line-height: 1.4 !important;
  }

  .access-modal-branded .access-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .access-modal-branded .access-option {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    min-height: 48px !important;
    padding: 0.625rem 0.875rem !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    margin: 0 !important;
  }

  .access-modal-branded .access-option__icon {
    width: 32px !important;
    height: 32px !important;
    background: rgba(255,255,255,0.08) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .access-modal-branded .access-option__icon svg {
    width: 16px !important;
    height: 16px !important;
    stroke: rgba(255,255,255,0.8) !important;
  }

  .access-modal-branded .access-option__text {
    flex: 1 !important;
  }

  .access-modal-branded .access-option strong {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: white !important;
    display: block !important;
    line-height: 1.3 !important;
  }

  .access-modal-branded .access-option span {
    font-size: 0.6875rem !important;
    color: rgba(255,255,255,0.5) !important;
  }

  .access-modal-branded .access-option__arrow {
    display: none !important;
  }

  .access-modal-branded .access-option--primary {
    background: #00c9a7 !important;
    border-color: #00c9a7 !important;
  }

  .access-modal-branded .access-option--primary .access-option__icon {
    background: rgba(0,0,0,0.12) !important;
  }

  .access-modal-branded .access-option--primary strong {
    color: #0c1e21 !important;
  }

  .access-modal-branded .access-option--primary span {
    color: rgba(12,30,33,0.65) !important;
  }

  .access-modal-branded .access-option--primary .access-option__icon svg {
    stroke: #0c1e21 !important;
  }

  .access-modal-branded .access-option--primary:active {
    background: #00ddb8 !important;
    border-color: #00ddb8 !important;
  }

  /* ==========================================================================
     Search - Mobile Optimized
     ========================================================================== */
  .search-bar {
    margin: 0.75rem 0;
  }

  .search-bar__input {
    height: var(--mobile-touch-target);
    padding: 0 1rem 0 2.75rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  .search-bar__icon {
    left: 1rem;
  }

  /* ==========================================================================
     Typography Adjustments
     ========================================================================== */
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  .section-header__title {
    font-size: 1.25rem;
  }

  /* ==========================================================================
     Buttons - Touch Friendly
     ========================================================================== */
  .btn,
  button {
    min-height: var(--mobile-touch-target);
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }

  /* ==========================================================================
     Form Elements - Touch Friendly
     ========================================================================== */
  .form-input,
  .form-select,
  .form-textarea {
    min-height: var(--mobile-touch-target);
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  /* ==========================================================================
     Accessibility - Focus States
     ========================================================================== */
  .mobile-menu__item:focus-visible,
  .mobile-header__hamburger:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
  }

  /* ==========================================================================
     Performance - Lazy Loading Styles
     ========================================================================== */
  .card-hero__image[loading="lazy"],
  .promo-banner__image[loading="lazy"] {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  }

  /* ==========================================================================
     Prevent Horizontal Scroll
     ========================================================================== */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* ==========================================================================
     Skip Link - Visible on Focus
     ========================================================================== */
  .skip-link:focus {
    top: calc(100px + env(safe-area-inset-top, 0px) + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1003;
  }

  /* ==========================================================================
     Footer - Mobile Optimized
     ========================================================================== */
  .site-footer__logo {
    width: auto !important;
    min-width: 100px;
    max-width: 140px;
    height: auto !important;
    min-height: 32px;
  }

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

  .site-footer__tagline {
    font-size: 0.875rem !important;
  }

  /* ==========================================================================
     Loading Feedback - Slow Network Indicator
     ========================================================================== */
  .loading-feedback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    margin-bottom: 1rem;
  }

  .loading-feedback__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #0d9488;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  .loading-feedback__text {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
  }

  .loading-feedback__retry {
    margin-top: 1rem;
    padding: 0.625rem 1.25rem;
    min-height: 44px;
    background: #0d9488;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .loading-feedback__retry:active {
    background: #0f766e;
  }

  /* ==========================================================================
     Performance Optimizations
     ========================================================================== */

  /* Will-change hints for animated elements */
  .mobile-nav__panel {
    will-change: transform;
  }

  .mobile-nav__backdrop {
    will-change: opacity;
  }

  .modal__content {
    will-change: transform, opacity;
  }

  .promo-banner__slide {
    will-change: opacity;
  }

  /* Contain property on cards for rendering optimization */
  .card-hero {
    contain: layout style paint;
  }

  .skeleton-card {
    contain: layout style paint;
  }

  /* Prevent overscroll/rubber-banding on iOS */
  html {
    overscroll-behavior-y: none;
  }

  body {
    overscroll-behavior-y: none;
  }

} /* End of @media (max-width: 767px) */
