/* =========================================================
   INDEX.CSS — Yritystapahtumat / Catering -sivu
   Käyttö: <link rel="stylesheet" href="shared.css">
            <link rel="stylesheet" href="index.css">
   ========================================================= */

body.paja-page {
  background-image:
    linear-gradient(
      rgba(255,255,255,0.85),
      rgba(255,255,255,0.85)
    ),
    url("images/pajaPuidenTakaa.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* =========================================================
   INDEX: CATERING / YRITYSMYYNTI
   ========================================================= */

.catering-section{
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 18px;
}

.catering-hero{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  margin-bottom: 18px;
}

.catering-hero h2{
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.catering-hero p{
  margin: 0;
  opacity: .85;
  font-size: 16px;
}

.catering-grid{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
  margin-top: 16px;
}

.catering-card{
  grid-column: span 12;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}

.catering-card__media{
  height: 190px;
  background: linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.02));
  position: relative;
}

.catering-card__content{
  padding: 18px 18px 16px;
}

.catering-card__title{
  margin: 0 0 6px;
  font-size: 22px;
}

.catering-card__lead{
  margin: 0 0 12px;
  opacity: .85;
}

.catering-list{
  margin: 0 0 12px;
  padding-left: 18px;
  opacity: .9;
}

.catering-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.schedule-box{
  margin-top: auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.356);
  border-left: 5px solid #000000;
  border-radius: 18px;
  padding: 1rem 1rem 1rem 1.05rem;
}

.schedule-box__title{
  margin: 0 0 0.45rem;
  color: #000000;
  font-size: 1rem;
  font-weight: 800;
}

.schedule-box__text{
  margin: 0;
  color: #000000;
  line-height: 1.75;
  font-size: 0.96rem;
}

.catering-card[data-package="Tacopöytä-buffet"] .catering-card__media{
  background-image: url("images/pajaYRITSYMYYNTIpulla.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #ffffff;
}

.catering-card[data-package="Uuniperunabuffet"] .catering-card__media{
  background-image: url("images/pajaYRITSYMYYNTIperuna.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #ffffff;
}


/* =========================================================
   INDEX: VENUE GALLERY
   ========================================================= */

.venue-gallery-section {
  --line: rgba(53, 42, 31, 0.12);
  --shadow: 0 18px 40px rgba(32, 25, 19, 0.12);
  --radius-xl: 28px;
  position: relative;
  padding: 72px 18px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.75), transparent 36%),
    linear-gradient(180deg, #f8f4ec 0%, #f3ede3 100%);
  overflow: hidden;
}

.venue-gallery-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.venue-gallery-intro {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.venue-gallery-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  color: #434c6e;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.venue-gallery-intro h2 {
  margin: 0 0 12px;
  color: #1d1a17;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.04;
}

.venue-gallery-intro p {
  margin: 0;
  color: #5e554b;
  font-size: 1.02rem;
  line-height: 1.7;
}

.venue-gallery-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.venue-gallery-card {
  position: relative;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  min-height: 280px;
  background: #ddd;
  isolation: isolate;
}

.venue-gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease, filter 0.4s ease;
}

.venue-gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.58) 0%,
    rgba(0,0,0,0.16) 42%,
    rgba(0,0,0,0.04) 100%
  );
  z-index: 1;
  transition: opacity 0.35s ease;
}

.venue-gallery-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.venue-gallery-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #1b1c2e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.venue-gallery-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.venue-gallery-card:hover img,
.venue-gallery-card:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1.06);
}

.venue-gallery-card:hover::after,
.venue-gallery-card:focus-visible::after {
  opacity: 0.92;
}

.venue-gallery-card:focus-visible {
  outline: 3px solid rgba(128, 93, 48, 0.55);
  outline-offset: 3px;
}


/* =========================================================
   INDEX: LIGHTBOX
   ========================================================= */

.venue-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.venue-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.venue-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9,9,11,0.82);
  backdrop-filter: blur(6px);
}

.venue-lightbox-content {
  position: relative;
  z-index: 2;
  width: min(96vw, 1180px);
  max-height: 92vh;
  margin: 4vh auto;
  padding: 18px;
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) 56px;
  align-items: center;
  gap: 14px;
}

.venue-lightbox-figure {
  margin: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.32);
}

.venue-lightbox-figure img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  background: #111;
}

.venue-lightbox-figure figcaption {
  padding: 16px 18px 18px;
  color: #f4efe8;
  font-size: 1rem;
  line-height: 1.6;
  background: linear-gradient(180deg, rgba(34,28,22,0.82), rgba(22,18,15,0.95));
}

.venue-lightbox-close,
.venue-lightbox-nav {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.venue-lightbox-close:hover,
.venue-lightbox-nav:hover {
  transform: scale(1.06);
  background: rgba(255,255,255,0.2);
}

.venue-lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.venue-lightbox-nav {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.6rem;
}


/* =========================================================
   INDEX: CORPORATE MENU
   ========================================================= */

   /* =========================================================
   INDEX: BUTTONS (page override if shared missing)
   ========================================================= */

.btn{
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.btn-primary{
  background: #111;
  color: #fff;
}

.btn-secondary{
  background: rgba(0,0,0,.06);
  color: #111;
}

.btn:focus{
  outline: 2px solid rgba(0,0,0,.35);
  outline-offset: 2px;
}

.corporate-menu-section {
  padding: 88px 20px;
}

.corporate-menu-container {
  max-width: 1240px;
  margin: 0 auto;
}

.corporate-menu-header {
  max-width: 860px;
  margin: 0 auto 38px;
  text-align: center;
}

.corporate-menu-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(15,35,66,0.08);
  color: #000;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.corporate-menu-header h2 {
  margin: 0 0 14px;
  color: #000;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.corporate-menu-header p {
  margin: 0;
  color: #4a4a4a;
  font-size: 1.06rem;
  line-height: 1.75;
}

.corporate-menu-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  margin-bottom: 34px;
}

.corporate-menu-card {
  padding: 28px 24px;
  border-radius: 26px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(18,40,74,0.08);
  box-shadow: 0 14px 34px rgba(0,0,0,0.06);
  backdrop-filter: blur(4px);
  text-align: left;
}

.corporate-menu-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #f4efe4;
  font-size: 1.5rem;
}

.corporate-menu-card h3 {
  margin: 0 0 10px;
  color: #000;
  font-size: 1.3rem;
  line-height: 1.2;
}

.corporate-menu-card p {
  margin: 0;
  color: #474747;
  line-height: 1.7;
  font-size: 1rem;
}

.corporate-menu-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 30px 32px;
  border-radius: 28px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 20px 50px rgba(18,40,74,0.2);
}

.corporate-menu-cta__text {
  max-width: 680px;
}

.corporate-menu-cta__text h3 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  line-height: 1.2;
  color: #000;
}

.corporate-menu-cta__text p {
  margin: 0;
  color: #5b6472;
  line-height: 1.7;
}

.corporate-menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.corporate-menu-btn {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.corporate-menu-btn:hover {
  transform: translateY(-1px);
}

.corporate-menu-btn--primary {
  background: #000;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.corporate-menu-btn--secondary {
  background: rgba(255,255,255,0.12);
  color: #000;
  border-color: #000;
}

.corporate-menu-btn--ghost {
  background: transparent;
  color: #000;
  border-color: #000;
}


/* =========================================================
   INDEX: CORPORATE MENU MODAL
   ========================================================= */

.corporate-menu-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.corporate-menu-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.corporate-menu-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(5px);
}

.corporate-menu-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(96vw, 980px);
  max-height: 92vh;
  margin: 4vh auto;
  padding: 24px;
  border-radius: 26px;
  background: #fff;
  overflow: auto;
  box-shadow: 0 28px 70px rgba(0,0,0,0.26);
}

.corporate-menu-modal__dialog h3 {
  margin: 0 0 18px;
  font-size: 1.45rem;
}

.corporate-menu-modal__content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.corporate-menu-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: #222;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 820px){
  .catering-card{
    grid-column: span 6;
  }
}

@media (min-width: 760px) {
  .venue-gallery-grid {
    grid-template-columns: 1.3fr 1fr;
    grid-template-areas:
      "large small1"
      "large small2";
  }

  .venue-gallery-card--large {
    grid-area: large;
    min-height: 610px;
  }

  .venue-gallery-grid .venue-gallery-card:nth-child(2) {
    grid-area: small1;
    min-height: 296px;
  }

  .venue-gallery-grid .venue-gallery-card:nth-child(3) {
    grid-area: small2;
    min-height: 296px;
  }
}

@media (max-width: 1024px) {
  .corporate-menu-grid {
    grid-template-columns: 1fr;
  }

  .corporate-menu-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .corporate-menu-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 759px) {
  .venue-lightbox-content {
    width: 96vw;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .venue-lightbox-nav {
    position: absolute;
    bottom: 88px;
    z-index: 5;
    width: 48px;
    height: 48px;
  }

  .venue-lightbox-prev {
    left: 12px;
  }

  .venue-lightbox-next {
    right: 12px;
  }

  .venue-lightbox-figure img {
    max-height: 62vh;
  }

  .venue-gallery-card,
  .venue-gallery-card img {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .catering-section {
    padding: 36px 16px;
  }

  .corporate-menu-section {
    padding: 70px 16px;
  }

  .corporate-menu-card {
    padding: 22px 20px;
  }

  .corporate-menu-cta {
    padding: 24px 20px;
  }

  .corporate-menu-actions {
    width: 100%;
  }

  .corporate-menu-btn {
    width: 100%;
  }
}