/* ============================================
   MUIDATECH - Responsive Stylesheet
   Mobile-First Breakpoints
   ============================================ */

/*
   Breakpoints:
   - Base: 320px+ (mobile)
   - sm: 640px+ (large phones)
   - md: 768px+ (tablets)
   - lg: 1024px+ (small desktop)
   - xl: 1280px+ (desktop)
   - 2xl: 1536px+ (large desktop)
*/

/* ============================================
   GLOBAL IMAGE RESPONSIVENESS
   ============================================ */

/* Ensure all images are responsive by default */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent inline images from breaking layout */
.hero-badge img,
.trust-bar-item img,
.service-card img,
.feature-card img,
.guarantee-badge img {
  display: inline-block;
}

/* Ensure SVG icons scale properly */
svg {
  max-width: 100%;
  height: auto;
}

/* Keep inline SVGs at specified dimensions */
.btn svg,
.hero-badge svg,
.hero-trust-item svg,
nav svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* ============================================
   LARGE PHONES (640px+)
   ============================================ */

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-xl);
  }

  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

  .hero-cta {
    flex-direction: row;
  }

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

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

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

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

  /* Portfolio grid - 2 columns on larger phones */
  section > .container > div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Industry cards - 2 columns on larger phones */
  #industries > .container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================
   TABLETS (768px+)
   ============================================ */

@media (min-width: 768px) {
  section {
    padding: var(--space-4xl) 0;
  }

  .hero {
    padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  }

  .hero-container {
    gap: var(--space-2xl);
  }

  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

  h3 {
    font-size: var(--text-3xl);
  }

  .problem-solution-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

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

  .process-steps {
    flex-direction: row;
  }

  .process-steps::before {
    display: block;
  }

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

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

  /* ============================================
     ICON RESPONSIVENESS - TABLETS
     ============================================ */

  /* Trust bar icons - slightly larger on tablets */
  .trust-bar-item img {
    width: 22px !important;
    height: 22px !important;
  }

  /* Service card icons */
  .service-card img,
  .service-icon img {
    width: 36px !important;
    height: 36px !important;
  }

  /* Feature card icons */
  .feature-card img,
  .feature-icon img {
    width: 44px !important;
    height: 44px !important;
  }
}

/* ============================================
   SMALL DESKTOP (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  :root {
    --nav-height: 80px;
  }

  section {
    padding: var(--space-5xl) 0;
  }

  .navbar-menu {
    display: flex;
  }

  .navbar-toggle {
    display: none;
  }

  .navbar-cta {
    display: flex;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  h1 {
    font-size: var(--text-6xl);
  }

  h2 {
    font-size: var(--text-5xl);
  }

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

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .testimonials-slider {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .pricing-card.featured {
    transform: scale(1.05);
  }

  .pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
  }
}

/* ============================================
   DESKTOP (1280px+)
   ============================================ */

@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-lg);
  }

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

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
  }
}

/* ============================================
   LARGE DESKTOP (1536px+)
   ============================================ */

@media (min-width: 1536px) {
  :root {
    --max-width: 1400px;
  }
}

/* ============================================
   MOBILE STYLES (max-width: 1023px)
   ============================================ */

@media (max-width: 1023px) {
  /* Navigation */
  .navbar-menu {
    display: none;
  }

  .navbar-cta {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
    margin-top: var(--space-2xl);
  }

  .hero-subtitle {
    margin: 0 auto var(--space-xl);
  }

  .hero-cta {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

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

  .hero-trust {
    justify-content: center;
  }

  .hero-mockup {
    transform: none;
    max-width: 100%;
  }

  .hero-float-card {
    display: none;
  }

  /* Trust Bar */
  .trust-bar-container {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  /* Problem/Solution */
  .problem-solution-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .feature-card {
    padding: var(--space-xl);
  }

  /* Process Steps */
  .process-steps {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .process-steps::before {
    display: none;
  }

  .process-step {
    max-width: 100%;
  }

  .process-step p {
    max-width: 100%;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .stat-number {
    font-size: var(--text-4xl);
  }

  /* Pricing Cards */
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .pricing-card.featured {
    transform: none;
    order: -1;
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  /* Testimonials */
  .testimonials-slider {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* CTA Section */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .footer-brand p {
    margin: var(--space-md) auto 0;
  }

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

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

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Tabs */
  .tab-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-md);
  }

  .tab-button {
    flex-shrink: 0;
  }

  /* Tables */
  .pricing-table {
    display: block;
    overflow-x: auto;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
  }

  /* Contact Grid */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* ============================================
   SMALL MOBILE STYLES (max-width: 639px)
   ============================================ */

@media (max-width: 639px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  section {
    padding: var(--space-2xl) 0;
  }

  h1 {
    font-size: var(--text-3xl);
    line-height: 1.2;
  }

  h2 {
    font-size: var(--text-2xl);
    line-height: 1.25;
  }

  h3 {
    font-size: var(--text-xl);
  }

  h4 {
    font-size: var(--text-lg);
  }

  .btn {
    padding: 14px 24px;
    font-size: var(--text-sm);
    min-height: 48px;
  }

  .btn-lg {
    padding: 16px 28px;
    font-size: var(--text-base);
    min-height: 52px;
  }

  /* ============================================
     FULL-PAGE MOBILE NAVIGATION
     ============================================ */

  .mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d2d4d 100%);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .mobile-nav.active {
    right: 0;
  }

  .mobile-nav-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-nav-header .navbar-logo-text {
    color: #fff;
    font-size: var(--text-xl);
  }

  .mobile-nav-header .navbar-logo-text span {
    color: var(--color-secondary);
  }

  .mobile-nav-close {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: #fff;
  }

  .mobile-nav-close:hover,
  .mobile-nav-close:active {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
  }

  .mobile-nav-close svg {
    width: 24px;
    height: 24px;
  }

  .mobile-nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
    gap: var(--space-xs);
  }

  .mobile-nav-menu li {
    margin: 0;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInNav 0.4s ease forwards;
  }

  .mobile-nav.active .mobile-nav-menu li:nth-child(1) { animation-delay: 0.1s; }
  .mobile-nav.active .mobile-nav-menu li:nth-child(2) { animation-delay: 0.15s; }
  .mobile-nav.active .mobile-nav-menu li:nth-child(3) { animation-delay: 0.2s; }
  .mobile-nav.active .mobile-nav-menu li:nth-child(4) { animation-delay: 0.25s; }
  .mobile-nav.active .mobile-nav-menu li:nth-child(5) { animation-delay: 0.3s; }
  .mobile-nav.active .mobile-nav-menu li:nth-child(6) { animation-delay: 0.35s; }

  @keyframes slideInNav {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .mobile-nav-menu a {
    display: block;
    padding: var(--space-md) var(--space-lg);
    color: #fff;
    font-size: var(--text-2xl);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    text-align: center;
  }

  .mobile-nav-menu a:hover,
  .mobile-nav-menu a:active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-secondary);
  }

  .mobile-nav-cta {
    padding: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  .mobile-nav-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 18px 24px;
    font-size: var(--text-lg);
    font-weight: 600;
  }

  .mobile-nav-cta .btn-primary {
    background: var(--color-secondary);
    color: var(--color-primary);
  }

  .mobile-nav-cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
  }

  .mobile-nav-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
  }

  /* ============================================
     HERO MOBILE - COMPLETE REDESIGN
     ============================================ */

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--space-lg);
    width: 100%;
    max-width: 100%;
    gap: 0;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Hero Badge - Hide on mobile for cleaner look */
  .hero-badge {
    display: none;
  }

  /* Hero Title */
  .hero h1 {
    font-size: clamp(28px, 8vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    color: #fff;
    text-align: center;
  }

  .hero h1 span {
    display: block;
    color: var(--color-secondary);
    margin-top: 4px;
  }

  /* Hero Subtitle */
  .hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
    text-align: center;
    max-width: 340px;
  }

  /* Hero CTA Buttons - Single button on mobile */
  .hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    max-width: 280px;
    margin-bottom: 0;
  }

  .hero-cta .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-align: center;
  }

  .hero-cta .btn-primary {
    background: var(--color-secondary);
    color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
  }

  .hero-cta .btn-primary:active {
    transform: scale(0.98);
  }

  /* Hide secondary button on mobile */
  .hero-cta .btn-outline-light,
  .hero-cta .btn:nth-child(2) {
    display: none;
  }

  .hero-cta .btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  /* Hero Trust Items - Hide on mobile for cleaner look */
  .hero-trust {
    display: none;
  }

  /* Hide hero visual elements on mobile */
  .hero-visual,
  .hero-image-wrapper,
  .hero-mockup,
  .hero-float-card {
    display: none !important;
  }

  /* Scroll Indicator - Hide on mobile for cleaner look */
  .scroll-indicator {
    display: none;
  }

  /* Breadcrumb (for subpages) */
  .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-lg);
    width: 100%;
  }

  .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
  }

  .breadcrumb a:hover {
    color: var(--color-secondary);
  }

  .breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
  }

  .breadcrumb-current {
    color: #fff;
    font-weight: 500;
  }

  .breadcrumb span {
    margin: 0 6px;
  }

  /* ============================================
     TRUST BAR - MOBILE OPTIMIZED
     ============================================ */

  .trust-bar {
    padding: var(--space-lg) 0;
  }

  .trust-bar-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    justify-items: center;
  }

  .trust-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: var(--space-md);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    width: 100%;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .trust-bar-item svg {
    width: 28px;
    height: 28px;
    color: var(--color-secondary);
  }

  /* Trust bar icons - responsive sizing */
  .trust-bar-item img {
    width: 20px !important;
    height: 20px !important;
  }

  /* ============================================
     SCROLL TO TOP - MOBILE
     ============================================ */

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    box-shadow: 0 4px 24px rgba(10, 37, 64, 0.35);
  }

  .scroll-to-top svg {
    width: 26px;
    height: 26px;
  }

  /* Problem/Solution */
  .problem-box,
  .solution-box {
    padding: var(--space-lg);
  }

  /* Service Cards */
  .service-card {
    padding: var(--space-lg);
  }

  .service-icon {
    width: 48px;
    height: 48px;
  }

  .service-icon svg {
    width: 24px;
    height: 24px;
  }

  /* Service card icons - responsive sizing */
  .service-card img,
  .service-icon img,
  div[style*="display: flex"][style*="align-items: center"] > img[width="40"] {
    width: 32px !important;
    height: 32px !important;
  }

  /* Feature Cards */
  .feature-icon {
    width: 60px;
    height: 60px;
  }

  .feature-icon svg {
    width: 30px;
    height: 30px;
  }

  /* Feature card icons - responsive sizing */
  .feature-card img,
  .feature-icon img,
  div[style*="display: flex"][style*="align-items: center"] > img[width="48"] {
    width: 40px !important;
    height: 40px !important;
  }

  /* Guarantee Banner */
  .guarantee-banner {
    padding: var(--space-lg);
  }

  /* Guarantee badge icons - responsive sizing */
  .guarantee-badge img,
  .hero-badge img,
  span[style*="display: flex"] img[width="20"],
  span[style*="display: flex"] img[width="16"] {
    width: 16px !important;
    height: 16px !important;
  }

  /* Pricing Cards */
  .pricing-card {
    padding: var(--space-lg);
  }

  .pricing-price {
    font-size: var(--text-3xl);
  }

  /* Testimonials */
  .testimonial-card {
    padding: var(--space-lg);
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-number {
    font-size: var(--text-3xl);
  }

  /* Process Steps */
  .process-number {
    width: 60px;
    height: 60px;
    font-size: var(--text-xl);
  }

  /* Forms */
  .form-input,
  .form-textarea,
  .form-select {
    padding: 12px var(--space-md);
  }

  /* Accordion */
  .accordion-header {
    padding: var(--space-md);
    font-size: var(--text-sm);
  }

  .accordion-body {
    padding: 0 var(--space-md) var(--space-md);
  }

  /* Modal */
  .modal {
    margin: var(--space-md);
    border-radius: var(--radius-lg);
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: var(--space-lg);
  }

  /* Contact Info */
  .contact-info-box {
    padding: var(--space-lg);
  }

  .contact-info-icon {
    width: 40px;
    height: 40px;
  }

  .contact-info-icon svg {
    width: 20px;
    height: 20px;
  }

  /* Industry Cards */
  .industry-content {
    padding: var(--space-lg);
  }

  /* Blog Cards */
  .blog-content {
    padding: var(--space-md);
  }

  .blog-image {
    height: 160px;
  }

  /* Portfolio Cards */
  .portfolio-card img {
    height: 220px;
  }

  .portfolio-overlay {
    padding: var(--space-lg);
  }

  /* Team Cards */
  .team-image {
    width: 140px;
    height: 140px;
  }

  /* Alerts */
  .alert {
    flex-direction: column;
    text-align: center;
  }

  /* Section Headers */
  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .section-header p {
    font-size: var(--text-base);
  }

  /* ============================================
     TJENESTER PAGE - SERVICE SECTIONS MOBILE
     ============================================ */

  /* Two-column service grids become single column */
  #nettsider > .container > div,
  #seo > .container > div,
  #ai > .container > div,
  #some > .container > div,
  #video > .container > div,
  #logo > .container > div,
  #ads > .container > div,
  #profilering > .container > div,
  #google > .container > div,
  #innhold > .container > div {
    grid-template-columns: 1fr !important;
    gap: var(--space-xl) !important;
  }

  /* Stacked images container on mobile */
  #nettsider > .container > div > div[style*="flex-direction: column"],
  #seo > .container > div > div[style*="flex-direction: column"],
  #ai > .container > div > div[style*="flex-direction: column"],
  #some > .container > div > div[style*="flex-direction: column"],
  #video > .container > div > div[style*="flex-direction: column"],
  #logo > .container > div > div[style*="flex-direction: column"],
  #ads > .container > div > div[style*="flex-direction: column"],
  #profilering > .container > div > div[style*="flex-direction: column"],
  #google > .container > div > div[style*="flex-direction: column"],
  #innhold > .container > div > div[style*="flex-direction: column"] {
    gap: var(--space-md) !important;
    order: 2;
  }

  /* Service images smaller on mobile */
  #nettsider img,
  #seo img,
  #ai img,
  #some img,
  #video img,
  #logo img,
  #ads img,
  #profilering img,
  #google img,
  #innhold img {
    height: 200px !important;
    border-radius: var(--radius-lg) !important;
  }

  /* Service content always first on mobile */
  #nettsider > .container > div > div:not([style*="flex-direction"]),
  #seo > .container > div > div:not([style*="flex-direction"]),
  #ai > .container > div > div:not([style*="flex-direction"]),
  #some > .container > div > div:not([style*="flex-direction"]),
  #video > .container > div > div:not([style*="flex-direction"]),
  #logo > .container > div > div:not([style*="flex-direction"]),
  #ads > .container > div > div:not([style*="flex-direction"]),
  #profilering > .container > div > div:not([style*="flex-direction"]),
  #google > .container > div > div:not([style*="flex-direction"]),
  #innhold > .container > div > div:not([style*="flex-direction"]) {
    order: 1;
  }

  /* Service detail boxes */
  .service-detail {
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
  }

  .service-detail-header {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-start;
  }

  .service-detail-price {
    font-size: var(--text-base);
  }

  .service-detail ul {
    padding-left: var(--space-md);
  }

  .service-detail li {
    font-size: var(--text-sm);
    margin-bottom: var(--space-xs);
  }

  /* Services navigation tabs */
  #services-nav .tab-list {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
  }

  #services-nav .tab-list::-webkit-scrollbar {
    display: none;
  }

  #services-nav .tab-button {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 12px;
    white-space: nowrap;
  }

  /* Bundle/Package pricing cards */
  section > .container > div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  /* Priser page - Guarantee steps (4-column grid to 2-column on mobile) */
  .guarantee-banner > div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-md) !important;
  }

  /* Kontakt page - Form grid adjustments */
  .contact-form > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  #contact-section .contact-grid,
  #contact-section > .container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-xl) !important;
  }

  /* ============================================
     BRANSJER PAGES - COMPLETE MOBILE OPTIMIZATION
     ============================================ */

  /* Industry cards grid - single column on mobile */
  #industries > .container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-xl) !important;
  }

  .industry-card {
    max-width: 100%;
  }

  .industry-image {
    height: 200px;
  }

  .industry-content {
    padding: var(--space-lg);
  }

  .industry-content h3 {
    font-size: var(--text-xl);
  }

  .industry-content ul {
    padding-left: var(--space-md) !important;
  }

  .industry-content li {
    font-size: var(--text-sm);
  }

  /* Hero stats grid on bransjer detail pages */
  .hero-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--space-md) !important;
  }

  .hero-stat {
    padding: var(--space-md);
  }

  .hero-stat-number {
    font-size: var(--text-2xl);
  }

  /* ============================================
     BRANSJER DETAIL PAGES (handverk, skjonnhet)
     ============================================ */

  /* Problem section - 2 column to 1 column */
  #problem > .container > div[style*="grid-template-columns: 1fr 1fr"],
  section > .container > div[style*="grid-template-columns: 1fr 1fr"][style*="align-items: center"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-xl) !important;
  }

  /* Image in problem section */
  #problem img,
  section > .container > div[style*="grid-template-columns: 1fr 1fr"] > div > img {
    margin-top: var(--space-lg);
    border-radius: var(--radius-lg) !important;
  }

  /* Services grid with 3 columns - stack on mobile */
  .services-grid[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  /* Price value in service cards */
  .price-value {
    font-size: var(--text-lg);
  }

  /* Package section grids */
  section > .container > div[style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  /* Testimonial sections in bransjer */
  .testimonial-highlight {
    padding: var(--space-lg);
  }

  .testimonial-highlight blockquote {
    font-size: var(--text-lg);
    line-height: 1.5;
  }

  /* Stats grids in bransjer */
  .stats-inline,
  div[style*="display: flex"][style*="gap: var(--space-3xl)"] {
    flex-direction: column !important;
    gap: var(--space-md) !important;
    align-items: center !important;
  }

  /* Process/How it works sections */
  .how-it-works-grid,
  div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  /* Feature lists in bransjer pages */
  .feature-list,
  ul[style*="columns: 2"] {
    columns: 1 !important;
  }

  /* CTA boxes in bransjer */
  .cta-box,
  div[style*="background"][style*="border-radius"][style*="padding"] {
    padding: var(--space-lg) !important;
  }

  /* Inline flex grids */
  div[style*="display: grid"][style*="gap: var(--space-3xl)"] {
    gap: var(--space-xl) !important;
  }

  /* Any 2-column inline grid */
  div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  /* Any 3-column inline grid */
  div[style*="display: grid"][style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  /* Problem and solution boxes */
  .problem-box,
  .solution-box {
    padding: var(--space-lg);
  }

  .problem-box h4,
  .solution-box h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
  }

  .problem-list li,
  .solution-list li {
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
  }

  /* Bransjer page hero - same as main hero */
  .hero h1 {
    font-size: clamp(26px, 7vw, 36px) !important;
  }

  /* Any remaining inline styles that need fixing */
  [style*="grid-template-columns: 1fr 1fr;"] {
    grid-template-columns: 1fr !important;
  }

  /* Trades list grid (3 columns -> 1 column) */
  div[style*="display: grid"][style*="repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }

  /* Trade cards */
  div[style*="padding: var(--space-lg)"][style*="background: var(--bg-light)"] {
    padding: var(--space-md) !important;
  }

  div[style*="padding: var(--space-lg)"][style*="background: var(--bg-light)"] h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
  }

  /* Ensure all section container grids are single column */
  section .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Fix services grid in bransjer pages */
  .section-light .services-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  /* Guarantee banner in bransjer */
  .guarantee-banner h3 {
    font-size: var(--text-xl);
  }

  .guarantee-banner p {
    font-size: var(--text-base);
  }

  /* ============================================
     PORTEFOLJE PAGE - MOBILE
     ============================================ */

  /* Portfolio grid - single column on small mobile, 2 columns on larger phones */
  section > .container > div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  .portfolio-card img {
    height: 200px;
  }

  .portfolio-overlay h4 {
    font-size: var(--text-base);
  }

  .portfolio-overlay p {
    font-size: var(--text-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .portfolio-tags {
    gap: var(--space-xs);
  }

  .portfolio-tag {
    font-size: 10px;
    padding: 4px 8px;
  }

  /* Portfolio filter tabs mobile */
  #filter .tab-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    padding-bottom: var(--space-sm);
  }

  #filter .tab-button {
    flex-shrink: 0;
    font-size: 12px;
    padding: 8px 14px;
  }

  /* ============================================
     OM-OSS PAGE - MOBILE
     ============================================ */

  /* Story section 2-column grid to single column */
  #story > .container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-xl) !important;
  }

  #story img {
    margin-top: var(--space-lg);
  }

  /* Team grid on om-oss (if any) */
  .team-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--space-md) !important;
  }

  .team-card {
    padding: var(--space-md);
  }

  .team-image {
    width: 100px;
    height: 100px;
  }

  .team-name {
    font-size: var(--text-base);
  }

  .team-role {
    font-size: var(--text-sm);
  }

  /* ============================================
     CTA SECTION MOBILE
     ============================================ */

  .cta-section {
    padding: var(--space-2xl) 0;
  }

  .cta-section h2 {
    font-size: var(--text-2xl);
    padding: 0 var(--space-sm);
  }

  .cta-section p {
    font-size: var(--text-base);
    padding: 0 var(--space-sm);
  }

  .cta-buttons {
    padding: 0 var(--space-md);
  }

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

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

  .footer {
    padding: var(--space-2xl) 0 var(--space-lg);
  }

  .footer-grid {
    gap: var(--space-xl);
  }

  .footer-brand {
    margin-bottom: var(--space-md);
  }

  .footer-column h5 {
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
  }

  .footer-column a {
    display: block;
    padding: var(--space-sm) 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-social a {
    width: 44px;
    height: 44px;
  }

  /* ============================================
     COMPREHENSIVE ICON RESPONSIVENESS
     ============================================ */

  /* All inline SVG icons - ensure responsive sizing */
  .hero-badge svg,
  .hero-trust-item svg,
  .btn svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* Service detail icons in tjenester pages */
  #nettsider .service-icon img,
  #seo .service-icon img,
  #ai .service-icon img,
  #some .service-icon img,
  #video .service-icon img,
  #logo .service-icon img,
  #ads .service-icon img,
  #profilering .service-icon img,
  #google .service-icon img,
  #innhold .service-icon img {
    width: 32px !important;
    height: 32px !important;
  }

  /* Contact info icons */
  .contact-info-icon {
    width: 40px !important;
    height: 40px !important;
  }

  .contact-info-icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* Industry card icons */
  .industry-card img[width="48"] {
    width: 40px !important;
    height: 40px !important;
  }

  /* Blog/Portfolio meta icons */
  .blog-meta svg,
  .portfolio-tag svg {
    width: 12px !important;
    height: 12px !important;
  }

  /* Navigation icons */
  .navbar-phone svg {
    width: 16px !important;
    height: 16px !important;
  }

  .mobile-nav-close svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* Footer icons */
  .footer-social svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* ============================================
   VERY SMALL MOBILE (max-width: 374px)
   ============================================ */

@media (max-width: 374px) {
  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  h3 {
    font-size: var(--text-xl);
  }

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

  .trust-bar-item {
    width: 100%;
    justify-content: center;
  }

  /* Guarantee steps single column on very small screens */
  .guarantee-banner > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Hero optimizations for very small screens */
  .hero {
    padding: calc(var(--nav-height) + var(--space-lg)) 0 var(--space-xl);
  }

  .hero-container {
    padding: 0 var(--space-md);
  }

  .hero h1 {
    font-size: clamp(22px, 6.5vw, 28px);
  }

  .hero-subtitle {
    font-size: 14px;
    max-width: 280px;
  }

  .hero-cta {
    max-width: 240px;
  }

  .hero-cta .btn {
    padding: 16px 20px;
    font-size: 15px;
  }

  /* Very small mobile nav adjustments */
  .mobile-nav-menu a {
    font-size: var(--text-xl);
    padding: var(--space-sm) var(--space-md);
  }

  .mobile-nav-cta .btn {
    padding: 16px 20px;
    font-size: var(--text-base);
  }

  /* Even smaller service images */
  #nettsider img,
  #seo img,
  #ai img,
  #some img,
  #video img,
  #logo img,
  #ads img,
  #profilering img,
  #google img,
  #innhold img {
    height: 160px !important;
  }

  /* ============================================
     ICON RESPONSIVENESS - VERY SMALL SCREENS
     ============================================ */

  /* Further reduce icon sizes for very small screens */
  .trust-bar-item img {
    width: 18px !important;
    height: 18px !important;
  }

  .service-card img,
  .service-icon img {
    width: 28px !important;
    height: 28px !important;
  }

  .feature-card img,
  .feature-icon img {
    width: 36px !important;
    height: 36px !important;
  }

  .guarantee-badge img,
  .hero-badge img {
    width: 14px !important;
    height: 14px !important;
  }

  /* Contact info icons smaller on tiny screens */
  .contact-info-icon {
    width: 36px !important;
    height: 36px !important;
  }

  .contact-info-icon svg {
    width: 18px !important;
    height: 18px !important;
  }
}

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

@media print {
  .navbar,
  .mobile-nav,
  .mobile-nav-overlay,
  .footer,
  .cta-section,
  .btn,
  .hero-cta {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .hero {
    background: #fff;
    color: #000;
    min-height: auto;
    padding: 20pt 0;
  }

  .hero h1,
  .hero-subtitle {
    color: #000;
  }

  section {
    padding: 20pt 0;
    page-break-inside: avoid;
  }

  .service-card,
  .pricing-card,
  .testimonial-card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

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

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

  .hero-mockup {
    transform: none;
  }

  .hero-float-card {
    animation: none;
  }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
  /* Uncomment to enable automatic dark mode
  :root {
    --bg-white: #1A1A2E;
    --bg-light: #252540;
    --text-primary: #F8F9FA;
    --text-secondary: #A0AEC0;
  }
  */
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */

@media (prefers-contrast: high) {
  :root {
    --color-secondary: #00FFD1;
    --color-accent: #FFD700;
  }

  .btn-primary {
    border: 2px solid var(--color-primary);
  }

  .service-card,
  .pricing-card,
  .testimonial-card {
    border: 2px solid var(--color-primary);
  }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */

@media (max-width: 896px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--space-lg)) 0 var(--space-lg);
  }

  .hero-container {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    margin-top: 0;
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

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

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

@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects that don't work well on touch */
  .service-card:hover,
  .pricing-card:hover,
  .portfolio-card:hover,
  .blog-card:hover,
  .industry-card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  /* Make touch targets larger */
  .navbar-menu a {
    padding: var(--space-md) var(--space-sm);
  }

  .footer-column a {
    padding: var(--space-sm) 0;
    display: block;
  }

  /* Always show portfolio overlay on touch devices */
  .portfolio-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.9) 0%, transparent 60%);
  }
}

/* ============================================
   SAFE AREA INSETS (iPhone X+)
   ============================================ */

@supports (padding: max(0px)) {
  .navbar {
    padding-left: max(var(--space-lg), env(safe-area-inset-left));
    padding-right: max(var(--space-lg), env(safe-area-inset-right));
  }

  .footer {
    padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
  }

  .mobile-nav {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
