/* ============================================
   The Wood Family Album — Style Sheet
   ============================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --blue: #3366CC;
  --pink: #FF6699;
  --visited: #CC3399;
  --gold: #9B8347;
  --bg: #FFF9F5;
  --card-bg: #FFFFFF;
  --text: #333333;
  --text-light: #666666;
  --shadow: rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --max-width: 1100px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--pink);
  text-decoration: underline;
}

a:visited {
  color: var(--visited);
}

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

/* ---------- Sticky Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #2b2b3d;
  box-shadow: 0 2px 8px var(--shadow);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  position: relative;
  z-index: 110;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: navy;
  height: 3px;
  width: 24px;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}

.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after  { top: 7px; }

/* Hamburger animation when checked */
.nav-toggle:checked + .nav-toggle-label span {
  background: transparent;
}
.nav-toggle:checked + .nav-toggle-label span::before {
  transform: rotate(45deg);
  top: 0;
  background: navy;
}
.nav-toggle:checked + .nav-toggle-label span::after {
  transform: rotate(-45deg);
  top: 0;
  background: navy;
}

/* Top-level menu list */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  color: navy;
  background: #E3E3E3;
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: Verdana, Arial, sans-serif;
  text-decoration: none;
  border-right: 1px solid #ccc;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-menu > li:last-child > a {
  border-right: none;
}

.nav-menu > li > a:visited {
  color: navy;
}

.nav-menu > li > a:hover,
.nav-menu > li:hover > a {
  background: navy;
  color: #ffffdc;
  text-decoration: none;
}

/* Dropdown submenus */
.dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #E3E3E3;
  border: 1px solid #000;
  box-shadow: 3px 3px 5px rgba(0,0,0,0.3);
  display: none;
  z-index: 200;
}

.nav-menu > li:hover > .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 0.4rem 0.85rem;
  color: navy;
  font-size: 0.82rem;
  font-family: Verdana, Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.dropdown li:last-child a {
  border-bottom: none;
}

.dropdown li a:visited {
  color: navy;
}

.dropdown li a:hover {
  background: navy;
  color: #ffffdc;
  text-decoration: none;
}

/* ---------- Music Button ---------- */
.music-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.6rem 1.2rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.2s;
}

.music-btn:hover {
  background: var(--visited);
  transform: scale(1.05);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
  background: linear-gradient(135deg, var(--bg) 0%, #FFE8F0 100%);
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.hero-photo {
  max-width: 380px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero-caption {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.5;
}

.hero-caption a {
  color: var(--gold);
}

.hero-caption a:hover {
  color: var(--pink);
}

/* ---------- Intro ---------- */
.intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  font-size: 1.05rem;
}

.intro p {
  margin-bottom: 0.75rem;
}

/* ---------- Heart Divider ---------- */
.heart-divider {
  text-align: center;
  margin: 1rem 0;
  font-size: 1.5rem;
  color: var(--pink);
  letter-spacing: 0.5rem;
}

/* ---------- Section Headings ---------- */
.section-heading {
  max-width: var(--max-width);
  margin: 2rem auto 1rem;
  padding: 0 1rem;
}

.section-heading h2 {
  color: var(--blue);
  font-size: 1.6rem;
  border-bottom: 3px solid var(--pink);
  display: inline-block;
  padding-bottom: 0.25rem;
}

/* ---------- Link Grid ---------- */
.link-grid {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.5rem 1.5rem;
}

.link-grid a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

.link-grid a::before {
  content: '\2665';
  color: var(--pink);
  margin-right: 0.5rem;
  font-size: 0.85rem;
}

/* ---------- Friends / External ---------- */
.friends-section {
  background: #FFF0F5;
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.friends-section .section-heading {
  padding: 0;
}

.friends-section .link-grid {
  padding: 0;
}

/* ---------- Page Hero (sub-pages) ---------- */
.page-hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  background: linear-gradient(135deg, var(--bg) 0%, #FFE8F0 100%);
}

.page-hero h1 {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.page-hero .subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a {
  font-size: 0.85rem;
}

/* ---------- Photo Gallery Grid ---------- */
.photo-grid {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.photo-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.photo-card:visited {
  color: var(--text);
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card .card-label {
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* ---------- Timeline list ---------- */
.timeline {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  padding: 0 1rem;
  list-style: none;
}

.timeline li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0e8e4;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.timeline li::before {
  content: '\2665';
  color: var(--pink);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.timeline li:last-child {
  border-bottom: none;
}

.timeline .badge {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 1rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-light);
  font-size: 0.85rem;
  border-top: 1px solid #eee;
  margin-top: 2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
    background: #E3E3E3;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #E3E3E3;
  }

  .nav-toggle:checked ~ .nav-menu {
    display: flex;
  }

  .nav-menu > li > a {
    border-right: none;
    border-bottom: 1px solid #ccc;
    padding: 0.7rem 1rem;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: #d4d4d4;
  }

  /* On mobile, show dropdowns when parent is tapped/hovered */
  .nav-menu > li:hover > .dropdown,
  .nav-menu > li:focus-within > .dropdown {
    display: block;
  }

  .dropdown li a {
    padding-left: 1.5rem;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .music-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}
