/**
 * mixosmosis — main stylesheet.
 * Parity target: the legacy Sonaar/Elementor site (see reference/screenshots).
 * Design system confirmed live: Montserrat everywhere, pure-black bg, teal accents.
 */

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg-black, #000);
  color: var(--c-white, #fff);
  font-family: var(--font-display, 'Montserrat'), system-ui, sans-serif;
  font-size: 14px;
  line-height: 28px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-action, #50e69b); }

h1, h2, h3, h4, h5 { font-family: var(--font-display, 'Montserrat'), sans-serif; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: 54px; line-height: 1.02; }
h2 { font-size: 36px; line-height: 1.0; text-transform: uppercase; }
h3 { font-size: 24px; }

.wrap, .site-main > * > .container, .container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 1000; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; padding: 28px 32px; gap: 24px;
}
.site-branding { flex: 0 0 auto; min-width: 120px; }
.site-branding img { max-height: 54px; width: auto; }
.site-title { font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.site-nav { flex: 1 1 auto; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin: 0; padding: 0; }
.site-nav a { text-transform: uppercase; letter-spacing: 2.5px; font-size: 14px; font-weight: 500; color: #fff; transition: color .2s; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--c-action, #50e69b); }

/* ---------- Main / sections ---------- */
.site-main { min-height: 50vh; }
.page-article, .album-single, .artist-single, .service-single, .wrap { max-width: 1200px; margin: 0 auto; padding: 60px 24px; }
.entry-title { text-align: center; }
.page-heading { text-align: center; text-transform: uppercase; }
.entry-content { font-size: 14px; line-height: 28px; }
.entry-content p { margin: 0 0 1.4em; }
.section-title { text-align: center; text-transform: uppercase; margin: 0 0 1.4em; }

/* Teal display title used on service/detail heroes */
.title-accent { color: var(--c-action, #50e69b); text-align: center; text-transform: uppercase; }

/* ---------- Home hero (fullscreen bg video) ---------- */
.home-hero { position: relative; height: 88vh; min-height: 560px; overflow: hidden; background: #000;
  display: flex; align-items: center; justify-content: center; }
.home-hero__video { position: absolute; inset: 0; pointer-events: none; }
.home-hero__video iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; border: 0; }
.home-hero__bgvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero__overlay { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 34px; padding: 0 20px; }
.home-hero__logo { width: min(360px, 68vw); height: auto; filter: drop-shadow(0 4px 24px rgba(0,0,0,.5)); }
.home-hero::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.25); z-index: 1; }

/* ---------- Enquiry hero (Contact) ---------- */
.enquiry-hero { position: relative; min-height: 76vh; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; text-align: center; }
.enquiry-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.enquiry-hero__inner { position: relative; z-index: 2; padding: 0 24px; max-width: 900px; }
.enquiry-hero__title { font-size: 60px; line-height: 1.05; margin: 0 0 .25em; }
.enquiry-hero__sub { font-size: 26px; font-weight: 400; line-height: 1.35; margin: 0; }
@media (max-width: 760px) { .enquiry-hero__title { font-size: 38px; } .enquiry-hero__sub { font-size: 20px; } }

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-block; background: var(--c-primary, #00ad8e); color: #fff;
  text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 15px;
  padding: 18px 54px; border-radius: 40px; border: 0; cursor: pointer; transition: filter .2s;
}
.btn-pill:hover { filter: brightness(1.1); color: #fff; }
.btn-center { text-align: center; margin: 40px 0; }

/* ---------- A/B audio player ---------- */
.audio-sync-wrapper { max-width: 760px; margin: 0 auto 14px; }
.audio-sync-right { width: 100%; }
.audio-sync-group {
  position: relative; display: flex; flex-direction: row; gap: 8px; width: 100%;
}
.audio-sync-group > .audio-btn-sync-play,
.audio-sync-group > .audio-btn-sync-a,
.audio-sync-group > .audio-btn-sync-b {
  flex: 1 1 0; min-height: 54px; border: 0; cursor: pointer;
  font-family: inherit; color: #fff; display: flex; align-items: center; justify-content: center;
}
.audio-sync-group h4 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .5px; }
/* Play = teal, label left-aligned with the icon */
.audio-btn-sync-play { background: var(--c-action, #50e69b); justify-content: flex-start !important; padding-left: 18px; }
.audio-btn-sync-play h4 { text-align: left; display: flex; align-items: center; gap: 10px; }
.audio-btn-sync-play:hover { filter: brightness(1.05); }
/* Before / After = grey toggles */
.audio-btn-sync-a, .audio-btn-sync-b { background: #6a6a6a; text-transform: uppercase; }
.audio-btn-sync-a:disabled, .audio-btn-sync-b:disabled { opacity: .85; cursor: default; }
.audio-btn-sync-a.audio-sync-playing, .audio-btn-sync-b.audio-sync-playing { background: var(--c-primary, #00ad8e); }
/* Buffering overlay */
.audio-sync-buffering-label { position: absolute; inset: 0; margin: 0; background: #000;
  display: flex; align-items: center; justify-content: center; z-index: 9999; }
.audio-sync-buffered { display: none !important; }
/* Active track is shown by the BEFORE/AFTER highlight, not a text label */
.audio-sync-playing-label { display: none; }
/* Hide the raw <a> source links */
.audio-sync-a[href], .audio-sync-b[href] { display: none; }

/* Dependency-free icon glyphs for the player (no FontAwesome needed) */
.audio-sync-group .fas { font-style: normal; font-family: inherit; }
.audio-sync-group .fa-play::before { content: '\25B6'; }   /* ▶ */
.audio-sync-group .fa-stop::before { content: '\25A0'; }   /* ■ */
.audio-sync-group .fa-spinner::before { content: '\21BB'; display: inline-block; } /* ↻ */
.audio-sync-group .fa-spin { animation: mix-spin 1s linear infinite; }
@keyframes mix-spin { to { transform: rotate(360deg); } }

/* ---------- Gallery (carousel-ish grid fallback) ---------- */
.mix-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 30px 0; }
.mix-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- Accordion (studio gear specs) ---------- */
.mix-accordion { max-width: 1150px; margin: 0 auto; border-top: 1px solid #333; }
.mix-accordion__item { border-bottom: 1px solid #333; }
.mix-accordion__head {
  width: 100%; text-align: left; background: none; border: 0; color: #fff; cursor: pointer;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 15px;
  padding: 20px 16px; display: flex; align-items: center; gap: 12px;
}
.mix-accordion__head::before { content: '+'; color: var(--c-action, #50e69b); font-size: 20px; width: 16px; }
.mix-accordion__item.is-open .mix-accordion__head::before { content: '\2212'; }
.mix-accordion__body { display: none; padding: 0 16px 24px; }
.mix-accordion__item.is-open .mix-accordion__body { display: block; }
.mix-accordion__body p, .mix-accordion__body li { margin: 4px 0; }

/* ---------- Services landing cards ---------- */
.service-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 40px auto; max-width: 1200px; }
.service-card { position: relative; display: block; aspect-ratio: 16/11; overflow: hidden; }
.service-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.service-card__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.service-card:hover img { filter: brightness(.85); }

/* ---------- Album / discography grid ---------- */
.album-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; padding: 0; }
.album-card a { display: block; }
.album-card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.album-card-title { display: block; margin-top: 10px; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }

/* ---------- CD cover carousel (The Sounds — Samples) ---------- */
.cd-carousel-wrap { position: relative; max-width: 1200px; margin: 0 auto 20px; }
.cd-carousel { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 24px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.cd-carousel::-webkit-scrollbar { height: 6px; }
.cd-carousel::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.cd-item { flex: 0 0 auto; width: 230px; scroll-snap-align: start; text-align: center; }
.cd-item__cover { position: relative; width: 230px; height: 230px; overflow: hidden; background: #111; }
.cd-item__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; }
.cd-item:hover .cd-item__cover img { transform: scale(1.05); filter: brightness(.6); }
.cd-item.is-playing .cd-item__cover img { filter: brightness(.55); }
.cd-item__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--c-action, #50e69b); color: #06231a; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s, transform .2s; box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.cd-item:hover .cd-item__play, .cd-item.is-playing .cd-item__play, .cd-item__play:focus { opacity: 1; }
.cd-item__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.cd-item__play::before { content: '\25B6'; font-size: 22px; margin-left: 3px; }        /* ▶ */
.cd-item__play.is-playing::before { content: '\2759\2009\2759'; font-size: 20px; margin-left: 0; } /* ❙❙ */
.cd-item__title { display: block; margin-top: 12px; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; font-weight: 600; }
.cd-item__meta { display: block; font-size: 11px; color: #9a9a9a; letter-spacing: 1px; }
.cd-nav { position: absolute; top: calc(115px - 22px); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(20,20,20,.85); color: #fff; cursor: pointer; font-size: 20px; z-index: 3; display: flex; align-items: center; justify-content: center; }
.cd-nav:hover { background: var(--c-primary, #00ad8e); }
.cd-nav--prev { left: -8px; } .cd-nav--next { right: -8px; }

/* ---------- Testimonials (alternating photo / quote — original layout) ---------- */
.testimonial { display: flex; align-items: center; gap: 48px; max-width: 1040px; margin: 0 auto 64px; }
.testimonial--flip { flex-direction: row-reverse; }
.testimonial__media { flex: 0 0 210px; display: flex; justify-content: center; }
.testimonial__photo { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; border: 3px solid var(--c-action, #50e69b); }
.testimonial__body { flex: 1 1 auto; }
.testimonial__quote { border-left: 3px solid var(--c-action, #50e69b); margin: 0; padding: 4px 0 4px 24px; line-height: 26px; }
.testimonial__cite { display: block; margin-top: 16px; padding-left: 24px; }
.testimonial--flip .testimonial__quote,
.testimonial--flip .testimonial__cite { text-align: right; padding-left: 0; padding-right: 24px; border-left: 0; }
.testimonial--flip .testimonial__quote { border-right: 3px solid var(--c-action, #50e69b); }
.testimonial__name { color: var(--c-action, #50e69b); }
@media (max-width: 760px) {
  .testimonial, .testimonial--flip { flex-direction: column; gap: 20px; text-align: center; }
  .testimonial--flip .testimonial__quote, .testimonial--flip .testimonial__cite { text-align: center; }
}

/* ---------- Credits / legend ---------- */
.samples-legend { text-align: center; color: #cfcfcf; font-size: 13px; margin: 6px 0 40px; }
.credits-list { max-width: 1000px; margin: 0 auto; text-align: center; text-transform: uppercase; letter-spacing: 1px; line-height: 30px; }

/* ---------- Forms (CF7) ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; margin-top: 40px; }
.contact-details h3 { text-transform: uppercase; letter-spacing: 1px; }
.contact-details a { color: var(--c-action, #50e69b); }
.wpcf7 label { display: block; margin: 0 0 18px; font-size: 13px; letter-spacing: .5px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=url], .wpcf7 input[type=number], .wpcf7 textarea, .wpcf7 select {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px;
  background: #141414; border: 1px solid #333; color: #fff; font-family: inherit; font-size: 14px; border-radius: 4px;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--c-action, #50e69b); }
.wpcf7 textarea { min-height: 120px; resize: vertical; }
.wpcf7 .wpcf7-checkbox .wpcf7-list-item { display: inline-block; margin: 6px 18px 6px 0; }
.wpcf7 input[type=submit] {
  background: var(--c-primary, #00ad8e); color: #fff; border: 0; cursor: pointer;
  text-transform: uppercase; letter-spacing: 2px; font-weight: 700; padding: 16px 48px; border-radius: 40px; margin-top: 10px;
}
.wpcf7 input[type=submit]:hover { filter: brightness(1.1); }
.wpcf7-not-valid-tip { color: #ff6b6b; font-size: 12px; }
.wpcf7 .wpcf7-response-output { border-color: #333; margin: 20px 0 0; padding: 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid #333; margin-top: 60px; padding: 40px 32px 60px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; max-width: 1280px; margin-left: auto; margin-right: auto; }
.site-footer .footer-enquiries { font-size: 13px; line-height: 24px; text-transform: uppercase; letter-spacing: .5px; }
.site-footer .footer-enquiries a { color: var(--c-action, #50e69b); text-transform: none; }
.site-footer .footer-badges { display: flex; align-items: center; justify-content: center; gap: 20px; }
.site-footer .footer-badges img { max-height: 40px; width: auto; }
.site-footer .footer-social { text-align: right; font-size: 26px; }
.site-copy { grid-column: 1 / -1; text-align: center; font-size: 12px; color: #777; margin: 24px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-header { flex-direction: column; padding: 20px; }
  .site-nav ul { gap: 20px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .service-cards, .mix-gallery { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer .footer-social { text-align: center; }
  .audio-sync-group { flex-wrap: wrap; }
  .audio-btn-sync-play { flex-basis: 100%; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
}
