:root {
  --cream: #faf6f0;
  --gold: #b8860b;
  --gold-light: #d4a84b;
  --green-deep: #1a3d2e;
  --green-soft: #2d5a47;
  --text: #2c2419;
  --text-muted: #5c5348;
  --shadow: rgba(26, 61, 46, 0.12);
  --radius: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: linear-gradient(165deg, #e8f0eb 0%, var(--cream) 40%, #f5ebe0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2.5rem;
  line-height: 1.6;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a3d2e' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.card {
  position: relative;
  width: 100%;
  max-width: 28rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  box-shadow:
    0 4px 24px var(--shadow),
    0 0 0 1px rgba(184, 134, 11, 0.15);
  padding: 2.25rem 1.75rem 2rem;
  text-align: center;
}

.hero .basmalah {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  color: var(--green-deep);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.hero .eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--green-deep);
  margin: 0;
  letter-spacing: 0.04em;
}

.guest-block {
  margin-top: 1.25rem;
  padding: 1rem 1.75rem 0.9rem;
  background: linear-gradient(
    180deg,
    rgba(250, 246, 240, 0.95) 0%,
    rgba(255, 255, 255, 0.4) 100%
  );
  border-top: 1px solid rgba(184, 134, 11, 0.4);
  border-bottom: 1px solid rgba(184, 134, 11, 0.4);
  position: relative;
}

.guest-block::before,
.guest-block::after {
  content: "✦";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-light);
  font-size: 0.7rem;
  line-height: 1;
}

.guest-block::before {
  left: 0.65rem;
}

.guest-block::after {
  right: 0.65rem;
}

.guest-label {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.guest-name {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.child-photo {
  margin: 0;
  padding: 1.25rem 0 0.25rem;
  text-align: center;
}

.child-photo img {
  display: inline-block;
  width: min(13.5rem, 78vw);
  height: min(13.5rem, 78vw);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(184, 134, 11, 0.45);
  box-shadow:
    0 6px 20px var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.child {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184, 134, 11, 0.25);
}

.child .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin: 0 0 0.35rem;
}

.child .name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--green-deep);
  margin: 0 0 1rem;
  line-height: 1.25;
}

.child .verse {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
  max-width: 22rem;
  margin-inline: auto;
}

.child .ref {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.72rem;
}

.details {
  margin-top: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.detail-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  background: var(--cream);
  border-radius: 0.75rem;
  border-left: 3px solid var(--gold-light);
}

.detail-icon {
  font-size: 1.1rem;
  line-height: 1.4;
}

.detail-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 0 0 0.15rem;
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.address {
  font-weight: 400;
  line-height: 1.45;
}

.message {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.message p {
  margin: 0 0 0.75rem;
}

.message .closing {
  margin-bottom: 0;
  color: var(--green-soft);
  font-weight: 500;
}

.actions {
  margin-top: 1.75rem;
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 16rem;
  padding: 0.9rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--green-soft), var(--green-deep));
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(26, 61, 46, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-maps:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 61, 46, 0.4);
}

.btn-maps:active {
  transform: translateY(0);
}

.family-sign {
  margin: 1.5rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--green-deep);
}

@media (min-width: 480px) {
  .card {
    padding: 2.5rem 2.25rem 2.25rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .child .name {
    font-size: 2.1rem;
  }

  .guest-name {
    font-size: 1.85rem;
  }
}
