/* ===== Wedding Website Styles ===== */
/* Jason & Cassandra - March 20th, 2027 */

/* ===== CSS Custom Properties ===== */
:root {
  /* Colors */
  --color-cream: #f0ead6;
  --color-sage-light: #a9c35d;
  --color-brown-dark: #3d3d3d;
  --color-white: #ffffff;

  /* Typography */
  --font-script: 'Italianno', cursive;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Montserrat', sans-serif;
  --font-signature: 'Fascinate Inline', system-ui;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 2.5rem;
  --spacing-xxl: 3rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  font-size: 16px;
  background-color: var(--color-cream);
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-brown-dark);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a[target="_blank"]:not(.rsvp-fixed):not(.nav-menu a) {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

/* ===== Typography ===== */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-brown-dark);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 500;
}

p {
  margin-bottom: var(--spacing-sm);
}

.script-text {
  font-family: var(--font-script);
}

.serif-text {
  font-family: var(--font-serif);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-brown-dark);
  color: var(--color-white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  color: var(--color-white);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== Persistent RSVP Button ===== */
.rsvp-fixed {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  margin: var(--spacing-md);
  background-color: var(--color-brown-dark);
  color: var(--color-white);
}

.rsvp-fixed:hover {
  background-color: var(--color-brown-dark);
}

/* ===== Navigation ===== */
.nav-container {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-brown-dark);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-normal);
}

.menu-toggle:hover {
  background-color: var(--color-brown-dark);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  margin: 3px 0;
  transition: all var(--transition-normal);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
  background-color: var(--color-brown-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  min-width: 150px;
  box-shadow: var(--shadow-lg);
  margin-top: var(--spacing-xs);
}

.nav-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color var(--transition-fast);
}

.nav-menu a:hover {
  background-color: var(--color-brown-darkk);
}

.page {
  min-height: var(--app-height, 100vh);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background-color: var(--color-cream);
}

.page-header {
  position: relative;
  text-align: center;
  height: var(--app-height, 100vh);
  overflow: hidden;
}

.page-header img,
.page-header video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.page-header-overlay h1 {
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
  animation: fadeInUp 1s ease;
}

.page-content {
  padding: var(--spacing-lg) var(--spacing-lg) 0 var(--spacing-lg);
  max-width: 800px;
  margin: 0 auto;
}

/* Section Headers (Schedule, FAQ) - half-height video headers */
.section-header {
  position: relative;
  text-align: center;
  height: 35vh;
  overflow: hidden;
}

.section-header video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-header-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.section-header-overlay h1 {
  color: var(--color-white);
  margin-bottom: 0;
  animation: fadeInUp 1s ease;
}

/* ===== Home Page ===== */
.home-hero {
  position: relative;
  height: var(--app-height, 100vh);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.home-hero-bg video,
.home-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
  pointer-events: none;
  z-index: 1;
}

.home-content {
  position: relative;
  z-index: 2;
  /* padding-bottom: var(--spacing-xxl); */
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.home-content h1 {
  font-family: var(--font-signature);
  color: var(--color-white);
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 1s ease;
}

.subtitle {
  font-family: var(--font-script);
  font-size: 3rem;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: var(--spacing-xs);
  animation: fadeInUp 1s ease 0.2s backwards;
}

.home-content .date {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  /* letter-spacing: 2px; */
  /* margin-bottom: var(--spacing-xs); */
  animation: fadeInUp 1s ease 0.2s backwards;
}

.home-content .location {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 0.5;
  /* letter-spacing: 1px; */
  /* margin-bottom: var(--spacing-xs); */
  animation: fadeInUp 1s ease 0.4s backwards;
}

.home-content .btn {
  animation: fadeInUp 1s ease 0.6s backwards;
}

/* ===== Schedule Page ===== */
.schedule-section {
  margin-bottom: var(--spacing-xl);
}

.schedule-friday {
  margin-bottom: var(--spacing-xl);
  overflow: hidden;
}

.schedule-sunday {
  margin-bottom: var(--spacing-xl);
  overflow: hidden;
}

.schedule-friday img {
  float: right;
  width: 20%;
  margin: 0 0 var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  transform: rotate(-10deg);
  --rotation: -10deg;
}

.schedule-sunday img {
  float: right;
  width: 25%;
  margin: 0 0 var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
}

.schedule-friday h2 {
  margin-bottom: var(--spacing-xs);
  font-weight: bold;
}

.schedule-sunday h2 {
  margin-bottom: var(--spacing-xs);
  font-weight: bold;
}

.schedule-venue {
  font-family: var(--font-script);
  font-size: 2.5rem;
  margin-bottom: -0.5rem;
  line-height: 1.1;
}

.schedule-time {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: bold;
}

.schedule-description {
  margin-top: var(--spacing-sm);
  font-size: 1rem;
}

.schedule-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: var(--spacing-sm) 0;
}

/* Saturday highlight section */
.schedule-highlight {
  background-color: var(--color-sage-light);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg) calc(50vw - 50%);
}

.schedule-highlight img {
  float: left;
  width: 30%;
  margin: var(--spacing-md) var(--spacing-md) var(--spacing-sm) 0;
  border-radius: var(--radius-md);
  transform: rotate(5deg);
  --rotation: 5deg;
}

.schedule-highlight h2 {
  text-align: right;
  font-weight: bold;
}

.schedule-highlight .schedule-venue {
  text-align: right;
  display: block;
}

.schedule-highlight .schedule-description {
  text-align: right;
  display: block;
}

.schedule-highlight-image {
  width: 100%;
  max-width: 200px;
  margin: var(--spacing-md) auto;
  display: block;
}

.event-timeline {
  margin-top: var(--spacing-md);
}

.schedule-table {
  border-collapse: collapse;
  border: none;
  margin-top: var(--spacing-sm);
}

.schedule-table td {
  border: none;
  padding: var(--spacing-xs) 0;
  vertical-align: top;
}

.schedule-table td:first-child {
  padding-right: var(--spacing-md);
  white-space: nowrap;
}

.schedule-highlight .schedule-table {
  margin-left: auto;
}

.schedule-highlight .schedule-table td {
  padding-right: 0;
  text-align: right;
}

.schedule-highlight .schedule-table td:last-child {
  padding-left: var(--spacing-md);
}

.event-name {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-brown-dark);
}

.event-time {
  font-size: 0.875rem;
  color: var(--color-brown-dark);
}

/* ===== FAQ Page ===== */
.faq-section {
  margin-bottom: 0;
  padding: var(--spacing-xxl) 0;
}

.faq-dress-code img {
  float: right;
  width: 40%;
  margin: 0 0 var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  transform: rotate(10deg);
  --rotation: 10deg;
}

.faq-section-highlight {
  background-color: var(--color-sage-light);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: var(--spacing-xxl) calc(50vw - 50%);
  text-align: right;
}

.faq-section .faq-section-highlight h2 {
  text-align: right;
  font-weight: bold;
}

.faq-section-highlight .faq-list li {
  text-align: right;
}

.faq-section-highlight img {
  float: left;
  width: 20%;
  margin: 0 var(--spacing-lg) var(--spacing-sm) 0;
  border-radius: var(--radius-md);
  transform: rotate(-5deg);
  --rotation: -5deg;
}

.faq-section h2 {
  margin-bottom: var(--spacing-lg);
  color: var(--color-brown-dark);
  font-weight: bold;
}

.faq-content {
  display: block;
}


.faq-list {
  margin-top: var(--spacing-sm);
}

.faq-list li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: var(--spacing-xs);
}

.faq-list li::before {
  content: '•';
  position: absolute;
  left: 0;
}

/* Additional Info Accordion */
.accordion-item {
  border-bottom: 1px solid var(--color-brown-dark);
  padding: var(--spacing-sm) 0;
}

.accordion-question {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-brown-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-brown-dark);
  transition: transform var(--transition-normal);
}

.accordion-question.active::after {
  transform: rotate(45deg);
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  font-size: 1rem;
  color: var(--color-brown-dark);
}

.accordion-question.active+.accordion-answer {
  max-height: 200px;
  padding-top: var(--spacing-sm);
}

/* ===== Animations ===== */
.fade-up-element {
  opacity: 0;
  transform: translateY(30px) rotate(0deg) !important;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-up-element.visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--rotation, 0deg)) !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

/* ===== Responsive Adjustments ===== */
@media (min-width: 768px) {
  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .home-content {
    padding-top: 6rem;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  .home-content h1 {
    font-size: 3rem;
  }

  .faq-content {
    flex-direction: column;
  }

  .faq-content.reverse {
    flex-direction: column;
  }

  .faq-image {
    width: 100%;
    height: 200px;
    margin-bottom: var(--spacing-md);
  }
}