:root {
  /* Strict Palette: No Blue allowed */
  --burgundy: #3b0d1a;
  --burgundy-dark: #1a050b;
  --champagne: #e8d5a8;
  --champagne-dark: #cba86a;
  --cream: #fdfbf7;
  --cream-dim: #e4e2dd;
  
  --bg-primary: var(--burgundy-dark);
  --bg-secondary: var(--burgundy);
  --text-main: var(--cream);
  --text-muted: var(--cream-dim);
  --accent: var(--champagne);
  --accent-hover: var(--champagne-dark);
  
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.8;
  /* System rule: never overflow hidden on html or body */
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Corners 0px radius */
  border-radius: 0 !important;
  object-fit: cover;
}

/* Header & Nav */
.header-wrapper {
  position: absolute;
  top: 1rem;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 1rem;
}

.site-header {
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
  /* Floating box with rounded ends */
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-logo {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.desktop-nav a {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav-overlay {
  display: none;
  position: absolute;
  top: 5rem;
  left: 1rem;
  right: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
  border-radius: 0; 
  padding: 1rem;
  z-index: 99;
}

.mobile-nav-overlay.active {
  display: block;
}

.mobile-nav-overlay ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-overlay a {
  display: block;
  padding: 0.5rem 0;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(232, 213, 168, 0.2);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 2rem;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  border-radius: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(26, 5, 11, 0.6), rgba(59, 13, 26, 0.9));
  z-index: -1;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Typography Lead Block */
.lead-block {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 2rem;
  font-size: 1.5rem;
  text-align: center;
  line-height: 1.6;
}

/* Two-column grid of smaller blocks */
.two-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.block-text h2, .block-text h3 {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* List Rows - No Cards Allowed */
.list-container {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.list-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--accent);
}

.list-icon {
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.25rem;
}

.list-content h3 {
  margin-bottom: 0.5rem;
  border-bottom: none;
  padding-bottom: 0;
}

/* Diagonal Background Separations */
.diagonal-section {
  position: relative;
  background: var(--bg-secondary);
  padding: 6rem 2rem;
  margin-top: 4rem;
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
}

.diagonal-reverse {
  background: var(--bg-primary);
  clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 100%);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid var(--accent);
  border-radius: 0; /* Square ends */
  background: transparent;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-align: center;
}

.btn:hover {
  background: var(--accent);
  color: var(--burgundy-dark);
}

/* Form Styles */
form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--cream);
  border-radius: 0; /* Corners 0px */
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--cream);
}

/* Tool specific checkboxes */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--accent);
  border-radius: 0;
}

.checkbox-group label {
  margin: 0;
  color: var(--cream);
  cursor: pointer;
}

/* Scroll Reveals */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease);
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  padding: 6rem 2rem 2rem;
  margin-top: 4rem;
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
}

.footer-brand h2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--cream);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232, 213, 168, 0.2);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Page specific content wrapper */
.page-wrapper {
  padding-top: 8rem;
  min-height: 70vh;
}

.content-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--accent);
}
th {
  color: var(--accent);
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .two-col-grid {
    grid-template-columns: 1fr;
  }
  .site-header {
    padding: 0.75rem 1rem;
  }
  .lead-block {
    font-size: 1.2rem;
    padding: 0 1rem;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
