/* ================= FONTS ================= */

@font-face {
  font-family: "League Spartan";
  src: url("../fonts/LeagueSpartan-Bold.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

/* ================= VARIABLES ================= */

:root {
  --primary: #d82128;
  --primary-dark: #a22227;
  --secondary: #e79214;
  --black: #181b22;
  --black2: #252323;
  --white2: #fdfcfc;
  --white: #ffffff;
}

/* ================= RESET & BASE ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-optical-sizing: auto;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  font-family: "League Spartan", sans-serif;
  font-style: normal;
}

html {
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  font-size: 2.1rem;
  background-color: var(--white);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  letter-spacing: 2px;
}

a {
  color: var(--text);
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
a {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* ================= GLOBAL LAYOUT ================= */

.row {
  display: flex;
}

.column-2 {
  flex: 0 0 50%;
  width: 50%;
}

.homepage {
  width: 100vw;
  position: relative;
}

.fixed-header {
  top: 0;
}

.disabled-button {
  pointer-events: none !important;
  background-color: #bbbbbb !important;
}

.info {
  margin: 0 auto;
  width: 70rem;
  color: var(--text);
  text-align: center;
  padding: 2rem;
  max-width: 100%;
  position: relative;
}

/* ================= HEADER ================= */

header {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: end;
  width: 100%;
  z-index: 999;
  transition: top 0.5s ease;
  user-select: none;
  padding: 1rem;
}

header a {
  color: #cacaca;
}

.logo {
  display: flex;
  align-items: center;
  padding-left: 1rem;
  height: 15rem;
  cursor: pointer;
}

.logo img {
  height: 15rem;
  margin-right: auto;
  transition: filter 0.5s ease;
}

.logo:hover img {
  filter: brightness(0.8);
}

.desktop_menu {
  height: 15rem;
  position: relative;
}

.desktop_menu ul {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.desktop_menu ul li {
  position: relative;
  text-align: end;
}

.desktop_menu ul li > a {
  font-weight: 500;
  transition: 0.5s ease;
  cursor: pointer;
  letter-spacing: 3px;
  font-size: 20px;
}

.desktop_menu ul li:hover > a {
  color: #ffffff;
}

/* ================= BANNER ================= */

.banner {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.banner img {
  width: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.banner-text {
  color: white;
  font-weight: bold;
  padding: 3rem 25rem;
  font-size: 5rem;
}

/* ================= CONTACT ================= */

.contact-section {
  position: absolute;
  inset: 0;
  height: 100vh;
}

.contact-wrapper {
  position: relative;
  margin: calc(151px + 8vh) auto;
  width: 500px;
  min-height: 60vh;
  background-color: var(--primary-dark);
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-radius: 20px 20px 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: #f0f0f0;
  padding: 20px 10px;
  border: 2px solid var(--secondary);
}

/* .contact-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("../img/logo.png?v=1");
  background-repeat: no-repeat;
  background-size: 50px;
  background-position: center calc(100% - 10px);
  opacity: 0.3;
  background-color: #252323;
} */

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px calc(28%) 10px 20px;
  z-index: 10;
}

.contact-logo {
  font-size: 28px;
  text-align: center;
  margin-top: 4px;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-header {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
  color: var(--secondary);
}

.contact-text {
  font-size: 18px;
  color: #ccc;
}

.contact-text a {
  color: #ffffff;
  transition: color 0.3s ease;
}

.contact-text a:hover {
  color: var(--secondary);
}

/* ================= MENU ================= */

.menu-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: 20vh;
  background-color: var(--primary-dark);
  transition: padding-top 0.3s ease;
  overflow: hidden; /* Prevents any overflow issues */
}

/* .menu-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.3;
  background-color: #252323;
} */
.menu-section-logo {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  background-image: url("../img/logo.png?v=3");
  background-repeat: no-repeat;
  background-size: 120px;
  background-position: center calc(100% - 50px);
  pointer-events: none;
}
.menu-section::after {
  content: "";
  position: absolute;
  bottom: -1px; /* Prevents gap at bottom */
  left: 0;
  width: 100%;
  height: 160px;
  z-index: 2;
  background-color: transparent; /* Ensures no background color */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23e79214'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top; /* Changed from bottom */
  transform: rotate(180deg); /* Flips the wave */
  pointer-events: none;
}
.menu-section.pdf-open {
  padding-top: 50px;
}

.menu-items {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  padding: 2rem;
  z-index: 3;
}

.menu-item {
  /* border-bottom: 1px solid #ddd; */
  padding: 1rem 0;
  position: relative;
}
.menu-header-line {
  content: "";

  flex: 1 1 50%;
  height: 2px;
  background: var(--secondary);
  transform: translateY(-50%);
  transition: color 0.2s ease;
}

.menu-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.2s ease;
  background: var(--primary-dark);
}

.menu-header span {
  padding-right: 10px;
  font-size: 25px;
  transition: color 0.2s ease;
  font-weight: 200;
  color: var(--secondary);
  cursor: pointer;
}

.menu-header span:hover {
  color: #ffffff;
}
.menu-header span:hover + .menu-header-line {
  background: #ffffff;
}
/* ================= PDF VIEWER ================= */

.pdf-viewer {
  position: fixed;
  top: 0;
  left: 0;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37, 35, 35, 0.96);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1rem 2rem;
  z-index: 9999;
  animation: pdfFadeIn 0.25s ease;
  cursor: grabbing;
  user-select: none;
  scroll-behavior: smooth;
}

.pdf-viewer.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #252323;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.pdf-viewer .pdf-pages {
  display: inline-flex;
  flex-direction: column;
  gap: 20px;
}

.pdf-viewer canvas {
  margin-bottom: 2.5rem;
  background: #fff;
  border-radius: 10px;
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease;
  max-width: 100%;
  height: auto;
  display: block;
}

.pdf-viewer canvas:hover {
  transform: scale(1.01);
}

/* ================= BUTTON ================= */

#close-pdf {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.95);
  color: #252323;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

#close-pdf:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ================= LOADER ================= */

.pdf-loader {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  background: rgba(37, 35, 35, 0.85);
}

.pdf-loader.active {
  display: flex;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top: 5px solid #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ================= ANIMATIONS ================= */

@keyframes pdfFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================= MEDIA QUERIES ================= */

@media screen and (max-width: 680px) {
  .banner img {
    width: auto;
    height: 100%;
  }

  .contact-wrapper {
    width: 95%;
    padding: 20px 10px;
    gap: 20px;
  }

  .contact-logo {
    font-size: 1.8rem;
  }
  .contact-header {
    font-size: 16px;
  }
  .contact-text {
    font-size: 14px;
  }

  .menu-header span {
    font-size: 18px;
  }
  .pdf-viewer {
    padding-top: 3rem;
  }

  #close-pdf {
    top: 12px;
    right: 12px;
  }
}

@media screen and (max-width: 940px) {
  header {
    padding-top: 1rem;
  }
  .logo img {
    height: 12rem;
  }

  .desktop_menu {
    margin-left: auto;
  }

  .desktop_menu ul li > a {
    font-size: 18px;
  }

  .row {
    flex-direction: column;
  }

  .column-2 {
    flex: 0 0 100%;
    width: 100%;
  }

  .mobile-hide {
    display: none;
  }

  .contact-section {
    height: 100vh;
    width: 100vw;
    display: flex;
  }
}
