/* ==========================================================================
   Prevodi Krnčević — design system
   Warm boutique + trust: ivory base, navy ink, stamp-gold accent.
   ========================================================================== */

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --ink: #1C2B3A;
  --ink-soft: #46586B;
  --ink-faint: #6B7A8A;
  --gold: #C99B2F;
  --gold-deep: #A87F1F;
  --gold-soft: #F4E8CC;
  --red: #AE2F38;
  --green: #2E7D5B;
  --line: rgba(28, 43, 58, 0.12);
  --shadow-sm: 0 2px 10px rgba(28, 43, 58, 0.06);
  --shadow-md: 0 10px 34px rgba(28, 43, 58, 0.10);
  --shadow-lg: 0 24px 60px rgba(28, 43, 58, 0.14);
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1120px;
  --font-body: "Manrope", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --header-h: 76px;
}

/* --------------------------------------------------------------- base */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.6em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
h3, h4 { font-weight: 800; }

p { margin: 0 0 1em; }

a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--gold-soft); }

/* --------------------------------------------------------------- layout */

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding-block: clamp(64px, 9vw, 104px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(201, 155, 47, 0.38);
}
.btn-primary:hover { background: var(--gold-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn svg { width: 18px; height: 18px; flex: none; }

/* --------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 45px; flex: none; }
.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface);
}
.lang-switch a {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.lang-switch a:hover { text-decoration: none; color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }

.header-cta { white-space: nowrap; padding: 0.6rem 1.2rem; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }

/* --------------------------------------------------------------- hero */

.hero {
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 76px));
  padding-bottom: clamp(56px, 8vw, 96px);
  background:
    radial-gradient(52rem 30rem at 118% -12%, rgba(201, 155, 47, 0.13), transparent 60%),
    radial-gradient(40rem 26rem at -18% 108%, rgba(174, 47, 56, 0.06), transparent 55%),
    var(--bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.7vw, 3.45rem);
  margin-bottom: 0.5em;
}
.hero h1 em { font-style: normal; color: var(--gold-deep); }

.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; }

.hero-checks {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 2rem;
  display: grid;
  gap: 0.65rem;
}
.hero-checks li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 600;
  color: var(--ink);
}
.hero-checks svg { width: 21px; height: 21px; flex: none; margin-top: 2px; color: var(--green); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

.hero-note { margin-top: 1.1rem; font-size: 0.9rem; color: var(--ink-faint); }

/* Owner photo card */

.hero-figure { position: relative; justify-self: center; width: min(420px, 100%); }

.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gold-soft);
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(28, 43, 58, 0.08);
  pointer-events: none;
}
.photo-frame img { width: 100%; height: auto; aspect-ratio: 35 / 43; object-fit: cover; }

.hero-figure::before {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  width: 78%;
  height: 78%;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  opacity: 0.55;
  z-index: -1;
  transform: rotate(2.5deg);
}

.badge-float {
  position: absolute;
  left: -18px;
  bottom: 26px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 0.7rem 1rem;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  max-width: 86%;
}
.badge-float .badge-ico {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--gold-soft);
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  flex: none;
}
.badge-float .badge-ico svg { width: 20px; height: 20px; }
.badge-float strong { display: block; font-size: 0.92rem; line-height: 1.25; }
.badge-float span { font-size: 0.8rem; color: var(--ink-faint); line-height: 1.3; display: block; }

/* --------------------------------------------------------------- trust strip */

.trust { padding-block: 1.9rem; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trust-item { display: flex; align-items: center; gap: 0.8rem; }
.trust-item svg { width: 30px; height: 30px; color: var(--gold-deep); flex: none; }
.trust-item strong { display: block; font-size: 1.02rem; line-height: 1.2; }
.trust-item span { font-size: 0.85rem; color: var(--ink-faint); }

/* --------------------------------------------------------------- about */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.about-quote {
  border-left: 3px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.about-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.about-facts li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
}
.about-facts svg { width: 20px; height: 20px; color: var(--gold-deep); flex: none; margin-top: 2px; }
.about-body p { color: var(--ink-soft); }
.about-body p strong { color: var(--ink); }

/* --------------------------------------------------------------- services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.service-card .ico {
  width: 52px; height: 52px;
  border-radius: 15px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}
.service-card .ico svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.13rem; margin-bottom: 0.2rem; }
.service-card p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

.service-card.featured { border: 2px solid var(--gold); box-shadow: var(--shadow-md); }
.service-card.featured .ribbon {
  position: absolute;
  top: -13px;
  left: 1.4rem;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* steps */

.steps {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.4rem 1.5rem 1.4rem 4.4rem;
  background: var(--surface);
  border: 1px dashed rgba(201, 155, 47, 0.55);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.3rem;
  top: 1.35rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}
.step h3 { font-size: 1.02rem; margin-bottom: 0.15rem; }
.step p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* --------------------------------------------------------------- gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0;
  cursor: zoom-in;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item:focus-visible { outline-offset: 4px; }

/* lightbox */

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1000px);
  overflow: visible; /* dialog defaults to auto → scrollbar from the ✕ overhang */
}
.lightbox::backdrop { background: rgba(16, 24, 32, 0.82); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; position: relative; }
.lightbox img {
  display: block;
  width: auto;
  max-width: min(88vw, 900px);
  max-height: 78vh;
  min-width: min(50vw, 320px);
  min-height: 200px;
  object-fit: contain;
  border-radius: 14px;
  background: #101820;
}
.lightbox figcaption {
  color: #E8E2D6;
  text-align: center;
  font-size: 0.95rem;
  padding-top: 0.7rem;
}
.lightbox-close {
  position: absolute;
  top: -14px; right: -14px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 1rem; }
.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.contact-list .ico {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  flex: none;
}
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.contact-list li > div { min-width: 0; }
.contact-list a, .contact-list span.val { font-size: 1.05rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold-deep); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
}
.contact-form h3 { font-size: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.86rem; font-weight: 800; margin-bottom: 0.35rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: var(--gold);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-small { font-size: 0.82rem; color: var(--ink-faint); margin: 0.9rem 0 0; }
.form-status { font-weight: 700; margin: 0.8rem 0 0; display: none; }
.form-status.ok { display: block; color: var(--green); }
.form-status.sending { display: block; color: var(--ink-soft); }
.form-status.err { display: block; color: var(--red); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* --------------------------------------------------------------- footer */

.site-footer {
  background: #16222E;
  color: #C7D0D9;
  padding: clamp(52px, 7vw, 76px) 0 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1.2fr;
  gap: 2.2rem;
  padding-bottom: 2.6rem;
}
.footer-brand { display: flex; gap: 0.8rem; align-items: flex-start; }
.footer-brand img { width: 44px; height: 52px; }
.footer-brand strong { color: #fff; font-size: 1.05rem; display: block; margin-bottom: 0.3rem; }
.footer-brand p { margin: 0; font-size: 0.9rem; color: #93A2B1; }

.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: #C7D0D9; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }

.footer-company li { display: flex; gap: 0.5rem; }
.footer-company .k { color: #7E8E9D; min-width: 4.6rem; flex: none; }
.footer-company .v { color: #E4E9EE; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 1.2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #7E8E9D;
}

/* --------------------------------------------------------------- legal pages */

.legal-main {
  padding-top: calc(var(--header-h) + clamp(36px, 6vw, 64px));
  padding-bottom: clamp(56px, 8vw, 96px);
}
.legal-article { max-width: 780px; }
.legal-article h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.legal-article .updated { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 2rem; }
.legal-article h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal-article p, .legal-article li { color: var(--ink-soft); }
.legal-article .notice {
  background: var(--gold-soft);
  border: 1px solid rgba(201, 155, 47, 0.5);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--ink);
}

/* --------------------------------------------------------------- reveal */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Hero photo: zoom-in entrance instead of the generic fade/slide */
.zoom-in {
  opacity: 0;
  transform: scale(0.86);
  will-change: opacity, transform;
  transition: opacity 0.55s ease-out, transform 0.95s cubic-bezier(0.22, 0.9, 0.33, 1);
}
.zoom-in.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .zoom-in { opacity: 1; transform: none; transition: none; }
  .service-card, .btn, .gallery-item img { transition: none; }
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; width: min(340px, 82%); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.25rem 1rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 0.8rem 0.2rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav > a:last-of-type { border-bottom: 0; }
  .site-nav .lang-switch { margin-top: 0.8rem; align-self: flex-start; }
  .header-cta { display: none; }
  body.nav-locked { overflow: hidden; }
  .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .badge-float { left: 10px; bottom: 14px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
}
