/**
 * Caverna 2026 – custom overrides
 */

:root {
  --caverna-gold: #cda45e;
  --caverna-gold-hover: #d9ba85;
  --caverna-dark: #0c0b09;
  --caverna-section: #1a1814;
}

body {
  font-family: "Open Sans", sans-serif;
  background: var(--caverna-dark);
}

/* ------------------------------------------------------------------
   Vollkorn – bränditypografia (ylikirjoittaa Restaurantly-template)
   Alkuperäinen sivu käytti Vollkornia otsikoihin ja .vollkorn / .vollkornh1
   ------------------------------------------------------------------ */
.vollkorn {
  font-family: "Vollkorn", serif;
  color: #f2f2f2;
}

.vollkornh1,
#hero h1,
#hero h1.vollkornh1,
.hero-landing h1,
.hero-restaurant h1.vollkornh1,
.hero-lang h1,
#hero2 h1 {
  font-family: "Vollkorn", serif !important;
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  color: #fff;
}

.vollkornh1 span,
#hero h1 span,
#hero h1.vollkornh1 span {
  color: var(--caverna-gold);
}

#hero h2,
.hero-restaurant h2,
.hero-landing .lead {
  font-family: "Vollkorn", serif !important;
  color: #eee;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.section-title h2,
.section-title p,
.about .content h3,
.logo-text-link,
.offcanvas-title {
  font-family: "Vollkorn", serif;
}

.text-gold { color: var(--caverna-gold) !important; }

.btn-gold {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  transition: 0.3s;
  line-height: 1;
  color: white;
  border: 2px solid var(--caverna-gold);
  background-color: #000;
  text-decoration: none;
}
.btn-gold:hover {
  color: #000;
  background-color: #d3af71;
}

.btn-dark2 {
  background-color: var(--caverna-gold);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
}

.btn-outline-gold {
  border: 1px solid var(--caverna-gold);
  color: var(--caverna-gold);
  background: transparent;
  border-radius: 50px;
  padding: 8px 20px;
}
.btn-outline-gold:hover {
  background: var(--caverna-gold);
  color: #000;
}

/* Hero backgrounds */
#hero,
.hero-landing,
.hero-restaurant {
  background-image: url('https://www.caverna.fi/images/churrasco-vartaat-15.jpg');
  background-size: cover;
  background-position: center;
}
.hero-landing,
.hero-restaurant,
#hero:not(.hero-landing-with-news) {
  min-height: 100vh;
  position: relative;
}
.hero-landing::before,
.hero-restaurant::before,
#hero::before {
  content: "";
  background: rgba(0, 0, 0, 0.55);
  position: absolute;
  inset: 0;
}
.hero-landing .container,
.hero-restaurant .container,
#hero .container {
  position: relative;
  z-index: 1;
}

#hero2,
.hero-lang {
  background: url('https://www.caverna.fi/images/churrasco-vartaat-66-lang.webp') center/cover no-repeat;
  min-height: 100vh;
  position: relative;
}
.hero-lang::before {
  content: "";
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
  inset: 0;
}
.hero-lang .container { position: relative; z-index: 1; }

@media (min-width: 992px) {
  #hero, .hero-landing, .hero-restaurant {
    background-attachment: fixed;
  }
}

/* Header scroll – älä lukitse yläreunaan kun topbar piilotetaan */
#header.header-scrolled {
  top: 0 !important;
}

/* Logo + paikka vierekkäin */
.logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}
.logo-symbol-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-symbol { height: 44px; width: auto; display: block; }
.logo-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.logo-text-link {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}
.logo-text-link:hover { color: var(--caverna-gold); }

.location-switch {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}
.location-badge {
  font-size: 0.78rem;
  color: var(--caverna-gold);
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  line-height: 1.2;
}
.location-badge.dropdown-toggle::after {
  margin-left: 0.2em;
  vertical-align: middle;
}
.location-badge:hover,
.location-badge:focus { color: var(--caverna-gold-hover); }
.location-dropdown { font-size: 0.9rem; min-width: 200px; }
.location-dropdown .dropdown-item.active {
  background: var(--caverna-gold);
  color: #000;
}

/* Landing – uutiset päällä vs. keskitetty ilman uutisia */
.hero-landing-centered {
  min-height: 100vh;
}
.hero-landing-centered .landing-wrap {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.hero-landing-with-news {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  align-items: flex-start !important;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.hero-landing-with-news .landing-wrap {
  width: 100%;
  padding-bottom: 1.5rem;
}
.hero-landing-with-news::before,
.hero-landing-centered::before {
  background: rgba(0, 0, 0, 0.55);
}

.landing-wrap {
  max-width: 960px;
}

.location-opening,
.location-hours {
  color: var(--caverna-gold);
  font-size: 0.85rem;
  line-height: 1.45;
}
.location-opening {
  font-weight: 600;
  font-size: 0.95rem;
}

.uutiset-landing-inline {
  text-align: left;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.uutiset-landing-box {
  background: rgba(26, 24, 20, 0.92);
  border: 2px solid var(--caverna-gold);
  border-radius: 12px;
  padding: 1.25rem 1.25rem;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}
.uutiset-title {
  font-size: 1.35rem;
  color: var(--caverna-gold);
  text-align: center;
}
.uutiset-landing-text {
  font-size: 0.95rem;
  line-height: 1.55;
}
.uutiset-landing-text p {
  margin-bottom: 0.65rem;
}
.uutiset-highlight {
  font-size: 1.05rem;
  color: var(--caverna-gold);
  font-weight: 600;
}

/* Legacy – erillinen uutisosio (ei enää käytössä valintasivulla) */
.uutiset-landing {
  padding: 0 0 60px;
  margin-top: -20px;
  position: relative;
  z-index: 2;
}

/* Kaivopiha – vain hero */
.hero-kaivo-only {
  min-height: calc(100vh - 100px);
}
.hero-kaivo-text {
  font-family: "Vollkorn", serif !important;
  color: #eee;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.6;
}
.hero-address {
  font-size: 1.1rem;
  color: #f2f2f2;
}

/* Kielisivu – Kaivopiha avautuu */
.lang-opening-banner {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}


/* Offcanvas */
.btn-offcanvas-toggle {
  background: #c00000;
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.offcanvas-caverna {
  background: #1a1814;
  color: #fff;
  width: min(320px, 85vw);
}
.offcanvas-caverna .offcanvas-body {
  padding-left: 12px;
  padding-right: 12px;
}
.offcanvas-brand {
  text-align: center;
}
.offcanvas-logo {
  height: 40px;
  width: auto;
  margin-bottom: 0.5rem;
}
.offcanvas-place {
  color: #fff;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.offcanvas-contact-box {
  border: 1px solid rgba(205, 164, 94, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.22);
}
.offcanvas-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #eee;
  margin: 0;
}
.offcanvas-contact-line i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 1rem;
}
.offcanvas-contact-line a {
  color: var(--caverna-gold);
  text-decoration: none;
}
.offcanvas-loc-switch {
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}
.offcanvas-loc-label {
  color: #ccc;
  margin-right: 0.25rem;
}
.offcanvas-loc-link {
  color: var(--caverna-gold);
  text-decoration: none;
  font-weight: 500;
}
.offcanvas-loc-link:hover {
  color: #fff;
}
.offcanvas-loc-link.active {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.offcanvas-loc-sep {
  color: rgba(205, 164, 94, 0.45);
  margin: 0 0.35rem;
}
.offcanvas-lang-title {
  color: var(--caverna-gold);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.offcanvas-lang-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  justify-content: center;
}
.offcanvas-lang-pills .lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: 44px;
  padding: 7px 0;
  border-radius: 50px;
  border: 1px solid var(--caverna-gold);
  color: var(--caverna-gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.offcanvas-lang-pills .lang-pill:hover {
  background: rgba(205, 164, 94, 0.15);
  color: #fff;
}
.offcanvas-lang-pills .lang-pill.active {
  background: var(--caverna-gold);
  color: #000;
  border-color: var(--caverna-gold);
}
.offcanvas-caverna .nav-link {
  color: #eee;
  padding: 10px 16px;
  border-radius: 8px;
  background: #2a2720;
}
.offcanvas-caverna .nav-link:hover {
  background: var(--caverna-gold);
  color: #000;
}

/* Landing location cards – yhtä korkeat */
.location-card {
  display: flex;
  color: #fff;
  height: 100%;
}
.location-card-inner {
  background: rgba(26, 24, 20, 0.9);
  border: 2px solid var(--caverna-gold);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  transition: transform 0.25s, box-shadow 0.25s;
  min-height: 220px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.location-card:hover .location-card-inner {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(205, 164, 94, 0.25);
  background: rgba(26, 24, 20, 1);
}
.location-icon { font-size: 2rem; color: var(--caverna-gold); }
.location-name { font-size: 1.25rem; font-weight: 600; color: var(--caverna-gold); }

.lang-pill {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  border: 1px solid var(--caverna-gold);
  color: #fff;
  text-decoration: none;
  margin: 0 4px;
}
.lang-pill.active, .lang-pill:hover {
  background: var(--caverna-gold);
  color: #000;
}

.flag-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
  min-width: 64px;
  transition: background 0.2s;
}
.flag-link:hover {
  background: rgba(205, 164, 94, 0.3);
  color: #fff;
}
.flag-emoji { font-size: 1.5rem; line-height: 1; }
.flag-code { font-size: 0.7rem; margin-top: 4px; opacity: 0.8; }

.landing-logo { max-height: 80px; }
.landing-logo-sm { max-height: 60px; }

/* Maps */
.map-iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 8px;
}
.map-iframe-sm {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
}
.map-tabs .nav-link,
.map-tabs-sm .nav-link {
  color: var(--caverna-gold);
  border: 1px solid var(--caverna-gold);
  margin: 0 4px;
  border-radius: 50px;
}
.map-tabs .nav-link.active,
.map-tabs-sm .nav-link.active {
  background: var(--caverna-gold);
  color: #000;
}

/* Badges */
.badges-bar { background: #000; }
.badge-img { max-height: 76px; width: auto; }
.badge-tableonline { max-height: 100px; }

/* Lounas – päivävalinta kuten viinilistassa */
#lounas .lounas-day-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  border: none;
  margin-bottom: 0.5rem;
}
#lounas .lounas-day-filters .nav-item {
  margin: 0;
}
#lounas .lounas-day-filters .lounas-day-pill {
  cursor: pointer;
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  color: #eee;
  margin: 0;
  border-radius: 50px;
  border: 1px solid rgba(205, 164, 94, 0.55) !important;
  border-right: 1px solid rgba(205, 164, 94, 0.55) !important;
  background: rgba(255, 255, 255, 0.07);
  font-family: "Open Sans", sans-serif;
  transition: all 0.2s ease;
}
#lounas .lounas-day-filters .lounas-day-pill:hover {
  background: rgba(205, 164, 94, 0.22);
  color: #fff;
  border-color: var(--caverna-gold) !important;
}
#lounas .lounas-day-filters .lounas-day-pill.active {
  background: var(--caverna-gold);
  color: #000;
  border-color: var(--caverna-gold) !important;
}

@media (max-width: 991px) {
  #header { padding-top: 8px; padding-bottom: 8px; }
  .logo-block { align-items: center; }
  .logo-symbol { height: 38px; }
  .logo-text-link { font-size: 1.2rem; }
}

/* Hero padding with topbar */
.hero-restaurant,
body:has(#topbar) #hero:not(.hero-landing-with-news):not(.hero-landing-centered) {
  padding-top: 120px;
}

@media (max-width: 768px) {
  .vollkornh1,
  #hero h1,
  #hero h1.vollkornh1,
  .hero-restaurant h1.vollkornh1 {
    font-size: 28px;
    line-height: 36px;
  }
  #hero h2,
  .hero-restaurant h2 {
    font-size: 18px;
    line-height: 24px;
  }
  .btn-gold, .btn-menu, .btn-book { display: block; width: 100%; margin: 8px 0 !important; text-align: center; }
}

.lang-flags .lang-flag {
  display: inline-block;
  padding: 4px 10px;
  margin: 2px;
  border: 1px solid #555;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
}

.location-block {
  background: rgba(26, 24, 20, 0.85);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #37332a;
}

/* Sosiaalinen media */
.caverna-social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.caverna-social .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--caverna-gold);
  color: var(--caverna-gold) !important;
  font-size: 1.35rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.caverna-social .social-icon i {
  float: none;
  width: auto;
  height: auto;
  background: none !important;
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-size: 1.35rem;
  line-height: 1;
  color: inherit;
}
.caverna-social .social-icon:hover {
  background: var(--caverna-gold);
  color: #000 !important;
}
.caverna-social .social-icon:hover i {
  color: inherit;
}

/* TableOnline widget – vaalea tausta */
.tableonline-widget-box {
  background: #f2f2f2;
  color: #222;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  max-width: 560px;
  border: 1px solid #ddd;
}
.tableonline-widget-box,
.tableonline-widget-box a,
.tableonline-widget-box p,
.tableonline-widget-box span,
.tableonline-widget-box h1,
.tableonline-widget-box h2,
.tableonline-widget-box h3,
.tableonline-widget-box h4,
.tableonline-widget-box div {
  color: #222 !important;
}

/* Mobiilivalikon kielivalinnat */
.offcanvas-lang .lang-flag.active {
  background: var(--caverna-gold);
  color: #000;
  border-color: var(--caverna-gold);
}

/* Hero – mobiilissa: tausta min 100vh, sisältö navin alle */
@media (max-width: 991px) {
  #hero.hero-restaurant:not(.hero-kaivo-only) {
    min-height: 100vh !important;
    height: auto !important;
    align-items: flex-start !important;
    padding-top: 135px !important;
    padding-bottom: 2rem;
  }
  #hero.hero-restaurant .container {
    padding-top: 0 !important;
  }
  #hero.hero-restaurant h2 {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
  }
  #hero.hero-restaurant .btns {
    margin-top: 0.75rem;
  }
  #hero.hero-restaurant .btns .btn-menu,
  #hero.hero-restaurant .btns .btn-book {
    padding: 10px 20px;
    margin-bottom: 6px !important;
  }
}

/* Viinit – täysleveys mobiilissa (poista tyhjä vasen marginaali) */
#viinit .menu-item {
  margin-top: 1.25rem;
  width: 100%;
}
#viinit .menu-item .menu-content {
  margin-left: 0 !important;
  width: 100%;
}
#viinit .menu-container {
  margin-left: 0;
  margin-right: 0;
}
#viinit .menu-ingredients {
  margin-left: 0;
  padding-left: 0;
}

/* Viinit – kapeampi lista desktopissa */
@media (min-width: 992px) {
  #viinit .menu-container,
  #viinit #menu-flters {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
  }
  #viinit .menu-container > .menu-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Viinisuodattimet – pyöreät napit */
.menu #menu-flters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 0 0.5rem;
  margin-bottom: 0.5rem;
}
.menu #menu-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  color: #eee;
  margin: 0;
  border-radius: 50px;
  border: 1px solid rgba(205, 164, 94, 0.55);
  background: rgba(255, 255, 255, 0.07);
  font-family: "Open Sans", sans-serif;
  transition: all 0.2s ease;
}
.menu #menu-flters li:hover {
  background: rgba(205, 164, 94, 0.22);
  color: #fff;
  border-color: var(--caverna-gold);
}
.menu #menu-flters li.filter-active {
  background: var(--caverna-gold);
  color: #000;
  border-color: var(--caverna-gold);
}

/* Mobiili pikapalkki */
.mobile-quick-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 995;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(12, 11, 9, 0.96);
  border-top: 2px solid var(--caverna-gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-quick-bar.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.mobile-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--caverna-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 8px;
}
.mobile-quick-link .bi {
  font-size: 1.05rem;
  line-height: 1;
}
.mobile-quick-link:hover {
  color: #fff;
}
.mobile-quick-sep {
  color: rgba(205, 164, 94, 0.5);
  font-weight: 300;
}
body.has-mobile-bar {
  padding-bottom: 52px;
}
body.has-mobile-bar .back-to-top {
  bottom: 62px;
}
body.has-mobile-bar.at-contact .back-to-top {
  bottom: 15px;
}

/* Desktop-nav – aktiivinen kohta kultaisena */
#navbar .nav-link {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
#navbar .nav-link:hover,
#navbar .nav-link.active {
  color: var(--caverna-gold) !important;
}
.offcanvas-caverna .nav-link.active {
  background: var(--caverna-gold);
  color: #000 !important;
}

/* Juhlat-osio */
.juhlat-section {
  padding: 80px 0;
}
.juhlat-section .juhlat-slider.swiper {
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(205, 164, 94, 0.35);
  background: rgba(0, 0, 0, 0.35);
}
.juhlat-section .swiper-slide {
  width: 100% !important;
  height: auto;
}
.juhlat-section .juhlat-slide-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.juhlat-section .swiper-pagination {
  position: relative;
  margin-top: 14px;
}
.juhlat-section .juhlat-copy h3 {
  color: var(--caverna-gold);
  font-size: 1.2rem;
  margin: 1.25rem 0 0.35rem;
}
.juhlat-section .juhlat-copy h3:first-child {
  margin-top: 0;
}
.juhlat-section .juhlat-copy p {
  color: #ddd;
  margin-bottom: 0;
  line-height: 1.6;
}
@media (max-width: 991px) {
  .juhlat-section .juhlat-copy {
    margin-top: 0.5rem;
  }
}
