/* ============================================================
   WEDDING SITE — Styles
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --color-bg:        #FFFAF6;
  --color-cream:     #FFF5ED;
  --color-beige:     #FFE8D6;
  --color-sage:      #E8175D;
  --color-sage-dark: #C41250;
  --color-yellow:    #F5B731;
  --color-orange:    #F58A2C;
  --color-olive:     #7A8B1E;
  --color-olive-lt:  #A4B44A;
  --color-brown:     #A67C52;
  --color-brown-lt:  #C9B8A8;
  --color-text:      #2C2220;
  --color-text-muted:#8A7A72;
  --color-white:     #FFFFFF;
  --color-error:     #C0392B;
  --color-success:   #27AE60;

  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;

  --container-max: 1100px;
  --container-sm:  720px;
  --section-py:    6rem;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 4px 24px rgba(0,0,0,.06);
  --shadow-lg:     0 8px 40px rgba(0,0,0,.10);
  --transition:    .3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}
button { cursor: pointer; }

/* ---------- Utilities ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: var(--container-sm); }
.text-muted { color: var(--color-text-muted); font-size: .9rem; }
.optional { color: var(--color-text-muted); font-weight: 400; font-size: .85em; }
.error-msg { color: var(--color-error); font-size: .85rem; margin-top: .5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-sage);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-sage-dark); transform: translateY(-1px); }
.btn-outline {
  border: 1.5px solid var(--color-text);
  color: var(--color-text);
}
.btn-outline:hover { background: var(--color-text); color: var(--color-white); }
.btn-text { color: var(--color-text-muted); padding: .5rem 1rem; }
.btn-text:hover { color: var(--color-text); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.25rem; font-size: .85rem; }
.btn-block { display: flex; justify-content: center; width: 100%; }
.btn-nav {
  background: var(--color-sage);
  color: var(--color-white) !important;
  padding: .5rem 1.5rem;
  border-radius: 50px;
}
.btn-nav:hover { background: var(--color-sage-dark); }

/* ---------- Section ---------- */
.section { padding: var(--section-py) 0; }
.section-alt { background: var(--color-cream); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: .5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}
.subsection-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  text-align: center;
  margin: 3rem 0 1.5rem;
}

/* ============================================================
   PASSWORD OVERLAY
   ============================================================ */
.password-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-card {
  text-align: center;
  max-width: 380px;
  padding: 2rem;
}
.password-card h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: .5rem;
}
.password-card p { color: var(--color-text-muted); margin-bottom: 1.5rem; }
.password-card input {
  width: 100%;
  padding: .85rem 1.25rem;
  border: 1.5px solid var(--color-beige);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  text-align: center;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.password-card input:focus { border-color: var(--color-sage); }
.password-card .btn { width: 100%; justify-content: center; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: .75rem 0;
  background: rgba(255, 250, 246, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
}
.navbar.scrolled {
  padding: .6rem 0;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--color-text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  padding: .5rem 1rem;
  font-size: .9rem;
  font-weight: 400;
  color: var(--color-text);
  transition: color var(--transition);
  border-radius: 50px;
}
.nav-links a:hover { color: var(--color-sage); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  z-index: 1001;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO — Split layout : photo left, content right
   ============================================================ */
.hero {
  background: var(--color-bg);
  padding-top: 5rem; /* space for fixed navbar */
}
.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(80vh - 5rem);
}
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 520px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  max-height: 520px;
}
.hero-content {
  text-align: left;
  color: var(--color-text);
  padding: 1rem 0;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: .75rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: .5rem;
  color: var(--color-text);
}
.hero-name { display: inline-block; }
.hero-ampersand {
  display: inline-block;
  font-style: italic;
  font-weight: 300;
  margin: 0 .15em;
  color: var(--color-orange);
}
.hero-divider {
  width: 50px;
  height: 2px;
  background: var(--color-yellow);
  margin: 1rem 0;
}
.hero-date {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: .2rem;
  color: var(--color-text);
}
.hero-location {
  font-size: .95rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.hero-message {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 440px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-cta .btn-outline {
  border-color: var(--color-text);
  color: var(--color-text);
}
.hero-cta .btn-outline:hover {
  background: var(--color-text);
  color: var(--color-white);
}

/* Countdown */
.countdown {
  display: flex;
  gap: 1.25rem;
}
.countdown-item { text-align: center; }
.countdown-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-sage);
}
.countdown-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-text-muted);
}

/* ============================================================
   TIMELINE (Programme)
   ============================================================ */
.timeline {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
  padding: 1rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-beige);
}
.timeline-item {
  position: relative;
  padding-left: 72px;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-dot svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 2;
}
.timeline-time {
  font-size: .85rem;
  color: var(--color-orange);
  font-weight: 600;
  margin-bottom: .15rem;
}
.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: .25rem;
}
.timeline-location {
  font-size: .9rem;
  color: var(--color-text-muted);
  margin-bottom: .35rem;
}
.timeline-desc {
  font-size: .95rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* ============================================================
   INFO CARDS
   ============================================================ */
.info-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.info-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-sage-dark);
}
.info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: .75rem;
}
.info-venue-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: .15rem;
}
.info-venue-address { color: var(--color-text-muted); margin-bottom: 1rem; }
.access-list { display: flex; flex-direction: column; gap: .75rem; }
.access-item { display: flex; gap: .75rem; align-items: flex-start; }
.access-mode {
  flex-shrink: 0;
  font-weight: 600;
  font-size: .85rem;
  background: var(--color-beige);
  padding: .25rem .75rem;
  border-radius: 50px;
  min-width: 80px;
  text-align: center;
}

/* Accommodations */
.accommodations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.acco-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.acco-card h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: .35rem;
}
.acco-card .acco-distance {
  font-size: .85rem;
  color: var(--color-orange);
  font-weight: 500;
  margin-bottom: .5rem;
}
.acco-card p { font-size: .9rem; color: var(--color-text-muted); margin-bottom: .5rem; }
.acco-card .acco-price {
  font-weight: 600;
  color: var(--color-text);
  margin-top: auto;
  padding-top: .75rem;
}

/* ============================================================
   DRESS CODE
   ============================================================ */
.dresscode-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.dresscode-label {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: .75rem;
}
.dresscode-desc {
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.dresscode-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
  margin-bottom: 2rem;
}
.dresscode-col h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-text-muted);
  margin-bottom: .75rem;
}
.dresscode-list li {
  padding: .35rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: .95rem;
}
.dresscode-do li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-olive);
  font-weight: 600;
}
.dresscode-dont li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--color-error);
  font-weight: 600;
}
.dresscode-palette {
  display: flex;
  gap: .75rem;
  justify-content: center;
}
.dresscode-color {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.rsvp-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.rsvp-divider-text {
  text-align: center;
  color: var(--color-text-muted);
  font-size: .85rem;
  margin: 1.25rem 0;
  position: relative;
}
.rsvp-divider-text::before,
.rsvp-divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 1.5rem);
  height: 1px;
  background: var(--color-beige);
}
.rsvp-divider-text::before { left: 0; }
.rsvp-divider-text::after { right: 0; }

/* Form elements */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: .9rem;
  margin-bottom: .4rem;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--color-beige);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-size: .95rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--color-sage); }
.form-group textarea { resize: vertical; }

/* Search results */
.search-results {
  background: var(--color-white);
  border: 1.5px solid var(--color-beige);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 200px;
  overflow-y: auto;
}
.search-result-item {
  padding: .65rem 1rem;
  cursor: pointer;
  font-size: .9rem;
  transition: background var(--transition);
}
.search-result-item:hover { background: var(--color-cream); }
.search-result-item strong { color: var(--color-sage); }

/* Radio cards */
.radio-group { display: flex; gap: .75rem; flex-wrap: wrap; }
.radio-group-inline { gap: .5rem; }
.radio-card {
  flex: 1;
  min-width: 140px;
  cursor: pointer;
}
.radio-card input { display: none; }
.radio-card-body {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--color-beige);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-size: .95rem;
}
.radio-card input:checked + .radio-card-body {
  border-color: var(--color-sage);
  background: rgba(232,23,93,.06);
}
.radio-card-icon { font-size: 1.2rem; }

.radio-pill {
  cursor: pointer;
}
.radio-pill input { display: none; }
.radio-pill {
  padding: .5rem 1.5rem;
  border: 1.5px solid var(--color-beige);
  border-radius: 50px;
  font-size: .9rem;
  transition: all var(--transition);
}
.radio-pill:has(input:checked) {
  border-color: var(--color-sage);
  background: rgba(232,23,93,.06);
  color: var(--color-sage-dark);
}

/* Members list */
.members-list { display: flex; flex-direction: column; gap: .5rem; }
.member-check {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1rem;
  border: 1.5px solid var(--color-beige);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.member-check:has(input:checked) {
  border-color: var(--color-sage);
  background: rgba(232,23,93,.06);
}
.member-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-sage);
}

/* Confirmation */
.rsvp-confirmation { text-align: center; }
.rsvp-confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-olive);
  color: var(--color-white);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.rsvp-confirmation h3 {
  text-align: center;
  font-size: 2rem;
}

/* ============================================================
   GIFT / CAGNOTTE
   ============================================================ */
.gift-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gift-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gift-content h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: .75rem;
}
.gift-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-weight: 500;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--color-cream); }
.faq-question .faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: .95rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,.7);
  padding: 3rem 0;
  text-align: center;
}
.footer-names {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-white);
  margin-bottom: .15rem;
}
.footer-date { font-size: .9rem; margin-bottom: 1.5rem; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-links a {
  font-size: .85rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-white); }
.footer-admin { margin-bottom: 1rem; }
.footer-admin a {
  font-size: .8rem;
  opacity: .4;
  transition: opacity var(--transition);
}
.footer-admin a:hover { opacity: .8; }
.footer-credit {
  font-size: .8rem;
  opacity: .4;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; min-height: auto; }
  .hero-photo { max-height: 360px; }
  .hero-photo img { max-height: 360px; }
  .hero-content { text-align: center; }
  .hero-divider { margin: 1rem auto; }
  .hero-cta { justify-content: center; }
  .hero-message { margin-left: auto; margin-right: auto; }
  .countdown { justify-content: center; }
  .gift-card { grid-template-columns: 1fr; }
  .gift-image { max-height: 250px; }
  .gift-image img { max-height: 250px; }
}

@media (max-width: 768px) {
  :root { --section-py: 4rem; }

  /* Nav mobile */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    transform: translateX(100%);
    transition: transform .4s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    font-size: 1.2rem;
    padding: .75rem 1.5rem;
  }

  /* Hero */
  .hero { padding-top: 4rem; }
  .hero-inner { padding: 1.5rem; }
  .hero-photo { max-height: 300px; }
  .hero-photo img { max-height: 300px; }
  .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-cta { flex-direction: column; align-items: center; }
  .countdown { gap: 1rem; }
  .countdown-number { font-size: 1.5rem; }

  /* Timeline */
  .timeline::before { left: 18px; }
  .timeline-item { padding-left: 52px; }
  .timeline-dot { left: 6px; width: 24px; height: 24px; }

  /* Dress code */
  .dresscode-columns { grid-template-columns: 1fr; gap: 1.5rem; }
  .dresscode-card { padding: 2rem 1.5rem; }

  /* RSVP */
  .rsvp-card { padding: 1.75rem 1.25rem; }

  /* Accommodations */
  .accommodations-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-eyebrow { font-size: .75rem; }
  .hero-date { font-size: 1.15rem; }
  .hero-message { font-size: .9rem; }
  .btn-lg { padding: .85rem 2rem; font-size: 1rem; }
  .section-title { font-size: 1.8rem; }
  .info-card { padding: 1.5rem; }
}
