/* ==========================================================================
   Katie & Nick — wedding site
   Hand-built recreation of the original WordPress/Elementor design.
   Palette and type ramp taken from the original theme.
   ========================================================================== */

:root {
  --gold: #C6A85A;
  --gold-dark: #8C7432;
  --gold-faint: rgba(140, 116, 50, 0.54);   /* #8C74328A */
  --ink: #040605;
  --bg: #0F1412;
  --cream: #F4F0ED;
  --off-white: #F3F3F3;
  --white: #FFFFFF;
  --text-muted: #7A7A7A;
  --card-dark-veil: rgba(47, 45, 40, 0.12); /* #2F2D281F */
  --heading-color: #2A2A2A;

  --font-heading: 'Alice', serif;
  --font-body: 'Muli', sans-serif;
  --font-display: 'Cinzel Decorative', serif;
  --font-serif: 'Playfair Display', serif;
  --font-garamond: 'Cormorant Garamond', serif;
  --font-script: 'Great Vibes', cursive;

  --content-width: 1140px;
}

/* ---------- Reset / base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover, a:focus { color: var(--gold-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--heading-color);
}

h1 { font-size: 110px; }
h2 { font-size: 56px; }
h3 { font-size: 40px; }
h4 { font-size: 32px; line-height: 1.2; }
h5 { font-size: 24px; }
h6 { font-size: 16px; line-height: 1.25; }

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

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Icon helper (inline Font Awesome SVGs) */
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; }

/* Round stacked icon (The Details, Ceremony, Reception) */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  background-color: var(--gold-faint);
  color: var(--gold);
}
.icon-circle .icon { width: 36px; height: 36px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.48);
  padding: 16px 32px;
  box-shadow: 0 0 10px 0 var(--gold);
  transition: color .2s, border-color .2s;
}
.btn:hover, .btn:focus {
  color: var(--off-white);
  border-color: var(--off-white);
}

/* ---------- Divider with text (SAVE THE DATE) ---------- */

.divider-labeled {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 50%;
  margin: 0 auto;
  padding: 15px 0;
}
.divider-labeled::before,
.divider-labeled::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--gold);
}
.divider-labeled span {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--off-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* Plain centered divider (What to Wear page) */
.divider-plain {
  width: 57%;
  border: 0;
  border-top: 1px solid var(--gold);
  margin: 15px auto;
}

/* Small centered rule used between detail items */
.rule {
  width: 80px;
  border: 0;
  border-top: 1px solid var(--gold);
  margin: 2px auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 897px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: var(--ink); /* exact edge color of the photo — seamless margins */
  background-image: url("../images/Wedding-Background-scaled.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  text-align: center;
  padding-bottom: 50px;
}

/* Wide screens: fit the whole photo (its background is pure black, so the
   side margins are invisible) sized to leave the bottom of the viewport
   clear — the couple stays centered and the text never covers their faces. */
@media (min-width: 900px) {
  .hero {
    background-size: auto calc(100vh - 210px);
    background-size: auto calc(100svh - 210px);
  }
}

.hero .eyebrow {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 16px 10px;
}

.hero h1 {
  font-family: var(--font-display);
  color: var(--gold);
  margin: 0;
}

.hero .hero-date {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--gold);
  margin: 16px 0 0;
}

.hero .btn { margin-top: 24px; }

/* ==========================================================================
   Our Story
   ========================================================================== */

.story {
  background-image: linear-gradient(180deg, var(--ink) 0%, var(--bg) 100%);
  padding: 104px 0;
  text-align: center;
}

.story .rose {
  width: 45px;
  margin: 0 auto -20px;
  transform: rotate(22deg);
}

.story h2 {
  font-family: var(--font-garamond);
  color: var(--gold);
  margin: 13px 0 20px;
}

.story .intro {
  font-family: var(--font-serif);
  color: var(--gold-dark);
  max-width: 620px;
  margin: 0 auto;
  padding: 0 24px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: stretch;
  padding: 40px 0;
  margin-top: 20px;
}

.story-col { text-align: left; }
.story-col.katie { padding-right: 80px; }
.story-col.nick  { padding-left: 80px; text-align: right; }

.story-col h3 {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 16px;
}

.story-col p {
  font-family: var(--font-serif);
  color: var(--text-muted);
  font-size: 16px;
}

.story-photo { padding: 40px; align-self: center; }
.story-photo img { width: 100%; }

/* Social icon pills */
.social {
  display: flex;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.story-col.nick .social { justify-content: flex-end; margin-top: 20px; }

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background-color: var(--gold-dark);
  color: var(--gold);
  transition: background-color .2s, color .2s;
}
.social a .icon { width: 16px; height: 16px; }
.social a:hover {
  background-color: var(--gold);
  color: var(--cream);
}

/* ==========================================================================
   Quote (song lyric)
   ========================================================================== */

.quote {
  background-color: var(--bg);
  padding: 30px 20px 60px;
}

.quote-box {
  max-width: 800px;
  margin: 74px auto 0;
  border: 1px solid var(--gold-dark);
  padding: 24px 80px 40px;
  text-align: center;
}

.quote-box .quote-mark { color: var(--gold); }
.quote-box .quote-mark .icon { width: 48px; height: 48px; }
.quote-box .quote-mark.open  { text-align: left; }
.quote-box .quote-mark.close { text-align: right; }

.quote-box h3 { margin: 0; }
.quote-box h3 a {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 40px;
  color: var(--gold);
}
.quote-box h3 a:hover { color: var(--gold-dark); }

.quote-box .attribution {
  font-family: var(--font-body);
  color: var(--text-muted);
  margin: 10px 0 0;
}

/* ==========================================================================
   The Details
   ========================================================================== */

.details {
  position: relative;
  background-color: var(--bg);
  padding: 104px 20px;
  text-align: center;
  overflow: hidden;
}

/* faint floral background */
.details::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/floral-background.png");
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.details > * { position: relative; }

.section-lead-img {
  margin: 0 auto 14px;
}
.section-lead-img.hands { width: 70px; }
.section-lead-img.key   { width: 45px; transform: rotate(45deg); margin-bottom: 20px; }

.section-title {
  color: var(--gold);
  margin-bottom: 14px;
}

.section-desc {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
  max-width: var(--content-width);
  margin: 40px auto 0;
}

.detail-item {
  padding: 24px 10px;
}

.detail-item .icon-circle { margin-bottom: 8px; }

.detail-item h5 {
  color: var(--gold);
  margin-bottom: 9px;
  transition: color .2s;
}

.detail-item p { color: var(--text-muted); }

a.detail-item:hover h5,
a.detail-item:focus h5 { color: var(--gold-dark); }
a.detail-item { display: block; color: inherit; }

/* ==========================================================================
   When & Where
   ========================================================================== */

.when-where {
  padding: 104px 20px;
  text-align: center;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  max-width: 720px;
  margin: 24px auto 0;
}
.countdown .unit {
  flex: 1;
  background-color: var(--bg);
  padding: 20px;
  text-align: center;
}
.countdown .amount {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.1;
  color: var(--gold);
}
.countdown .period {
  display: block;
  margin-top: 10px;
  font-family: var(--font-serif);
  line-height: 1;
  color: var(--white);
}

/* Venue cards */
.venues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  margin: 40px auto 0;
}

.venue {
  border: 1px solid #C78665;
  padding: 40px 30px;
  text-align: center;
}

.venue .icon-circle { margin-bottom: 0; }

.venue h4 { margin: 9px 0; }

.venue ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.venue li a {
  display: block;
  padding: 3px 0;
  transition: color .3s;
}

.venue.ceremony {
  background-color: var(--gold);
  border-right-width: 0;
}
.venue.ceremony h4 { color: var(--white); }
.venue.ceremony .icon-circle {
  background-color: var(--card-dark-veil);
  color: var(--off-white);
}
.venue.ceremony li a { color: var(--cream); }
.venue.ceremony li a:hover { color: var(--white); }

.venue.reception {
  background-color: var(--off-white);
}
.venue.reception h4 { color: var(--heading-color); }
.venue.reception .icon-circle {
  background-color: var(--cream);
  color: var(--gold);
}
.venue.reception li a { color: #000000; }
.venue.reception li a:hover { color: var(--gold-dark); }

/* Map */
.map-wrap {
  max-width: 900px;
  margin: 40px auto 0;
}

#apple-map {
  width: 100%;
  height: 420px;
  border: 1px solid var(--gold-dark);
}

.map-fallback {
  border: 1px solid var(--gold-dark);
  padding: 48px 24px;
  text-align: center;
}
.map-fallback h4 { color: var(--gold); margin-bottom: 8px; }
.map-fallback p { margin-bottom: 24px; }
.map-fallback[hidden] { display: none; }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  padding: 104px 20px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ==========================================================================
   Travel guide pages
   ========================================================================== */

/* 7th card sits alone in the middle column */
.detail-item--center { grid-column: 2; }

.guide-hero {
  background-image: linear-gradient(180deg, var(--ink) 0%, var(--bg) 100%);
  text-align: center;
  padding: 96px 20px 40px;
}
.guide-hero .eyebrow {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--off-white);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 0 10px;
}
.guide-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 90px);
  color: var(--gold);
  margin: 0;
}
.guide-hero .divider-labeled { width: min(420px, 80%); }

.guide {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 0;
}

#guide-city-map {
  width: 100%;
  height: 380px;
  border: 1px solid var(--gold-dark);
  margin-bottom: 32px;
}
#guide-city-map[hidden] { display: none; }

.guide-intro {
  font-family: var(--font-serif);
  color: var(--text-muted);
  font-size: 17px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

/* Expandable category sections */
.guide-cat {
  border-top: 1px solid var(--gold-faint);
}
.guide-cat:last-child { border-bottom: 1px solid var(--gold-faint); }

.guide-cat summary {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
}
.guide-cat summary::-webkit-details-marker { display: none; }

.guide-cat-title {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--gold);
  transition: color .2s;
}
.guide-cat summary:hover .guide-cat-title { color: var(--gold-dark); }

.guide-cat-count {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--gold-faint);
  border-radius: 50%;
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* chevron */
.guide-cat summary::after {
  content: "";
  margin-left: auto;
  width: 9px; height: 9px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: transform .25s;
}
.guide-cat[open] summary::after { transform: rotate(-135deg); }

.guide-places {
  padding: 4px 4px 40px;
  display: grid;
  gap: 40px;
}

.guide-place {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

.guide-place-map {
  height: 200px;
  border: 1px solid var(--gold-faint);
}
.guide-place-map[hidden] { display: none; }

.guide-place h4 { margin-bottom: 8px; }
.guide-place h4 a { color: var(--gold); }
.guide-place h4 a:hover { color: var(--gold-dark); }

.guide-place-blurb {
  font-family: var(--font-serif);
  color: var(--text-muted);
}

.guide-place .map-cta { text-align: left; margin-top: 8px; }

.guide-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.guide-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--gold-faint);
}

@media (max-width: 767px) {
  .guide-hero { padding-top: 64px; }
  #guide-city-map { height: 260px; }
  .guide-place { grid-template-columns: 1fr; }
  .guide-place-map { height: 180px; }
  .guide-cat-title { font-size: 21px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-image: linear-gradient(180deg, var(--bg) 0%, var(--ink) 100%);
  border-top: 1px solid rgba(140, 116, 50, 0.35);
  margin-top: 104px;
  padding: 64px 20px 40px;
  text-align: center;
}

.site-footer .footer-rose {
  width: 34px;
  margin: 0 auto 16px;
  transform: rotate(22deg);
}

.site-footer .footer-names {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold);
  margin: 0;
}

.site-footer .divider-labeled {
  width: min(360px, 70%);
  padding: 10px 0;
}
.site-footer .divider-labeled span {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--gold);
}

.site-footer .footer-venue {
  font-family: var(--font-serif);
  color: var(--text-muted);
  margin: 0 0 20px;
}

.site-footer .footer-social {
  justify-content: center;
  margin-bottom: 24px;
}

.site-footer .footer-note {
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--gold-dark);
  margin: 0;
}

.site-footer .footer-back {
  margin: 0 0 20px;
}
.site-footer .footer-back a {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

/* Map caption link */
.map-cta {
  margin: 12px 0 0;
  text-align: center;
}
.map-cta a {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}
.map-cta[hidden] { display: none; }

/* Content of the MapKit callout bubble (bubble chrome is MapKit's, white) */
.map-callout {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: #2a2a2a;
  padding: 2px 4px;
}
.map-callout a {
  color: #8C7432;
  font-weight: 600;
}

/* ==========================================================================
   What to Wear page
   ========================================================================== */

.wardrobe-hero {
  min-height: 945px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-image: url("../images/wardrobe.png");
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 180px 20px 80px;
}

.wardrobe-hero h1 {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--gold);
  margin: 0;
}

.wardrobe-hero .divider-labeled { width: 57%; }

.wardrobe-hero .lead {
  font-family: var(--font-serif);
  color: rgba(243, 243, 243, 0.74);
  max-width: 57%;
  margin: 0 auto 32px;
}

.wardrobe-hero .btn { border-color: transparent; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  h1 { font-size: 90px; }
  h2 { font-size: 48px; }
  h3 { font-size: 32px; }

  .hero .hero-date { font-size: 32px; }

  .story-grid { grid-template-columns: 1fr; }
  .story-col.katie { padding: 0 40px 40px; }
  .story-col.nick  { padding: 40px 40px 0; }
  .story-photo { padding: 40px 80px; }

  .details-grid { gap: 0 24px; }
}

@media (max-width: 767px) {
  h1 { font-size: 48px; }
  h2 { font-size: 24px; }
  h3 { font-size: 22px; }
  h4 { font-size: 20px; }
  h5 { font-size: 18px; }

  .hero { min-height: 640px; }
  .hero .hero-date { font-size: 22px; }

  .story { padding: 40px 0; }
  .story-col.katie { padding: 0 24px 24px; }
  .story-col.nick  { padding: 24px 24px 0; }
  .story-photo { padding: 24px; }
  .story-col h3 { font-size: 28px; }

  .quote-box {
    margin-top: 40px;
    padding: 16px;
  }
  .quote-box h3 a { font-size: 28px; }

  .details { padding: 80px 20px; }
  .details-grid { grid-template-columns: 1fr; }
  /* release the desktop center-column pin, or it conjures an implicit
     second column and the whole grid renders two-across */
  .detail-item--center { grid-column: auto; }

  .when-where { padding: 80px 0 64px; }
  .countdown .amount { font-size: 28px; }
  .countdown .unit { padding: 12px 6px; }
  .countdown .period { font-size: 13px; }

  .venues { grid-template-columns: 1fr; }
  .venue.ceremony { border-right-width: 1px; border-bottom-width: 0; }

  .gallery { padding: 64px 20px 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }

  .wardrobe-hero { padding-top: 120px; }
  .wardrobe-hero h1 { font-size: 36px; }
  .wardrobe-hero .lead,
  .wardrobe-hero .divider-labeled { max-width: 90%; width: 90%; }
}
