/* =====================================================
   Emily & Jared Wedding Website — Stylesheet
   ===================================================== */

/* ===== RESET & ROOT ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Sage green accent palette */
  --sage: #7d9b76;
  --sage-light: #a3bb9e;
  --sage-pale: #eaf0e8;
  --sage-dark: #5a7554;
  --sage-deeper: #3f5439;

  /* Neutral stone palette — unchanged */
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-400: #a8a29e;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;

  /* Typography */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --playfair: 'Playfair Display', Georgia, serif;
  --sans: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--stone-50);
  color: var(--stone-700);
  overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.4s ease;
  padding: 1.25rem 2rem;
}
header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(125,155,118,0.2);
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1200px; margin: auto;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: white; text-decoration: none; transition: color 0.3s;
  letter-spacing: 0.05em;
}
header.scrolled .logo { color: var(--sage-dark); }
nav { display: flex; gap: 2rem; }
nav a {
  text-decoration: none; font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); transition: color 0.3s;
}
nav a:hover { color: var(--sage-light); }
header.scrolled nav a { color: var(--stone-600); }
header.scrolled nav a:hover { color: var(--sage); }

/* ===== HERO ===== */
#home {
  position: relative; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: white;
  background: url('https://www.castellodirosciano.com/wp-content/uploads/2025/07/7_IMG_0744_websize.jpg') center/cover no-repeat;
}
#home::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.6) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 1rem; }
.hero-eyebrow {
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--sage-light);
  margin-bottom: 1rem; opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}
.hero-title {
  font-family: var(--playfair); font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 900; line-height: 0.95; letter-spacing: -0.02em;
  margin-bottom: 1.5rem; opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}
.hero-sub {
  font-size: 0.85rem; font-weight: 300; letter-spacing: 0.25em;
  font-style: italic; color: rgba(255,255,255,0.88);
  margin-bottom: 3rem; opacity: 0;
  animation: fadeUp 1s ease 0.7s forwards;
}
.countdown-wrap { opacity: 0; animation: fadeUp 1s ease 0.9s forwards; }
.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; max-width: 380px; margin: 0 auto 3rem;
}
.countdown-item { text-align: center; }
.countdown-num {
  font-family: var(--serif); font-size: 2.8rem; font-weight: 400;
  line-height: 1; display: block;
}
.countdown-label {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.7; margin-top: 0.3rem; display: block;
}
.hero-btn {
  display: inline-block; padding: 1rem 2.5rem;
  border: 1px solid rgba(125,155,118,0.6); border-radius: 50px;
  color: white; text-decoration: none; background: rgba(125,155,118,0.2);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  backdrop-filter: blur(8px); cursor: pointer;
  transition: all 0.4s ease; opacity: 0;
  animation: fadeUp 1s ease 1.1s forwards;
}
.hero-btn:hover { background: var(--sage); border-color: var(--sage); }

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

/* ===== SHARED SECTION STYLES ===== */
section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: auto; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow {
  font-family: var(--serif); font-size: 1rem; font-style: italic;
  color: var(--sage); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 0.5rem; display: block;
}
.section-title {
  font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--stone-800); font-weight: 400; line-height: 1.1;
}
.section-rule {
  width: 80px; height: 1px; background: var(--sage-light);
  margin: 1.5rem auto 0;
}

/* ===== OUR STORY ===== */
#our-story { background: white; }
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.story-img {
  width: 100%; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  border: 8px solid var(--stone-50);
}
.story-text h3 {
  font-family: var(--serif); font-size: 2rem; font-style: italic;
  color: var(--stone-800); margin-bottom: 1rem; font-weight: 400;
}
.story-text p { color: var(--stone-600); line-height: 1.8; margin-bottom: 1.5rem; }
.story-text .quote {
  font-family: var(--serif); font-style: italic; font-size: 1.2rem;
  color: var(--sage-dark); margin-top: 2rem;
}

/* ===== SCHEDULE ===== */
#schedule { background: var(--stone-50); }
.schedule-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.schedule-card {
  background: white; border-radius: 20px; padding: 2.5rem 2rem;
  text-align: center; border: 1px solid var(--stone-200);
  transition: box-shadow 0.3s, transform 0.3s;
}
.schedule-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.schedule-day {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--sage); font-weight: 600; margin-bottom: 0.75rem;
}
.schedule-title {
  font-family: var(--serif); font-size: 1.8rem; font-style: italic;
  color: var(--stone-800); margin-bottom: 0.75rem;
}
.schedule-time { font-size: 0.75rem; color: var(--stone-400); font-weight: 500; margin-bottom: 1.25rem; }
.schedule-desc { font-size: 0.875rem; color: var(--stone-600); line-height: 1.7; }
.schedule-venue {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--sage-dark); font-weight: 700; margin-top: 2rem;
}

/* ===== TRAVEL ===== */
#travel { background: white; }
.travel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.travel-card { background: var(--stone-50); border-radius: 24px; padding: 3rem; border: 1px solid var(--stone-200); }
.travel-card h3 {
  font-family: var(--serif); font-size: 2rem; font-style: italic;
  color: var(--stone-800); margin-bottom: 1.5rem;
}
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0; border-bottom: 1px solid var(--stone-200);
}
.price-row span:first-child { color: var(--stone-700); font-weight: 500; }
.price-amount { color: var(--sage-dark); font-weight: 700; }
.travel-note {
  margin-top: 1.5rem; padding: 1rem; background: white;
  border-radius: 12px; border: 1px solid var(--sage-pale);
  font-size: 0.8rem; color: var(--stone-600); font-style: italic;
}
.travel-subsection { margin-bottom: 1.5rem; }
.travel-subsection h4 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--stone-800); margin-bottom: 0.4rem;
}
.travel-subsection p { font-size: 0.875rem; color: var(--stone-600); line-height: 1.7; }
.travel-address {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--sage-dark); font-weight: 700; margin-bottom: 0.5rem;
}
.travel-link { color: var(--sage-dark); text-decoration: underline; }
.travel-link:hover { color: var(--sage); }
.map-wrap {
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  height: 400px; margin-bottom: 3rem;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.travel-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tip-card { background: #fafaf9; border-radius: 20px; padding: 2rem; border: 1px solid var(--stone-200); }
.tip-card h4 {
  font-family: var(--serif); font-size: 1.3rem; font-style: italic;
  color: var(--stone-800); margin-bottom: 0.75rem;
}
.tip-card p { font-size: 0.85rem; color: var(--stone-600); line-height: 1.7; }

/* ===== GALLERY ===== */
#gallery { background: var(--stone-50); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; margin-bottom: 3rem;
}
.gallery-item { border-radius: 12px; overflow: hidden; height: 260px; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease; display: block;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-note {
  max-width: 600px; margin: 0 auto; background: white;
  padding: 2.5rem; border-radius: 20px; border: 1px solid var(--stone-200);
  text-align: center;
}
.gallery-note p {
  font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; color: var(--stone-600); line-height: 1.7;
}

/* ===== FAQ ===== */
#faq { background: var(--stone-50); }
.faq-list { max-width: 760px; margin: 0 auto 5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: white; border-radius: 16px; border: 1px solid var(--stone-200); overflow: hidden; }
.faq-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.75rem 2rem; background: none; border: none; cursor: pointer;
  text-align: left; gap: 1rem;
}
.faq-trigger:hover { background: var(--stone-50); }
.faq-q {
  font-family: var(--serif); font-size: 1.2rem; font-style: italic;
  color: var(--stone-800); font-weight: 500; line-height: 1.3;
}
.faq-chevron {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sage-pale); display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
  color: var(--sage-dark);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--sage); color: white; }
.faq-item.open .faq-chevron svg { stroke: white; }
.faq-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 2rem;
}
.faq-item.open .faq-body { max-height: 600px; padding: 0 2rem 1.75rem; }
.faq-a { color: var(--stone-600); line-height: 1.8; font-size: 0.9rem; }
.faq-a a { color: var(--sage-dark); text-decoration: underline; }
.faq-a a:hover { color: var(--sage); }

/* ===== SIGHTSEEING ===== */
.sightseeing-title {
  font-family: var(--serif); font-size: 2rem; font-style: italic;
  color: var(--stone-800); text-align: center; margin-bottom: 2.5rem;
}
.free-time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 4rem; }
.free-time-card { background: white; border-radius: 20px; padding: 2rem; border: 1px solid var(--stone-200); }
.free-time-cat {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--sage-dark); margin-bottom: 1rem;
}
.free-time-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.free-time-card li {
  font-size: 0.85rem; color: var(--stone-600); line-height: 1.5;
  padding-left: 1rem; position: relative;
}
.free-time-card li::before { content: '•'; position: absolute; left: 0; color: var(--sage); }

/* ===== WHATSAPP BOX ===== */
.whatsapp-box {
  max-width: 520px; margin: 0 auto; background: white;
  border-radius: 32px; padding: 3rem; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border: 1px solid rgba(125,155,118,0.2);
}
.whatsapp-icon {
  width: 64px; height: 64px; background: var(--sage-pale); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
  color: var(--sage-dark);
}
.whatsapp-box h3 {
  font-family: var(--serif); font-size: 2rem; font-style: italic;
  color: var(--stone-800); margin-bottom: 0.75rem;
}
.whatsapp-box p { color: var(--stone-600); margin-bottom: 2rem; font-size: 0.9rem; line-height: 1.7; }
.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 2.5rem; background: var(--sage-dark); color: white;
  border-radius: 50px; text-decoration: none; font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  transition: all 0.3s; box-shadow: 0 8px 24px rgba(90,117,84,0.3);
}
.whatsapp-btn:hover { background: var(--sage); transform: translateY(-2px); }

/* ===== RSVP ===== */
#rsvp { background: var(--stone-100); }
.rsvp-intro {
  text-align: center; max-width: 500px; margin: -2rem auto 3rem;
  color: var(--stone-600); font-style: italic; font-size: 0.95rem;
}
.rsvp-form {
  max-width: 760px; margin: auto; background: white;
  border-radius: 32px; padding: 3.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.07);
  border: 1px solid var(--stone-200);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
label {
  display: block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--stone-400); margin-bottom: 0.5rem;
}
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%; padding: 0.875rem 1rem;
  border: 1px solid var(--stone-200); border-radius: 12px;
  font-family: var(--sans); font-size: 0.9rem; color: var(--stone-700);
  background: white; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--sage); box-shadow: 0 0 0 3px rgba(125,155,118,0.15);
}
.form-section {
  background: var(--stone-50); border-radius: 20px;
  padding: 2rem; border: 1px solid var(--stone-100); margin-bottom: 1.5rem;
}
.form-section h4 {
  font-family: var(--serif); font-size: 1.4rem; font-style: italic;
  color: var(--stone-800); margin-bottom: 1.25rem;
}
.radio-group { display: flex; flex-direction: column; gap: 0.75rem; }
.radio-label { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; font-size: 0.9rem; color: var(--stone-700); }
.radio-label input[type="radio"] { width: 18px; height: 18px; accent-color: var(--sage); flex-shrink: 0; }
.submit-btn {
  width: 100%; padding: 1.1rem; background: var(--sage-dark);
  color: white; border: none; border-radius: 50px;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(90,117,84,0.3);
}
.submit-btn:hover { background: var(--sage); transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.form-note { font-size: 0.75rem; color: var(--stone-400); font-style: italic; margin-top: 0.5rem; }
.success-box { text-align: center; padding: 4rem 2rem; }
.success-check {
  width: 80px; height: 80px; background: var(--sage-pale); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem;
  color: var(--sage-dark);
}
.success-box h2 {
  font-family: var(--serif); font-size: 3rem; font-style: italic;
  color: var(--stone-800); margin-bottom: 1rem;
}
.success-box p { color: var(--stone-600); margin-bottom: 0.5rem; }
.error-msg {
  background: #fee2e2; color: #991b1b; border-radius: 12px;
  padding: 1rem; margin-bottom: 1.5rem; font-size: 0.85rem; border: 1px solid #fecaca;
}

/* ===== GIFT REGISTRY ===== */
#gift-registry { background: white; }
.registry-intro {
  text-align: center; max-width: 600px; margin: -2rem auto 3rem;
  font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; color: var(--stone-600); line-height: 1.7;
}
.registry-logos { display: flex; justify-content: center; align-items: center; gap: 4rem; flex-wrap: wrap; }
.registry-logo {
  padding: 1.5rem 2.5rem; background: var(--stone-50); border-radius: 16px;
  border: 1px solid var(--stone-200); font-family: var(--serif); font-size: 1.3rem;
  color: var(--stone-400); text-decoration: none; transition: all 0.3s; font-style: italic;
}
.registry-logo:hover { color: var(--sage); border-color: var(--sage-light); background: var(--sage-pale); }

/* ===== FOOTER ===== */
footer { background: var(--stone-800); color: var(--stone-400); padding: 3rem 2rem; text-align: center; }
footer h3 { font-family: var(--serif); font-size: 2rem; color: white; margin-bottom: 0.5rem; }
footer .footer-date { color: var(--sage-light); letter-spacing: 0.2em; font-size: 0.8rem; margin-bottom: 1.5rem; }
footer .footer-rule { width: 60px; height: 1px; background: var(--stone-600); margin: 1.5rem auto; }
footer p { font-size: 0.8rem; margin-bottom: 0.25rem; }
footer .made-with { font-size: 0.7rem; color: var(--stone-600); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .story-grid, .travel-grid { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .free-time-grid { grid-template-columns: 1fr; }
  .travel-tips { grid-template-columns: 1fr; }
  nav { display: none; }
}
@media (max-width: 600px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .rsvp-form { padding: 2rem 1.5rem; }
}
