:root {
  --base-bg: #fff5f6;
  --surface-bg: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-color: #e11d48;
  --accent-hover: #be123c;
  --gold-accent: #d97706;
  --white: #ffffff;

  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;

  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--base-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
}

:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--text-primary);
}
h1 {
  font-size: clamp(2.8rem, 10vw, 5rem);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  text-align: center;
}
p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  min-height: 44px;
  min-width: 44px;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}
.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  box-shadow: none;
  margin-top: 1rem;
}
.btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--white);
  transform: none;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
  background:
    linear-gradient(
      to bottom,
      rgba(255, 245, 246, 0.75) 0%,
      rgba(255, 245, 246, 1) 80%
    ),
    url("images/hero-bg.jpg") center top/cover no-repeat;
}

.hero-date {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  display: block;
}

.hero-quick-details {
  margin: 1.5rem 0 2rem;
}
.hero-quick-details p {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 500;
}
.hero-quick-details p.highlight {
  font-weight: 600;
  color: var(--accent-color);
  font-size: 1.25rem;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-md);
  padding-bottom: var(--spacing-xl);
}

/* Polaroid Collage Section */
.polaroid-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  width: 100%;
  max-width: 800px;
}

.polaroid {
  background: var(--surface-bg);
  padding: 8px 8px 32px 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  width: calc(50% - 0.5rem);
  max-width: 220px;
  transition:
    transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.3s ease-out,
    z-index 0s;
  position: relative;
  z-index: 1;
}

.polaroid:nth-child(odd) {
  transform: scale(1) rotate(-3deg);
}
.polaroid:nth-child(even) {
  transform: scale(1) rotate(4deg);
  margin-top: 1.5rem;
}
.polaroid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #eee;
}

@media (min-width: 600px) {
  .polaroid-grid {
    gap: 1.5rem;
    margin-top: 4rem;
  }
  .polaroid {
    width: calc(33.333% - 1rem);
    padding: 12px 12px 40px 12px;
    max-width: 240px;
  }
  .polaroid:nth-child(odd) {
    transform: scale(1) rotate(-4deg);
  }
  .polaroid:nth-child(even) {
    transform: scale(1) rotate(5deg);
    margin-top: 2rem;
  }
}

/* The Hover Animation MUST come after the @media query above, 
  otherwise the desktop rotations will override it! 
*/
.polaroid:hover {
  transform: scale(1.05) rotate(0deg) !important;
  z-index: 10;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Vertical Bento Box Layout */
.bento-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: var(--spacing-lg) 0;
}

.bento-card {
  background-color: var(--surface-bg);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Red Serif Headers */
.bento-card h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
}

.bento-card p {
  color: var(--text-primary);
  font-size: 1.35rem;
  margin-bottom: 0;
  font-weight: 500;
}

.bento-card p.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 0.5rem;
}

/* Google Map Embed Container */
.map-container {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  height: 250px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .polaroid,
  .polaroid:hover,
  .bento-card,
  .bento-card:hover {
    transform: none !important;
    opacity: 1 !important;
  }
}
