/* ==========================================================================
   Lifesongwriters — global styles
   Palette: matched to the company logo — deep navy #012752 / gold #F7C451,
   over warm creams.
   Headings: Fraunces (warm serif) · Body: Nunito Sans
   Mobile-first
   ========================================================================== */

:root {
  --cream: #faf6ee;
  --cream-deep: #f2e9d8;
  --paper: #fffdf8;
  --ink: #33302a;
  --ink-soft: #5c564c;
  --navy: #0e3a6d;
  --navy-deep: #012752; /* exact logo background — hero/header/footer */
  --gold: #f7c451; /* exact logo gold */
  --gold-deep: #d9a52e;
  --gold-soft: #f2d491;
  --gold-pale: #fdeec7;
  --line: #e5dcc9;
  --radius: 14px;
  --shadow-soft: 0 2px 14px rgba(51, 48, 42, 0.07);
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* Warm washes + a faint scattering of music notes so cream sections
     aren't flat */
  background:
    radial-gradient(ellipse at 8% 0%, rgba(247, 196, 81, 0.09), transparent 45%),
    radial-gradient(ellipse at 94% 100%, rgba(1, 39, 82, 0.06), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'%3E%3Cg fill='%23012752' opacity='0.05' font-family='Georgia, serif'%3E%3Ctext x='26' y='72' font-size='30'%3E%E2%99%AA%3C/text%3E%3Ctext x='158' y='196' font-size='34'%3E%E2%99%AC%3C/text%3E%3Ctext x='214' y='88' font-size='24'%3E%E2%99%A9%3C/text%3E%3Ctext x='84' y='244' font-size='22'%3E%E2%99%AA%3C/text%3E%3C/g%3E%3C/svg%3E") var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--navy);
}

img {
  max-width: 100%;
}

.container {
  width: min(100% - 2.5rem, 960px);
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2.5rem, 720px);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(247, 196, 81, 0.35);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand .brand__note {
  color: var(--gold-soft);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(247, 196, 81, 0.35);
  box-shadow: 0 8px 18px rgba(1, 39, 82, 0.35);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1rem;
}

.site-nav a {
  display: block;
  padding: 0.6rem 0.25rem;
  text-decoration: none;
  color: var(--cream);
  font-weight: 600;
  border-bottom: 1px solid rgba(250, 246, 238, 0.15);
}

.site-nav li:last-child a {
  border-bottom: 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

@media (min-width: 760px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .site-nav ul {
    display: flex;
    gap: 1.5rem;
    padding: 0;
  }

  .site-nav a {
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
  }

  .site-nav a:hover {
    border-bottom-color: var(--gold-soft);
  }

  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--gold);
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  /* Solid logo navy so the logo image blends in seamlessly */
  background:
    radial-gradient(ellipse at 50% -20%, rgba(247, 196, 81, 0.14), transparent 60%),
    var(--navy-deep);
  text-align: center;
  padding: 3.5rem 0 3.25rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.35em;
  color: var(--gold);
}

.hero__sub {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: 1.1em;
}

.hero__intro {
  max-width: 34em;
  margin: 0 auto 1.75em;
  color: rgba(250, 246, 238, 0.88);
  font-size: 1.125rem;
}

.hero__logo {
  display: block;
  width: min(440px, 88%);
  margin: 0 auto 1.25rem;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(247, 196, 81, 0.35),
    0 10px 35px rgba(0, 0, 0, 0.35);
}

@media (min-width: 760px) {
  .hero {
    padding: 5rem 0 4.5rem;
  }

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border-radius: 999px;
  padding: 0.8rem 2rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--navy);
  color: #fff;
}

.btn--primary:hover {
  background: var(--navy-deep);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

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

.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn--gold:hover {
  background: var(--gold-deep);
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Sections & cards
   -------------------------------------------------------------------------- */

.section {
  padding: 3rem 0;
}

.section--tint {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__title {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold-soft);
  margin: 0.6rem auto 0;
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.card-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.15rem;
  font-weight: 600;
}

.card-list li::before {
  content: "♪";
  color: var(--gold);
  margin-right: 0.6rem;
}

@media (min-width: 760px) {
  .card-list--grid {
    grid-template-columns: 1fr 1fr;
  }
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.steps li {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem 1rem 3.4rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--gold-pale);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.note-box {
  background: var(--gold-pale);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Demo tracks — spinning vinyl players
   -------------------------------------------------------------------------- */

.demo-hint {
  text-align: center;
  color: var(--ink-soft);
  margin: -0.75rem 0 1.5rem;
}

.demo-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .demo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vinyl-card {
  background: var(--navy-deep);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.vinyl-btn {
  position: relative;
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.vinyl-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 50%;
}

/* The record itself — grooves drawn with a repeating gradient */
.vinyl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #0c0c10 0 2px, #1a1a21 2px 4px);
  box-shadow:
    0 0 0 3px rgba(247, 196, 81, 0.3),
    0 8px 22px rgba(0, 0, 0, 0.45);
  /* Still by default — only spins while the track is playing */
}

.vinyl-btn.playing .vinyl {
  animation: vinyl-spin 2.4s linear infinite;
  box-shadow:
    0 0 0 3px var(--gold),
    0 8px 26px rgba(0, 0, 0, 0.55);
}

@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}

/* Gold center label with the company name */
.vinyl-label {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 47%;
  height: 47%;
  border-radius: 50%;
  background: radial-gradient(circle, #f9d47c 0 55%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-label span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.58rem;
  line-height: 1.2;
  color: var(--navy-deep);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transform: translateY(-7px);
}

/* Spindle hole */
.vinyl-label::after {
  content: "";
  position: absolute;
  bottom: 26%;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy-deep);
}

/* Play/pause badge — outside the spinning element so it stays upright */
.vinyl-state {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.vinyl-card .demo-title {
  color: var(--cream);
  font-weight: 600;
  margin: 1.1rem 0 0.3rem;
  font-size: 0.98rem;
}

.demo-note {
  display: none;
  color: var(--gold-soft);
  font-size: 0.85rem;
  margin: 0;
}

.vinyl-card.is-unavailable .demo-note {
  display: block;
}

.vinyl-card.is-unavailable .vinyl {
  animation-play-state: paused;
  opacity: 0.55;
}

.vinyl-card.is-unavailable .vinyl-btn {
  cursor: not-allowed;
}

.demo-progress {
  height: 3px;
  background: rgba(250, 246, 238, 0.15);
  border-radius: 3px;
  margin-top: 0.8rem;
  overflow: hidden;
}

.demo-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.2s linear;
}

@media (prefers-reduced-motion: reduce) {
  .vinyl {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 1.25rem;
  list-style: none;
  position: relative;
  padding-right: 2.75rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Order form
   -------------------------------------------------------------------------- */

.order-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--navy-deep);
}

.form-field .field-optional {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.9em;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}

.form-field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold-soft);
  outline-offset: 1px;
  border-color: var(--gold);
}

@media (min-width: 760px) {
  .order-form {
    padding: 2.25rem 2.5rem;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background: #e4efe4;
  border: 1px solid #b9d4ba;
  color: #2c5232;
}

.form-status--error {
  background: #f7e4e0;
  border: 1px solid #e0b8ae;
  color: #7c3a2d;
}

/* --------------------------------------------------------------------------
   Payment buttons
   -------------------------------------------------------------------------- */

.payment-options {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

@media (min-width: 560px) {
  .payment-options {
    grid-template-columns: 1fr 1fr;
    max-width: 560px;
  }
}

.payment-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 0.6rem;
}

#paypal-button-container {
  min-height: 45px;
}

.price-tag {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--navy-deep);
  font-weight: 700;
  margin: 0.25rem 0;
}

.price-tag span {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Terms page
   -------------------------------------------------------------------------- */

.terms-updated {
  color: rgba(250, 246, 238, 0.85);
  font-size: 0.95rem;
  margin: 0.25rem 0 0;
}

.terms-toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.terms-toc__title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy-deep);
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.terms-toc ol {
  margin: 0;
  padding-left: 1.4rem;
}

@media (min-width: 640px) {
  .terms-toc ol {
    columns: 2;
    column-gap: 2.5rem;
  }
}

.terms-toc li {
  margin-bottom: 0.35rem;
  break-inside: avoid;
}

.terms-toc a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
}

.terms-toc a:hover {
  color: var(--gold-deep);
}

.terms-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1rem;
  margin-bottom: 1.25rem;
  scroll-margin-top: 5.5rem; /* keep anchored headings clear of sticky header */
}

.terms-copyright {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 2.25rem 0 0;
}

.terms-section h2 {
  font-size: 1.3rem;
  border-bottom: 2px solid var(--gold-soft);
  padding-bottom: 0.4rem;
}

.terms-section ul {
  padding-left: 1.25rem;
}

.terms-section li {
  margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.contact-email {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.75rem 0;
  text-decoration: none;
  border-bottom: 2px solid var(--gold-soft);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  font-size: 0.95rem;
}

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

.site-footer p {
  margin: 0.25rem 0;
}
