/* Grundinställningar */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

body {
    background-color: #edebeb;
    color: #333;
    height: 100%;
}

.buss-photos img {
  visibility: hidden; /* döljer bilderna men behåller utrymmet */
}

header {
    display: flex;
    flex-direction: column; /* Byt från row till column för att ordna rubrik och meny under varandra */
    align-items: center; /* Centrera innehållet horisontellt */
    background: linear-gradient(rgba(231, 231, 231, 0.819), rgba(215, 213, 213, 0.753), rgba(101, 99, 99, 0.688));
    padding: 20px;
}

header h2 {
    color: rgb(171, 15, 15);
    font-family: 'Times New Roman', Times, serif;
    font-size: 50px;
    margin-bottom: 1px; 
}

/* Telefonnr */
.Telefonnr {
    font-style: italic;
    text-align: left;
    margin-bottom: 20px;
}

/* Menyknappar container */
.meny-knappar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    width: 100%; 
    padding: 10px 0; /* lite luft ovanför/under */
}

/* Länkar */
.meny-knappar a {
    position: relative;
    color: #222; 
    padding: 8px 12px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* Elegant underline-effekt */
.meny-knappar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background-color: #a21111; /* accentfärg */
    transition: width 0.3s ease;
}

/* Hover-effekt */
.meny-knappar a:hover {
    color: #a21111; 
}

.meny-knappar a:hover::after {
    width: 100%;
}

/* Aktiv länk */
.meny-knappar a.active {
    color: #a21111;
    font-weight: 700;
}

.meny-knappar a.active::after {
    width: 100%;
}

/* Linjer under menyn */
.underline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(179, 170, 170);
}

.underline {
    height: 7px;
    width: 100%;
}

.red {
    background-color: rgb(245, 35, 35);
}

.light-red {
    background-color: rgba(201, 21, 21, 0.8);
    margin: 1.9px;
}

.lighter-red {
    background-color: rgb(171, 15, 15);
    height: 15px;
}


/* Hero-sektion */
.hero {
  display: flex;
  justify-content: center;   /* Centrerar hela hero-innehållet */
  align-items: center;
  gap: 15px;                 /* Mindre avstånd mellan text och bild */
  padding: 40px 60px;
}

.hero-intro {
  background: rgba(232, 228, 228, 0.9);
  padding: 20px 25px;
  border-radius: 12px;
  margin: 0 -60px 20px -60px;
  text-align: center;
}

.hero-intro h1 {
  font-size: 38px;
  color: #000000;
  margin-bottom: 10px;
  white-space: nowrap;
  border-bottom: 2px solid #831111;
}

.hero-intro p {
  font-size: 20px;
  margin: 8px 0;
}

/* Punktlista */
.hero-list {
  list-style: none;
  padding-left: 0;
  text-align: left;
  margin: 0 auto 20px auto;
  max-width: 600px;
}

.hero-list li {
  font-size: 18px;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.hero-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #a21111;
  font-weight: bold;
}

#bussbild {
  flex: 0 0 49%;            
  max-width: 55%;
  border-radius: 12px;
  object-fit: cover;
  margin-left: 50px;
}

.contact-knapp {
    display: block;   
    margin: 20px auto 0 auto; 
    padding: 10px 30px;
    max-width: 200px;
    width: auto;
    text-align: center;
    background-color: rgb(122, 11, 11);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}


.contact-knapp:hover {
    cursor: pointer;
    background-color: #a51717;
}


.bussar {
  width: 50%;           
  text-align: left;
}


.bussar p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    text-align: start;
    margin: 5px 0;
}

/* Förbättrade rubriker */
.bussar h3 {
    font-size: 22px;
    color: rgb(0, 0, 0);
    border-bottom: #951f1f solid 3px;
    font-weight: bold;
    margin-bottom: 15px;
}


/* Bussbilder */
.buss-photos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    gap: 20px;
    
}

/* Bildbehållare */
.photo-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

/* --- Bilder i rad (desktop) --- */
.images {
  display: flex;
  gap: 10px;
}

.images img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  flex: 1;
}

/* Piltangenter */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(219, 59, 59, 0.399);
    color: white;
    font-size: 40px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    user-select: none;
    transition: background-color 0.3s ease;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* Scroll-knapp */
.scroll-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(rgba(142, 19, 19, 0.993), rgba(135, 9, 9, 0.753), rgba(238, 9, 9, 0.688));
    color: white;
    padding: 10px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.scroll-btn i {
    font-size: 24px;
}

/* ===== Footer ===== */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 20px;
    font-size: 14px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer-column h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    border-bottom: 2px solid #555;
    padding-bottom: 6px;
    text-align: left;
}

.footer-column p {
    font-size: 17px;
    line-height: 1.6;
    margin: 6px 0;
    text-align: left;
}

.text-line {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.text-line::before,
.text-line::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #777;
    margin: 0 10px;
}

.social-icons {
    margin-top: 30px;
    text-align: start;
}

.social-icons a {
    color: #fff;
    margin: 0 8px;
    font-size: 32px; 
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ce4444;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    background-color: #333;
    color: #bbb;
}

/* Hamburger */
.hamburger {
    display: none; 
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #222;
    border-radius: 2px;
}

/* --- Header för tablet och mindre skärmar --- */
@media (max-width: 992px) {
   header {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .meny-knappar {
        display: flex !important; 
        flex-direction: column !important; /* Stapla vertikalt */
        flex-wrap: nowrap !important;       /* Ta bort wrap */
        gap: 15px;
        width: 100%;
        max-width: 400px;
        justify-content: center;
        align-items: center;
    }

    .meny-knappar a {
        width: 100% !important;  /* Knappen fyller hela raden */
        text-align: center;
        font-size: 18px;
        padding: 10px 0;
    }

    
}


/* Mobil- och tabletmeny */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    /* Hamburger visas */
    .hamburger {
        display: flex;
    }

    /* Menyn som standard gömd */
    .meny-knappar {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        gap: 10px;
        opacity: 0;
        pointer-events: none;
        justify-content: center;
        align-items: center;
    }

    .meny-knappar.show {
        max-height: 450px;
        opacity: 1;
        pointer-events: auto;
    }

    /* Menylänkar på mobil */
    .meny-knappar a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-radius: 8px;
        font-size: 18px;
    }

    /* Hero och buss-sektioner */
      .hero {
    flex-direction: column;
    align-items: center;
    padding: 15px;
    height: auto;
  }

  .hero-content {
    max-width: 90%;
    text-align: center;
    padding: 15px;
  }

  .hero-intro {
    padding: 15px 20px;
  }

  .hero-list {
    max-width: 100%;
    padding-left: 0;
    margin: 15px 0;
  }

  .hero-list li {
    font-size: 17px;
    margin-bottom: 12px;
    padding-left: 28px;
  }


    .bussar {
        width: 100%;           /* tar nästan hela bredden */
        padding: 17px 25px;   /* mer luft inuti */
        font-size: 18px;      /* öka textstorlek om du vill */
    }

    .bussar h3 {
        font-size: 22px;      /* större rubrik */
    }

      #bussbild {
        display: none; 
    }


    .images {
    display: flex;
    overflow-x: auto;           /* swipe i sidled */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
  }

  .images img {
    flex: 0 0 90%;              /* varje bild fyller 90% av skärmen */
    scroll-snap-align: center;  /* stannar snyggt på mitten */
    border-radius: 10px;
  }

  .photo-container {
    border-radius: 0;
    margin-top: 20px;           /* full bredd på mobil */
  }

    .buss-photos {
        flex-direction: column;
        gap: 20px;
    }

    .arrow {
    display: none;  /* göm pilar på små skärmar */
  }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
        padding: 10px;
    }

    .footer-column {
        width: 80%;
        max-width: 350px;
    }

    .footer-column p {
        font-size: 12px;
    }

    .social-icons a {
        font-size: 18px;
    }

    .footer-bottom {
        font-size: 11px;
    }

    /* Scroll-knapp */
    .scroll-btn {
        right: 10px;
        bottom: 10px;
    }
}


/* För ännu mindre skärmar */
@media (max-width: 480px) {
  header {
        padding: 10px;
        flex-direction: column;
        align-items: center;
    }

    header h2 {
        font-size: 34px;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .meny-knappar {
        flex-direction: column;
        width: 100%;
        max-height: 0;           
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        gap: 10px;
        opacity: 0;              /* fix: osynlig */
        pointer-events: none;    /* fix: blockerar inte klick */
    }

    .meny-knappar.show {
        max-height: 500px;       
        opacity: 1;              /* fix: synlig */
        pointer-events: auto;    /* fix: klickbar */
    }

    .meny-knappar a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-radius: 8px;
        font-size: 20px;
    }

     .hero {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .hero-content {
    max-width: 95%;
    text-align: center;
    padding: 20px;
  }

  .hero-intro h1 {
    font-size: 25px;
    border-bottom: 1px solid #831111;
  }

  .hero-intro p {
    font-size: 16px;
  }

  .hero-list li {
    font-size: 16px;
    margin-bottom: 10px;
    padding-left: 25px;
  }


  .contact-knapp {
    padding: 8px 20px;
    font-size: 16px;
    margin-bottom: 20px;
  }

    .scroll-btn {
        right: 10px;
        bottom: 10px;
    }

    .footer-container {
        padding: 10px; 
    }

    .footer-column p {
        font-size: 18px; 
    }

    .social-icons a {
        font-size: 30px; 
    }

    .footer-bottom {
        font-size: 11px; 
    }
}
