/* === Design tokens === */
:root {
  --cream: #f2e6cf;
  --cream-light: #faf5ea;
  --brown: #3a2618;
  --brown-soft: #6a5444;
  --olive: #6b7536;        /* decorative only */
  --olive-dark: #4a5226;   /* olive text on cream */

  --font-display: "EB Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", Arial, sans-serif;

  --container: 1120px;
  --header-height: 84px;
  --space-section: clamp(4rem, 9vw, 7rem);
}

/* === Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Safety net: nothing may ever make the page scroll sideways */
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  background: var(--cream-light);
  color: var(--brown);
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.8rem, 8vw, 5.2rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.6rem; }

h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
}

p { margin: 0 0 1em; }

a { color: inherit; }

/* Link whose address we don't have yet (e.g. Instagram): looks like a link, does nothing */
a.link-pending {
  text-decoration: underline;
  cursor: default;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-bottom: 0.8rem;
}

/* === Button: text only, thin elliptical outline === */
.btn-ellipse {
  display: inline-block;
  padding: 1.2rem 2.8rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease, letter-spacing 0.3s ease;
}

.btn-ellipse:hover {
  background: rgba(58, 38, 24, 0.07);
  letter-spacing: 0.12em;
}

.btn-ellipse--small {
  padding: 0.7rem 1.6rem;
  font-size: 1.1rem;
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  border-bottom: 1px solid rgba(58, 38, 24, 0.12);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: calc(var(--header-height) - 8px);
  width: auto;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  color: var(--brown);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* Mobile nav: dropdown panel */
.site-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem 2rem;
  background: var(--cream);
  border-bottom: 1px solid rgba(58, 38, 24, 0.12);
  text-align: center;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.site-nav li a {
  display: block;
  padding: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--olive-dark);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: static;
    padding: 0;
    border: 0;
    background: none;
  }

  .site-nav ul {
    display: flex;
    gap: 1.8rem;
    margin: 0;
  }

  .site-nav li a {
    padding: 0.3rem 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    border-bottom: 1px solid transparent;
  }

  .site-nav li a:hover,
  .site-nav a[aria-current="page"] {
    border-bottom-color: currentColor;
  }
}

/* === Hero === */
/* Photo stays visible; no box and no hard outline (both rejected by the owner).
   A soft cream light in the centre fades out to nothing towards the edges, and the
   brown text gets a soft, diffuse glow. */
.hero {
  background:
    radial-gradient(ellipse 55% 50% at 50% 50%, rgba(250, 245, 234, 0.72) 0%, rgba(250, 245, 234, 0.4) 50%, rgba(250, 245, 234, 0) 100%),
    url("../images/hero-naslovna.jpg") center / cover no-repeat,
    var(--cream);
  color: var(--brown);
  text-align: center;
  text-shadow: 0 0 10px rgba(250, 245, 234, 0.95), 0 0 24px rgba(250, 245, 234, 0.8);
}

@media (max-width: 767px) {
  .hero {
    background:
      radial-gradient(ellipse 85% 45% at 50% 50%, rgba(250, 245, 234, 0.75) 0%, rgba(250, 245, 234, 0.4) 55%, rgba(250, 245, 234, 0) 100%),
      url("../images/hero-naslovna.jpg") center / cover no-repeat,
      var(--cream);
  }
}

.hero .btn-ellipse {
  border-width: 1.5px;
  font-weight: 500;
}

.hero .btn-ellipse:hover {
  background: rgba(250, 245, 234, 0.5);
}

.hero-inner {
  min-height: min(calc(85svh - var(--header-height)), 680px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 5rem;
}

.hero .eyebrow {
  color: var(--brown);
  font-weight: 600;
}

.hero h1 {
  max-width: 16em;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  text-wrap: balance;
}

.hero-lead {
  max-width: 34rem;
  font-size: 1.15rem;
  margin: 0 auto 2rem;
  font-size: 1.25rem;
  font-weight: 500;
}

/* === Highlights === */
.highlights {
  background: var(--cream);
  padding-block: 2.5rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.highlight svg {
  width: 38px;
  height: 38px;
  margin: 0 auto 0.5rem;
  fill: none;
  stroke: var(--olive);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.highlight p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.highlight strong {
  font-weight: 500;
}

/* === Sections === */
.section {
  padding-block: var(--space-section);
}

.section--alt {
  background: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-link {
  text-align: center;
  margin-top: 2rem;
}

.section-link a {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

/* Occasions: three cards */
.occasion-cards {
  display: grid;
  gap: 1.5rem;
}

.occasion-card {
  padding: 2.5rem 2rem;
  background: #fff;
  border: 1px solid rgba(58, 38, 24, 0.1);
  border-radius: 4px;
  text-align: center;
}

.occasion-card svg {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  fill: none;
  stroke: var(--olive);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.occasion-card h3 {
  margin-bottom: 0.8rem;
}

.occasion-list {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--olive-dark);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(58, 38, 24, 0.12);
}

.occasion-card p:last-child {
  margin: 0;
  color: var(--brown-soft);
}

@media (min-width: 900px) {
  .occasion-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Gallery preview */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

@media (min-width: 600px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Odd photo count: last one spans the full row */
  .gallery--page .gallery-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 8 / 3;
  }
}

@media (min-width: 768px) {
  .gallery--preview {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  .gallery--preview .gallery-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 8 / 3;
  }
}

/* Lightbox (full-size photo viewer) */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(30, 20, 12, 0.94);
  color: var(--cream-light);
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 6rem);
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(250, 245, 234, 0.12);
  color: var(--cream-light);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  background: rgba(250, 245, 234, 0.28);
}

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.lightbox-count {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 599px) {
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 0.5rem;
    transform: none;
  }
}

/* Restaurant teaser */
.teaser {
  background: var(--olive-dark);
  color: var(--cream);
  text-align: center;
  padding-block: var(--space-section);
}

.teaser .eyebrow {
  color: #d9ddb5;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
}

.teaser-inner p {
  max-width: 36rem;
  margin-inline: auto;
}

.teaser-social {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.teaser-social span {
  margin-inline: 0.6rem;
}

/* Final CTA */
.cta {
  text-align: center;
}

.cta p {
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.cta .cta-phone {
  margin-top: 1.5rem;
  color: var(--brown-soft);
}

/* === Kontakt page === */
.page-intro {
  padding-block: clamp(3rem, 7vw, 5rem) 1rem;
  text-align: center;
}

.page-intro p {
  max-width: 34rem;
  margin-inline: auto;
  color: var(--brown-soft);
}

.section--tight {
  padding-block: 2rem var(--space-section);
}

.section-sub {
  margin: 0;
  color: var(--brown-soft);
}

.contact-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-card {
  display: block;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(58, 38, 24, 0.12);
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.contact-card:hover {
  border-color: var(--brown);
  transform: translateY(-2px);
}

.contact-card svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 0.6rem;
  fill: none;
  stroke: var(--olive);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.contact-card p {
  margin: 0;
  font-weight: 400;
}

.contact-card-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--olive-dark);
  text-decoration: underline;
}

.map {
  aspect-ratio: 16 / 9;
  max-height: 420px;
  width: 100%;
  border: 1px solid rgba(58, 38, 24, 0.12);
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Booking form */
.booking-form {
  max-width: 680px;
  margin-inline: auto;
  padding: 2rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(58, 38, 24, 0.12);
  border-radius: 4px;
  text-align: center;
}

.form-row {
  margin: 0 0 1.25rem;
  text-align: left;
}

.form-grid {
  display: grid;
  gap: 0 1.25rem;
}

.form-row label,
.form-row legend {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 400;
  font-size: 0.95rem;
}

.booking-form input:not([type="radio"]):not([type="checkbox"]),
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-weight: 400;
  color: var(--brown);
  background: var(--cream-light);
  border: 1px solid rgba(58, 38, 24, 0.3);
  border-radius: 4px;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: 2px solid var(--brown);
  outline-offset: 1px;
}

.booking-form textarea {
  resize: vertical;
}

fieldset.form-row {
  border: 0;
  padding: 0;
}

.choice {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0;
  cursor: pointer;
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--brown);
}

.choice--consent {
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.5;
}

.choice--consent input {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--brown-soft);
  text-align: left;
}

button.btn-ellipse {
  font: inherit;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brown);
  cursor: pointer;
}

button.btn-ellipse:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  margin: 1.5rem 0 0;
  font-weight: 400;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  color: var(--olive-dark);
}

.form-status.is-error {
  color: #8a2a1a;
}

/* !important: .booking-form input rules would otherwise stretch the hidden
   spam-trap field to full width and push the page sideways */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (min-width: 600px) {
  .booking-form {
    padding: 2.5rem 2.5rem;
  }

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

/* === Text pages (Politika privatnosti, O nama) === */
.prose {
  max-width: 720px;
  margin-inline: auto;
}

.prose h2 {
  font-size: 1.7rem;
  margin-top: 2.2rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose .placeholder {
  padding: 2rem;
  border: 1px dashed rgba(58, 38, 24, 0.3);
  background: var(--cream);
  color: var(--brown-soft);
  text-align: center;
}

/* === Footer === */
.site-footer {
  background: var(--brown);
  color: var(--cream);
  padding-block: 3.5rem 1.5rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.footer-copy {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(242, 230, 207, 0.2);
  font-size: 0.85rem;
  opacity: 0.75;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
