/* ============================================================
   VALERON — Shared Stylesheet
   Dark & Powerful — Black, Gold, Deep Tones
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Barlow:wght@300;400;500;600&family=Barlow+Condensed:wght@400;600;700&display=swap');

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

:root {
  --black: #0A0A0A;
  --black-rich: #111111;
  --black-mid: #1A1A1A;
  --black-soft: #222222;
  --gold: #C9A227;
  --gold-light: #E8C547;
  --gold-dim: rgba(201,162,39,0.15);
  --gold-pale: rgba(201,162,39,0.07);
  --white: #FFFFFF;
  --off-white: #F5F0E8;
  --text-body: rgba(255,255,255,0.78);
  --text-muted: rgba(255,255,255,0.45);
  --text-faint: rgba(255,255,255,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--black);
  color: var(--text-body);
  min-height: 100vh;
  overflow-x: clip;
}

/* ── Texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Layout ── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
  width: 100%;
}

/* ── Navigation ── */
nav {
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(201,162,39,0.12);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-wordmark {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-top: -2px;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-cta {
  padding: 0.55rem 1.4rem;
  border: 1px solid rgba(201,162,39,0.5) !important;
  color: var(--gold) !important;
  border-radius: 1px;
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--black) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  transition: all 0.3s;
}

/* ── Section Base ── */
section { padding: 6rem 0; }

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.section-title span { color: var(--gold); }

.section-title em {
  font-style: italic;
  color: var(--off-white);
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.9;
  font-weight: 300;
}

.gold-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

.gold-rule-center {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
}

/* ── Divider band ── */
.band {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(201,162,39,0.12);
  border-bottom: 1px solid rgba(201,162,39,0.12);
  background: rgba(201,162,39,0.04);
  text-align: center;
}

.band-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

.band-text span { color: var(--gold); }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--gold);
  color: var(--black);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  border-radius: 1px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: transparent;
  color: var(--gold);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(201,162,39,0.45);
  border-radius: 1px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201,162,39,0.08);
}

/* ── Cards ── */
.card {
  background: var(--black-mid);
  border: 1px solid rgba(201,162,39,0.12);
  border-radius: 1px;
  padding: 2.2rem;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgba(201,162,39,0.4);
  transform: translateY(-4px);
}

/* ── Footer ── */
footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(201,162,39,0.15);
  margin-top: auto;
  background: var(--black-rich);
}

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

.footer-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ── Newsletter consent checkbox ── */
.nl-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.nl-consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.nl-consent a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-note + .form-note { margin-top: 0.5rem; }
.form-note a { color: var(--gold); }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-up   { animation: fadeUp 0.7s ease both; }
.fade-up-1 { animation: fadeUp 0.7s 0.12s ease both; }
.fade-up-2 { animation: fadeUp 0.7s 0.24s ease both; }
.fade-up-3 { animation: fadeUp 0.7s 0.36s ease both; }
.fade-up-4 { animation: fadeUp 0.7s 0.48s ease both; }
.fade-in   { animation: fadeIn 1.2s ease both; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10,10,10,0.99);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--gold-dim);
    z-index: 9999;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .container { padding: 0 1.5rem; }
  .nav-inner { padding: 0 1.5rem; }
  section { padding: 4rem 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ============================================================
   VALERON Logo Updates
   ============================================================ */

/* ── Global background watermark (tagline wordmark) ── */
body::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(85vw, 920px);
  height: min(85vw, 920px);
  background: url('https://res.cloudinary.com/dngnqdikz/image/upload/v1774564355/Valeron_logo_with_tagline_qpl9lg.png') center / contain no-repeat;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

/* ── Nav logo image ── */
.nav-logo-img {
  height: 144px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── Nav adjustments for tall logo ── */
nav {
  padding: 0.6rem 0;
}

.nav-inner {
  align-items: center;
}

/* Hide the old text wordmark & tagline when logo image is used */
.nav-brand .nav-wordmark,
.nav-brand .nav-tagline {
  display: none;
}

/* ── Responsive: shrink logo on mobile ── */
@media (max-width: 768px) {
  .nav-logo-img {
    height: 80px;
  }
  nav {
    padding: 0.5rem 0;
  }
}

/* ============================================================
   BATCH 1 — Custom Cursor
   ============================================================ */

@media (hover: hover) and (pointer: fine) {
  body.cursor-active,
  body.cursor-active * {
    cursor: none !important;
  }
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.22s ease, height 0.22s ease, border-color 0.22s ease;
}

body.cursor-hover .cursor-ring {
  width: 46px;
  height: 46px;
  border-color: var(--gold);
}

/* ============================================================
   BATCH 1 — Page Transition Overlay
   ============================================================ */

#page-transition {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.38s ease;
}

#page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* Gold sweep line across centre */
#page-transition::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--gold) 60%, transparent 100%);
  transform: translateY(-50%) scaleX(0);
  transition: transform 0.38s ease;
  opacity: 0.55;
}

#page-transition.active::after {
  transform: translateY(-50%) scaleX(1);
}

/* ============================================================
   BATCH 4 — Ambient Sound Toggle
   ============================================================ */

.ambient-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(201,162,39,0.25);
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(12px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  padding: 0;
  transition: border-color 0.22s, background 0.22s;
}

.ambient-toggle:hover {
  border-color: rgba(201,162,39,0.6);
  background: rgba(201,162,39,0.07);
}

.ambient-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: rgba(201,162,39,0.4);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.22s;
}

.ambient-toggle.is-playing {
  border-color: rgba(201,162,39,0.5);
}

.ambient-toggle.is-playing svg {
  stroke: var(--gold);
}

/* Nudge hint — appears briefly on load */
.ambient-nudge {
  position: fixed;
  bottom: 4.2rem;
  right: 2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201,162,39,0.55);
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201,162,39,0.15);
  padding: 0.38rem 0.85rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 9989;
  white-space: nowrap;
}

.ambient-nudge.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tooltip label to the left of button */
.ambient-toggle::before {
  content: 'Ambient';
  position: absolute;
  right: calc(100% + 0.65rem);
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201,162,39,0.45);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.ambient-toggle:hover::before {
  opacity: 1;
}

/* ============================================================
   Reduced Motion — disable cursor & transition overlay
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
  #page-transition,
  #page-transition::after {
    transition: none !important;
    display: none !important;
  }
}
