/* =========================================================
   THEME
========================================================= */
:root{
  --bg:#0b1524;
  --card:#101e33;
  --ink:#e8eef6;
  --muted:#b7c3d6;
  --gold:#d1b27f;
  --line:#1d3355;

  /* accents for links/buttons */
  --accent: var(--gold);
  --link:   #e0c89c; /* slightly lighter beige for text links */
}
*{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0;
  font:16px/1.6 Inter,system-ui,-apple-system,Segoe UI,Roboto;
  color:var(--ink);
  background:var(--bg);
}
.container{ width:min(1100px,92%); margin:auto }

/* =========================================================
   HEADER (fixed height) + FLOATING LOGO
========================================================= */
.site-head{
  position:sticky; top:0; z-index:20;
  background:#0b1628;
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:saturate(160%) blur(10px);
}
.site-head::after{
  content:"";
  position:absolute; inset:0;
  box-shadow:0 2px 12px rgba(0,0,0,.3);
  pointer-events:none;
}
.head-inner{
  position:relative;
  display:flex; justify-content:center; align-items:center;
  padding:16px 60px;
}
.nav{ display:flex; gap:40px; align-items:center; font-weight:600 }
.nav a{
  color:var(--ink); text-decoration:none; font-weight:600;
  letter-spacing:.02em; padding:8px 10px; border-radius:8px; opacity:.9
}
.nav a:hover{ color:var(--gold); opacity:1 }
.nav .btn{ margin-left:14px }
.lang{ position:absolute; right:40px; display:flex; gap:8px }
.lang button{
  background:#0f1c30; color:var(--muted);
  border:1px solid var(--line); padding:6px 10px; border-radius:8px
}
.lang .is-active{ color:var(--ink); border-color:var(--gold) }

/* Floating circular logo (lowered so full badge shows) */
.logo-wrap{
  position:absolute; top:58%; left:40px; transform:translateY(-50%);
  display:flex; align-items:center; justify-content:center; z-index:30;
}
.site-logo{
  width:120px; height:120px; object-fit:cover;
  border-radius:50%;
  border:4px solid #d9c59a;
  background:#0b1628;
  padding:6px;
  box-shadow:0 4px 20px rgba(0,0,0,.4);
  transition:border-color .3s ease;
}
.site-logo:hover{ border-color:#e6dcb2 }

/* =========================================================
   BUTTONS
========================================================= */
.btn{
  background:var(--gold); color:#1a1612;
  padding:10px 16px; border-radius:10px; border:none;
  display:inline-flex; gap:8px; align-items:center; font-weight:600
}
.btn.ghost{ background:transparent; border:1px solid var(--gold); color:var(--ink) }

/* Header “Varaa pöytä” button: white text + soft hover */
.btn-book{
  color:#fff;
  background:var(--accent);
  transition:all .25s ease;
}
.btn-book:hover,
.btn-book:focus{
  color:#1a1612;
  background:color-mix(in srgb, var(--accent) 85%, white 15%);
}

/* =========================================================
   HERO
========================================================= */
.hero{
  position:relative; min-height:64vh;
  display:grid; place-items:center;
  background:url('/assets/hero.jpg') center/cover no-repeat;
}
.hero::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(6,12,20,.65) 0%, rgba(6,12,20,.45) 40%, rgba(6,12,20,.55) 100%);
  pointer-events:none;
}
.hero-inner{ position:relative; z-index:1; padding:96px 0 128px }

/* Bigger, signature title */
.hero-title{
  font:700 88px/1.05 'Playfair Display',serif;
  letter-spacing:.8px;
  text-align:center;
  color:#fff;
  text-shadow:
    0 22px 70px rgba(0,0,0,.75),
    0 6px 24px rgba(0,0,0,.55);
}

.hero-sub{
  text-align:center; max-width:680px; margin:10px auto 22px;
  color:#e9edf8; text-shadow:0 3px 10px rgba(0,0,0,.6);
}
.hero .btn.ghost{ border-color:#fff; color:#fff; background:rgba(255,255,255,.06) }
.hero .btn.ghost:hover{ background:rgba(255,255,255,.12) }
.cta-row{ display:flex; gap:12px; justify-content:center }

/* =========================================================
   SECTIONS, CARDS, PROMO
========================================================= */
.section{ padding:64px 0 }
.section.alt{ background:linear-gradient(180deg,#0e1b2e,#0b1524) }
.section h2{
  font:700 36px 'Playfair Display',serif; color:var(--gold);
  letter-spacing:.3px; margin:0 0 6px;
}

.menu-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:18px;
  margin-top:18px;
}

/* --- Menu Cards --- */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

/* Image area: consistent height + proper cropping */
.card .img{
  position:relative;
  overflow:hidden;
  width:100%;
  height:clamp(180px, 28vw, 280px);
  background:#0b1728;
}
.card .img img,
.card .img picture img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

/* Fallback for div-based images */
.card .img.bg,
.card .img[style*="background-image"]{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  height:clamp(180px, 28vw, 280px);
}

.card:hover .img{
  transform:scale(1.01);
  transition:transform .25s ease;
}

/* Card content */
.card .bd{ padding:12px 14px; flex:1 }
.card h3{
  margin:0 0 4px;
  font:600 18px/1.3 Inter,system-ui,sans-serif;
}
.card p{ margin:0 0 8px; color:var(--muted) }
.card .price{ color:#fff; font-weight:700 }

.promo{ padding:0 }
.promo-inner{ padding:40px 0 }
.promo-card{
  background:#112340;
  border:1px dashed var(--gold);
  color:#ffe9c4;
  padding:18px;
  border-radius:12px;
  text-align:center;
}

/* =========================================================
   OPENING HOURS — Elegant text-only layout
========================================================= */
.hours-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:32px;
  margin-top:8px;
}
.hours-card{
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
}
.hours-card-title{
  font-family:"Playfair Display",serif;
  font-weight:700;
  color:var(--gold);
  font-size:1.22rem;
  letter-spacing:.3px;
  margin:0 0 12px;
}
.hours-table{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
}
.hours-row{
  display:flex;
  align-items:baseline;
  gap:20px;
  padding:0;
}
.hours-wd{
  flex:0 0 auto;
  width:3.6rem;
  font-family:"Playfair Display",serif;
  font-weight:600;
  font-size:1.06rem;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--ink);
  opacity:.95;
}
.badge-time{
  padding:0;
  margin:0;
  background:transparent;
  color:var(--ink);
  font-family:"Inter",system-ui,sans-serif;
  font-weight:500;
  font-size:1.05rem;
  letter-spacing:.3px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.badge-closed{
  padding:0;
  border:0;
  background:transparent;
  color:color-mix(in srgb,var(--ink,#e8eef6) 58%,transparent);
  font-family:"Inter",system-ui,sans-serif;
  font-weight:500;
  font-size:1.05rem;
  letter-spacing:.3px;
}

/* Exceptions */
.hours-special{ margin-top:30px }
.hours-sub{
  font-family:"Playfair Display",serif;
  font-weight:700;
  color:var(--gold);
  font-size:1.12rem;
  letter-spacing:.3px;
  margin:0 0 10px;
}
.hours-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
}
.hours-item{
  display:flex;
  align-items:baseline;
  gap:14px;
}
.hours-date{
  flex:0 0 auto;
  min-width:9.6rem;
  font-family:"Inter",system-ui,sans-serif;
  font-weight:600;
  color:var(--ink);
  white-space:nowrap;
}
.hours-pills{ display:flex; flex-wrap:wrap; gap:10px }
.badge-pill{
  border:0;
  background:transparent;
  padding:0;
  color:var(--ink);
  font-family:"Inter",system-ui,sans-serif;
  font-weight:500;
}
.hours-label{
  color:color-mix(in srgb,var(--ink,#e8eef6) 65%,transparent);
}

/* =========================================================
   BOOKING + MAP
========================================================= */
.two{ display:grid; grid-template-columns:1fr 1fr; gap:28px }
.book-form label{ display:grid; gap:6px; margin:10px 0 }
.book-form input,.book-form textarea{
  background:#0f1c30; border:1px solid var(--line);
  color:var(--ink); padding:10px; border-radius:10px;
}
.status{ min-height:1.2em; color:#a9f }
.map-wrap iframe{ width:100%; height:320px; border:0; border-radius:12px }

/* =========================================================
   FOOTER
========================================================= */
.site-foot{ border-top:1px solid var(--line); padding:22px 0; color:var(--muted) }
.foot-inner{ display:flex; justify-content:space-between; align-items:center }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width:900px){
  .two{ grid-template-columns:1fr }
  .hero-title{ font-size:52px }
  .nav{ gap:18px }
  .logo-wrap{ left:20px; top:56%; }
}
@media (max-width:600px){
  .hero-title{ font-size:40px }
}
@media (max-width:560px){
  .hours-grid{ gap:24px }
  .hours-wd{ width:3.2rem; font-size:1.02rem }
  .hours-date{ min-width:8.6rem }
  .hours-row{ gap:16px }
}

/* === Full-width image tiles (Lounas / Kahvila / À la carte) ============ */
.menu-tiles {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

@media (min-width: 720px) {
  .menu-tiles {
    grid-template-columns: repeat(3, 1fr);
    height: 70vh; /* each tile fills ~70% of viewport height */
  }
}

.menu-tile {
  position: relative;
  display: block;
  overflow: hidden;
  height: 60vh;
}
@media (min-width: 720px) {
  .menu-tile {
    height: 100%;
  }
}

.menu-figure {
  margin: 0;
  height: 100%;
}
.menu-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .6s ease;
}

.menu-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

/* captions centered in the middle of the tile */
.menu-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  padding: 1rem;
}
.menu-kicker {
  text-transform: uppercase;
  font-size: .9rem;
  opacity: .9;
  letter-spacing: .05em;
}
.menu-name {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
}
.menu-meta {
  font-size: 1rem;
  opacity: .9;
  margin-top: .25em;
}

/* Hover zoom */
.menu-tile:hover img,
.menu-tile:focus-visible img {
  transform: scale(1.08);
}

/* Place map link tight under the map */
.map-link {
  margin-top: 8px;
  margin-bottom: 12px;
  text-align: left;
}

/* Contact + Taxi Jessica in one line */
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 24px;
}

/* Contact info left */
.contact-row .contact {
  flex: 1 1 auto;
}

/* Taxi Jessica image on the right */
.taxi-link img {
  width: 85px;        /* balanced size */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.taxi-link:hover img,
.taxi-link:focus-visible img {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Responsive stacking for small screens */
@media (max-width: 720px) {
  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .taxi-link img {
    width: 70px;
  }
}
/* Booking: 2 fields side-by-side (date + time) */
.book-row.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

/* Match selects to your input styling */
.book-form select{
  background:#0f1c30;
  border:1px solid var(--line);
  color:var(--ink);
  padding:10px;
  border-radius:10px;
}

/* Screen-reader only helper text */
.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

@media (max-width:600px){
  .book-row.two-col{ grid-template-columns: 1fr; }
}

.lightwidget-widget { width: 100%; display: block; }

/* =========================
   Link colors (dark theme)
========================= */
a{
  color:var(--link);
  text-decoration:none;
  transition:color .2s ease;
}
a:hover,
a:focus{
  color:color-mix(in srgb, var(--link) 80%, white 20%);
  text-decoration:underline;
}
a:visited{ color:var(--link) }

/* =========================================================
   Header Nav + Varaa pöytä contrast fix
========================================================= */

/* nav links default softer, only gold on hover or active */
.nav a {
  color: var(--ink);
  opacity: 0.85;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav a:hover,
.nav a:focus {
  color: var(--gold);
  opacity: 1;
}

/* if you ever mark the active section manually */
.nav a.active {
  color: var(--gold);
  opacity: 1;
}

/* “Varaa pöytä” button brighter */
.btn-book {
  background: var(--gold);
  color: #fff; /* white text for visibility */
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  transition: all 0.25s ease;
}

.btn-book:hover,
.btn-book:focus {
  background: color-mix(in srgb, var(--gold) 85%, white 15%);
  color: #1a1612; /* dark text on lighter hover */
}

/* Only the left column (form) gets a background image */
.book-left {
  position: relative;
  isolation: isolate;            /* ensures ::before stays behind content */
  border-radius: 16px;
  padding: 16px;                 /* optional: some inner spacing so the bg peeks around fields */
  overflow: hidden;              /* rounds the background corners */
  background: url('/assets/booktable.jpg') center/cover no-repeat;
}

/* Subtle dark overlay for readability */
.book-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 25, 0.55); /* adjust to taste */
  z-index: 0;
}

/* keep the content above the overlay */
.book-left > * {
  position: relative;
  z-index: 1;
}

/* If you previously set a background on the whole section, neutralize it */
.book-section {
  background: none !important;
}
