/*
Theme Name: Resonillator
Theme URI: https://resonillator.com
Author: Resonillator
Description: Custom theme for Resonillator - sound design, sampler packs and frequency healing
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600&display=swap');

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

:root {
  --amber:       #c8922a;
  --amber-pale:  #e8c870;
  --amber-dim:   #6a4e18;
  --deep:        #0a080e;
  --dark:        #0e0a12;
  --mid:         #16121e;
  --surface:     #1e1828;
  --text:        #d8ccc0;
  --muted:       #7a6e68;
  --pale:        #f0e8e0;
  --mon:         #cc2200;
  --tue:         #e87020;
  --wed:         #2266cc;
  --thu:         #888880;
  --fri:         #e8e0d8;
  --sat:         #228822;
}

html { scroll-behavior: smooth; }

body {
  background: var(--deep);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: rgba(10,8,14,0.93);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200,146,42,0.1);
}

.nav-brand { display: flex; flex-direction: column; gap: 5px; }

.nav-logo {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--pale);
  text-transform: uppercase;
}

.colour-bar { display: flex; gap: 3px; }
.colour-bar span { display: block; height: 3px; width: 18px; border-radius: 1px; }

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

.nav-links a {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

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

.nav-links .nav-patreon {
  padding: 0.5rem 1.4rem;
  background: var(--amber);
  color: var(--deep);
  font-weight: 500;
  letter-spacing: 0.15em;
  border-radius: 1px;
  transition: opacity 0.3s;
}

.nav-links .nav-patreon:hover { opacity: 0.85; color: var(--deep); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--amber);
  color: var(--deep);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-radius: 1px;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
}

.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); color: var(--deep); }

.btn-ghost {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: var(--pale);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1px solid rgba(240,232,224,0.25);
  border-radius: 1px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.btn-ghost:hover { border-color: rgba(240,232,224,0.6); background: rgba(240,232,224,0.05); color: var(--pale); }

/* ── SECTION COMMONS ── */
.sec-wrap { max-width: 1160px; margin: 0 auto; padding: 0 3rem; }

.sec-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.7rem;
}

.sec-title {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 200;
  color: var(--pale);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}

.sec-title strong { font-weight: 600; }

.sec-body {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 2;
  max-width: 500px;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 75% 40%, #5a2a18 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 70%, #1a0e2a 0%, transparent 55%),
    linear-gradient(160deg, #1a1228 0%, #2a1418 30%, #3a2010 55%, #1e1020 80%, #0a080e 100%);
}

.hero-grad-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,8,14,0.92) 0%, rgba(10,8,14,0.7) 40%, rgba(10,8,14,0.15) 70%, transparent 100%);
  z-index: 2;
}

.hero-grad-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--deep), transparent);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 4rem;
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.8rem;
  animation: fadeUp 0.8s 0.2s both;
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 200;
  line-height: 1.08;
  color: var(--pale);
  animation: fadeUp 0.8s 0.4s both;
}

.hero-title strong { font-weight: 600; color: #fff; display: block; }

.hero-sub {
  margin-top: 1.8rem;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 2;
  max-width: 420px;
  animation: fadeUp 0.8s 0.6s both;
}

.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.8s both;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeUp 1s 1.2s both;
}

.scroll-hint span {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(200,146,42,0.4);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(200,146,42,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── PACKS GRID ── */
.packs-section {
  padding: 7rem 0 6rem;
  background: var(--dark);
}

.packs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.view-all {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  border-bottom: 1px solid rgba(200,146,42,0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}

.view-all:hover { border-color: var(--amber); }

.packs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(200,146,42,0.08);
}

.pack-card {
  background: var(--mid);
  cursor: pointer;
  transition: background 0.3s;
  overflow: hidden;
}

.pack-card:hover { background: #1c1828; }

.pack-thumb {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.pack-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.pack-card:hover .pack-thumb img { transform: scale(1.04); }

.pack-thumb-grad {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--mid), transparent);
  pointer-events: none;
}

.pack-body { padding: 1.1rem 1.3rem 1.5rem; }

.pack-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--pale);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  transition: color 0.3s;
}

.pack-card:hover .pack-name { color: var(--amber-pale); }

.pack-type {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin-bottom: 0.8rem;
}

.pack-desc {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.pack-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(200,146,42,0.08);
  padding-top: 0.8rem;
}

.pack-price {
  font-size: 1rem;
  font-weight: 300;
  color: var(--amber);
}

.pack-price.free {
  color: var(--sat);
  font-weight: 500;
}

.pack-cta {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  transition: color 0.3s;
}

.pack-cta:hover { color: var(--pale); }

/* ── PATREON SECTION ── */
.patreon-section {
  padding: 7rem 0;
  background: var(--surface);
  border-top: 1px solid rgba(200,146,42,0.07);
  position: relative;
  overflow: hidden;
}

.patreon-glow {
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,146,42,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.patreon-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.perk {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(200,146,42,0.08);
}

.perk-dot {
  width: 6px; height: 6px;
  min-width: 6px;
  background: var(--amber);
  border-radius: 50%;
  margin-top: 0.55rem;
}

.perk-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--pale);
  margin-bottom: 0.2rem;
  letter-spacing: 0.05em;
}

.perk-desc {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

.patreon-card {
  background: var(--mid);
  border: 1px solid rgba(200,146,42,0.18);
  padding: 2.2rem;
  position: relative;
}

.patreon-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--amber), rgba(200,146,42,0.2));
}

.card-eyebrow {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}

.price-row { display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 0.3rem; }

.price-currency { font-size: 1.2rem; font-weight: 300; color: var(--amber); }

.price-num { font-size: 3.5rem; font-weight: 200; color: var(--pale); line-height: 1; }

.price-cadence {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.price-tag {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--amber);
  margin-bottom: 1.8rem;
  font-style: italic;
}

.card-divider { height: 1px; background: rgba(200,146,42,0.1); margin: 1.5rem 0; }

.card-includes {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.card-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.45rem 0;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text);
}

.card-item::before {
  content: '';
  display: block;
  width: 14px; height: 1px;
  background: var(--amber);
  flex-shrink: 0;
  opacity: 0.6;
}

.card-note {
  margin-top: 1.2rem;
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* ── FREQUENCIES ── */
.freq-section {
  padding: 7rem 0;
  background: var(--dark);
  border-top: 1px solid rgba(200,146,42,0.07);
}

.freq-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(200,146,42,0.06);
  margin-top: 3rem;
}

.freq-cell {
  background: var(--mid);
  padding: 2rem 1.2rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.freq-cell:hover { background: #1a1626; }

.freq-cell::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cell-color, var(--amber));
  transform: scaleX(0);
  transition: transform 0.4s;
  transform-origin: left;
}

.freq-cell:hover::after { transform: scaleX(1); }

.freq-greek {
  font-size: 2rem;
  font-weight: 200;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.freq-range {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.freq-name-cell {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pale);
  margin-bottom: 0.4rem;
}

.freq-note {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

/* ── YOUTUBE ── */
.yt-section {
  padding: 7rem 0;
  background: var(--surface);
  border-top: 1px solid rgba(200,146,42,0.07);
}

.yt-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.yt-embed-wrap {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: var(--mid);
}

.yt-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── COLOUR STRIP ── */
.colour-strip { display: flex; height: 4px; }
.colour-strip span { flex: 1; }

/* ── FOOTER ── */
.site-footer {
  padding: 2.5rem 3rem;
  background: var(--deep);
  border-top: 1px solid rgba(200,146,42,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(200,146,42,0.5);
}

.footer-links { display: flex; gap: 2rem; list-style: none; }

.footer-links a {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--amber); }

.footer-copy { font-size: 0.6rem; color: rgba(122,110,104,0.4); }

/* ── SINGLE INSTRUMENT ── */
.instrument-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.instrument-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.instrument-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,14,0.95) 0%, rgba(10,8,14,0.4) 60%, transparent 100%);
}

.instrument-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 4rem;
  width: 100%;
}

.instrument-body {
  padding: 5rem 0;
  background: var(--dark);
}

.instrument-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.instrument-description {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 2;
}

.instrument-description p { margin-bottom: 1.2rem; }

.instrument-sidebar {
  background: var(--mid);
  border: 1px solid rgba(200,146,42,0.15);
  padding: 2rem;
  position: sticky;
  top: 6rem;
}

.sidebar-price {
  font-size: 2.5rem;
  font-weight: 200;
  color: var(--pale);
  margin-bottom: 0.3rem;
}

.sidebar-or {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1rem 0;
  text-align: center;
}

.sidebar-patreon-note {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 1rem;
  text-align: center;
}

/* ── ARCHIVE / SHOP ── */
.archive-header {
  padding: 6rem 0 4rem;
  background: var(--dark);
  border-bottom: 1px solid rgba(200,146,42,0.07);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .site-nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.5rem; }
  .sec-wrap { padding: 0 1.5rem; }
  .packs-grid { grid-template-columns: repeat(2, 1fr); }
  .freq-grid { grid-template-columns: repeat(3, 1fr); }
  .patreon-inner, .yt-inner, .instrument-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-content { padding: 0 1.5rem; }
}

@media (max-width: 600px) {
  .packs-grid { grid-template-columns: 1fr; }
  .freq-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links .nav-patreon { display: none; }
}
