/* ============================================================
   SVATBA ZA KREJCAR — Baruška & Jakub
   Style: brutalist-editorial, dark theme, mobile-first
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --black: #1c1e1c; /* Soft Charcoal */
  --white: #f1f2f0; /* Linen / Pale Putty */
  --accent: #bdab92; /* Muted Moss / Sage */
  --accent-hover: #a18b6a; /* Darker Moss */
  --gray: #8a8e89; /* Cool Muted Gray */
  --gray-dark: #3a3d39; /* Dark Slate Gray */
  --font-mono: "Space Mono", monospace;
  --font-sans: "DM Sans", sans-serif;
  --font-serif: "Instrument Serif", serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Typography --- */
.text-accent {
  color: var(--accent);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.875rem 2rem;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn--primary {
  background: var(--accent);
  color: var(--black);
  font-weight: 700;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--black);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 1.5rem;
  transition:
    padding 0.3s ease,
    background-color 0.3s ease;
}

.nav--scrolled {
  padding: 0.75rem 1.5rem;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pt-20 {
  padding-top: 20px;
}

/* When the mobile overlay menu is open, drop backdrop-filter on the nav.
   backdrop-filter creates a containing block for fixed descendants, which
   would clip .nav__links (position: fixed) to the nav bar instead of the
   viewport. Removing it lets the overlay cover the full screen. */
.nav.nav--open,
.nav.nav--open.nav--scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 110;
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
  transform-origin: center;
}

.nav.nav--open .nav__toggle-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.nav.nav--open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav.nav--open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.nav__links {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: rgba(17, 17, 17, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
  z-index: 105;
}

.nav.nav--open .nav__links {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.nav__links a:hover {
  opacity: 1;
  color: var(--accent);
}

@media (min-width: 768px) {
  .nav {
    padding: 1.5rem 2rem;
  }

  .nav__toggle {
    display: none;
  }

  .nav__links {
    position: static;
    flex-direction: row;
    gap: 2.5rem;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
  }

  .nav__links a {
    font-size: 1rem;
    opacity: 0.7;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  inset: 0;
  background-image: url("photos/photo1.png");
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
}

@media (max-width: 767px) {
  .hero__photo {
    background-image: url("mobile-photos/photo2.png");
    /* background-position: left center; */
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.15) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 6rem 1.5rem 5rem;
  z-index: 5;
}

.hero__title {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
  letter-spacing: -0.02em;
}

.hero__name {
  display: block;
}

.js .hero__name {
  opacity: 0;
}

.js .hero__amp {
  opacity: 0;
}

.hero__amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  display: block;
  font-size: 0.5em;
  margin: 0.15em 0;
  text-transform: none;
}

.hero__date {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 1.5rem;
}

.js .hero__date {
  opacity: 0;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  z-index: 10;
  color: var(--white);
}

.js .hero__scroll-hint {
  opacity: 0;
}

@media (min-width: 768px) {
  .hero__overlay {
    align-items: flex-start;
    padding: 6rem 4rem 5rem;
  }

  .hero__title {
    font-size: 6rem;
    text-align: left;
  }

  .hero__amp {
    display: inline;
    margin: 0 0.15em;
    font-size: 0.55em;
  }

  .hero__name {
    display: inline;
  }

  .hero__date {
    font-size: 1.25rem;
  }
}

@media (min-width: 1200px) {
  .hero__overlay {
    padding: 6rem 6rem 5rem;
  }

  .hero__title {
    font-size: 8rem;
  }
}

/* ============================================================
   SECTIONS — Shared
   ============================================================ */
.section__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1rem;
}

.section__label {
  display: none;
  /* display: block; */
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.08;
  margin-bottom: -1rem;
  user-select: none;
}

.section__title {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section__container {
    padding: 6rem 1rem;
  }

  .section__label {
    font-size: 8rem;
    margin-bottom: -2rem;
  }

  .section__title {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 1200px) {
  .section__container {
    padding: 2rem;
  }

  .section__label {
    font-size: 10rem;
    margin-bottom: -2.5rem;
  }
}

/* ============================================================
   WHEN & WHExsRE
   ============================================================ */
.when-where {
  background: var(--white);
  color: var(--black);
}

.when-where .section__label {
  opacity: 0.06;
}

.when-where__grid {
  display: grid;
  gap: 3rem;
}

.when-where__grid--map-only {
  grid-template-columns: 1fr;
}

/* Schedule */
.schedule__item {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1rem 0;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}

.js .schedule__item {
  opacity: 0;
}

.schedule__time {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.375rem;
  flex-shrink: 0;
  min-width: 3.5rem;
}

.schedule__desc {
  font-size: 1.1875rem;
  line-height: 1.5;
}

/* Map */
.js #map-container {
  opacity: 0;
}

.when-where__iframe {
  width: 100%;
  height: 250px;
  border: 3px solid var(--black);
}

.when-where__address {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  margin: 1rem 0;
  letter-spacing: 0.02em;
}

.when-where .btn--outline {
  border-color: var(--black);
  color: var(--black);
}

.when-where .btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

@media (min-width: 768px) {
  .when-where__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .when-where__grid--map-only {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .when-where__iframe {
    height: 300px;
  }
}

/* ============================================================
   PROGRAM
   ============================================================ */
.program {
  background: var(--white);
  color: var(--black);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.program .section__label {
  opacity: 0.06;
}

.program__schedule {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 640px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--black);
  color: var(--white);
}

.about__headline {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.3;
  margin-bottom: 2rem;
}

.js .about__headline {
  opacity: 0;
}

.about__headline em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.15em;
}

.about__body {
  max-width: 600px;
}

.js .about__body {
  opacity: 0;
}

.about__body p {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: rgba(245, 245, 240, 0.8);
}

@media (min-width: 768px) {
  .about__headline {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .about__headline {
    font-size: 4.5rem;
  }
}

/* ============================================================
   GIFTS
   ============================================================ */
.gifts {
  background: var(--black);
  color: var(--white);
}

.gifts__body {
  max-width: 600px;
}

.js .gifts__body {
  opacity: 0;
}

.gifts__body p {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: rgba(245, 245, 240, 0.8);
}

.gifts__body strong {
  color: var(--accent);
}

/* ============================================================
   BPMN DIAGRAM (Děti)
   ============================================================ */
.bpmn-wrap {
  margin: 2rem 0 1.5rem;
  max-width: 600px;
  overflow-x: auto;
}

.bpmn {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-mono);
  color: var(--white);
}

.bpmn__start {
  fill: rgba(241, 242, 240, 0.06);
  stroke: var(--white);
  stroke-width: 2;
}

.bpmn__gateway {
  fill: rgba(189, 171, 146, 0.08);
  stroke: var(--white);
  stroke-width: 2;
  stroke-linejoin: round;
}

.bpmn__edge {
  fill: none;
  stroke: var(--white);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.bpmn__edge--happy {
  stroke: #6dbf73;
  stroke-width: 2.25;
  opacity: 1;
}

.bpmn__arrow-head {
  fill: var(--white);
}

.bpmn__end {
  fill: none;
  stroke: var(--white);
  stroke-width: 3.5;
}

.bpmn__end--happy {
  stroke: #6dbf73;
  fill: rgba(109, 191, 115, 0.15);
  stroke-width: 4;
}

.bpmn__end--void {
  stroke-dasharray: 4 4;
  opacity: 0.55;
}

.bpmn__label {
  fill: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.bpmn__label--event {
  font-size: 10px;
  letter-spacing: 0.05em;
}

.bpmn__label--gateway {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.bpmn__label--edge {
  font-size: 14px;
  letter-spacing: 0.08em;
  fill: rgba(241, 242, 240, 0.7);
}

.bpmn__label--yes {
  font-size: 14px;
  letter-spacing: 0.08em;
  fill: #6dbf73;
}

.bpmn__label--end {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.bpmn__label--happy {
  fill: #6dbf73;
}

.bpmn__label--legend {
  font-size: 10px;
  letter-spacing: 0.15em;
  fill: rgba(241, 242, 240, 0.35);
  text-transform: uppercase;
}

.bpmn__footnote {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(245, 245, 240, 0.8);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  max-width: 600px;
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp {
  background: var(--white);
  color: var(--black);
}

.rsvp .section__label {
  opacity: 0.06;
}

.rsvp__subtitle {
  font-size: 1.25rem;
  margin-top: -1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray);
}

.rsvp__form {
  max-width: 550px;
}

.form__field {
  margin-bottom: 1.75rem;
}

.js .form__field {
  opacity: 0;
}

.form__field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.form__field input[type="text"],
.form__field input[type="number"],
.form__field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  background: transparent;
  border: 2px solid var(--black);
  color: var(--black);
  outline: none;
}

.form__field input:focus,
.form__field textarea:focus {
  border-color: var(--accent);
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: var(--gray);
}

.form__field input[type="number"] {
  max-width: 120px;
}

.form__field textarea {
  resize: vertical;
  min-height: 80px;
}

/* Toggle buttons */
.form__toggle {
  display: flex;
}

.form__toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle__option {
  padding: 0.875rem 1.75rem;
  border: 2px solid var(--black);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 400;
  user-select: none;
}

.toggle__option:first-of-type {
  border-right: none;
}

.form__toggle input[type="radio"]:checked + .toggle__option {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
  font-weight: 700;
}

.rsvp .btn--primary {
  margin-top: 0.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .rsvp .btn--primary {
    width: auto;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.footer__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
}

.js .footer__inner {
  opacity: 0;
}

.footer__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.6;
  color: rgba(245, 245, 240, 0.7);
  margin-bottom: 3rem;
}

.footer__names {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer__date {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}

@media (min-width: 768px) {
  .footer__inner {
    padding: 6rem 2rem 4rem;
  }

  .footer__quote {
    font-size: 1.875rem;
  }
}

/* ============================================================
   DVD BOUNCE
   ============================================================ */
.dvd-bounce {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  will-change: transform;
  mix-blend-mode: difference;
}

.dvd-bounce--img {
  width: 80px;
  height: auto;
  font-size: 0;
  mix-blend-mode: normal;
}

@media (min-width: 768px) {
  .dvd-bounce {
    font-size: 2rem;
  }

  .dvd-bounce--img {
    width: 120px;
  }
}
