/*
Theme Name: Golden Jubilee
Theme URI: https://jovitoandnancy.com
Author: Leandro
Description: An elegant, modern gold & white one-page theme celebrating Jovito and Nancy's Golden Wedding Anniversary. Uses the site's existing media library.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: golden-jubilee
*/

:root {
  --gold: #b08d3c;
  --gold-light: #d4b96a;
  --gold-pale: #f6efdf;
  --ink: #2b2622;
  --muted: #7a716a;
  --white: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-alt { background: var(--gold-pale); }
.text-center { text-align: center; }

/* Eyebrow + headings */
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title { font-size: clamp(34px, 5vw, 52px); margin-bottom: 20px; }
.divider {
  width: 70px; height: 1px; background: var(--gold);
  margin: 28px auto; position: relative;
}
.divider::after {
  content: '\2740';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: inherit; color: var(--gold); font-size: 18px;
  background: transparent;
}
.section-alt .divider::after { color: var(--gold); }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  padding: 10px 32px;
}
.site-brand {
  font-family: var(--serif); font-size: 26px; color: var(--white);
  transition: color .3s;
}
.site-header.scrolled .site-brand { color: var(--ink); }
.site-nav a {
  margin-left: 28px; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--white); transition: color .3s;
}
.site-header.scrolled .site-nav a { color: var(--ink); }
.site-nav a:hover { color: var(--gold-light); }
.site-header.scrolled .site-nav a:hover { color: var(--gold); }
@media (max-width: 820px) { .site-nav { display: none; } .site-header .site-brand { color: var(--white); } }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
  background-size: cover; background-position: center 30%;
  color: var(--white);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,24,15,.55), rgba(30,24,15,.65));
}
.hero-inner { position: relative; z-index: 1; padding: 120px 24px; max-width: 900px; }
.hero .eyebrow { color: var(--gold-light); }
.hero-title {
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 500; font-style: italic; margin: 10px 0;
}
.hero-sub {
  font-size: clamp(18px, 2.5vw, 24px);
  letter-spacing: 6px; text-transform: uppercase; font-weight: 300;
}
.hero-date {
  display: inline-block; margin-top: 34px; padding: 14px 44px;
  border: 1px solid var(--gold-light); color: var(--gold-light);
  font-size: 16px; letter-spacing: 4px; text-transform: uppercase;
}
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: var(--white); font-size: 24px; z-index: 1;
  animation: bob 2s infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,10px);} }

/* ===== Story ===== */
.story p { max-width: 780px; margin: 0 auto 22px; color: var(--muted); font-size: 17.5px; }
.story .verse {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--gold); margin-top: 34px;
}

/* ===== Couple ===== */
.couple-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  max-width: 860px; margin: 50px auto 0;
}
@media (max-width: 700px) { .couple-grid { grid-template-columns: 1fr; } }
.couple-card { text-align: center; }
.couple-photo {
  width: 240px; height: 240px; margin: 0 auto 24px;
  border-radius: 50%; overflow: hidden;
  border: 3px solid var(--gold-light);
  padding: 6px; background: var(--white);
}
.couple-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.couple-card h3 { font-size: 30px; }
.couple-role {
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-top: 6px; display: block;
}

/* ===== Quote band ===== */
.quote-band {
  background: linear-gradient(rgba(30,24,15,.72), rgba(30,24,15,.72)) center/cover fixed;
  background-color: var(--ink);
  color: var(--white); text-align: center; padding: 110px 24px;
}
.quote-band blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(26px, 4vw, 40px); max-width: 820px; margin: 0 auto;
}
.quote-band cite {
  display: block; margin-top: 22px; font-family: var(--sans);
  font-style: normal; font-size: 13px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold-light);
}

/* ===== Details ===== */
.details-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px;
}
@media (max-width: 900px) { .details-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .details-grid { grid-template-columns: 1fr; } }
.detail-card {
  background: var(--white); padding: 44px 28px; text-align: center;
  border: 1px solid #eee3c8; transition: transform .3s, box-shadow .3s;
}
.detail-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(176,141,60,.15); }
.detail-card .icon { font-size: 34px; color: var(--gold); margin-bottom: 14px; }
.detail-card h4 { font-size: 22px; }

/* ===== Galleries ===== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 50px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid a {
  display: block; overflow: hidden; aspect-ratio: 1 / 1; background: var(--gold-pale);
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-grid a:hover img { transform: scale(1.07); }
.gallery-grid.featured { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .gallery-grid.featured { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,16,10,.94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 20px; right: 30px; color: var(--white);
  font-size: 40px; cursor: pointer; background: none; border: none;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--white); font-size: 44px; cursor: pointer; background: none; border: none;
  padding: 20px;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* ===== Videos ===== */
.video-wrap {
  position: relative; padding-top: 56.25%; margin-top: 40px;
  background: var(--ink);
}
.video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-title { font-size: 26px; margin-top: 50px; }

/* ===== When & Where ===== */
.venue-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px;
}
@media (max-width: 900px) { .venue-grid { grid-template-columns: 1fr; } }
.venue-card {
  border: 1px solid #eee3c8; padding: 44px 30px; text-align: center;
  background: var(--white);
}
.venue-card h4 { font-size: 26px; margin-bottom: 16px; color: var(--gold); }
.venue-card ul { list-style: none; color: var(--muted); }
.venue-card li { padding: 4px 0; }
.map-wrap { margin-top: 50px; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; filter: grayscale(30%); }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink); color: #cfc6ba;
  text-align: center; padding: 70px 24px;
}
.site-footer .footer-names {
  font-family: var(--serif); font-style: italic; font-size: 34px;
  color: var(--gold-light); margin-bottom: 12px;
}
.site-footer small { font-size: 13px; letter-spacing: 2px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Fallback content (index.php) */
.plain-content { padding: 140px 0 80px; }

/* ===== Hero heading refinements ===== */
.hero-ornament {
  color: var(--gold-light); font-size: 30px; margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero .eyebrow { color: var(--gold-light); font-size: 14px; letter-spacing: 7px; }
.hero-title {
  text-shadow: 0 6px 40px rgba(0,0,0,.5);
  letter-spacing: .01em;
}
.hero-title .amp {
  font-style: italic; color: var(--gold-light); font-size: .72em;
  padding: 0 .08em; vertical-align: baseline;
}
.hero-sub {
  display: flex; align-items: center; justify-content: center; gap: 22px;
}
.hero-sub .line {
  display: inline-block; width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}
.hero-sub .line:last-child { background: linear-gradient(90deg, var(--gold-light), transparent); }
.hero-tag {
  font-family: var(--serif); font-style: italic; font-size: 21px;
  color: rgba(255,255,255,.92); margin-top: 14px;
}
.hero-date {
  background: rgba(176,141,60,.22); backdrop-filter: blur(3px);
  border-radius: 2px;
}
@media (max-width: 600px) { .hero-sub { gap: 10px; } .hero-sub .line { width: 30px; } }
