/* lokalni fontovi (Cormorant Garamond 500, Inter 400/500) */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext-500.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-400.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-500.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #fbf9f5;
  --color-primary: #25282b;
  --color-gold: #b88a32;
  --color-gold-light: #e6c77a;
  --color-gold-text: #8a6417;
  --color-text-muted: #66615a;
  --color-border: #e5e0d7;
  --color-white: #fff;
  --r: 10px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
}

/* --- Sticky Footer rešenje --- */
html,
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body {
  background: var(--color-bg);
  color: var(--color-primary);
  font: 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  width: min(1120px, 92%);
  margin: auto;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
p + p {
  margin-top: 1rem;
}
.muted {
  color: var(--color-text-muted);
}
.rule {
  width: 64px;
  height: 2px;
  background: var(--color-gold);
  border: 0;
  margin: 1.4rem 0;
  border-radius: 2px;
}
section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 249, 245, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}
.brand img {
  height: 64px;
  width: auto;
}
.nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
}
.nav a {
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.nav a:hover {
  color: var(--color-gold-text);
  border-color: var(--color-gold-light);
}
.nav a[aria-current="page"] {
  color: var(--color-gold-text);
  border-color: var(--color-gold);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 8px;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: var(--color-bg);
  text-decoration: none;
  font-weight: 500;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.btn:hover {
  background: var(--color-gold-text);
  border-color: var(--color-gold-text);
}
.btn.ghost {
  background: transparent;
  color: var(--color-primary);
}
.btn.ghost:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg);
}
.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero {
  padding-top: clamp(3rem, 7vw, 5.5rem);
}
.hero .wrap,
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero p.lead {
  font-size: 1.2rem;
  max-width: 34em;
  color: var(--color-text-muted);
}
.frame {
  position: relative;
  border-radius: var(--r);
  background: var(--color-border);
  aspect-ratio: 4/5;
  isolation: isolate;
}
.frame::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--color-gold-light);
  border-radius: var(--r);
  z-index: -1;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r);
}
.alt {
  background: var(--color-white);
  border-block: 1px solid var(--color-border);
}
.split.rev {
  grid-template-columns: 0.9fr 1.1fr;
}
.split.rev .frame {
  order: -1;
}
.traits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.traits div {
  border-top: 2px solid var(--color-gold);
  padding-top: 1.2rem;
}
.traits p {
  color: var(--color-text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
}
.card {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.card .thumb {
  aspect-ratio: 4/5;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--r);
  overflow: hidden;
  width: 100%;
  flex-shrink: 0;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.card:hover img {
  transform: scale(1.03);
}
.card strong {
  display: block;
  font: 500 1.35rem var(--serif);
  margin-top: 0.9rem;
}
.card span {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}
.head {
  max-width: 42rem;
}
.page-head {
  padding-bottom: 0;
}

/* --- Opcija B: Redizajn kontakt kartica --- */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.contact a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
  min-width: 0;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: var(--r);
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.contact a:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 40, 43, 0.06);
}
.contact h3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  transition: color 0.25s;
}
.contact h3 .ico {
  margin-right: 0;
  width: 1.5em;
  height: 1.5em;
}
.contact span {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  text-align: center;
  white-space: nowrap;
}

.cta {
  background: var(--color-primary);
  color: var(--color-bg);
  text-align: center;
}
.cta .rule {
  margin-inline: auto;
}
.cta .btn {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-primary);
}
.cta .btn:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
}

.site-footer {
  background: var(--color-primary);
  color: var(--color-border);
  padding: 2.2rem 0;
  border-top: 1px solid #3a3d41;
  font-size: 0.95rem;
  margin-top: auto;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--color-gold-light);
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 4%;
    left: auto;
    min-width: 12rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--r);
    box-shadow: 0 10px 30px rgba(37, 40, 43, 0.12);
    display: none;
    padding: 1rem 1.4rem;
  }
  .nav.open {
    display: block;
  }
  .nav ul {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
  }
  .hero .wrap,
  .split,
  .split.rev {
    grid-template-columns: 1fr;
  }
  .split.rev .frame {
    order: 0;
  }
  .frame {
    max-width: 420px;
  }
  .traits {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* justify tekst u pasusima */
main p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.cta p,
dialog p {
  text-align: center;
}
.card span {
  text-align: left;
}

/* zlatni "glow" efekat na slikama pri hoveru */
.frame,
.card .thumb {
  transition:
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}
.frame::before {
  transition:
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}
.frame:hover,
.card:hover .thumb,
.card:focus-visible .thumb {
  border-color: var(--color-gold-light);
  box-shadow:
    0 0 0 1px var(--color-gold-light),
    0 0 18px rgba(230, 199, 122, 0.55),
    0 0 46px rgba(230, 199, 122, 0.3);
}
.frame:hover::before {
  border-color: var(--color-gold);
  box-shadow: 0 0 14px rgba(230, 199, 122, 0.45);
}

/* ikonice u tekstu (bez okvira, nasleđuju boju teksta) */
.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-right: 0.55em;
  vertical-align: -0.2em;
  transition: color 0.25s;
}
.site-footer .social {
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
}
.site-footer .social a {
  display: inline-flex;
  align-items: center;
  transition: color 0.25s;
}
.site-footer .social a:hover {
  color: var(--color-gold-light);
}

/* lightbox: centriran, X za zatvaranje, strelice */
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  margin: auto;
  max-width: 94vw;
  max-height: 94vh;
  overflow: visible;
}
dialog[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
}
dialog::backdrop {
  background: rgba(37, 40, 43, 0.92);
}
dialog img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: var(--r);
  box-shadow:
    0 0 0 1px var(--color-gold-light),
    0 0 40px rgba(230, 199, 122, 0.25);
}
dialog p {
  color: var(--color-bg);
  text-align: center;
  margin-top: 1rem;
  max-width: 90vw;
}
.lb-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(251, 249, 245, 0.92);
  color: var(--color-primary);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.lb-btn:hover,
.lb-btn:focus-visible {
  background: var(--color-gold-light);
  color: var(--color-primary);
}
.lb-btn .ico {
  margin: 0;
  width: 24px;
  height: 24px;
}
.lb-close {
  top: 1rem;
  right: 1rem;
}
.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
}
.lb-prev {
  left: 1rem;
}
.lb-next {
  right: 1rem;
}
@media (max-width: 600px) {
  .lb-btn {
    width: 42px;
    height: 42px;
  }
  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
  .lb-prev {
    left: calc(50% - 54px);
  }
  .lb-next {
    right: calc(50% - 54px);
  }
  dialog img {
    max-height: 72vh;
  }
}
