:root {
  --bg-canvas: #e0d4be;
  --bg-surface: #f3e9d8;
  --bg-surface-hover: #faefe0;
  --text-primary: #262626;
  --text-muted: #595959;
  --accent-primary: #C2410C;
  --accent-secondary: #9a3309;
  --border-subtle: rgba(194, 65, 12, 0.3);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(38, 38, 38, 0.15);
  --glow-accent: 0 0 24px -4px rgba(194, 65, 12, 0.4);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  line-height: 1.8;
  padding: 1.5rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.site-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  min-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  overflow: hidden;
}
header {
  position: relative;
  z-index: 100;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}
.brand { font-weight: 700; font-size: 1.25rem; color: var(--text-primary); text-decoration: none; }
.brand span { color: var(--accent-primary); }
nav.desktop-nav { display: flex; gap: 1.5rem; }
nav.desktop-nav a { color: var(--text-primary); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.3s var(--ease-kinetic); }
nav.desktop-nav a:hover { color: var(--accent-primary); }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-primary); cursor: pointer; padding: 0.5rem; }
.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; background-color: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); display: none; flex-direction: column; padding: 1rem 2rem; z-index: 99; }
.mobile-menu.open { display: flex; animation: slideDown 0.4s var(--ease-kinetic); }
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.mobile-menu a { padding: 0.75rem 0; color: var(--text-primary); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--border-subtle); }
.mobile-menu a:last-child { border: none; }
main { flex: 1; }
.hero { position: relative; height: 80vh; min-height: 500px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; color: #f3e9d8; }
.hero-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(38,38,38,0.85) 0%, rgba(38,38,38,0.6) 100%); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 800px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1rem; }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.9; }
.container { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
.narrow-container { max-width: 72ch; margin: 0 auto; padding: 4rem 2rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.5rem; color: var(--accent-primary); }
h3 { font-size: 1.5rem; margin-bottom: 1rem; margin-top: 2rem; }
p { margin-bottom: 1.5rem; color: var(--text-muted); }
.lead { font-size: 1.2rem; color: var(--text-primary); font-weight: 600; }
.btn { display: inline-block; background-color: var(--accent-primary); color: var(--bg-surface); padding: 0.8rem 2rem; border-radius: 999px; text-decoration: none; font-weight: 600; transition: all 0.3s var(--ease-kinetic); border: none; cursor: pointer; font-family: inherit; font-size: 1rem; }
.btn:hover { background-color: var(--accent-secondary); transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-elevation), var(--glow-accent); }
.tag { display: inline-block; background-color: rgba(194, 65, 12, 0.1); color: var(--accent-primary); padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; margin-right: 0.5rem; margin-bottom: 0.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.card { background-color: var(--bg-surface); border-radius: 20px; padding: 2rem; transition: all 0.4s var(--ease-kinetic); position: relative; z-index: 1; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 20px; box-shadow: var(--shadow-elevation); opacity: 0; transition: opacity 0.4s var(--ease-kinetic); z-index: -1; }
.card:hover { transform: translateY(-5px); }
.card:hover::before { opacity: 1; }
.card-img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; margin-bottom: 1.5rem; }
.tabs { margin-top: 2rem; }
.tab-list { display: flex; gap: 1rem; margin-bottom: 1.5rem; overflow-x: auto; padding-bottom: 0.5rem; }
.tab-btn { background: transparent; border: 2px solid var(--border-subtle); color: var(--text-primary); padding: 0.6rem 1.5rem; border-radius: 999px; cursor: pointer; font-weight: 600; transition: all 0.3s; white-space: nowrap; }
.tab-btn.active, .tab-btn:hover { background: var(--accent-primary); border-color: var(--accent-primary); color: var(--bg-surface); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.5s var(--ease-kinetic); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.accordion { margin-top: 2rem; }
.acc-item { border-bottom: 1px solid var(--border-subtle); }
.acc-header { width: 100%; text-align: left; background: none; border: none; padding: 1.25rem 0; font-size: 1.1rem; font-weight: 700; color: var(--text-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.acc-content { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-kinetic); }
.acc-inner { padding-bottom: 1.25rem; color: var(--text-muted); }
.acc-item.active .acc-content { max-height: 500px; }
.acc-item.active .acc-header::after { content: '−'; }
.acc-header::after { content: '+'; font-size: 1.5rem; color: var(--accent-primary); }
.tool-panel { background: rgba(194, 65, 12, 0.05); border: 1px solid var(--border-subtle); border-radius: 20px; padding: 2.5rem; margin: 3rem 0; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }
.form-control { width: 100%; padding: 1rem; border-radius: 12px; border: 1px solid var(--border-subtle); background: var(--bg-surface); font-family: inherit; font-size: 1rem; color: var(--text-primary); transition: border-color 0.3s; }
.form-control:focus { outline: none; border-color: var(--accent-primary); }
textarea.form-control { resize: vertical; min-height: 120px; }
.stat-strip { display: flex; flex-wrap: wrap; gap: 2rem; background: var(--text-primary); color: var(--bg-surface); padding: 2rem 3rem; border-radius: 20px; margin: 3rem 0; }
.stat { flex: 1; min-width: 200px; }
.stat-num { font-size: 2.5rem; font-weight: 700; color: var(--accent-primary); margin-bottom: 0.5rem; }
.stat-label { font-size: 0.95rem; opacity: 0.9; }
.table-wrapper { overflow-x: auto; margin: 2rem 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; border-bottom: 1px solid var(--border-subtle); text-align: left; }
th { font-weight: 700; color: var(--accent-primary); }
footer { border-top: 1px solid var(--border-subtle); padding: 3rem 2rem 2rem; text-align: center; margin-top: auto; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-primary); }
.footer-meta { font-size: 0.85rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.footer-meta p { margin-bottom: 0.5rem; font-size: 0.85rem; }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s var(--ease-kinetic); }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) {
  body { padding: 0.5rem; }
  .site-wrapper { border-radius: 12px; }
  nav.desktop-nav { display: none; }
  .mobile-toggle { display: block; }
  .hero h1 { font-size: 2.5rem; }
  .container, .narrow-container { padding: 3rem 1.5rem; }
  .stat-strip { flex-direction: column; padding: 2rem; }
}

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