@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

:root {
  --cream:       #fdf8f2;
  --sand:        #e2d2b7;
  --gold:        #ebdac2;
  --gold-light:  #f3e8d8;
  --rose:        #fbf4f5;
  --rose-light:  #f3e5e8;
  --sage:        #ededed;
  --sage-light:  #f5fbf5;
  --dark:        #2e2318;
  --mid:         #6a5840;
  --muted:       #c4b7a4;
  --white:       #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 8px 40px rgba(46, 35, 24, 0.10);
  --shadow-card: 0 4px 24px rgba(46, 35, 24, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; font-family: var(--font-body); }

/* ===================================
   ENVELOPE INTRO
   =================================== */
.envelope-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(160deg, var(--cream) 0%, var(--sand) 100%);
  padding: 20px;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.envelope-container::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,168,0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.envelope-container::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138,158,138,0.10) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

.envelope {
  position: relative;
  width: 360px;
  height: 250px;
  cursor: pointer;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: drop-shadow(0 20px 50px rgba(46,35,24,0.18));
  z-index: 1;
}

.envelope:hover {
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(0 28px 60px rgba(46,35,24,0.22));
}

.envelope-body {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 -3px 8px rgba(0,0,0,0.04);
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 52%;
  background: linear-gradient(170deg, #f5ede0 0%, #ede0cc 100%);
  clip-path: polygon(0 0, 50% 96%, 100% 0);
  transform-origin: top center;
  transition: all 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
}

.envelope.open .envelope-flap {
  transform: translateY(-100%) rotateX(180deg);
}

.stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  z-index: 5;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-12deg) scale(1);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
  filter: drop-shadow(1px 2px 4px rgba(0,0,0,0.12));
}

.stamp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.envelope.open .stamp {
  opacity: 0;
  transform: translate(-50%,-50%) rotate(-12deg) scale(0.7) translateY(-30px);
}

.letter-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88%;
  padding: 44px 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  text-align: center;
  opacity: 0;
  z-index: 10;
  transition: all 0.8s ease 0.3s;
  box-shadow: 0 12px 40px rgba(46,35,24,0.12);
  border: 1px solid var(--gold-light);
}

.envelope.open .letter-card {
  opacity: 1;
  animation: letterRise 0.9s cubic-bezier(0.34,1.3,0.64,1) 0.3s both;
}

@keyframes letterRise {
  from { transform: translate(-50%, 60px); opacity: 0; }
  to   { transform: translate(-50%, -50%); opacity: 1; }
}

.letter-content { display: flex; flex-direction: column; gap: 10px; align-items: center; }

.letter-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
}

.letter-text {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--mid);
  font-style: italic;
}

.couple-names {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 1px;
  margin: 6px 0;
}

.letter-ornament {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 4px auto;
}

.letter-date {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--mid);
  letter-spacing: 2px;
}

.letter-location {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.enter-btn {
  margin-top: 18px;
  padding: 12px 36px;
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: var(--transition);
}

.enter-btn:hover {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
}

.hidden { display: none !important; }

/* ===================================
   LÖSENORDSVÄGG
   =================================== */
.password-wall {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(160deg, var(--cream) 0%, var(--sand) 100%);
  padding: 20px;
}

.password-box {
  width: 100%;
  max-width: 380px;
  padding: 48px 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-light);
  box-shadow: var(--shadow-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.password-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--mid);
  margin: 4px 0 10px;
}

.password-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.password-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  background: var(--cream);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  text-align: center;
  letter-spacing: 1px;
}

.password-input:focus {
  outline: none;
  border-color: var(--gold);
}

.password-error {
  font-family: var(--font-body);
  font-size: 13px;
  color: #8a3030;
}

/* ===================================
   NAVBAR — transparent → solid on scroll
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  padding: 0;
}

.navbar.transparent .nav-container {
  background: transparent;
}

.navbar.scrolled .nav-container {
  box-shadow: 0 1px 20px rgba(46,35,24,0.08);
}

.navbar.scrolled .nav-container::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(253,248,242,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  transition: var(--transition);
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  transition: color 0.4s ease;
  letter-spacing: 0.5px;
}

.navbar.scrolled .logo { color: var(--dark); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.navbar.scrolled .nav-link { color: var(--mid); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:hover { width: 100%; color: var(--gold); }
.navbar.scrolled .nav-link:hover { color: var(--dark); }

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: var(--transition);
  display: block;
}

.navbar.scrolled .hamburger span { background: var(--dark); }

/* ===================================
   HERO — fullscreen
   =================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-image: url(images/DJI_0085.jpeg);
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,20,10,0.20) 0%,
    rgba(30,20,10,0.35) 50%,
    rgba(30,20,10,0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: heroFade 1.4s ease both;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 400;
  letter-spacing: 2px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
  margin-bottom: 20px;
}

.hero-rule {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.6);
  margin: 0 auto 18px;
}

.hero p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2.2s ease-in-out infinite;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.6;
  font-family: var(--font-body);
}

.hero-scroll svg {
  opacity: 0.6;
}

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

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===================================
   SECTIONS — base
   =================================== */
.section { padding: 110px 40px; }
.container { max-width: 1100px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 20px;
}

.section-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 18px;
}

.section-intro {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: var(--mid);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Alternating bg */
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-sand  { background: var(--sand); }
.section-rose  { background: var(--rose-light); }
.section-sage  { background: var(--sage-light); }

/* ===================================
   SPLIT LAYOUT (text + image)
   =================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split.reverse .split-image { order: -1; }

.split-image {
  position: relative;
}

.split-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.split-image-caption {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.split-text h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 8px;
}

.split-rule {
  width: 30px;
  height: 1px;
  background: var(--gold);
  margin: 16px 0;
}

.split-text p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.split-text a {
  color: var(--dark);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: var(--transition);
  font-weight: 400;
}

.split-text a:hover { color: var(--gold); border-color: transparent; }

.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.link-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--mid);
  line-height: 1.6;
}

.link-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 9px;
  flex-shrink: 0;
}

/* ===================================
   TIMELINE — mjuk & bildbaserad
   =================================== */
.schedule-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: start;
}

.timeline {
  position: relative;
  padding-left: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-light) 10%, var(--gold-light) 90%, transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  margin-bottom: 36px;
  position: relative;
}

.timeline-dot {
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}

.timeline-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.timeline-item:hover .timeline-circle {
  background: var(--gold);
  transform: scale(1.2);
}

.timeline-time {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--gold);
  white-space: nowrap;
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: var(--transition);
  margin-bottom: 4px;
}

.timeline-item:hover .timeline-card {
  box-shadow: var(--shadow-card);
  transform: translateX(4px);
}

.timeline-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 6px;
}

.timeline-card p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
}

/* Timeline sidebild */
.schedule-side {
  position: sticky;
  top: 100px;
}

.schedule-side-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius-xl);
  display: block;
  background: var(--white);
}

.schedule-side-caption {
  margin-top: 20px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  color: var(--mid);
}

/* ===================================
   BILDGALLERI
   =================================== */
.gallery-grid {
  columns: 3 260px;
  column-gap: 24px;
}

.gallery-item {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 24px;
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-md);
  padding: 8px 8px 16px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.gallery-item:nth-child(odd)  { transform: rotate(-1.2deg); }
.gallery-item:nth-child(even) { transform: rotate(1deg); }
.gallery-item:nth-child(odd):hover  { transform: rotate(-1.2deg) translateY(-4px); }
.gallery-item:nth-child(even):hover { transform: rotate(1deg) translateY(-4px); }

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-md) - 4px);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item figcaption {
  margin: 12px 4px 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--mid);
}

/* ===================================
   FORMULÄR
   =================================== */
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
  transition: var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,168,130,0.15);
}

/* Gästlista i OSA-formuläret */
.guest-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guest-section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
}

.guest-section-hint {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: -6px;
}

.guest-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guest-entry {
  background: var(--cream);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guest-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guest-number {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.remove-guest-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  background: var(--white);
  color: var(--mid);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.remove-guest-btn:hover {
  background: #8a3030;
  border-color: #8a3030;
  color: var(--white);
}

.guest-fields {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.3fr;
  gap: 10px;
}

.guest-fields select {
  padding: 12px 14px;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
  transition: var(--transition);
  appearance: none;
}

.guest-fields select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,168,130,0.15);
}

.guest-fields input,
.guest-fields select {
  padding: 12px 14px;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
  transition: var(--transition);
  appearance: none;
}

.guest-fields input:focus,
.guest-fields select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,168,130,0.15);
}

.btn-small {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 13px;
}

/* Sammanfattning innan skick */
.guest-summary {
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.guest-summary strong {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
}

.guest-summary ul {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guest-summary li {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
  padding-left: 14px;
  position: relative;
}

.guest-summary li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
}

@media (max-width: 600px) {
  .guest-fields { grid-template-columns: 1fr; }
}

/* Toastmadames */
.toastmadames-photo {
  max-width: 340px;
  margin: 24px auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

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

.toastmadames-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 380px));
  gap: 32px;
  justify-content: center;
}

.toastmadame-info-card {
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
}

.toastmadame-info-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 12px;
}

.toastmadame-info-card p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--dark);
}

@media (max-width: 600px) {
  .toastmadames-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); font-style: italic; }

.btn {
  padding: 14px 48px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: var(--transition);
  align-self: flex-start;
}

.btn-primary {
  background: var(--dark);
  color: var(--cream);
  border: 1px solid var(--dark);
}

.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.form-message {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
}

.form-message.success { background: rgba(138,158,138,0.12); color: #4a7a4a; border: 1px solid rgba(138,158,138,0.3); }
.form-message.error   { background: rgba(200,80,80,0.08);  color: #8a3030; border: 1px solid rgba(200,80,80,0.2); }

/* ===================================
   MISC CARDS
   =================================== */
.misc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.misc-card {
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
}

.misc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--rose), var(--gold-light));
}

.misc-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 16px;
}

.misc-card p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.8;
}

/* ===================================
   BRIDESMAIDS
   =================================== */
.bridesmaids-intro {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--mid);
  max-width: 560px;
  margin: 0 auto 60px;
  text-align: center;
}

/* ===================================
   SPEECHES
   =================================== */
.speeches-note {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gold-light);
}

.speeches-note p {
  font-size: 16px;
  color: var(--mid);
  font-weight: 400;
  line-height: 1.7;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--dark);
  color: var(--gold-light);
  padding: 64px 40px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  margin-bottom: 8px;
}

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

.footer-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 32px;
}

.footer p {
  font-size: 12px;
  font-weight: 400;
  color: rgba(253,248,242,0.5);
  line-height: 2;
}

/* ===================================
   SCROLL REVEAL ANIMATION
   =================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   SCROLL-TO-TOP
   =================================== */
#scroll-to-top {
  position: fixed !important;
  bottom: 32px !important;
  right: 32px !important;
  width: 44px !important;
  height: 44px !important;
  background: var(--dark) !important;
  color: var(--cream) !important;
  border: 1px solid rgba(196,168,130,0.3) !important;
  border-radius: 50% !important;
  font-size: 18px !important;
  font-family: var(--font-body) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  z-index: 999 !important;
}

#scroll-to-top:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
}

/* ===================================
   RESPONSIVE — TABLET & MOBIL
   =================================== */
@media (max-width: 900px) {
  .split,
  .schedule-layout { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse .split-image { order: 0; }
  .split-image img { height: 340px; }
  .split-image-caption { display: none; }
  .schedule-side { position: static; }
  .schedule-side-img { height: 320px; border-radius: var(--radius-lg); }
  .gallery-grid { columns: 2 200px; column-gap: 16px; }
  .gallery-item { margin-bottom: 16px; }
  .misc-grid { grid-template-columns: 1fr; }
  .nav-container { padding: 0 24px; }
  .section { padding: 80px 24px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    right: 0;
    bottom: 0;
    width: 100%;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index: 100;
    padding: 0;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .nav-menu.active { left: 0; }

  body.nav-open {
    overflow: hidden;
    height: 100%;
  }

  .nav-link {
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--dark) !important;
  }

  .hero h1 { font-size: 48px; }

  .timeline::before { left: 20px; }

  .form-row { grid-template-columns: 1fr; }

  .speeches-note { padding-bottom: 24px; }
}

@media (max-width: 500px) {
  .hero h1 { font-size: 36px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: 3px; }
  .envelope { width: 300px; height: 210px; }
  .couple-names { font-size: 30px; }
  .gallery-grid { columns: 1; }
  .misc-card { padding: 32px 24px; }
  .btn { width: 100%; text-align: center; justify-content: center; }
  .section { padding: 60px 20px; }
}