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

:root {
  --green-dark:  #2d5016;
  --green-mid:   #3a6b28;
  --green-light: #5a8a4a;
  --green-pale:  #eef2e6;
  --gold:        #b8860b;
  --gold-light:  #d4a820;
  --cream:       #f9f5ef;
  --cream-dark:  #f0ead8;
  --text-dark:   #1e1e1e;
  --text-mid:    #4a4a4a;
  --text-light:  #7a7a7a;
  --white:       #ffffff;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Lato', 'Segoe UI', system-ui, sans-serif;

  --max-width:  1100px;
  --nav-height: 68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.3;
}

a {
  color: var(--green-mid);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--gold); }

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

/* =====================
   Navigation
   ===================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-dark);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo-text {
  font-family: var(--font-serif);
  color: var(--cream);
  font-size: 1.05rem;
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(249, 245, 239, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links a:hover { color: var(--gold-light); }

.nav-links a.active { color: var(--gold-light); }

/* =====================
   Hero
   ===================== */
.hero {
  background: url('../images/oaks_beach.jpg') center center / cover no-repeat;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 42, 8, 0.62) 0%,
    rgba(20, 42, 8, 0.55) 60%,
    rgba(20, 42, 8, 0.70) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-logo-wrap {
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--cream);
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--gold-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 400;
}

.hero-location {
  font-size: 0.95rem;
  color: rgba(249, 245, 239, 0.55);
  margin-bottom: 2.8rem;
  font-style: italic;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================
   Buttons
   ===================== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(249, 245, 239, 0.6);
}

.btn-outline:hover {
  background: var(--cream);
  color: var(--green-dark);
  border-color: var(--cream);
  transform: translateY(-2px);
}

/* =====================
   Section Shared
   ===================== */
section { padding: 5rem 0; }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.section-divider {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 0.6rem 0 2.5rem;
}

/* =====================
   Demos Section
   ===================== */
.demos { background: var(--green-pale); }

.demos-note {
  max-width: 680px;
  color: var(--text-mid);
  font-size: 0.97rem;
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.demo-card {
  background: var(--white);
  border: 1px solid #e0dbd0;
  border-left: 4px solid var(--gold);
  border-radius: 3px;
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.demo-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
  transform: translateY(-2px);
  border-left-color: var(--green-mid);
  color: inherit;
}

.demo-card-icon {
  flex-shrink: 0;
  color: var(--gold);
  transition: color 0.2s;
}

.demo-card:hover .demo-card-icon { color: var(--green-mid); }

.demo-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.demo-card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1.3;
}

.demo-card-label {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =====================
   About
   ===================== */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: stretch;
}

.about-photo {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  display: block;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.about-text p {
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.credential {
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  border-left: 3px solid var(--green-mid);
  font-weight: 600;
}

/* =====================
   Songs Section (index)
   ===================== */
.songs-preview { background: var(--cream); }

.search-wrap {
  position: relative;
  max-width: 480px;
  margin-bottom: 2rem;
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.song-search {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  border: 2px solid #ddd8cc;
  border-radius: 3px;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.2s;
}

.song-search:focus {
  outline: none;
  border-color: var(--green-mid);
}

.song-search::placeholder { color: var(--text-light); }

.songs-grid-outer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.songs-nav-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--green-mid);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.songs-nav-btn:hover:not(:disabled) {
  background: var(--green-mid);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.songs-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.songs-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.85rem;
}

.songs-pagination {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.page-btn {
  background: var(--white);
  border: 2px solid var(--green-mid);
  border-radius: 3px;
  min-width: 40px;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-dark);
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover {
  background: var(--green-mid);
  color: var(--white);
}

.page-btn.active {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}

.song-card {
  background: var(--white);
  border: 1px solid #e0dbd0;
  border-left: 4px solid var(--green-mid);
  border-radius: 3px;
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.song-card:hover {
  border-left-color: var(--gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
  transform: translateY(-2px);
  color: inherit;
}

.song-card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1.3;
}

.song-card-date {
  font-size: 0.78rem;
  color: var(--text-light);
}

.no-results {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
  color: var(--text-light);
  font-size: 1rem;
}

.songs-footer {
  margin-top: 2.5rem;
  text-align: center;
}

/* =====================
   Contact
   ===================== */
.contact {
  background: var(--green-dark);
  text-align: center;
}

.contact .section-title { color: var(--cream); }
.contact .section-divider { margin-left: auto; margin-right: auto; }

.contact-intro {
  color: rgba(249,245,239,0.75);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold-light);
  padding: 1rem 2.2rem;
  border-radius: 3px;
  font-size: 1.1rem;
  font-family: var(--font-serif);
  font-style: italic;
  transition: all 0.2s;
}

.contact-email-link:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.contact-note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(249,245,239,0.4);
}

/* =====================
   Footer
   ===================== */
footer {
  background: #182c0a;
  color: rgba(249,245,239,0.4);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.82rem;
}

/* =====================
   Page Header (songs.html / song.html)
   ===================== */
.page-header {
  background: linear-gradient(135deg, #1e3b0d 0%, var(--green-dark) 100%);
  padding: 3rem 0 2.5rem;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.page-header .subtitle {
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =====================
   Songs Page (songs.html)
   ===================== */
.songs-page-body { padding: 3rem 0 5rem; }

/* =====================
   Song Page (song.html)
   ===================== */
.song-page { padding: 3rem 0 5rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--green-mid);
  margin-bottom: 2rem;
}

.back-link:hover { color: var(--gold); }

.song-header {
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--green-pale);
}

.song-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.song-date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.lyrics {
  max-width: 660px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-mid);
}

.lyrics p {
  margin-bottom: 1.5rem;
}

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

/* =====================
   Responsive
   ===================== */
@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    max-width: 300px;
    height: auto;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  section { padding: 3.5rem 0; }

  .hero h1 { font-size: 2.4rem; }

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

  .songs-nav-btn { display: none; }
}
