/* =========================================================
   Makara — Konoba, Lukoran (Ugljan)
   Coastal Mediterranean × rustic konoba
   =========================================================
   COLOUR / FONT VARIABLES live in :root below — change them
   in one place to re-theme the whole site.
   ========================================================= */

:root {
  /* palette */
  --sea:        #12384f;   /* deep adriatic */
  --sea-2:      #1b5878;   /* mid sea */
  --sea-soft:   #4f8fb0;   /* light sea */
  --sand:       #f6efe3;   /* warm cream background */
  --sand-2:     #efe4d2;   /* slightly deeper cream */
  --terracotta: #bd5b3a;   /* warm accent */
  --terracotta-d:#a24a2c;
  --olive:      #6d7748;   /* herb / olive accent */
  --wood:       #6b4a2f;   /* rustic wood */
  --charcoal:   #241f1a;   /* text */
  --muted:      #6e6459;   /* muted text */
  --line:       #e2d6c3;   /* hairlines on sand */

  /* fonts */
  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans:  "Work Sans", "Segoe UI", system-ui, sans-serif;

  /* layout */
  --wrap: 1120px;
  --radius: 4px;
  --shadow: 0 18px 50px -24px rgba(18, 56, 79, .45);
}

/* ---- reset-ish ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--sand);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .4em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section--sea { background: var(--sea); color: #eaf2f4; }
.section--sand2 { background: var(--sand-2); }

.center { text-align: center; }
.kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--terracotta);
  margin: 0 0 .9rem;
}
.section--sea .kicker { color: #ffd9a8; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center .lead { margin-inline: auto; }
.h-xl { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.h-lg { font-size: clamp(2rem, 4.5vw, 3rem); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  letter-spacing: .02em;
  padding: .85rem 1.6rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terracotta); color: #fff; }
.btn--primary:hover { background: var(--terracotta-d); }
.btn--ghost { border-color: currentColor; color: var(--sea); }
.btn--ghost:hover { background: var(--sea); color: #fff; border-color: var(--sea); }
.btn--light { background: #fff; color: var(--sea); }
.section--sea .btn--ghost { color: #eaf2f4; }
.section--sea .btn--ghost:hover { background: #fff; color: var(--sea); }
/* ghost buttons on the dark hero need light text/border to be visible */
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.85); }
.hero .btn--ghost:hover { background: #fff; color: var(--sea); border-color: #fff; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(246, 239, 227, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
/* --- header text: LIGHT by default (it sits over the dark hero /
   blue page banner), DARK once scrolled onto the cream background --- */
.brand__name {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 700;
  letter-spacing: .04em; color: #fff;
}
.brand__tag {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .2em;
  color: rgba(255,255,255,.8); margin-top: .25rem;
}
.is-scrolled .brand__name { color: var(--sea); }
.is-scrolled .brand__tag { color: var(--muted); }

.header-right { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul {
  display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  font-weight: 500; font-size: .96rem; color: #f3ede2;
  padding: .3rem 0; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--terracotta); transition: width .22s ease;
}
.site-nav a:hover::after, .site-nav a.is-current::after { width: 100%; }
.site-nav a.is-current { color: #ffd9a8; }
.is-scrolled .site-nav a { color: var(--charcoal); }
.is-scrolled .site-nav a.is-current { color: var(--terracotta); }

.lang-switch { display: flex; gap: .15rem; align-items: center; }
.lang-switch button {
  background: none; border: none; cursor: pointer; font-family: var(--sans);
  font-weight: 600; font-size: .8rem; letter-spacing: .05em;
  color: rgba(255,255,255,.75); padding: .3rem .45rem; border-radius: var(--radius);
}
.lang-switch button.is-active { color: #fff; background: rgba(255,255,255,.18); }
.lang-switch .sep { color: rgba(255,255,255,.4); }
.is-scrolled .lang-switch button { color: var(--muted); }
.is-scrolled .lang-switch button.is-active { color: var(--sea); background: var(--sand-2); }
.is-scrolled .lang-switch .sep { color: var(--line); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; padding: 8px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }
.is-scrolled .nav-toggle span { background: var(--sea); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 82vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: #0a2536; /* fallback */
  margin-top: -76px; /* pull under sticky header */
  padding-top: 76px;
}
/* animated deep-blue → light-blue gradient that sweeps across (shimmer) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg,
    #0a2536 0%, #10344a 18%, #1b5878 34%, #2b6f8f 46%,
    #5fa8d3 55%, #2b6f8f 64%, #1b5878 78%, #10344a 90%, #0a2536 100%);
  background-size: 300% 300%;
  animation: hero-shimmer 15s ease-in-out infinite;
}
/* veil: darker on the left (behind the text), lets the shimmer show on the right */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,22,32,.60) 0%, rgba(8,22,32,.34) 42%, rgba(8,22,32,.04) 78%),
    linear-gradient(180deg, rgba(8,22,32,.12) 0%, rgba(8,22,32,.42) 100%);
}
@keyframes hero-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero__inner { position: relative; z-index: 2; padding: 5rem 0; max-width: 46rem; }
.hero .kicker { color: #ffd9a8; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: .5rem; }
.hero p { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: #e9f1f3; max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* animated waves at the bottom */
.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 2; line-height: 0; }
.hero__wave .waves { width: 100%; height: 90px; display: block; }
.wave-parallax > use { animation: wave-move 24s cubic-bezier(.55,.5,.45,.5) infinite; }
.wave-parallax > use:nth-child(1) { animation-delay: -2s;  animation-duration: 8s;  }
.wave-parallax > use:nth-child(2) { animation-delay: -3s;  animation-duration: 11s; }
.wave-parallax > use:nth-child(3) { animation-delay: -4s;  animation-duration: 15s; }
.wave-parallax > use:nth-child(4) { animation-delay: -5s;  animation-duration: 22s; }
@keyframes wave-move {
  0%   { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}

/* =========================================================
   FEATURE CARDS
   ========================================================= */
.grid { display: grid; gap: 1.4rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.feature {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 1.8rem 1.5rem; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  width: 54px; height: 54px; margin: 0 auto 1rem; color: var(--sea-2);
}
.feature h3 { font-size: 1.5rem; color: var(--sea); }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---- split (intro) ---- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split__media {
  aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18,56,79,.15), rgba(189,91,58,.18)),
    repeating-linear-gradient(45deg, var(--sand-2) 0 22px, #e7dac6 22px 44px);
  display: grid; place-items: center; color: var(--muted);
  border: 1px solid var(--line);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag { font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; opacity: .7; }

/* =========================================================
   INFO STRIP (hours + location on home)
   ========================================================= */
.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.info-block h3 { color: #fff; font-size: 1.7rem; }
.section--sea .info-block h3 { color: #fff; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.14);
}
.hours-list li span:last-child { color: #ffd9a8; font-variant-numeric: tabular-nums; }

/* =========================================================
   MENU PAGE
   ========================================================= */
.menu-cat { margin-bottom: 3rem; }
.menu-cat__head {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem;
}
.menu-cat__head h2 { color: var(--sea); font-size: 2rem; margin: 0; white-space: nowrap; }
.menu-cat__head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.menu-item {
  display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem;
  padding: .7rem 0; border-bottom: 1px dashed var(--line);
}
.menu-item:last-child { border-bottom: none; }
.menu-item__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--charcoal); }
.menu-item__price { font-weight: 600; color: var(--terracotta); font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-item__desc { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; margin: 0; }
.menu-note { color: var(--muted); font-size: .9rem; font-style: italic; }
.menu-cat--drink .menu-item__name { font-size: 1.1rem; }
.menu-item__price small { font-weight: 500; color: var(--muted); font-size: .78em; }
.cash-badge {
  display: inline-block; border: 1.5px solid var(--terracotta); color: var(--terracotta);
  border-radius: 999px; padding: .5rem 1.2rem; font-weight: 600; font-size: .9rem;
  letter-spacing: .03em; text-transform: uppercase;
}

/* =========================================================
   GALLERY
   ========================================================= */
/* masonry columns — photos keep their natural height, staggered like bricks */
.gallery-grid { column-count: 3; column-gap: 1rem; }
.gallery-item { break-inside: avoid; margin: 0 0 1rem; padding: 0;
  animation: gfade .6s ease both; }
.gallery-item:nth-child(2) { animation-delay: .05s; }
.gallery-item:nth-child(3) { animation-delay: .10s; }
.gallery-item:nth-child(4) { animation-delay: .15s; }
.gallery-item:nth-child(5) { animation-delay: .20s; }
.gallery-item:nth-child(6) { animation-delay: .25s; }
.gallery-item:nth-child(n+7) { animation-delay: .30s; }
@keyframes gfade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.gallery-item__btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 8px; overflow: hidden; position: relative;
  box-shadow: 0 10px 40px -16px rgba(18,56,79,.4);
}
.gallery-item__btn img {
  width: 100%; height: auto; display: block; border-radius: 8px;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.gallery-item__btn:hover img, .gallery-item__btn:focus-visible img { transform: scale(1.06); }
.gallery-item__btn:focus-visible { outline: 3px solid var(--sea-soft); outline-offset: 2px; }

/* =========================================================
   LIGHTBOX (full-screen photo viewer)
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(9,22,30,.93); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(92vw, 1200px); max-height: 84vh;
  border-radius: 6px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  user-select: none; -webkit-user-drag: none;
}
.lightbox__cap {
  position: absolute; bottom: 20px; left: 0; right: 0; text-align: center;
  color: #e9f1f3; font-size: .92rem; padding: 0 1rem;
}
.lightbox__count {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  color: #cfe0e6; font-size: .85rem; letter-spacing: .06em; font-variant-numeric: tabular-nums;
}
.lightbox__btn, .lightbox__close {
  position: absolute; border: 0; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.12); display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.lightbox__btn { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; }
.lightbox__btn:hover { background: rgba(255,255,255,.26); }
.lightbox__btn--prev { left: 18px; }
.lightbox__btn--next { right: 18px; }
.lightbox__close { top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; }
.lightbox__close:hover { background: rgba(255,255,255,.26); }
.lightbox__btn svg { width: 26px; height: 26px; }
.lightbox__close svg { width: 22px; height: 22px; }
body.no-scroll { overflow: hidden; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-hero { text-align: center; max-width: 62ch; margin: 0 auto; }
.value { text-align: center; }
.value__icon { width: 46px; height: 46px; margin: 0 auto .8rem; color: var(--terracotta); }
.value h3 { color: var(--sea); font-size: 1.5rem; }
.value p { color: var(--muted); font-size: .96rem; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 5vw, 3.5rem); }
.contact-card { }
.contact-item { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-item__icon { width: 24px; height: 24px; color: var(--terracotta); flex: none; margin-top: 3px; }
.contact-item h4 { margin: 0 0 .15rem; font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-item p, .contact-item a { margin: 0; font-size: 1.05rem; color: var(--charcoal); }
.contact-item a:hover { color: var(--terracotta); }

.form { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.8rem; box-shadow: var(--shadow); }
.form h3 { color: var(--sea); font-size: 1.7rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .03em; margin-bottom: .35rem; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: .98rem; background: var(--sand); color: var(--charcoal);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--sea-soft); border-color: var(--sea-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__note { font-size: .82rem; color: var(--muted); font-style: italic; margin-top: .8rem; }

.map-embed { margin-top: 1rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 11; background: var(--sand-2); box-shadow: 0 12px 34px -20px rgba(18,56,79,.4); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--charcoal); color: #d8cfc2; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.site-footer .brand__name { color: #fff; }
.site-footer a:hover { color: #ffd9a8; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .5rem; font-size: .94rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: #a99f92; }
.social-row { display: flex; gap: .8rem; }
.social-row a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; }
.social-row a:hover { background: rgba(255,255,255,.1); }
.social-row svg { width: 18px; height: 18px; }

/* =========================================================
   PAGE HEADER (interior pages)
   ========================================================= */
.page-head {
  background: var(--sea);
  color: #fff; text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  margin-top: -76px; padding-top: calc(76px + clamp(2.5rem, 6vw, 4rem));
  position: relative;
}
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-head .lead { color: #cfe0e6; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .split, .info-cols { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 2; }
}
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 76px 0 auto 0; background: var(--sand);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.is-open { max-height: 70vh; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  /* the mobile panel has a cream background, so links stay dark here
     regardless of the header's scroll state */
  .site-nav a, .is-scrolled .site-nav a { display: block; padding: .9rem 0; color: var(--charcoal); }
  .site-nav a.is-current, .is-scrolled .site-nav a.is-current { color: var(--terracotta); }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero { min-height: 76vh; }
  .gallery-grid { column-count: 1; }
  /* smaller lightbox controls on phones */
  .lightbox__btn { width: 44px; height: 44px; }
  .lightbox__btn--prev { left: 8px; }
  .lightbox__btn--next { right: 8px; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
  .wave-parallax > use, .hero::before { animation: none !important; }
  .hero::before { background-position: 42% 50%; }
}
