/* =========================================================
   SHARED.CSS — Kaikille sivuille yhteiset tyylit
   ========================================================= */

/* Määrittele :root:ssa tai headerisi tyyleissä */
:root {
  --header-height: 170px; /* OSANA COMING SOON */
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --text: #14161a;
  --muted: #5b6472;
  --border: #e6e8ee;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  --radius: 18px;
  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================================================
   SAAVUTETTAVUUS
   ========================================================= */

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  z-index: 9999;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  padding: 28px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.grid-2 {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.desktop-only {
  display: none;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 101;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-header,
.header-inner {
  position: relative;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px 0 16px;
}

/* =========================================================
   LOGO
   ========================================================= */

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.site-header .logo img {
  width: auto;
  height: 92px;
}

.logo-placeholder {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 2px dashed #c7ccd8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 1px;
  color: #7c8494;
  background: #fafbfc;
}

/* =========================================================
   NAVIGAATIO
   ========================================================= */

.main-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.nav-primary {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.nav-secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border-radius: 999px;
}

.nav-link:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.nav-link.is-active {
  background: #111;
  color: #fff;
}

.location-pill {
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  background: #fff;
  transition: all 0.2s ease;
}

.location-pill:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

/* =========================================================
   SOME-IKONIT
   ========================================================= */

.social-links {
  position: absolute;
  top: 1.5rem;
  left: 1rem;
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.social-links a {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: #000;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.social-links svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* =========================================================
   KIELIVALITSIN
   ========================================================= */

.lang-switch {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: #111;
  color: #fff;
}

.lang-switch-corner {
  position: absolute;
  top: 16px;
  right: 18px;
}

/* =========================================================
   HAMPURILAISNAPPI
   ========================================================= */

.nav-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  width: 44px;
  height: 44px;
  padding: 6px;
  border: none;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--bg-alt);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}



/* =========================================================
   YLEISET KOMPONENTIT
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  text-decoration: none;
}

.button:hover {
  opacity: 0.92;
  text-decoration: none;
}

.button-outline {
  background: transparent;
  color: #111;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.hours {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.day {
  font-weight: 700;
}

.time {
  color: var(--muted);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.dot {
  margin: 0 8px;
  color: #98a1b3;
}

.note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.map-card h3 {
  margin-bottom: 10px;
}

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f0f2f6;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 18px 0;
  background: #fff;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* =========================================================
   SITE HERO
   ========================================================= */

.site-hero {
  position: relative;
  overflow: hidden;
  padding: 38px 0 26px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #fff;
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.site-hero .container {
  position: relative;
  z-index: 1;
}

.site-hero .hero-grid {
  display: grid;
  gap: 14px;
  align-items: start;
}

.site-hero .hero-title {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0.2px;
  color: #fff;
}

.site-hero .hero-lead {
  margin: 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.55;
}

.site-hero .hero-card {
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.site-hero .hero-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #fff;
}

.site-hero .hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}

.site-hero .weather-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 760px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

/* =========================================================
   LOCATION HIGHLIGHTS
   ========================================================= */

.location-highlights {
  padding: 34px 0 48px;
}

.location-highlights .section-title {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.location-highlights .highlight-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.location-highlights .highlight-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.location-highlights .highlight-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.location-highlights .highlight-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.65;
}

/* =========================================================
   VIIKON TAPAHTUMAT
   ========================================================= */

.week-events {
  max-width: 720px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.165);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.week-events-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.week-events-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.week-event-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.week-event-date {
  white-space: nowrap;
  opacity: 0.75;
}

.week-event-dot {
  opacity: 0.5;
}

.week-events-link {
  display: inline-flex;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.today-tag {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 12px;
}

/* =========================================================
   TAPAHTUMAKALENTERI
   ========================================================= */

.events-calendar {
  padding: 14px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cal-month {
  font-weight: 900;
  font-size: 18px;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 26px;
  line-height: 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.cal-weekdays {
  margin-bottom: 10px;
}

.cal-wd {
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}

.cal-day {
  position: relative;
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: default;
}

.cal-day.is-empty {
  background: transparent;
  border: 1px dashed rgba(0, 0, 0, 0.08);
  box-shadow: none;
}

.cal-day .cal-num {
  font-weight: 900;
  font-size: 14px;
}

.cal-day.is-today {
  outline: 3px solid rgba(0, 0, 0, 0.14);
}

.cal-day.is-event {
  cursor: pointer;
}

.cal-day.is-event:hover {
  transform: translateY(-1px);
}

.cal-thumb {
  margin-top: 8px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #f6f7f9;
}

.cal-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cal-note {
  margin-top: 12px;
}

/* =========================================================
   MODAALI / POSTERI
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal-panel {
  position: relative;
  z-index: 2;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.poster-panel {
  max-width: min(980px, 92vw);
  margin: 6vh auto;
  padding: 12px;
}

.poster-wrap {
  max-height: 80vh;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  background: #f6f7f9;
}

.poster-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

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

@media (min-width: 860px) {
  .header-inner {
    padding: 16px 0 18px;
  }

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

  .location-highlights .highlight-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .desktop-only {
    display: inline;
  }
}

@media (min-width: 960px) {
  .site-hero .hero-grid {
    grid-template-columns: 1.25fr 0.85fr;
    gap: 18px;
  }
}

@media (max-width: 860px) {
  .cal-day {
    min-height: 78px;
    padding: 8px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    position: relative;
    padding: 14px 60px 16px 60px;
  }

  .nav-toggle {
    display: flex;
    top: 12px;
    transform: none;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    width: min(300px, 85vw);
    height: 100dvh;
    padding: 90px 24px 96px;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .nav-primary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 16px;
  }

  .nav-secondary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
  }

  .location-pill {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    font-size: 0.9rem;
  }

  /* Sama kielivalitsin pysyy desktopilla oikeassa paikassa,
     mutta mobiilissa se näytetään valikon alareunassa */
  .lang-switch-corner {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 1001;
    display: none;
    justify-content: flex-start;
    width: min(300px, 85vw);
    margin: 0;
    padding: 14px 24px 20px;
    border-top: 1px solid #eee;
    border-radius: 0;
    background: #fff;
  }

  .main-nav.is-open ~ .lang-switch-corner {
    display: inline-flex;
  }

  .lang-switch-corner .lang-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
  }
}

.lang-switch-desktop {
  position: absolute;
  top: 16px;
  right: 18px;
  display: inline-flex;
}

.lang-switch-mobile {
  display: none;
}

@media (max-width: 768px) {
  .lang-switch-desktop {
    display: none;
  }

.lang-switch-mobile {
  display: inline-flex;
  width: auto;
  margin-top: 16px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  justify-content: flex-start;
  gap: 6px;
}
}

  /* COMING SOON*/

.menu-overlay {
  position: fixed;
  top: var(--header-height, 80px); 
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;

  background: rgba(15, 15, 15, 0.96); 
  backdrop-filter: blur(6px);         

  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-content {
  text-align: center;
  color: white;
  padding: 40px;
  max-width: 520px;
}

.overlay-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.overlay-content p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 32px;
  line-height: 1.6;
}

.overlay-cta {
  display: inline-block;
  background: #c8a96e;
  color: #1a1a1a;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.overlay-cta:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .menu-overlay {
    top: 120px;
  }
}

body.overlay-active {
  overflow: hidden;
}