/* ============================================================
   Konoba Kvarner — Opatija
   Vlastiti CSS, bez vanjskih biblioteka. Mobile-first.
   ============================================================ */

:root {
  --ink: #16323c;
  --ink-soft: #3c565f;
  --ink-muted: #6b7f86;
  --sea: #0e2a36;
  --sea-deep: #0a2029;
  --cream: #faf6ee;
  --paper: #fffdf8;
  --terracotta: #c45a2f;
  --terracotta-dark: #a84723;
  --gold: #d9a85a;
  --line: rgba(22, 50, 60, 0.12);
  --shadow-sm: 0 4px 14px rgba(14, 42, 54, 0.08);
  --shadow-md: 0 14px 34px rgba(14, 42, 54, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --font-serif: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- Tipografija ---------- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.15; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 14px;
}

.section-title { font-size: clamp(1.7rem, 4.2vw, 2.5rem); color: var(--sea); }
.section-lead { color: var(--ink-muted); max-width: 640px; margin-top: 14px; }
.section-head { margin-bottom: 40px; }

.section { padding: 84px 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--sea), var(--sea-deep));
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.12rem; color: var(--sea); letter-spacing: 0.01em; }
.brand-text em { font-style: normal; font-size: 0.78rem; color: var(--terracotta); text-transform: uppercase; letter-spacing: 0.16em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 0.98rem; font-weight: 600; color: var(--ink-soft); position: relative; padding: 6px 0; transition: color 0.25s; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--sea); }
.nav a:hover::after { transform: scaleX(1); }

.nav .nav-cta {
  background: var(--terracotta);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.25s, transform 0.25s;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--terracotta-dark); transform: translateY(-1px); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 10px;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--sea); transition: transform 0.3s var(--ease), opacity 0.2s; }
.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; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 32, 41, 0.55) 0%, rgba(10, 32, 41, 0.30) 40%, rgba(10, 32, 41, 0.72) 100%),
    linear-gradient(90deg, rgba(10, 32, 41, 0.35) 0%, rgba(10, 32, 41, 0) 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fdf9f0;
  padding: 120px 0 140px;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f2d9a8;
  border: 1px solid rgba(242, 217, 168, 0.5);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
  background: rgba(10, 32, 41, 0.25);
}

.hero-title {
  font-size: clamp(2.7rem, 8vw, 4.9rem);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 24px rgba(10, 32, 41, 0.45);
}

.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.32rem);
  color: rgba(253, 249, 240, 0.94);
  margin: 20px auto 0;
  max-width: 560px;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(253, 249, 240, 0.85);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(253, 249, 240, 0.45);
  transition: background 0.25s, transform 0.25s;
  animation: bob 2.2s ease-in-out infinite;
}
.hero-scroll:hover { background: rgba(253, 249, 240, 0.15); }

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 10px 24px rgba(196, 90, 47, 0.35);
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(196, 90, 47, 0.4); }

.btn-ghost {
  background: rgba(253, 249, 240, 0.1);
  color: #fdf9f0;
  border-color: rgba(253, 249, 240, 0.55);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(253, 249, 240, 0.22); transform: translateY(-2px); }

/* ---------- Strip (tri stupa) ---------- */
.strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 34px 0;
}

.strip-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.strip-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.strip-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sea), var(--sea-deep));
  color: var(--gold);
}

.strip-item h3 { font-size: 1.12rem; color: var(--sea); margin-bottom: 4px; }
.strip-item p { font-size: 0.92rem; color: var(--ink-muted); }

/* ---------- O nama ---------- */
.about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-media { position: relative; }
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.about-badge {
  position: absolute;
  bottom: -16px;
  left: 24px;
  background: var(--terracotta);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.04em;
}

.about-text p { color: var(--ink-soft); margin-bottom: 16px; }
.about-text .kicker { margin-bottom: 10px; }
.about-text .section-title { margin-bottom: 22px; }

.about-list { margin-top: 26px; display: grid; gap: 10px; }
.about-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  color: var(--ink);
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
}
.about-list li::after {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 18px; height: 18px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  color: var(--sea);
  font-weight: 900;
}

/* ---------- Ponuda ---------- */
.offer { background: var(--paper); }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.offer-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.offer-media { overflow: hidden; aspect-ratio: 4 / 3; }
.offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.offer-card:hover .offer-media img { transform: scale(1.06); }

.offer-body { padding: 24px; }
.offer-body h3 { font-size: 1.28rem; color: var(--sea); margin-bottom: 10px; }
.offer-body p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Galerija ---------- */
.gallery { background: var(--cream); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.g-item {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sea);
  box-shadow: var(--shadow-sm);
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.4s;
}
.g-item::after {
  content: "⤢";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  color: #fff;
  background: rgba(10, 32, 41, 0.35);
  opacity: 0;
  transition: opacity 0.3s;
}
.g-item:hover img { transform: scale(1.07); }
.g-item:hover::after { opacity: 1; }

/* ---------- Kontakt ---------- */
.contact { background: var(--sea); color: #f4efe4; }

.contact .kicker { color: var(--gold); }
.contact .section-title { color: #fdf9f0; }
.contact .contact-info p { color: rgba(244, 239, 228, 0.85); margin-bottom: 16px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.contact-list { margin: 24px 0 30px; display: grid; gap: 18px; }
.contact-list div { display: flex; gap: 18px; align-items: baseline; }
.contact-list dt {
  font-weight: 700;
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  min-width: 110px;
}
.contact-list dd { color: #f4efe4; font-size: 1.05rem; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(244, 239, 228, 0.15);
  line-height: 0;
}
.contact-map iframe { width: 100%; height: 400px; filter: saturate(0.92); }

.contact .btn-primary { background: var(--gold); color: var(--sea); box-shadow: 0 10px 24px rgba(217, 168, 90, 0.3); }
.contact .btn-primary:hover { background: #e6bd75; color: var(--sea); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sea-deep); color: rgba(244, 239, 228, 0.75); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 30px 0;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-family: var(--font-serif); color: #f4efe4; font-size: 1.05rem; display: block; }
.footer-brand span { font-size: 0.82rem; color: rgba(244, 239, 228, 0.6); }
.footer-brand .brand-mark { width: 38px; height: 38px; font-size: 1.2rem; }

.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.92rem; font-weight: 600; transition: color 0.25s; }
.footer-nav a:hover { color: var(--gold); }

.footer-note { font-size: 0.85rem; color: rgba(244, 239, 228, 0.55); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 18, 24, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  padding: 24px;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lb-figure { max-width: min(1080px, 92vw); max-height: 88vh; text-align: center; }
.lb-figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  margin-inline: auto;
}
.lb-figure figcaption { color: rgba(244, 239, 228, 0.85); margin-top: 14px; font-size: 0.95rem; }

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 228, 0.3);
  background: transparent;
  color: #f4efe4;
  font-size: 1.7rem;
  line-height: 1;
  transition: background 0.25s, transform 0.25s;
}
.lb-close:hover { background: rgba(244, 239, 228, 0.15); transform: rotate(90deg); }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 228, 0.3);
  background: rgba(244, 239, 228, 0.08);
  color: #f4efe4;
  font-size: 2rem;
  line-height: 1;
  transition: background 0.25s;
}
.lb-nav:hover { background: rgba(244, 239, 228, 0.22); }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }

/* ---------- Reveal animacije ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .offer-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .strip-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-media { max-width: 560px; margin-inline: auto; }
  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }

  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(78vw, 320px);
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 80px 34px;
    box-shadow: -20px 0 60px rgba(10, 32, 41, 0.25);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
    z-index: 70;
  }
  .nav.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.4s var(--ease);
  }
  .nav a { font-size: 1.15rem; padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .nav-cta { width: auto; border: 0; margin-top: 14px; }

  .nav-toggle { display: flex; position: relative; z-index: 80; }

  .hero { min-height: 88vh; }
  .hero-content { padding: 110px 0 130px; text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .hero-actions .btn { width: 100%; }
  .hero-scroll { left: 24px; transform: translateX(0); animation: bob-mob 2.2s ease-in-out infinite; }
  @keyframes bob-mob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
  }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .section { padding: 56px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .lb-nav { width: 44px; height: 44px; font-size: 1.5rem; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; }
}
