/* AudioDrive AI — Mixdown Design System */

:root {
  --cream: #F4EFE7;
  --vinyl: #14110F;
  --walnut: #2A211C;
  --magenta: #DE3C8A;
  --slate: #7C8496;
  --cream-dark: #E8E0D4;
  --magenta-dark: #C42F76;
  --font-display: 'Clash Display', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
  --header-h: 72px;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(20, 17, 15, 0.08);
  --shadow-lg: 0 12px 48px rgba(20, 17, 15, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--vinyl);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--magenta);
  text-decoration: none;
  transition: color var(--transition);
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { margin-bottom: 1rem; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* Surfaces */
.surface-cream { background: var(--cream); color: var(--vinyl); }
.surface-vinyl { background: var(--vinyl); color: var(--cream); }
.surface-walnut { background: var(--walnut); color: var(--cream); }
.surface-magenta { background: var(--magenta); color: var(--cream); }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 239, 231, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 17, 15, 0.06);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--vinyl);
  text-decoration: none;
}

.logo:hover { color: var(--vinyl); }

.logo img {
  width: 36px;
  height: 36px;
}

.nav-main,
.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-main a,
.nav-list a {
  color: var(--vinyl);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
}

.nav-main a::after,
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--magenta);
  transition: width var(--transition);
}

.nav-main a:hover::after,
.nav-main a.active::after,
.nav-main a[aria-current="page"]::after,
.nav-list a:hover::after,
.nav-list a.active::after,
.nav-list a[aria-current="page"]::after {
  width: 100%;
}

.nav-main a:hover,
.nav-list a:hover { color: var(--magenta); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--vinyl);
  margin: 5px 0;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-main,
  .nav-list {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(20, 17, 15, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .nav-main.open,
  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--magenta);
  color: var(--cream);
  border-color: var(--magenta);
}

.btn-primary:hover {
  background: var(--magenta-dark);
  border-color: var(--magenta-dark);
  color: var(--cream);
}

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

.btn-outline:hover {
  background: var(--vinyl);
  color: var(--cream);
}

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

.btn-outline-light:hover {
  background: var(--cream);
  color: var(--vinyl);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Hero — Soundcheck Masthead */
.hero-masthead {
  padding: 4rem 0 5rem;
  background: var(--cream);
  position: relative;
}

.hero-masthead::before {
  content: 'SOUNDCHECK';
  position: absolute;
  top: 2rem;
  right: 5%;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--slate);
  opacity: 0.5;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 1.5rem;
}

.hero-masthead h1 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
}

.hero-slogan {
  font-size: 1.2rem;
  color: var(--walnut);
  max-width: 520px;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.hero-plate {
  margin-top: 3rem;
  border: 3px solid var(--vinyl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-plate::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(244, 239, 231, 0.3);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
  z-index: 1;
}

.hero-plate img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
}

/* Page Hero (inner pages) */
.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(20, 17, 15, 0.08);
}

.page-hero .mono {
  color: var(--magenta);
  margin-bottom: 1rem;
  display: block;
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

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

/* Cards */
.card {
  background: var(--cream);
  border: 1px solid rgba(20, 17, 15, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(222, 60, 138, 0.2);
}

.card-dark {
  background: var(--walnut);
  color: var(--cream);
  border-color: transparent;
}

.card-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--magenta);
  margin-bottom: 1rem;
}

/* Service cards */
.service-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--cream);
  border: 1px solid rgba(20, 17, 15, 0.06);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--walnut);
}

/* Image frames */
.img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--vinyl);
}

.img-frame img {
  width: 100%;
  object-fit: cover;
}

.img-caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate);
  margin-top: 0.75rem;
}

/* Stats strip */
.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(244, 239, 231, 0.15);
  border-bottom: 1px solid rgba(244, 239, 231, 0.15);
}

.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--magenta);
}

.stat-item .stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

/* FAQ */
.faq-list {
  list-style: none;
}

.faq-item {
  border-bottom: 1px solid rgba(20, 17, 15, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--vinyl);
  text-align: left;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--magenta);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--walnut);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(20, 17, 15, 0.15);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--vinyl);
  transition: border-color var(--transition);
}

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

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

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

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Contact info */
.contact-block {
  padding: 2rem;
  background: var(--walnut);
  color: var(--cream);
  border-radius: var(--radius-lg);
}

.contact-block a {
  color: var(--magenta);
}

.contact-block a:hover {
  color: #f0a0c8;
}

.contact-detail {
  margin-bottom: 1.2rem;
}

.contact-detail .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.3rem;
}

/* Footer */
.site-footer {
  background: var(--vinyl);
  color: var(--cream);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

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

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

.footer-brand p {
  color: var(--slate);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.site-footer .logo {
  color: var(--cream);
}

.site-footer .logo:hover {
  color: var(--cream);
  opacity: 0.9;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--cream);
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--magenta);
}

.footer-bottom {
  border-top: 1px solid rgba(244, 239, 231, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--slate);
}

/* Legal pages */
.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.legal-content ul, .legal-content ol {
  margin: 1rem 0 1rem 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 6rem;
  color: var(--magenta);
  opacity: 0.3;
  line-height: 1;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--walnut);
  color: var(--cream);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform var(--transition);
  box-shadow: 0 -4px 24px rgba(20, 17, 15, 0.2);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-inner p {
  flex: 1;
  min-width: 280px;
  margin: 0;
  font-size: 0.9rem;
  color: rgba(244, 239, 231, 0.85);
}

.cookie-inner a {
  color: var(--magenta);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Work portfolio */
.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(20, 17, 15, 0.85));
  color: var(--cream);
}

.portfolio-overlay h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.portfolio-overlay .mono {
  color: var(--slate);
  font-size: 0.7rem;
}

/* Thanks page */
.thanks-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thanks-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 2rem;
  background: var(--magenta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--cream);
}

/* Utility */
.text-center { text-align: center; }
.text-slate { color: var(--slate); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
