/* =============================================
   Hudson's Oak — Stylesheet
   Folk & Americana | Dark Earthy Palette
   ============================================= */

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

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

:root {
  --bg-main:       #1a1714;
  --bg-section:    #231f1b;
  --bg-card:       #2c2722;
  --accent-gold:   #c8a057;
  --accent-muted:  #8a6e3e;
  --text-primary:  #ede5d8;
  --text-secondary:#b0a592;
  --text-muted:    #7a6e62;
  --border:        #3d3530;
  --nav-bg:        #131110ee;
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  font-size: 16px;
}

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

a:hover {
  color: var(--text-primary);
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }

p {
  color: var(--text-secondary);
  max-width: 72ch;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-logo:hover {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.45rem 1rem;
  font-family: 'Bitter', serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.03em;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(200, 160, 87, 0.12);
  color: var(--accent-gold);
}

/* ---------- Logo ---------- */
.site-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: var(--bg-main);
}

.site-logo img {
  max-width: 540px;
  width: 100%;
  height: auto;
}

/* ---------- Page Layout ---------- */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.section-label {
  display: inline-block;
  font-family: 'Bitter', serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

/* ---------- Flyer Section ---------- */
.flyer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.flyer-section img {
  max-width: 460px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-top: 0.75rem;
}

/* ---------- About Section ---------- */
.about-section {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.about-section h2 {
  margin-bottom: 1.25rem;
}

.about-section p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-section p:last-child {
  margin-bottom: 0;
}

/* ---------- Music Section ---------- */
.music-section {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.music-player {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.music-track-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.music-note-icon {
  color: var(--accent-gold);
  flex-shrink: 0;
  opacity: 0.85;
}

.music-track-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--text-primary);
  font-style: italic;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.play-pause-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--bg-main);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}

.play-pause-btn:hover {
  background: var(--text-primary);
  transform: scale(1.07);
}

.time-current,
.time-total {
  font-family: 'Bitter', serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 2.5rem;
}

.progress-wrap {
  position: relative;
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-gold);
  border-radius: 2px;
  pointer-events: none;
  transition: width 0.1s linear;
}

.progress-bar {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  background: transparent;
  cursor: pointer;
  margin: 0;
  z-index: 1;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 2px solid var(--bg-main);
  cursor: pointer;
  transition: transform 0.15s;
}

.progress-bar::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.progress-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 2px solid var(--bg-main);
  cursor: pointer;
}

@media (max-width: 700px) {
  .music-section {
    padding: 2rem 1.5rem;
  }
}

/* ---------- Social Links ---------- */
.social-section {
  margin-bottom: 3rem;
}

.social-section h2 {
  margin-bottom: 1.5rem;
}

.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.6rem;
  color: var(--text-secondary);
  font-family: 'Bitter', serif;
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  min-width: 180px;
}

.social-card:hover {
  background: rgba(200, 160, 87, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.social-card svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.social-card:hover svg {
  opacity: 1;
}

/* ---------- Divider ---------- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ---------- Members Page ---------- */
.members-intro {
  margin-bottom: 3rem;
}

.members-intro p {
  font-size: 1.05rem;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.member-card:hover {
  border-color: var(--accent-muted);
  transform: translateY(-3px);
}

.member-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-photo-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--bg-section) 0%, #1e1a16 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.member-photo-placeholder svg {
  opacity: 0.2;
}

.member-info {
  padding: 1.75rem 2rem 2rem;
}

.member-name {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.member-role {
  font-family: 'Bitter', serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.member-bio {
  font-size: 0.97rem;
  line-height: 1.75;
  max-width: 100%;
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.page-header h1 {
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-family: 'Bitter', serif;
  letter-spacing: 0.04em;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent-gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .about-section {
    padding: 2rem 1.5rem;
  }

  .nav-inner {
    padding: 0 1.25rem;
  }

  .page-content {
    padding: 2.5rem 1.25rem 4rem;
  }

  .site-logo img {
    max-width: 280px;
  }

  .nav-links a {
    padding: 0.4rem 0.65rem;
    font-size: 0.88rem;
  }
}
