/* ==========================================================================
   Cvita 1 & baka Ksenija 60 — stilovi
   Mobilni prikaz je osnovni; desktop se uključuje od 960 px naviše.
   ========================================================================== */

/* ---------- Fontovi (lokalno, latin + latin-ext za č ć đ š ž) ---------- */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-latin-400-normal.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: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-latin-ext-400-normal.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: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-latin-400-italic.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: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-latin-ext-400-italic.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: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(../fonts/nunito-latin-wght-normal.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: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(../fonts/nunito-latin-ext-wght-normal.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;
}

/* ---------- Boje i osnovne vrijednosti ---------- */
:root {
  --cream: #FBF6F0;        /* pozadina stranice */
  --paper: #FFFDFA;        /* kartice */
  --blush: #F7E1DE;        /* Cvita – nježno roza */
  --blush-2: #FBEDEB;
  --rose: #A94B64;         /* roza za tekst */
  --rose-soft: #C4687F;    /* velika brojka 1, vez */
  --berry: #7C2F47;        /* naslovi, glavni gumb */
  --berry-dark: #5E2034;
  --sage-tint: #E8ECDF;    /* Ksenija / selo – kadulja */
  --sage: #56694A;
  --sage-soft: #7D8F6C;    /* velika brojka 60, vez */
  --sage-dark: #3F4E35;
  --ink: #3A2A2F;
  --ink-2: #5E4C52;
  --muted: #6B5A5F;
  --line: #EEDFDA;
  --line-2: #F1E6E2;
  --btn-border: #E6D0CC;
  --flame: #F0B27E;
  --flame-in: #FBE3B8;

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  --gutter: clamp(24px, 5.5vw, 80px);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Klik na link u navigaciji ostavlja malo zraka iznad sekcije. */
[id] { scroll-margin-top: 32px; }

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

a { color: var(--berry); }
a:hover { color: var(--berry-dark); }

:focus-visible {
  outline: 3px solid var(--rose-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Vez (ukrasni obrub križićima) ---------- */
.vez {
  height: 30px;
  padding-inline: 4px; /* skriva polovične križiće na rubovima */
  background: url(../img/vez.svg) left center / auto 30px round border-box content-box;
}
.vez--top { margin-top: 18px; }
.vez--footer { width: min(100%, 342px); margin-top: 16px; }

/* ---------- Tipografija ---------- */
.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
}

.h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 1.6vw + 28px, 52px);
  line-height: 1.05;
  color: var(--berry);
  text-wrap: balance;
}

/* ---------- Gumbi ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 0 26px;
  border: 1.5px solid var(--btn-border);
  border-radius: 999px;
  background: var(--paper);
  color: var(--berry);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #FFF4F1; border-color: #DDBDB8; color: var(--berry); }
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn--center { justify-content: center; }
.btn--primary {
  justify-content: center;
  background: var(--berry);
  border-color: var(--berry);
  color: #FFF8F4;
  min-height: 60px;
}
.btn--primary:hover { background: var(--berry-dark); border-color: var(--berry-dark); color: #FFF8F4; }

.only-desktop { display: none !important; }

/* ---------- Navigacija (samo desktop) ---------- */
.nav { display: none; }

/* ---------- Naslovni dio ---------- */
.hero { padding: 36px 0 56px; }

.hero__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
}

.hero__title {
  margin: 0;
  max-width: 330px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 46px;
  line-height: 1.02;
  color: var(--berry);
  text-wrap: balance;
}
.hero__title span {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.1;
  color: var(--sage);
}

.numerals {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  margin-top: 6px;
}
.numeral {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.numeral__flame { width: 20px; height: 30px; }
.numeral__n {
  font-family: var(--serif);
  font-size: 150px;
  line-height: 0.8;
}
.numeral__n--cvita { color: var(--rose-soft); }
.numeral__n--ksenija { color: var(--sage-soft); }
.numeral__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 27px;
  line-height: 1.1;
}
.numeral__name--cvita { color: var(--berry); }
.numeral__name--ksenija { color: var(--sage); }
.numerals__amp {
  font-family: var(--serif);
  font-style: italic;
  font-size: 52px;
  line-height: 1;
  color: var(--rose);
  padding-bottom: 48px;
}

.lead {
  margin: 0;
  max-width: 330px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin-top: 4px;
}

/* ---------- Dvije slavljenice ---------- */
.celebrants { padding: 8px 0 48px; }
.celebrants__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.celebrants__grid { display: grid; gap: 16px; }

.person {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 28px;
}
.person--cvita { background: var(--blush); }
.person--ksenija { background: var(--sage-tint); }

.person__body {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name badge" "text text";
  align-items: center;
  gap: 10px 12px;
  width: 100%;
}
.person__name {
  grid-area: name;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
}
.person--cvita .person__name { color: var(--berry); }
.person--ksenija .person__name { color: var(--sage-dark); }
.person__badge {
  grid-area: badge;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.person--cvita .person__badge { color: var(--rose); }
.person--ksenija .person__badge { color: var(--sage); }
.person__text {
  grid-area: text;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
.person__big { display: none; }

/* ---------- Kada i gdje + Mjesto + fotografije ---------- */
.info__grid { display: grid; }

.when {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 48px 0;
}
.when .h2 { margin-bottom: 8px; }
.when__list {
  padding: 6px 20px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 28px;
}
.when__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}
.when__row:last-child { border-bottom: 0; }
.when__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blush);
  color: var(--rose);
}
.when__icon svg { width: 22px; height: 22px; }
.when__icon--sage { background: var(--sage-tint); color: var(--sage); }
.when__label { font-size: 13px; font-weight: 700; color: var(--muted); }
.when__value { font-size: 17px; font-weight: 800; color: var(--ink); }
.when__sub { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.when__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.when__alt {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.place {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-inline: calc(-1 * var(--gutter));
  padding: 56px var(--gutter) 16px;
  background: var(--sage-tint);
}
.place__barn { width: 140px; height: 90px; }
.place .eyebrow { color: var(--sage); }
.place .h2 { color: var(--sage-dark); }
.place__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}
.tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--paper);
}
.tip svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.tip p { margin: 0; font-size: 15px; line-height: 1.5; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-inline: calc(-1 * var(--gutter));
  padding: 16px var(--gutter) 56px;
  background: var(--sage-tint);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g-aerial {
  grid-column: 1 / -1;
  width: calc(100% + 2 * var(--gutter)) !important;
  max-width: none;
  margin-inline: calc(-1 * var(--gutter));
  height: 230px !important;
}
.g-trijem { grid-column: 1 / -1; height: 228px !important; border-radius: 20px; }
.g-blag, .g-kutak { height: 124px !important; border-radius: 16px; }

/* ---------- Pozivnica ---------- */
.invite-sec { padding: 56px 0; text-align: center; }
.invite-sec__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.invite-sec__sub { margin: -12px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

.invite-card {
  width: min(100%, 360px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(124, 47, 71, 0.45);
}
.invite-card img { width: 100%; }

.invite-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 420px;
}
.invite-hint {
  margin: 0;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Potvrda dolaska ---------- */
.rsvp {
  padding: 56px 0;
  background: var(--paper);
  border-block: 1px solid var(--line-2);
}
.rsvp__inner { display: flex; flex-direction: column; gap: 16px; }
.rsvp__text {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--sage);
  text-wrap: balance;
}
.rsvp__buttons { display: flex; flex-direction: column; gap: 14px; }
.btn--wa {
  min-height: 84px;
  padding: 14px 26px;
  background: var(--blush-2);
  border-color: #EACDCB;
  text-align: left;
}
.btn--wa:hover { background: #F8E3E0; }
.btn--wa__text { display: flex; flex-direction: column; gap: 3px; }
.btn--wa__name { font-size: 18px; font-weight: 800; }
.btn--wa__num { font-size: 15px; font-weight: 600; color: var(--muted); }

/* ---------- Podnožje ---------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px var(--gutter) 48px;
  text-align: center;
}
.footer__title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 1.2vw + 26px, 44px);
  line-height: 1.1;
  color: var(--berry);
}
.footer__sign { color: var(--muted); }

/* ==========================================================================
   Tablet (600 px +) — malo više zraka
   ========================================================================== */
@media (min-width: 600px) {
  .hero__title { max-width: 520px; font-size: 60px; }
  .hero__title span { font-size: 38px; }
  .lead { max-width: 480px; font-size: 18px; }
  .celebrants__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-aerial { height: 340px !important; }
  .g-trijem { height: 320px !important; }
  .g-blag, .g-kutak { height: 200px !important; }
  .rsvp__buttons { flex-direction: row; }
  .rsvp__buttons .btn { flex: 1; }
}

/* ==========================================================================
   Desktop (960 px +)
   ========================================================================== */
@media (min-width: 960px) {
  .only-mobile { display: none !important; }
  .only-desktop { display: flex !important; }

  .vez--top { margin-top: 24px; height: 40px; background-size: auto 40px; }
  .vez--footer { width: 560px; height: 40px; background-size: auto 40px; }

  .eyebrow { font-size: 14px; }

  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 20px;
  }
  .nav__brand {
    font-family: var(--serif);
    font-style: italic;
    font-size: 28px;
    line-height: 1;
    color: var(--berry);
    text-decoration: none;
  }
  .nav__links { display: flex; align-items: center; gap: 32px; }
  .nav__links a:not(.btn) {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-2);
    text-decoration: none;
  }
  .nav__links a:not(.btn):hover { color: var(--berry); }
  .nav .btn {
    width: auto;
    min-height: 48px;
    padding: 0 24px;
    font-size: 16px;
  }

  .hero { padding: 48px 0 96px; }
  .hero__grid {
    flex-direction: row;
    align-items: center;
    gap: 72px;
    text-align: left;
  }
  .hero__text { flex: 1; align-items: flex-start; gap: 28px; }
  .hero__title { max-width: 640px; font-size: 88px; line-height: 1; }
  .hero__title span { margin-top: 10px; font-size: 50px; line-height: 1.05; }
  .numerals { gap: 26px; margin-top: 0; }
  .numeral { gap: 6px; }
  .numeral__flame { width: 24px; height: 36px; }
  .numeral__n { font-size: 190px; }
  .numeral__name { font-size: 34px; }
  .numerals__amp { font-size: 64px; padding-bottom: 58px; }
  .lead { max-width: 540px; font-size: 20px; }
  .hero__cta { flex-direction: row; width: auto; max-width: none; gap: 14px; margin-top: 0; }
  .hero__cta .btn { width: auto; padding: 0 32px; min-height: 64px; }

  .hero__invite {
    width: 480px;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin: 0;
  }
  .hero__invite .invite-card {
    width: 480px;
    transform: rotate(2deg);
    box-shadow: 0 40px 70px -36px rgba(124, 47, 71, 0.5);
  }
  .hero__invite .invite-actions { flex-direction: row; max-width: none; }
  .hero__invite .invite-actions .btn { flex: 1; }
  .hero__invite .invite-hint { max-width: 420px; text-align: center; }

  .celebrants { padding: 24px 0 80px; }
  .celebrants__head { gap: 10px; margin-bottom: 32px; }
  .celebrants__grid { gap: 24px; }
  .person { padding: 40px 48px; border-radius: 36px; }
  .person__body {
    grid-template-columns: 1fr;
    grid-template-areas: "badge" "name" "text";
    justify-items: start;
    gap: 14px;
    max-width: 360px;
  }
  .person__name { font-size: 60px; }
  .person__badge { font-size: 14px; }
  .person__text { font-size: 18px; }
  .person__big {
    display: block;
    font-family: var(--serif);
    font-size: 220px;
    line-height: 0.8;
  }
  .person--cvita .person__big { color: #EDC6C3; }
  .person--ksenija .person__big { color: #CDD5C0; }

  .info { padding-bottom: 80px; }
  .info__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "when place" "gallery gallery";
    gap: 24px;
  }
  .when {
    grid-area: when;
    gap: 20px;
    padding: 40px 48px;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 36px;
  }
  .when .h2, .place .h2 { font-size: 46px; margin-bottom: 0; }
  .when__list { padding: 0; background: none; border: 0; border-radius: 0; }
  .when__icon { width: 48px; height: 48px; }
  .when__label { font-size: 14px; }
  .when__value { font-size: 19px; }
  .when__sub { font-size: 16px; }
  .when__actions { flex-direction: row; margin-top: auto; }
  .when__actions .btn { flex: 1; padding: 0 24px; }

  .place {
    grid-area: place;
    margin: 0;
    padding: 40px 48px;
    border-radius: 36px;
  }
  .place__text { font-size: 18px; }
  .tip { margin-top: auto; padding: 16px 20px; }
  .tip p { font-size: 16px; }

  .gallery {
    grid-area: gallery;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 250px 250px;
    gap: 24px;
    margin: 0;
    padding: 0;
    background: none;
  }
  .gallery img { border-radius: 28px; height: 100% !important; }
  .g-aerial { grid-column: 1 / 3; grid-row: 1 / 3; width: 100% !important; margin: 0; }
  .g-trijem { grid-column: 3 / 5; grid-row: 1; }
  .g-blag { grid-column: 3; grid-row: 2; }
  .g-kutak { grid-column: 4; grid-row: 2; }

  .invite-sec { display: none; }

  .rsvp { padding: 80px 0; }
  .rsvp__inner { align-items: center; text-align: center; }
  .rsvp__text { max-width: 620px; margin-bottom: 16px; font-size: 20px; }
  .rsvp__buttons { gap: 16px; }
  .rsvp__buttons .btn { flex: none; width: 360px; }
  .btn--wa__name { font-size: 19px; }
  .btn--wa__num { font-size: 16px; }

  .footer { padding: 72px var(--gutter) 64px; }
  .footer__sign { font-size: 14px; }
}
