/* ============================================================
   Montado de Oro — one-pager
   Dark + gold theme, responsive
   ============================================================ */

:root {
  --gold: #c99a3d;
  --gold-light: #e8c26a;
  --gold-dark: #a67c2c;
  --dark: #16130e;
  --dark-2: #211c14;
  --paper: #f7f4ec;
  --paper-2: #efe9dc;
  --ink: #23201a;
  --muted: #6f6759;
  --line: #ddd4c2;
  --shadow: 0 18px 45px rgba(20, 16, 10, 0.18);
  --radius: 10px;
  --header-h: 76px;
  --font-head: "Archivo", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 880px; }

.section { padding: 96px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--dark); color: #e9e4d8; }

/* ---------------- Headings ---------------- */

.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
  background: rgba(201, 154, 61, 0.08);
}
.section-tag.tag-light {
  color: var(--gold-light);
  background: rgba(201, 154, 61, 0.12);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.section-title.title-light { color: #fff; }

.section-sub { color: var(--muted); max-width: 640px; }

.lead { font-size: 1.15rem; margin-bottom: 18px; }
.lead strong { color: var(--gold-dark); }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 28px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #221a0c;
  box-shadow: 0 10px 28px rgba(201, 154, 61, 0.35);
}
.btn-gold:hover { box-shadow: 0 14px 34px rgba(201, 154, 61, 0.45); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.btn-outline:hover { border-color: var(--gold-light); background: rgba(255, 255, 255, 0.06); }

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  background: rgba(247, 244, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20, 16, 10, 0.12); }

.logo img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }

.main-nav a.nav-cta {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #221a0c;
  padding: 9px 20px;
  border-radius: 999px;
}
.main-nav a.nav-cta::after { display: none; }

.header-phone {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}
.header-phone .phone-label { color: var(--muted); font-size: 0.82rem; }
.header-phone strong { color: var(--gold-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(18, 15, 10, 0.86) 0%,
    rgba(18, 15, 10, 0.62) 55%,
    rgba(18, 15, 10, 0.35) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: calc(var(--header-h) + 40px) 24px 80px;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(232, 194, 106, 0.5);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1::after {
  content: "";
  display: block;
  width: 90px;
  height: 5px;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
}
.hero-text {
  color: #d8d2c4;
  font-size: 1.18rem;
  margin-bottom: 34px;
}
.hero-scroll {
  position: absolute;
  left: 24px;
  bottom: 30px;
  width: 2px;
  height: 64px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.hero-scroll span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 24px;
  background: var(--gold-light);
  animation: scroll-line 2.2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { top: -24px; }
  60% { top: 64px; }
  100% { top: 64px; }
}

/* ---------------- Intro ---------------- */

.intro-figure { margin-top: 56px; }
.intro-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.intro-img img {
  width: 100%;
  height: min(62vh, 560px);
  object-fit: cover;
}

/* ---------------- Obloge ---------------- */

.obloge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.obloga-card {
  background: var(--dark-2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.obloga-card:hover { transform: translateY(-6px); border-color: rgba(201, 154, 61, 0.5); }
.obloga-img { height: 200px; overflow: hidden; }
.obloga-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.obloga-card:hover .obloga-img img { transform: scale(1.05); }
.obloga-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  padding: 18px 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.obloga-card p {
  padding: 10px 20px 22px;
  font-size: 0.95rem;
  color: #bdb5a4;
}

/* ---------------- Gallery ---------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.gallery-item {
  display: block;
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-2);
  cursor: zoom-in;
  border: none;
  padding: 0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 10, 0);
  transition: background 0.25s ease;
}
.gallery-item:hover::after { background: rgba(20, 16, 10, 0.22); }

/* ---------------- Rešenja ---------------- */

.resenja-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.resenje-card {
  background: var(--dark-2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.resenje-img { height: 240px; overflow: hidden; }
.resenje-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.resenje-card:hover .resenje-img img { transform: scale(1.05); }
.resenje-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  padding: 22px 22px 0;
}
.resenje-card p {
  padding: 12px 22px 24px;
  font-size: 0.96rem;
  color: #bdb5a4;
}

/* ---------------- Usluge ---------------- */

.usluge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.usluga-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  box-shadow: 0 6px 20px rgba(20, 16, 10, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.usluga-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.usluga-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.usluga-card h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.usluga-card p { color: var(--muted); }
.usluga-list { list-style: none; }
.usluga-list li {
  color: var(--muted);
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}
.usluga-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 2px;
  background: var(--gold);
}

/* ---------------- Zašto ---------------- */

.zasto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.zasto-card {
  background: var(--dark-2);
  border-radius: var(--radius);
  padding: 28px 26px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 3px solid transparent;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.zasto-card:hover { border-top-color: var(--gold); transform: translateY(-4px); }
.zasto-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.zasto-card p { font-size: 0.97rem; color: #bdb5a4; }

/* ---------------- Kontakt ---------------- */

.contact-section { padding: 0; }
.contact-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 15, 10, 0.82);
}
.contact-content {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 24px;
}
.contact-text {
  color: #d8d2c4;
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 32px;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.contact-icon { font-size: 1.2rem; line-height: 1; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: #100d09;
  color: #a9a192;
  padding: 64px 0 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
}
.footer-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.footer-nav a,
.footer-contact a {
  color: #a9a192;
  text-decoration: none;
  font-size: 0.93rem;
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--gold-light); }
.footer-contact { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 26px;
  margin-top: 10px;
  font-size: 0.88rem;
  color: #7d766a;
  text-align: center;
}

/* ---------------- Lightbox ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 10, 7, 0.92);
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox figure {
  max-width: 88vw;
  max-height: 86vh;
  text-align: center;
}
.lightbox img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.lightbox figcaption {
  margin-top: 14px;
  color: #d8d2c4;
  font-size: 0.95rem;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 16px;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 1;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; transform: scale(1.1); }
.lightbox-close { top: 20px; right: 24px; font-size: 1.6rem; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.1); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.1); }

/* ---------------- Reveal animations ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* ---------------- Responsive ---------------- */

@media (max-width: 1000px) {
  .obloge-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .resenja-grid,
  .usluge-grid,
  .zasto-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: rgba(247, 244, 236, 0.98);
    width: 78vw;
    max-width: 320px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.05rem; }
  .nav-toggle { display: flex; }

  .header-phone .phone-label { display: none; }
  .header-phone { font-size: 0.85rem; }

  .hero-content { padding: calc(var(--header-h) + 30px) 24px 90px; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .footer-nav { justify-content: center; }
  .footer-contact { text-align: center; }

  .contact-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .obloge-grid,
  .resenja-grid,
  .usluge-grid,
  .zasto-grid { grid-template-columns: 1fr; }
}
