:root {
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-display: "Montserrat", system-ui, sans-serif;
  --bg: #eef1ea;
  --bg-soft: rgba(247, 249, 244, 0.88);
  --panel: rgba(132, 150, 129, 0.1);
  --card: rgba(252, 252, 248, 0.8);
  --card-strong: rgba(246, 248, 242, 0.92);
  --text: #29352f;
  --muted: #617169;
  --accent: #8ea28e;
  --accent-strong: #6f8771;
  --accent-cool: #9fb8cf;
  --line: rgba(111, 135, 113, 0.16);
  --shadow: 0 24px 60px rgba(84, 102, 90, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.74), transparent 34%),
    linear-gradient(180deg, #dfe8de 0%, #eef1ea 38%, #e4ebe7 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.55;
}

body::before {
  top: -7rem;
  left: -7rem;
  background: rgba(160, 185, 157, 0.4);
}

body::after {
  right: -6rem;
  bottom: 8rem;
  background: rgba(159, 184, 207, 0.28);
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.topbar {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  background: rgba(249, 250, 245, 0.88);
  border: 1px solid rgba(111, 135, 113, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(84, 102, 90, 0.12);
}

.topbar-label,
.section-label,
.eyebrow,
.hero-language-title {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.language-switcher-large {
  margin-top: 1rem;
}

.language-button {
  appearance: none;
  border: 1px solid rgba(111, 135, 113, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent-strong);
  padding: 0.8rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.language-button:hover,
.language-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(111, 135, 113, 0.5);
  box-shadow: 0 10px 24px rgba(111, 135, 113, 0.12);
  outline: none;
}

.language-button.is-active {
  color: #f8fbf7;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(111, 135, 113, 0.2);
}

main {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  display: grid;
  gap: 1rem;
  padding: clamp(2rem, 3vw, 3rem);
  min-height: 72vh;
  align-items: end;
  background:
    linear-gradient(to bottom, rgba(238, 241, 234, 0.35) 0%, rgba(226, 235, 228, 0.82) 100%),
    url("./1.jpeg");
  background-size: cover;
  background-position: center 25%;
  overflow: hidden;
  position: relative;
}

.hero h1,
.detail-card h2,
.story-card h2,
.dresscode-card h2,
.gifts-card h2,
.travel-card h2,
.weather-card h2,
.info-card h2,
.speech-card h2,
.program-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

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

.hero-title-sub {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  color: var(--muted);
}

.hero-text,
.story-card p,
.info-card p,
.detail-card p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-text {
  max-width: 40rem;
  font-size: 1.12rem;
}

.hero-language-panel {
  justify-self: start;
  margin-top: 1rem;
  padding: 1.25rem;
  background: var(--bg-soft);
  border: 1px solid rgba(111, 135, 113, 0.2);
  border-radius: 24px;
}

.hero-language-note {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.details-grid,
.info-card {
  display: grid;
  gap: 1.25rem;
}

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

.info-card {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.detail-card,
.story-card,
.dresscode-card,
.gifts-card,
.travel-card,
.weather-card,
.program-card,
.info-card,
.speech-card {
  padding: 1.6rem;
}

.weather-card h2,
.weather-card h3 {
  font-size: 1.25rem;
}

.weather-card h3 {
  margin: 1.25rem 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 400;
}

.detail-card {
  background: var(--card-strong);
}

.detail-card h2,
.story-card h2,
.info-card h2,
.speech-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.story-card h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(111, 135, 113, 0.35);
  border-radius: 20px;
  background: transparent;
}

.dresscode-card h2,
.gifts-card h2,
.travel-card h2,
.program-card h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 0.25rem;
}

.detail-emphasis {
  margin-bottom: 0.4rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Story card */
.story-card {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.story-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Illustrated cards: flex layout */
.dresscode-card,
.gifts-card,
.travel-card,
.program-card {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.weather-card {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.speech-card {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.speech-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1.25rem;
}

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

.card-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.65rem;
}

/* Card-body paragraph styling */
.card-body p,
.speech-main p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
}

/* Card illustrations */
.card-illustration {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  color: var(--accent-strong);
  opacity: 0.28;
  pointer-events: none;
  place-self: center;
}

.story-right .card-illustration {
  opacity: 0.22;
  align-self: flex-start;
}

.info-block {
  display: grid;
  gap: 0.65rem;
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.contact-phone,
.contact-facebook {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--accent-strong);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.contact-phone {
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(111, 135, 113, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-phone svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.contact-facebook {
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(111, 135, 113, 0.35);
  background: rgba(255, 255, 255, 0.6);
}

.contact-facebook svg {
  width: 18px;
  height: 18px;
}

.contact-phone:hover,
.contact-facebook:hover {
  color: var(--text);
  border-color: rgba(111, 135, 113, 0.55);
  background: rgba(255, 255, 255, 0.85);
}

.cal-button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(111, 135, 113, 0.35);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.6);
  transition: border-color 160ms ease, background 160ms ease;
}

.cal-button:hover,
.cal-button:focus-visible {
  border-color: rgba(111, 135, 113, 0.6);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

.cta-button {
  justify-self: start;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  color: #f8fbf7;
  background: linear-gradient(135deg, var(--accent-cool) 0%, var(--accent-strong) 100%);
  box-shadow: 0 16px 30px rgba(111, 135, 113, 0.18);
  font-weight: 700;
}

.cta-button:hover,
.cta-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .details-grid,
  .story-card,
  .info-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .topbar {
    border-radius: 28px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 100%);
    padding-top: 0.5rem;
  }

  .topbar {
    position: static;
    padding: 1rem;
  }

  .hero {
    padding: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .hero-title-sub {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .language-switcher,
  .language-switcher-large {
    width: 100%;
  }

  .language-button {
    flex: 1 1 100%;
    text-align: center;
  }

  .card-illustration {
    display: none;
  }

  .dresscode-card,
  .gifts-card,
  .travel-card,
  .weather-card,
  .program-card,
  .speech-card {
    display: block;
  }

  .story-right {
    flex-direction: column;
  }
}
