
:root {
  --champagne: #f5efe3;
  --sand: #d8c6b0;
  --soft-gold: #b98a63;
  --sunset: #c7685f;
  --ink: #1e2229;
  --cloud: #fcfaf7;
  --mist: rgba(248, 244, 236, 0.35);
  --bg: #f3f1ed;
  --font-heading: "Playfair Display", serif;
  --font-body: "Poppins", sans-serif;
  --max-width: 1360px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

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

main {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  padding: 0 1.5rem 4.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 34, 41, 0.08);
  box-shadow: 0 10px 30px rgba(30, 34, 41, 0.05);
}

.site-header__brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: #5a4d3d;
  padding: 0.4rem 0.35rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--sunset);
}

.site-nav__toggle {
  border: none;
  background: transparent;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.35rem;
  cursor: pointer;
}

.site-nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

section {
  width: 100%;
  scroll-margin-top: 110px;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin: 0.2em 0;
  color: var(--ink);
}

p {
  margin: 0.25em 0 1em;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--soft-gold);
  margin-bottom: 0.5rem;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--cloud);
  background-image: url("assets/images/hero%20photo.png");
  background-size: cover;
  background-attachment: fixed;
  background-position: center calc(50% + var(--parallax-offset, 0px));
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 15, 24, 0.55);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeUp 1s ease 0.15s both;
}

@media (max-width: 768px) {
  .site-nav__toggle {
    display: flex;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    display: none;
    gap: 0.5rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .slideshow__nav {
    display: none;
  }

  .hero {
    background-attachment: scroll;
    background-position: center;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  main {
    padding: 0 1rem 3rem;
    gap: 3rem;
  }

  .timeline__card {
    padding: 1.2rem;
  }

  .countdown {
    padding: 2rem 1.5rem;
  }

  .catalog-controls .scroll-btn {
    width: 100%;
  }

  .catalog-card {
    min-height: unset;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  color: var(--cloud);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--champagne);
  backdrop-filter: blur(6px);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.hero .eyebrow::before,
.hero .eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.hero .subtitle {
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-btn {
  padding: 0.95rem 2.6rem;
  border-radius: 999px;
  border: none;
  background: var(--sunset);
  color: var(--cloud);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(199, 104, 95, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(199, 104, 95, 0.45);
}

.scroll-btn.outline {
  background: transparent;
  color: var(--sunset);
  border: 1px solid rgba(199, 104, 95, 0.4);
  box-shadow: none;
}

.scroll-btn.danger {
  background: #8b3c2f;
  color: #fff;
  border: 1px solid transparent;
}

.scroll-btn.danger.outline {
  background: transparent;
  color: #8b3c2f;
  border-color: rgba(139, 60, 47, 0.5);
  box-shadow: none;
}

.scroll-btn.danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  animation: fadeUp 0.9s ease 0.2s both;
}

.countdown {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--cloud);
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(30, 31, 34, 0.1);
  display: grid;
  gap: 1.5rem;
  animation: fadeUp 1s ease 0.25s both;
}

.countdown__timer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.time-segment {
  padding: 1.5rem 1rem;
  border: 1px solid rgba(30, 32, 36, 0.05);
  border-radius: 20px;
  text-align: center;
  background: #f9f7f2;
}

.time-segment span {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--sunset);
  display: block;
}

.time-segment label {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #6f6457;
}

.highlights {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2.5rem;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), #fff4e8);
  box-shadow: 0 25px 80px rgba(30, 34, 41, 0.12);
  display: grid;
  gap: 2.5rem;
  animation: fadeUp 0.9s ease 0.35s both;
}

.highlights__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
}

.highlight-card {
  padding: 1.75rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 15px 35px rgba(30, 34, 41, 0.08);
  border: 1px solid rgba(185, 138, 99, 0.25);
  display: grid;
  gap: 0.4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeScale 0.75s ease both;
}

.highlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(185, 138, 99, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.highlight-card:hover::after {
  opacity: 1;
}

.highlight-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  margin: 0 auto 0.5rem;
  background: rgba(185, 138, 99, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sunset);
  animation: float 6s ease-in-out infinite;
}

.highlight-card:nth-child(2) .highlight-card__icon {
  animation-delay: -1s;
}

.highlight-card:nth-child(3) .highlight-card__icon {
  animation-delay: -2s;
}

.highlight-card:nth-child(4) .highlight-card__icon {
  animation-delay: -3s;
}

.highlight-card:nth-child(2) {
  animation-delay: 0.1s;
}

.highlight-card:nth-child(3) {
  animation-delay: 0.2s;
}

.highlight-card:nth-child(4) {
  animation-delay: 0.3s;
}

.highlight-card__icon svg {
  width: 28px;
  height: 28px;
}

.highlight-card__value {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  color: var(--sunset);
}

.highlight-card__label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #7c6a58;
  margin-bottom: 0.2rem;
}

.highlight-card p {
  margin: 0;
}

.timeline {
  max-width: var(--max-width);
  margin: 0 auto;
}

.timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline__list::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--soft-gold), transparent);
}

.timeline__list li {
  display: flex;
  gap: 1.5rem;
  padding-left: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  align-items: stretch;
  flex-wrap: wrap;
}

.timeline__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sand);
  border: 2px solid var(--sunset);
  box-shadow: 0 0 0 6px rgba(199, 104, 95, 0.08);
}

.timeline__list .date {
  min-width: 120px;
  font-weight: 600;
  color: #7c6b55;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timeline__card {
  background: #fff;
  border-radius: 28px;
  padding: 1.8rem;
  box-shadow: 0 20px 55px rgba(30, 34, 41, 0.08);
  flex: 1;
  display: grid;
  gap: 1.5rem;
  animation: fadeUp 0.85s ease both;
}

@media (min-width: 900px) {
  .timeline__card {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 2.5rem;
  }
}

.timeline__list .details {
  padding: 0;
}

.sessions {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.session {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(200, 169, 106, 0.3);
}

.session:first-child {
  border-top: none;
  padding-top: 0;
}

.session-notes {
  display: grid;
  gap: 0.35rem;
}

.session-notes p {
  margin: 0;
  font-size: 0.92rem;
  color: #5a4b3a;
}

.session-notes strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b08a55;
  margin-right: 0.3rem;
}

.session-time {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(200, 169, 106, 0.15);
  color: #7a654a;
}

.timeline__list li.highlight .timeline__card {
  border: 1px solid var(--soft-gold);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), #fff7ec);
}

.timeline__list li:nth-child(odd) .timeline__card {
  animation-delay: 0.1s;
}

.timeline__list li:nth-child(even) .timeline__card {
  animation-delay: 0.2s;
}

.culinary {
  border-top: 1px solid rgba(200, 169, 106, 0.3);
  padding-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .culinary {
    border-top: none;
    border-left: 1px solid rgba(200, 169, 106, 0.3);
    padding-top: 0;
    padding-left: 1.75rem;
  }
}

.culinary h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.catalog {
  display: grid;
  gap: 1rem;
}

.catalog__item {
  border: 1px solid rgba(200, 169, 106, 0.35);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  background: rgba(251, 247, 241, 0.85);
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.catalog__thumb {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(30, 34, 41, 0.18);
}

.catalog__body {
  flex: 1;
}

.catalog__item h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sunset);
}

.catalog__item p {
  margin: 0.35rem 0;
  font-size: 0.92rem;
  color: #594d3d;
}

.catalog__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.catalog__link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sunset);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 108, 77, 0.4);
}

.catalog-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  background: #fff;
  border-radius: 36px;
  box-shadow: 0 25px 70px rgba(30, 34, 41, 0.08);
  display: grid;
  gap: 1.5rem;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.catalog-filter {
  border: 1px solid rgba(199, 104, 95, 0.4);
  background: transparent;
  color: var(--sunset);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.catalog-filter.active {
  background: var(--sunset);
  color: #fff;
  box-shadow: 0 10px 25px rgba(199, 104, 95, 0.25);
}

.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.catalog-controls .scroll-btn {
  padding: 0.75rem 1.8rem;
  font-size: 0.78rem;
}

#catalog-page-label {
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a5a4c;
}

.catalog-editor {
  border: 1px solid rgba(185, 138, 99, 0.35);
  border-radius: 28px;
  background: rgba(253, 250, 245, 0.9);
  padding: 0;
}

.catalog-editor[open] {
  box-shadow: 0 18px 45px rgba(30, 34, 41, 0.08);
}

.catalog-editor > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  cursor: pointer;
}

.catalog-editor > summary::-webkit-details-marker {
  display: none;
}

.catalog-editor > summary h3 {
  margin: 0;
  font-family: var(--font-heading);
}

.catalog-editor > summary p {
  margin: 0.35rem 0 0;
  color: #6d5c4a;
}

.catalog-editor > summary span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(185, 138, 99, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.catalog-editor > summary span::before,
.catalog-editor > summary span::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  background: var(--sunset);
}

.catalog-editor > summary span::after {
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.catalog-editor[open] > summary span::after {
  transform: rotate(0deg);
}

.catalog-editor form {
  padding: 0 1.5rem 1.5rem;
}

.catalog-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.catalog-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7b6b58;
}

.catalog-form__group input,
.catalog-form__group textarea,
.catalog-form__group select {
  border-radius: 18px;
  border: 1px solid rgba(30, 34, 41, 0.1);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.catalog-form__group input:focus,
.catalog-form__group textarea:focus,
.catalog-form__group select:focus {
  outline: none;
  border-color: rgba(199, 104, 95, 0.6);
  box-shadow: 0 0 0 3px rgba(199, 104, 95, 0.15);
}

.catalog-form__group textarea {
  min-height: 120px;
  resize: vertical;
}

.catalog-form__group select {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23c7685f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 1rem) center;
  padding-right: 3rem;
  appearance: none;
}

.catalog-form__group--wide {
  grid-column: span 2;
}

.catalog-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1rem;
}

.catalog-editor__note {
  display: block;
  padding: 0 1.5rem 1.5rem;
  color: #7d6f60;
  text-align: right;
  font-size: 0.85rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  background: #fdfbf7;
  border-radius: 20px;
  color: #6b5c4c;
}

.catalog-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(30, 34, 41, 0.08);
  background: #fdfbf7;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  box-shadow: 0 15px 30px rgba(30, 34, 41, 0.06);
  animation: fadeUp 0.9s ease both;
}

.catalog-card figure {
  margin: 0;
  height: 140px;
  overflow: hidden;
}

.catalog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.catalog-card__tag {
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(199, 104, 95, 0.15);
  color: var(--sunset);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-card__body h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-card__body p {
  margin: 0;
  font-size: 0.9rem;
  color: #5b5043;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-card__details {
  font-size: 0.85rem;
  color: #7a6a58;
  margin-top: -0.25rem;
  -webkit-line-clamp: 4;
}

.catalog-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.catalog-card__map,
.catalog-card__more,
.catalog-card__edit {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sunset);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.catalog-card__more {
  font-weight: 600;
}

.catalog-card__edit {
  font-weight: 600;
  border-bottom-style: dotted;
}

.catalog-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.catalog-modal[aria-hidden="false"] {
  display: flex;
}

.catalog-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 20, 0.65);
}

.catalog-modal__dialog {
  position: relative;
  width: min(90vw, 600px);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.catalog-modal__dialog figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  height: 220px;
}

.catalog-modal__dialog img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.catalog-modal__content {
  padding: 0 1.5rem 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.catalog-modal__content h3 {
  margin: 0;
}

.catalog-modal__details {
  color: #4c3f32;
}

.catalog-modal__city {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sunset);
}

.catalog-modal__description {
  color: #5b4e41;
}

.catalog-modal__view a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.catalog-modal__form {
  display: none;
}

.catalog-modal__form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.catalog-modal__form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.catalog-modal__form-actions button {
  display: inline-flex;
  flex: 1 1 0;
  min-width: 140px;
  justify-content: center;
}

.catalog-modal[data-mode="view"] .catalog-modal__form {
  display: none;
}

.catalog-modal[data-mode="view"] .catalog-modal__view {
  display: block;
}

.catalog-modal[data-mode="edit"] .catalog-modal__view {
  display: none;
}

.catalog-modal[data-mode="edit"] .catalog-modal__form {
  display: block;
}

@media (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .slideshow {
    min-height: 280px;
  }

  .catalog-form__group--wide {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .catalog-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .catalog-controls {
    flex-direction: column;
  }

  .couples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .couples figure {
    aspect-ratio: 2 / 3;
  }

  .location__top {
    grid-template-columns: 1fr;
  }

  .location__gallery {
    flex-direction: column;
  }

  .slideshow__nav {
    order: 2;
  }

  .scroll-btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }
}

.catalog-grid[role="list"] {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wedding-day {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2.5rem;
  background: #fff;
  border-radius: 36px;
  box-shadow: 0 25px 70px rgba(30, 34, 41, 0.08);
  display: grid;
  gap: 2rem;
}

.wedding-day__intro {
  max-width: 700px;
}

.wedding-day__grid {
  display: grid;
  gap: 1.5rem;
}

.wedding-day__card {
  border: 1px solid rgba(199, 104, 95, 0.2);
  border-radius: 24px;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), #fef7f3);
  animation: fadeUp 0.95s ease both;
}

.wedding-day__card h3 {
  margin-top: 0;
}

.wedding-day__card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: #5a4f43;
}

.wedding-day__aside {
  border-radius: 24px;
  padding: 1.5rem;
  background: #111c28;
  color: #f6f1e7;
}

.wedding-day__aside h4 {
  margin-top: 0;
  color: var(--champagne);
}

.wedding-day__aside .catalog__links .catalog__link {
  border-bottom-color: rgba(255, 255, 255, 0.4);
  color: var(--champagne);
}

@media (min-width: 900px) {
  .wedding-day__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wedding-day__grid .wedding-day__card:nth-child(2) {
    grid-row: 1 / span 1;
  }

  .wedding-day__aside {
    grid-column: span 2;
  }
}

.wedding-night {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.wedding-night .ribbon {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.5), transparent),
    linear-gradient(120deg, transparent 30%, rgba(200, 169, 106, 0.2) 50%, transparent 70%);
  pointer-events: none;
  animation: shimmer 10s linear infinite;
}

.couples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  position: relative;
  z-index: 1;
}

.couples article {
  text-align: center;
  padding: 1.5rem;
  border-radius: 28px;
  border: 1px solid rgba(200, 169, 106, 0.2);
}

.couples figure {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.schedule__item {
  background: rgba(243, 233, 220, 0.6);
  border-radius: 18px;
  padding: 1rem;
  border: 1px solid rgba(200, 169, 106, 0.3);
}

.schedule__item span {
  display: block;
  font-weight: 600;
  color: var(--soft-gold);
}

.schedule__item p {
  margin-top: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.schedule__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
}

.schedule__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--sunset);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.location {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 2.5rem;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.location__top {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.location ul {
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: #7f6d55;
}

.location ul li::before {
  content: "\2727";
  margin-right: 0.5rem;
  color: var(--soft-gold);
}

.map iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.location__gallery {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeUp 0.9s ease 0.15s both;
}

.slideshow {
  flex: 1;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
  min-height: 340px;
  position: relative;
}

.slideshow__track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.slideshow__slide {
  min-width: 100%;
  height: 100%;
  margin: 0;
}

.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow__nav {
  border: none;
  background: rgba(199, 104, 95, 0.15);
  color: var(--sunset);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.slideshow__nav:hover {
  background: var(--sunset);
  color: #fff;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #7a6b58;
}

footer a {
  color: var(--soft-gold);
  text-decoration: none;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

.hero__content.reveal {
  opacity: 1;
  transform: none;
}

@keyframes shimmer {
  0% {
    transform: translateX(-20%);
  }
  100% {
    transform: translateX(20%);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

.wedding-focus {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  padding: 2.5rem;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), #fff1e0);
  box-shadow: 0 25px 60px rgba(31, 28, 26, 0.08);
  display: grid;
  gap: 1.5rem;
}

.wedding-focus .scroll-btn {
  margin-top: 1rem;
}

.focus-highlight {
  border: 1px dashed rgba(200, 169, 106, 0.4);
  border-radius: 24px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
}

.focus-highlight ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  color: #5a4b3a;
}

.focus-highlight ul li::before {
  content: "-";
  color: var(--soft-gold);
  margin-right: 0.5rem;
}

.focus-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #6a5a46;
}

.focus-note a {
  color: var(--sunset);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 108, 77, 0.4);
}

@media (min-width: 768px) {
  .countdown {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .wedding-focus {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .location {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .notes {
    grid-template-columns: 2fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wedding-night .ribbon {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.timeline .section-heading h1,
#timeline-after .section-heading h1 {
  color: var(--sunset);
  margin-bottom: 0.5rem;
}
