@charset "UTF-8";

/* Fonts */

@font-face {
  font-family: Italianno-Regular;
  src: url('../fonts/Italianno-Regular.ttf');
}

@font-face {
  font-family: Montserrat;
  src: url('../fonts/Montserrat-VariableFont_wght.ttf');
}

/* All Pages */

body {
  min-width: 320px;
  font-size: 16px;
  margin: 0;
  padding: 0;
  background-color: #F8F8F8;
}

header #name {
  display: block;
  font-family: Italianno-Regular, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 3.5rem;
  padding: 1rem;
  text-align: center;
}

header #nav-spacer {
  width: 100%;
  height: 61px;
  display: none;
}

header #nav {
  display: flex;
  flex-direction: column;
  justify-content: end;
  background-color: #2E86C1;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
}

header #nav.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: 0 2px 5px #00000033;
}

header #hamburger-menu-btn {
  display: flex;
  justify-content: flex-end;
  margin: 1rem;
}

header #mobile-nav-btn-open:hover, header #mobile-nav-btn-close:hover {
  cursor: pointer
}

header nav {
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: #2E86C1;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

header nav ul li {
  border-top: 1px solid #ffffff33;
}

header nav ul li a {
  display: block;
  padding: 1rem;
  color: #fff;
  text-decoration: none;
}

header nav:active {
  max-height: 500px;
}

main {
  margin: 40px 0;
}

footer {
  background-color: #2E86C1;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

#footer-sections {
  display: flex;
  justify-content: center;
  gap: 0 60px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

#footer-sections section, #footer-sections div {
  max-width: 200px;
}

#footer-sections section p,
#footer-sections #footer-opening-hours ul li {
  line-height: 1.5;
}

#footer-sections section a {
  color: #fff;
}

#footer-sections #footer-opening-hours {
  max-width: fit-content;
}

#footer-sections #footer-opening-hours ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  margin-top: 1em;
}

#footer-sections h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: bold;
}

#footer-sections p,
#footer-sections a {
  font-size: 0.95rem;
}

#footer-sections #tripadvisor a {
  color: #002b11;
  line-height: 1.15;
}

.footer-bottom {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 0;
}

.footer-bottom a {
  color: #fff;
  text-decoration: none;
}

/* Homepage */

#restaurang-image img {
  width: 100%;
  max-width: 1080px;
  box-shadow: 5px 10px 20px #d4d4d4;
}

/* Homepage: Welcome section */

#welcome-section {
  max-width: 1080px;
  margin: 40px auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

#welcome-section h1, #welcome-section h2 {
  text-align: center;
}

#welcome-section h1 {
  font-family: Italianno-Regular, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 5rem;
}

#welcome-section h1 #welcome-message {
  font-size: 4rem !important;
}

#welcome-section h1 #restaurant-name {
  font-size: 3rem !important;
}

#welcome-section p {
  font-size: 1.25rem;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
}

/* Homepage: Meny nav */

.meny-nav {
  text-align: center;
  margin: 40px 0;
  font-size: 1.5rem;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
}

.meny-nav h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.meny-nav nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  flex-direction: column;
}

.meny-nav li {
  margin: 0;
}

.meny-nav nav a {
  display: inline-block;
  background-color: #2E86C1;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
}

.meny-nav nav a:hover {
  background-color: #1B4F72;
  transform: translateY(-2px);
}

.menu-gallery h2 {
  font-size: 3rem !important;
  font-family: Italianno-Regular, 'Times New Roman', serif;
  font-weight: 400;
  padding: 1rem;
  text-align: center;
  margin-top: 0;
}

.menu-gallery {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 20px 20px;
  box-sizing: border-box;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.gallery-grid img {
  flex: 1 1 180px;
  min-width: 250px;
  max-width: 350px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 3px 5px 10px #d4d4d4;
}

/* Menu page */

#menu-h1-heading {
  font-family: Italianno-Regular, 'Times New Roman', serif;
  text-align: center;
  font-size: 3.5rem;
  font-weight: 400;
}

.menu-section {
  max-width: 800px;
  margin: 2rem auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 5px 10px 20px #f0f0f0;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.menu-section h2 {
  font-size: 2rem;
  text-align: center;
  color: #2E86C1;
  margin-bottom: 0.5rem;
}

.menu-section h3 {
  font-size: 1.5rem;
  color: #2E86C1;
  border-bottom: 2px solid #2E86C1;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
}

/* Menu Page: Menu Table */
.menu-table {
  width: 100%;
  border-collapse: collapse;
}

.menu-table tr {
  border-bottom: 1px solid #eee;
}

.menu-table td {
  padding: 0.75rem 0;
  font-size: 1rem;
  line-height: 1.4;
  color: #2c3e50;
}

.menu-table td:last-child {
  text-align: right;
  font-weight: bold;
  white-space: nowrap;
  padding-left: 1rem;
}

/* Contact page */

#contact-main {
  margin-bottom: 0;
}

#contact-main h1 {
  font-family: Italianno-Regular, 'Times New Roman', serif;
  font-size: 3.5rem;
  font-weight: 400;
  text-align: center;
}

#contakt-flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  padding-top: 0;
  max-width: 1000px;
  margin: 0 auto;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

#contakt-flex-container section {
  flex: 1 1 300px;
  background-color: #fff;
  max-width: 500px;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 5px 10px 20px #f0f0f0;
  text-align: left;
  border: 2px solid #2E86C1;
  min-width: 300px;
  box-sizing: border-box;
}

#contakt-flex-container section h2 {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2E86C1;
  border-bottom: 2px solid #2E86C1;
  padding-bottom: 0.5rem;
}

#contakt-flex-container section p {
  font-size: 1rem;
  margin: 0.75rem 0;
  line-height: 1.6;
}

#contakt-flex-container a {
  color: #2E86C1;
  text-decoration: none;
}

#contakt-flex-container a:hover {
  text-decoration: underline;
}

#contact-info strong {
  display: inline-block;
  margin-bottom: 0.25rem;
  color: #2980b9;
}

#opening-hours #closed-for-season-msg {
  background-color: #ffeaea;
  color: #c0392b;
  padding: 1rem;
  margin-bottom: 0.25rem;
  border: 2px solid #e74c3c;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 5px #0000001a;
}

#opening-hours #closed-for-season-msg p {
  margin: 0;
  font-weight: bold;
}

#opening-hours ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#opening-hours li {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #ddd;
}

#opening-hours li:last-child {
  border-bottom: none;
}

#opening-hours .day {
  width: 100px;
  text-align: left;
}

#opening-hours .time {
  text-align: right;
  flex-grow: 1;
}

/* Media Queries */

@media (min-width: 480px) {
  .menu-gallery img {
    width: 538px;
  }
  
  .meny-nav nav ul {
    flex-direction: row;
  }

  .image-row img {
    border-radius: 0.25rem;
  }
}

@media (max-width: 600px) {
  #footer-sections {
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 768px) {
  /* Desktop nav */
  header #hamburger-menu-btn {
    display: none;
  }

  header nav ul li {
    border-top: none;
  }

  header #global-nav {
    display: block;
    overflow: visible;
    transition: none;
    max-height: 500px !important;
  }

  header #global-nav ul {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
  }

  header #global-nav ul li {
    font-size: 1.5rem;
    position: relative
  }

  header #global-nav ul li:hover {
    opacity: 0.8;
    color: #fff;
    text-decoration: underline;
  }

  header #global-nav ul li .active {
    text-decoration: underline;
  }
  
  /* Homepage */

  #welcome-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0;
  }

  main #welcome-section {
    margin: 0;
  }

  #welcome-section {
    display: flex;
    gap: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 350px;
    padding: 1rem;
  }

  #welcome-section h1 {
    font-size: 3rem;
    margin: 1rem;
    text-align: center;
  }

  #welcome-section h2 {
    font-size: 2rem;
    margin: 1rem;
    text-align: center;
  }

  #welcome-section p {
    font-size: 1.4rem;
    margin: 1rem;
  }

  #restaurang-image img {
    width: 100%;
    max-width: 1080px;
  }
}

@media (min-width: 992px) {
  /* Homepage */
  #welcome-section {
    padding-left: 0;
  }

  #restaurang-image {
    display: flex;
    justify-content: center;
  }
}

@media (min-width: 1080px) {
  #restaurang-image img {
    border-radius: 0.25rem;
  }
}