/* ---- Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f6f2ea;
  --ink: #262626;
  --muted: rgba(38, 38, 38, 0.55);
  --muted2: rgba(38, 38, 38, 0.35);
  --accent: #c28d6b;
  --panel: #f3efe7;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.279);
  --radius: 6px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

.wrap {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

/* ---- Header ---- */
.top {
  padding: 2rem 0 1.5rem;
}

.site-title {
  margin: 0;
  text-align: center;
  letter-spacing: 0.22em;
  font-weight: 400;
  font-size: clamp(2rem, 2.2vw + 1.4rem, 3rem);
}

.site-subtitle {
  margin: 0.9rem 0 0;
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-top: 1.6rem;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.nav-link {
  color: rgba(38, 38, 38, 0.65);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  outline: none;
  color: var(--ink);
  border-bottom-color: rgba(38, 38, 38, 0.25);
}

.nav-link.is-active {
  color: var(--accent);
  border-bottom-color: rgba(194, 141, 107, 0.45);
}

/* ---- Main layout blocks ---- */
.band {
  padding: 3.5rem 0;
}

/* Two-column area */
.split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2.25rem;
  align-items: stretch;
}

.split--reverse {
  grid-template-columns: 1fr 1.25fr;
}

.panel {
  border-radius: var(--radius);
  min-height: 420px;
}

/* pic panels */
.panel--image {
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* film overlay */
.panel--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(246, 242, 234, 0.0),
    rgba(246, 242, 234, 0.08)
  );
  pointer-events: none;
}

/* Etusivu kuva */
.panel--image-1 {
  background-image:url("images/toast3.jpeg");
}

/* Etusivu kuva2, ei käytössä*/
.panel--image-2 {
  background-image:
    radial-gradient(900px 520px at 35% 35%, rgba(255, 255, 255, 0.85), transparent 55%),
    radial-gradient(900px 520px at 75% 70%, rgba(0, 0, 0, 0.22), transparent 60%),
    linear-gradient(135deg, #c6b7a9, #efe5d6);
}

.panel--text {
  background: var(--panel);
  padding: clamp(2rem, 1.4rem + 1.2vw, 3rem);
  box-shadow: var(--shadow);
}

/* Big right-side heading */
.big-title {
  margin: 0;
  font-size: clamp(2rem, 2vw + 1rem, 2rem);
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: rgba(38, 38, 38, 0.55);
}

.lead {
  margin: 1.2rem 0 0;
  color: rgba(38, 38, 38, 0.72);
  font-size: 1.05rem;
  max-width: 52ch;
}

.panel--text p {
  margin: 0.9rem 0 0;
  color: rgba(38, 38, 38, 0.68);
  max-width: 60ch;
}

.list {
  margin: 1.2rem 0 0;
  padding-left: 1.1rem;
  color: rgba(38, 38, 38, 0.68);
}

/* ---- Menu block ---- */
.menu-box {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem;
}

.menu-title {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--muted);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.menu-item {
  border: 1px solid rgba(38, 38, 38, 0.08);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.35);
}

.item-name {
  font-weight: 600;
  color: rgba(38, 38, 38, 0.75);
}

.item-desc {
  color: rgba(38, 38, 38, 0.55);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

/* ---- Footer contact box ---- */
.footer {
  padding: 3.5rem 0 4rem;
}

.contact-box {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 2rem;
}

.contact-box h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(38, 38, 38, 0.6);
}

.contact-box p {
  margin: 0.35rem 0;
  color: rgba(38, 38, 38, 0.68);
}

.tiny {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.back {
  color: var(--accent);
  letter-spacing: 0.06em;
  width: fit-content;
  border-bottom: 1px solid rgba(194, 141, 107, 0.35);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .top {
    padding: 3rem 0 1.5rem;
  }

  .wrap {
    width: min(1100px, 100% - 2rem);
  }

  .split,
  .split--reverse {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .panel {
    min-height: 280px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 1.1rem;
    flex-wrap: wrap;
  }
}

/* ----- Button (reusable) ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(38, 38, 38, 0.18);
  background: rgba(255, 255, 255, 0.45);
  color: rgba(38, 38, 38, 0.75);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.btn:hover,
.btn:focus-visible {
  outline: none;
  border-color: rgba(194, 141, 107, 0.55);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
}

/* Menu preview, ei käytössä */
.menu-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Full menu page layout */
.menu-page {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem;
}

.menu-page-head {
  margin-bottom: 1.6rem;
}

.page-title {
  margin: 0;
  font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem);
  color: rgba(38, 38, 38, 0.70);
  letter-spacing: 0.02em;
}

.page-sub {
  margin: 0.7rem 0 0;
  color: rgba(38, 38, 38, 0.62);
  max-width: 70ch;
}

.menu-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.menu-section {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(38, 38, 38, 0.08);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.section-title {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: rgba(38, 38, 38, 0.55);
}

.menu-list {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.55rem;
}

.menu-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(38, 38, 38, 0.07);
}

.row-name {
  color: rgba(38, 38, 38, 0.72);
}

.row-small {
  color: rgba(38, 38, 38, 0.72);
  font-size: 0.8rem;
}

.row-price {
  color: rgba(38, 38, 38, 0.55);
  white-space: nowrap;
}

.menu-page-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

/* Responsive for menu page */
@media (max-width: 900px) {
  .menu-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-sections {
    grid-template-columns: 1fr;
  }
}

/* ----- Logo banner ----- */

.logo-banner {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo {
  max-width: 150px;     /* desktop size */
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Make logo smaller on phones */
@media (max-width: 700px) {
  .logo {
    max-width: 120px;
  }
}

/* ---------------- Venue page ---------------- */

/* Kuva, juhlat-sivu */
.panel--venue-hero {
  background-image: url("images/Tilat1.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

/* Facts grid inside text panel */
.venue-facts {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.fact {
  border: 1px solid rgba(38, 38, 38, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.35);
  padding: 0.9rem;
}

.fact-title {
  color: rgba(38, 38, 38, 0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.fact-value {
  margin-top: 0.35rem;
  color: rgba(38, 38, 38, 0.72);
  font-weight: 600;
}

.note {
  margin-top: 1.2rem;
  color: rgba(38, 38, 38, 0.60);
}

/* ---------------- Slideshow ---------------- */
.slideshow-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.slideshow-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.slideshow-sub {
  margin: 0;
  color: rgba(38, 38, 38, 0.55);
}

.slideshow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(38, 38, 38, 0.08);
  background: rgba(255, 255, 255, 0.35);
}

.slides {
  position: relative;
  height: 450px;
  /* height: min(460px, 62vh); */
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 260ms ease, transform 260ms ease;
  /* background-size: cover; */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Active slide */
.slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* slideshow kuvat */
.slide--1 { background-image: url("images/Tilat1.jpg"); }
.slide--2 { background-image: url("images/Tilat6.png"); }
.slide--3 { background-image: url("images/aula.jpg"); }
.slide--4 { background-image: url("images/Tilat7.jpg"); }
.slide--5 { background-image: url("images/arrangement.jpg"); }

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(246, 242, 234, 0.00), rgba(246, 242, 234, 0.10));
  pointer-events: none;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(38, 38, 38, 0.18);
  background: rgba(255, 255, 255, 0.62);
  color: rgba(38, 38, 38, 0.75);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
}

.slide-btn:hover,
.slide-btn:focus-visible {
  outline: none;
  border-color: rgba(194, 141, 107, 0.55);
  color: var(--accent);
}

.slide-btn.prev { left: 0.9rem; }
.slide-btn.next { right: 0.9rem; }

.dots {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(38, 38, 38, 0.10);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(38, 38, 38, 0.25);
  background: transparent;
  cursor: pointer;
}

.dot.is-active {
  background: rgba(194, 141, 107, 0.85);
  border-color: rgba(194, 141, 107, 0.85);
}

/* ---------------- Form ---------------- */
.form-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem;
}

.venue-form {
  margin-top: 1.2rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

label {
  color: rgba(38, 38, 38, 0.62);
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}

input,
textarea {
  border-radius: var(--radius);
  border: 1px solid rgba(38, 38, 38, 0.12);
  background: rgba(255, 255, 255, 0.55);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: rgba(38, 38, 38, 0.78);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(194, 141, 107, 0.55);
}

.form-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.form-note {
  margin-top: 1rem;
  color: rgba(38, 38, 38, 0.55);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .venue-facts {
    grid-template-columns: 1fr;
  }

  .slideshow-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .slides {
    height: 320px;
  }
}

.form-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  opacity: 0.85;
}

.form-email {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-email:hover {
  opacity: 0.75;
}

/* ----- Social media links ----- */

.social-links {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.social-links a {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: rgba(38, 38, 38, 0.65);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  outline: none;
  color: var(--accent);
   border-bottom-color: rgba(194, 141, 107, 0.5);

}

/* ----- Dropdown navigation ----- */

.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-top {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: rgba(38, 38, 38, 0.65);
  border-radius: 999px;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
  outline: none;
  color: var(--accent);
  background: rgba(194, 141, 107, 0.12);
}

.dropdown-arrow {
  font-size: 0.75rem;
  line-height: 1;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(38, 38, 38, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  padding: 0.45rem;
  display: none;
  z-index: 300;
}

.dropdown.is-open .dropdown-menu {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  color: rgba(38, 38, 38, 0.68);
  text-decoration: none;
}

.dropdown-link:hover,
.dropdown-link:focus-visible {
  outline: none;
  background: rgba(194, 141, 107, 0.12);
  color: var(--accent);
}

.dropdown-link.is-active {
  color: var(--accent);
  background: rgba(194, 141, 107, 0.10);
}

/* ---------------- juhlatilat ---------------- */

.panel--partybox-image {
  background-image:
    linear-gradient(rgba(246, 242, 234, 0.08), rgba(246, 242, 234, 0.08)),
    url("images/Tilat2.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.panel--partybox {
  background: linear-gradient(
    180deg,
    rgba(243, 239, 231, 1),
    rgba(249, 246, 240, 1)
  );
}

.partybox-page {
  background: var(--panel);
}

.partybox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.package-card {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(38, 38, 38, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  padding: 1.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 100%;
}

.package-title {
  margin: 0;
  color: rgba(38, 38, 38, 0.74);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.package-price {
  margin: 0;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.package-list {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(38, 38, 38, 0.68);
  display: grid;
  gap: 0.35rem;
}

.package-list li {
  padding-left: 0.1rem;
}

.package-card:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.text-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(194, 141, 107, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(194, 141, 107, 0.65);
  outline: none;
}

@media (max-width: 768px) {
    .partybox-grid {
    grid-template-columns: 1fr;
    }
  }


  @media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .dropdown-menu {
    position: static;
    margin-top: 6px;
  }
}

.image-section {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills the box without changing its size */
  display: block;
}

/* Contact */
    .map-box {
  width: 100%;
  max-width: 100%;
  background: #f6dfe3;
  border-radius: 20px;
  overflow: hidden;
  min-height: 420px;
}

.map-box iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.contact-text-box p {
  line-height: 1.25;
  margin-bottom: 0.35em;
}

@media (max-width: 900px) {
  .dropdown {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: auto;
  }

  .dropdown-top {
    width: auto;
    justify-content: center;
    gap: 0.35rem;
  }

  .dropdown-menu {
    position: static;
    margin-top: 0.45rem;
    min-width: 160px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
  }
}