/* ---------- Base ---------- */

:root {
  --bg-page: #f4f3f0;
  --bg-light: #ffffff;
  --bg-alt: #faf7f2;
  --border-subtle: rgba(23, 15, 6, 0.08);
  --text-main: #191612;
  --text-muted: #5f574d;
  --accent: #e47e3f;
  --accent-soft: #f7c88a;
  --accent-deep: #b45321;
  --pill-bg: #DCE7E8;                /* chip / pill background */
  --pill-border: rgba(0, 0, 0, 0.04);
  --shadow-soft: 0 14px 30px rgba(10, 8, 4, 0.10);
  --shadow-subtle: 0 8px 18px rgba(10, 8, 4, 0.08);
  --nav-bg: #F4C9B3;                 /* peach band color */
  --accent-blue: #425256;
  --accent-blue-soft: #DCE7E8;
}

/* global box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;          /* ✅ lock body to viewport height */
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f1ede8; /* same as footer */
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Main viewport (scrolls) ---------- */

main {
  flex: 1 1 auto;  /* fills space between nav and footer */
  background: linear-gradient(180deg, #ffffff 0%, #faf7f2 80%);
  border-bottom: 1px solid var(--border-subtle);
  min-height: 0;        /* important so flex children can overflow */
  overflow-y: auto;     /* ✅ only this area scrolls */
  overflow-x: hidden;
}

.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

/* ---------- Top bar ---------- */

.top-bar {
  background: var(--bg-light);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0.75rem 0.5rem;
}

.top-bar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.top-bar-left,
.top-bar-center,
.top-bar-right {
  display: flex;
  align-items: center;
}

.top-bar-left {
  flex: 0 0 auto;
}

.top-bar-right {
  flex: 0 0 auto;
}

.top-headshot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(220, 210, 195, 0.9);
  box-shadow: var(--shadow-subtle);
}

.top-site-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2b2420;
  text-align: center;
}

.role-chip {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: #425256;
  white-space: nowrap;
}

/* ---------- Center nav with signature ---------- */

.center-nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-subtle);
}

.center-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.8rem;
  padding: 0.9rem 0.5rem 1.1rem;
}

.center-nav-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: #6a5140;
  position: relative;
  padding-bottom: 0.2rem;
  font-weight: 400; /* normal by default */
}

.center-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width 0.2s ease-out;
}

.center-nav-link:hover,
.center-nav-link:focus-visible {
  font-weight: 600;   /* bold on hover/focus */
}

.center-nav-link:hover::after,
.center-nav-link:focus-visible::after {
  width: 100%;
}

.center-nav-signature {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 10%,
    #ffffff 0%,
    var(--pill-bg) 45%,
    #c8d7d9 85%
  );
  box-shadow: 0 20px 55px rgba(44, 27, 12, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  cursor: pointer;
}

.signature-mark {
  max-width: 200%;
  height: auto;
  opacity: 0.95;
  transition:
    transform 220ms ease-out,
    filter 220ms ease-out,
    opacity 220ms ease-out;
}

.center-nav-signature:hover .signature-mark {
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 0 10px rgba(243, 186, 100, 0.9));
  opacity: 1;
}

/* ---------- Viewport sections (hero / about / reels / etc.) ---------- */
/* NOTE: these are now normal block sections, not flex containers */

.view-section {
  width: 100%;
  padding: 6rem 1rem 3.5rem; /* general spacing for sections */
}

/* ---------- Hero ---------- */

#hero.view-section {
  padding-top: 6rem;      /* where you liked it before */
}

.hero-content {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-text {
  text-align: center;
  margin: 0 auto;
  max-width: 700px;
}

.hero h2 {
  font-size: clamp(1.0rem, 1.8vw, 1.3rem);
  margin: 0 0 0.9rem;
  letter-spacing: 0.03em;
}

.hero p {
  margin: 0 0 1.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

/* hero pills */
.pill {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: #425056;
  white-space: nowrap;
}

/* ---------- About section layout & typography ---------- */

#about.view-section {
  padding-top: 2.5rem;         /* smaller gap below nav than hero */
}

#about .container {
  width: min(780px, 100% - 32px);
  margin: 0 auto;
  transform: translateX(32px);  /* nudge column slightly right */
}

#about h2 {
  font-size: 1.35rem;
  margin: 0 0 1.3rem;
  color: var(--text-main);
}

#about p {
  margin: 0 0 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* hide inactive sections */
.view-section.is-hidden {
  display: none;
}

/* ---------- Generic section text styling (for later pages) ---------- */

.section {
  padding: 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  margin: 0 0 1.3rem;
  font-size: 1.6rem;
}

.section p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 720px;
}

#sync-reels.view-section {
  padding-top: 1.5rem;   /* try 7rem; adjust to taste (6–8rem) */
}

/* Featured badge (Hero) — styled to match pills + site palette */
.featured-badge{
  margin-top: 42px;
  margin-left: auto;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;

  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  border-radius: 12px;

  box-shadow: var(--shadow-subtle);
}

.featured-label{
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent-blue);
}

.featured-text{
  color: var(--text-muted);
  font-size: 0.9rem;
}

.featured-links{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Make links look like your site's blue-gray links (similar to .song-link) */
.featured-links a,
.featured-badge a.featured-brand{
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(66, 82, 86, 0.35);
  padding-bottom: 0.05rem;
}

.featured-links a:hover,
.featured-links a:focus-visible,
.featured-badge a.featured-brand:hover,
.featured-badge a.featured-brand:focus-visible{
  border-bottom-color: rgba(66, 82, 86, 0.75);
}

.featured-badge .dot{
  opacity: 0.55;
}

/* Mobile wrap */
@media (max-width: 600px){
  .featured-badge{
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
  }
}

/* ---------- Sync reels ---------- */
.sync-reels-section h2 {
  text-align: center;
  margin-bottom: 2rem; /* add space below the title */
}

/* Sync Reels: Rights & Deliverables line */
#sync-reels .reel-footnote {
  max-width: 760px;              /* narrower so it *looks* centered */
  width: 100%;
  margin: 0.75rem auto 1.75rem;  /* centers the block + space before cards */
  text-align: center;
  font-size: 0.9rem;             /* slightly smaller */
  line-height: 1.45;
  opacity: 0.85;
}

#sync-reels .reel-footnote strong {
  display: block;
  margin-bottom: 0.25rem;
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 1.1rem;
}

/* (kept as-is; you already have the scoped #sync-reels rule above) */
.reel-footnote {
  text-align: center;
  font-size: 0.92rem;   /* slightly smaller */
  max-width: 900px;     /* keeps it from stretching too wide */
  margin: 0.75rem auto 1.5rem; /* centers + adds space before cards */
  opacity: 0.85;        /* optional: makes it feel like “small print” */
  line-height: 1.45;
}

.reel-card {
  background: var(--bg-light);
  border-radius: 18px;
  padding: 1.4rem 1.4rem 1.6rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(121, 95, 66, 0.07);

  /* keep the button pinned to the bottom across cards */
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Western song links inside Reel 2 */

.song-link-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding-left: 0;
}

.song-link-list li {
  margin: 0.1rem 0;
}

/* little music-note bullet */
.song-link-list li::before {
  content: "♪";
  margin-right: 0.35rem;
  color: var(--accent-deep);
}

/* styled text links */
.song-link {
  color: #425256;             /* blue-gray to match the site */
  text-decoration: none;      /* no underline */
  font-weight: 500;
  border-bottom: none;        /* remove the old faux-underline */
}

.song-link:visited {
  color: #425256;             /* keep visited links same color */
}

.song-link:hover,
.song-link:focus-visible {
  text-decoration: underline; /* optional: subtle underline on hover */
}

.reel-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.reel-card p strong {
  display: inline-block;
  margin-top: 0.8rem; /* tweak as needed (0.8–1.2rem feels right) */
}

.meta-line {
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}

.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: #7a5c3a;
  margin-right: 0.4rem;
}

.meta-value {
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.55rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--pill-border);      /* same border as pills */
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  /* 🔹 same color as the top pills */
  background: var(--pill-bg);                /* #DCE7E8 */
  color: #425056;                            /* same text color as .pill */

  box-shadow: 0 10px 22px rgba(66, 82, 86, 0.28);
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out,
              background-color 0.1s ease-out;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  background-color: #cfdbe0;                 /* tiny darken on hover */
  box-shadow: 0 14px 30px rgba(66, 82, 86, 0.36);
}

/* ✅ keep reel buttons at the bottom of each card (only affects reels) */
.reel-card .btn {
  margin-top: auto;
  align-self: flex-start; /* keeps the pill sized to its content */
}

/* ---------- Licensing list ---------- */

.licensing-list {
  margin: 0 0 1.2rem 1.2rem;
  padding-left: 0.7rem;
  color: var(--text-muted);
}

.licensing-list li {
  margin-bottom: 0.35rem;
}

/* ---------- Licensing section layout & typography ---------- */

#licensing.view-section {
  padding-top: 2.5rem; /* same smaller gap as About */
}

#licensing .container {
  width: min(780px, 100% - 32px); /* same column width as About */
  margin: 0 auto;
  transform: translateX(32px);    /* same slight right nudge as About */
}

/* ---------- Contact link ---------- */
/* ---------- Contact section layout ---------- */

#contact.view-section {
  padding-top: 2.5rem; /* same gap as About/Licensing */
}

#contact .container {
  width: min(780px, 100% - 32px);
  margin: 0 auto;
  transform: translateX(32px); /* match About/Licensing nudge */
}

.contact-header{
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}

.contact-photo{
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(121, 95, 66, 0.10);
}

.contact-intro{
  margin: 0;
}

.contact-email a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 83, 33, 0.4);
  padding-bottom: 0.05rem;
}

.contact-email a:hover,
.contact-email a:focus-visible {
  border-bottom-color: rgba(180, 83, 33, 0.9);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--nav-bg);   /* peach color */
  padding: 0.4rem 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-social {
  margin-top: 0.4rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-social a img {
  width: 24px;
  height: 24px;
  opacity: 0.85;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.footer-social a:hover img,
.footer-social a:focus-visible img {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-inner {
  text-align: center;
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 768px) {
  .top-bar-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .top-bar-left,
  .top-bar-center,
  .top-bar-right {
    flex: 0 0 100%;
    justify-content: center;
  }

  .top-bar-center {
    order: 2;
    position: static;
    transform: none;
    margin-top: 0.5rem;
  }

  .top-bar-left {
    order: 1;
  }

  .top-bar-right {
    order: 3;
    margin-top: 0.5rem;
  }

  .top-contact-link{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .top-bar-right a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .view-section {
    padding: 4rem 1rem 3rem;
  }

  #about.view-section {
    padding-top: 4.5rem;
  }
}

/* Optional: tighten padding on very short screens */
@media (max-width: 768px) {
  /* 1) Let the chips wrap, don’t overflow */
  .role-chip {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    padding: 0.18rem 0.5rem;
    white-space: normal;      /* override the nowrap */
    text-align: center;       /* looks nicer when they wrap */
  }

  /* 2) Pull the hero up a bit on mobile */
  #hero.view-section {
    padding-top: 3rem;        /* was 4rem from .view-section */
  }

  /* 3) Remove the desktop “nudge” for narrow screens */
  #about .container,
  #licensing .container,
  #contact .container {
    transform: none;          /* no 32px shift on mobile */
  }

  /* allow the chip row itself to wrap */
  .top-bar-center {
    flex-wrap: wrap;
    gap: 6px;              /* a little extra breathing room */
  }

  /* make each chip a bit smaller and allow wrapping of its text */
  .role-chip {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    padding: 0.18rem 0.5rem;
    white-space: normal;   /* was nowrap; this lets text wrap */
    text-align: center;
  }

  /* fully center About on mobile (no desktop nudge) */
  #about .container {
    width: min(780px, 100% - 32px);
    margin: 0 auto;
    transform: none;   /* kill the translateX(32px) on phones */
  }

  .contact-header{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }  
}

#about a {
  color: #1f3a5f;
  text-decoration: none;
  background: rgba(31, 58, 95, 0.08);
  border: 1px solid rgba(31, 58, 95, 0.18);

  /* less “blue area” (padding) */
  padding: 0.02em 0.32em;

  border-radius: 999px;
  line-height: 1.15;
  display: inline-block;

  /* no margin: avoids spacing issues near punctuation */
  margin: 0;
  padding: 0.02em 0.18em;

  transition: background-color 160ms ease, border-color 160ms ease;
}

#about a + span.punct { margin-left: -0.05em; }

#about a:hover,
#about a:focus-visible {
  background: rgba(31, 58, 95, 0.14);
  border-color: rgba(31, 58, 95, 0.30);
  outline: none;
}

#about a:visited { color: #1f3a5f; }
