@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Raleway:wght@300;400;600&display=swap");

:root {
  --dark: #1a1208;
  --warm: #2c1f0e;
  --gold: #c8a84b;
  --gold-light: #e8c97a;
  --cream: #f5ead8;
  --text-light: #d4c4a0;
  --nav-height: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--dark);
  color: var(--cream);
  font-family: "Raleway", sans-serif;
  font-weight: 300;
}

/* NAVIGAATIO */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(26, 18, 8, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200, 168, 75, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
}

.nav-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-row {
  list-style: none;
  display: flex;
  gap: 24px;
}

nav .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 2px;
  text-decoration: none;
}

nav ul li a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--gold);
  text-decoration: underline;
}

/* ETUSIVUN HERO-OSIO */
.tupa {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
}

.tupa-bg {
  position: absolute;
  inset: 0;
  background-image: url("tupa.webp");
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  transform: scale(1.05);
  animation: slowzoom 20s ease-in-out infinite alternate;
}

.tupa-page-bg {
  background-image: url("tupa.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.tupa-page-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.tupa-page-bg > * {
  position: relative;
  z-index: 1;
}

.tupa-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 18, 8, 0.3) 0%,
    rgba(26, 18, 8, 0.1) 50%,
    rgba(26, 18, 8, 0.7) 100%
  );
}

.tupa-content {
  position: relative;
  z-index: 1;
  animation: fadein 1.8s ease forwards;
}

/*ANIMAATIOT*/

@keyframes slowzoom {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.12);
  }
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes pulse {
  0%,
  100% {
    background-color: #cc0000;
    transform: scale(1);
  }
  50% {
    background-color: #ff0000;
    transform: scale(1.05);
  }
}

.tupa-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--cream);
  letter-spacing: 4px;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.tupa-content .slogan {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--gold-light);
  letter-spacing: 1px;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.tupa-content .slogan span {
  display: block;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

/* CTA NAPPI */
.cta-button {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 32px;
  background-color: #cc0000;
  color: white;
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: pulse 1.5s infinite;
}

/* SISÄLTÖOSIOT */
.section {
  padding: 0px 40px 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-top: 12px;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-light);
  max-width: 700px;
}

/* RUOKASIVU */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-top: 20px;
}

.menu-category h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200, 168, 75, 0.3);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-item-name {
  color: var(--cream);
  font-size: 0.95rem;
}

.menu-item-desc {
  color: var(--text-light);
  font-size: 0.8rem;
  margin-top: 3px;
}

.menu-item-price {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 20px;
}

/* YHTEYSTIEDOT */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  margin-top: 20px;
}

.contact-block h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.contact-block p {
  color: var(--text-light);
  line-height: 2;
  font-size: 0.95rem;
}

.contact-block a {
  color: var(--gold-light);
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid rgba(200, 168, 75, 0.2);
  color: rgba(212, 196, 160, 0.7);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-shadow: 1px 1px 4px black;
}

/* SOME-IKONIT */

.nav-right {
  display: flex;
  gap: 16px;
}

.social-icon {
  color: var(--text-light);
  font-size: 1.4rem;
  transition: color 0.3s;
}

.social-icon:hover {
  color: var(--gold);
}

/* SIVUJEN TAUSTAKUVAT */

.page-bg {
  background-image: url("tuopit.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.page-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}


.page-bg > * {
  position: relative;
  z-index: 1;
}

.pizza-bg {
  background-image: url("pizza.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.pizza-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.pizza-bg > * {
  position: relative;
  z-index: 1;
}

.saipa-bg {
  background-image: url("SaiPa-logo-original-CMYK.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.saipa-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.saipa-bg > * {
  position: relative;
  z-index: 1;
}

.saipa-bg main {
  min-height: calc(100vh - var(--nav-height) - 100px);
}

/* KUVA EFEKTI */
.event-img {
  transition: transform 0.3s;
}

.event-img:hover {
  transform: scale(1.05);
}

/* TAULUKKO */
.menu-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.menu-table th {
  font-family: "Playfair Display", serif;
  color: var(--gold);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(200, 168, 75, 0.4);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.menu-table td {
  padding: 10px 16px;
  color: var(--cream);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-table-category {
  color: var(--gold) !important;
  font-family: "Playfair Display", serif;
  font-size: 1.1rem !important;
  padding-top: 30px !important;
}

/* LISTA */
.menu-list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.menu-list li {
  color: var(--cream);
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
}
/* PUHELIN */
@media (max-width: 600px) {
  nav {
    padding: 0 16px;
  }

  nav .logo {
    display: none;
    font-size: 1rem;
    letter-spacing: 1px;
  }

  nav ul {
    gap: 16px;
  }

  nav ul li a {
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #e8d9b5;
    padding: 8px 4px;
  }

  .nav-right {
    position: absolute;
    right: 16px;
  }

  .tupa-content {
    padding: 0 20px;
  }

  .scroll-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 0.7rem;
    z-index: 2;
  }
}
