/* ===== CLAYWELL DIGITAL LTD — Cinematic Editorial Design System ===== */

:root {
  --bg: #0C0F14;
  --bg-elevated: #141820;
  --bg-card: #1A1D24;
  --crimson: #DC2626;
  --crimson-dark: #991B1B;
  --gold: #C9A227;
  --gold-light: #E8C547;
  --cream: #F0EDE8;
  --cream-muted: rgba(240, 237, 232, 0.65);
  --cream-dim: rgba(240, 237, 232, 0.4);
  --border: rgba(240, 237, 232, 0.08);
  --border-hover: rgba(220, 38, 38, 0.4);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--cream);
}

/* Typography */
h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.font-body {
  font-family: var(--font-body);
}

.font-mono, [class*="mono"] {
  font-family: var(--font-mono);
  font-weight: 400;
}

/* Grain overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* Ambient glow */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow::before {
  content: '';
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  top: -15%;
  right: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.12) 0%, transparent 70%);
}

.ambient-glow::after {
  content: '';
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  bottom: 10%;
  left: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
}

/* Film strip divider */
.film-strip {
  display: flex;
  align-items: center;
  gap: 0;
  height: 28px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.film-strip-hole {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
  margin: 0 6px;
}

.film-strip-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(220, 38, 38, 0.1);
}

.card-accent {
  border-left: 3px solid var(--crimson);
}

/* Navigation */
.site-nav {
  background: rgba(12, 15, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-link {
  position: relative;
  color: var(--cream-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--crimson);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--cream);
}

.nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--crimson);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  background: var(--crimson-dark);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--cream-muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Section labels */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Hero */
.hero-title {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1.05;
}

.hero-title em {
  font-style: italic;
  color: var(--crimson);
}

.hero-stat {
  border-left: 2px solid var(--crimson);
  padding-left: 1.25rem;
}

/* Bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.bento-item {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .bento-item-md-4 { grid-column: span 4; }
  .bento-item-md-6 { grid-column: span 6; }
  .bento-item-md-8 { grid-column: span 8; }
  .bento-item-md-12 { grid-column: span 12; }
}

.bento-featured {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(220, 38, 38, 0.08) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.bento-featured::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Process steps — horizontal */
.process-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .process-track {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}

.process-step-card {
  position: relative;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s ease, background 0.3s ease;
}

@media (min-width: 768px) {
  .process-step-card:not(:last-child) {
    border-right: none;
  }
  .process-step-card:first-child {
    border-radius: 4px 0 0 4px;
  }
  .process-step-card:last-child {
    border-radius: 0 4px 4px 0;
  }
}

.process-step-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
}

.process-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(220, 38, 38, 0.25);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.process-step-card:hover .process-number {
  color: var(--crimson);
}

/* Icon box */
.icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 4px;
  color: var(--crimson);
}

/* Credentials bar */
.credentials-bar {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cream-muted);
}

.credential-item strong {
  color: var(--gold);
  font-weight: 400;
}

/* Contact block */
.contact-block {
  background: linear-gradient(160deg, var(--bg-card) 0%, rgba(153, 27, 27, 0.15) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Footer */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
}

.footer-link {
  color: var(--cream-dim);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--crimson);
}

/* Secondary pages */
.page-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.page-content {
  max-width: 42rem;
}

.prose p {
  color: var(--cream-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.prose a {
  color: var(--crimson);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* Privacy Policy page */
.privacy-page {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.privacy-page > h1 {
  margin-bottom: 2.5rem;
}

.privacy-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.privacy-card {
  text-align: justify;
}

.privacy-card h2 {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1rem;
}

.privacy-card p {
  color: var(--cream-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.privacy-card p:last-child,
.privacy-card ul:last-child {
  margin-bottom: 0;
}

.privacy-card ul {
  color: var(--cream-muted);
  line-height: 1.75;
  margin: 0 0 1rem 1.25rem;
  list-style-type: disc;
}

.privacy-card li {
  margin-bottom: 0.35rem;
}

.privacy-card li:last-child {
  margin-bottom: 0;
}

.privacy-card a {
  color: var(--cream-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-card a:hover {
  color: var(--crimson);
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(12, 15, 20, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }

  .nav-menu.open {
    display: flex;
  }
}

/* AOS */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(20px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card:hover,
  .btn-primary:hover {
    transform: none;
  }
}
