/*
Theme Name: SilverWeb Plattformen
Author: Silverweb AB
Version: 5.4 (Final Button Fix)
*/

/* ===================================================================
   GRUNDLÄGGANDE RESET & HEADER/MENY
   =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

body {
    margin: 0;
}

body.mobile-menu-open { 
    overflow: hidden !important; 
}

#nd-header { 
    font-family: 'Montserrat', sans-serif; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 30px 40px; 
    background: transparent !important; 
    transition: all 0.3s ease; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 10001; 
    box-sizing: border-box; 
}
#nd-header.scrolled { 
    background-color: var(--dark-bg) !important; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.5); 
    padding: 10px 40px; 
}
#nd-header .nd-logo a { display: flex; align-items: center; }
#nd-header .nd-logo img { height: 100px; width: auto; transition: height 0.3s ease; }
#nd-header.scrolled .nd-logo img { height: 50px; }
#nd-header .nd-nav-container { display: flex; align-items: center; gap: 35px; }

#nd-header .menu-item a.nd-nav-item { 
    color: var(--text-color); 
    text-decoration: none; 
    font-weight: 500; 
    position: relative; 
    padding-bottom: 5px; 
}
#nd-header .menu-item a.nd-nav-item:not(.nd-cta-button)::after { 
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 2px; 
    display: block; 
    margin-top: 5px; 
    right: 0; 
    background: var(--primary-color); 
    transition: width 0.3s ease; 
}
#nd-header .menu-item a.nd-nav-item:not(.nd-cta-button):hover::after { 
    width: 100%; 
    left: 0; 
}

/* --- ÄNDRING HÄR --- */
/* Ändrade från ".nd-nav-item.nd-cta-button" till bara ".nd-cta-button" */
.nd-cta-button { 
    text-decoration: none !important; 
    padding: 12px 28px !important; 
    background-color: var(--primary-color) !important; 
    color: var(--dark-bg) !important; 
    font-weight: 700 !important; 
    font-size: 15px !important; 
    transition: all 0.3s ease; 
    border-radius: 50px !important;
    border: 2px solid var(--primary-color); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
}
.nd-cta-button:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(0,0,0,0.3); 
    filter: brightness(1.1); 
}
.nd-cta-button::after { display: none !important; }

/* Mobilmeny (oförändrad) */
.nd-hamburger-wrapper { display: none; }
#nd-mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; display: flex; flex-direction: column; justify-content: center; align-items: center; background-color: rgba(10, 10, 10, 0.95); }
#nd-mobile-menu.is-open { opacity: 1; visibility: visible; }
#nd-mobile-menu .nd-mobile-nav-links { display: flex; flex-direction: column; align-items: center; gap: 30px; }

#nd-mobile-menu .menu-item a { 
    color: rgba(255, 255, 255, 0.8) !important; 
    text-decoration: none; 
    font-size: 28px; 
    font-weight: 700; 
    padding: 10px 0; 
    transition: color 0.3s ease, transform 0.4s ease, opacity 0.4s ease; 
    opacity: 0; 
    transform: translateY(25px); 
    position: relative; 
}
#nd-mobile-menu .menu-item a:hover { color: var(--primary-color) !important; }
#nd-mobile-menu .nd-cta-button { margin-top: 30px; font-size: 18px !important; padding: 15px 40px !important; }
#nd-mobile-menu.is-open .menu-item a { opacity: 1 !important; transform: translateY(0); }

#nd-mobile-menu.is-open .menu-item:nth-child(1) a { transition-delay: 0.20s; }
#nd-mobile-menu.is-open .menu-item:nth-child(2) a { transition-delay: 0.25s; }
#nd-mobile-menu.is-open .menu-item:nth-child(3) a { transition-delay: 0.30s; }
#nd-mobile-menu.is-open .menu-item:nth-child(4) a { transition-delay: 0.35s; }
#nd-mobile-menu.is-open .menu-item:nth-child(5) a { transition-delay: 0.40s; }

#nd-mobile-menu .nd-mobile-menu-footer { position: absolute; bottom: 40px; text-align: center; opacity: 0; transform: translateY(20px); transition: all 0.5s ease 0.5s; }
#nd-mobile-menu.is-open .nd-mobile-menu-footer { opacity: 1; transform: translateY(0); }
#nd-mobile-menu .nd-social-links a { color: rgba(255, 255, 255, 0.7); font-size: 22px; margin: 0 15px; transition: all 0.3s ease; }
#nd-mobile-menu .nd-social-links a:hover { color: var(--primary-color); transform: scale(1.2); }

@media (max-width: 980px) {
  #nd-header { padding: 15px 25px; }
  #nd-header.scrolled { padding: 10px 25px; }
  #nd-header .nd-logo img, #nd-header.scrolled .nd-logo img { height: 50px !important; }
  #nd-header .nd-nav-container { display: none; }
  .nd-hamburger-wrapper { display: flex; align-items: center; cursor: pointer; position: relative; z-index: 10002; width: 28px; height: 20px; }
  .nd-hamburger-icon span { display: block; position: absolute; height: 3px; width: 100%; background: var(--text-color); border-radius: 3px; right: 0; transform-origin: center; transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  .nd-hamburger-icon span:nth-child(1) { top: 0px; width: 100%; }
  .nd-hamburger-icon span:nth-child(2) { top: 8px; width: 75%; }
  .nd-hamburger-icon span:nth-child(3) { top: 16px; width: 50%; }
  .nd-hamburger-wrapper.is-open span:nth-child(1) { top: 8px; width: 100%; transform: rotate(45deg); }
  .nd-hamburger-wrapper.is-open span:nth-child(2) { opacity: 0; transform: translateX(10px); }
  .nd-hamburger-wrapper.is-open span:nth-child(3) { top: 8px; width: 100%; transform: rotate(-45deg); }
}