/*
Theme Name: HYKA Records
Theme URI: https://www.hykarecords.com
Author: HYKA Records
Description: Minimal one-page theme for HYKA Records — independent music label. Black / white / grey, Montserrat, animated vinyl grooves.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hyka
*/

/* ---------- Fonts (self-hosted, GDPR-safe) ---------- */
@font-face {
  font-family: 'Montserrat';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/montserrat-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/montserrat-700.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --black: #0d0d0d;
  --ink: #1a1a1a;
  --white: #ffffff;
  --grey: #8f8f8f;
  --grey-dark: #3d3d3d;
  --grey-line: #e5e5e5;
  --grey-bg: #f6f6f6;
  --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --track: 0.38em;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 500;
  background: var(--black);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--white); }

.wrap { width: min(1120px, 88vw); margin-inline: auto; }

/* Accessible, off-screen text for semantic headings (SEO + screen readers) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; white-space: nowrap;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  mix-blend-mode: difference; /* stays legible over black & white sections */
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 34px; height: 34px; }
.brand span {
  font-weight: 700;
  letter-spacing: var(--track);
  font-size: 0.95rem;
  padding-left: 0.38em; /* optical: cancels trailing tracking */
}
.nav { display: flex; gap: 42px; }
.nav a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--track);
  opacity: 0.75;
  transition: opacity 0.25s;
}
.nav a:hover { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--black);
  overflow: hidden;
}
#grooves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: 6vw;
}
.hero-logo { width: min(540px, 78vw); margin-inline: auto; }
.tagline {
  margin-top: 46px;
  color: var(--grey);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
}
/* Hero streaming links (replace the tagline) */
.hero-socials {
  margin-top: 46px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 40px;
}
.hero-socials a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--grey);
  padding-left: 0.38em; /* optical: balance the trailing tracking */
  transition: color 0.25s;
}
.hero-socials a:hover { color: var(--white); }
.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 72px;
  background: var(--grey-dark);
  overflow: hidden;
}
.scroll-cue::after {
  content: '';
  position: absolute;
  left: 0; top: -100%;
  width: 1px; height: 100%;
  background: var(--white);
  animation: cue 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes cue { to { top: 100%; } }

/* ---------- Sections shared ---------- */
section { padding-block: clamp(110px, 16vh, 180px); }
.kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 34px;
}
.statement {
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: 17ch;
}

/* ---------- About ---------- */
.about { background: var(--white); position: relative; overflow: hidden; }
.about > .wrap { position: relative; z-index: 1; }
/* Dimmed three.js vinyl — sits quietly in the section's whitespace. */
#about-vinyl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
  -webkit-mask-image: linear-gradient(105deg, transparent 0%, transparent 34%, #000 78%);
          mask-image: linear-gradient(105deg, transparent 0%, transparent 34%, #000 78%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: end;
}
.about-copy p { color: var(--grey-dark); max-width: 44ch; }
.about-copy p + p { margin-top: 1.2em; }
.about-copy .founder { color: var(--ink); font-weight: 700; }
.about-copy .founder a {
  color: var(--ink);
  border-bottom: 1px solid var(--grey);
  padding-bottom: 1px;
  transition: border-color 0.25s;
}
.about-copy .founder a:hover { border-color: var(--ink); }
.facts {
  margin-top: clamp(70px, 10vh, 120px);
  padding-top: 44px;
  border-top: 1px solid var(--grey-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.fact strong {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.fact span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- Listen ---------- */
.listen { background: var(--grey-bg); }
.listen .player {
  margin-top: clamp(40px, 6vh, 64px);
  max-width: 720px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  border-radius: 14px;
}
.listen .player iframe { display: block; width: 100%; }

/* ---------- Contact ---------- */
.contact { background: var(--black); color: var(--white); }
.contact .statement { color: var(--white); }
.email-link {
  display: inline-block;
  margin-top: 40px;
  font-weight: 700;
  font-size: clamp(1.25rem, 3.4vw, 2.2rem);
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--grey-dark);
  padding-bottom: 8px;
  transition: border-color 0.3s;
}
.email-link:hover { border-color: var(--white); }
.contact-note { margin-top: 26px; color: var(--grey); font-size: 0.85rem; max-width: 46ch; }

/* ---------- Contact form ---------- */
.contact-grid {
  margin-top: clamp(48px, 7vh, 72px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(44px, 6vw, 88px);
  align-items: start;
}
.contact-intro .email-link { margin-top: 0; }

/* Scoped so it styles the static fallback and Contact Form 7 output alike. */
.contact-form form,
.contact-form .wpcf7-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.hyka-field { display: flex; flex-direction: column; gap: 10px; }
.hyka-field--full { grid-column: 1 / -1; }
.contact-form label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--grey);
}
.contact-form input,
.contact-form textarea,
.contact-form .wpcf7-form-control {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #333;
  padding: 12px 2px;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.contact-form textarea { resize: vertical; min-height: 116px; line-height: 1.5; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #5a5a5a; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--white); }
.contact-form input:-webkit-autofill {
  -webkit-text-fill-color: var(--white);
  transition: background-color 5000s ease-in-out 0s;
}

/* Submit — shared by the static button and CF7's submit input. */
.contact-form .hyka-submit,
.contact-form .wpcf7-submit {
  margin-top: 8px;
  justify-self: start;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--white);
  padding: 15px 40px 15px calc(40px + 0.38em);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.contact-form .hyka-submit:hover,
.contact-form .wpcf7-submit:hover { background: transparent; color: var(--white); }

/* Contact Form 7 validation / response styling. */
.contact-form .wpcf7-not-valid-tip {
  color: #e5a3a3;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  margin-top: 6px;
}
.contact-form .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 12px 16px;
  border: 1px solid #333;
  font-size: 0.8rem;
  color: var(--grey);
}
.contact-form .wpcf7 form.invalid .wpcf7-response-output,
.contact-form .wpcf7 form.unaccepted .wpcf7-response-output { border-color: #6b4a4a; }
.contact-form .wpcf7 form.sent .wpcf7-response-output { border-color: #4a6b58; color: var(--white); }
.contact-form .wpcf7-spinner { background-color: var(--grey); }

.socials {
  margin-top: clamp(70px, 10vh, 110px);
  padding-top: 40px;
  border-top: 1px solid #262626;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
}
.socials a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.25s;
}
.socials a:hover { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--grey);
  border-top: 1px solid #1f1f1f;
  padding-block: 34px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer img { width: 26px; height: 26px; opacity: 0.85; }

/* ---------- Legal / content pages ---------- */
.site-header--solid {
  position: static;
  mix-blend-mode: normal;
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--grey-line);
}
.legal { background: var(--white); color: var(--ink); padding-block: clamp(72px, 11vh, 128px); }
.legal .wrap { width: min(760px, 88vw); }
.legal-title {
  font-weight: 700;
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 0.7em;
}
.legal-body { color: var(--grey-dark); }
.legal-body h2 { color: var(--ink); font-weight: 700; font-size: 1.15rem; margin: 1.9em 0 0.55em; }
.legal-body h3 { color: var(--ink); font-weight: 700; font-size: 0.98rem; margin: 1.4em 0 0.4em; }
.legal-body p, .legal-body li { line-height: 1.75; }
.legal-body p + p { margin-top: 1em; }
.legal-body a { color: var(--ink); border-bottom: 1px solid var(--grey); }
.legal-body a:hover { border-color: var(--ink); }
.legal-body ul { margin: 0.7em 0 0.7em 1.2em; }
.legal-body li + li { margin-top: 0.35em; }

/* ---------- Cookie notice (informational, non-blocking) ---------- */
.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 60;
  width: min(680px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 18px;
  background: rgba(13, 13, 13, 0.96);
  color: var(--white);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice__text { margin: 0; font-size: 0.76rem; line-height: 1.55; color: #cfcfcf; }
.cookie-notice__text a { color: #fff; border-bottom: 1px solid var(--grey); }
.cookie-notice__btn {
  flex: none;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  border: 0;
  border-radius: 6px;
  padding: 11px 20px 11px calc(20px + 0.38em);
  cursor: pointer;
  transition: opacity 0.25s;
}
.cookie-notice__btn:hover { opacity: 0.85; }
@media (max-width: 560px) {
  .cookie-notice { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; align-items: start; }
  .facts { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  #about-vinyl {
    opacity: 0.10;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 44%, #000 92%);
            mask-image: linear-gradient(180deg, transparent 0%, transparent 44%, #000 92%);
  }
  .nav { gap: 26px; }
  .site-footer .wrap { flex-direction: column; }
}
@media (max-width: 460px) {
  .contact-form form,
  .contact-form .wpcf7-form { grid-template-columns: 1fr; }
}
