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

/* =========================================
   MOBILE & TABLET OPTIMIZATIONS (< 1200px)
   ========================================= */
@media (max-width: 1199px) {
  /* --- 1. SLIM HEADER ON SCROLL --- */
  body.scrolled .header {
    padding: 8px 0;
    background-color: rgb(243, 235, 216);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }

  body.scrolled .header .logo img {
    max-height: 24px;
  }

  body.scrolled .header .sitename {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 10px;
    max-width: calc(100vw - 130px);
  }

  /* Default logo size on mobile */
  .header .logo img {
    max-height: 42px;
  }

  /* Ensure Hamburger is visible */
  .mobile-nav-toggle {
    font-size: 34px;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 9999;
  }

  /* --- 2. MOBILE MENU DRAWER --- */
  .navmenu {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 100%;
    max-width: 300px;
    background: var(--color-bg);
    border-left: 1px solid var(--color-accent);
    padding: 80px 20px 20px 20px;
    transition: right 0.4s ease;
    z-index: 9998;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .navmenu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    padding: 0;
  }

  .navmenu a {
    font-size: 18px;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
  }

  body.mobile-nav-active .navmenu {
    right: 0;
  }

  body.mobile-nav-active .mobile-nav-toggle:before {
    content: "\f62a";
  }
}

/* =========================================
   DESKTOP SCROLL MENU (Minimize to Dropdown)
   ========================================= */
@media (min-width: 1200px) {
  /* 1. Hide Hamburger by default (when at top of page) */
  .mobile-nav-toggle {
    display: none;
  }

  /* 2. When Scrolled: SHOW Hamburger */
  body.scrolled .mobile-nav-toggle {
    display: block;
    font-size: 32px;
    color: var(--color-primary);
    cursor: pointer;
    margin-left: 20px;
    order: 2; /* Ensures it sits to the right of the nav container */
  }

  /* 3. When Scrolled: HIDE Menu (Move to drawer position) */
  body.scrolled .navmenu {
    position: fixed !important;
    top: 0;
    right: -100%; /* Off-screen */
    bottom: 0;
    width: 300px;
    height: 100vh;
    background: var(--color-bg);
    border-left: 1px solid var(--color-accent);
    padding: 80px 30px;
    transition: right 0.4s ease-in-out;
    z-index: 9998;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);

    /* Force it to behave like a block, not a flex header item */
    display: block !important;
  }

  /* Stack links vertically in the drawer */
  body.scrolled .navmenu ul {
    display: flex;
    flex-direction: column !important;
    align-items: flex-start;
    gap: 25px;
    margin: 0;
    padding: 0;
  }

  body.scrolled .navmenu a {
    font-size: 20px;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
  }

  /* 4. Active State: Slide Drawer In */
  body.mobile-nav-active .navmenu {
    right: 0;
  }

  /* Change icon to X */
  body.mobile-nav-active .mobile-nav-toggle:before {
    content: "\f62a";
  }
}

/* --- 2. MOBILE MENU DRAWER (EXPANSION) --- */
/* This creates the slide-out menu functionality */

.navmenu {
  position: fixed;
  top: 0;
  right: -100%; /* Hidden off-screen by default */
  bottom: 0;
  width: 100%;
  max-width: 300px; /* Width of the drawer */
  background: var(--color-bg);
  border-left: 1px solid var(--color-accent);
  padding: 80px 20px 20px 20px;
  transition: right 0.4s ease; /* Smooth slide-in animation */
  z-index: 9998; /* Under the toggle button, over the content */
  overflow-y: auto;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

/* Style the links inside the mobile drawer */
.navmenu ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  padding: 0;
}

.navmenu a {
  font-size: 18px;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 10px;
}

/* The class added by main.js to slide the menu in */
body.mobile-nav-active .navmenu {
  right: 0; /* Slide on screen */
}

/* Change Hamburger icon to an 'X' (optional, relies on Bootstrap Icons) */
body.mobile-nav-active .mobile-nav-toggle:before {
  content: "\f62a"; /* Bootstrap Icon code for 'X' (bi-x) */
}

:root {
  --font-default: "Lato", system-ui, -apple-system, sans-serif;
  --font-primary: "Playfair Display", serif;

  /* Modern Vintage Palette */
  --color-bg: #fdfbf7; /* Cream / Off-white */
  --color-text: #2c2c2c; /* Soft Charcoal */
  --color-accent: #c19a6b; /* Muted Gold/Leather */
  --color-primary: #2e4a3d; /* Dark Bluegrass Green */
  --color-surface: #ffffff; /* Pure white for cards */
  --color-border: #e0e0e0;
}

body {
  font-family: var(--font-default);
  color: var(--color-text);
  background-color: var(--color-bg);
}

body.scrolled .header {
  padding: 10px 0; /* Shrink vertical padding */
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  border-bottom-color: transparent; /* Optional: hide border on scroll for cleaner look */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  color: var(--color-primary);
}

/* Header & Nav */
.header {
  /* Ensure background is solid so content doesn't show through on scroll */
  background-color: rgb(243, 235, 216); /* Solid background */
  border-bottom: 1px solid var(--color-accent);
  transition: all 0.5s; /* smooth transition for minimizing */
  z-index: 997;
  padding: 20px 0; /* Initial larger padding */
}

/* Base Logo Style */
.header .logo img {
  max-height: 70px; /* Increased size (was 40px or 50px) */
  width: auto; /* Keeps the image from stretching */
  transition: max-height 0.5s ease-in-out; /* Smooth resizing animation */
}

.header .logo {
  text-decoration: none !important;
  color: var(--color-primary); /* Ensure it keeps the green color */
}

.header .sitename {
  font-family: "Abril Fatface", serif; /* The new vintage font */
  font-weight: 400; /* Abril is naturally bold, so 400 is fine */
  letter-spacing: 1px;
}

.navmenu a {
  font-family: var(--font-default);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navmenu a:hover,
.navmenu a.active {
  color: var(--color-accent);
}

/* Hero Section */
#hero {
  width: 100%;
  min-height: 100vh;
  /* INCREASED TOP PADDING: Prevents header from covering the title */
  padding: 160px 0 60px 0;
  background: linear-gradient(to bottom, #fdfbf7 0%, #f4efe4 100%);
  text-align: center;
  position: relative; /* Ensure z-index works if needed */
}

.hero-img {
  max-width: 400px;
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border: 8px solid white;
}

#listen {
  scroll-margin-top: 100px; /* Adjust based on header height */
}

/* --- Fancy Header Button Styling --- */
.btn-getstarted {
  /* 1. Gradient Background: Blends the dark green into a slightly lighter tone */
  background: linear-gradient(135deg, var(--color-primary) 0%, #405d50 100%);

  /* 2. Remove the solid border from the default style */
  border: none;
  color: #fff !important; /* Ensure text stays white */

  /* 3. Refined Typography & Spacing */
  padding: 12px 35px;
  border-radius: 50px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;

  /* 4. Shadow for 3D "Pop" effect */
  box-shadow: 0 5px 15px rgba(46, 74, 61, 0.3);

  /* 5. Smooth Transition (with a slight 'bounce') */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover Effects */
.btn-getstarted:hover {
  /* Lift the button up and scale it slightly */
  transform: translateY(-3px) scale(1.05);

  /* Shift gradient to include the Gold Accent color */
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );

  /* Add a "Golden Glow" shadow */
  box-shadow: 0 8px 25px rgba(193, 154, 107, 0.5);
}

.cta-btn {
  font-family: var(--font-default);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  transition: 0.3s;
  margin: 10px;
  text-decoration: none;
  border: 2px solid var(--color-primary);
}

.cta-btn-filled {
  background: var(--color-primary);
  color: #fff;
}
.cta-btn-filled:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.cta-btn-outline {
  background: transparent;
  color: var(--color-primary);
}
.cta-btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Section Titles */
.section-title {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 20px;
  position: relative;
}
.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}
.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  bottom: 0;
  left: calc(50% - 25px);
}

/* Track History Items */
.song-item {
  background-color: var(--color-surface);
  border-left: 5px solid var(--color-accent);
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: 0.3s;
}

.song-item:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.song-item h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--color-primary);
}

.song-meta .writer {
  font-family: var(--font-default);
  font-size: 14px;
  color: #888;
  font-style: italic;
  display: block;
  margin-bottom: 10px;
}

.song-desc p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: #555;
}

/* Contributor Cards */
.contributor-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 30px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;

  /* NEW: Forces the card to fill the bootstrap column width */
  width: 100%;

  /* Maintain existing flex properties for vertical alignment */
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contributor-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-color: var(--color-accent);
}

.contributor-img {
  width: 150px;
  height: 150px;
  border-radius: 50%; /* Circle image */
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #f4efe4;
}

.contributor-info h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 20px;
}

.contributor-info span {
  display: block;
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.contributor-info p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
}

.social-links a {
  font-size: 18px;
  display: inline-block;
  background: #f4efe4;
  color: var(--color-primary);
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

.social-links a:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Video Wrapper for Responsive Youtube */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Footer */
#footer {
  background: var(--color-primary);
  color: #fff;
  padding: 30px 0;
  text-align: center;
}
#footer p {
  margin: 0;
  font-size: 14px;
}

/* --------------------------------------------------------------
# Modern Vintage Modals
-------------------------------------------------------------- */
.modal-content {
  background-color: var(--color-bg); /* Cream background */
  border: 1px solid var(--color-accent);
  border-radius: 8px;
}

.modal-header {
  border-bottom: 1px solid var(--color-accent);
  padding: 20px 30px;
}

.modal-title {
  font-family: var(--font-primary);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 28px;
}

.modal-body {
  padding: 30px;
  font-family: var(--font-default);
  color: var(--color-text);
  line-height: 1.8;
  font-size: 16px;
}

.modal-footer {
  border-top: 1px solid var(--color-border);
  background-color: rgba(0, 0, 0, 0.02);
}

.btn-close {
  background-color: var(--color-accent);
  opacity: 0.8;
  border-radius: 50%;
  padding: 10px;
}

/* Button Styling for Read More */
.btn-read-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
  cursor: pointer;
  transition: 0.3s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 0 0 2px 0;
}

.btn-read-more:hover {
  color: var(--color-accent);
  border-color: var(--color-primary);
}
