/* ============ COLOR PALETTE ============
   Pulled from the Scala Cirò wine label:
   - Cream/butter (background)
   - Cobalt blue (the label)
   - Deep gold/mustard (the wine)
   - Off-white parchment
   - Tomato red (accent from the picnic image)
========================================= */
:root {
  --cream: #f4ead5;
  --cream-deep: #ecdfbf;
  --cobalt: #1e4d8b;
  --cobalt-deep: #133766;
  --gold: #d4a017;
  --gold-deep: #b8860b;
  --mustard: #e8b54a;
  --tomato: #c8442a;
  --olive: #5c6b3a;
  --ink: #1a1a2e;
  --parchment: #faf3e0;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Paper grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(212, 160, 23, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(30, 77, 139, 0.04) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0 0.1 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.content { position: relative; z-index: 2; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  background: var(--cobalt);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 5vw;
}

.stripe-border {
  position: absolute;
  left: 0;
  right: 0;
  height: 24px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 20px,
    var(--cream) 20px 40px
  );
}
.stripe-border.top { top: 0; }
.stripe-border.bottom { bottom: 0; }

.sun {
  position: absolute;
  width: 80px;
  height: 80px;
  color: var(--gold);
  animation: rotate 60s linear infinite;
}
.sun-1 { top: 80px; right: 8%; }
.sun-2 { bottom: 100px; left: 6%; width: 50px; height: 50px; }

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.hero-tag {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.35em;
  font-size: clamp(11px, 1.3vw, 14px);
  color: var(--gold);
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  animation: fadeUp 1s ease 0.2s both;
  text-transform: uppercase;
  width: fit-content;
  max-width: 90%;
}
.hero-tag::before, .hero-tag::after {
  content: '';
  height: 1px;
  background: var(--gold);
  flex: 0 0 40px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(72px, 16vw, 240px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--cream);
  text-align: center;
  margin: 0 auto;
  max-width: 1200px;
  animation: fadeUp 1.2s ease 0.4s both;
}

.hero-title .ampersand {
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
  display: inline-block;
  transform: rotate(-8deg) translateY(-10px);
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 32px);
  text-align: center;
  margin-top: 30px;
  color: var(--cream-deep);
  animation: fadeUp 1.2s ease 0.6s both;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 80px);
  margin-top: 60px;
  flex-wrap: wrap;
  animation: fadeUp 1.2s ease 0.8s both;
}

.hero-meta-item { text-align: center; }

.hero-meta-label {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 8px;
}

.hero-meta-value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: var(--cream);
}

.birds {
  position: absolute;
  pointer-events: none;
}
.bird {
  fill: var(--cream);
  opacity: 0.7;
  animation: fly 8s ease-in-out infinite;
}
.birds-1 { top: 18%; left: 10%; }
.birds-1 .bird { animation-delay: 0s; }
.birds-2 { bottom: 22%; right: 12%; }
.birds-2 .bird { animation-delay: -3s; }

@keyframes fly {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -15px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ MARQUEE ============ */
.marquee {
  background: var(--gold);
  color: var(--cobalt-deep);
  overflow: hidden;
  padding: 18px 0;
  border-top: 3px solid var(--cobalt-deep);
  border-bottom: 3px solid var(--cobalt-deep);
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.marquee-dot {
  color: var(--tomato);
  font-size: 32px;
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ============ DETAILS SECTION ============ */
.details {
  padding: 120px 5vw;
  background: var(--cream);
  position: relative;
}

.details-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.details-text-block { position: relative; }

.details-eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.5em;
  font-size: 13px;
  color: var(--tomato);
  margin-bottom: 24px;
}

.details-heading {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.95;
  color: var(--cobalt);
  margin-bottom: 36px;
  letter-spacing: -0.02em;
}

.details-heading em { color: var(--gold-deep); }

.details-prose {
  font-size: 22px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 480px;
}

.details-prose:first-letter {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 64px;
  float: left;
  line-height: 0.9;
  margin: 8px 12px 0 0;
  color: var(--tomato);
  font-weight: 900;
}

.info-card {
  background: var(--parchment);
  border: 2px solid var(--cobalt);
  padding: 50px 40px;
  position: relative;
  box-shadow: 12px 12px 0 var(--gold);
  transform: rotate(1.5deg);
  transition: transform 0.4s ease;
}

.info-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.info-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--cobalt);
  pointer-events: none;
}

.info-card-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(30, 77, 139, 0.3);
}

.info-card-row:last-child { border-bottom: none; }

.info-card-label {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.3em;
  font-size: 13px;
  color: var(--tomato);
  flex: 0 0 80px;
}

.info-card-value {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--cobalt-deep);
  line-height: 1.2;
}

.info-card-value small {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 4px;
}

/* ============ DRINKS SECTION ============ */
.drinks {
  padding: 100px 5vw;
  background: var(--tomato);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
}

.drinks::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0 60px,
    rgba(255, 255, 255, 0.03) 60px 62px
  );
  pointer-events: none;
}

.drinks-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.drinks-eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.6em;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 20px;
}

.drinks-headline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.95;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.drinks-prose {
  font-size: 22px;
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-style: italic;
}

.drinks-button {
  display: inline-block;
  background: var(--parchment);
  color: var(--tomato);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.3em;
  padding: 22px 50px;
  text-decoration: none;
  border: 3px solid var(--parchment);
  transition: all 0.3s ease;
  box-shadow: 6px 6px 0 var(--cobalt-deep);
}

.drinks-button:hover {
  background: var(--gold);
  color: var(--cobalt-deep);
  border-color: var(--gold);
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--cobalt-deep);
}

.bottle-decor {
  position: absolute;
  width: 60px;
  color: var(--gold);
  opacity: 0.4;
}
.bottle-1 { top: 60px; left: 8%; transform: rotate(-15deg); }
.bottle-2 { bottom: 60px; right: 8%; transform: rotate(20deg); }

/* ============ RSVP SECTION ============ */
.rsvp {
  padding: 120px 5vw;
  background: var(--cobalt);
  color: var(--cream);
  position: relative;
}

.rsvp-inner {
  max-width: 700px;
  margin: 0 auto;
}

.rsvp-eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.6em;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 20px;
  text-align: center;
}

.rsvp-headline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.9;
  text-align: center;
  margin-bottom: 20px;
  color: var(--cream);
  letter-spacing: -0.03em;
}

.rsvp-headline em { color: var(--gold); }

.rsvp-sub {
  text-align: center;
  font-style: italic;
  font-size: 22px;
  color: var(--cream-deep);
  margin-bottom: 60px;
}

.rsvp-form {
  background: var(--parchment);
  color: var(--ink);
  padding: 50px;
  border: 2px solid var(--gold);
  box-shadow: 14px 14px 0 var(--gold);
  position: relative;
}

.rsvp-form::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--cobalt);
  pointer-events: none;
}

.form-row {
  margin-bottom: 28px;
  position: relative;
}

.form-row.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.25em;
  font-size: 13px;
  color: var(--tomato);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--cobalt);
  padding: 12px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-bottom-color: var(--tomato);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  font-style: italic;
}

.form-radios {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-radio {
  flex: 1;
  min-width: 140px;
}

.form-radio input { display: none; }

.form-radio label {
  display: block;
  text-align: center;
  padding: 16px;
  border: 2px solid var(--cobalt);
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  transition: all 0.2s ease;
  background: transparent;
}

.form-radio input:checked + label {
  background: var(--cobalt);
  color: var(--parchment);
}

.form-radio label:hover {
  background: var(--cream-deep);
}

.form-radio input:checked + label:hover {
  background: var(--cobalt);
}

.submit-btn {
  width: 100%;
  background: var(--tomato);
  color: var(--parchment);
  border: none;
  padding: 22px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.4em;
  cursor: pointer;
  margin-top: 16px;
  transition: all 0.3s ease;
  border: 2px solid var(--tomato);
}

.submit-btn:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  letter-spacing: 0.5em;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-success {
  background: var(--olive);
  color: var(--parchment);
  padding: 30px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 24px;
  margin-top: 20px;
  display: none;
  border: 2px solid var(--gold);
}

.form-success.show { display: block; animation: fadeUp 0.6s ease; }

.form-error {
  background: var(--tomato);
  color: var(--parchment);
  padding: 20px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  margin-top: 20px;
  display: none;
  border: 2px solid var(--cobalt-deep);
}

.form-error.show { display: block; animation: fadeUp 0.6s ease; }

/* ============ GALLERY ============ */
.gallery {
  background: var(--parchment);
  padding: 50px 0;
  overflow: hidden;
  border-top: 3px solid var(--cobalt);
  border-bottom: 3px solid var(--cobalt);
  position: relative;
}

.gallery-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: gallery-scroll 80s linear infinite;
  padding: 0 14px;
}

.gallery:hover .gallery-track {
  animation-play-state: paused;
}

.gallery-slide {
  flex: 0 0 auto;
  width: 260px;
  height: 340px;
  background: var(--parchment);
  border: 6px solid var(--parchment);
  outline: 1px solid rgba(30, 77, 139, 0.2);
  box-shadow: 0 6px 16px rgba(26, 26, 46, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

@keyframes gallery-scroll {
  to { transform: translateX(-50%); }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 60px 5vw 40px;
  text-align: center;
  position: relative;
}

.footer-decoration {
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: 1em;
}

.footer-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  margin-bottom: 8px;
}

.footer-small {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.4em;
  font-size: 11px;
  color: var(--gold);
}

/* ============ ADMIN PAGE ============ */
.admin-body {
  background: var(--cream);
  padding: 40px 5vw;
  font-family: 'Cormorant Garamond', serif;
}

.admin-container {
  max-width: 1100px;
  margin: 0 auto;
}

.admin-header {
  border-bottom: 3px double var(--cobalt);
  padding-bottom: 30px;
  margin-bottom: 40px;
}

.admin-header h1 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 56px;
  color: var(--cobalt);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.admin-header p {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.3em;
  color: var(--tomato);
  margin-top: 8px;
  font-size: 13px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--parchment);
  border: 2px solid var(--cobalt);
  padding: 24px;
  text-align: center;
  box-shadow: 6px 6px 0 var(--gold);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 48px;
  color: var(--cobalt);
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--tomato);
  margin-top: 8px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--parchment);
  border: 2px solid var(--cobalt);
  margin-bottom: 30px;
}

.admin-table th {
  background: var(--cobalt);
  color: var(--cream);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.2em;
  font-size: 12px;
  padding: 16px 12px;
  text-align: left;
}

.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px dashed rgba(30, 77, 139, 0.2);
  font-size: 16px;
  vertical-align: top;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table .status-yes { color: var(--olive); font-weight: 700; }
.admin-table .status-maybe { color: var(--gold-deep); font-weight: 700; }
.admin-table .status-no { color: var(--tomato); font-weight: 700; }

.admin-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.admin-btn {
  background: var(--cobalt);
  color: var(--cream);
  border: none;
  padding: 12px 24px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.2em;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.admin-btn:hover { background: var(--cobalt-deep); }
.admin-btn.danger { background: var(--tomato); }
.admin-btn.danger:hover { background: #a13520; }

.admin-empty {
  text-align: center;
  padding: 60px 20px;
  font-style: italic;
  color: var(--cobalt);
  font-size: 20px;
}

.admin-login {
  max-width: 400px;
  margin: 100px auto;
  background: var(--parchment);
  border: 2px solid var(--cobalt);
  padding: 40px;
  box-shadow: 12px 12px 0 var(--gold);
}

/* ============ VENUE LINKS ============ */
.venue-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.venue-link:hover {
  color: inherit;
  border-bottom-color: currentColor;
}

/* ============ STAY SECTION ============ */
.stay {
  padding: 110px 5vw;
  background: var(--parchment);
  color: var(--ink);
  position: relative;
  text-align: center;
  border-top: 3px solid var(--cobalt);
  border-bottom: 3px solid var(--cobalt);
}

.stay::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(30, 77, 139, 0.35);
  pointer-events: none;
}

.stay-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.stay-eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.6em;
  font-size: 13px;
  color: var(--tomato);
  margin-bottom: 22px;
}

.stay-headline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.95;
  color: var(--cobalt);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.stay-headline em { color: var(--gold-deep); }

.stay-prose {
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 540px;
  margin: 0 auto 36px;
  font-style: italic;
}

.stay-button {
  display: inline-block;
  background: transparent;
  color: var(--cobalt);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: 0.3em;
  padding: 16px 36px;
  text-decoration: none;
  border: 2px solid var(--cobalt);
  transition: all 0.3s ease;
}

.stay-button:hover {
  background: var(--cobalt);
  color: var(--parchment);
}

.stay-fineprint {
  margin-top: 22px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--cobalt-deep);
  opacity: 0.7;
  letter-spacing: 0.02em;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 800px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .details-text-block { text-align: center; }
  .details-prose { margin-left: auto; margin-right: auto; }
  .details-prose:first-letter { float: none; margin: 0; font-size: inherit; color: inherit; font-weight: inherit; font-style: inherit; }
  .details-heading,
  .stay-headline { font-size: clamp(56px, 13vw, 96px); line-height: 0.9; }
  .hero-title { font-size: clamp(52px, 13vw, 96px); line-height: 0.9; }
  .info-card { transform: rotate(0); }
  .form-row.split { grid-template-columns: 1fr; }
  .rsvp-form { padding: 30px 24px; }
  .hero-meta { gap: 30px; }
  .marquee-item { font-size: 22px; }
  .sun-1 { width: 50px; height: 50px; top: 60px; right: 5%; }
  .sun-2 { width: 32px; height: 32px; top: auto; bottom: 36px; left: 4%; opacity: 0.7; }
  .birds-1 { top: 54%; left: 4%; bottom: auto; opacity: 0.55; }
  .birds-2 { top: 64%; right: 4%; bottom: auto; left: auto; opacity: 0.55; }
  .admin-table { font-size: 14px; }
  .admin-table th, .admin-table td { padding: 10px 8px; }
  .gallery { padding: 32px 0; }
  .gallery-slide { width: 180px; height: 240px; border-width: 4px; }
  .gallery-track { gap: 16px; animation-duration: 60s; padding: 0 10px; }
}

@media (max-width: 480px) {
  .details, .rsvp, .drinks, .stay { padding: 80px 5vw; }
  .info-card { padding: 30px 24px; box-shadow: 8px 8px 0 var(--gold); }
  .info-card-row { flex-direction: column; gap: 4px; }
  .info-card-label { flex: none; }
  .gallery-slide { width: 150px; height: 200px; border-width: 3px; }
  .gallery-track { gap: 12px; animation-duration: 50s; }
  .gallery-slide { box-shadow: 0 4px 10px rgba(26, 26, 46, 0.18); }
}
