/* ==========================================================================
   Paint Box Media — design tokens & custom utilities
   (Ported from the original Tailwind v4 @theme / @utility source.
   Grid/flex/spacing/typography utilities are supplied by the Tailwind
   CDN build loaded in functions.php; the classes below are the bespoke
   ones that build depends on for colors + signature components.)
   ========================================================================== */

:root {
  --radius: 0.5rem;
  --background: oklch(0.16 0.02 220);
  --foreground: oklch(0.97 0.005 100);
  --card: oklch(0.20 0.025 220);
  --card-foreground: oklch(0.97 0.005 100);
  --popover: oklch(0.20 0.025 220);
  --popover-foreground: oklch(0.97 0.005 100);
  --primary: oklch(0.82 0.14 82);
  --primary-foreground: oklch(0.16 0.02 220);
  --secondary: oklch(0.38 0.06 210);
  --secondary-foreground: oklch(0.97 0.005 100);
  --muted: oklch(0.24 0.02 220);
  --muted-foreground: oklch(0.72 0.02 220);
  --accent: oklch(0.55 0.10 200);
  --accent-foreground: oklch(0.97 0.005 100);
  --destructive: oklch(0.62 0.22 25);
  --destructive-foreground: oklch(0.98 0 0);
  --border: oklch(0.30 0.03 220);
  --input: oklch(0.28 0.03 220);
  --ring: oklch(0.82 0.14 82);
  --teal: oklch(0.42 0.07 210);
  --teal-deep: oklch(0.30 0.05 215);
  --gold: oklch(0.82 0.14 82);
  --gold-soft: oklch(0.88 0.10 85);
  --font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

* { border-color: var(--border); }

html { scroll-behavior: smooth; }

body.paintbox {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse at top left, oklch(0.30 0.06 210 / 0.35), transparent 55%),
    radial-gradient(ellipse at bottom right, oklch(0.30 0.05 40 / 0.15), transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

::selection { background: var(--gold); color: var(--background); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

/* Anchor targets should not hide behind the fixed header */
section[id] { scroll-margin-top: 88px; }

/* -- layout helpers -- */
.container-x {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.25rem;
  max-width: 80rem;
}

/* -- color utility fallbacks (also mapped into the Tailwind CDN config,
      these exist so the theme still looks right even if the CDN script
      fails to load, e.g. offline / blocked networks) -- */
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-gold { color: var(--gold); }
.bg-gold { background-color: var(--gold); }
.border-border { border-color: var(--border); }
.border-gold { border-color: var(--gold); }

/* -- signature components -- */
.gold-gradient-text {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 40%, #C89416);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--background);
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px -8px oklch(0.82 0.14 82 / 0.5);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -6px oklch(0.82 0.14 82 / 0.7);
  color: var(--background);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 9999px;
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  border: 1px solid oklch(0.97 0.005 100 / 0.25);
  color: var(--foreground);
  background: transparent;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-block;
}

.card-lux {
  background: linear-gradient(180deg, oklch(0.22 0.025 220 / 0.7), oklch(0.18 0.02 220 / 0.7));
  border: 1px solid oklch(0.97 0.005 100 / 0.08);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  transition: all 0.4s ease;
}
.card-lux:hover {
  border-color: oklch(0.82 0.14 82 / 0.5);
  transform: translateY(-4px);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.8s ease-out both; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee { animation: marquee 30s linear infinite; }

/* -- site header -- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.5s ease;
  background: transparent;
}
.site-header.is-scrolled {
  backdrop-filter: blur(20px);
  background-color: oklch(0.16 0.02 220 / 0.7);
  border-bottom: 1px solid var(--border);
}
.site-header nav a.is-active { color: var(--foreground); }

/* -- form fields -- */
.pb-field {
  margin-top: 0.5rem;
  width: 100%;
  background: oklch(0.16 0.02 220 / 0.5);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  font-family: var(--font-sans);
}
.pb-field:focus { outline: none; border-color: var(--gold); }
.pb-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

/* honeypot spam trap - hidden from real visitors */
.pb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* mobile menu (responsive show/hide classes like lg:hidden / lg:flex
   are supplied by the Tailwind CDN build enqueued in functions.php) */
#mobile-menu.hidden { display: none; }
