/* ==========================================================================
   Emma & Darrel — #OurBigDay2026
   Premium romantic wedding design system

   Fonts:
     Headings      — Playfair Display (editorial serif)
     Script accent — Cormorant Garamond italic
     Body / UI     — Inter (clean sans)

   Official wedding palette (used with restraint + hierarchy):
     Crimson        #8C031C  — strongest accent: headings, nav, buttons, markers
     Rose Flame     #F24B6A  — romantic accent: hovers, secondary buttons, highlights
     Blush          #F26B6B  — soft supporting: card tints, hover backgrounds
     Olive Green    #718C49  — botanical accent: leaf motifs, small badges, icons
     Spiced Orange  #F27405  — rare micro-accent: tiny highlight details only
   ========================================================================== */

:root {
  /* ---- brand colors ---- */
  --crimson: #8C031C;
  --crimson-dark: #6c0216;
  --rose: #F24B6A;
  --coral: #F26B6B;
  --olive: #718C49;
  --olive-dark: #5a7138;
  --orange: #F27405;

  /* tints (soft, low-opacity surfaces) */
  --crimson-tint: rgba(140, 3, 28, 0.07);
  --crimson-line: rgba(140, 3, 28, 0.16);
  --rose-tint: rgba(242, 75, 106, 0.09);
  --coral-tint: rgba(242, 107, 107, 0.12);
  --olive-tint: rgba(113, 140, 73, 0.10);
  --orange-tint: rgba(242, 116, 5, 0.14);

  /* neutrals — warm ivory canvas */
  --ivory: #FBF7EF;
  --cream: #F7EEE1;
  --cream-soft: #F2E7D6;
  --ink: #2A1A1C;
  --ink-soft: #5B454A;
  --ink-faint: #8A7377;
  --line: rgba(42, 26, 28, 0.10);
  --white: #FFFFFF;

  --shadow-soft: 0 10px 28px rgba(44, 10, 16, 0.08);
  --shadow-strong: 0 22px 48px rgba(44, 10, 16, 0.16);

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1200px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

/* Interior pages (every page with a .page-hero banner) carry a soft,
   fixed wash of the wedding palette behind the whole page — an
   editorial "watercolor" backdrop rather than a flat ivory canvas.
   The homepage is exempt; its hero photos already fill the screen. */
body:has(.page-hero) {
  background-color: var(--ivory);
  background-image:
    radial-gradient(ellipse 620px 520px at 4% 6%, var(--coral-tint), transparent 55%),
    radial-gradient(ellipse 520px 440px at 98% 12%, var(--rose-tint), transparent 55%),
    radial-gradient(ellipse 560px 480px at 2% 68%, var(--olive-tint), transparent 55%),
    radial-gradient(ellipse 540px 460px at 99% 88%, var(--crimson-tint), transparent 55%),
    radial-gradient(ellipse 440px 380px at 52% 42%, var(--orange-tint), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---- Typography ---- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 600;
  margin-bottom: 12px;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose));
}
.eyebrow::after { background: linear-gradient(90deg, var(--rose), transparent); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.04em;
  color: var(--ink);
}

h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: 0.03em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; letter-spacing: 0.02em; font-weight: 600; }

p { color: var(--ink-soft); }

.divider {
  width: 86px;
  height: 14px;
  margin: 20px auto;
  position: relative;
}
.divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--crimson-line) 20%, var(--rose) 50%, var(--crimson-line) 80%, transparent);
}
.divider::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 7px; height: 7px;
  background: var(--olive);
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 3px var(--ivory);
}

.amp {
  font-family: var(--font-script);
  color: var(--rose);
  font-style: italic;
  font-weight: 500;
  padding: 0 .18em;
}

/* ---- Site header / nav ---- */

/* Persistent utility bar for interior pages only — never shown on the
   homepage, which carries its own navigation in the hero link list.
   A small uncropped logo mark sits centered above a classic inline nav
   row on desktop; on mobile the row collapses behind a hamburger. */
.site-header {
  position: sticky;
  top: 0;
  padding: 14px 0 12px;
  background: rgba(251, 247, 239, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 210;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
}

/* The logo mark is shown whole — never cropped — scaled down to fit a
   small bounding box while keeping its full portrait composition. */
.monogram {
  display: inline-block;
  flex: 0 0 auto;
  width: 72px;
  height: 90px;
  margin-bottom: -12px;
  background-color: transparent;
  background-image: url('../img/logoDarell.webp');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  filter: drop-shadow(0 2px 4px rgba(42, 26, 28, 0.15));
  transition: transform .3s ease;
}

a.monogram:hover { transform: scale(1.08); }

@media (min-width: 901px) {
  .monogram { width: 92px; height: 115px; margin-bottom: -16px; }
}

.main-nav {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 30px;
  background: none;
  box-shadow: none;
  padding: 0;
  max-height: none;
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.main-nav a {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  white-space: nowrap;
  transition: color .25s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--rose));
  border-radius: 2px;
  transition: width .3s ease;
}

.main-nav a:hover { color: var(--crimson); }
.main-nav a:hover::after { width: 100%; }
.main-nav a.active { color: var(--crimson); }
.main-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  position: absolute;
  top: 2px;
  right: 24px;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--crimson-line);
  background: var(--ivory);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
  padding: 0;
  transition: background .25s ease, border-color .25s ease;
}

.nav-toggle:hover { background: var(--coral-tint); }

.nav-toggle-bar {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--crimson);
  transition: transform .35s cubic-bezier(.65,0,.35,1), opacity .25s ease, width .25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(32, 14, 16, 0.4);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 190;
}
.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Below 901px the inline row collapses behind a hamburger; the nav
   becomes a dropdown card anchored under the header. */
@media (max-width: 900px) {
  /* Row layout — logo left, hamburger right — rather than the
     centered-column arrangement desktop uses. */
  .site-header-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
  }

  /* The negative margin below the logo exists to tighten the
     centered-column stack on desktop; irrelevant and visually wrong
     once logo and hamburger sit side by side in a row. */
  .monogram { margin-bottom: 0; }

  .nav-toggle {
    display: flex;
    position: static;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    width: min(88vw, 380px);
    max-height: min(72vh, 520px);
    background: var(--cream);
    background-image:
      radial-gradient(ellipse 320px 220px at 92% 0%, var(--coral-tint), transparent 60%),
      radial-gradient(ellipse 280px 200px at 6% 100%, var(--olive-tint), transparent 60%);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 10px 28px 28px;
    border-radius: var(--radius-lg);
    box-shadow: 0 28px 50px rgba(42, 26, 28, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s;
    overflow-y: auto;
    z-index: 1;
  }

  .main-nav.is-open {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform .3s ease, opacity .3s ease, visibility 0s linear 0s;
  }

  .main-nav a {
    width: 100%;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--ink);
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a::after { display: none; }
  .main-nav a.active, .main-nav a:hover { color: var(--crimson); }

  .main-nav::after {
    content: '#OurBigDay2026';
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: 20px;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    overflow-wrap: break-word;
    color: var(--crimson);
    font-weight: 700;
  }
}

/* ---- Hero (home page) ---- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  min-height: 100vh;
  align-items: stretch;
}

.hero-photo {
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-stack .hero-photo-base,
.hero-photo-stack .hero-photo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-stack .hero-photo-layer {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-photo-stack .hero-photo-layer.is-visible { opacity: 1; }

.hero-photo-stack .hero-photo-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  width: 100%;
  height: min(100vh, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  padding: 20px;
  box-sizing: border-box;
  background: var(--cream);
}

.hero-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* Decorative name caption burned onto the mobile hero photo — hidden
   on desktop, where the names already live in .hero-content. */
.hero-photo-caption { display: none; }

.hero-content {
  background: var(--cream);
  background-image:
    radial-gradient(ellipse 420px 320px at 15% 10%, var(--coral-tint), transparent 60%),
    radial-gradient(ellipse 380px 300px at 90% 95%, var(--olive-tint), transparent 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 32px;
  gap: 4px;
  position: relative;
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Shown whole (never cropped) as the hero's focal crest — sized to
   stay legible without pushing the rest of the hero content off-screen
   on shorter viewports. */
.hero-content .monogram {
  width: 164px;
  height: 205px;
  margin-bottom: -14px;
  filter: drop-shadow(0 6px 16px rgba(42, 26, 28, 0.18));
}

@media (min-width: 901px) {
  .hero-content .monogram { width: 260px; height: 325px; margin-bottom: -22px; }
}

.hero-names {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  letter-spacing: 0.06em;
  margin: 4px 0 10px;
  color: var(--ink);
}

.hero-tag {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--crimson);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-tag::before, .hero-tag::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--rose);
}

.hero-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  max-width: 320px;
  position: relative;
  border-bottom: 1px solid var(--crimson-line);
}

.hero-links a {
  padding: 13px 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
  transition: color .25s ease, padding-left .25s ease;
  position: relative;
  text-align: left;
}

.hero-links a::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--olive);
  transform: translateY(-50%) rotate(45deg) scale(0);
  transition: transform .25s ease;
}

.hero-links a:hover {
  color: var(--crimson);
  padding-left: 14px;
}
.hero-links a:hover::before { transform: translateY(-50%) rotate(45deg) scale(1); }

.hero-locations {
  margin-top: 34px;
  width: 100%;
  max-width: 340px;
  border-top: 1px solid var(--crimson-line);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-location-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero-location-row .tag-arrow {
  color: var(--white);
  background: var(--crimson);
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 0.74rem;
  padding: 5px 12px;
  border-radius: 999px;
  transition: background .25s ease, transform .25s ease;
}

.hero-location-row:hover .tag-arrow {
  background: var(--crimson-dark);
  transform: translateX(3px);
}

.site-footer {
  text-align: center;
  padding: 28px 0 34px;
  position: relative;
}
.site-footer::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, var(--crimson-line), transparent);
}

.site-footer-badge {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto;
  opacity: 0.92;
}

/* ---- Interior pages ---- */

.page-hero {
  position: relative;
  text-align: center;
  padding: 72px 24px 44px;
  background: var(--cream);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--crimson-tint), transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--olive-tint), transparent 70%);
  pointer-events: none;
}

.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); position: relative; z-index: 1; }
.page-hero .eyebrow, .page-hero .divider { position: relative; z-index: 1; }

.card {
  max-width: 720px;
  margin: 0 auto 60px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 46px 40px;
}

.card + .card { margin-top: 24px; }

.card-section {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.card-section:last-child { border-bottom: none; }
.card-section h3 { margin-bottom: 10px; }
.card-section p { margin: 0 auto; max-width: 480px; }

.venue-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0 auto 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.note-box {
  background: var(--coral-tint);
  border: 1px solid var(--crimson-line);
  padding: 18px 22px;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
}

/* ---- Wedding Details page (details.html) ---- */

.note-section { padding-bottom: 26px; }

.note-quote {
  position: relative;
  max-width: 460px;
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-soft);
  padding: 0 8px;
}

/* Event facts — an icon-led info row that wraps gracefully instead of
   cramming four values into fixed-width boxes on narrow screens. */
.event-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 44px;
  max-width: 600px;
  margin: 0 auto;
}

.event-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 150px;
}

.event-fact-icon { font-size: 1.35rem; line-height: 1; }

.event-fact-label {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
}

.event-fact-value {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.35;
}

.event-fact-link {
  text-decoration: underline;
  text-decoration-color: var(--crimson-line);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.event-fact-link:hover {
  color: var(--crimson);
  text-decoration-color: var(--crimson);
}

.rsvp-contacts-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.rsvp-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.rsvp-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 1 150px;
  padding: 20px 14px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.rsvp-contact:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: var(--crimson-line);
}

.rsvp-contact-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.rsvp-contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  background: var(--crimson);
  padding: 7px 14px;
  border-radius: 999px;
  transition: background .25s ease;
}

.rsvp-contact-phone::before {
  content: '\260E';
  font-size: 0.78rem;
}

.rsvp-contact:hover .rsvp-contact-phone { background: var(--crimson-dark); }

/* Gift panel — a distinct "keepsake" treatment (dashed border + warm
   tint) so it reads as its own thing rather than another plain box. */
.gift-panel {
  max-width: 420px;
  margin: 0 auto;
  padding: 26px 28px;
  border: 1.5px dashed var(--crimson-line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--coral-tint), var(--orange-tint));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gift-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  text-align: left;
}

.gift-field-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson);
  white-space: nowrap;
}

.gift-field-value {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--ink);
  text-align: right;
}

.gift-field-todo {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

@media (max-width: 480px) {
  .gift-field { flex-direction: column; gap: 2px; text-align: center; }
  .gift-field-value { text-align: center; }
}

/* ---- Wedding color palette swatches (Style Guide) ---- */

.palette-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 22px auto 4px;
  max-width: 560px;
}

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

.swatch-chip {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255,255,255,0.4);
}

.swatch-name {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* grid layouts for party / program */

.person-card {
  text-align: center;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.person-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: var(--crimson-line);
}

.person-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin: 0 auto 18px;
  object-fit: cover;
  display: block;
  padding: 4px;
  background: linear-gradient(135deg, var(--crimson), var(--rose));
}

/* ---- Wedding party squad cards (party.html) ---- */

.squad-section {
  max-width: 880px;
  margin: 0 auto 56px;
  padding: 0 24px;
}

.squad-label {
  text-align: center;
  margin-bottom: 28px;
}

.squad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 560px) {
  .squad-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (min-width: 860px) {
  .squad-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}

.squad-grid .person-card {
  text-align: left;
  padding: 0;
  overflow: hidden;
}

.person-photo-frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream-soft);
  border-bottom: 1px solid var(--line);
}

.person-photo-frame .person-photo {
  width: 100%;
  height: 100%;
  border-radius: 0;
  padding: 0;
  background: none;
  margin: 0;
  object-fit: cover;
  transition: transform .5s ease;
}

.person-card:hover .person-photo-frame .person-photo { transform: scale(1.05); }

.person-card-body {
  padding: 14px 16px 20px;
  text-align: center;
}

.person-name {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.person-role {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
}

.timeline {
  --marker: 10px;
  --rail: 29px; /* distance from the timeline's left edge to the marker's center */
  max-width: 560px;
  margin: 0 auto 60px;
  padding: 0 24px;
  position: relative;
}

/* The connecting line is centered exactly on the marker dots below,
   not on the time labels. */
.timeline::before {
  content: '';
  position: absolute;
  left: calc(var(--rail) - 1px);
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--crimson), var(--rose) 60%, var(--olive-tint));
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 18px 0 18px calc(var(--rail) - 24px + var(--marker) / 2 + 14px);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(var(--rail) - 24px - var(--marker) / 2);
  top: 50%;
  width: var(--marker);
  height: var(--marker);
  margin-top: calc(var(--marker) / -2);
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px var(--crimson-line);
  z-index: 1;
}

.timeline-time {
  flex: 0 0 90px;
  color: var(--crimson);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Editorial mosaic: an asymmetric grid of feature + companion tiles
   rather than a uniform snapshot grid. */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  gap: 14px;
  max-width: var(--max-width);
  margin: 0 auto 60px;
  padding: 0 32px;
}

.photo-tile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform .4s ease, box-shadow .4s ease;
}

.photo-tile:hover {
  transform: scale(1.025);
  box-shadow: var(--shadow-strong);
  position: relative;
  z-index: 2;
}

/* Spans apply to every grid child (photos and action tiles alike) so
   the mosaic stays intact regardless of which cell holds what. */
.photo-grid > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.photo-grid > *:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.photo-grid > *:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.photo-grid > *:nth-child(4) { grid-column: span 1; grid-row: span 1; }
.photo-grid > *:nth-child(5) { grid-column: span 2; grid-row: span 2; }
.photo-grid > *:nth-child(6) { grid-column: span 2; grid-row: span 1; }
.photo-grid > *:nth-child(7) { grid-column: span 2; grid-row: span 1; }

.photo-tile { cursor: zoom-in; }

/* Clickable CTA tiles woven into the photo mosaic in place of real
   photos — same footprint and shadow language as .photo-tile, but a
   solid brand-gradient surface carrying an icon + label instead. */
.photo-action-tile {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  color: var(--white);
  transition: transform .4s ease, box-shadow .4s ease;
}

.photo-action-tile:hover {
  transform: scale(1.025);
  box-shadow: var(--shadow-strong);
  position: relative;
  z-index: 2;
}

.photo-action-tile--gallery { background: linear-gradient(135deg, var(--crimson), var(--rose)); }
.photo-action-tile--upload { background: linear-gradient(135deg, var(--olive), var(--olive-dark)); }

.photo-action-tile-icon { font-size: 1.6rem; line-height: 1; }

.photo-action-tile-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.photo-action-tile-sub {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.92;
}

/* ---- Photo lightbox (album preview) ---- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 12, 14, 0.9);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
  padding: 28px;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .3s ease, visibility 0s linear 0s;
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  transform: scale(.97);
  transition: transform .3s ease;
}

.lightbox.is-open .lightbox-figure { transform: scale(1); }

.lightbox-figure img {
  max-width: min(88vw, 980px);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  background: var(--ivory);
}

.lightbox-counter {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: .8;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(251, 247, 239, 0.3);
  background: rgba(251, 247, 239, 0.08);
  color: var(--ivory);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(242, 75, 106, 0.28);
  border-color: var(--rose);
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(2px); }

@media (max-width: 600px) {
  .lightbox-close { top: 14px; right: 14px; width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-nav { width: 42px; height: 42px; }
}

/* ---- Scroll reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; display: block; }
  .hero-names { font-size: 2rem; }

  .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .photo-grid > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .photo-grid > *:nth-child(2) { grid-column: span 1; grid-row: span 1; }
  .photo-grid > *:nth-child(3) { grid-column: span 1; grid-row: span 1; }
  .photo-grid > *:nth-child(4) { grid-column: span 2; grid-row: span 1; }
  .photo-grid > *:nth-child(5) { grid-column: span 2; grid-row: span 2; }
  /* The two action tiles get the full row width each on narrow
     screens so their icon/title/subtitle stay comfortably legible. */
  .photo-grid > *:nth-child(6),
  .photo-grid > *:nth-child(7) { grid-column: span 2; grid-row: span 1; }
  .photo-action-tile { padding: 24px; }

  .hero-photo-main {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    z-index: 0;
  }

  /* Modern bottom-scrim caption, burned onto the mobile hero photo —
     brand ink fading up from a deep crimson base so the names read
     clearly over any photo while staying on the site's own palette. */
  .hero-photo-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 120px 28px 60px;
    text-align: center;
    background:
      linear-gradient(180deg,
        rgba(42, 26, 28, 0) 0%,
        rgba(42, 26, 28, 0.22) 40%,
        rgba(42, 26, 28, 0.66) 72%,
        rgba(108, 2, 22, 0.88) 100%);
  }

  .hero-photo-caption-rule {
    width: 52px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
  }

  .hero-photo-caption-names {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    letter-spacing: 0.1em;
    color: var(--white);
    text-shadow: 0 2px 18px rgba(20, 10, 10, 0.4);
  }

  .hero-photo-caption-names .amp { color: var(--coral); }

  .hero-photo-caption-tag {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--orange);
  }

  .scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 22px;
    width: 22px;
    height: 22px;
    z-index: 2;
    border-right: 2px solid rgba(255,255,255,.9);
    border-bottom: 2px solid rgba(255,255,255,.9);
    transform: translateX(-50%) rotate(45deg);
    animation: scroll-cue-bob 1.8s ease-in-out infinite;
  }

  @keyframes scroll-cue-bob {
    0%, 100% { transform: translateX(-50%) rotate(45deg) translate(0, 0); opacity: .85; }
    50% { transform: translateX(-50%) rotate(45deg) translate(6px, 6px); opacity: .45; }
  }

  .hero-photo-stack { display: none; }

  .hero-content {
    position: relative;
    background: none;
    background-image: none;
    isolation: isolate;
    z-index: 1;
    border-radius: 28px 28px 0 0;
    margin-top: -28px;
    box-shadow: 0 -24px 40px rgba(20, 15, 8, 0.35);
    /* On mobile this panel is a normal-flow block below the sticky
       photo, not a 100vh column — let it grow and the page scroll,
       rather than trapping scroll inside a capped inner box. */
    max-height: none;
    overflow-y: visible;
  }
  .hero-content::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(var(--cream) 0%, rgba(247,238,225,0.93) 55%, var(--cream) 100%),
                url('../img/Pre Wed Shoot/Main Hero.jpeg') center 25% / cover;
  }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .container { padding: 0 20px; }
  .site-header-inner { padding: 0 20px; }
  h1 { font-size: 1.6rem; letter-spacing: 0.02em; }
  .hero-names { font-size: 1.7rem; letter-spacing: 0.04em; }
  .hero-content { padding: 36px 22px; }
  .card { padding: 32px 22px; }
  .palette-swatches { grid-template-columns: repeat(3, 1fr); gap: 18px 14px; max-width: 320px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 8px; padding: 0 16px; }
  .photo-action-tile { padding: 14px; gap: 4px; }
  .photo-action-tile-title { font-size: 0.92rem; }
  .photo-action-tile-sub { font-size: 0.66rem; }
  .timeline-item { gap: 14px; }
  .timeline-time { flex: 0 0 72px; font-size: 0.72rem; }
}
