/* =====================================================
   YOUR SOUNDTRACK — Wedding Music Planning
   Design System
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&display=swap');

:root {
  --dark:       #1A1A2E;
  --gold:       #C9A84C;
  --gold-light: #F5EDD6;
  --gold-pale:  #FAF7F2;
  --cream:      #FDF9F4;
  --text:       #2D2D2D;
  --muted:      #777777;
  --border:     #E8DFC8;
  --white:      #FFFFFF;
  --nav-width:  260px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--dark);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
a  { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────── */
.site-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar Navigation ─────────────────────────────── */
.sidebar {
  width: var(--nav-width);
  background: var(--dark);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 28px 20px 20px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.sidebar-logo a {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--gold);
  font-style: italic;
  display: block;
  line-height: 1.2;
}
.sidebar-logo span {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 3px;
  font-style: normal;
}

.nav-section {
  padding: 16px 0 8px;
}
.nav-section-label {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0 20px 6px;
  display: block;
}
.sidebar nav a {
  display: block;
  padding: 7px 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.08);
  border-left-color: var(--gold);
  text-decoration: none;
}

/* ── Main Content ───────────────────────────────────── */
.main-content {
  margin-left: var(--nav-width);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Page Hero ──────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #16213E 100%);
  padding: 56px 48px 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.page-hero .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.page-hero h1 { color: var(--white); }
.page-hero p.lead {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  max-width: 600px;
  margin-top: 10px;
  margin-bottom: 0;
  font-weight: 300;
}

/* ── Content Area ───────────────────────────────────── */
.content-area {
  padding: 40px 48px 60px;
  max-width: 900px;
}

/* ── Intro Block ────────────────────────────────────── */
.intro-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 36px;
  font-size: 0.97rem;
  line-height: 1.75;
}
.intro-block p:last-child { margin-bottom: 0; }

/* ── Tip Box ────────────────────────────────────────── */
.tip-box {
  background: var(--gold-light);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: #5A4A28;
  font-style: italic;
}
.tip-box strong { font-style: normal; color: var(--dark); }

/* ── Song List Section ──────────────────────────────── */
.song-section {
  margin-bottom: 40px;
}
.song-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-light);
}
.song-section-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
  font-style: italic;
}

/* ── Song Table ─────────────────────────────────────── */
.song-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.song-table th {
  background: var(--dark);
  color: var(--gold);
  padding: 9px 14px;
  text-align: left;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.song-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.song-table tr:nth-child(even) td { background: var(--gold-pale); }
.song-table tr:hover td { background: var(--gold-light); }
.song-title-cell { font-weight: 600; color: var(--dark); }
.song-artist-cell { color: var(--muted); font-style: italic; }
.song-note-cell { color: #555; font-size: 0.85rem; }

/* ── Simple Song List (no table) ────────────────────── */
.song-list {
  list-style: none;
  columns: 2;
  column-gap: 24px;
  margin: 12px 0 24px;
}
.song-list li {
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  break-inside: avoid;
  font-size: 0.9rem;
  color: var(--text);
}
.song-list li::before {
  content: '♪ ';
  color: var(--gold);
  font-size: 0.8rem;
}

/* ── Sub-category badge ─────────────────────────────── */
.sub-badge {
  display: inline-block;
  background: var(--dark);
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  font-family: 'Lato', sans-serif;
}

/* ── Tips List ──────────────────────────────────────── */
.tips-list {
  counter-reset: tips;
  list-style: none;
  margin: 16px 0 24px;
}
.tips-list li {
  counter-increment: tips;
  padding: 12px 16px 12px 52px;
  position: relative;
  margin-bottom: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.93rem;
}
.tips-list li::before {
  content: counter(tips);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 26px;
  height: 26px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: 'Lato', sans-serif;
}

/* ── Breadcrumb ─────────────────────────────────────── */
.breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,0.4); }
.breadcrumb a:hover { color: var(--gold); text-decoration: none; }
.breadcrumb span { color: rgba(255,255,255,0.6); }

/* ── See Also links ─────────────────────────────────── */
.see-also {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 36px;
}
.see-also h4 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.see-also-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.see-also-links a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--dark);
  transition: all 0.15s;
}
.see-also-links a:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  text-decoration: none;
}

/* ── Homepage Cards ─────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,26,46,0.1);
  border-color: var(--gold);
  text-decoration: none;
}
.card-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  display: block;
}
.card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--dark);
}
.card p {
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Section divider ────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 2px solid var(--gold-light);
  margin: 36px 0;
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--white);
}

/* ── Mobile ─────────────────────────────────────────── */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  background: var(--dark);
  color: var(--gold);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .mobile-nav-toggle { display: block; }
  .page-hero { padding: 56px 20px 36px; }
  .content-area { padding: 24px 20px 48px; }
  .song-list { columns: 1; }
  .card-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 20px; }
}

/* ── Affiliate / Product Sections ──────────────────────────── */
.registry-banner-wrap {
  margin: 32px 0 8px;
}
.registry-sidebar-wrap {
  margin: 24px 0 8px;
}
.affiliate-note {
  font-size: 0.7rem;
  color: #AAAAAA;
  margin-top: 4px;
  margin-bottom: 0;
  font-style: italic;
}
.affiliate-section {
  background: #FFFDF8;
  border: 1px solid #E8DFC8;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 36px 0 12px;
}
.affiliate-section h3 {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #AAAAAA;
  margin-bottom: 16px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.product-card {
  background: #FFFFFF;
  border: 1px solid #E8DFC8;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  display: block;
  transition: all 0.15s;
}
.product-card:hover {
  border-color: #C9A84C;
  box-shadow: 0 4px 12px rgba(201,168,76,0.15);
  text-decoration: none;
  transform: translateY(-1px);
}
.product-card .product-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
  display: block;
}
.product-card .product-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #1A1A2E;
  margin-bottom: 4px;
  display: block;
}
.product-card .product-desc {
  font-size: 0.78rem;
  color: #777;
  line-height: 1.45;
  display: block;
}
.product-card .product-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.75rem;
  color: #C9A84C;
  font-weight: 700;
  letter-spacing: 0.04em;
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .registry-banner-wrap img { border-radius: 6px; }
}

/* ── Hero Images ────────────────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
  pointer-events: none;
}
.page-hero > *:not(.hero-img) {
  position: relative;
  z-index: 1;
}
.home-hero-img {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 32px;
  display: block;
}
.page-illustration {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 28px;
  display: block;
  max-height: 200px;
  object-fit: cover;
}
