
:root {
  --bg: #120f0d;
  --surface: #f7efe5;
  --surface-dark: #1b1714;
  --text: #f7efe5;
  --text-dark: #241f1b;
  --muted: #b9aa9d;
  --accent: #c49a5a;
  --accent-dark: #8b5e34;
  --wine: #6f1d2d;
  --green: #18372f;
  --black: #090807;
  --gold: #c49a5a;
  --border: rgba(196, 154, 90, 0.22);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
  line-height: 1.7;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Editorial headings */
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--surface);
}

h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(196, 154, 90, 0.16), transparent 26%),
    radial-gradient(circle at 80% 10%, rgba(111, 29, 45, 0.22), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(24, 55, 47, 0.24), transparent 30%);
  pointer-events: none;
  z-index: -1;
}

button,
a {
  font: inherit;
}

main {
  display: block;
}

.hero {
  display: grid;
  place-items: center;
  padding: 5rem 1.5rem 5rem;
  background:
    linear-gradient(90deg, rgba(18, 15, 13, 0.88), rgba(18, 15, 13, 0.62)),
    url("assets/img/backgrounds/bg-gala-dark.png") center / cover no-repeat;
}

.hero-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.hero-photo {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(196,154,90,0.45);
  box-shadow: 0 34px 80px rgba(0,0,0,0.55);
}

.hero-copy h1 {
  color: var(--surface);
  font-size: clamp(3rem, 6vw, 6rem);
}

.hero-note {
  color: var(--muted);
}

.hero-actions .button {
  background: var(--gold);
  color: var(--black);
}

.button-secondary {
  background: rgba(196, 154, 90, 0.08);
  color: var(--gold);
  border: 1px solid rgba(196,154,90,0.45);
}

.history-section .button-secondary,
.faq-section .button-secondary,
.contact-section .button-secondary,
.note-section .button-secondary,
.card.card-quiet .button-secondary {
  color: var(--accent-dark);
  border-color: rgba(139, 94, 52, 0.45);
  background: rgba(139, 94, 52, 0.08);
}

.hero-copy {
  text-align: left;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
}

.hero-text,
.hero-note {
  margin: 1.25rem 0 0;
  max-width: 680px;
}

.hero-note {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-badges span {
  border: 1px solid rgba(196, 154, 90, 0.45);
  color: var(--gold);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  background: rgba(196, 154, 90, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.section {
  padding-top: 1rem;
}

.section-header {
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 2.5vw, 2.75rem);
  letter-spacing: -0.04em;
}

p,
li {
  color: var(--text);
}

ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

li {
  margin-bottom: 0.75rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface-dark);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-quiet {
  background: linear-gradient(180deg, rgba(31,26,24,0.95), rgba(27,23,20,0.9));
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover h3 {
  color: var(--gold);
}

.history-section,
.dresscode-section,
.contact-section,
.note-section,
.faq-section,
.gallery {
  background: var(--surface-dark);
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Make history section lighter like an invitation paper */
.history-section {
  background:
    linear-gradient(90deg, rgba(247, 239, 229, 0.92), rgba(247, 239, 229, 0.82)),
    url("assets/img/backgrounds/bg-paper-story.png") center / cover no-repeat;
  color: var(--text-dark);
}

.history-section p,
.history-section .eyebrow,
.history-section h2 {
  color: var(--text-dark);
}

.history-section .photo-card {
  background: #fff;
}

.history-section,
.dresscode-section,
.contact-section,
.note-section,
.faq-section {
  padding: 2.5rem;
}

.history-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.35fr 0.85fr;
  align-items: center;
}

.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  min-height: 420px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(36, 27, 21, 0.08);
}

.photo-card img,
.hero-photo img,
.gallery-card img,
.story-photo img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Aspect ratios for consistent layout */
.hero-photo,
.story-photo {
  aspect-ratio: 4 / 5;
  min-height: auto;
}

.hero-photo img,
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
  display: block;
  height: auto;
}

.hero-photo img,
.story-photo img {
  object-position: center center;
}

.gallery-card:nth-child(2) img {
  object-position: center top;
}

.gallery-card:nth-child(4) img {
  object-position: center center;
}

.hero-visual {
  display: grid;
  justify-items: center;
}

.dresscode-grid {
  display: block;
}

.dresscode-section {
  background:
    linear-gradient(90deg, rgba(18, 15, 13, 0.82), rgba(111, 29, 45, 0.58)),
    url("assets/img/backgrounds/bg-dresscode-fabric.png") center / cover no-repeat;
}

.dresscode-copy {
  display: grid;
  gap: 1rem;
}

.dresscode-copy-wide {
  max-width: 780px;
}

/* Removed the old dresscode visual block to keep the layout clean */
.dresscode-moodboard,
.dresscode-moodboard::before,
.dresscode-editorial,
.dresscode-number {
  display: none !important;
}

.gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Make first gallery item larger for editorial layout */
.gallery-grid > .gallery-card:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.dresscode-quote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1.05;
  color: var(--gold);
  margin: 0 0 1rem;
}

.dresscode-signature {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin: 0;
}

/* Venue / Castillo section */
.venue-section {
  background:
    linear-gradient(90deg, rgba(18, 15, 13, 0.82), rgba(24, 55, 47, 0.72)),
    url("assets/img/backgrounds/bg-castillo.png") center / cover no-repeat;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
}

.venue-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.venue-copy p {
  color: var(--muted);
}

.venue-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.venue-facts span {
  border: 1px solid rgba(196, 154, 90, 0.35);
  border-radius: 999px;
  color: var(--surface);
  background: rgba(247, 239, 229, 0.06);
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
}

.venue-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.venue-links a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.venue-photo {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(196, 154, 90, 0.42);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.venue-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.venue-visual {
  min-height: 360px;
  border-radius: 18px;
  border: 1px solid rgba(196, 154, 90, 0.42);
  background:
    radial-gradient(circle at 30% 20%, rgba(196, 154, 90, 0.2), transparent 28%),
    linear-gradient(160deg, rgba(9, 8, 7, 0.45), rgba(9, 8, 7, 0.82)),
    linear-gradient(135deg, var(--green), var(--wine));
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.venue-visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(196, 154, 90, 0.22);
  border-radius: 999px 999px 18px 18px;
}

.venue-card {
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
  gap: 0.5rem;
  color: var(--surface);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.venue-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  color: var(--gold);
  letter-spacing: 0.08em;
}

.venue-kicker {
  color: var(--muted);
  font-size: 0.8rem;
}

.inspiration-section {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
}

.inspiration-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.inspiration-strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(196, 154, 90, 0.28);
}

.music-section {
  background: linear-gradient(180deg, rgba(27,23,20,0.96), rgba(18,15,13,0.96));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
}

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

.music-card {
  background: rgba(247, 239, 229, 0.06);
  border: 1px solid rgba(196, 154, 90, 0.28);
  border-radius: 18px;
  overflow: hidden;
}

.music-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.music-card h3 {
  margin: 1rem;
  color: var(--gold);
}

@media (max-width: 960px) {
  .venue-grid,
  .inspiration-strip,
  .music-grid,
  .timeline-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .venue-visual,
  .venue-photo {
    min-height: 280px;
  }

  .inspiration-strip {
    grid-template-columns: 1fr;
  }

  .music-grid {
    grid-template-columns: 1fr;
  }
}

/* Timeline section styles */
.timeline-section {
  background:
    linear-gradient(90deg, rgba(18, 15, 13, 0.86), rgba(18, 15, 13, 0.66)),
    url("assets/img/backgrounds/bg-night-water.png") center / cover no-repeat;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin-top: 1.5rem;
}

.timeline-section p {
  color: var(--muted);
}

.timeline-section h2,
.timeline-section h3 {
  color: var(--surface);
}

.timeline-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
}

.timeline-item {
  background: rgba(247, 239, 229, 0.06);
  border: 1px solid rgba(196, 154, 90, 0.28);
  border-radius: 18px;
  padding: 1.25rem;
  text-align: center;
}

.timeline-item h3 {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
}

/* Hashtag style for sharing */
.hashtag {
  margin-top: 0.5rem;
  color: var(--muted);
  font-weight: 700;
}
.hashtag .tag {
  color: var(--wine);
  font-weight: 900;
  margin-left: 0.35rem;
}

.gallery-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: #fffaf4;
  box-shadow: 0 20px 36px rgba(36, 27, 21, 0.08);
  display: grid;
  gap: 1rem;
}

.gallery-card p {
  margin: 0 1.25rem 1.25rem;
  color: var(--muted);
}

.contact-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.contact-card,
.faq-card {
  background: linear-gradient(135deg, rgba(255, 250, 244, 0.95), rgba(247, 239, 229, 0.88));
  border: 1px solid rgba(196, 154, 90, 0.35);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 4px 16px rgba(36, 27, 21, 0.06);
}

.contact-card,
.contact-card p,
.contact-card h3 {
  color: var(--text-dark);
}

.contact-name {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.whatsapp-button {
  width: 100%;
}

.bank-details {
  margin: 1rem 0 0;
  color: var(--muted);
  font-style: italic;
}

.faq-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-card {
  color: var(--text-dark);
}

.faq-card h3 {
  margin-top: 0;
  color: var(--text-dark);
}

.faq-card p {
  color: #4f453b;
}

.link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}

.text-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 2px solid rgba(196, 154, 90, 0.8);
  text-underline-offset: 4px;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.text-link:hover {
  color: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}

.hero-badge-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  background: rgba(196, 154, 90, 0.15);
  border: 1px solid rgba(196, 154, 90, 0.35);
  border-radius: 999px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.hero-badge-link:hover {
  background: rgba(196, 154, 90, 0.28);
  border-color: rgba(196, 154, 90, 0.65);
  color: #fff;
}

.music-card {
  background: rgba(247, 239, 229, 0.06);
  border: 1px solid rgba(196, 154, 90, 0.28);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.music-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(36, 27, 21, 0.12);
  border-color: rgba(196, 154, 90, 0.55);
}

.music-card h3 {
  margin: 1rem;
  color: var(--gold);
}

.music-card:hover h3 {
  color: #fff;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--gold);
}

.card-link:hover {
  color: #fff;
}

.history-section .link {
  color: var(--accent-dark);
}

/* Keep moodboard links visible on dark background */
/* dresscode-moodboard is no longer rendered */

.footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .hero-inner,
  .history-grid,
  .dresscode-grid,
  .card-grid,
  .gallery-grid,
  .contact-cards,
  .faq-grid,
  .venue-grid,
  .music-grid,
  .inspiration-strip {
    grid-template-columns: 1fr;
  }

  .gallery-grid > .gallery-card:nth-child(1) {
    grid-column: auto;
    grid-row: auto;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 2rem;
  }

  .venue-photo img {
    min-height: 260px;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 3rem 1rem 4rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .container {
    padding: 1.5rem 0 3rem;
  }

  .section,
  .history-section,
  .venue-section,
  .dresscode-section,
  .timeline-section,
  .contact-section,
  .note-section,
  .faq-section,
  .gallery {
    border-radius: 18px;
  }

  .history-section,
  .venue-section,
  .dresscode-section,
  .timeline-section,
  .contact-section,
  .note-section,
  .faq-section {
    padding: 1.4rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-actions .button,
  .whatsapp-button {
    width: 100%;
  }

  .hero-badges span {
    font-size: 0.66rem;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .dresscode-quote {
    font-size: 1.55rem;
  }

  .timeline-item h3 {
    font-size: 1.25rem;
  }

  .music-card img,
  .inspiration-strip img {
    max-height: 420px;
    object-fit: cover;
  }
}
