:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --primary: #b4622a;
  --primary-dark: #8a4a1f;
  --ink: #211d1a;
  --text: #2b2622;
  --muted: #6f665e;
  --border: #e7e2da;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

main a {
  color: var(--primary);
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink), #3a2f27 60%, var(--primary-dark));
  color: white;
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.brand {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0 5rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-photo {
  max-width: 360px;
  margin: 1.5rem 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(33, 29, 26, 0.06);
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-photo figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero .eyebrow {
  color: #e8b487;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.05rem;
  color: #ece5dd;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

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

.btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.4rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-photo {
  display: block;
  width: 216px;
  height: 216px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 210, 150, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  margin: 0 auto 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-photo:hover {
  transform: scale(1.04);
  border-color: rgba(255, 210, 150, 0.95);
}

.hero-card ul {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.hero-card li {
  margin-bottom: 0.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: #efe9e1;
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.card {
  background: var(--surface);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(33, 29, 26, 0.06);
}

.card-photo {
  display: block;
  width: 75%;
  margin: 0 auto 1rem;
  max-width: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  border-radius: 0.75rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.testimonial-video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--ink);
}

.testimonial-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.testimonial-video:hover .testimonial-play {
  background: var(--primary);
  transform: translate(-50%, -50%) scale(1.08);
}

.card.now-playing {
  border-color: var(--primary);
  animation: card-glow-pulse 2.2s ease-in-out infinite;
}

@keyframes card-glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 2px var(--primary), 0 0 14px 2px rgba(180, 98, 42, 0.4);
  }
  50% {
    box-shadow: 0 0 0 2px var(--primary), 0 0 28px 6px rgba(180, 98, 42, 0.7);
  }
}

.playlist-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.playlist-controls .btn {
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.track-subtitle {
  display: block;
  font-size: 0.9em;
}

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

.player-play-btn {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.player-play-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.player-time {
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 2.4rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.player-seek {
  flex: 1;
  min-width: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--primary) 0%,
    var(--primary) var(--seek-percent, 0%),
    var(--border) var(--seek-percent, 0%)
  );
  cursor: pointer;
}

.player-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(33, 29, 26, 0.4);
  cursor: pointer;
}

.player-seek::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: var(--border);
}

.player-seek::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
}

.player-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(33, 29, 26, 0.4);
  cursor: pointer;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(33, 29, 26, 0.06);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.form-row label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.form-row input,
.form-row textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form-card .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin: 1rem 0 0;
  font-weight: 700;
  min-height: 1.2em;
}

.form-privacy-note {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.form-status-success {
  color: #1a7a3c;
}

.form-status-error {
  color: #c0392b;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.contact-box p a {
  color: var(--primary);
  font-weight: 700;
}

.contact-box p a:hover {
  color: var(--primary-dark);
}

.tsq-tasks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tsq-task {
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.9rem 1rem;
}

.tsq-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  cursor: pointer;
}

.tsq-checkbox input {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.tsq-hours-row:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
  padding-left: 1.7rem;
}

.tsq-hours-row label {
  font-size: 0.9rem;
  color: var(--muted);
}

.tsq-hours-row input {
  width: 5rem;
  font: inherit;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg);
  color: var(--text);
}

.tsq-hours-row input:focus {
  outline: none;
  border-color: var(--primary);
}

.tsq-result {
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.tsq-teaser-blur {
  filter: blur(7px);
  user-select: none;
  font-size: 1.1rem;
}

.tsq-unlock {
  margin-top: 1.2rem;
}

.tsq-unlock p {
  margin-top: 0;
  font-weight: 700;
}

.tsq-full h3 {
  margin-bottom: 0.5rem;
}

.tsq-full p {
  margin: 0 0 0.5rem;
}

.tsq-basis {
  color: var(--muted);
  font-size: 0.95rem;
}

.tsq-full .btn {
  margin-top: 0.5rem;
}

.footer {
  background: var(--ink);
  color: #cabfb2;
  padding: 1.25rem 0 5rem;
}

.footer-content {
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .hero-content,
  .about-grid,
  .contact-box {
    grid-template-columns: 1fr;
    display: grid;
  }

  .contact-box {
    gap: 1.2rem;
  }
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(33, 29, 26, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
}

.audio-controls {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(33, 29, 26, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 2rem;
  box-shadow: 0 10px 24px rgba(33, 29, 26, 0.25);
}

.lyrics-btn {
  display: inline-block;
  margin-top: 0.8rem;
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

.lyrics-btn:hover {
  color: var(--primary-dark);
}

.lyrics-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(380px, 90vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 30px rgba(33, 29, 26, 0.18);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 200;
  display: flex;
  flex-direction: column;
}

.lyrics-panel.open {
  transform: translateX(0);
}

.lyrics-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.lyrics-panel-header h3 {
  margin: 0;
}

.lyrics-panel-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
}

.lyrics-panel-close:hover {
  color: var(--text);
}

.lyrics-panel-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.lyrics-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 1.25rem 0 0.35rem;
}

.lyrics-section-label:first-child {
  margin-top: 0;
}

.lyrics-lines {
  margin: 0 0 0.5rem;
  line-height: 1.7;
  color: var(--text);
}

.lyrics-word-list {
  columns: 2;
  column-gap: 1.5rem;
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
  color: var(--text);
  line-height: 1.7;
}

.lyrics-word-list li {
  break-inside: avoid;
}

.lyrics-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.audio-controls-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  padding-right: 0.2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.audio-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.audio-controls:has(#audio-mute-toggle:checked) .icon-off {
  display: none;
}

.audio-controls:not(:has(#audio-mute-toggle:checked)) .icon-on {
  display: none;
}

#audio-volume {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 90px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--primary) 0%,
    var(--primary) var(--vol-percent, 100%),
    rgba(255, 255, 255, 0.22) var(--vol-percent, 100%)
  );
  cursor: pointer;
}

#audio-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(155deg, #f4f4f4, #a8a8a8);
  border: 2px solid var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

#audio-volume::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

#audio-volume::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
}

#audio-volume::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(155deg, #f4f4f4, #a8a8a8);
  border: 2px solid var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch-track {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #4a4440, #2c2825);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: background 0.2s ease;
}

.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: linear-gradient(155deg, #ffffff, #b8b8b8);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease;
}

.switch input:checked + .switch-track {
  background: linear-gradient(180deg, #d98a4f, var(--primary));
}

.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(16px);
}

@media (max-width: 600px) {
  #audio-volume {
    width: 60px;
  }

  .audio-controls {
    padding: 0.45rem 0.75rem;
    gap: 0.45rem;
  }

  .audio-controls-label {
    display: none;
  }

  .back-to-top {
    width: 2.75rem;
    height: 2.75rem;
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    gap: 0.7rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .hero-content {
    padding-top: 2rem;
  }

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

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