:root {
  --bg-canvas: #faf6ef;
  --bg-surface: #ffffff;
  --text-primary: #2b211a;
  --text-muted: #5a4b3f;
  --accent-primary: #c2562e;
  --accent-secondary: #6b7a3a;
  --border-color: #e5dfd5;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.reading-container {
  max-width: 72ch;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background-color: var(--bg-canvas);
  border-bottom: 2px solid var(--border-color);
  position: relative;
  z-index: 100;
  padding: 1.5rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

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

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

.mobile-nav-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--text-primary);
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
}

/* Hero Section */
.hero {
  padding: 8rem 0;
  background-color: var(--bg-canvas);
  text-align: center;
  border-bottom: 2px solid var(--border-color);
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #fff;
  padding: 1rem 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--text-primary);
  box-shadow: 4px 4px 0px var(--text-primary);
  transition: all 0.1s var(--ease-kinetic);
  cursor: pointer;
}

.btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px var(--text-primary);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

/* Sections */
.section-pad {
  padding: 6rem 0;
}

.bg-accent {
  background-color: var(--accent-secondary);
  color: #fff;
  border-top: 2px solid var(--text-primary);
  border-bottom: 2px solid var(--text-primary);
}

.bg-accent h2, .bg-accent p, .bg-accent .stat-label, .bg-accent .stat-value {
  color: #fff;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  border-bottom: 4px solid var(--accent-primary);
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.card {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  transition: transform 0.3s var(--ease-kinetic);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--text-primary);
}

.card-img-wrap {
  position: relative;
  border-bottom: 2px solid var(--border-color);
}

.card-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  bottom: -16px;
  right: 1.5rem;
  background: var(--accent-primary);
  color: #fff;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  border: 2px solid var(--text-primary);
}

.card-content {
  padding: 2.5rem 1.5rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.card-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Stat Strips */
.stat-strip {
  display: flex;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-canvas);
  margin: 1.5rem 0;
}

.stat-item {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  border-right: 1px solid var(--border-color);
}
.stat-item:last-child {
  border-right: none;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: block;
}

.stat-value {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* Tabbed Sections */
.tab-headers {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.tab-btn {
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  padding: 1rem 2rem;
  cursor: pointer;
  color: var(--text-muted);
  position: relative;
}

.tab-btn.active {
  color: var(--text-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

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

label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.85rem;
}

input, textarea, select {
  width: 100%;
  padding: 1rem;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
}

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

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Content Formatting */
.content-area h2 {
  margin: 3rem 0 1.5rem;
  text-transform: uppercase;
  font-size: 2rem;
}
.content-area p { margin-bottom: 1.5rem; }
.content-area ul { margin: 0 0 1.5rem 2rem; }
.content-area li { margin-bottom: 0.5rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
th, td {
  border: 2px solid var(--border-color);
  padding: 1rem;
  text-align: left;
}
th {
  background: var(--text-primary);
  color: #fff;
  text-transform: uppercase;
}

/* Footer */
footer {
  background: var(--bg-canvas);
  border-top: 4px solid var(--text-primary);
  padding: 6rem 0 3rem;
}

.footer-brand {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  line-height: 1;
}

.footer-disclaimer {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  padding: 2rem;
  margin-bottom: 3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-top: 2px solid var(--border-color);
  padding-top: 2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: bold;
}

.footer-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

/* Utilities & Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-kinetic);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

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