/* =========================
   1. GEMENSAM FOOTERBAS
   ========================= */

   :root {
    --footer-hover: #ff6f20;
  }
  
  footer {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
  }
  
  footer .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
  }
  
  footer .footer-links,
  footer .quick-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  footer .footer-links .btn-tertiary,
  footer .quick-links .btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    width: auto !important;
    text-align: center !important;
    padding: 0 !important;
    white-space: normal !important;
    text-overflow: clip !important;
    line-height: 1.2;
    text-transform: none;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  footer p {
    margin: 0;
    text-align: center;
  }
  
  /* =========================
     2. STORA FOOTERN SPECIFIKA (#site-footer)
     ========================= */
  
  :root {
    --footer-bg: #F5F5F5;
    --footer-fg: #060606;
  }
  
  #site-footer {
    background: var(--footer-bg);
    color: var(--footer-fg);
    padding: 10px 6px;
    text-align: center;
    box-shadow:
      0 -10px 25px -5px rgba(0, 0, 0, 0.05),
      0 -8px 10px -6px rgba(0, 0, 0, 0.02);
    min-height: 60px;
  }
  
  #site-footer .footer-links {
    gap: 14px 24px;
    margin: 30px 0;
  }
  #site-footer .footer-links .btn-tertiary {
    font-size: 18px;
    color: var(--footer-fg);
  }
  #site-footer .footer-links .btn-tertiary:hover {
    color: var(--footer-hover);
  }
  
  #site-footer .quick-links {
    gap: 12px 28px;
    margin: 28px 0 20px;
  }
  #site-footer .quick-links .btn-tertiary:hover {
    color: var(--footer-hover) !important;
    transform: translateY(-1px);
  }
  
  #site-footer .social-icons {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin: 20px 0 0;
    padding: 0;
  }
  #site-footer .social-icons .btn-tertiary {
    padding: 8px !important;
    background: transparent;
    border: none;
    margin: 0 6px;
    cursor: pointer;
  }
  #site-footer .social-icons .btn-tertiary i {
    font-size: 40px;
    color: var(--footer-fg);
    transition:
      transform 0.3s ease,
      opacity 0.2s ease,
      color 0.2s ease;
  }
  #site-footer .social-icons .btn-tertiary:hover i {
    transform: scale(1.2);
    opacity: 0.9;
    color: var(--footer-hover);
  }
  
  #site-footer p {
    font-size: 0.95rem;
    color: var(--footer-fg);
    margin-top: 60px;
  }
  
  /* =========================
     3. SMALL FOOTER SPECIFIKA (#small-footer)
     ========================= */
  
  :root {
    --small-footer-bg: #F9F9F9;
    --small-footer-fg: #111;
  }
  
  #small-footer {
    background: var(--small-footer-bg);
    color: var(--small-footer-fg);
    padding: 26px 16px;
    font-size: 1,5rem;
  
    display: flex;
    flex-direction: row;            /* Alla element på samma rad */
    justify-content: space-around; /* Sprider elementen jämnt */
    align-items: center;            /* Vertikal centrering */
    flex-wrap: wrap;                /* Bryts till nästa rad om utrymmet blir för litet */
    gap: 10px;                      /* Extra mellanrum vid wrap */
    
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    position: relative;
    bottom: 0;
    z-index: 10;
  }
  
  #small-footer .footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
  }
  
  #small-footer .footer-links,
  #small-footer .quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
  }
  
  #small-footer .footer-links .btn-tertiary,
  #small-footer .quick-links .btn-tertiary {
    font-size: 1,2rem;
    padding: 2px 6px !important;
    color: var(--small-footer-fg);
    background: transparent;
    border: none;
    transition: color 0.2s ease;
  }
  
  #small-footer .footer-links .btn-tertiary:hover,
  #small-footer .quick-links .btn-tertiary:hover {
    color: var(--footer-hover);
  }
  
  #small-footer p {
    font-size: 1rem;
    color: var(--small-footer-fg);
    letter-spacing: 0.8px;
    margin: 0; 
    white-space: nowrap;
  }
  /* =========================
     logo i footern!!
  ========================= */
  .logo {
    width: 45px;
    height: auto;
  }
  
  .logo:hover {
    transform: scale(1.05);
  }
  
  /* =========================
     RESPONSIVITET (MEDIA QUERIES)
  ========================= */
  @media (max-width: 1024px) {
    #site-footer {
      padding: 32px 18px;
    }
    #site-footer .social-icons .btn-tertiary i {
      font-size: 36px;
    }
  }
  
  @media (max-width: 768px) {
    #site-footer .footer-links .btn-tertiary {
      font-size: 20px;
    }
    #site-footer .social-icons .btn-tertiary i {
      font-size: 32px;
    }
  }
  
  @media (max-width: 480px) {
    #site-footer {
      display: flex;
      flex-direction: column;
      align-items: center; 
      justify-content: center;
      padding: 24px 16px;
    }
    #site-footer .footer-container {
      gap: 12px;
    }
    #site-footer .quick-links {
      flex-direction: column;
      gap: 18px;
    }
    #site-footer .footer-links,
    #site-footer .social-icons {
      justify-content: center;
      align-items: center;
      width: 100%;
    }
    #site-footer .footer-links {
      flex-direction: column;
      gap: 20px;
    }
  
    /* Small-footer mobil */
    #small-footer {
      flex-direction: column;  /* Byt till kolumn på små skärmar */
      padding: 8px 10px;
      font-size: 0.75rem;
      gap: 6px;
    }
    #small-footer .footer-container {
      flex-direction: column;
      gap: 6px;
    }
    #small-footer .footer-links,
    #small-footer .quick-links {
      flex-direction: column;
      gap: 4px;
    }
    #small-footer p {
      white-space: normal; /* Tillåter radbrytning */
      text-align: center;
    }
  }