/* ============================================
   Locks & Clocks - Dark Escape Room Theme
   Inspired by WordPress Avada/Fusion aesthetic
   Fonts: Barlow Semi Condensed + Roboto
   ============================================ */

:root {
  /* Dark escape room palette */
  --dark-base: #0d0d1a;
  --dark-mid: #1a1a2e;
  --dark-surface: #16213e;
  --dark-elevated: #1e2a4a;
  --dark-border: #2a3458;

  /* Accent colors */
  --accent-red: #e94560;
  --accent-red-glow: rgba(233, 69, 96, 0.35);
  --accent-gold: #f5a623;
  --accent-gold-glow: rgba(245, 166, 35, 0.3);

  /* Text */
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0c0;
  --text-muted: #8a8a9a;
  --text-white: #ffffff;

  /* Fonts */
  --font-heading: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --max-width: 1200px;
  --content-width: 780px;
  --radius: 6px;
  --radius-lg: 10px;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--dark-base);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-gold); transition: color 0.2s; }
a:hover { color: #ffc355; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   HEADER - Dark sticky, Avada-inspired
   ============================================ */
.site-header {
  background: rgba(13, 13, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(233, 69, 96, 0.15);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(13, 13, 26, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  text-decoration: none;
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-main {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-main .logo-amp {
  color: var(--accent-red);
  font-weight: 300;
}

.logo-tagline {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-gold);
  margin-top: 1px;
}

/* Navigation */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.15rem;
  align-items: center;
}

.site-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent-red);
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  margin: 6px 0;
  transition: transform 0.25s, opacity 0.2s;
  border-radius: 1px;
}

/* ============================================
   HERO - Dramatic dark gradient, Avada-style
   ============================================ */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(233, 69, 96, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(245, 166, 35, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--dark-mid) 0%, var(--dark-base) 100%);
  padding: 6rem 0 5.5rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.01) 2px,
      rgba(255, 255, 255, 0.01) 4px
    );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--dark-base));
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
  filter: drop-shadow(0 0 20px rgba(233, 69, 96, 0.4));
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 3.2rem;
  letter-spacing: 0.02em;
  color: var(--text-white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.hero h1 .hero-highlight {
  color: var(--accent-red);
}

.hero-lead {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  transition: all 0.25s;
  display: inline-block;
}

.btn-primary {
  background: var(--accent-red);
  color: var(--text-white);
  box-shadow: 0 4px 20px var(--accent-red-glow);
}

.btn-primary:hover {
  background: #d63050;
  color: var(--text-white);
  box-shadow: 0 6px 30px rgba(233, 69, 96, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--dark-base);
  transform: translateY(-2px);
}

/* ============================================
   HOME SECTIONS
   ============================================ */
.home-sections {
  padding: 4rem 0 5rem;
  position: relative;
}

.home-sections .section-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 0.5rem;
}

.home-sections .section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ============================================
   CARDS - Dark with glow effects
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px var(--accent-red-glow);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.card h2, .card h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.card .card-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-gold);
  transition: color 0.2s, transform 0.2s;
}

.card:hover .card-arrow {
  color: #ffc355;
  transform: translateX(4px);
}

/* ============================================
   PAGE BANNER - Dark atmospheric header
   ============================================ */
.page-banner {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(233, 69, 96, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--dark-mid) 0%, var(--dark-base) 100%);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--dark-border);
}

.page-banner h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
  color: var(--text-white);
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.page-banner .page-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  max-width: 640px;
  line-height: 1.65;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.breadcrumb .sep {
  margin: 0 0.4rem;
  opacity: 0.35;
  color: var(--text-muted);
}

/* ============================================
   PAGE CONTENT AREA
   ============================================ */
.page-single, .page-list {
  padding: 3rem 0 5rem;
}

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--dark-border);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.4rem;
  color: var(--text-white);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.page-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  max-width: var(--content-width);
  line-height: 1.65;
}

.page-content {
  max-width: var(--content-width);
}

/* Typography */
.page-content h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.65rem;
  letter-spacing: 0.01em;
  color: var(--text-white);
  margin: 3rem 0 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-border);
}

.page-content h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--accent-gold);
  margin: 2.25rem 0 0.6rem;
}

.page-content h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 1.75rem 0 0.5rem;
}

.page-content p {
  margin-bottom: 1.15rem;
  color: var(--text-primary);
}

.page-content ul, .page-content ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: var(--text-primary);
}

.page-content li {
  margin-bottom: 0.35rem;
  line-height: 1.7;
}

.page-content a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-decoration-color: rgba(245, 166, 35, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s, color 0.2s;
}

.page-content a:hover {
  color: #ffc355;
  text-decoration-color: var(--accent-gold);
}

.page-content strong {
  color: var(--text-white);
  font-weight: 700;
}

/* Blockquote */
.page-content blockquote {
  border-left: 3px solid var(--accent-red);
  margin: 1.75rem 0;
  padding: 1rem 1.5rem;
  background: rgba(233, 69, 96, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.page-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Tables */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.92rem;
  background: var(--dark-surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-content th, .page-content td {
  padding: 0.7rem 1rem;
  border: 1px solid var(--dark-border);
  text-align: left;
}

.page-content th {
  background: var(--dark-elevated);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.page-content tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.page-content tr:hover {
  background: rgba(233, 69, 96, 0.04);
}

/* Images */
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
  border: 1px solid var(--dark-border);
}

/* Code */
.page-content code {
  background: var(--dark-surface);
  color: var(--accent-gold);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.88em;
}

.page-content pre {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.page-content pre code {
  background: none;
  padding: 0;
  font-size: 0.88rem;
  color: var(--text-primary);
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */
.toc {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-left: 3px solid var(--accent-red);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
  max-width: var(--content-width);
}

.toc h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.toc nav ul { list-style: none; margin: 0; padding: 0; }
.toc nav li { margin: 0.3rem 0; }

.toc nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.toc nav a:hover { color: var(--accent-gold); }
.toc nav ul ul { padding-left: 1.25rem; }

/* ============================================
   RELATED PAGES
   ============================================ */
.related-pages {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-border);
}

.related-pages h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.related-pages ul { list-style: none; }
.related-pages li { margin: 0.4rem 0; }

.related-pages a {
  color: var(--accent-gold);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.related-pages a:hover { color: #ffc355; }

/* ============================================
   FOOTER - Dark atmospheric
   ============================================ */
.site-footer {
  background: linear-gradient(180deg, var(--dark-base) 0%, #08081a 100%);
  color: var(--text-secondary);
  padding: 4rem 0 2rem;
  margin-top: 0;
  font-size: 0.9rem;
  border-top: 1px solid var(--dark-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.footer-logo .footer-amp {
  color: var(--accent-red);
  font-weight: 300;
}

.footer-about p {
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 340px;
}

.site-footer h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; }
.site-footer li { margin: 0.35rem 0; }

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover { color: var(--text-white); }

.footer-bottom {
  padding-top: 1.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html { font-size: 16px; }

  .site-header .container { height: 64px; }

  .logo-main { font-size: 1.35rem; }

  .hero { padding: 4rem 0 3.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero-lead { font-size: 1.05rem; }
  .hero-cta { flex-direction: column; align-items: center; }

  .page-banner { padding: 2.5rem 0 2rem; }
  .page-banner h1 { font-size: 1.8rem; }
  .page-header h1 { font-size: 1.7rem; }

  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Mobile nav */
  .site-nav {
    position: relative;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  }

  .site-nav.open ul { display: flex; }

  .site-nav a {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--radius);
  }

  .site-nav a::after { display: none; }

  .site-nav a:hover,
  .site-nav a.active {
    background: rgba(233, 69, 96, 0.1);
  }

  .nav-toggle { display: block; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .page-banner h1 { font-size: 1.5rem; }
  .card { padding: 1.5rem 1.25rem; }
  .btn { padding: 0.7rem 1.5rem; font-size: 0.88rem; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* Subtle ambient animation for hero */
@keyframes ambientPulse {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.2; }
}

.hero-ambient {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-red) 0%, transparent 70%);
  opacity: 0.12;
  animation: ambientPulse 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-ambient--left {
  top: -200px;
  left: -150px;
}

.hero-ambient--right {
  bottom: -200px;
  right: -150px;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
  animation-delay: 4s;
}
