/* ============================================
   DANNY SMITH AUDIO
   dannysmithaudio.com
   ============================================ */

/* TOKENS */
:root {
  --studio-dark: #102C26;
  --parchment:   #F7E7CE;
  --studio-mid:  #1A3D36;
  --parchment-muted: #BFB095;
  --amber:       #C8965A;
  --studio-deep: #0A1E1A;

  --font-display: 'Cormorant Garant', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Space Mono', monospace;

  --container-max: 1200px;
  --section-py: clamp(5rem, 9vw, 8rem);
  --nav-h: 4.5rem;
}

/* RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--studio-dark);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

/* CONTAINER */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* EYEBROW */
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--parchment-muted);
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #waveform-path {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* FOCUS */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.nav.scrolled {
  background: rgba(10, 30, 26, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(247, 231, 206, 0.07);
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--parchment);
  text-decoration: none;
  flex-shrink: 0;
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--parchment-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--parchment);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

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

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

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--studio-dark);
  overflow: hidden;
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: var(--nav-h) clamp(1.5rem, 5vw, 4rem) 10rem;
}

.hero-eyebrow {
  letter-spacing: 0.35em;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(5rem, 14vw, 11.5rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--parchment);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  font-weight: 400;
  color: var(--parchment-muted);
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}

/* Waveform container */
.hero-waveform {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(90px, 13vw, 150px);
  transform-origin: bottom center;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-waveform svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================
   SECTIONS — shared
   ============================================ */

.section {
  padding: var(--section-py) 0;
}

.section-eyebrow {
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ABOUT
   ============================================ */

.about {
  background: var(--studio-mid);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.about-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  color: var(--parchment);
  border: none;
  padding: 0;
  quotes: none;
}

.about-body p {
  color: var(--parchment-muted);
  font-size: 0.975rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-rule {
  border: none;
  border-top: 1px solid rgba(247, 231, 206, 0.12);
  margin: 1.75rem 0;
}

.availability {
  color: var(--amber);
  letter-spacing: 0.25em;
}

/* ============================================
   SERVICES
   ============================================ */

.services {
  background: var(--parchment);
}

.services-eyebrow {
  color: rgba(16, 44, 38, 0.5);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(16, 44, 38, 0.1);
}

.service-card {
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--parchment);
  border-right: 1px solid rgba(16, 44, 38, 0.1);
  transition: background 0.2s ease;
}

.service-card:last-child {
  border-right: none;
}

.service-card:hover {
  background: rgba(16, 44, 38, 0.04);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--studio-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  position: relative;
}

.service-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1.75rem;
  height: 1px;
  background: var(--amber);
  transition: width 0.35s ease;
}

.service-card:hover h3::after {
  width: 100%;
}

.service-card p {
  font-size: 0.875rem;
  color: rgba(16, 44, 38, 0.65);
  line-height: 1.75;
}

/* ============================================
   CREDITS
   ============================================ */

.credits {
  background: var(--studio-dark);
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(247, 231, 206, 0.07);
  border: 1px solid rgba(247, 231, 206, 0.07);
}

.credit-tile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--studio-dark);
  transition: background 0.2s ease;
  cursor: default;
}

.credit-tile:hover {
  background: var(--studio-mid);
}

.credit-artist {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--parchment);
  line-height: 1.15;
}

.credit-detail {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--parchment-muted);
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  background: var(--studio-mid);
}

.contact-inner {
  max-width: 740px;
}

.contact-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  line-height: 1.0;
  color: var(--parchment);
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--parchment-muted);
}

.form-group input,
.form-group textarea {
  background: rgba(10, 30, 26, 0.45);
  border: 1px solid rgba(247, 231, 206, 0.18);
  border-radius: 2px;
  padding: 0.875rem 1rem;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  width: 100%;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--parchment-muted);
  opacity: 0.4;
}

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

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-error {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: #E08A7A;
  min-height: 1em;
}

.form-submit {
  background: var(--parchment);
  color: var(--studio-dark);
  border: none;
  padding: 0.9rem 2.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.form-submit:hover:not(:disabled) {
  background: var(--amber);
  color: var(--studio-deep);
}

.form-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-success {
  padding: 3rem 0;
}

.form-success p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--parchment);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--studio-deep);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(247, 231, 206, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--parchment);
  opacity: 0.6;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--parchment-muted);
  opacity: 0.45;
}

.footer-socials {
  display: flex;
  gap: 1.75rem;
}

.footer-socials a {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--parchment-muted);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover {
  opacity: 1;
  color: var(--parchment);
}

/* ============================================
   RESPONSIVE — tablet
   ============================================ */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-right: none;
    border-bottom: 1px solid rgba(16, 44, 38, 0.1);
  }

  .service-card:last-child {
    border-bottom: none;
  }

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

/* ============================================
   RESPONSIVE — mobile
   ============================================ */

@media (max-width: 680px) {
  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 30, 26, 0.98);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.5rem 0 2rem;
    border-top: 1px solid rgba(247, 231, 206, 0.07);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Credits */
  .credits-grid {
    grid-template-columns: 1fr;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .form-submit {
    text-align: center;
    width: 100%;
    padding: 1rem;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}
