/* ==========================================================================
   Sablona 1 — visual foundation (base + hero + Snoubenci/AboutUs)
   Design source: Figma FGaz5ALtOwvazvJ8L9yQv9 (see _shots/figma-sablony/sablona_1)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Self-hosted fonts (latin + latin-ext for Czech diacritics)
   Playfair Display 400 · Lora 400/500/700 · Ibarra Real Nova 600
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/playfair-400-latin-ext.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: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/playfair-400-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/lora-400-latin-ext.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: 'Lora'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/lora-400-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/lora-500-latin-ext.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: 'Lora'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/lora-500-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/lora-700-latin-ext.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: 'Lora'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/lora-700-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Ibarra Real Nova'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/ibarra-600-latin-ext.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: 'Ibarra Real Nova'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/ibarra-600-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;
  --font-cta: 'Ibarra Real Nova', Georgia, serif;

  --c-text-mauve: #745861;
  --c-ink: #1A0A04;
  --c-cta: #44514C;
  --c-sage: #C2D0BB;
  --c-sage-dark: #A7B3A1;
  --c-story-card: #E3BCB3;
  --c-blush: #FBEEEA;
  --c-cream: #FFFCF5;
  --c-cream-2: #FFF9F6;
  --c-hero-fallback: #D79894;
  --c-wood-brown: #624835;   /* warm brown plank tone (matches new flooring wood-tile.jpg avg) */
  --c-white: #ffffff;

  --tpl-uri: '';
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--c-text-mauve);
  line-height: 1.6;
  background-color: var(--c-cream);
  background-image: url('../img/paper.png');
  background-repeat: repeat;
}
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--c-text-mauve); }

/* --------------------------------------------------------------------------
   Surface utilities
   -------------------------------------------------------------------------- */
.bs-paper {
  background-color: var(--c-cream);
  background-image: url('../img/paper.png');
  background-repeat: repeat;
}
.bs-wood {
  background-color: var(--c-wood-brown);
  background-image: url('../img/wood-tile.jpg');
  background-repeat: repeat-y;      /* vertically-seamless mirror tile */
  background-size: 100% auto;
  background-position: top center;
}

/* CTA button — Figma: Ibarra SemiBold 18px, #44514C fill, radius 20px, soft drop */
.bs-btn {
  display: inline-block;
  font-family: var(--font-cta);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .01em;
  line-height: 1.2;
  color: var(--c-white);
  background: var(--c-cta);
  border: none;
  border-radius: 20px;
  padding: 13px 30px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 5px rgba(0,0,0,.5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bs-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 10px rgba(0,0,0,.45);
}

/* ==========================================================================
   HERO   (built to _ref_top.png @1620: hero bottom y=843 -> 52vw;
           names center y=296 = 35%; nav logo x=126, links -> x=1438)
   ========================================================================== */
.bs-hero {
  position: relative;
  height: 52vw;
  min-height: 560px;
  max-height: 900px;
  color: var(--c-white);
  isolation: isolate;
}
.bs-hero__media {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: -2;
  background: var(--c-hero-fallback);
}
.bs-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.bs-hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.28); z-index: -1; }

.bs-hero__bar {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 26px clamp(24px, 7.8%, 130px);
}
.bs-hero__logo {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--c-white);
  white-space: nowrap;
}
.bs-hero__logo-amp { font-style: italic; margin: 0 .18em; }

.bs-nav { flex: 1 1 auto; min-width: 0; }
.bs-nav__ul {
  display: flex;
  flex-wrap: wrap;                  /* wrap rather than overflow → never forces page h-scroll on narrow desktops */
  justify-content: flex-start;      /* items grouped with even gaps, not stretched edge-to-edge */
  align-items: center;
  gap: clamp(12px, 1.7vw, 44px) clamp(14px, 1.8vw, 44px);
  width: auto;
}
.bs-nav__ul a {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.05vw, 17px);   /* shrink on narrower desktops so 12 items fit */
  color: var(--c-white);
  white-space: nowrap;
}
.bs-nav__ul a:hover { opacity: .8; }

/* hamburger (mobile only) */
.bs-nav__toggle, .bs-nav__burger { display: none; }

.bs-hero__center {
  position: absolute;
  left: 50%;
  top: 35%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 0 20px;
  text-align: center;
}
.bs-hero__names {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 96px;
  line-height: 1.05;
  color: var(--c-white);
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.bs-hero__amp { font-style: italic; margin: 0 .16em; }
.bs-hero__date {
  font-family: var(--font-display);
  font-size: 24px;
  margin-top: 14px;
  color: var(--c-white);
  text-shadow: 0 2px 14px rgba(0,0,0,.25);
}

/* --------------------------------------------------------------------------
   Countdown — sits inside .bs-hero__center under the date. Not a Figma element
   (the board has no clock); styled to read as part of the hero lockup, so it
   borrows the hero's white + Playfair and stays deliberately quiet.
   -------------------------------------------------------------------------- */
.bs-countdown {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3.4vw, 58px);
  margin-top: clamp(18px, 2.2vw, 34px);
}
.bs-countdown__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.2em;
}
.bs-countdown__num {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: 1.1;
  color: var(--c-white);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.bs-countdown__label {
  font-family: var(--font-body);
  font-size: clamp(11px, .82vw, 14px);
  letter-spacing: .14em;
  text-transform: lowercase;
  color: rgba(255,255,255,.82);
  margin-top: 4px;
  text-shadow: 0 1px 10px rgba(0,0,0,.3);
}

@media (max-width: 820px) {
  .bs-countdown { gap: 14px; margin-top: 16px; }
  .bs-countdown__label { letter-spacing: .08em; }
}

/* wide art (branches, stages) must not add page h-scroll */
body { overflow-x: clip; }

/* SNOUBENCI / AboutUs lives in css/design.css (carved 2026-08-30) */

/* keep any not-yet-built sections from looking broken */
.section-stub .container { max-width: 1120px; margin: 0 auto; padding: 60px 40px; }

/* ==========================================================================
   RESPONSIVE  (~390px reference _ref_mobile_top.png:
                hamburger right, oval straddles, cards STAY 2-column, faint branch)
   ========================================================================== */
@media (max-width: 820px) {
  .bs-hero { height: min(185vw, 760px); min-height: 0; max-height: none; }
  .bs-hero__bar { padding: 18px 20px; gap: 0; }
  .bs-hero__logo { display: none; }
  .bs-nav { flex: 1 1 auto; display: flex; justify-content: flex-end; }

  .bs-nav__burger {
    display: block;
    margin-left: auto;
    width: 42px; height: 30px;
    position: relative;
    cursor: pointer;
  }
  .bs-nav__burger span {
    position: absolute; left: 4px; right: 4px; height: 3px;
    background: var(--c-white); border-radius: 3px;
  }
  .bs-nav__burger span:nth-child(1) { top: 3px; }
  .bs-nav__burger span:nth-child(2) { top: 13px; }
  .bs-nav__burger span:nth-child(3) { top: 23px; }

  .bs-nav__ul {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    width: 100%;
    margin-top: 16px;
  }
  .bs-nav__toggle:checked ~ .bs-nav__ul { display: flex; }
  .bs-nav__ul a { font-size: 18px; }

  .bs-hero__center { top: 30%; padding: 0 16px; }
  .bs-hero__names { font-size: clamp(34px, 10.5vw, 46px); line-height: 1.06; }
  .bs-hero__date { font-size: 15px; margin-top: 8px; }

}

/* STORY (cesta_zivotem) lives in css/design.css as .bs-cesta (carved 2026-08-31) */


/* ==========================================================================
   WOOD BAND — one continuous plank surface behind consecutive wood sections
   (index.php wraps them). The texture runs underneath uninterrupted; the paper
   tears into it at the band's top edge and back out at the bottom.
   ========================================================================== */
.bs-wood-band {
  position: relative;
  background-color: var(--c-wood-brown);
  background-image: url('../img/wood-tile.jpg');
  background-repeat: repeat-y;
  background-size: 100% auto;        /* one continuous run, no per-section reset */
  background-position: top center;
}
/* sections + dividers inside the band are transparent so the plank runs through */
.bs-wood-band > section,
.bs-wood-band > .bs-divider { background-color: transparent; background-image: none; }
.bs-wood-band .bs-wood       { background-color: transparent; background-image: none; }

/* torn deckle where paper meets the wood band */
.bs-wood-band__tear {
  display: block;
  height: clamp(52px, 6vw, 84px);
  background: url('../img/torn-paper.svg') top center / 100% 100% no-repeat;
}
.bs-wood-band__tear--bottom { transform: scaleY(-1); }

/* ==========================================================================
   SECTION DIVIDER (oddelovac — Figma 644:220): centre swirl + hairlines
   ========================================================================== */
.bs-divider {
  display: flex;
  align-items: center;
  gap: clamp(14px, 4vw, 44px);
  width: 100%;
  padding: clamp(26px, 5vw, 52px) 0;
  overflow: hidden;                 /* never contributes horizontal page scroll */
}
.bs-divider__line {
  flex: 1 1 auto;
  min-width: 0;
  height: 1px;
}
.bs-divider--paper .bs-divider__line { background: rgba(116, 88, 97, .35); }  /* mauve hairline on paper */
.bs-divider--wood  .bs-divider__line { background: rgba(255, 255, 255, .45); } /* light hairline on wood */
.bs-divider__motif {
  flex: 0 0 auto;
  width: clamp(120px, 15vw, 199px);
  height: auto;
  opacity: .5;
  filter: drop-shadow(0 2px 1px rgba(46, 32, 22, .3));
}
.bs-divider--wood .bs-divider__motif { opacity: .62; }

/* ==========================================================================
   LIGHTBOX (shared by the gallery mosaic in design.css; JS in rozarka.js)
   GALLERY itself lives in css/design.css as .bs-galerie (carved 2026-08-31)
   ========================================================================== */
.bs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(26,10,4,.86);
  padding: 4vmin;
}
.bs-lightbox.is-open { display: flex; }
.bs-lightbox__img {
  max-width: 94vw;
  max-height: 90vh;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
  background: var(--c-white);
  padding: 10px;
}
.bs-lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.14);
  color: var(--c-white);
  border: none;
  font-size: 34px;
  line-height: 1;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
}
.bs-lightbox__btn:hover { background: rgba(255,255,255,.28); }
.bs-lightbox__prev { left: 3vmin; }
.bs-lightbox__next { right: 3vmin; }
.bs-lightbox__close { top: 3vmin; right: 3vmin; transform: none; width: 46px; height: 46px; font-size: 26px; }
@media (max-width: 620px) {
  .bs-lightbox__btn { width: 44px; height: 44px; font-size: 26px; }
}

/* PROGRAM + MENU live in css/design.css (carved 2026-08-31) */

/* PEOPLE lives in css/design.css (carved 2026-08-31) */

/* LOCATION lives in css/design.css as .bs-mista (carved 2026-08-31) */

/* GIFTS composition lives in css/design.css (carved 2026-08-31);
   the registry OVERLAY below is kept - it is the shared reservation UI. */

/* --- the registry, revealed ---
   CLICK ONLY. Hover was intrusive and, because the list opened below a section that is
   taller than the viewport, it also opened off-screen. It is now a centred overlay so the
   gifts are readable and selectable wherever you are on the page. --- */
.bs-gifts__reveal {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(26, 10, 4, .62);
  opacity: 0; visibility: hidden;
  transition: opacity .24s ease, visibility 0s .24s;
}
.bs-gifts.is-open .bs-gifts__reveal {
  opacity: 1; visibility: visible;
  transition: opacity .24s ease, visibility 0s;
}

.bs-gifts__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2vw, 28px);
  width: 100%; max-width: 1120px; max-height: 86vh; overflow-y: auto;
  margin: 0; padding: 14px; list-style: none;
  scrollbar-width: none;                 /* the bar appearing on hover looked broken */
  -ms-overflow-style: none;
  transform: scale(.96);
  transition: transform .24s ease;
}
.bs-gifts.is-open .bs-gifts__list { transform: scale(1); }
.bs-gifts__list::-webkit-scrollbar { width: 0; height: 0; }

.bs-gift {
  display: flex; flex-direction: column;
  background: #fffdf9; padding: 13px 13px 18px;
  box-shadow: 0 12px 24px rgba(50,34,26,.34);
  overflow: hidden;
}
.bs-gift__photo { display: block; line-height: 0; }
.bs-gift__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.bs-gift__body {
  display: flex; flex-direction: column; flex: 1 1 auto;
  padding: 14px 6px 0; text-align: center;
}
.bs-gift__name {
  font-family: var(--font-display); font-size: clamp(19px, 1.35vw, 24px);
  line-height: 1.2; color: var(--c-text-mauve);
}
.bs-gift__name a { text-decoration: none; }
.bs-gift__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bs-gift__desc {
  font-family: var(--font-body); font-size: 14.5px; line-height: 1.55;
  color: var(--c-text-mauve); margin-top: 7px;
}
.bs-gift__desc p { margin: 0 0 .5em; }
.bs-gift__desc p:last-child { margin-bottom: 0; }
.bs-gift__price { font-family: var(--font-body); font-size: 15.5px; color: var(--c-text-mauve); margin-top: 9px; }

.bs-gift__field { margin-top: 12px; text-align: left; }
.bs-gift__field label {
  display: block; font-family: var(--font-body); font-size: 12.5px;
  color: rgba(116,88,97,.8); margin-bottom: 3px;
}
.bs-gift__email {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--c-text-mauve);
  background: transparent; border: none; border-bottom: 1px solid rgba(116,88,97,.45); padding: 5px 2px;
}
.bs-gift__email:focus { outline: none; border-bottom-color: var(--c-cta); }

.bs-gift__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 9px;
  margin-top: auto; padding-top: 16px;
}
.bs-gift__actions .bs-btn { font-size: 14.5px; padding: 9px 20px; }

.bs-btn--ghost {
  background: transparent; color: var(--c-cta); box-shadow: inset 0 0 0 1.5px var(--c-cta);
}
.bs-btn--ghost:hover { background: rgba(68,81,76,.07); box-shadow: inset 0 0 0 1.5px var(--c-cta); }
.bs-btn--reserved { background: var(--c-sage-dark); cursor: default; box-shadow: none; }
.bs-btn--reserved:hover { transform: none; box-shadow: none; }

/* the reservation script appends this itself; give it a home in our palette */
#gift-message {
  font-family: var(--font-body); font-size: 14px; padding: 8px 12px; border-radius: 6px;
  background: var(--c-cream); color: var(--c-text-mauve);
}
#gift-message.alert-success { box-shadow: inset 0 0 0 1.5px var(--c-sage-dark); }
#gift-message.alert-danger  { box-shadow: inset 0 0 0 1.5px #b4736f; }

@media (prefers-reduced-motion: reduce) {
  .bs-gifts__reveal, .bs-gifts__list { transition: none; }
}

@media (max-width: 1400px) {
  .bs-gifts__list { grid-template-columns: 1fr; max-width: 460px; }
}
@media (min-width: 760px) and (max-width: 1400px) {
  .bs-gifts__list { max-width: 720px; }
}

/* INFO lives in css/design.css (carved 2026-08-31) */

/* DRESS CODE lives in css/design.css (carved 2026-08-31) */

/* RSVP + GUESTBOOK live in css/design.css (carved 2026-08-31) */

/* ==========================================================================
   FOOTER — Figma 644:292 (owner call 2026-08-19: use the board's colors).
   Same shared-strings contract as every theme (getFooterText/getFooterCopyright);
   two full-bleed bands: dark sage with the names + date, lighter sage strip
   with the product line. Colors sampled off the board: #44514C (== --c-cta)
   and #727C78.
   ========================================================================== */
/* FOOTER lives in css/design.css (carved 2026-08-31) */

/* Couple's opt-in: drop the dress/suit artwork on phones. The illustrations cost ~330px
   of an 810px section at 390px wide; hiding them keeps the heading, the note and the
   palette. Default is OFF - the class is only emitted when the couple ticks the box. */
@media (max-width: 820px) {
  .bs-dress--no-mobile-art .bs-dress__art { display: none; }
}
