/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Damion&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* CSS Variables */
:root {
  --font-primary: 'EB Garamond', serif;
  --font-script: 'Damion', cursive;
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-input-bg: #f5e6dc;
  --max-content-width: 450px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ================================
   HOME PAGE HERO
   ================================ */
.hero {
  min-height: 100vh;
  background-image: url('../images/bg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  padding-bottom: 10vh;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 500px;
  margin-bottom: 1rem;
}

.hero-date {
  font-family: var(--font-script);
  font-size: 25px;
}

.hero-location {
  font-family: var(--font-script);
  font-size: 25px;
}

.hero-names {
  font-family: var(--font-script);
  font-size: 220px;
  font-weight: 400;
  line-height: 0.9em;
  margin: 0 0 2.5rem;
  text-align: right;
}

.hero-names span {
  display: block;
}

.hero-cta {
  font-family: 'Gill Sans', 'Trebuchet MS', sans-serif;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 5.85px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-cta:hover {
  background-color: rgb(63, 118, 82);
  color: #ffffff;
}

.hero-cta .arrow {
  display: inline-block;
  width: 40px;
  height: 1px;
  background-color: var(--color-text);
  position: relative;
  margin-left: 0.75rem;
  transition: background-color 0.3s ease;
}

.hero-cta .arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--color-text);
  border-right: 1px solid var(--color-text);
  transform: rotate(45deg);
  transition: border-color 0.3s ease;
}

.hero-cta:hover .arrow {
  background-color: #ffffff;
}

.hero-cta:hover .arrow::after {
  border-top-color: #ffffff;
  border-right-color: #ffffff;
}

/* ================================
   INNER PAGES LAYOUT
   ================================ */
.page {
  min-height: 100vh;
  background-image: url('../images/bg-2.jpeg');
  background-size: auto 100%;
  background-position: left bottom;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  padding: 2rem 3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.header-date {
  font-family: var(--font-primary);
  font-size: 20px;
}

.header-location {
  font-family: var(--font-primary);
  font-size: 15px;
}

.header-title {
  font-family: var(--font-primary);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Navigation */
.site-nav {
  padding: 1.5rem 0;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 3rem;
}

.nav-link {
  font-family: var(--font-primary);
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-text);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  transform: scaleX(1);
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 2rem 0;
  position: relative;
}

.main-content::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: calc(50% - var(--max-content-width) / 2 + 2rem);
  background-color: #ffffff;
  z-index: 0;
}

.content-container {
  max-width: var(--max-content-width);
  width: 100%;
  text-align: center;
  overflow: visible;
  position: relative;
  padding: 1rem 2rem 3rem;
  flex: 1;
  background: linear-gradient(to left,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.95) 60%,
    rgba(255, 255, 255, 0.7) 85%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

/* ================================
   SHARED CARD STYLES
   ================================ */

/* Section Title (used on Things To Do, RSVP) */
.section-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 3rem;
}

/* Card Item - shared layout for schedule and attractions */
.card-item {
  position: relative;
  text-align: center;
}

.card-item::after {
  content: '';
  display: block;
  width: 60%;
  height: 1px;
  background-color: var(--color-text);
  margin: 3rem auto;
}

.card-item:last-of-type::after {
  display: none;
}

.card-content {
  text-align: center;
}

.card-icon {
  position: absolute;
  right: -140px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  z-index: 2;
}

.card-icon img {
  width: 100%;
  height: auto;
  opacity: 0.85;
}

.card-title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-subtitle {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.card-description {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  line-height: 1.3;
}

.card-link {
  font-family: var(--font-primary);
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-block;
  margin-top: 0.5rem;
}

.card-link:hover {
  opacity: 0.7;
}

/* ================================
   PAGE-SPECIFIC STYLES
   ================================ */

/* Travel & Hotels / Coming Soon */
.coming-soon-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 400;
  margin-top: 4rem;
}

/* Contact Footer */
.contact-footer {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-top: 3rem;
}

/* RSVP Form */
.rsvp-form {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  border: none;
  background-color: var(--color-input-bg);
  outline: none;
}

.form-input:focus {
  box-shadow: 0 0 0 2px var(--color-text);
}

.radio-group {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  cursor: pointer;
}

.radio-input {
  accent-color: var(--color-text);
}

.form-button {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: var(--color-text);
  color: var(--color-bg);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.form-button:hover {
  opacity: 0.85;
}

.form-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-button.loading {
  opacity: 0.6;
}

/* Form Success Message */
.form-success {
  text-align: center;
  padding: 2rem 0;
}

.success-title {
  font-family: var(--font-script);
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.success-message {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* ================================
   MOBILE STYLES
   ================================ */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

@media (max-width: 768px) {
  /* Hero adjustments */
  .hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-names {
    font-size: 4.5rem;
  }

  .hero-cta {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
  }

  /* Header adjustments */
  .site-header {
    padding: 1.5rem 1.5rem 0;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .header-date,
  .header-location {
    font-size: 0.8rem;
  }

  .header-title {
    font-size: 1.5rem;
    order: -1;
  }

  /* Mobile nav */
  .mobile-nav-toggle {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 90;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .nav-link {
    font-size: 1.25rem;
  }

  /* Content adjustments */
  .main-content {
    padding: 2rem 1.5rem 0;
  }

  .section-title,
  .coming-soon-title {
    font-size: 2rem;
  }

  /* Page background */
  .page {
    background-size: auto 50%;
  }

  /* Hide card icons on mobile */
  .card-icon {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-names {
    font-size: 3.5rem;
  }

  .nav-list {
    gap: 1.5rem;
  }
}
