/* =========================================
   Custom Properties
   ========================================= */
:root {
  --cream: #faf6ed;
  --white: #fffef9;
  --navy: #1a3565;
  --navy-deep: #0f2548;
  --gold: #c49a1a;
  --gold-soft: #f0e3b0;
  --green: #3d7a40;
  --lemon: #e8c22a;
  --ink: #2a2624;
  --muted: #6b6050;
  --line: rgba(26, 53, 101, 0.12);
  --shadow: 0 20px 52px rgba(26, 53, 101, 0.11);
  --shadow-sm: 0 6px 22px rgba(26, 53, 101, 0.07);
}

/* =========================================
   Base
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(250, 246, 237, 0.38), rgba(250, 246, 237, 0.38)),
    url("assets/lemon_theme/floral_lemons_background.png") center top / cover fixed;
  background-color: var(--cream);
}

a { color: inherit; }

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

h1, h2, h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
}

p {
  margin: 0 0 0.75rem;
  line-height: 1.75;
}

p:last-child { margin-bottom: 0; }

blockquote { margin: 0; padding: 0; border: none; }

/* =========================================
   Header
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(250, 246, 237, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy-deep);
  font-family: "Great Vibes", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}

.site-nav a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  margin: 0.28rem auto;
  background: var(--navy-deep);
}

/* =========================================
   Eyebrow / Tag labels
   ========================================= */
.eyebrow,
.card-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* =========================================
   Hero (index page)
   ========================================= */
.hero {
  min-height: calc(100svh - 3.6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 5rem);
  max-width: 1220px;
  margin-inline: auto;
}

.hero-content {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.75rem, 3.5vw, 2.5rem);
  background: rgba(255, 254, 249, 0.9);
  border: 1px solid rgba(26, 53, 101, 0.08);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.hero-names {
  margin: 0;
  font-family: "Great Vibes", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(4rem, 12vw, 8.5rem);
  line-height: 1.05;
  color: var(--navy-deep);
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}

.hero-date {
  margin: 0.6rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: var(--navy);
}

.hero-venue {
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.hero-quote {
  margin: 1.5rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.72;
  color: var(--navy);
  max-width: 38rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  border: 0.9rem solid rgba(255, 254, 249, 0.96);
  box-shadow: var(--shadow), 0 0 0 1px rgba(26, 53, 101, 0.1);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(26, 53, 101, 0.14);
  border-radius: 5px;
  z-index: 1;
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* =========================================
   Buttons
   ========================================= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--navy);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.button.primary {
  background: var(--navy);
  color: white;
}

.button.primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--navy);
  background: transparent;
}

.button.secondary:hover {
  background: rgba(26, 53, 101, 0.06);
}

/* =========================================
   Ornament divider
   ========================================= */
.ornament {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 16rem;
  margin: clamp(1.25rem, 3vw, 2rem) auto;
  color: var(--gold);
  font-size: 0.85rem;
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

/* =========================================
   Intro band (index page)
   ========================================= */
.intro-band {
  width: min(860px, calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.intro-band h2 {
  color: var(--navy-deep);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.intro-band p {
  max-width: 44rem;
  margin-inline: auto;
  font-size: 1.05rem;
  color: var(--muted);
}

/* =========================================
   Preview cards (index page)
   ========================================= */
.preview-band {
  width: min(1000px, calc(100% - 2rem));
  margin-inline: auto;
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  padding-top: clamp(0.5rem, 1vw, 1rem);
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.preview-card {
  display: block;
  background: rgba(255, 254, 249, 0.92);
  border: 1px solid rgba(26, 53, 101, 0.1);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.preview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.preview-card .pc-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.preview-card h3 {
  margin-bottom: 0.6rem;
  color: var(--navy-deep);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.preview-card p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* =========================================
   Inner page layout
   ========================================= */
.page {
  width: min(960px, calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 7rem);
}

.page-hero {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.page-hero .eyebrow {
  margin-bottom: 0.6rem;
}

.page-hero h1 {
  color: var(--navy-deep);
  font-size: clamp(2.75rem, 8vw, 5rem);
}

/* =========================================
   Info cards
   ========================================= */
.info-section {
  margin-bottom: clamp(1.75rem, 4.5vw, 3rem);
}

.info-card {
  background: rgba(255, 254, 249, 0.94);
  border: 1px solid rgba(26, 53, 101, 0.09);
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.info-card .card-tag {
  text-align: center;
}

.info-card h2 {
  text-align: center;
  color: var(--navy-deep);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
}

/* Dress code title is larger — needs explicit override */
.info-card h2.dress-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

/* Basic info three-column grid */
.basic-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(26, 53, 101, 0.09);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.bii {
  background: rgba(255, 254, 249, 0.98);
  padding: 1.25rem 1rem;
  text-align: center;
}

.bii-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.bii-value {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.3;
}

.bii-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.info-note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.info-note strong {
  color: var(--navy-deep);
  font-weight: 700;
}

/* =========================================
   Harmonogram timeline
   ========================================= */
.harmonogram {
  margin-top: 1.5rem;
}

.tl-item {
  position: relative;
  display: flex;
  gap: 1.25rem;
  padding-left: 1.75rem;
  padding-bottom: 1.1rem;
}

.tl-item:last-child {
  padding-bottom: 0;
}

/* Vertical line connecting to next item */
.tl-item::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.85rem;
  bottom: 0;
  width: 1.5px;
  background: rgba(196, 154, 26, 0.38);
}

.tl-item:last-child::before {
  display: none;
}

/* Dot on the timeline */
.tl-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid rgba(255, 254, 249, 0.98);
  box-shadow: 0 0 0 1.5px var(--gold);
}

.tl-item.tl-minor::after {
  background: rgba(255, 254, 249, 0.98);
  box-shadow: 0 0 0 1.5px rgba(196, 154, 26, 0.55);
}

.tl-time {
  min-width: 3rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  padding-top: 0.05rem;
  flex-shrink: 0;
}

.tl-desc {
  padding-top: 0.05rem;
}

.tl-desc strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.tl-desc span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* =========================================
   Dress Code
   ========================================= */
.dress-title {
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--navy-deep);
  margin: 0;
  line-height: 1.15;
}

.c-lemon { color: var(--lemon); }
.c-blue  { color: var(--navy); }
.c-green { color: var(--green); }

.color-swatches {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.swatch-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.swatch-name {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  max-width: 5.5rem;
  line-height: 1.35;
}

/* =========================================
   Two-column info layout
   ========================================= */
.info-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* =========================================
   Content image (harmonogram, story — used as-is)
   ========================================= */
.content-image {
  margin: 0 auto clamp(1rem, 3vw, 2rem);
  max-width: 480px;
  width: 100%;
}

.content-image--wide {
  max-width: 700px;
}

.content-image img {
  display: block;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(26, 53, 101, 0.13);
}

/* =========================================
   Story page photo grid
   ========================================= */
.story-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.story-photos-grid .photo-frame {
  aspect-ratio: 3 / 4;
  margin: 0;
}

/* =========================================
   Photo frame
   ========================================= */
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 0.7rem solid rgba(255, 254, 249, 0.96);
  box-shadow: var(--shadow), 0 0 0 1px rgba(26, 53, 101, 0.1);
  background: var(--cream);
  margin: 0;
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 1px solid rgba(26, 53, 101, 0.13);
  border-radius: 6px;
  pointer-events: none;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   Story / About
   ========================================= */
.story-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.6fr) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.story-sticky {
  position: sticky;
  top: 5.5rem;
}

.story-photo {
  aspect-ratio: 3 / 4;
}

.story-caption {
  margin-top: 0.75rem;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
}

.story-steps {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.story-step {
  background: rgba(255, 254, 249, 0.92);
  border: 1px solid rgba(26, 53, 101, 0.09);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0 0.75rem;
  align-items: start;
}

.step-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.15;
  padding-top: 0.05rem;
}

.step-body h3 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
  color: var(--navy-deep);
}

.step-body p {
  font-size: 0.88rem;
  color: var(--muted);
}

.story-closing {
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--navy);
  max-width: 42rem;
  margin-inline: auto;
}

/* =========================================
   Getting there / Route
   ========================================= */
.route-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.address-card {
  background: rgba(255, 254, 249, 0.94);
  border: 1px solid rgba(26, 53, 101, 0.09);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.1rem;
}

.address-card h3 {
  color: var(--navy-deep);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.address-card address {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.75;
}

.address-card .map-link {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 53, 101, 0.28);
  transition: border-color 0.2s, color 0.2s;
}

.address-card .map-link:hover {
  color: var(--navy-deep);
  border-color: var(--navy-deep);
}

.route-steps {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.route-step {
  background: rgba(255, 254, 249, 0.92);
  border: 1px solid rgba(26, 53, 101, 0.09);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.route-step .rs-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.4rem;
}

.route-step h3 {
  margin-bottom: 0.35rem;
  color: var(--navy-deep);
  font-size: 1.3rem;
}

.route-step p {
  font-size: 0.9rem;
  color: var(--muted);
}

.route-step strong {
  color: var(--navy-deep);
}

.venue-map-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: block;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  width: min(960px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 0 2.75rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer p.footer-brand {
  font-family: "Great Vibes", "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  color: var(--navy-deep);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* =========================================
   Responsive — 860px
   ========================================= */
@media (max-width: 860px) {
  body {
    background:
      linear-gradient(rgba(250, 246, 237, 0.42), rgba(250, 246, 237, 0.42)),
      url("assets/lemon_theme/floral_lemons_background.png") center top / cover;
    background-color: var(--cream);
  }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(250, 246, 237, 0.98);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }

  .site-nav.open { display: flex; }

  .site-nav a { padding: 0.7rem 0.75rem; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 2rem 1.25rem;
    gap: 2rem;
  }

  .hero-photo {
    max-width: 20rem;
    margin-inline: auto;
    aspect-ratio: 4 / 3;
  }

  .basic-info-grid { grid-template-columns: 1fr; }

  .info-two-col { grid-template-columns: 1fr; }

  .preview-cards { grid-template-columns: 1fr; }

  .story-layout { grid-template-columns: 1fr; }

  .story-sticky { position: static; }

  .story-photo { aspect-ratio: 16 / 10; }

  .route-layout { grid-template-columns: 1fr; }

  .site-footer { flex-direction: column; text-align: center; }
}

/* =========================================
   Responsive — 520px
   ========================================= */
@media (max-width: 520px) {
  .site-header { padding-inline: 0.875rem; }

  .brand { font-size: 1.35rem; }

  .hero-names { font-size: clamp(3.5rem, 22vw, 5.5rem); }

  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; text-align: center; }

  .color-swatches { gap: 1.25rem; }

  .story-step {
    grid-template-columns: 1.75rem 1fr;
  }
}
