/* Font faces */

/* TAY Wingman - Regular */
@font-face {
  font-family: 'TAY Wingman';
  src: local('TAY Wingman Regular'),
       url('fonts/TAYWingman.woff') format('woff'),
       url('fonts/TAYWingman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 48px;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 48px;
  }
}

html, body {
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background-color: #43442b;
  font-family: 'TAY Wingman', 'Cormorant Garamond', Georgia, serif;
  color: white;
  position: relative;
}

a {
  color: white;
}

nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s ease;
}

nav a:hover {
  color: white;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Brand block - logo + nav */
.brand-block {
  position: fixed;
  bottom: 63px;
  left: 73px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  transition: gap 0.4s ease;
}

/* Full-width header background that fades in when scrolled - mobile only */
.brand-block::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-color: #363622; /* #43442b with 20% black overlay */
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: none; /* Hidden on desktop */
}

body.scrolled .brand-block::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .brand-block::before {
    display: block;
  }
}

@media (max-width: 1024px) and (orientation: portrait) {
  .brand-block::before {
    display: block;
  }
}

/* Logo container - holds both versions for crossfade */
.logo {
  position: relative;
  width: 40vw;
  transition: width 0.4s ease;
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.logo-outline {
  position: relative;
  transition: opacity 0.4s ease;
}

.logo-solid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Navigation */
.nav-main {
  display: flex;
  gap: 32px;
  font-size: 14px;
  letter-spacing: 0.56px;
  text-transform: uppercase;
}

/* Mobile-only elements */
.mobile-only {
  display: none;
}

/* Mobile nav text - hide short versions on desktop */
.nav-short {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  .nav-full {
    display: none;
  }
  .nav-short {
    display: inline;
  }
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh; /* Prevent flash - JS will set exact height based on photo count */
}

/* Dummy sections - hidden until hero is set up */
.content-section {
  visibility: hidden;
}

body.hero-ready .content-section {
  visibility: visible;
}

/* Photos container within hero */
.photos-container {
  position: relative;
  width: 100%;
  z-index: 1;
}

.photo {
  position: absolute;
  pointer-events: none;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Photo captions */
.photo-caption {
  display: block;
  margin-top: 10px;
  font-family: 'adobe-caslon-pro', Georgia, serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.65);
  transition: opacity 0.3s ease;
  text-wrap: balance;
}

.photo-caption.hidden {
  opacity: 0;
}

/* Content Sections - positioned on right 50% */
.content-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-left: 50%;
  width: 50%;
  padding: 100px 50px;
  z-index: 10;
}

#contact {
  padding-bottom: 200px;
}

.section-inner {
  max-width: 600px;
  width: 100%;
}


.content-section p {
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.9;
}

/* Invites Section - stacked on right side */
.invites-section {
  padding: 100px 50px;
  margin-top: 200px;
}

/* Section slideshow - 4:3 aspect ratio */
.section-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 24px;
  margin-bottom: 72px; /* Extra space for caption below */
}

.slideshow-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow-slide.active {
  opacity: 1;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-slide .slideshow-caption {
  display: block;
  position: absolute;
  top: 100%;
  margin-top: 10px;
  left: 0;
  right: 0;
  font-family: 'adobe-caslon-pro', Georgia, serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.65);
  text-wrap: balance;
}


/* Section label - nav spec */
h2.section-label {
  font-family: 'TAY Wingman', 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.56px;
  text-transform: uppercase;
  color: white;
  margin: 0 0 24px 0;
  line-height: 1.14;
  text-wrap: balance;
}

/* Section body - Adobe Caslon Pro */
.section-body {
  font-family: 'adobe-caslon-pro', Georgia, serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.4;
  color: white;
}

.section-body p {
  font-size: 24px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.section-body p:last-child {
  margin-bottom: 0;
}

.section-body a {
  color: white;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-skip-ink: auto;
}

.content-section p.section-note {
  font-family: 'adobe-caslon-pro', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
  margin-bottom: 24px;
}

.section-note:last-child {
  margin-bottom: 0;
}

.section-details + .consultation-btn {
  margin-top: 9px;
}

.section-details {
  margin-top: 64px;
  position: relative;
}

.section-details::before {
  content: '';
  position: absolute;
  top: -32px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}

/* FAQ Accordion */
.faq-accordion {
  margin-top: 32px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-question {
  width: 100%;
  padding: 22px 0 18px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: 'adobe-caslon-pro', Georgia, serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-wrap: pretty;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 2000px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-family: 'adobe-caslon-pro', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 18px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Consultation button */
.consultation-btn {
  display: inline-block;
  margin-top: 24px;
  font-family: 'TAY Wingman', 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.56px;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.15);
  padding: 15px 20px 12px 20px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.consultation-btn:hover {
  background-color: rgba(0, 0, 0, 0.25);
  color: white;
}

.learn-more-btn {
  display: inline-block;
  margin-top: 12px;
  font-family: 'TAY Wingman', 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.56px;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid white;
  transition: background-color 0.3s ease, color 0.3s ease;
  width: fit-content;
}

.learn-more-btn:hover {
  background-color: white;
  color: #43442b;
}


/* Responsive adjustments */
@media (max-width: 900px) {
  .brand-block {
    left: 40px;
  }

  .nav-main {
    gap: 20px;
    font-size: 12px;
  }


  .content-section {
    padding: 80px 30px;
  }

  .invites-section {
    padding: 80px 30px;
  }

}

/* Portrait tablet - move brand block to top */
@media (max-width: 1024px) and (orientation: portrait) {
  .brand-block {
    left: 20px;
    bottom: auto;
    top: 20px;
  }
}

@media (max-width: 768px) {
  /* Keep same nav on mobile */
  .nav-main {
    gap: 16px;
    font-size: 14px;
  }

  /* Adjust brand block for mobile - move to top */
  .brand-block {
    left: 20px;
    bottom: auto;
    top: 20px;
  }

  .logo {
    width: 70vw;
    transition: opacity 0.4s ease, width 0.4s ease;
  }

  .brand-block {
    transition: all 0.4s ease;
  }

  /* Always show solid logo on mobile */
  .logo-outline {
    opacity: 0 !important;
  }

  .logo-solid {
    opacity: 1 !important;
  }

  /* When scrolled: hide logo, compact nav bar */
  body.scrolled .brand-block {
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 20px;
  }

  body.scrolled .logo {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
  }

  body.scrolled .nav-main {
    gap: 24px;
  }

  /* Content sections take full width on mobile */
  .content-section {
    margin-left: 0;
    width: 100%;
    min-height: auto;
    padding: 48px 20px;
  }

  .invites-section {
    padding: 48px 20px;
    margin-top: 0;
  }

  .section-inner {
    max-width: 100%;
  }

  h2.section-label {
    font-family: 'TAY Wingman', 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
  }

  .section-slideshow {
    margin-top: 36px;
    margin-bottom: 88px;
  }

  .photo-caption,
  .slideshow-slide .slideshow-caption {
    font-size: 17px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
  }

  .section-body,
  .section-body p {
    font-size: 22px;
    line-height: 1.4;
  }

  .faq-question {
    font-size: 22px;
    line-height: 1.2;
  }
}

@media (max-width: 600px) {
  .brand-block {
    left: 20px;
  }

}
