/* ==========================================================================
   OPG Tucman — profesionalni, elegantan dizajn
   ========================================================================== */

:root {
  --green-900: #16301f;
  --green-800: #1f3d2b;
  --green-700: #2c5138;
  --green-600: #3a6a49;
  --green-500: #4d8460;
  --green-50:  #eef3ee;
  --sand:      #f6f3ec;
  --sand-2:    #efe9dd;
  --ink:       #23281f;
  --muted:     #5f6659;
  --line:      #e2ddd0;
  --gold:      #b08a3e;
  --gold-dark: #8f6f2c;
  --white:     #ffffff;

  --shadow-sm: 0 1px 2px rgba(22, 48, 31, .08);
  --shadow-md: 0 12px 30px rgba(22, 48, 31, .10);
  --shadow-lg: 0 24px 60px rgba(22, 48, 31, .16);

  --radius: 10px;
  --radius-lg: 14px;

  --container: 1160px;
  --header-h: 76px;

  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Fiksna pozadinska fotografija koja ostaje iza svih sekcija */
.page-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(16,32,20,.45), rgba(16,32,20,.55)),
    url("images/hero.jpg") center center / cover no-repeat;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .4em; font-weight: 600; letter-spacing: .005em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--green-800); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Gumbi ---------- */
.btn {
  --btn-bg: var(--green-700);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .72rem 1.4rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: .96rem; letter-spacing: .01em; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn .ic { width: 20px; height: 20px; }

.btn-lg { padding: .95rem 1.8rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary { --btn-bg: var(--green-700); }
.btn-primary:hover { background: var(--green-800); }

.btn-secondary { --btn-bg: var(--gold); }
.btn-secondary:hover { background: var(--gold-dark); }

.btn-outline {
  --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.55);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }

.btn-outline-dark {
  --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.4);
}
.btn-outline-dark:hover { background: rgba(255,255,255,.1); }

.btn-call {
  --btn-bg: transparent; --btn-fg: var(--green-800);
  border-color: var(--green-600); padding: .5rem 1.1rem; font-size: .92rem;
}
.btn-call:hover { background: var(--green-700); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 243, 236, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 50px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; }
.nav-list {
  list-style: none; display: flex; align-items: center; gap: .1rem;
  margin: 0; padding: 0;
}
.nav-list > li > a {
  display: inline-block; padding: .5rem .8rem; border-radius: 8px;
  font-weight: 500; font-size: .95rem; color: var(--ink);
  transition: color .2s; position: relative;
}
.nav-list > li > a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem;
  height: 1.5px; background: var(--green-600); transform: scaleX(0);
  transform-origin: left; transition: transform .25s ease;
}
.nav-list > li > a:hover { color: var(--green-800); }
.nav-list > li > a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: .4rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; padding: 10px; border-radius: 8px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--green-800); border-radius: 2px;
  transition: transform .3s, opacity .2s;
}
.nav-toggle span + span { margin-top: 5px; }
.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; color: #fff; overflow: hidden;
  display: flex; align-items: center;
  min-height: min(90vh, 780px);
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: transparent;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .2em; font-size: .78rem;
  font-weight: 600; color: var(--green-700); margin: 0 0 1rem;
}
.eyebrow.light { color: #cde0d1; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 600; line-height: 1.08;
  margin: 0 0 1rem; text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #eaf0e9; max-width: 52ch; margin: 0 0 2rem; }
.hero em { font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero-meta {
  list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  margin: 0; padding: 1.4rem 0 0; border-top: 1px solid rgba(255,255,255,.2);
  color: #dfe8df; font-size: .95rem; font-weight: 500;
}
.hero-meta li { position: relative; padding-left: 1.3rem; }
.hero-meta li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}

/* ---------- Sekcije ---------- */
.section {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: rgba(246, 243, 236, .82);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.section-alt { background: rgba(239, 233, 221, .8); }
.section-head { max-width: 760px; margin: 0 auto clamp(2rem, 5vw, 3.2rem); text-align: center; }
.section-head .eyebrow { color: var(--gold-dark); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); color: var(--green-900); font-weight: 600; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); }
.grid-2.align-center { align-items: center; }
.prose p { color: var(--ink); margin: 0 0 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

.framed {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.framed img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Popis značajki */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.fl-icon {
  flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center;
  color: var(--green-700); background: var(--green-50);
  border: 1px solid var(--line); border-radius: 10px;
}
.fl-icon .ic { width: 24px; height: 24px; }
.feature-list h3 { font-size: 1.3rem; margin: 0 0 .1rem; color: var(--green-800); }
.feature-list p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.5; }

/* ---------- Ponuda / cijene ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: stretch; }
.price-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2.2rem 2rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--green-500); box-shadow: var(--shadow-md); }
.price-label {
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 600;
  color: var(--green-700); margin: 0 0 .6rem;
}
.price-label.alt { color: var(--gold-dark); }
.price-card h3 { margin: 0 0 .4rem; font-size: 1.7rem; color: var(--green-900); }
.price { font-family: var(--font-display); font-size: 1.1rem; color: var(--muted); margin: 0 0 1.3rem; }
.price span { font-size: 2.6rem; font-weight: 700; color: var(--green-800); }
.price-list { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: .7rem; }
.price-list li { position: relative; padding-left: 1.7rem; color: var(--ink); font-size: .98rem; }
.price-list li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-500);
}
.price-card .btn { margin-top: auto; }

.note {
  margin: 2rem auto 0; max-width: 780px; text-align: center;
  background: var(--green-50); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.4rem; color: var(--green-800); font-size: .95rem;
}

/* ---------- Supstrat proces ---------- */
.supstrat-intro { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.supstrat-intro .framed img { aspect-ratio: 4 / 3; }
.process {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  counter-reset: step;
}
.process li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  color: var(--gold); display: block; margin-bottom: .4rem;
}
.process h3 { font-size: 1.3rem; color: var(--green-800); margin: 0 0 .3rem; }
.process p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.55; }

/* ---------- Galerija ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item {
  padding: 0; border: 0; cursor: pointer; background: none;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  aspect-ratio: 1; position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(22,48,31,0); transition: background .3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { background: rgba(22,48,31,.12); }
.gallery-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- O nama ---------- */
.about-grid { grid-template-columns: .8fr 1.2fr; align-items: start; }
.portrait { max-width: 420px; }
.portrait img { aspect-ratio: 4 / 5; }
.framed figcaption {
  background: var(--white); padding: .9rem 1.1rem; text-align: center;
  font-family: var(--font-display); font-size: 1.15rem; color: var(--green-800);
  border-top: 1px solid var(--line);
}

/* ---------- Kontakt ---------- */
.section-dark {
  background: linear-gradient(165deg, rgba(31,61,43,.88), rgba(22,48,31,.92));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #e7efe8;
}
.section-dark .section-head h2 { color: #fff; }
.section-dark .eyebrow { color: #b7ccb9; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: stretch; }
.contact-list { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon {
  flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
}
.ci-icon .ic { width: 22px; height: 22px; }
.contact-list h3 { margin: 0 0 .15rem; font-size: 1.25rem; color: #fff; }
.contact-list p { margin: 0; color: #c8d8ca; }
.contact-list a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); }
.contact-list a:hover { border-color: #fff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.contact-map {
  border-radius: var(--radius-lg); overflow: hidden; min-height: 360px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.15);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 360px; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #b9cbbc; padding: 3rem 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 1.8rem; align-items: center; }
.footer-brand img { height: 56px; width: auto; margin-bottom: .8rem; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { margin: 0; font-size: .92rem; line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer-nav a { font-weight: 500; font-size: .95rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { margin: 0; font-size: .85rem; text-align: right; color: #8ba48f; }

/* ---------- Plutajući gumb za poziv ---------- */
.fab-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green-700); color: #fff; display: none;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.15);
  transition: background .2s;
}
.fab-call .ic { width: 24px; height: 24px; }
.fab-call:hover { background: var(--green-800); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(16, 32, 20, .92);
  display: none; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: min(92vw, 1000px); max-height: 88vh; width: auto; height: auto;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1.4rem;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1;
  cursor: pointer; transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.24); }

/* ==========================================================================
   RESPONZIVNOST
   ========================================================================== */
@media (max-width: 960px) {
  .grid-2, .about-grid { grid-template-columns: 1fr; }
  .about-grid .portrait { order: -1; margin-inline: auto; }
  .price-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-nav { justify-content: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-list {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sand); padding: .5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-lg); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s ease;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open .nav-list { transform: translateY(0); }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a { display: block; padding: .95rem .3rem; }
  .nav-list > li > a::after { display: none; }
  .nav-cta { border-bottom: 0 !important; padding-top: .8rem; margin-left: 0; }
  .nav-cta a { text-align: center; }

  .fab-call { display: flex; }
  .process { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 400px) {
  .container { width: min(100% - 1.6rem, var(--container)); }
}

/* ---------- Pristupačnost: smanjeno gibanje ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
