/* GlowLife — The Lightbox design system */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;600&family=Sora:wght@600;700&family=Space+Mono:wght@500&display=swap');

:root {
  --obsidian: #0A0F12;
  --teal: #0C2A2B;
  --charcoal: #12181C;
  --slate: #1A2228;
  --sand: #F5F0E6;
  --amber: #FFB23F;
  --graphite: #7C8A8C;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Be Vietnam Pro', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --section-pad: clamp(4rem, 8vw, 8.75rem);
  --max-width: 72rem;
  --transition: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  background: var(--obsidian);
  color: var(--sand);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { opacity: 0.85; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }

p { margin: 0 0 1.25rem; }

ul, ol { margin: 0 0 1.25rem; padding-left: 1.35rem; }

/* Surfaces */
.surface-obsidian { background: var(--obsidian); color: var(--sand); }
.surface-sand { background: var(--charcoal); color: var(--sand); }
.surface-teal { background: var(--teal); color: var(--sand); }
.surface-amber { background: var(--amber); color: var(--obsidian); }

.text-graphite { color: var(--graphite); }
.text-amber { color: var(--amber); }

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.hairline {
  border: none;
  border-top: 1px solid rgba(245, 240, 230, 0.25);
  margin: 0;
}

.surface-sand .hairline { border-top-color: rgba(245, 240, 230, 0.15); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: var(--obsidian);
  color: var(--sand);
  box-shadow: 0 1px 0 rgba(245, 240, 230, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-aperture {
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.6;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: inherit;
}

.main-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

.main-nav a[aria-current="page"] {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--amber);
  color: var(--obsidian);
}

.btn-secondary {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}

.btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* Hero — THE LIGHTBOX */
.hero-lightbox {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-lightbox::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/glowlife-01-hero-studio.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-lightbox::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 15, 18, 0.92) 0%, rgba(10, 15, 18, 0.55) 50%, rgba(10, 15, 18, 0.75) 100%);
  z-index: 1;
}

.hero-halo {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255, 178, 63, 0.12) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 6rem;
}

.hero-eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
}

.hero-content-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
}

.hero-content {
  position: relative;
  max-width: 42rem;
  padding-left: 3rem;
}

.hero-aperture {
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(255, 178, 63, 0.5);
  border-radius: 50%;
  opacity: 0;
}

.js .hero-aperture {
  animation: aperture-open 1.2s ease forwards 0.3s;
}

@keyframes aperture-open {
  from { opacity: 0; transform: translateY(-50%) scale(0.7); }
  to { opacity: 1; transform: translateY(-50%) scale(1); }
}

.light-meter {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber), rgba(255, 178, 63, 0.2));
}

.light-meter-ticks {
  position: absolute;
  left: -0.5rem;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--graphite);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.hero-sub {
  font-size: 1.0625rem;
  max-width: 34rem;
  opacity: 0.9;
  margin-top: 1.25rem;
}

.hero-trust {
  position: relative;
  z-index: 3;
  padding: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--graphite);
  letter-spacing: 0.05em;
}

.hero-slogan em {
  font-style: normal;
  color: var(--amber);
}

/* Page hero (inner pages) */
.page-hero {
  padding-top: 7rem;
  padding-bottom: 3rem;
}

.page-hero h1 { max-width: 18ch; }

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Stats */
.stat-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.stat-item {
  flex: 1;
  min-width: 8rem;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--amber);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  opacity: 0.85;
}

/* Stage rail */
.stage-rail {
  position: relative;
  padding-left: 4rem;
}

.stage-rail::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber), rgba(255, 178, 63, 0.15));
}

.stage-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.stage-item::before {
  content: attr(data-stage);
  position: absolute;
  left: -4rem;
  top: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
  letter-spacing: 0.1em;
}

.stage-item:last-child { padding-bottom: 0; }

/* Cards */
.card {
  padding: 2rem;
  border: 1px solid rgba(255, 178, 63, 0.25);
  background: rgba(245, 240, 230, 0.05);
  position: relative;
}

.card-num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 500;
  opacity: 0.08;
  line-height: 1;
}

.card h3 { margin-bottom: 0.75rem; }

/* Photo frames */
.photo-frame {
  position: relative;
  overflow: hidden;
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.photo-caption {
  font-size: 0.8125rem;
  color: var(--graphite);
  margin-top: 0.75rem;
  font-family: var(--font-mono);
}

.surface-sand .photo-caption { color: var(--graphite); }

.surface-sand a:not(.btn) { color: var(--sand); }

/* FAQ accordion */
.faq-list { list-style: none; padding: 0; margin: 0; }

.faq-item {
  border-bottom: 1px solid rgba(245, 240, 230, 0.15);
}

.surface-sand .faq-item { border-bottom-color: rgba(245, 240, 230, 0.12); }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  color: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--amber);
  flex-shrink: 0;
}

.faq-item.is-open .faq-question::after { content: '−'; }

.faq-answer {
  padding-bottom: 1.25rem;
}

.faq-answer[hidden] { display: none; }

/* Forms */
.form-surface {
  background: var(--slate);
  color: var(--sand);
  padding: 2.5rem;
  border: 1px solid rgba(245, 240, 230, 0.12);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(245, 240, 230, 0.2);
  background: var(--obsidian);
  color: var(--sand);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--graphite);
}

.form-group select option {
  background: var(--obsidian);
  color: var(--sand);
}

.form-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.form-check input[type="checkbox"] {
  order: -1;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--amber);
}

.form-group.form-check label {
  display: block;
  flex: 1;
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.5;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-note {
  font-size: 0.8125rem;
  opacity: 0.75;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  padding: 3.5rem 0 2rem;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; }

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a { text-decoration: none; }

.footer-disclaimer {
  font-size: 0.8125rem;
  opacity: 0.85;
  border-top: 1px solid rgba(245, 240, 230, 0.15);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.surface-sand .footer-disclaimer { border-top-color: rgba(245, 240, 230, 0.12); }

.footer-clarifier {
  font-size: 0.8125rem;
  margin-top: 1rem;
  font-style: italic;
  opacity: 0.9;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 1.5rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.5rem;
  background: var(--charcoal);
  color: var(--sand);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(245, 240, 230, 0.1);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-inner {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-text {
  flex: 1;
  min-width: 16rem;
  font-size: 0.875rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-panel {
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 240, 230, 0.12);
}

.cookie-panel[hidden] { display: none; }

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 4rem 2rem;
}

.cta-band h2 { margin-bottom: 1rem; }

/* Legal prose */
.legal-content h2 {
  margin-top: 2.5rem;
  font-size: 1.375rem;
}

.legal-content h3 {
  margin-top: 1.75rem;
  font-size: 1.125rem;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--graphite);
  margin-bottom: 2rem;
}

/* Work project */
.project-card {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(245, 240, 230, 0.12);
}

.project-card:last-child { border-bottom: none; }

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

/* Service block */
.service-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(245, 240, 230, 0.1);
}

.service-block.grid-2 {
  gap: 2.5rem;
  align-items: center;
  border-bottom: none;
  padding: 0 0 3rem;
}

.service-block.grid-2:last-child { padding-bottom: 0; }

.service-block:last-child { border-bottom: none; }

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 5rem;
  color: var(--amber);
  opacity: 0.4;
  line-height: 1;
}

/* Reveal animations */
.js .reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .js .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-aperture { animation: none; opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-6, .footer-grid { grid-template-columns: 1fr; }
  .hero-lightbox { min-height: 82vh; }
  .hero-content { padding-left: 2rem; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    color: var(--sand);
    padding: 1rem 1.25rem;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.75rem; }
  .site-header:not(.is-scrolled) .main-nav {
    background: var(--obsidian);
    color: var(--sand);
  }
}

@media (max-width: 600px) {
  .stat-row { gap: 1.5rem; }
  .hero-eyebrow-row { font-size: 0.625rem; }
  .stage-rail { padding-left: 2.5rem; }
  .stage-item::before { left: -2.5rem; }
}
