/* hvl-base.css — Heatvelo base tokens, resets, typography */

/* ===== TOKENS ===== */
:root {
  --bg-dark:       #0F1A1C;
  --bg-dark-alt:   #162226;
  --bg-light:      #F4F6F4;
  --bg-white:      #FFFFFF;
  --bg-cream:      #EEF1EC;

  --accent-amber:       #E8820C;
  --accent-amber-hover: #C96D08;
  --steel-slate:   #1D3A42;
  --steel-teal:    #2C5F6A;
  --muted-green:   #3D7A5E;

  /* On dark */
  --text-h-dark:   #F0EDE5;
  --text-b-dark:   #A8B8BC;
  --text-m-dark:   #6E8A90;
  --link-dark:     #E8820C;
  --border-dark:   #253A3F;

  /* On light / white / cream */
  --text-h-light:  #142124;
  --text-b-light:  #3D5A61;
  --text-m-light:  #456F76;
  --link-light:    #A05508;
  --border-light:  #D6DCDB;

  --section-py: clamp(4rem, 8vw, 7rem);
  --container:  1200px;
  --gutter:     clamp(1.5rem, 4vw, 3rem);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-b-light);
  background: var(--bg-white);
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Epilogue', system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hvl-hero-hl {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
}
.hvl-section-hl {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
}
.hvl-sub-hl {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
}
.hvl-body-lg { font-size: 1.125rem; }
.hvl-caption { font-size: 0.875rem; }
.hvl-mono {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.9375rem;
}

/* ===== CONTAINER ===== */
.hvl-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== SECTION BG CONTEXTS ===== */
.hvl-section--dark {
  background: var(--bg-dark);
}
.hvl-section--dark-alt {
  background: var(--bg-dark-alt);
}
.hvl-section--light {
  background: var(--bg-light);
}
.hvl-section--white {
  background: var(--bg-white);
}
.hvl-section--cream {
  background: var(--bg-cream);
}

/* ===== SECTION PADDING ===== */
.hvl-section {
  padding: var(--section-py) 0;
}
.hvl-section--py-sm {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

/* ===== BADGE ===== */
.hvl-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  background: var(--steel-teal);
  color: var(--text-h-dark);
}
.hvl-badge--amber {
  background: rgba(232, 130, 12, 0.15);
  color: var(--accent-amber);
}
.hvl-badge--light {
  background: var(--bg-cream);
  color: var(--text-b-light);
}

/* ===== BUTTONS ===== */
.hvl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  cursor: pointer;
  white-space: nowrap;
}
.hvl-btn:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 2px;
}

/* primary-amber */
.hvl-btn--primary {
  background: var(--accent-amber);
  color: #0F1A1C;
  border: 2px solid var(--accent-amber);
}
.hvl-btn--primary:hover {
  background: var(--accent-amber-hover);
  border-color: var(--accent-amber-hover);
  transform: translateY(-1px);
}

/* outline-on-dark */
.hvl-btn--outline-dark {
  background: transparent;
  color: var(--text-h-dark);
  border: 2px solid var(--border-dark);
}
.hvl-btn--outline-dark:hover {
  border-color: var(--text-h-dark);
  background: rgba(255,255,255,0.05);
}

/* outline-on-light */
.hvl-btn--outline-light {
  background: transparent;
  color: var(--text-h-light);
  border: 2px solid var(--border-light);
}
.hvl-btn--outline-light:hover {
  border-color: var(--steel-slate);
  background: rgba(29, 58, 66, 0.06);
}

/* ghost-on-dark */
.hvl-btn--ghost-dark {
  background: transparent;
  color: var(--text-h-dark);
  border: 2px solid transparent;
}
.hvl-btn--ghost-dark:hover {
  color: var(--accent-amber);
}

/* text-link */
.hvl-btn--text {
  background: transparent;
  color: var(--link-light);
  border: 2px solid transparent;
  padding: 0.75rem 0;
}
.hvl-btn--text:hover { color: var(--accent-amber-hover); text-decoration: underline; }

.hvl-btn--text-dark {
  background: transparent;
  color: var(--link-dark);
  border: 2px solid transparent;
  padding: 0.75rem 0;
}
.hvl-btn--text-dark:hover { color: var(--accent-amber-hover); }

/* ===== FORMS ===== */
.hvl-field { display: flex; flex-direction: column; gap: 0.4rem; }
.hvl-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-b-light);
}
.hvl-input,
.hvl-select,
.hvl-textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-h-light);
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.875rem;
  width: 100%;
  transition: border-color 0.15s;
}
.hvl-input:focus,
.hvl-select:focus,
.hvl-textarea:focus {
  outline: none;
  border-color: var(--accent-amber);
}
.hvl-textarea { min-height: 130px; resize: vertical; }

/* ===== DIVIDER ===== */
.hvl-divider {
  border: none;
  border-top: 1px solid var(--border-dark);
  margin: 0;
}
.hvl-divider--light {
  border-top-color: var(--border-light);
}

/* ===== FADE-IN ===== */
.hvl-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.hvl-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== UTILITIES ===== */
.hvl-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;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-dark-alt);
  border-top: 1px solid var(--border-dark);
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  flex-wrap: wrap;
}
.cookie-banner__text {
  font-size: 0.875rem;
  color: var(--text-b-dark);
  flex: 1;
}
.cookie-banner__text a {
  color: var(--link-dark);
  text-decoration: underline;
}
.cookie-banner__actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-banner__btn {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
}
.cookie-banner__btn--primary {
  background: var(--accent-amber);
  color: #0F1A1C;
}
.cookie-banner__btn--primary:hover { background: var(--accent-amber-hover); }

/* ===== LEGAL ===== */
.legal-article {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--section-py) var(--gutter);
  color: var(--text-b-light);
}
.legal-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-light); }
.legal-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-h-light);
  margin-bottom: 0.5rem;
}
.legal-meta { font-size: 0.875rem; color: var(--text-m-light); }
.legal-article section { margin-bottom: 2rem; }
.legal-article h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-h-light);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}
.legal-article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-h-light);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}
.legal-article p { margin-bottom: 0.85rem; line-height: 1.75; }
.legal-article ul { padding-left: 1.5rem; list-style: disc; margin-bottom: 1rem; }
.legal-article ul li { margin-bottom: 0.4rem; }
.legal-article address { margin-top: 0.5rem; line-height: 2; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.legal-table th, .legal-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-light);
}
.legal-table th { background: var(--bg-light); font-weight: 600; color: var(--text-h-light); }
.legal-article a { color: var(--link-light); text-decoration: underline; }
