:root {
  --primary: #0B6FFF;
  --primary-dark: #084fbf;
  --text: #0B2540;
  --muted: #6B7A8A;
  --bg: #f8f9fa;
  --accent: #EAF4FF;
  --radius: 10px;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  --container: clamp(300px, 90%, 1000px);
  --spacing: 12px;
  --header-bg: var(--primary);
  --header-text: #ffffff;
  --header-hover: rgba(255, 255, 255, 0.15);
}

body {
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  max-width: var(--container);
  margin: 10px auto;
  font-family: Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  min-height: 98vh;
  position: relative;
}

body::after {
  content: "";
  display: block;
}

main {
  padding: 20px;
  background-color: #f8f9fa;
  justify-content: center;
  display: grid;
  padding-bottom: 100px;
}

footer {
  padding: 20px;
  text-align: center;
  background: var(--primary);
  border-bottom-right-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  color: #ffffff;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.bgImg {
  background-image: url("images/bg.png");
  filter: blur(4px);
  -webkit-filter: blur(4px);

  /* Full height */
  height: 215px;

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Position text in the middle of the page/image */
.bg-text {
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(139, 136, 136, 0.4);
  /* Black w/opacity/see-through */
  color: white;
  font-weight: bold;
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 98%;
  padding: 10px;
  text-align: center;

  h1 {
    font-size: 3em;
    margin: 5px;
  }

  h2 {
    margin: auto;
  }

  p {
    margin: 5px;
  }
}

#header {
  justify-content: center;
  background-color: #f8f9fa;
  padding: 20px;
  text-align: center;
  font-family: Arial, sans-serif;

  border-top-right-radius: var(--radius);
  border-top-left-radius: var(--radius);
}

#nav {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}


#nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 15px;
  gap: 10px;
}

#nav a:hover {
  color: var(--header-hover);
  text-decoration: underline;
}

#main-nav {
  background-color: #f8f9fa;
  color: var(--text);
  text-align: center;
  padding: 10px;
  position: sticky;
  top: 0;
  margin-top: 6px;
}

#main-nav a {
  text-decoration: none;
  margin: 0 10px;
  gap: 5px;
  color: var(--text);
  display: inline-flex;
  justify-content: center;
}

#main-nav a:hover {
  text-decoration: none;
  color: var(--primary);
}

.header-title {
  font-size: 48px;
  font-weight: bold;
  color: #ffffff;
  margin: 2px 0 2px 20px;
}

.category {
  scroll-margin-top: 60px;
}

.header-subtitle {
  font-size: 14px;
  color: #ffffff;
  margin: 10px;
}

.lunch-text {
  text-align: center;
  background: white;
  border-radius: var(--radius);
  padding: 10px;
}

.phone {
  color: var(--accent);
  justify-content: center;
  text-align: center;
  font-size: 28px;
}

.item {
  text-align: center;
  background: white;
  border-radius: var(--radius);
  padding: 5px;
  margin: 10px;
}

.item-ingredients {
  max-width: 500px;
  margin: auto;
  padding: 0px 50px;
}

.item-note {
  margin-top: -15px;
}

.priceContainer {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.category-title-mobile {
  color: var(--text);
}

.about-us-container {
  max-width: 600px;
}

.about-us-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.about-us-content {
  line-height: 1.6;
}
.openHoursContainerSmall{
  display: none;
}
.phoneSmall{
  display: none;
}
@media (max-width: 710px) {

  #header {
    height: 140px;
  }

  /* .header-title {
    font-size: 36px;
  }
  .header-subtitle {
    font-size: 18px;
  } */
  #main-nav {
    display: none;
  }

  #main-nav .pizza {
    display: none;
  }

  #main-nav .other {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hamburger {
    display: flex !important;
    margin-right: 4px;
  }

  .mobile-menu.show {
    display: flex;
  }

  .pizza {
    display: grid;
    justify-content: space-evenly;
    grid-template-columns: 110px 80px 80px;
  }

  .other {
    display: grid;
    justify-content: space-evenly;
    grid-template-columns: 110px 80px 80px;
  }

  .category {
    scroll-margin-top: 30px;
  }

  footer {
    padding: 0;
  }
}

@media (max-width: 601px) {
  .comma {
    display: none;
  }
}

@media (max-width: 330px) {
  body {
    margin: 0px auto;
  }

  #header {
    height: 120px;
    border-radius: 0;
  }

  .phone {
    font-size: large;
  }

  .bg-text {
    height: 220px;
    top: 100px;

    h1 {
      display: inline-flex;
      justify-content: center;
      max-width: 250px;
    }

    h2 {
      font-size: medium;
    }
  }

  footer {
    border-radius: 0;
  }

  .header-title {
    font-size: 40px;
  }

  .header-subtitle {
    font-size: 16px;
  }

  .pizza {
    display: grid;
    justify-content: space-evenly;
    grid-template-columns: 80px 80px;
  }

  .other {
    display: grid;
    justify-content: space-evenly;
    grid-template-columns: 80px 80px;
  }

  .hamburger {
    margin-top: 0px !important;
  }

  .hamburger span {
    background: var(--primary) !important;
  }
}

@media (max-width:330px) {
  .hamburger {
    margin-top: 15px !important;
  }

  #nav a {
    font-size: small;
  }

  #myBtn {
    bottom: 10px !important;
    right: 10px !important;
  }
}

@media (max-width: 240px) {
  .pizza {
    display: grid;
    justify-content: space-evenly;
    grid-template-columns: 110px;
  }

  .other {
    display: grid;
    justify-content: space-evenly;
    grid-template-columns: 110px;
  }

  .priceContainer {
    display: block;
  }
  .category{
    h2{text-align: center;}
  }
  .phoneSmall{
    display: block;
  }
  .openHoursContainerSmall{
    display: block;
  }
  .phone{
    display: none;
  }
  .openHoursContainer{
    display: none;
  }
}
@media (max-width: 215px) {
.bg-text{
  h1{
    font-size: larger !important;
    height: 85px;
    align-items: center;
    width: min-content;
  }

}
}
@media (max-width: 530px) {
  body {
    max-width: 100%;
    margin: 0;
  }

  #header {
    border-radius: 0;
  }

  footer {
    border-radius: 0;
  }

  #logo {
    display: none;
  }

  .header-title {
    margin: 0;
  }
  .hamburger{
    left:20px !important;
    width: 90% !important;
  }
}

@media (max-width:480px) {
  .bg-text {
    h1 {
      font-size: 2em;
    }
  }
}

@media (max-width:260px) {
  .openHours {
    font-size: small;
  }

  .item {
    margin: 10px 0px;
  }
}

#myBtn {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Fixed/sticky position */
  bottom: 20px;
  /* Place the button at the bottom of the page */
  left: 30px;
  /* Place the button 30px from the right */
  z-index: 99;
  /* Make sure it does not overlap */
  border: none;
  /* Remove borders */
  outline: none;
  /* Remove outline */
  background-color: var(--primary-dark);
  /* Set a background color */
  color: white;
  /* Text color */
  cursor: pointer;
  /* Add a mouse pointer on hover */
  padding: 15px;
  /* Some padding */
  border-radius: 10px;
  /* Rounded corners */
  font-size: 18px;
  /* Increase font size */
}

#myBtn:hover {
  background-color: #555;
  /* Add a dark-grey background on hover */
}

/* ===========================
   HAMBURGER ANIMATION
   =========================== */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  justify-content: center;
  position: relative;
  margin-top: 10px;
  /* float: right; */
  z-index: 1000;
  position: sticky;
  top: 0px;
  left: 40px;
  background: var(--bg);
  width: 100%;
  height: 50px;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s ease;
  transform-origin: center;
}

/* --- OPEN STATE --- */

.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.hamburger:hover span {
  opacity: 0.7;
}

/* ===========================
   MOBILE MENU
   =========================== */
/* MOBILMENY – vertikal layout */
.mobile-menu {
  display: flex;
  flex-direction: column;
  /* ⭐ gör menyn vertikal */
  /* avstånd mellan länkar */
  padding: 40px 20px 20px;
  background: var(--bg);
  position: sticky;
  top: 15px;
  /* justera efter headerhöjd */
  left: 0;
  right: 0;
  z-index: 100;
  border: 1px solid var(--primary);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-top: none;
  color: var(--text);
}

/* Dölj menyn när hidden används */
.mobile-menu[hidden] {
  display: none !important;
}

/* När menyn är öppen */
.mobile-menu.show {
  display: flex !important;
}

/* Länkar i mobilmenyn */
.mobile-menu a {
  font-size: 18px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--text);
  font-size: 1.15rem;
  border-radius: 6px;
}

.mobile-menu a:hover {
  color: var(--primary);
}

.mobile-menu .modern-cta {
  background: var(--white);
  color: var(--primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.mobile-menu .modern-cta:hover {
  background: #f2f6ff;
}