/* --- CUSTOM THEMATIC PROPERTIES --- */
:root {
  --thermal-bg: #FAF9F5;
  --thermal-surface: #FFFFFF;
  --thermal-border: #EFE9DE;
  --hearth-amber: #D35400; /* Deep Terracotta / Cozy Flame Orange */
  --hearth-gold: #F39C12; /* Radiant Amber Star Match */
  --thermal-ink: #2C3E50; /* Frost-shieling heavy slate */
  --thermal-ink-muted: #64748B;
  --thermal-gradient: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Mulish', sans-serif;
  --radius-soft: 16px;
  --shadow-raised: 0 10px 30px -10px rgba(211, 84, 0, 0.15);
}

/* --- BASE STYLES --- */
* {
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  text-transform: uppercase;
}

/* Page decoration - subtle pattern backdrop */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#D35400 0.5px, transparent 0.5px), radial-gradient(#D35400 0.5px, #FAF9F5 0.5px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.02;
  z-index: 0;
  pointer-events: none;
}

/* --- SCROLL PROGRESS BAR (CSS only) --- */
.thermal-scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--hearth-amber);
  width: 0%;
  z-index: 100;
  animation: thermal-scroll-anim linear;
  animation-timeline: scroll();
}

@keyframes thermal-scroll-anim {
  to { width: 100%; }
}

/* --- SCROLL VIEWPORT ANIMATIONS (CSS only) --- */
@keyframes thermal-fade-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shiver-prevention-path, 
.thermal-density-zone, 
.shield-barrier-zone, 
.vocal-comfort-logs, 
.warm-intellect-hub, 
.safety-protocol-hub {
  view-timeline-name: --thermal-section-view;
  view-timeline-axis: block;
  animation-timeline: --thermal-section-view;
  animation-name: thermal-fade-up;
  animation-range: entry 10% cover 40%;
  animation-fill-mode: both;
}

/* --- COMPONENT STYLES --- */

/* Header Mobile Menu Trigger */
#menu-toggle:checked ~ .thermal-menu-list {
  display: flex !important;
}

@media (max-width: 767px) {
  .thermal-menu-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--thermal-surface);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 2px solid var(--thermal-border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  }
}

/* Timeline specific line tweak */
.cozy-step-spine::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, var(--hearth-amber), var(--thermal-border));
}

/* Decorative Quotes */
.frost-shield-quote::before {
  content: '“';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 8rem;
  font-family: var(--font-display);
  color: var(--hearth-amber);
  opacity: 0.12;
  line-height: 1;
}

/* Hover effects */
.hearth-action-trigger {
  transition: transform 0.2s ease, filter 0.2s ease;
}
.hearth-action-trigger:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.cozy-inquiry-cell {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.cozy-inquiry-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(211, 84, 0, 0.2);
}

/* WCAG AAA/AA Contrast tweaks */
.mild-insulation-prose {
  line-height: 1.7;
}

input:focus, textarea:focus {
  border-color: var(--hearth-amber) !important;
  box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.1);
}