/* ==========================================
   Boda Clásica Dorada — Wedding Template
    Gold + Cream + Charcoal palette
   System fonts, zero external requests
   ========================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #2d2d2d;
  background: #faf8f5;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 700;
  line-height: 1.2;
}
.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  font-weight: 600;
  color: #c9a96e;
  margin-bottom: 0.5rem;
  font-family: 'Inter', system-ui, sans-serif;
}

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: #ffffff; }
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #2d2d2d;
}
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.75rem; }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: #c9a96e;
  color: #ffffff;
}
.btn-primary:hover { background: #a8884a; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid #c9a96e;
  color: #c9a96e;
}
.btn-outline:hover { background: #c9a96e; color: #fff; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, #2d2d2d 0%, #4a3f35 40%, #6b5a4a 70%, #c9a96e 100%);
  color: #ffffff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(201,169,110,0.15) 0%, transparent 60%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a96e' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}
.hero-names {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.hero-ampersand {
  display: block;
  font-size: 0.6em;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  color: #c9a96e;
  margin: 0.25rem 0;
  opacity: 0.8;
}
.hero-date {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}
.hero-divider {
  width: 60px;
  height: 2px;
  background: #c9a96e;
  margin: 1.5rem auto;
}
.hero-countdown {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.hero-countdown-item {
  text-align: center;
}
.hero-countdown-number {
  font-size: 2.5rem;
  font-family: Georgia, serif;
  color: #c9a96e;
  font-weight: 700;
  line-height: 1;
}
.hero-countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.7;
  margin-top: 0.25rem;
}
@media (max-width: 768px) {
  .hero-countdown { gap: 1.25rem; }
  .hero-countdown-number { font-size: 1.75rem; }
}

/* --- Story Timeline --- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e8d5a3;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row-reverse; }
.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: #c9a96e;
  border: 3px solid #faf8f5;
  border-radius: 50%;
  z-index: 1;
  top: 4px;
}
.timeline-content {
  width: calc(50% - 2.5rem);
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}
.timeline-year {
  font-family: Georgia, serif;
  color: #c9a96e;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.timeline-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.timeline-text {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(odd) { flex-direction: row; padding-left: 3rem; }
  .timeline-dot { left: 20px; }
  .timeline-content { width: 100%; }
}

/* --- Event Cards --- */
.event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
}
.event-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  text-align: center;
}
.event-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: #c9a96e;
}
.event-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.event-detail {
  font-size: 0.9375rem;
  color: #475569;
  margin-bottom: 0.25rem;
  line-height: 1.6;
}
.event-time {
  font-weight: 600;
  color: #c9a96e;
  font-size: 1rem;
  margin-top: 0.75rem;
}
.event-map-link {
  display: inline-block;
  margin-top: 1rem;
  color: #c9a96e;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.event-map-link:hover { border-bottom-color: #c9a96e; }
@media (max-width: 768px) {
  .event-grid { grid-template-columns: 1fr; }
}

/* --- Dress Code --- */
.dress-code-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.dress-item { text-align: center; }
.dress-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  border: 3px solid #e2e8f0;
}
.dress-label {
  font-size: 0.875rem;
  color: #475569;
  font-weight: 500;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  justify-content: center;
}
.gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.3s;
}
.gallery-grid img:hover { transform: scale(1.02); }
.gallery-grid .tall { grid-row: span 2; height: auto; }
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid img { height: 200px; }
}

/* --- RSVP --- */
.rsvp-box {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  background: #ffffff;
  padding: 3rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}
.rsvp-box p {
  color: #475569;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* --- Registry --- */
.registry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.registry-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  text-align: center;
}
.registry-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}
.registry-detail {
  font-size: 0.9375rem;
  color: #475569;
  margin-bottom: 0.25rem;
}
.qr-placeholder {
  width: 150px;
  height: 150px;
  margin: 1rem auto;
  background: #f5f0e8;
  border: 2px dashed #c9a96e;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a96e;
  font-size: 0.75rem;
}
@media (max-width: 768px) {
  .registry-grid { grid-template-columns: 1fr; }
}

/* --- Travel / Hotels --- */
.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}
.travel-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}
.travel-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.travel-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.travel-detail {
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 0.25rem;
  line-height: 1.6;
}
.travel-distance {
  font-size: 0.8125rem;
  color: #c9a96e;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.travel-code-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.125rem;
}
.travel-code {
  font-size: 1rem;
  font-weight: 700;
  color: #2d2d2d;
  font-family: Georgia, serif;
  margin-bottom: 0.5rem;
}
.travel-phone {
  font-size: 0.8125rem;
  color: #475569;
}
@media (max-width: 768px) {
  .travel-grid { grid-template-columns: 1fr; }
}

/* --- FAQ --- */
.faq-list {
  max-width: 650px;
  margin: 0 auto;
}
.faq-item {
  background: #ffffff;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: #c9a96e;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: #475569;
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* --- Wedding Party --- */
.party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  justify-content: center;
}
.party-card {
  text-align: center;
}
.party-initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a96e, #e8d5a3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-family: Georgia, serif;
  font-weight: 700;
  margin: 0 auto 0.75rem;
}
.party-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.party-role {
  font-size: 0.8125rem;
  color: #475569;
}
@media (max-width: 768px) {
  .party-grid { }
}

/* --- Footer --- */
.footer {
  background: #2d2d2d;
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 3rem 1.5rem;
}
.footer-hashtag {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  color: #c9a96e;
  margin-bottom: 0.75rem;
}
.footer-text {
  font-size: 0.9375rem;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}
.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 1.5rem auto;
}
.footer-credit {
  font-size: 0.8125rem;
  opacity: 0.4;
}
.footer-branding {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  opacity: 0.5;
}
.footer-branding a {
  color: #c9a96e;
  text-decoration: underline;
  opacity: 0.8;
}
.footer-branding a:hover {
  opacity: 1;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(45,45,45,0.92);
  backdrop-filter: blur(8px);
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-logo {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #c9a96e;
  text-decoration: none;
  letter-spacing: 0.1em;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.05em;
}
.nav-links a:hover { color: #c9a96e; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #c9a96e;
}

.hero { padding-top: 56px; }

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; background: #1a1a2e; flex-direction: column; padding: 1rem; gap: 1rem; border-bottom: 1px solid rgba(201,169,110,.2); z-index: 200; }
  .nav-links.nav-open { display: flex; }
  .nav-links a { font-size: 0.9rem; }
  .nav-toggle { display: block; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
