/* --- CSS VARIABLES DESIGNED SPECIFICALLY FOR THE THERMAL PREVENTIVE SITE (No generic terms used) --- */
:root {
  --thermal-core-bg: #FCFBF4;          /* Soft creamy vintage vintage background */
  --thermal-frost-dark: #1E293B;       /* Dark slate ink color for clear readability */
  --thermal-warm-glow: #D97706;        /* Warm amber reflecting protective heat/energy */
  --thermal-deep-amber: #B45309;       /* Darker amber for contrast and elegant borders */
  --thermal-soft-ice: #F0F9FF;         /* Accent soft blue background to represent external cool elements safely */
  --thermal-border-ink: #78350F;       /* Deep warm brown vintage ink for retro styling frame */
  --thermal-accent-crimson: #991B1B;   /* Highlight badge color */
  
  /* Fonts specified by user config variables */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', Helvetica, Arial, sans-serif;
}

/* --- GENERAL RESET & BASE STYLING --- */
body.thermal-vintage-body {
  background-color: var(--thermal-core-bg);
  color: var(--thermal-frost-dark);
  font-family: var(--font-body);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Scroll-driven progress bar */
.thermal-scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background: var(--thermal-warm-glow);
  width: 100%;
  transform-origin: 0 50%;
  animation: thermal-scroll-grow auto linear;
  animation-timeline: scroll();
  z-index: 9999;
}
@keyframes thermal-scroll-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Specific view transition reveal animation */
@keyframes thermal-fade-reveal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.thermal-stage-division {
  padding-top: 10dvh;
  padding-bottom: 10dvh;
  animation: thermal-fade-reveal auto linear;
  animation-timeline: view();
  animation-range: entry 5% cover 30%;
}

/* Aligner layout simulating container */
.thermal-canvas-aligner {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- HEADLINES & TEXT TYPES --- */
.thermal-serif-headline {
  font-family: var(--font-display);
}
.thermal-body-prose {
  font-family: var(--font-body);
  line-height: 1.75;
}

/* Vintage blockquote with quotation mark signs */
.thermal-vintage-blockquote {
  border-left: 4px solid var(--thermal-deep-amber);
  background: rgba(217, 119, 6, 0.06);
}
.thermal-quote-mark {
  color: var(--thermal-deep-amber);
  opacity: 0.25;
  font-family: var(--font-display);
}

/* --- NAVIGATION HEADER (Variant 1 style, CSS absolute/responsive responsive logic) --- */
.thermal-topmost-deck {
  background-color: var(--thermal-frost-dark);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 80;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid var(--thermal-border-ink);
}
.thermal-anchor-link {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}
.thermal-anchor-link:hover {
  color: var(--thermal-warm-glow);
}

/* CSS Only Hamburger Logic */
.thermal-hamburg-button {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}
.thermal-bar-line {
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile responsive navigation behavior */
@media (max-width: 1023px) {
  .thermal-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--thermal-frost-dark);
    padding: 2rem 1.5rem;
    border-bottom: 3px solid var(--thermal-border-ink);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  }
  .thermal-nav-trigger:checked ~ .thermal-nav-menu {
    display: block;
  }
}

/* --- HERO SCREEN ELEMENTS & FILTERS --- */
.thermal-vintage-filter {
  filter: sepia(25%) brightness(0.88);
}
.thermal-stamp-seal-canvas {
  animation: thermal-seal-rotate 25s linear infinite;
}
@keyframes thermal-seal-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.thermal-vintage-seal {
  background: transparent;
}

/* --- BUTTONS & PILLS (Preset J double borders design) --- */
.thermal-action-primary-pill {
  border-radius: 9999px;
  background-color: var(--thermal-warm-glow);
  color: var(--thermal-core-bg);
  border: 4px double var(--thermal-border-ink);
  transition: all 0.3s ease;
  text-align: center;
}
.thermal-action-primary-pill:hover {
  background-color: var(--thermal-deep-amber);
  transform: translateY(-2px);
}
.thermal-action-vintage-capsule {
  border: 4px double var(--thermal-border-ink);
  border-radius: 9999px;
  background: transparent;
  color: var(--thermal-border-ink);
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
}
.thermal-action-vintage-capsule:hover {
  background: var(--thermal-border-ink);
  color: var(--thermal-core-bg);
}
header .thermal-action-vintage-capsule {
  border-color: #ffffff;
  color: #ffffff;
}
header .thermal-action-vintage-capsule:hover {
  background: #ffffff;
  color: var(--thermal-frost-dark);
}

/* --- FEATURES STICKERS AND BADGES (Preset J concentric design) --- */
.thermal-safeguard-sticker {
  border: 2px solid var(--thermal-border-ink);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 4px 4px 0px rgba(120, 53, 15, 0.15);
  position: relative;
  transition: transform 0.3s ease;
}
.thermal-safeguard-sticker:hover {
  transform: translateY(-5px);
}
.thermal-badge-stamp {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px double var(--thermal-border-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--thermal-border-ink);
  background-color: var(--thermal-core-bg);
}
.thermal-sticker-title {
  border-bottom: 2px dotted var(--thermal-border-ink);
  width: 100%;
}

/* --- CONTENT FRAMES AND GRAPHICS --- */
.thermal-vintage-framed-image {
  border: 3px solid var(--thermal-border-ink);
  border-radius: 12px;
}
.thermal-image-frame-container::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background-color: var(--thermal-deep-amber);
  z-index: -1;
  transition: transform 0.3s ease;
}
.thermal-image-frame-container:hover::before {
  transform: translate(4px, 4px);
}
.thermal-custom-bullet {
  color: var(--thermal-accent-crimson);
}

/* --- INTERSTITIAL BANNER & CARDS --- */
.thermal-double-border-card {
  border: 6px double var(--thermal-core-bg);
  border-radius: 16px;
}

/* --- DISPATCH TESTIMONIAL LETTERS (Preset J style recommendation letters) --- */
.thermal-dispatch-letter {
  background: rgba(255, 252, 235, 0.95);
  border: 2px solid var(--thermal-border-ink);
  border-radius: 8px;
  position: relative;
  box-shadow: 6px 6px 0px rgba(120, 53, 15, 0.1);
}
.thermal-dispatch-letter::before {
  content: '';
  position: absolute;
  top: 5px; left: 5px; right: 5px; bottom: 5px;
  border: 1px dashed var(--thermal-border-ink);
  border-radius: 6px;
  pointer-events: none;
}

/* --- VINTAGE FORMS --- */
.thermal-vintage-form-card {
  background: rgba(255, 252, 235, 0.85);
  border: 3px double var(--thermal-border-ink);
  border-radius: 14px;
}
.thermal-vintage-input {
  border-bottom: 2px dashed var(--thermal-border-ink);
  border-top: none;
  border-left: none;
  border-right: none;
  background: transparent;
  color: var(--thermal-frost-dark);
  font-family: var(--font-body);
}
.thermal-vintage-input:focus {
  outline: none;
  border-bottom-style: solid;
  border-bottom-color: var(--thermal-warm-glow);
}
.thermal-vintage-address {
  background-color: var(--thermal-soft-ice);
  border-left: 4px solid var(--thermal-border-ink);
  border-radius: 0 8px 8px 0;
}

/* --- FAQ VINTAGE COMPONENT --- */
.thermal-vintage-faq-item {
  border: 2px solid var(--thermal-border-ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--thermal-border-ink);
}
.thermal-faq-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--thermal-border-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: bold;
  color: var(--thermal-border-ink);
  background-color: var(--thermal-soft-ice);
}

/* --- BASEMENT FOOTER --- */
.thermal-basement-deck {
  background-color: var(--thermal-frost-dark);
  color: #ffffff;
  border-top: 4px double var(--thermal-border-ink);
}