:root {
  color-scheme: light;
  --bg: #eee5dc;
  --bg-2: #e8d8ca;
  --text: #2f2338;
  --muted: #7f6e7d;
  --accent: #b57b5d;
  --accent-strong: #915b3b;
  --card: rgba(255, 255, 255, 0.9);
  --border: rgba(145, 91, 59, 0.16);
}

#sitios .important-list a,
#sitios .important-list a:visited,
#sitios .important-list a:hover,
#sitios .important-list a:focus-visible {
  color: var(--text);
  font-weight: 700;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
}

.intro-envelope {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: transparent;
  transition: opacity 1.2s ease;
}

.intro-envelope.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.intro-envelope__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at top, rgba(181, 123, 93, 0.16), transparent 52%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
}

.falling-flowers {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.falling-flowers--background {
  position: fixed;
  z-index: 0;
}

.falling-flower {
  position: absolute;
  top: -150px;
  left: var(--flower-left);
  width: var(--flower-size);
  opacity: 0;
  animation: flower-fall var(--flower-duration) linear var(--flower-delay) infinite;
  will-change: transform, opacity;
}

.falling-flower__illustration {
  display: block;
  width: 100%;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(85, 93, 62, 0.16));
}

.falling-flower__stem,
.falling-flower__leaf {
  fill: none;
  stroke: #899276;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.falling-flower__leaf {
  fill: rgba(137, 146, 118, 0.16);
}

.falling-flower__petals ellipse,
.falling-flower__petals path {
  fill: #fffdf6;
  fill-opacity: 0.94;
  stroke: #cfc8b2;
  stroke-width: 0.8;
}

.falling-flower__petals--cosmos ellipse,
.falling-flower__petals--cosmos path {
  fill: #f8f2e3;
}

.falling-flower__petals--sunflower ellipse {
  fill: #e7c968;
  stroke: #bc9e4d;
}

.falling-flower__center {
  fill: #d5b34a;
  stroke: #a98a39;
  stroke-width: 0.8;
}

.falling-flower__center--sunflower {
  fill: #795b35;
  stroke: #634626;
}

.falling-flower__seeds circle {
  fill: #f0d982;
}

.falling-flower__seeds--sunflower circle {
  fill: #c39a50;
}

.intro-envelope__button {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  animation: envelope-pop 0.9s ease both;
}

.intro-envelope__image {
  width: min(92vw, 680px);
  max-width: 680px;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 32px rgba(145, 91, 59, 0.22));
  transition: transform 0.6s ease, filter 0.6s ease, opacity 0.7s ease;
}

.intro-envelope__button:hover .intro-envelope__image,
.intro-envelope__button:focus-visible .intro-envelope__image {
  transform: translateY(-8px) scale(1.04);
  filter: drop-shadow(0 28px 38px rgba(145, 91, 59, 0.28));
}

.intro-envelope__button.is-opening .intro-envelope__image {
  animation: envelope-open 0.8s ease forwards;
}

.intro-envelope__button.is-opening {
  cursor: default;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(255, 250, 246, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(47, 35, 56, 0.2);
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-strong);
  text-decoration: none;
}

.topbar__nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar__nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.topbar__nav a:hover {
  color: var(--accent-strong);
}

.topbar__nav a.active {
  color: var(--accent-strong);
  font-weight: 700;
  transform: translateY(-1px);
}

.language-switcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(47, 35, 56, 0.14);
  color: var(--muted);
  backdrop-filter: blur(8px);
}

.language-switcher[hidden] {
  display: none;
}

.language-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  padding: 2px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.language-switcher__flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  border: 1px solid rgba(47, 35, 56, 0.16);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(47, 35, 56, 0.14);
}

.language-switcher__flag--es {
  background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.language-switcher__flag--it {
  background: linear-gradient(to right, #009246 0 33.33%, #f1f2f1 33.33% 66.66%, #ce2b37 66.66% 100%);
}

.language-switcher__button:hover,
.language-switcher__button.is-active {
  color: var(--accent-strong);
}

main {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.section {
  scroll-margin-top: 90px;
  padding: 48px 0;
}

.hero {
  position: relative;
  z-index: 0;
  width: 100%;
  min-height: auto;
  display: block;
  border-radius: 0;
  padding: 16px 24px 24px;
  box-shadow: none;
  overflow: hidden;
  background: transparent;
}

.hero__media {
  display: block;
  width: 100%;
  max-width: 1080px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  filter: brightness(0.72) saturate(0.92) drop-shadow(0 18px 30px rgba(47, 35, 56, 0.3));
}

.hero__content {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  text-align: center;
  width: min(720px, calc(100% - 48px));
  padding: 24px 28px;
  border-radius: 24px;
  background: rgba(47, 35, 56, 0.45);
  color: white;
  backdrop-filter: blur(4px);
  margin: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}


.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--accent-strong);
  margin-bottom: 12px;
}

.hero__content .eyebrow {
  color: #f6dfcf;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  margin-bottom: 16px;
}

.hero__text {
  font-size: 1.1rem;
  color: #fcefe7;
  margin-bottom: 24px;
}

.counter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.counter__item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
}

.counter__item span {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.counter__item small {
  color: var(--muted);
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.calendar-menu {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  z-index: 999;
}

.calendar-options {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  min-width: 180px;
  width: min(280px, calc(100vw - 40px));
  max-width: 320px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(145, 91, 59, 0.18);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(47, 35, 56, 0.14);
  z-index: 9999;
}

.calendar-options.is-open {
  display: flex;
}

.hero__actions .btn {
  min-width: 220px;
  max-width: 100%;
  padding: 14px 24px;
  box-sizing: border-box;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 20px rgba(181, 123, 93, 0.26);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border: 1px solid rgba(145, 91, 59, 0.18);
  box-shadow: 0 10px 20px rgba(47, 35, 56, 0.08);
}

.btn--secondary:hover {
  background: white;
}

/* Small icon + label for calendar menu buttons */
.btn--menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border-radius: 12px;
}

.btn__icon {
  font-size: 1.2rem;
  line-height: 1;
  display: inline-block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.btn__label {
  display: inline-block;
}

.section__header {
  margin-bottom: 20px;
}

.section__header .eyebrow {
  font-size: 1.05rem;
  letter-spacing: 0.34em;
  margin-bottom: 10px;
}

section#importante .section__header h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.2;
}

.section {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1), transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, transform;
}

.section.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.section.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
  gap: 24px;
  align-items: stretch;
}

.event-card__media {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.event-card__content {
  min-width: 0;
}

.form-card {
  padding: 0;
  overflow: hidden;
}

.form-card iframe {
  width: 100%;
  border: none;
}

.custom-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.form-question {
  margin-bottom: 4px;
}

.form-help {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: white;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181, 123, 93, 0.1);
}

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

.radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}

.radio-option input {
  accent-color: var(--accent);
}

.form-message {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
}

.form-message.error {
  display: block;
  background: #ffebee;
  color: #c62828;
}

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 36px rgba(47, 35, 56, 0.22);
  border: 1px solid var(--border);
}

.card--centered {
  text-align: center;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(47, 35, 56, 0.08);
}

.card li:last-child {
  border-bottom: none;
}

.card span {
  color: var(--muted);
}

.event-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  background: #f8efe7;
}

.map-card {
  margin-top: 16px;
}

.map-card__link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-strong);
  font-weight: 700;
}

iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 16px;
}

.info-intro {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.info-intro--strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.dress-code li {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(47, 35, 56, 0.08);
  line-height: 1.7;
}

.important-card {
  padding: 36px 40px;
  min-height: 260px;
  border: 1px solid rgba(145, 91, 59, 0.24);
  box-shadow: 0 20px 44px rgba(47, 35, 56, 0.24);
  background: linear-gradient(135deg, rgba(255, 250, 246, 0.98) 0%, rgba(252, 238, 225, 0.95) 100%);
}

.important-list {
  margin-top: 18px;
}

.important-list li {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(47, 35, 56, 0.08);
  line-height: 1.8;
  font-size: 1.02rem;
}

.food-subsection {
  margin-top: 0;
  padding: 0;
  border-top: 1px solid rgba(47, 35, 56, 0.08);
}

.food-subsection__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  min-height: 0;
  padding: 16px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

#sitios .food-subsection__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  line-height: 1.8;
  font-weight: 700;
}

#sitios .food-subsection__title > span {
  color: var(--text);
}

.food-subsection__summary:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.food-subsection__indicator {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-right: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.food-subsection__summary[aria-expanded="true"] .food-subsection__indicator {
  transform: rotate(225deg) translate(-2px, -2px);
}

.food-subsection__content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.35s ease, opacity 0.25s ease;
}

.food-subsection__content[hidden] {
  display: none;
}

.food-subsection__content.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.food-subsection__content-inner {
  min-height: 0;
  overflow: hidden;
}

.food-subsection__content.is-open .food-carousel {
  padding-bottom: 16px;
}

.food-carousel {
  --food-slide-width: clamp(180px, 28vw, 230px);
  width: min(100%, 760px);
  margin-inline: auto;
  padding-inline: calc((100% - var(--food-slide-width)) / 2);
  overflow-x: auto;
  scroll-behavior: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.food-carousel::-webkit-scrollbar {
  display: none;
}

.food-carousel__track {
  display: flex;
  width: max-content;
  gap: 16px;
}

.food-item {
  min-width: 0;
  flex: 0 0 var(--food-slide-width);
  margin: 0;
  opacity: 0.4;
  cursor: pointer;
  scroll-snap-align: center;
  text-align: center;
  transform: scale(0.88);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.food-item.is-active {
  opacity: 1;
  transform: scale(1);
}

.food-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(47, 35, 56, 0.16);
}

.food-item figcaption {
  margin-top: 10px;
  font-weight: 600;
}

.food-item__split-labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

@keyframes envelope-pop {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes envelope-open {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  40% {
    transform: scale(1.04) rotate(-3deg);
  }
  100% {
    transform: scale(0.95) rotate(6deg) translateY(-16px);
    opacity: 0;
  }
}

@keyframes flower-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -4vh, 0) rotate(var(--flower-angle));
  }
  10% {
    opacity: 0.2325;
    transform: translate3d(var(--flower-drift), 8vh, 0) rotate(calc(var(--flower-angle) + 75deg));
  }
  35% {
    transform: translate3d(calc(var(--flower-drift) * 0.35), 35vh, 0) rotate(calc(var(--flower-angle) + 175deg));
  }
  65% {
    transform: translate3d(calc(var(--flower-drift) * 0.8), 67vh, 0) rotate(calc(var(--flower-angle) + 265deg));
  }
  90% {
    opacity: 0.18;
    transform: translate3d(calc(var(--flower-drift) * 0.65), 96vh, 0) rotate(calc(var(--flower-angle) + 350deg));
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--flower-drift), 115vh, 0) rotate(calc(var(--flower-angle) + 300deg));
  }
}

@media (max-width: 900px) {
  .food-carousel {
    --food-slide-width: clamp(145px, 48vw, 200px);
  }

  .food-carousel__track {
    gap: 12px;
  }

  .food-item img {
    aspect-ratio: 1;
  }

  .hero {
    min-height: auto;
    padding: 16px;
  }

  .hero__content {
    width: 100%;
    max-width: none;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-photo {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .language-switcher {
    right: 12px;
    bottom: 12px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  main {
    padding: 12px;
  }

  .hero {
    padding: 12px;
    min-height: auto;
  }

  .hero__content {
    width: 100%;
    max-width: none;
    padding: 20px 18px;
  }

  /* Mobile: overlay the content on top of the image using CSS Grid so it
     remains visible above the photo without absolute positioning. */
  .hero {
    display: grid;
    align-items: start;
    justify-items: center;
    /* Make the hero occupy most of the viewport on mobile so the image
       stretches, but not the full height to allow scrolling to following sections. */
    height: min(88vh, 820px);
    overflow: hidden;
  }

  /* Place both media and content in the same grid cell, but keep the
     content anchored to the top so it only covers the upper portion. */
  .hero__media,
  .hero__content {
    grid-area: 1 / 1 / 2 / 2;
    width: 100%;
  }

  .hero__media {
    /* Fill the hero area so the image is stretched to the hero height */
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  .hero__content {
    /* Position overlay relative to the hero/image: start at 5% and span 20% (to 25%) */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 5%;
    height: 20%;
    width: min(92%, 720px);
    margin: 0;
    padding: 8px 10px;
    background: linear-gradient(180deg, rgba(47,35,56,0.82), rgba(47,35,56,0.46));
    color: #fff;
    border-radius: 10px;
    backdrop-filter: blur(6px);
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0,0,0,0.28);
    overflow: visible; /* no internal scroll */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  /* Reduce large type and spacing so content fits within the 20% band */
  .hero__content h1 {
    font-size: clamp(1.25rem, 4vw, 2rem);
    line-height: 1.05;
    margin-bottom: 6px;
  }

  .hero__content .hero__text,
  .hero__content .eyebrow {
    font-size: clamp(0.7rem, 2.2vw, 0.95rem);
    margin: 0;
  }

  .hero__content .counter {
    gap: 6px;
    margin-top: 6px;
  }

  .hero__actions .btn {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  /* Make counter items smaller and more compact on narrow devices */
  .hero__content .counter {
    gap: 6px;
    margin-top: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__content .counter__item {
    padding: 8px 6px;
    border-radius: 10px;
  }

  .hero__content .counter__item span {
    font-size: clamp(1rem, 4.2vw, 1.4rem);
  }

  .hero__content .counter__item small {
    font-size: 0.78rem;
  }

  /* Very narrow screens: stack counter vertically to save horizontal space */
  @media (max-width: 420px) {
    .hero__content {
      height: auto;
      top: 5%;
      width: calc(100% - 24px);
      padding: 8px 10px;
    }

    .hero__content .counter {
      grid-template-columns: 1fr;
      gap: 8px;
    }

    .hero__content .counter__item span {
      font-size: clamp(1rem, 5.2vw, 1.25rem);
    }
  }

  .calendar-options {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    min-width: auto;
    padding: 16px;
  }

  .calendar-options button {
    width: 100%;
    min-width: auto;
  }

  .hero__actions .btn {
    min-width: auto;
    width: 100%;
    max-width: 100%;
  }

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

  /* Override overlay behavior: show content below the image in mobile */
  .hero {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    padding-bottom: 0.75rem;
  }

  .hero__media,
  .hero__content {
    grid-area: auto !important;
    width: 100% !important;
  }

  .hero__media {
    height: auto !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  .hero__content {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin-top: 12px !important;
    width: 100% !important;
    padding: 16px !important;
    background: var(--card) !important;
    color: var(--accent-strong) !important;
    border-radius: 16px !important;
    backdrop-filter: none !important;
    box-shadow: 0 10px 26px rgba(47,35,56,0.16) !important;
  }

  .hero__content h1 {
    color: var(--accent-strong) !important;
  }

  .hero__content .eyebrow {
    color: var(--accent-strong) !important;
  }

  .hero__text {
    color: var(--accent-strong) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .falling-flower {
    display: none;
    animation: none;
  }

}
