/* =========================================================
   Vjenčane pozivnice — botanički sage stil
   Dijeljeni stilovi za cijeli web
   ========================================================= */

:root {
  /* Paleta — sage / eukaliptus */
  --sage-900: #2f3a30;
  --sage-800: #3c4a3d;
  --sage-700: #4f6151;
  --sage-600: #647a66;
  --sage-500: #7d917f;
  --sage-400: #9aab9c;
  --sage-300: #b9c6bb;
  --sage-200: #d6dfd6;
  --sage-100: #e9efe9;
  --cream:    #f6f4ee;
  --cream-2:  #efeadf;
  --ivory:    #fbfaf6;
  --gold:     #b89b5e;
  --gold-soft:#cbb27f;
  --gold-light:#e2cd9a;
  --ink:      #2b2f2a;
  --muted:    #6d756c;
  --white:    #ffffff;

  /* Tamna, elegantna zeleno-zlatna varijanta (hero / istaknute sekcije) */
  --forest-900: #131f16;
  --forest-800: #1d2e20;
  --forest-700: #294034;

  --shadow-sm: 0 2px 10px rgba(47, 58, 48, .06);
  --shadow-md: 0 10px 30px rgba(47, 58, 48, .10);
  --shadow-lg: 0 24px 60px rgba(47, 58, 48, .16);

  --radius: 14px;
  --radius-lg: 22px;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --script: "Playfair Display", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--sage-900);
  line-height: 1.15;
  margin: 0 0 .4em;
  letter-spacing: .3px;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: .72rem;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 14px;
}
.script {
  font-family: var(--script);
  font-style: italic;
  font-weight: 500;
  font-size: 2.4em;
  line-height: 1;
  color: var(--sage-600);
}

/* ---------- Botanical divider ---------- */
.leaf-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; color: var(--sage-400); margin: 18px 0;
}
.leaf-divider::before, .leaf-divider::after {
  content: ""; height: 1px; width: 70px;
  background: linear-gradient(90deg, transparent, var(--sage-300));
}
.leaf-divider::after { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  letter-spacing: 1.8px; text-transform: uppercase;
  padding: 15px 30px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s ease;
}
.btn-primary { background: var(--sage-700); color: var(--ivory); }
.btn-primary:hover { background: var(--sage-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--sage-800); border-color: var(--sage-400); }
.btn-outline:hover { background: var(--sage-700); color: var(--ivory); border-color: var(--sage-700); }
.btn-ghost { padding: 10px 0; color: var(--sage-700); letter-spacing: 1.4px; }
.btn-ghost:hover { color: var(--gold); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sage-100);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--serif); font-size: 1.5rem; color: var(--sage-900);
  display: flex; align-items: center; gap: 10px; letter-spacing: .5px;
}
.brand small { font-family: var(--sans); font-size: .6rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); display:block; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sage-800); transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display:block; width: 24px; height: 2px; background: var(--sage-800); margin: 5px 0; transition: .3s; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); }
.bg-cream { background: var(--cream); }
.bg-sage { background: var(--sage-100); }
.bg-forest {
  background:
    radial-gradient(900px 420px at 50% -10%, var(--forest-700) 0%, transparent 65%),
    linear-gradient(180deg, var(--forest-900), var(--forest-800));
}
.bg-forest .eyebrow { color: var(--gold-light); }
.bg-forest h2, .bg-forest h3 { color: var(--ivory); }
.bg-forest p:not(.note) { color: var(--sage-300); }
.bg-forest .note { color: var(--sage-400); }
.bg-forest .leaf-divider::before, .bg-forest .leaf-divider::after { background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.bg-forest .btn-outline { color: var(--ivory); border-color: var(--sage-500); }
.bg-forest .btn-outline:hover { background: var(--gold); color: var(--forest-900); border-color: var(--gold); }
.bg-forest .form-card { text-align: left; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  text-align: center; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--forest-700) 0%, transparent 60%),
    linear-gradient(180deg, var(--forest-900), var(--forest-800));
}
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--ivory); }
.hero .lead { font-size: 1.15rem; color: var(--sage-300); max-width: 560px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline { color: var(--ivory); border-color: var(--sage-500); }
.hero .btn-outline:hover { background: var(--gold); color: var(--forest-900); border-color: var(--gold); }
.hero .leaf-divider { color: var(--sage-500); }
.hero .leaf-divider::before, .hero .leaf-divider::after { background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.hero-botanical { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .6; }
.hero-botanical svg { position: absolute; }
.bot-tl { top: -40px; left: -40px; width: 320px; transform: rotate(8deg); }
.bot-br { bottom: -50px; right: -50px; width: 360px; transform: rotate(-170deg); }

/* ---------- Offer cards ---------- */
.offers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.offer-card {
  background: var(--white); border: 1px solid var(--sage-100); border-top: 3px solid var(--gold);
  border-radius: 3px; overflow: hidden; position: relative; text-decoration: none; color: inherit; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex; flex-direction: column;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-soft); }
.offer-media { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--ivory); }
.offer-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease; }
.offer-card:hover .offer-img { transform: scale(1.045); }
.offer-num {
  position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(251,250,246,.88); box-shadow: var(--shadow-sm);
  font-family: var(--serif); font-weight: 600; font-size: .95rem; color: var(--sage-800);
}
.offer-tag {
  position: absolute; left: 14px; bottom: 14px; font-family: var(--sans); font-size: .68rem;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--ivory);
  background: rgba(29,46,32,.82); padding: 6px 12px; border-radius: 2px;
}
.offer-badge {
  position: absolute; top: 14px; right: 14px; background: var(--gold);
  color: var(--forest-900); font-size: .68rem; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 2px; font-weight: 600; z-index: 2;
}
.offer-body { padding: 30px 30px 32px; display: flex; flex-direction: column; flex: 1; background: var(--sage-700); }
.offer-body h3 { margin-bottom: 8px; color: var(--ivory); }
.offer-body .desc { color: var(--sage-200); font-size: .98rem; flex: 1; }
.offer-features { list-style: none; padding: 0; margin: 16px 0 22px; }
.offer-features li { font-size: .92rem; color: var(--sage-100); padding: 5px 0 5px 26px; position: relative; }
.offer-features li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 12px;
  background: var(--gold-light);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c2 5 6 7 10 7-4 1-8 4-10 13C10 13 6 10 2 9c4 0 8-2 10-7z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c2 5 6 7 10 7-4 1-8 4-10 13C10 13 6 10 2 9c4 0 8-2 10-7z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.offer-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.price { font-family: var(--serif); font-size: 1.7rem; color: var(--ivory); }
.price small { font-size: .8rem; color: var(--sage-300); font-family: var(--sans); }
.price .from { font-size: .75rem; color: var(--gold-light); display: block; letter-spacing: 1px; text-transform: uppercase; }
.offer-body .btn-ghost { color: var(--gold-light); }
.offer-body .btn-ghost:hover { color: var(--ivory); }

/* ---------- Steps / how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; padding: 8px; }
.step .num {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--sage-700); color: var(--ivory); font-family: var(--serif); font-size: 1.4rem;
}
.step h4 { margin-bottom: 6px; }
.step p { font-size: .92rem; color: var(--muted); }

/* ---------- RSVP feature section ---------- */
.rsvp-feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.rsvp-feature ul { list-style: none; padding: 0; margin: 22px 0 28px; }
.rsvp-feature li { padding: 8px 0 8px 32px; position: relative; color: var(--sage-800); }
.rsvp-feature li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--gold); font-weight: 700;
}
.rsvp-visual {
  background: var(--white); border: 1px solid var(--sage-100); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-md);
}
.guest-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px dashed var(--sage-200); }
.guest-row:last-child { border-bottom: 0; }
.guest-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sage-200); color: var(--sage-800);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1rem; }
.guest-name { flex: 1; font-size: .95rem; }
.pill { font-size: .72rem; padding: 4px 11px; border-radius: 100px; letter-spacing: .5px; }
.pill-yes { background: var(--sage-200); color: var(--sage-800); }
.pill-no  { background: #efe3e3; color: #9a5a5a; }
.pill-wait{ background: var(--cream-2); color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-900); color: var(--sage-200); padding: 64px 0 32px; }
.site-footer a { color: var(--sage-200); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: var(--ivory); }
.footer-col h5 { font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: .92rem; }
.footer-bottom { border-top: 1px solid var(--sage-700); padding-top: 24px; text-align: center;
  font-size: .82rem; color: var(--sage-400); }
.footer-credit { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 16px; }
.footer-credit span { font-size: .72rem; letter-spacing: .04em; color: var(--sage-400); }
.footer-credit a { display: inline-flex; align-items: center; opacity: .85; transition: opacity .3s ease; }
.footer-credit a:hover { opacity: 1; }
.footer-credit img { height: 17px; width: auto; display: block; }

/* ---------- Page hero (subpages) — tamna zeleno-zlatna varijanta ---------- */
.page-hero {
  padding: 70px 0 56px; text-align: center;
  background:
    radial-gradient(900px 420px at 50% -20%, var(--forest-700) 0%, transparent 65%),
    linear-gradient(180deg, var(--forest-900), var(--forest-800));
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1, .page-hero h2 { color: var(--ivory); }
.page-hero p { color: var(--sage-300); }
.breadcrumb { font-size: .8rem; letter-spacing: 1px; color: var(--sage-400); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Examples gallery ---------- */
.examples-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.example-card {
  background: var(--white); border: 1px solid var(--sage-100); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; cursor: pointer;
}
.example-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.example-thumb { aspect-ratio: 3/4; overflow: hidden; background: #fbfaf6; position: relative; }
.example-thumb svg { width: 100%; height: 100%; }
.example-thumb-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.example-meta {
    padding: 18px 20px;
    background: var(--sage-700);
}
.example-meta h4 { margin: 0 0 3px; font-size: 1.2rem; color: var(--ivory); }
.example-meta span { font-size: .85rem; color: var(--sage-300); }
.example-meta .open-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-light); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--sage-100); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-md); max-width: 560px; margin: 0 auto;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .82rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--sage-700); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--sage-200); border-radius: 10px;
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--ivory);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--sage-500); box-shadow: 0 0 0 3px var(--sage-100);
}
.radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-chip { flex: 1; min-width: 120px; }
.radio-chip input { position: absolute; opacity: 0; }
.radio-chip label {
  display: block; text-align: center; text-transform: none; letter-spacing: 0; font-size: .95rem;
  padding: 13px; border: 1px solid var(--sage-200); border-radius: 10px; cursor: pointer; color: var(--sage-800);
  transition: all .2s;
}
.radio-chip input:checked + label { background: var(--sage-700); color: var(--ivory); border-color: var(--sage-700); }

.note { font-size: .86rem; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: 10px; font-size: .92rem; margin-bottom: 20px; }
.alert-info { background: var(--sage-100); color: var(--sage-800); }
.alert-ok { background: #e6efe6; color: var(--sage-800); }
.alert-err { background: #f3e3e3; color: #9a5a5a; }
.hidden { display: none !important; }

/* ---------- Table (popis) ---------- */
.table-wrap { background: var(--white); border: 1px solid var(--sage-100); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); }
table.guests { width: 100%; border-collapse: collapse; }
table.guests th, table.guests td { text-align: left; padding: 15px 20px; font-size: .94rem; }
table.guests thead th { background: var(--sage-100); color: var(--sage-800); font-family: var(--sans);
  font-size: .76rem; letter-spacing: 1.5px; text-transform: uppercase; }
table.guests tbody tr { border-top: 1px solid var(--sage-100); }
table.guests tbody tr:hover { background: var(--cream); }
.stat-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.stat { background: var(--white); border: 1px solid var(--sage-100); border-radius: var(--radius);
  padding: 20px 26px; box-shadow: var(--shadow-sm); flex: 1; min-width: 150px; text-align: center; }
.stat .big { font-family: var(--serif); font-size: 2.4rem; color: var(--sage-900); line-height: 1; }
.stat .lbl { font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 64px 0 auto 0; background: var(--ivory); flex-direction: column;
    gap: 0; padding: 12px 0; border-bottom: 1px solid var(--sage-100); box-shadow: var(--shadow-md);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility 0s .3s; }
  .nav-links.open { transform: translateY(0); visibility: visible; transition: transform .3s; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px; }
  .nav-toggle { display: block; }
  .offers-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .rsvp-feature { grid-template-columns: 1fr; }
  .examples-grid { grid-template-columns: 1fr; }
  .nav { height: 64px; }
  .brand { font-size: 1.05rem; gap: 0; white-space: nowrap; }
  .brand small { display: none; }
}

@media (max-width: 640px) {
  .hero-desc-long { display: none; }
  .hero-desc-short { display: block; }
}
