@import url('https://fonts.googleapis.com/css2?family=Baskervville:ital,wght@0,400..700;1,400..700&display=swap');

/* ─── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold:        #c6a96b;
  --gold-light:  #e2cfa3;
  --gold-dark:   #a8884d;
  --text:        #2b2b2b;
  --text-soft:   #6b6b6b;
  --parchment:   #faf8f5;
  --white:       #ffffff;
  --border:      #e8e2d8;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-body:   'Cormorant Garamond', Georgia, serif;
  --font-ui:     'Jost', sans-serif;

  --nav-h:       72px;
  --section-pad: clamp(60px, 10vw, 120px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  animation: pageFade 0.6s ease;
}

@keyframes pageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── TYPOGRAPHY ───────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.15;
  font-weight: 500;
}

p {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-soft);
}

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

strong {
  font-weight: 500;
  color: var(--text);
}

/* ─── GOLD DIVIDER ─────────────────────────────────────── */
.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 28px 0;
}

.divider--center {
  margin: 28px auto;
}

/* ─── ORNAMENT ─────────────────────────────────────────── */
.ornament {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
  opacity: 0.85;
}

/* ─── NAVIGATION ───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

nav.nav-hero {
  background: transparent;
}

nav.nav-hero.scrolled {
  background: rgba(255, 255, 255, 0.96);
}

nav.nav-hero.scrolled .nav-links a {
  color: var(--text);
}

nav.nav-hero.scrolled .hamburger span {
  background: var(--text);
}

/* ─── NAV LINKS (desktop) ──────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.nav-hero .nav-links a {
  color: rgba(255,255,255,0.9);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ─── HAMBURGER (mobile) ───────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: white;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  transform-origin: center;
}

nav.scrolled .hamburger span,
nav:not(.nav-hero) .hamburger span {
  background: var(--text);
}

.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── MOBILE NAV DRAWER ────────────────────────────────── */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-drawer.open {
  opacity: 1;
  pointer-events: all;
}

.nav-drawer a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text);
  letter-spacing: 2px;
}

.nav-drawer a:hover {
  color: var(--gold);
}

/* ─── MOBILE: show hamburger, hide nav-links ───────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links  { display: none; }
  .nav-drawer { display: flex; }
}

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  height: 100svh;
  min-height: 560px;
  background: url('wetransfercarolina/Tezza-0007.jpeg') center/cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero { background-attachment: scroll; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 24px;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0;
  animation: heroFade 1.2s ease 0.2s forwards;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 500;
  letter-spacing: 3px;
  color: #f5f0e8;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
  opacity: 0;
  animation: heroFade 1.4s ease 0.5s forwards;
  margin: 16px 0 20px;
}

.hero-date {
  font-family: var(--font-ui);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  opacity: 0;
  animation: heroFade 1.4s ease 0.9s forwards;
}

@keyframes heroFade {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(18px); }
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: heroFade 1.2s ease 1.6s forwards;
}

.hero-scroll span {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.7); }
}

/* ─── SECTIONS ─────────────────────────────────────────── */
section {
  padding: var(--section-pad) clamp(20px, 5vw, 80px);
}

.container {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.section-content {
  max-width: 560px;
  margin: 0 auto;
}

/* ─── PAGE HEADER (inner pages) ────────────────────────── */
.page-header {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 60px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: 2px;
}

/* ─── SPLIT LAYOUT ─────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  padding: 0;
}

.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 100px) clamp(32px, 6vw, 80px);
}

.split-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
}

.split-image {
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split-image {
    min-height: 320px;
    order: -1;
  }
}

/* ─── FULLSCREEN BANNER ────────────────────────────────── */
.fullscreen-banner {
  height: 60vh;
  min-height: 360px;
  /*background: url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1600') center/cover fixed no-repeat; */
  background: url('wetransfercarolina/IMG_6003.jpeg')  center/cover fixed no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 40px 24px;
}

@media (max-width: 768px) {
  .fullscreen-banner { background-attachment: scroll; }
}

.fullscreen-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.48);
}

.fullscreen-banner-content {
  position: relative;
  z-index: 1;
  color: white;
}

.fullscreen-banner-content h2 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: #f5f0e8;
  letter-spacing: 2px;
}

.fullscreen-banner-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-top: 12px;
}

/* ─── FORM ─────────────────────────────────────────────── */
.form-group {
  margin-bottom: 8px;
  text-align: left;
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 13px 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text);
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23c6a96b' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 16px;
  cursor: pointer;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

input::placeholder, textarea::placeholder {
  color: #bbb;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  width: 100%;
  margin-top: 24px;
}

.btn:hover {
  background: var(--gold);
  color: white;
}

.btn:active {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: white;
}

/* form success */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 0;
}

.form-success .check {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

/* ─── DETAIL CARDS ─────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px 32px;
  margin-top: 40px;
  text-align: left;
}

.detail-item {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.detail-item .label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.detail-item p {
  font-size: 1.05rem;
  color: var(--text);
}

/* ─── FAQ ACCORDION ────────────────────────────────────── */
.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text);
  gap: 16px;
  transition: color 0.3s;
}

.faq-question:hover { color: var(--gold); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-icon::before {
  width: 100%; height: 1px;
  top: 50%; left: 0;
  transform: translateY(-50%);
}

.faq-icon::after {
  width: 1px; height: 100%;
  left: 50%; top: 0;
  transform: translateX(-50%);
}

.faq-item.open .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

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

.faq-answer p {
  padding-bottom: 22px;
  margin: 0;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}


/* ─── MAP LINK BUTTON ──────────────────────────────────── */
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px 28px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: background 0.3s, color 0.3s;
}

.map-btn:hover {
  background: var(--gold);
  color: white;
}

/* ─── FOOTER ───────────────────────────────────────────── */
footer {
  background: var(--parchment);
  padding: 60px 24px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}

footer .footer-names {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 6px;
}

footer .footer-date {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

footer nav {
  position: static;
  height: auto;
  background: transparent !important;
  box-shadow: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: 28px;
}

footer nav a {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.3s;
}

footer nav a:hover { color: var(--gold); }

footer .footer-copy {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 1px;
  color: #bbb;
}

/* ─── FADE-IN ANIMATION ────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── PHOTOS PLACEHOLDER ───────────────────────────────── */
.photos-placeholder {
  text-align: center;
  padding: 80px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.photos-placeholder .photo-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.3;
}

/* ─── UTILITY ──────────────────────────────────────────── */
.parchment-bg { background: var(--parchment); }
.text-center  { text-align: center; }
.mt-8         { margin-top: 8px; }
.mt-16        { margin-top: 16px; }
.mt-32        { margin-top: 32px; }


/* ─── RSVP MODAL ───────────────────────────────────────── */
.modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(43, 43, 43, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-panel {
  position: relative;
  background: var(--parchment);
  width: min(620px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  transform: translateY(20px);
  transition: transform 0.35s ease;
}

.modal-overlay.open .modal-panel {
  transform: translateY(0);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 16px 16px 0 0;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-soft);
  cursor: pointer;
  font-family: var(--font-ui);
  letter-spacing: 1px;
  z-index: 10;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--gold);
}

/* ─── CUSTOM SELECT ────────────────────────────────────── */
.custom-select {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text);
  transition: border-color 0.3s;
  background: transparent;
}

/* hide the bottom border when open — the panel takes over */
.custom-select.open .custom-select__trigger {
  border-bottom-color: transparent;
}


.custom-select.open {
  z-index: 100; 
}

.custom-select__trigger::after {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23c6a96b' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  transition: transform 1s ease;
}

.custom-select.open .custom-select__trigger::after {
  transform: rotate(180deg);
}

.custom-select__options {
  position: absolute;
  top: 100%;
  left: -1px;
  right: -1px;
  background: var(--parchment);
  border: 1px solid var(--gold);
  border-top: none;
  z-index: 10;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
 
}

.custom-select.open .custom-select__options {
  max-height: 300px;
}

.custom-select__option {
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-soft);
  transition: background 2s, color 0.2s;
}

.custom-select__option:hover {
  background: var(--white);
  color: var(--gold);
}

.custom-select__option.selected {
  color: var(--text);
  z-index: 90;
}.form-success {
  display: none; /* Hidden by default */
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease forwards;
}

.form-success .check {
  font-size: 50px;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.form-success h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.form-success p {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text-soft);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ─── COUPLE GALLERY ─────────────────────────────────── */
.couple-gallery {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.couple-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  cursor: pointer;
}

/* subtle premium hover */
.couple-gallery img:hover {
  transform: scale(1.04);
  filter: brightness(1.05);
}

/* desktop layout */
@media (min-width: 768px) {
  .couple-gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .couple-gallery img {
    height: 280px;
    width: 100%;
  }
}

.couple-gallery img {
  border: 1px solid var(--gold-light);
  border-radius: 2px;
}

