:root {
  --bg: #f6f3ee;
  --surface: #fcfaf6;
  --text: #567073;
  --text-soft: #6f8889;
  --accent: #9ab1a6;
  --accent-deep: #095f7a;
  --line: #d7e1db;
  --shadow: rgba(86, 112, 115, 0.08);
  --pill: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(to bottom, #f3f1eb 0%, #f8f5f0 100%);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  border-bottom: none;
}

a:hover {
  text-decoration: none;
  border-bottom: none;
}

.page {
  min-height: 100vh;
}

.site-header {
  width: 100%;
}

.banner {
  width: 100%;
  height: 280px;
  position: relative;
  background-image:
    linear-gradient(rgba(246, 244, 239, 0.08), rgba(246, 244, 239, 0.08)),
    url("juquehy-vista-aerea-e1602869101682.jpg");
  background-size: cover;
  background-position: center 5%;
  background-repeat: no-repeat;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(246, 244, 239, 0) 0%,
      rgba(246, 244, 239, 0.08) 45%,
      rgba(246, 244, 239, 0.35) 70%,
      rgba(246, 244, 239, 0.78) 88%,
      rgba(246, 244, 239, 1) 100%
    );
}

.top-controls {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 0;
  display: flex;
  justify-content: center;
}

.language-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 10px 14px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  backdrop-filter: none;
}

.lang-btn {
  appearance: none;
  border: 1px solid rgba(110, 138, 134, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.lang-btn:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(110, 138, 134, 0.28);
  box-shadow: 0 8px 18px rgba(86, 112, 115, 0.08);
}

.lang-btn.active {
  background: #e8f0eb;
  color: var(--accent-deep);
  border-color: rgba(110, 138, 134, 0.28);
  box-shadow: inset 0 0 0 1px rgba(110, 138, 134, 0.05);
}

.flag {
  font-size: 1.05rem;
  line-height: 1;
}

.lang-label {
  white-space: nowrap;
}

.hero {
  text-align: center;
  padding: 34px 20px 28px;
  margin-top: -6px;
}

.hero h1 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.05;
}

.hero-photo {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 18px auto 6px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(86, 112, 115, 0.10);
  object-fit: cover;
}

.date,
.countdown {
  margin: 0;
  color: var(--text-soft);
}

.date {
  margin-top: 24px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.location {
  margin-top: 24px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.maps-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  text-decoration: none;
}

.maps-icon {
  width: 36px;
  height: 36px;
  display: block;
  transition: transform 0.2s ease;
}

.maps-link:hover .maps-icon {
  transform: scale(1.08);
}

.countdown {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-soft);
}

.tab-panel h2 {
  margin: 0 0 22px;
  font-family: inherit;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 22px;
    padding: 10px 20px 0;
    max-width: 1200px;
    margin: 0 auto;
  }

.tab-link {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  padding: 8px 4px 12px;
  cursor: pointer;
  position: relative;
}

.tab-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.tab-link:hover::after,
.tab-link.active::after {
  background: var(--accent-deep);
}

.content {
  max-width: 950px;
  margin: 8px auto 0;
  padding: 0 20px 100px;
}

.tab-panel {
  display: none;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 24px;
  padding: 68px 52px;
  text-align: left;
}

.tab-panel.active {
  display: block;
}

.tab-panel p {
  margin: 6px auto 0;
  max-width: 620px;
  color: var(--text-soft);
  line-height: 1.9;
  font-size: 1.08rem;
  font-weight: 400;
  text-align: center;
}

#logistics .tab-panel p,
#party .tab-panel p,
.logistics-card p,
.transport-card p {
  text-align: left;
  margin: 6px 0 0;
  max-width: none;
}

.email-link {
  font-weight: 600;
}

.email-link:hover {
  text-decoration: none;
}

/* Logistics section styles */
.logistics-page-intro {
  text-align: center;
  font-size: 1.08rem;
  color: var(--text-soft);
  margin: 0 auto 72px !important;
  max-width: 560px;
  line-height: 1.8;
}

.logistics-anchor {
  font-weight: 600;
}

.logistics-anchor:hover {
  text-decoration: none;
}

.logistics-section {
  margin-bottom: 0;
}

.logistics-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.logistics-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-left: 0;
  border-left: none;
}

.logistics-heading h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.logistics-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.logistics-intro-card {
  background: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 16px;
}

.logistics-card {
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: none;
}

.logistics-card p {
  margin: 0;
}

.logistics-card p + p {
  margin-top: 8px;
}

.logistics-card a {
  font-weight: 600;
}

.logistics-card a:hover {
  text-decoration: none;
}

.venue-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text) !important;
  margin-bottom: 4px !important;
}

.venue-address {
  font-size: 0.97rem;
  color: var(--text-soft) !important;
  line-height: 1.7 !important;
}

.venue-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.venue-link-btn {
  display: inline-block;
  padding: 9px 18px;
  background: #e8f0eb;
  color: var(--text) !important;
  border: 1px solid rgba(110, 138, 134, 0.18);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.18s ease, transform 0.18s ease;
}

.venue-link-btn:hover {
  background: #dce8e0;
  transform: translateY(-1px);
}

.transport-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.transport-card {
  padding: 20px 22px;
}

.transport-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text) !important;
  margin-bottom: 8px !important;
  letter-spacing: 0.01em;
}

/* Registry section styles */
.registry-text-body {
  text-align: center !important;
  max-width: 560px !important;
  margin: 0 auto !important;
  line-height: 1.9;
}

.registry-text-body a {
  font-weight: 600;
}

.registry-text-body a:hover {
  text-decoration: none;
}

/* Registry / Future Fund styles */
.registry-accounts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 560px;
  margin: 32px auto 0;
}

.registry-card {
  text-align: left;
}

#registry .logistics-page-intro {
  margin-bottom: 8px !important;
}

.registry-card p {
  text-align: left !important;
  max-width: none !important;
  margin: 0 !important;
}

.registry-card p + p {
  margin-top: 8px !important;
}

.registry-card a {
  font-weight: 600;
}

.registry-card a:hover {
  text-decoration: none;
}

/* Q&A section styles */
.qanda-item {
  margin-bottom: 32px;
  max-width: 720px;
  text-align: left;
}

.qanda-question {
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  text-align: left;
}

.qanda-answer {
  color: var(--text-soft);
  line-height: 1.9;
  font-size: 1.08rem;
  margin: 0;
  text-align: left !important;
  max-width: none !important;
}

/* Dress code grid */
.dress-code-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.dress-code-item {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}

.dress-code-culture {
  font-weight: 600;
  color: var(--text) !important;
  margin-bottom: 4px !important;
}

/* Travel section styles */
.travel-itinerary {
  margin-top: 12px;
}

.travel-itinerary p {
  text-align: left !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.travel-itinerary p:last-child {
  border-bottom: none;
}

.travel-options {
  margin-top: 8px;
  padding-left: 0;
}

.travel-options p {
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--line) !important;
}

.travel-options p:last-child {
  border-bottom: none !important;
}

@media (max-width: 900px) {
  .banner {
    height: 220px;
  }

  .content {
    margin-top: 8px;
  }

  .tab-panel {
    padding: 50px 28px;
  }
}

.destination-card {
  overflow: hidden;
}

.destination-photo {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .banner {
    height: 180px;
.registry-grid {
    grid-template-columns: 1fr;
  }
    
  }

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

  .dress-code-grid {
    grid-template-columns: 1fr;
  }

  .logistics-card {
    padding: 20px;
  }

  .logistics-intro-card {
    padding: 18px;
  }
  
  .top-controls {
    padding-top: 14px;
  }

  .language-switcher {
    border-radius: 20px;
  }

  .lang-btn {
    padding: 8px 12px;
    font-size: 0.84rem;
    gap: 8px;
  }

  .flag {
    font-size: 1rem;
  }

  .hero {
    padding-top: 28px;
  }

   .destination-photo {
    height: 200px;
  }
  
  .tab-link {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
  }

  .tab-panel {
    padding: 38px 20px;
    border-radius: 18px;
  }

  .tab-panel p {
    font-size: 1rem;
  }
}
