/* ============================================
   ROCKETT FAMILY REUNION 2027 — DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400;600;700;800;900&family=Dancing+Script:wght@600;700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Colors pulled from the family crest */
  --black: #0a0a09;
  --charcoal: #17160f;
  --charcoal-light: #211f16;
  --cream: #f7f4ea;
  --orange-deep: #d94e0f;
  --orange: #f7941d;
  --gold: #ffcc33;
  --leaf: #8bc53f;
  --leaf-deep: #5f9a2a;
  --line: rgba(247, 244, 234, 0.12);

  --font-display: 'Bitter', Georgia, serif;
  --font-script: 'Dancing Script', cursive;
  --font-body: 'Work Sans', -apple-system, sans-serif;

  --trunk-gradient: linear-gradient(180deg, var(--gold) 0%, var(--orange) 45%, var(--orange-deep) 100%);
  --max-width: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ---------- Utility ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--orange);
}

.script {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--leaf);
}

.gold-text {
  background: linear-gradient(90deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 2px solid var(--orange);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-solid {
  background: var(--trunk-gradient);
  color: var(--black);
  border: none;
}

.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(247,148,29,0.35); }

.btn-outline {
  background: transparent;
  color: var(--cream);
}
.btn-outline:hover { background: var(--orange); color: var(--black); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 9, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 52px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--cream);
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--orange);
  font-weight: 700;
}

nav.main-nav ul {
  display: flex;
  gap: 8px;
}
nav.main-nav a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--orange);
  border-color: var(--orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 8px 12px;
  font-size: 1.2rem;
  border-radius: 4px;
}

/* ---------- Root Divider (signature element) ---------- */
.root-divider {
  width: 100%;
  height: 90px;
  display: block;
}
.root-divider svg { width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 24px 40px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(247,148,29,0.16), transparent 60%),
    var(--black);
}
.hero-logo {
  max-width: 340px;
  margin: 0 auto 28px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero p.lede {
  max-width: 560px;
  margin: 0 auto 32px;
  color: rgba(247,244,234,0.78);
  font-size: 1.1rem;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* ---------- Info strip ---------- */
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 900px;
  margin: 0 auto;
}
.info-strip .info-item {
  padding: 22px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.info-strip .info-item:last-child { border-right: none; }
.info-strip .info-item .label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
  font-weight: 700;
  margin-bottom: 6px;
}
.info-strip .info-item .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 48px 0;
}
.countdown .box {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 22px;
  min-width: 92px;
  text-align: center;
}
.countdown .box .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.1rem;
  color: var(--gold);
  line-height: 1;
}
.countdown .box .lab {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,244,234,0.6);
  margin-top: 6px;
}

/* ---------- Sections ---------- */
section { padding: 70px 24px; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-top: 10px;
}
.section-head p { color: rgba(247,244,234,0.7); margin-top: 14px; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.two-col.reverse { grid-template-columns: 0.9fr 1.1fr; }
.two-col.reverse .art { order: 2; }

.art {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ---------- Cards / Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 26px;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--trunk-gradient);
  border-radius: 8px 8px 0 0;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--cream);
}
.card p { color: rgba(247,244,234,0.7); font-size: 0.95rem; }
.card .tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Schedule / Timeline ---------- */
.timeline {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
  border-left: 3px solid;
  border-image: var(--trunk-gradient) 1;
}
.day-block { margin-bottom: 56px; }
.day-block h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.day-block .day-sub {
  font-size: 0.85rem;
  color: var(--leaf);
  font-weight: 600;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.event-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.event-row::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--black);
}
.event-row .time {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange);
  font-size: 0.95rem;
}
.event-row .what h4 { font-size: 1.02rem; margin-bottom: 4px; }
.event-row .what p { color: rgba(247,244,234,0.65); font-size: 0.9rem; }

/* ---------- Forms ---------- */
.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 44px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--leaf);
}
.field input, .field select, .field textarea {
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px 14px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 50px 24px 30px;
  background: var(--charcoal);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto 30px;
}
.footer-grid h4 {
  font-family: var(--font-display);
  color: var(--orange);
  margin-bottom: 14px;
  font-size: 1rem;
}
.footer-grid p, .footer-grid a { color: rgba(247,244,234,0.65); font-size: 0.92rem; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul a:hover { color: var(--orange); }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.8rem;
  color: rgba(247,244,234,0.4);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.gallery-grid .g-item {
  aspect-ratio: 1;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(247,244,234,0.3);
  font-size: 0.8rem;
  text-align: center;
  padding: 10px;
}

/* ---------- Map embed ---------- */
.map-embed {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: var(--max-width);
  margin: 0 auto;
}
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 9, 0.96);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 88vw;
  max-height: 84vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
}
.lightbox-close:hover { color: var(--orange); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(23,22,15,0.7);
  border: 1px solid var(--line);
  color: var(--cream);
  font-size: 1.3rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { background: var(--orange); color: var(--black); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(247,244,234,0.6);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.g-item { position: relative; }
.g-item:hover { border-color: var(--orange) !important; }

@media (max-width: 600px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.1rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: inline-block; }
  nav.main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    border-bottom: 1px solid var(--line);
  }
  nav.main-nav.open ul { flex-direction: column; width: 100%; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col.reverse .art { order: 0; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .info-strip { grid-template-columns: 1fr; }
  .info-strip .info-item { border-right: none; border-bottom: 1px solid var(--line); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-solid:hover, .btn-outline:hover { transform: none; }
}
