
/*===========================
    1. GRUNDINSTÄLLNINGAR
===========================*/

* { 
    box-sizing: border-box; 
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #e7edf3;
  background: #22262f;
  line-height: 1.6;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 800px;
  line-height: 1.1;
}

/*===========================
    2. HERO
===========================*/

.hero {
   background-image:
        linear-gradient(
            90deg,
            rgba(5,15,35,0.75) 0%,
            rgba(5,15,35,0.55) 0%,
            rgba(5,15,35,0.30) 0%
        ),
        url("../images/main-hero.png");

    background-size: cover;
    background-position: 60% center center;
    background-repeat: no-repeat;
    height: 600px;
    color: white;
    padding: 24px;
}

.hero-natverk {
    background-image:
        /*linear-gradient(
            90deg,
            rgba(5, 15, 35, 0.229) 10%,
            rgba(5, 15, 35, 0.056) 20%,
            rgba(5,15,35,0.30) 50%
        ),*/
        url("../images/natverk-hero.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 600px;
    color: white;
    padding: 24px;
}

.hero-verkstad {
    background-image:
    /*
        linear-gradient(
            90deg,
            rgba(5, 15, 35, 0.229) 0%,
            rgba(5, 15, 35, 0.056) 0%,
            rgba(5,15,35,0.30) 0%
        ),
        */
        url("../images/verkstad-hero.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 600px;
    color: white;
    padding: 24px;
}

.hero-backup {
    background-image:
       /* linear-gradient(
            90deg,
            rgba(5, 15, 35, 0.229) 10%,
            rgba(5, 15, 35, 0.056) 20%,
            rgba(5,15,35,0.30) 50%
        ), */
        url("../images/backup-hero.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 600px;
    color: white;
    padding: 24px;
}

.hero-sakerhet {
    background-image:
        /*linear-gradient(
            90deg,
            rgba(5, 15, 35, 0.229) 10%,
            rgba(5, 15, 35, 0.056) 20%,
            rgba(5,15,35,0.30) 50%
        ),*/
        url("../images/sakerhet-hero.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 600px;
    color: white;
    padding: 24px;
}

.hero-teknik {
    background-image:
        /*linear-gradient(
            90deg,
            rgba(5, 15, 35, 0.229) 10%,
            rgba(5, 15, 35, 0.056) 20%,
            rgba(5,15,35,0.30) 50%
        ),*/
        url("../images/teknik-hero.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 600px;
    color: white;
    padding: 24px;
}

.hero nav,
.hero-text {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: inline-block;
    background: rgba(0,0,0,0.45);
    padding: 30px;
    border-radius: 12px;
}

.hero-text {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 0;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.12;
    margin-bottom: 24px;
    max-width: 800px;
}

.hero-text p {
    font-size: 19px;
    line-height: 1.55;
    max-width: 620px;
    margin-bottom: 28px;
    color: #e7edf3;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 25px;
}

/*===========================
    3. NAVIGATION
===========================*/

nav {
  max-width: 1100px;
  margin: 0 auto 70px;
  margin-top: 10px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.logo {
    height: 70px;
    width: auto;
}

.menu-toggle {
    display: none;
}

.menu {
    margin-top: 10px;
}

.menu a {
    display: inline-block;
    padding: 5px 14px;
    background: #1F2937;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: 0.2s;
}

nav a:hover {
    background: #2766da;
}

nav a.active {
    background: #2766da;
    color: white;
    border-color: #2766da;
}

/*===========================
    4. KNAPPAR
===========================*/

.button,
.map-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    background: #2766da;
    color: white;
    padding: 14px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}

/*===========================
    5. HUVUDINNEHÅLL
===========================*/

main {
  max-width: 1100px;
  margin: -45px auto 0;
  padding: 0 24px 40px;
}

/*===========================
    6. TJÄNSTER / KORT
===========================*/

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: rgba(35, 43, 54, 0,75);
  backdrop-filter: blur(8px);
  color: white;
  padding: 32px 26px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 14px 32px rgba(0,0,0,0.28);
  transition: 0.2s ease;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 22px;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #2766da;
}

.card h3 {
  color: white;
}

.card p {
  color: #d7e2ee;
}

.card i {
    display: block;
    font-size: 32px;
    color: #2f80ed; /* byt till loggans blå */
    margin-bottom: 24px;
}

.card-header h3 {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1;
}

.card-header i {
    font-size: 24px;
    color: #3b82f6;
    width: 28px;
    text-align: center;
    line-height: 1;
    opacity: 0.9;
    position: relative;
    top: 10px;
}

.section-card {
    margin-bottom: 24px;
}

/*===========================
    7. GEMENSAMMA SEKTIONER
===========================*/

.about,
.contact,
.about-sakerhet {
    margin-top: 24px;
    border-radius: 14px;
}

/*===========================
    8. ABOUT
===========================*/

.about,
.section-card,
.about-sakerhet {
  background: rgba(35, 43, 54, 0.1);
  backdrop-filter: blur(8px);  
  color: white;
  padding: 32px 26px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: 0.2s ease;
}


.about-text h2 {
    font-size: 1.7rem;
}

.about h2 {
    color: white;
}

.about-list,
.about-list-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px 20px 20px;
    padding-left: 0;
    margin-left: 0;
}

.card-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;

}

.card-backup-grid-2 {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding-top: 18px;
    padding-left: 25px;
    min-height: 190px;
}

.windows-facts {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding-left: 25px;
    padding-bottom: 16px;
}

.info-card-5 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.about-list-text i,p {
    text-align: left;
}
.about-list {
    text-align: left;
}
.info-card h2 {
    margin: 0;
    text-align: center;
    font-size: 1.7rem;
    line-height: 1;
}

.info-card h3 {
    margin: 10px 0 10px 0;
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.2;
   
}

.info-card i {
    font-size: 34px;
    color: #3b82f6;
    display: block;
    /*width: 28px;*/
    text-align: center;
    line-height: 1;
    opacity: 0.9;
}

.info-card-5 i {
    font-size: 20px;
    color: #3b82f6;
    line-height: 1;
}

.info-card p {
    text-align: center;
    padding-right: 12px;
    
}

.info-card-verkstad-2 p{
    padding-top: 27px;
}

.info-card-5 p {
    margin: 1px;
}

.info-card-step-number {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}


.info-card-verkstad i {
    padding-bottom: 10px;
}

.backup-row {
    display: flex;
    align-items: top;
    gap: 40px;
}

.backup-image {
    flex: 1;
}

.backup-image img {
    width: 100%;
    border-radius: 14px;
    display: block;
}

.backup-text {
    flex: 1;
}

.sakerhet-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.sakerhet-image img {
    width: 100%;    
    display: block;
}

.teknik-iot-bild img{
    width: 100%;
    border-radius: 14px;
    display: block;
}

.image-title {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    background: rgba(0,0,0,0.18);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 12px;
}

.windows-content,
.about-sakerhet {
    display: flex;
    gap: 25px;
}

.windows-text {
    flex: 2;
}

.windows-facts {
    flex: 1;
    margin-top: 25px;
}

/*===========================
    9. KONTAKT
===========================*/

.contact {
    background: rgba(35, 43, 54, 0,75);
    backdrop-filter: blur(8px);
    padding: 14px 32px;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 14px 32px rgba(0,0,0,0.28);
    color: #e7edf3;
}

.contact h2 {
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
    align-items: start;
}

.map-box {
    border-radius: 12px;
    overflow: hidden;
    min-height: 320px;
}

.map-box iframe {
    width: 100%;
    height: 320px;
    border: 0;
}

.note {
  color: #fefcfc;
}

/*===========================
    10. FOOTER
===========================*/

footer {
  text-align: center;
  padding: 24px;
  color: #c2bcbc;
}

footer p {
    text-align: center;
    margin: 0;
}

/*===========================
    11. MOBIL
===========================*/


@media (max-width: 768px) {

    .card-grid-4,
    .card-grid-2,
    .card-backup-grid-2,
    .about-sakerhet {
        grid-template-columns: 1fr;
    }

    .windows-content-sakerhet h2 {
        text-align: center;
    }

    .info-card-verkstad-2 p{
    padding-top: 0px;
}

    .card-backup-grid-2 p,
    .backup-text p {
        text-align: left;
    }

    .card {
        text-align: left;
    }

   .windows-facts {
        padding: 10px;
   }

   .windows-facts h3 {
        text-align: center;
   }

    .windows-content {
        flex-direction: column;
    }

    .backup-row {
        flex-direction: column;
    }

    .windows-content,
    .about-sakerhet {
        flex-direction: column;
    }

    .info-card {
        min-height: auto;
        padding: 24px;
    }

    .info-card i {
        padding-bottom: 10px;
    }
    .info-card-text {
        text-align: left;
    }

    .info-card-text p {
        text-align: left;
    }
      
    .info-card-5-text{
        text-align: left;
    }

    .info-card-5-text p{
        text-align: left;
    }

    .section-card {
        padding: 24px;
        text-align: center;
    }

    nav {
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 80px;
    }

    .logo {
        max-width: 280px;
        height: auto;
    }

    .menu-toggle {
        display: block;
        background: #1F2937;
        color: white;
        border: none;
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .menu.show {
        display: flex;
    }

    .menu a {
        width: 100%;
        height: 50px;
        margin-bottom: 8px;
        margin: 10px;
        font-size: 1.2rem;
        text-align: center;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 40px;
        /*background-size: 500%;*/
        background-position: 9% center;
    }

    .hero-verkstad {
        height: auto;
        min-height: auto;
        padding: 40px;
        background-position: 75% center;
    }

    .hero-backup {
        height: auto;
        min-height: auto;
        padding: 40px;
        background-position: 85% center;
    }

    .hero-sakerhet {
        height: auto;
        min-height: auto;
        padding: 40px;
        background-position: 75% center;
    }

    .hero-text {
        max-width: 100%;
        padding-top: 10px;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 30px;
    }

    .image-title {
        font-size: 1.2rem;
    }

    .button {
        width: auto;
        min-width: 260px;
        justify-content: center;
    }

    .about h2{
        text-align: center;
    }

    .about-list,
    .about-list-2 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding-left: 0;
        margin-left: 0;
    }
       

    .cards,
    .services,
    .info-grid {
        grid-template-columns: 1fr;
    }


    .contact h2{
        text-align: center;
    }

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

    .map-box {
        width: 100%;
        margin-top: 20px;
    }

    .map-box iframe {
        width: 100%;
        height: 250px;
    }

}