/* ==========================================================================
   Cvjetni studio Vanda — shared stylesheet
   One file, cascade layers, tokens in :root. No hex values outside :root.
   ========================================================================== */

@layer reset, base, layout, components, sections, utilities, motion;

/* ---------- Fonts (self-hosted, OFL; latin + latin-ext so č ć đ š ž render from the same family) ---------- */
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-wght-italic.2175449f9d44.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: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-ext-wght-italic.43bf186b7991.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.260c81a4759b.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.1ad231aac0a8.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;
}

/* ---------- Tokens ---------- */
:root {
  /* palette from the brief */
  --blush-50:  #F9F2F4;
  --blush-100: #F3E7EB;
  --cream-50:  #FBF7F3;
  --coral-500: #EE5B52;   /* brand accent: non-text details (dot, active underline, focus) */
  --coral-600: #DF4A41;
  --coral-700: #C8413A;   /* accent when it carries text: white on it = 4.9:1, it on blush = 4.4:1+ at 17px+ medium */
  --coral-800: #B1362F;
  --ink-900:   #221C1F;
  --body-600:  #6E6368;
  --line:      #EBDFE3;
  --white:     #FFFFFF;
  /* additions */
  --stone-100: #EFEDEA;   /* calm neutral band for žalosna floristika */
  --stone-300: #D9D5D0;
  --stone-700: #57524F;
  --shadow-ink: 34 28 31; /* rgb triplet of ink for shadows/scrims */

  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* fluid type scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --fs-h2: clamp(2.125rem, 1.6rem + 2.2vw, 3.5rem);
  --fs-hero: clamp(2.25rem, 1.3rem + 3.9vw, 4.75rem);

  /* fluid space scale */
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  --space-l: clamp(2rem, 1.5rem + 2vw, 3rem);
  --space-xl: clamp(3rem, 2rem + 4vw, 5.5rem);
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);

  --header-h: 76px;
  --container: 1240px;
  --container-narrow: 780px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --hero-gap: clamp(0.625rem, 0.3rem + 1.4vw, 1.5rem);

  --shadow-soft: 0 30px 80px -30px rgb(var(--shadow-ink) / 0.22), 0 10px 30px -18px rgb(var(--shadow-ink) / 0.12);
  --shadow-card: 0 20px 50px -28px rgb(var(--shadow-ink) / 0.25);

  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-slow: 700ms;
  --dur: 350ms;
}

/* ---------- Reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  p, h1, h2, h3, li, dd { overflow-wrap: break-word; }
  [hidden] { display: none !important; }
}

/* ---------- Base ---------- */
@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
  body {
    background: var(--blush-50);
    color: var(--body-600);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.75;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3 { color: var(--ink-900); line-height: 1.1; text-wrap: balance; font-weight: 400; }
  p, li { text-wrap: pretty; }
  a { color: var(--ink-900); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
  strong { color: var(--ink-900); font-weight: 500; }
  :focus-visible { outline: 2px solid var(--ink-900); outline-offset: 3px; border-radius: 4px; }
  ::selection { background: var(--blush-100); color: var(--ink-900); }
  section[id], [id="narudzba"] { scroll-margin-top: calc(var(--header-h) + 1rem); }
  .price, .tabular { font-variant-numeric: tabular-nums; }
}

/* ---------- Layout ---------- */
@layer layout {
  .container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
  .container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); }
  .section { padding-block: var(--space-section); }
  .section--flush-top { padding-top: 0; }
  .section--blush { background: var(--blush-50); }
  .section--cream { background: var(--cream-50); }
  .section--stone { background: var(--stone-100); }
}

/* ---------- Components ---------- */
@layer components {
  .skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 100;
    background: var(--ink-900); color: var(--white); padding: 0.75rem 1.25rem; border-radius: var(--radius-pill);
  }
  .skip-link:focus { top: 1rem; }

  .eyebrow {
    font-size: var(--fs-xs); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
    color: var(--body-600); margin-bottom: var(--space-s);
  }
  .display {
    font-family: var(--font-serif); font-style: italic; font-weight: 400;
    font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.015em;
  }
  .lead { font-size: var(--fs-lead); line-height: 1.7; }
  .small { font-size: var(--fs-sm); line-height: 1.6; }
  .subhead { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-h3); margin-bottom: var(--space-s); }
  .subhead--lg { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
  .note { padding: 1rem; }

  /* Wordmark */
  .wordmark { display: inline-flex; color: inherit; text-decoration: none; }
  .wordmark__text {
    font-family: var(--font-serif); font-style: italic; font-weight: 500; white-space: nowrap;
    font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); line-height: 1; letter-spacing: -0.01em;
  }
  .wordmark__text > span:last-child { font-weight: 400; opacity: 0.8; }
  /* narrow phones: stack the two words so the CTA and menu button still fit */
  @media (max-width: 480px) {
    .site-header .wordmark__text > span { display: block; }
    .site-header .wordmark__text { font-size: 1.1rem; line-height: 1.05; }
  }

  /* Buttons */
  .btn {
    --btn-bg: transparent; --btn-fg: var(--ink-900); --btn-bd: var(--ink-900);
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 46px; padding: 0.7rem 1.5rem; border-radius: var(--radius-pill);
    background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
    font-size: var(--fs-sm); font-weight: 500; line-height: 1.2; text-decoration: none; text-align: center;
    transition: background-color var(--dur) var(--ease-soft), color var(--dur) var(--ease-soft), border-color var(--dur) var(--ease-soft), transform var(--dur) var(--ease-soft);
  }
  .btn--coral { --btn-bg: var(--coral-700); --btn-fg: var(--white); --btn-bd: var(--coral-700); }
  .btn--coral:hover { --btn-bg: var(--coral-800); --btn-bd: var(--coral-800); }
  .btn--ghost { --btn-bd: color-mix(in srgb, var(--ink-900) 30%, transparent); }
  .btn--ghost:hover { --btn-bd: var(--ink-900); --btn-bg: color-mix(in srgb, var(--white) 60%, transparent); }
  .btn--block { width: 100%; }
  .btn--sm { min-height: 44px; padding: 0.5rem 1.1rem; }
  .btn-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }

  /* The long arrow link — signature of the hero */
  .arrow-link {
    display: inline-flex; align-items: center; gap: 1rem; min-height: 44px;
    font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; line-height: 1.2;
    color: var(--ink-900); text-decoration: none;
  }
  .arrow {
    position: relative; display: inline-block; width: 48px; height: 1px; background: currentColor; flex: none;
    transition: width var(--dur-slow) var(--ease-soft);
  }
  .arrow::after {
    content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px;
    border-top: 1px solid currentColor; border-right: 1px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
  }
  .arrow-link:hover .arrow, .arrow-link:focus-visible .arrow,
  a:hover > .arrow-link .arrow, a:focus-visible > .arrow-link .arrow { width: 80px; }
  .arrow-link--light { color: var(--white); }

  /* Placeholder tokens in staging — visible but clearly marked */
  .ph { outline: 1px dashed currentColor; outline-offset: 2px; border-radius: 3px; }

  /* Rounded image blocks */
  .rounded-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); background: var(--blush-100); }
  .rounded-img img { width: 100%; height: 100%; object-fit: cover; }

  .tick-list { display: grid; gap: 0.6rem; margin-bottom: var(--space-m); }
  .tick-list li { position: relative; padding-left: 1.75rem; }
  .tick-list li::before {
    content: ""; position: absolute; left: 0; top: 0.8em; width: 0.9rem; height: 1px; background: var(--ink-900);
  }
  .plain-list { display: grid; gap: 0.9rem; }

  /* Chips (filter) — state via aria-pressed, styled with :has() on the group */
  /* One segmented track; scrolls sideways on narrow screens instead of wrapping */
  .chips {
    display: flex; gap: 0.25rem; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
    margin-block: var(--space-l) clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
    padding: 0.3rem; border-radius: var(--radius-pill);
    background: var(--white); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    box-shadow: 0 10px 30px -20px rgb(var(--shadow-ink) / 0.35);
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip {
    flex: none; min-height: 44px; padding: 0.5rem 1.2rem; border-radius: var(--radius-pill);
    border: 1px solid transparent; background: transparent; color: var(--body-600);
    font-size: var(--fs-sm); font-weight: 500; white-space: nowrap;
    transition: background-color var(--dur) var(--ease-soft), color var(--dur) var(--ease-soft), box-shadow var(--dur) var(--ease-soft);
  }
  .chip:hover { color: var(--ink-900); background: var(--blush-50); }
  .chip[aria-pressed="true"] { background: var(--ink-900); border-color: var(--ink-900); color: var(--white); box-shadow: 0 6px 16px -8px rgb(var(--shadow-ink) / 0.6); }

  /* Katalog header aside: the example request as a small quote card */
  #katalog .section-head__aside {
    position: relative; padding: 1.5rem 1.6rem 1.25rem; border-radius: var(--radius-lg);
    background: var(--white); box-shadow: 0 18px 40px -28px rgb(var(--shadow-ink) / 0.4);
  }
  #katalog .section-head__aside::before {
    content: "“"; position: absolute; top: -0.35em; right: 1.1rem;
    font-family: var(--font-serif); font-style: italic; font-size: 5rem; line-height: 1; color: var(--coral-500); opacity: 0.85;
  }
  #katalog .section-head__aside em { color: var(--ink-900); font-family: var(--font-serif); font-size: 1.08em; }

  /* Catalogue cards (container queries) */
  /* Katalog runs at 80% of the viewport on desktop (no 1240px cap); phones keep the normal gutter */
  @media (min-width: 900px) { #katalog > .container { width: 80%; } }

  /* Bento grid: the first card is a 2×2 feature tile, the rest fill around it */
  .katalog-grid {
    display: grid; gap: clamp(0.75rem, 0.4rem + 1.2vw, 1.5rem);
    grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense;
  }
  @media (min-width: 760px) { .katalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (min-width: 1100px) { .katalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  /* two columns, one row: the shop photos are 1440 px Instagram exports and turn soft when blown up to a 2×2 tile */
  .card--featured { grid-column: span 2; }
  .katalog-grid__loading { grid-column: 1 / -1; padding: 3rem 0; text-align: center; }
  .card { container-type: inline-size; container-name: card; }
  /* White card with the photo inset, lifts on hover */
  .card__btn {
    display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0.6rem; text-align: left; color: inherit;
    border-radius: calc(var(--radius-lg) + 4px); background: var(--white);
    border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
    box-shadow: 0 14px 34px -26px rgb(var(--shadow-ink) / 0.4);
    transition: transform var(--dur-slow) var(--ease-soft), box-shadow var(--dur-slow) var(--ease-soft);
  }
  .card__btn:hover, .card__btn:focus-visible { transform: translateY(-6px); box-shadow: 0 30px 54px -30px rgb(var(--shadow-ink) / 0.5); }
  .card__media {
    position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--blush-100);
  }
  .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-soft); }
  .card__btn:hover .card__media img, .card__btn:focus-visible .card__media img { transform: scale(1.06); }
  /* "Pogledaj" label that rises from the bottom of the photo on hover */
  .card__peek {
    position: absolute; left: 50%; bottom: 0.9rem; translate: -50% 0.75rem; opacity: 0;
    padding: 0.5rem 1.1rem; border-radius: var(--radius-pill); white-space: nowrap;
    background: rgb(255 255 255 / 0.82); color: var(--ink-900); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: opacity var(--dur) var(--ease-soft), translate var(--dur-slow) var(--ease-soft);
  }
  .card__btn:hover .card__peek, .card__btn:focus-visible .card__peek { opacity: 1; translate: -50% 0; }
  @media (hover: none) { .card__peek { display: none; } }
  .card__ribbon, .card__season {
    position: absolute; top: 0.75rem; padding: 0.3rem 0.7rem; border-radius: var(--radius-pill);
    font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .card__ribbon { left: 0.75rem; background: rgb(255 255 255 / 0.82); color: var(--ink-900); }
  .card__season { right: 0.75rem; background: rgb(var(--shadow-ink) / 0.55); color: var(--white); }
  .card__body { flex: 1; padding: 1rem 0.6rem 0.5rem; display: flex; flex-direction: column; gap: 0.3rem; }
  .card__title { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; line-height: 1.15; color: var(--ink-900); }
  .card__desc { font-size: var(--fs-sm); line-height: 1.55; }
  .card__meta {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    margin-top: auto; padding-top: 0.9rem;
  }
  .card__meta .price { padding: 0.3rem 0.8rem; border-radius: var(--radius-pill); background: var(--blush-50); }
  .card__cta {
    display: inline-flex; align-items: center; gap: 0.55rem; font-size: var(--fs-sm); color: var(--ink-900); font-weight: 500;
  }
  .card__go {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    background: var(--ink-900); color: var(--white);
    transition: background-color var(--dur) var(--ease-soft), transform var(--dur-slow) var(--ease-soft);
  }
  .card__btn:hover .card__go, .card__btn:focus-visible .card__go { background: var(--coral-700); transform: rotate(45deg); }
  .price { color: var(--coral-700); font-weight: 500; font-size: 1.0625rem; }
  .card__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  @container card (max-width: 230px) {
    .card__btn { padding: 0.4rem; }
    .card__body { padding: 0.75rem 0.35rem 0.3rem; }
    .card__desc, .card__cta-label { display: none; }
    .card__title { font-size: 1.15rem; }
    .card__meta .price { font-size: 0.9375rem; padding: 0.25rem 0.6rem; }
    .card__go { width: 34px; height: 34px; }
  }

  /* Feature tile: photo fills the card, copy sits on a dark floor */
  .card--featured .card__btn { position: relative; isolation: isolate; padding: 0; overflow: hidden; min-height: 420px; border: 0; color: var(--white); }
  .card--featured .card__media { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; border-radius: 0; }
  .card--featured .card__btn::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to top, rgb(var(--shadow-ink) / 0.8) 0%, rgb(var(--shadow-ink) / 0.35) 40%, transparent 65%);
  }
  .card--featured .card__body { justify-content: flex-end; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); gap: 0.5rem; }
  .card--featured .card__title { color: var(--white); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); }
  .card--featured .card__desc { display: block; color: rgb(255 255 255 / 0.86); max-width: 44ch; -webkit-line-clamp: unset; }
  .card--featured .card__meta { margin-top: 0.75rem; flex: none; }
  .card--featured .card__meta .price { background: rgb(255 255 255 / 0.9); }
  .card--featured .card__cta { color: var(--white); }
  .card--featured .card__cta-label { display: inline; }
  .card--featured .card__go { width: 46px; height: 46px; background: var(--white); color: var(--ink-900); }
  .card--featured .card__btn:hover .card__go, .card--featured .card__btn:focus-visible .card__go { background: var(--coral-700); color: var(--white); }
  .card--featured .card__peek { display: none; }
  .katalog-more { display: flex; justify-content: center; margin-top: var(--space-l); }

  /* Product dialog: full-bleed photo on the left, airy details on the right */
  .product-dialog {
    width: min(100% - 2rem, 1040px); max-height: min(92dvh, 760px); margin: auto; padding: 0;
    border: 0; border-radius: calc(var(--radius-lg) + 6px); background: var(--white); color: var(--body-600);
    box-shadow: 0 50px 100px -30px rgb(var(--shadow-ink) / 0.55); overflow: auto; overscroll-behavior: contain;
  }
  .product-dialog::backdrop { background: rgb(var(--shadow-ink) / 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .product-dialog__inner { position: relative; display: grid; }
  @media (min-width: 760px) { .product-dialog__inner { grid-template-columns: 1fr 1fr; } }
  .product-dialog__close {
    position: absolute; top: 1rem; right: 1rem; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: rgb(255 255 255 / 0.85); color: var(--ink-900); border: 1px solid rgb(var(--shadow-ink) / 0.08);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 24px -12px rgb(var(--shadow-ink) / 0.45);
    transition: transform var(--dur) var(--ease-soft), background-color var(--dur) var(--ease-soft);
  }
  .product-dialog__close:hover { transform: rotate(90deg); background: var(--white); }

  .product-dialog__gallery { position: relative; background: var(--blush-100); }
  .product-dialog__main { aspect-ratio: 4 / 5; overflow: hidden; }
  @media (min-width: 760px) {
    /* photo fills its half and stays put while the details scroll */
    .product-dialog__gallery { position: sticky; top: 0; height: min(92dvh, 760px); }
    .product-dialog__main { aspect-ratio: auto; height: 100%; }
  }
  .product-dialog__main img { width: 100%; height: 100%; object-fit: cover; view-transition-name: product-image; }
  .product-dialog__thumbs {
    position: absolute; left: 1rem; bottom: 1rem; display: flex; gap: 0.4rem; padding: 0.35rem; border-radius: 16px;
    background: rgb(255 255 255 / 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .product-dialog__thumbs:empty { display: none; }
  .product-dialog__thumbs button { width: 52px; height: 52px; border-radius: 11px; overflow: hidden; opacity: 0.6; transition: opacity var(--dur) var(--ease-soft); }
  .product-dialog__thumbs button:hover { opacity: 0.9; }
  .product-dialog__thumbs button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--white); }
  .product-dialog__thumbs img { width: 100%; height: 100%; object-fit: cover; }

  .product-dialog__body { display: flex; flex-direction: column; gap: 1.35rem; padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
  @media (min-width: 760px) { .product-dialog__body { min-height: min(92dvh, 760px); padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); } }
  .product-dialog__cat {
    align-self: flex-start; padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); background: var(--blush-50);
    color: var(--coral-700); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  }
  .product-dialog__title { margin-top: -0.4rem; font-family: var(--font-serif); font-style: italic; font-size: clamp(2.25rem, 1.7rem + 2vw, 3.25rem); line-height: 1.02; letter-spacing: -0.02em; color: var(--ink-900); padding-right: 3rem; }
  .product-dialog__desc { font-size: var(--fs-lead); line-height: 1.65; }
  .product-dialog__label { margin-bottom: 0.55rem; font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: rgb(var(--shadow-ink) / 0.55); }
  .product-dialog__flowers:empty { display: none; }
  .product-dialog__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .product-dialog__chips li { padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); border: 1px solid var(--blush-100); background: var(--cream-50); color: var(--ink-900); font-size: var(--fs-sm); }

  /* sizes as a segmented control */
  .sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; padding: 0.3rem; border-radius: var(--radius-pill); background: var(--blush-50); }
  .size {
    min-height: 44px; padding: 0.5rem 1rem; border: 0; border-radius: var(--radius-pill);
    background: transparent; color: var(--body-600); font-size: var(--fs-sm);
    transition: background-color var(--dur) var(--ease-soft), color var(--dur) var(--ease-soft), box-shadow var(--dur) var(--ease-soft);
  }
  .size:hover { color: var(--ink-900); }
  .size[aria-pressed="true"] { background: var(--white); color: var(--ink-900); font-weight: 500; box-shadow: 0 8px 18px -10px rgb(var(--shadow-ink) / 0.4); }

  .product-dialog__buy {
    margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem;
    padding-top: 1.35rem; border-top: 1px solid var(--line);
  }
  .product-dialog__price { display: grid; }
  .product-dialog__price .product-dialog__label { margin-bottom: 0.2rem; }
  .product-dialog__price .price { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(1.9rem, 1.6rem + 1vw, 2.4rem); line-height: 1; color: var(--ink-900); }
  .product-dialog__order { flex: 1 1 200px; max-width: 280px; gap: 0.6rem; }
  .product-dialog__order svg { transition: transform var(--dur) var(--ease-soft); }
  .product-dialog__order:hover svg { transform: translateX(4px); }
  .product-dialog__note { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.85rem 1rem; border-radius: 16px; background: var(--cream-50); font-size: var(--fs-sm); line-height: 1.55; }
  .product-dialog__note svg { flex: none; margin-top: 0.1rem; color: var(--coral-500); }
  /* :has() — dim the price while a size with no price is selected */
  .product-dialog__body:has(.size[aria-pressed="true"][data-unpriced]) .price { opacity: 0.8; }

  /* Forms */
  .order-form { display: grid; gap: 1.1rem; }
  .field { display: grid; gap: 0.35rem; border: 0; padding: 0; min-width: 0; }
  .field-row { display: grid; gap: 1.1rem; }
  @media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; align-items: start; } }
  .field label, .field legend { color: var(--ink-900); font-size: var(--fs-sm); font-weight: 500; }
  .field input:not([type="radio"], [type="checkbox"], [type="file"]), .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 0.7rem 0.95rem; border-radius: var(--radius-sm);
    border: 1px solid color-mix(in srgb, var(--ink-900) 22%, var(--line)); background: var(--white); color: var(--ink-900);
    transition: border-color var(--dur), box-shadow var(--dur);
  }
  .field textarea { resize: vertical; line-height: 1.6; }
  .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
    outline: none; border-color: var(--ink-900); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral-500) 30%, transparent);
  }
  .field [aria-invalid="true"] { border-color: var(--coral-800) !important; }
  .field__hint { font-size: var(--fs-xs); line-height: 1.5; }
  .field__error { display: flex; gap: 0.4rem; align-items: start; font-size: var(--fs-xs); line-height: 1.5; color: var(--coral-800); font-weight: 500; }
  .field__error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; margin-top: 0.15em; border-radius: 50%; background: var(--coral-800); color: var(--white); font-size: 0.75em; }
  .field--radios { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
  .field--radios legend { width: 100%; margin-bottom: 0.35rem; }
  .radio, .check { display: flex; gap: 0.6rem; align-items: start; min-height: 44px; padding-top: 0.6rem; cursor: pointer; font-size: var(--fs-sm); line-height: 1.5; }
  .radio input, .check input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--ink-900); flex: none; }
  .field--upload input[type="file"] { font-size: var(--fs-sm); padding: 0.8rem; border: 1px dashed color-mix(in srgb, var(--ink-900) 30%, transparent); border-radius: var(--radius-sm); background: var(--white); }
  /* :has() — hide delivery fields when pick-up is chosen */
  .order-form:has(input[name="nacin"][value="preuzimanje"]:checked) .delivery-fields { display: none; }
  .delivery-fields { display: grid; gap: 1.1rem; }
  /* Order form: honeypot, privacy notice, server error */
  .order-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  .form-notice { font-size: var(--fs-xs); line-height: 1.6; color: var(--body-600); }
  .form-error { padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: var(--blush-50); color: var(--coral-800); font-size: var(--fs-sm); line-height: 1.5; font-weight: 500; }
  .price-note { display: block; font-size: var(--fs-xs); line-height: 1.6; color: var(--body-600); }
  .form-success { padding: var(--space-l); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); display: grid; gap: 0.75rem; }
  .form-success__title { font-family: var(--font-serif); font-style: italic; font-size: 2rem; color: var(--ink-900); line-height: 1.1; }

  /* Accordion */
  .faq { display: grid; border-top: 1px solid var(--line); }
  .faq__item { border-bottom: 1px solid var(--line); }
  .faq__item summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    min-height: 64px; padding: 1.1rem 0; color: var(--ink-900); font-size: 1.0625rem; font-weight: 500; line-height: 1.4;
  }
  .faq__item summary::-webkit-details-marker { display: none; }
  .faq__item summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform var(--dur) var(--ease-soft); }
  .faq__item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
  .faq__body { padding-bottom: 1.4rem; max-width: 62ch; }

  /* Mobile bar */
  .mobile-bar { display: none; }
  @media (max-width: 767.98px) {
    .mobile-bar {
      position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
      padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--blush-50) 92%, transparent);
      backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    }
    .mobile-bar__btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; border-radius: var(--radius-pill); background: var(--ink-900); color: var(--white); text-decoration: none; font-weight: 500; }
    .mobile-bar__btn--wa { background: var(--coral-700); }
    body { padding-bottom: 76px; }
  }
}

/* ---------- Header (overlay inside the hero card → sticky bar) ---------- */
@layer components {
  .site-header {
    position: fixed; z-index: 40; top: 0; left: 0; right: 0;
    padding: var(--hero-gap) var(--hero-gap) 0;
    color: var(--white);
    transition: padding var(--dur-slow) var(--ease-soft), color var(--dur) var(--ease-soft);
  }
  .site-header__inner {
    position: relative; isolation: isolate;
    display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem);
    max-width: 100%; margin-inline: auto;
    padding: clamp(1rem, 1.5vw, 1.6rem) clamp(1.1rem, 2.6vw, 2.4rem);
    min-height: var(--header-h);
    transition: max-width var(--dur-slow) var(--ease-soft), padding var(--dur-slow) var(--ease-soft), min-height var(--dur-slow) var(--ease-soft);
  }
  /* The balloon. Drawn on a pseudo-element so backdrop-filter never becomes the
     containing block for the fixed mobile menu inside __inner. */
  .site-header__inner::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border-radius: 999px;
    background: color-mix(in srgb, var(--blush-50) 80%, transparent);
    backdrop-filter: saturate(1.3) blur(16px); -webkit-backdrop-filter: saturate(1.3) blur(16px);
    border: 1px solid color-mix(in srgb, var(--white) 60%, transparent);
    box-shadow: 0 18px 40px -18px rgb(var(--shadow-ink) / 0.35), 0 4px 12px -6px rgb(var(--shadow-ink) / 0.18);
    opacity: 0; transform: scale(0.96);
    transition: opacity var(--dur-slow) var(--ease-soft), transform var(--dur-slow) var(--ease-soft);
  }
  .site-nav { margin-inline: auto; }
  .site-nav__list { display: flex; gap: clamp(1.25rem, 3vw, 3.25rem); }
  .site-nav a {
    position: relative; display: inline-flex; align-items: center; min-height: 44px;
    color: inherit; text-decoration: none; font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0.01em;
  }
  .site-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-soft);
  }
  .site-nav a:hover::after { transform: scaleX(1); }
  .site-nav a[aria-current="true"]::after { transform: scaleX(1); background: var(--coral-500); height: 2px; }
  .site-nav__extra { display: none; }
  .site-header__loc { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; color: inherit; text-decoration: none; font-size: var(--fs-sm); white-space: nowrap; }
  .site-header__cta { white-space: nowrap; }
  .nav-toggle { display: none; width: 44px; height: 44px; color: inherit; position: relative; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    position: absolute; left: 11px; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px;
    transition: transform var(--dur) var(--ease-soft), opacity var(--dur);
  }
  .nav-toggle__bars { top: 50%; }
  .nav-toggle__bars::before { content: ""; left: 0; top: -7px; }
  .nav-toggle__bars::after { content: ""; left: 0; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

  /* overlay text legibility over the photograph */
  .site-header[data-variant="overlay"]:not(.is-stuck) .site-nav a,
  .site-header[data-variant="overlay"]:not(.is-stuck) .site-header__loc,
  .site-header[data-variant="overlay"]:not(.is-stuck) .wordmark { text-shadow: 0 1px 12px rgb(var(--shadow-ink) / 0.35); }

  /* Scrolled state — and the default for pages without a hero: the bar shrinks into a floating balloon */
  .site-header.is-stuck, .site-header[data-variant="solid"] {
    color: var(--ink-900); padding: 0.75rem var(--gutter) 0;
  }
  .site-header.is-stuck .site-header__inner, .site-header[data-variant="solid"] .site-header__inner {
    max-width: 1120px; min-height: 60px; padding: 0.45rem 0.5rem 0.45rem 1.5rem;
  }
  .site-header.is-stuck .site-header__inner::before, .site-header[data-variant="solid"] .site-header__inner::before {
    opacity: 1; transform: none;
  }

  @media (max-width: 1080px) {
    .site-header__loc { display: none; }
  }
  @media (max-width: 960px) {
    .nav-toggle { display: inline-block; order: 3; }
    .site-header__cta { margin-left: auto; padding-inline: 1.1rem; }
    .site-nav {
      position: fixed; inset: 0; z-index: -1; margin: 0; padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
      background: var(--blush-50); color: var(--ink-900); overflow-y: auto;
      opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease-soft), visibility 0s linear var(--dur);
    }
    .site-header.is-open .site-nav { opacity: 1; visibility: visible; transition-delay: 0s; }
    .site-header.is-open { color: var(--ink-900); backdrop-filter: none; background: var(--blush-50); }
    .site-header.is-open .site-nav a, .site-header.is-open .wordmark { text-shadow: none !important; }
    .site-nav__list { flex-direction: column; gap: 0.25rem; }
    .site-nav__list a { font-family: var(--font-serif); font-style: italic; font-size: 2rem; min-height: 56px; }
    .site-nav__extra { display: block; }
    .site-nav__extra a { font-family: var(--font-sans); font-style: normal; font-size: 1.0625rem; min-height: 48px; }
    .site-nav__extra:first-of-type { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
    .site-nav a::after { bottom: 10px; }
  }
  @media (max-width: 400px) { .site-header__cta { padding-inline: 0.85rem; font-size: 0.875rem; } }
}

/* ---------- Footer ---------- */
@layer components {
  /* Rounded dark panel with a gap around it, echoing the hero card */
  .site-footer { padding: 0 var(--hero-gap) calc(var(--hero-gap) + env(safe-area-inset-bottom)); }
  .site-footer__panel {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(2rem, 1.2rem + 4vw, 5rem) clamp(1.25rem, 1rem + 4vw, 5rem) 0.5rem;
    border-radius: calc(var(--radius-lg) + 8px);
    background:
      radial-gradient(70% 60% at 100% 0%, rgb(238 91 82 / 0.18), transparent 60%),
      radial-gradient(60% 60% at 0% 100%, rgb(255 255 255 / 0.05), transparent 60%),
      var(--ink-900);
    color: rgb(255 255 255 / 0.68);
  }
  .site-footer a { color: var(--white); text-decoration: none; transition: color var(--dur) var(--ease-soft); }
  .site-footer a:hover { color: #FF9A92; }
  .site-footer :focus-visible { outline-color: var(--white); }

  .site-footer__cta {
    display: grid; gap: 1.5rem; align-items: end; padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
  }
  @media (min-width: 860px) { .site-footer__cta { grid-template-columns: 1fr auto; } }
  .site-footer__cta-title {
    max-width: 22ch; color: var(--white);
    font-family: var(--font-serif); font-style: italic; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em;
  }
  .site-footer__cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
  .site-footer .btn--coral { color: var(--white); }
  .site-footer .btn--coral:hover { color: var(--white); }
  .site-footer__ghost { --btn-fg: var(--white); --btn-bd: rgb(255 255 255 / 0.3); }
  .site-footer .site-footer__ghost:hover { --btn-bg: var(--white); --btn-fg: var(--ink-900); --btn-bd: var(--white); color: var(--ink-900); }

  .site-footer__grid { display: grid; gap: 2.25rem 2rem; padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.75rem); }
  @media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 0.8fr 1.3fr; } }
  .wordmark--footer { color: var(--white); margin-bottom: 1rem; }
  .wordmark--footer .wordmark__text { font-size: 1.75rem; }
  .site-footer__brand p { max-width: 34ch; font-size: var(--fs-sm); line-height: 1.65; }
  .site-footer__social { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
  .site-footer__social a {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgb(255 255 255 / 0.22); background: rgb(255 255 255 / 0.05);
    transition: background-color var(--dur) var(--ease-soft), color var(--dur) var(--ease-soft), border-color var(--dur) var(--ease-soft);
  }
  .site-footer__social a:hover { background: var(--white); color: var(--ink-900); border-color: var(--white); }
  .site-footer__title { color: rgb(255 255 255 / 0.5); font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; margin-bottom: 0.9rem; }
  .site-footer__col ul { display: grid; gap: 0; font-size: var(--fs-sm); }
  .site-footer__col li a { display: inline-flex; min-height: 40px; align-items: center; }
  .site-footer__contact li { display: flex; align-items: flex-start; gap: 0.7rem; padding-block: 0.5rem; line-height: 1.5; }
  .site-footer__contact svg { flex: none; margin-top: 0.2rem; color: #FF9A92; }
  .site-footer__contact li a { min-height: auto; }

  /* Legal bar: bottom strip of the footer (registered data + legal links) */
  .legal-bar {
    display: grid; gap: 0.35rem 2rem; padding-block: 1.25rem; justify-items: center; text-align: center;
    border-top: 1px solid rgb(255 255 255 / 0.12); font-size: var(--fs-xs); line-height: 1.6; color: rgb(255 255 255 / 0.5);
  }
  @media (min-width: 1000px) {
    .legal-bar { grid-template-columns: 1fr auto; justify-items: start; text-align: left; }
    .legal-bar__links { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  }
  .legal-bar__data { display: grid; gap: 0.1rem; }
  .legal-bar__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.25rem; }
  /* Dot dividers only on one-line desktop layout, so a wrapped row never starts with a dot */
  @media (min-width: 1000px) {
    .legal-bar__links { gap: 0 0.6rem; }
    .legal-bar__links li + li::before { content: "·"; margin-right: 0.6rem; color: rgb(255 255 255 / 0.3); }
  }
  .legal-bar__links a { display: inline-flex; min-height: 44px; align-items: center; color: rgb(255 255 255 / 0.7); }
}

/* ---------- Sections ---------- */
@layer sections {
  /* Hero */
  /* Sits above the next section so the card's soft shadow fades out instead of being cut off */
  .hero { position: relative; z-index: 1; padding: var(--hero-gap); }
  .hero__card {
    position: relative; isolation: isolate; overflow: hidden;
    border-radius: calc(var(--radius-lg) + 6px);
    min-height: clamp(600px, calc(100svh - 2 * var(--hero-gap)), 1000px);
    background: var(--blush-100);
    box-shadow: var(--shadow-soft);
    display: flex; align-items: flex-end;
  }
  /* Extends above the card so the scroll drift in motion.js never uncovers the card's background */
  .hero__media { position: absolute; inset: -12% 0 0; z-index: -2; }
  /* keeps the rose box (right of centre) in view when narrow screens crop the 16:9 photo */
  .hero__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%; }
  /* Scrim: top band for the nav, a soft left wash for the text column, a floor for the note card */
  .hero__scrim {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
      linear-gradient(to bottom, rgb(var(--shadow-ink) / 0.45) 0%, rgb(var(--shadow-ink) / 0.12) 18%, transparent 32%),
      linear-gradient(to right, rgb(var(--shadow-ink) / 0.62) 0%, rgb(var(--shadow-ink) / 0.32) 38%, transparent 68%),
      linear-gradient(to top, rgb(var(--shadow-ink) / 0.5) 0%, transparent 45%);
  }
  .hero__content {
    width: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem;
    padding: clamp(1.5rem, 4vw, 3.75rem) clamp(1.25rem, 4vw, 3.75rem);
  }
  .hero__main { max-width: 40rem; }
  .hero__eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.4rem;
    padding: 0.45rem 1rem 0.45rem 0.8rem; border-radius: 999px;
    color: var(--white); font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
    background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.28);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .hero__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral-500); box-shadow: 0 0 0 4px rgb(238 91 82 / 0.25); }
  .hero__lede {
    max-width: 44ch; margin-top: 1.4rem;
    color: rgb(255 255 255 / 0.9); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem); line-height: 1.6;
    text-shadow: 0 1px 14px rgb(var(--shadow-ink) / 0.4);
  }
  .hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }
  .hero__btn { min-height: 52px; padding-inline: 1.9rem; box-shadow: 0 14px 30px -14px rgb(var(--shadow-ink) / 0.6); }
  .hero__btn:hover { transform: translateY(-2px); }
  .hero__title {
    color: var(--white); font-family: var(--font-serif); font-style: italic; font-weight: 400;
    font-size: var(--fs-hero); line-height: 0.98; letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgb(var(--shadow-ink) / 0.35);
    font-feature-settings: "kern", "liga", "dlig";
    text-wrap: initial;
  }
  .hero__title span { display: block; }
  .hero__link { text-shadow: 0 1px 14px rgb(var(--shadow-ink) / 0.45); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem); }
  .hero__link .arrow { width: 56px; }
  .hero__link:hover .arrow { width: 96px; }
  @media (max-width: 640px) {
    .hero__content { flex-direction: column; align-items: flex-start; }
  }

  /* Ribbon: a quiet, slowly drifting line of services between the hero and Usluge */
  .ribbon {
    display: flex; overflow: hidden;
    padding-block: clamp(3rem, 2rem + 3.5vw, 5.5rem) 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  }
  .ribbon__track { display: flex; flex: none; align-items: center; }
  .ribbon__track li {
    display: inline-flex; align-items: center; white-space: nowrap;
    font-family: var(--font-serif); font-style: italic; font-size: clamp(1.25rem, 1rem + 1.1vw, 2rem);
    color: color-mix(in srgb, var(--ink-900) 55%, var(--blush-50));
  }
  /* small four-petal flower as the separator */
  .ribbon__track li::after {
    content: ""; flex: none; width: 14px; height: 14px; margin-inline: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
    background: var(--coral-500); opacity: 0.75;
    -webkit-mask: radial-gradient(circle at 50% 22%, #000 26%, transparent 27%), radial-gradient(circle at 50% 78%, #000 26%, transparent 27%), radial-gradient(circle at 22% 50%, #000 26%, transparent 27%), radial-gradient(circle at 78% 50%, #000 26%, transparent 27%);
            mask: radial-gradient(circle at 50% 22%, #000 26%, transparent 27%), radial-gradient(circle at 50% 78%, #000 26%, transparent 27%), radial-gradient(circle at 22% 50%, #000 26%, transparent 27%), radial-gradient(circle at 78% 50%, #000 26%, transparent 27%);
  }


  /* Section heads */
  .section-head { margin-bottom: var(--space-l); }
  .section-head--center { text-align: center; max-width: 760px; margin-inline: auto; }
  .section-head--split { display: grid; gap: var(--space-m); align-items: end; }
  @media (min-width: 900px) { .section-head--split { grid-template-columns: 1.2fr 1fr; } }
  .section-head__aside { display: grid; gap: 0.75rem; justify-items: start; max-width: 48ch; }

  /* Services */
  .services-head { margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
  .services-head__intro { max-width: 38ch; font-size: var(--fs-lead); line-height: 1.65; justify-self: end; }
  @media (max-width: 899px) { .services-head__intro { justify-self: start; } }

  .services { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
  @media (min-width: 900px) {
    .services { grid-template-columns: repeat(3, 1fr); align-items: start; padding-bottom: 3.5rem; }
    .service:nth-child(2) { margin-top: 3.5rem; } /* staggered rhythm */
  }
  /* Image-filled card: photo behind, text on a soft dark floor */
  .service__link {
    position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
    aspect-ratio: 3 / 4; min-height: 420px; overflow: hidden; border-radius: calc(var(--radius-lg) + 4px);
    color: var(--white); text-decoration: none; background: var(--blush-100);
    box-shadow: 0 24px 50px -28px rgb(var(--shadow-ink) / 0.45);
    transition: transform var(--dur-slow) var(--ease-soft), box-shadow var(--dur-slow) var(--ease-soft);
  }
  .service__link::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to top, rgb(var(--shadow-ink) / 0.78) 0%, rgb(var(--shadow-ink) / 0.35) 38%, transparent 62%);
  }
  .service__media { position: absolute; inset: 0; z-index: -2; }
  .service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-soft); }
  .service__num {
    position: absolute; top: 1.1rem; left: 1.4rem;
    font-family: var(--font-serif); font-style: italic; font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem); line-height: 1;
    color: var(--white); text-shadow: 0 2px 18px rgb(var(--shadow-ink) / 0.4);
  }
  .service__go {
    position: absolute; top: 1.25rem; right: 1.25rem; display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 50%;
    color: var(--white); background: rgb(255 255 255 / 0.16); border: 1px solid rgb(255 255 255 / 0.35);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: background-color var(--dur) var(--ease-soft), color var(--dur) var(--ease-soft), transform var(--dur-slow) var(--ease-soft);
  }
  .service__body { display: grid; gap: 0.55rem; padding: clamp(1.4rem, 1rem + 1.2vw, 2rem); }
  .service__body p { color: rgb(255 255 255 / 0.86); font-size: var(--fs-sm); line-height: 1.6; max-width: 34ch; }
  .service__title { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-h3); line-height: 1.15; color: var(--white); }
  .service__cta {
    display: inline-flex; align-items: center; gap: 0.8rem; margin-top: 0.4rem;
    font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.02em;
  }
  .service__cta .arrow { width: 32px; }
  .service__link:hover, .service__link:focus-visible { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgb(var(--shadow-ink) / 0.55); }
  .service__link:hover .service__media img, .service__link:focus-visible .service__media img { transform: scale(1.06); }
  .service__link:hover .service__go, .service__link:focus-visible .service__go { background: var(--white); color: var(--coral-700); transform: rotate(45deg); }
  .service__link:hover .service__cta .arrow, .service__link:focus-visible .service__cta .arrow { width: 56px; }
  .services__aside { margin-top: var(--space-l); text-align: center; font-size: var(--fs-sm); }

  /* Weddings: copy + photo mosaic on top, two compact cards below */
  .weddings__top { display: grid; gap: var(--space-l); align-items: center; }
  @media (min-width: 900px) { .weddings__top { grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 4vw, 4.5rem); } }
  .weddings__copy { display: grid; gap: 0.9rem; max-width: 36rem; }
  .weddings__copy .display { margin-bottom: 0.4rem; }
  .fact { padding-top: 0.9rem; border-top: 1px solid var(--line); }
  .fact__label { display: block; font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
  .weddings__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; margin-top: 0.6rem; }
  .weddings__cta .small { margin: 0; }
  /* 3 photos: one tall on the left, two stacked on the right */
  .wed-mosaic {
    display: grid; gap: clamp(0.6rem, 1.2vw, 1rem);
    grid-template-columns: 1.15fr 1fr; grid-template-rows: repeat(2, clamp(150px, 15vw, 230px));
  }
  .wed-mosaic__item { border-radius: var(--radius-lg); overflow: hidden; background: var(--blush-100); box-shadow: var(--shadow-card); }
  .wed-mosaic__item--tall { grid-row: span 2; }
  .wed-mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-soft); }
  .wed-mosaic__item:hover img { transform: scale(1.04); }
  .weddings__details { display: grid; gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
  @media (min-width: 900px) { .weddings__details { grid-template-columns: 1fr 1fr; align-items: stretch; } }
  .wed-card {
    padding: clamp(1.25rem, 1rem + 1vw, 1.9rem); border-radius: calc(var(--radius-lg) + 4px);
    background: var(--white); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
    box-shadow: 0 14px 34px -26px rgb(var(--shadow-ink) / 0.4);
  }
  .wed-card__title { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); color: var(--ink-900); margin-bottom: 1rem; }
  .pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .pill-list li {
    padding: 0.45rem 0.95rem; border-radius: var(--radius-pill);
    background: var(--blush-50); color: var(--ink-900); font-size: var(--fs-sm); line-height: 1.3;
  }
  .venue-list { margin-bottom: 0.75rem; }
  .venue-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.45; }
  .venue-list li span:first-child { color: var(--ink-900); }
  .venue-list li span:last-child { text-align: right; white-space: nowrap; }
  @media (min-width: 600px) { .venue-list--compact { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }


  /* Remote */
  .remote__grid { display: grid; gap: var(--space-xl); }
  @media (min-width: 960px) { .remote__grid { grid-template-columns: 0.95fr 1.05fr; align-items: start; } .remote__media { position: sticky; top: calc(var(--header-h) + 2rem); } }
  .remote__media { position: relative; padding-bottom: 12%; }
  .remote__img-main { aspect-ratio: 5 / 6; }
  .remote__img-small { position: absolute; width: 44%; aspect-ratio: 4 / 5; right: -4%; bottom: 0; border: 6px solid var(--cream-50); }
  @media (max-width: 959px) { .remote__img-small { right: 4%; } }
  .remote__copy { display: grid; gap: var(--space-m); }
  .promise {
    position: relative; padding: var(--space-l); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-soft);
    display: grid; gap: 0.6rem;
  }
  .promise__icon { color: var(--ink-900); }
  .promise__title { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.375rem); line-height: 1.12; color: var(--ink-900); text-wrap: balance; }
  .remote__points { display: grid; gap: var(--space-m); }
  @media (min-width: 640px) { .remote__points { grid-template-columns: 1fr 1fr; } }
  .remote__points h3 { font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 500; margin-bottom: 0.25rem; line-height: 1.4; }
  .remote__points p { font-size: var(--fs-sm); line-height: 1.65; }
  .remote__en { font-size: var(--fs-sm); color: var(--ink-900); padding-left: 1rem; border-left: 1px solid var(--ink-900); }

  /* Za tvrtke: photo stack on the left, numbered perks on the right */
  .b2b__grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
  @media (min-width: 960px) { .b2b__grid { grid-template-columns: 1fr 1.05fr; } }
  .b2b__media { position: relative; padding: 0 clamp(1.5rem, 6vw, 4rem) clamp(2rem, 5vw, 3.5rem) 0; }
  .b2b__img { border-radius: var(--radius-lg); overflow: hidden; background: var(--blush-100); }
  .b2b__img img { width: 100%; height: 100%; object-fit: cover; }
  .b2b__img--main { aspect-ratio: 4 / 5; max-height: 620px; width: 100%; box-shadow: var(--shadow-soft); }
  .b2b__img--small {
    position: absolute; right: 0; bottom: 0; width: clamp(130px, 38%, 230px); aspect-ratio: 1;
    border: 6px solid var(--blush-50); box-shadow: 0 24px 50px -24px rgb(var(--shadow-ink) / 0.45);
  }
  .b2b__tags {
    position: absolute; top: 1rem; left: 1rem; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.4rem;
    max-width: calc(100% - 2rem - clamp(1.5rem, 6vw, 4rem));
  }
  .b2b__tags li {
    padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); font-size: var(--fs-sm); color: var(--ink-900);
    background: rgb(255 255 255 / 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .b2b__copy { display: grid; gap: 1.5rem; justify-items: start; }
  .b2b__lede { font-size: var(--fs-lead); line-height: 1.7; max-width: 46ch; }
  .b2b__perks { counter-reset: perk; width: 100%; border-top: 1px solid rgb(var(--shadow-ink) / 0.14); }
  .b2b__perks li {
    counter-increment: perk; display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.15rem 0;
    padding: 0.95rem 0; border-bottom: 1px solid rgb(var(--shadow-ink) / 0.14);
  }
  .b2b__perks li::before {
    content: counter(perk, decimal-leading-zero); grid-row: span 2;
    font-family: var(--font-serif); font-style: italic; color: var(--coral-700); font-size: 1.05rem; line-height: 1.4;
  }
  .b2b__perks strong { font-weight: 500; color: var(--ink-900); }
  .b2b__perks span { font-size: var(--fs-sm); }
  @media (min-width: 560px) {
    .b2b__perks li { grid-template-columns: 2.5rem minmax(11rem, auto) 1fr; align-items: baseline; }
    .b2b__perks li::before { grid-row: auto; }
  }
  .b2b__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 0.25rem; }

  /* Gallery */
  .masonry { columns: 2; column-gap: clamp(0.75rem, 1.5vw, 1.25rem); }
  @media (min-width: 700px) { .masonry { columns: 3; } }
  @media (min-width: 1100px) { .masonry { columns: 4; } }
  .masonry__item { break-inside: avoid; margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem); }
  .masonry__link { display: block; border-radius: var(--radius-md); overflow: hidden; background: var(--blush-100); box-shadow: var(--shadow-card); }
  .masonry__link img { width: 100%; transition: transform 1.2s var(--ease-soft); }
  .masonry__link:hover img { transform: scale(1.02); }
  .instagram-cta {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.25rem 2rem; margin-top: var(--space-l);
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 3rem); border-radius: var(--radius-lg); background: var(--white);
    box-shadow: var(--shadow-card); text-decoration: none; color: var(--ink-900);
  }
  .instagram-cta__eyebrow { grid-column: 1; font-size: var(--fs-xs); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: var(--body-600); }
  .instagram-cta__title { grid-column: 1; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem); line-height: 1.1; }
  .instagram-cta .arrow { grid-column: 2; grid-row: 1 / span 2; width: 64px; }
  .instagram-cta:hover .arrow { width: 110px; }


  /* Contact */
  .contact__grid { display: grid; gap: var(--space-xl); }
  @media (min-width: 980px) { .contact__grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
  .contact__info { display: grid; gap: var(--space-m); align-content: start; }
  /* the details ride along while the (taller) form scrolls past; clears the floating header balloon */
  @media (min-width: 980px) and (min-height: 640px) {
    /* compact enough that the whole column, map included, fits on screen while it sticks */
    /* centred in the space below the floating header (~4.5rem); never tucks under it */
    .contact__info { position: sticky; top: max(5.5rem, calc((100svh + 4.5rem - var(--info-h, 0px)) / 2)); gap: 1.25rem; }
    .contact__info .display { font-size: clamp(2.25rem, 1.4rem + 2vw, 3.1rem); }
    .contact__info .contact__phone { font-size: clamp(2rem, 1.4rem + 1.4vw, 2.75rem); }
    .contact__info .contact__list { grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; }
    .contact__info .contact__list div:last-child { grid-column: 1 / -1; }
    .contact__info .map { height: clamp(170px, 100svh - 41rem, 300px); }
  }
  .contact__phone { font-family: var(--font-serif); font-style: italic; font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); color: var(--ink-900); text-decoration: none; line-height: 1.1; font-variant-numeric: tabular-nums; }
  .contact__phone:hover { text-decoration: underline; text-decoration-thickness: 1px; }
  .contact__list { display: grid; gap: 0.9rem; }
  .contact__list div { padding-top: 0.75rem; border-top: 1px solid var(--line); }
  .contact__list dt { font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
  .contact__list dd { margin: 0.2rem 0 0; color: var(--ink-900); }
  .map { position: relative; height: 320px; border-radius: var(--radius-lg); overflow: hidden; background: var(--blush-100); box-shadow: var(--shadow-card); z-index: 0; }
  .map__fallback { position: absolute; inset: 0; display: grid; place-items: center; }
  .map.is-ready .map__fallback { display: none; }
  .map__consent { position: absolute; inset: 0; display: grid; align-content: center; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); font-size: var(--fs-sm); line-height: 1.55; }
  .map__consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
  .map.is-ready .map__consent { display: none; }
  .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .contact__form { padding: clamp(1.5rem, 3.5vw, 3rem); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-soft); display: grid; gap: 1rem; }
}

/* ---------- Utilities ---------- */
@layer utilities {
  .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}

/* ---------- Motion: soft and slow. Everything here is off under reduced motion. ---------- */
@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
      .reveal { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
      .wipe { animation: wipe-in linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    }
    @keyframes reveal-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
    @keyframes wipe-in { from { clip-path: inset(12% 0 0 0 round var(--radius-lg)); } to { clip-path: inset(0 0 0 0 round var(--radius-lg)); } }
    /* GSAP fallback hook: motion.js adds .js-reveal where scroll-driven animations are unsupported */
    .js-reveal { opacity: 0; transform: translateY(20px); }
    .hero__img { animation: hero-in 1.6s var(--ease-soft) both; }
    @keyframes hero-in { from { transform: scale(1.06); } to { transform: scale(1); } }
    /* Hero copy rises in one piece after another */
    .hero__eyebrow, .hero__title span, .hero__lede, .hero__actions { animation: hero-rise 1s var(--ease-soft) both; }
    .hero__eyebrow { animation-delay: 0.15s; }
    .hero__title span:nth-child(1) { animation-delay: 0.25s; }
    .hero__title span:nth-child(2) { animation-delay: 0.35s; }
    .hero__title span:nth-child(3) { animation-delay: 0.45s; }
    .hero__lede { animation-delay: 0.6s; }
    .hero__actions { animation-delay: 0.72s; }
    @keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
    .ribbon__track { animation: ribbon-drift 60s linear infinite; }
    .ribbon:hover .ribbon__track { animation-play-state: paused; }
    @keyframes ribbon-drift { to { transform: translateX(-100%); } }
    /* product dialog eases in */
    .product-dialog[open] { animation: dialog-in 0.5s var(--ease-soft); }
    .product-dialog[open]::backdrop { animation: backdrop-in 0.4s ease-out; }
    @keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
    @keyframes backdrop-in { from { opacity: 0; } }
    @view-transition { navigation: auto; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  }
  @media (prefers-contrast: more) {
    :root { --body-600: #4A4246; --line: #BFB2B7; }
    .hero__scrim { background: rgb(var(--shadow-ink) / 0.55); }
    .chip, .size, .btn--ghost { border-color: var(--ink-900); }
  }
}

/* ---------- Legal pages ---------- */
@layer sections {
  .legal-page { padding-top: calc(var(--header-h) + var(--space-xl)); padding-bottom: var(--space-section); background: var(--cream-50); }
  .legal-page__head { margin-bottom: var(--space-l); }
  .legal-page__head .display { margin-bottom: var(--space-s); }
  .legal-page__updated { font-size: var(--fs-sm); color: var(--body-600); }
  .legal-prose { display: grid; gap: 1rem; font-size: var(--fs-base); line-height: 1.75; overflow-wrap: anywhere; }
  .legal-prose h2 { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-h3); margin-top: var(--space-m); }
  .legal-prose h3 { font-size: var(--fs-base); font-weight: 500; margin-top: 0.5rem; }
  .legal-prose ul, .legal-prose ol { display: grid; gap: 0.4rem; padding-left: 1.25rem; }
  .legal-prose dl { display: grid; gap: 0; border-top: 1px solid var(--line); }
  .legal-prose dl div { display: grid; gap: 0.15rem 1.5rem; padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
  @media (min-width: 700px) { .legal-prose dl div { grid-template-columns: 15rem 1fr; } }
  .legal-prose dt { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; padding-top: 0.2rem; }
  .legal-prose dd { margin: 0; color: var(--ink-900); }
  .legal-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--white); }
  .legal-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.5; overflow-wrap: normal; }
  .legal-table th { white-space: nowrap; }
  .legal-table code { white-space: nowrap; font-size: 0.92em; }
  .legal-table th, .legal-table td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
  .legal-table th { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--body-600); background: var(--blush-50); }
  .legal-table tr:last-child td { border-bottom: 0; }
  .legal-box { padding: 1.25rem 1.5rem; border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-card); }
  .legal-form-lines p { padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); }
  @media print { .site-header, .site-footer, .mobile-bar { display: none !important; } .legal-page { padding: 0; } }
}
