:root {
  --pink: #df7f97;
  --pink-dark: #c7657e;
  --pink-soft: #fff1f4;
  --rose: #6d3f40;
  --gold: #c89b4e;
  --cream: #fffafb;
  --line: #f1c3cc;
  --shadow: 0 24px 65px rgba(111, 58, 65, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-width: 0;
  color: var(--rose);
  font-family: Montserrat, Arial, sans-serif;
  background:
    radial-gradient(
      circle at 20% 10%,
      #ffffff 0,
      #fff3f6 38%,
      #f3e8ea 100%
    );
  overflow-x: hidden;
}

a,
button,
input,
textarea {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==================================================
   HERO
   ================================================== */

.hero {
  min-height: 100svh;
  padding: 96px 18px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.92),
      rgba(255, 239, 244, 0.74)
    ),
    url("https://images.unsplash.com/photo-1520854221256-17451cc331bf?auto=format&fit=crop&w=1800&q=80")
      center / cover;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.35;
}

.hero::before {
  background: #ffd9e2;
  left: -120px;
  top: 70px;
}

.hero::after {
  background: #ffffff;
  right: -120px;
  bottom: 60px;
}

/* ==================================================
   NAVIGATION
   ================================================== */

.nav {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border: 1px solid rgba(223, 127, 151, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 5;
  box-shadow: 0 10px 30px rgba(111, 58, 65, 0.08);
}

/* Fixed because the HTML brand is plain text, not a span */
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--pink-dark);
  text-decoration: none;
  font-family: "Great Vibes", cursive;
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.nav-links a {
  color: var(--rose);
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 700;
  white-space: nowrap;
}

/* ==================================================
   SHARED CARDS
   ================================================== */

.hero-card,
.section {
  position: relative;
  z-index: 2;
  width: min(850px, calc(100% - 28px));
  text-align: center;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(223, 127, 151, 0.33);
  box-shadow: var(--shadow);
  border-radius: 34px;
  padding: 50px 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink-dark);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 10px 0;
  color: var(--rose);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(52px, 8vw, 76px);
  line-height: 0.92;
}

.honoring {
  margin: 18px 0 6px;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 12px;
  font-weight: 700;
}

.hero h2 {
  margin: 14px 0 8px;
  color: #c96f85;
  font-family: "Great Vibes", cursive;
  font-size: clamp(46px, 7vw, 64px);
  line-height: 1.05;
  font-weight: 400;
}

.illustration {
  margin: 6px auto 16px;
  font-size: 48px;
}

.blessing {
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 18px 20px;
  background: var(--pink-soft);
  border-radius: 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==================================================
   BUTTONS
   ================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  margin: 0;
  padding: 15px 24px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

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

.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #ec91a5, #d96f88);
  box-shadow: 0 14px 28px rgba(223, 127, 151, 0.28);
}

.secondary {
  color: var(--pink-dark);
  background: #ffffff;
  border: 1px solid #efbdc7;
}

/* ==================================================
   SECTIONS
   ================================================== */

.section {
  margin: 36px auto;
  padding: 34px 24px;
}

.section h3 {
  margin: 6px 0 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 6vw, 48px);
  line-height: 1.05;
}

/* ==================================================
   EVENT DETAILS
   ================================================== */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-grid article {
  min-width: 0;
  padding: 16px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.detail-grid h4 {
  margin: 10px 0 7px;
  color: var(--pink-dark);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 11px;
}

.detail-grid p {
  margin: 0 0 8px;
  line-height: 1.45;
}

.detail-grid a {
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 800;
}

/* Professional SVG icon badges */
.detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  margin: 0 auto 10px;
  color: var(--pink-dark);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 238, 243, 0.96)
  );
  border: 1px solid rgba(230, 127, 153, 0.3);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(173, 102, 121, 0.11);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.detail-icon svg {
  display: block;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex: 0 0 20px;
}

.detail-grid article:hover .detail-icon {
  transform: translateY(-4px);
  box-shadow: 0 15px 34px rgba(173, 102, 121, 0.19);
}

/* Prevent old emoji icon rules from affecting SVG cards */
.detail-grid article > span {
  display: none;
}

/* ==================================================
   COUNTDOWN
   ================================================== */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.countdown div {
  min-width: 0;
  padding: 20px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.countdown strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 42px;
  line-height: 1;
}

.countdown span {
  color: var(--pink-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
}

/* ==================================================
   SCRIPTURE
   ================================================== */

.scripture {
  background: linear-gradient(135deg, #ffffff, #fff0f3);
}

.quote {
  color: #bd6a7d;
  font-family: "Great Vibes", cursive;
  font-size: clamp(36px, 6vw, 48px);
  line-height: 1.25;
}

.scripture p {
  margin-bottom: 0;
}

/* ==================================================
   REGISTRY
   ================================================== */

.registry p {
  font-family: "Cormorant Garamond", serif;
  font-size: 23px;
  line-height: 1.45;
}

/* ==================================================
   HEARTFELT MESSAGE
   ================================================== */

.heart-message {
  overflow: hidden;
  padding: 44px 42px;
}

.heart-message::before,
.heart-message::after {
  position: absolute;
  color: rgba(226, 126, 151, 0.07);
  font-family: Georgia, serif;
  font-size: 110px;
  line-height: 1;
  content: "❀";
  pointer-events: none;
}

.heart-message::before {
  top: -22px;
  left: -16px;
}

.heart-message::after {
  right: -16px;
  bottom: -28px;
  transform: rotate(180deg);
}

.heart-message p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto 16px;
  color: #735153;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  line-height: 1.62;
}

.heart-message p strong {
  color: var(--pink-dark);
}

.message-divider {
  margin: 0 0 18px;
  color: var(--pink-dark);
  font-size: 27px;
}

.message-signature {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
}

.message-signature > span:first-child {
  color: #a87678;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-style: italic;
}

.message-signature strong {
  margin-top: 4px;
  color: var(--pink-dark);
  font-family: "Great Vibes", cursive;
  font-size: 38px;
  font-weight: 400;
}

.message-heart {
  margin-top: 6px;
  color: var(--pink);
}

/* ==================================================
   RSVP
   ================================================== */

.rsvp-form {
  max-width: 760px;
  margin: auto;
}

.rsvp-form input,
.rsvp-form textarea {
  width: 100%;
  margin: 7px 0;
  padding: 15px 17px;
  color: var(--rose);
  background: #ffffff;
  border: 1px solid #efb8c3;
  border-radius: 16px;
  font-size: 16px;
}

.rsvp-form textarea {
  min-height: 105px;
  resize: vertical;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 9px 0;
}

.choice-row label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  text-align: left;
  line-height: 1.35;
  background: #ffffff;
  border: 1px solid #efb8c3;
  border-radius: 16px;
}

.choice-row input {
  width: auto;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.notice {
  max-width: 680px;
  margin: 0 auto 16px;
  padding: 13px;
  border-radius: 14px;
}

.notice.success {
  color: #287342;
  background: #eafaf0;
}

.notice.error {
  color: #aa3333;
  background: #fff0f0;
}

/* ==================================================
   FOOTER
   ================================================== */

footer {
  padding: 42px 20px 68px;
  text-align: center;
  background: linear-gradient(180deg, transparent, #ffdbe4);
}

footer .script {
  margin: 0;
  color: var(--gold);
  font-family: "Great Vibes", cursive;
  font-size: 52px;
}

.heart {
  color: var(--pink);
  font-size: 24px;
}

/* ==================================================
   ANIMATIONS
   ================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

.petal {
  position: fixed;
  top: -40px;
  z-index: 1;
  opacity: 0.65;
  font-size: 18px;
  pointer-events: none;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 82px 8px 22px;
    align-items: flex-start;
  }

  .nav {
    top: 8px;
    width: calc(100% - 12px);
    padding: 9px 10px;
    gap: 8px;
    border-radius: 20px;
  }

  .brand {
    font-size: 24px;
  }

  .nav-links {
    gap: 9px;
  }

  .nav-links a {
    font-size: 8px;
    letter-spacing: 0.8px;
  }

  .hero-card,
  .section {
    width: calc(100% - 12px);
    padding: 27px 14px;
    border-radius: 23px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero h2 {
    font-size: 41px;
    overflow-wrap: anywhere;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 2.2px;
  }

  .blessing {
    padding: 15px;
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .btn {
    width: 100%;
    min-width: 0;
    padding: 14px 18px;
  }

  .section {
    margin: 16px auto;
  }

  .section h3 {
    margin-bottom: 15px;
    font-size: 32px;
  }

  /* Event details stay in one compact row */
  .detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .detail-grid article {
    padding: 9px 4px;
    border-radius: 13px;
  }

  .detail-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    margin-bottom: 5px;
  }

  .detail-icon svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    flex: 0 0 14px;
  }

  .detail-grid h4 {
    margin: 5px 0 4px;
    font-size: 7px;
    letter-spacing: 0.6px;
  }

  .detail-grid p {
    margin-bottom: 5px;
    font-size: 9px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .detail-grid a {
    font-size: 9px;
  }

  /* Countdown stays in one compact row */
  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .countdown div {
    padding: 12px 3px;
    border-radius: 13px;
  }

  .countdown strong {
    font-size: 27px;
  }

  .countdown span {
    font-size: 7px;
    letter-spacing: 0.6px;
  }

  .quote {
    font-size: 34px;
  }

  .registry p {
    font-size: 19px;
  }

  .heart-message {
    padding: 29px 17px;
  }

  .heart-message p {
    font-size: 18px;
    line-height: 1.52;
  }

  .message-signature strong {
    font-size: 32px;
  }

  .choice-row {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  footer {
    padding: 34px 16px 52px;
  }

  footer .script {
    font-size: 46px;
  }
}

@media (max-width: 390px) {
  .brand {
    font-size: 21px;
  }

  .nav-links {
    gap: 7px;
  }

  .nav-links a {
    font-size: 7px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero h2 {
    font-size: 37px;
  }

  .countdown strong {
    font-size: 24px;
  }

  .detail-grid p {
    font-size: 8px;
  }

  .detail-grid a {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .petal {
    display: none;
  }

  .btn,
  .detail-icon {
    transition: none;
  }
}


/* ==================================================
   FINAL EVENT ICON SAFETY OVERRIDES
   ================================================== */

.detail-grid .detail-icon {
  overflow: hidden;
}

.detail-grid .detail-icon svg {
  transform: none !important;
}

@media (max-width: 760px) {
  .details {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .details .section h3 {
    margin-bottom: 12px;
  }

  .detail-grid {
    align-items: stretch;
  }

  .detail-grid article {
    min-height: 0;
  }
}
/* ==================================================
   EVENT DETAILS — HIGH VISIBILITY
   ================================================== */

.details {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.96),
      rgba(255, 244, 247, 0.94)
    );
  border: 2px solid rgba(223, 127, 151, 0.38);
}

.details h3 {
  color: var(--rose);
  font-size: clamp(44px, 6vw, 58px);
  margin-bottom: 28px;
}

.detail-grid {
  gap: 18px;
}

.detail-grid article {
  position: relative;
  padding: 24px 16px 26px;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fff8fa 100%
    );
  border: 2px solid rgba(223, 127, 151, 0.42);
  border-radius: 24px;
  box-shadow:
    0 14px 34px rgba(111, 58, 65, 0.10);
}

.detail-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  max-width: 52px;
  max-height: 52px;
  margin-bottom: 12px;
  background: #fff2f5;
  border: 2px solid rgba(223, 127, 151, 0.36);
}

.detail-icon svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  stroke-width: 2.2;
}

.detail-grid h4 {
  margin: 6px 0 10px;
  color: var(--pink-dark);
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 800;
}

.detail-grid p {
  margin: 0 auto 10px;
  color: var(--rose);
  font-family: "Cormorant Garamond", serif;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 700;
}

.detail-grid article:nth-child(3) p {
  max-width: 260px;
  font-size: 23px;
  line-height: 1.2;
}

.detail-grid a {
  display: inline-block;
  margin-top: 7px;
  padding: 9px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #e98aa0, #d66d87);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(223, 127, 151, 0.24);
}

/* Mobile */
@media (max-width: 760px) {
  .details {
    padding: 26px 12px;
  }

  .details h3 {
    font-size: 38px;
    margin-bottom: 20px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .detail-grid article {
    padding: 18px 14px 20px;
    border-radius: 18px;
  }

  .detail-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    max-width: 42px;
    max-height: 42px;
    margin-bottom: 8px;
  }

  .detail-icon svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
  }

  .detail-grid h4 {
    font-size: 10px;
    margin-bottom: 7px;
  }

  .detail-grid p {
    font-size: 26px;
  }

  .detail-grid article:nth-child(3) p {
    max-width: 100%;
    font-size: 22px;
  }

  .detail-grid a {
    font-size: 12px;
    padding: 9px 18px;
  }
}