/* BASE & RESET */
:root {
  /* Dynamic Palette (Strictly No Blue) */
  --bg-canvas: #f7f5f0;
  --bg-alt: #ffffff;
  --text-primary: #111111;
  --text-muted: #444444;
  --accent-primary: #d62828;
  --accent-secondary: rgba(214, 40, 40, 0.1);
  --dark-band: #111111;
  
  /* Typography */
  --font-heading: Georgia, serif;
  --font-body: system-ui, -apple-system, sans-serif;
  
  /* Advanced UI & Depth */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(17, 17, 17, 0.15);
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--text-primary);
  text-decoration: none;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

/* LAYOUT & CONTAINERS */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-container {
  max-width: 72ch;
  margin: 0 auto;
}

.band-light {
  background-color: var(--bg-canvas);
  padding: 6rem 0;
}

.band-alt {
  background-color: var(--bg-alt);
  padding: 6rem 0;
}

.band-dark {
  background-color: var(--dark-band);
  color: var(--bg-canvas);
  padding: 4rem 0;
}

.band-dark h1, .band-dark h2, .band-dark h3, .band-dark a {
  color: var(--bg-canvas);
}

.bg-radial {
  background: radial-gradient(circle at 50% 50%, var(--accent-secondary) 0%, transparent 70%), var(--bg-canvas);
}

/* HEADER & NAV */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background-color 0.3s var(--ease-kinetic);
}

.site-header.solid-fill {
  background-color: var(--bg-canvas);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin-right: auto;
}

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

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

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

.mobile-overlay {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: var(--bg-canvas);
  padding: 2rem;
  box-shadow: var(--shadow-elevation);
  z-index: 99;
}

.mobile-overlay.active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

/* HERO SECTION */
.hero {
  padding: 12rem 0 6rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.hero-cluster {
  position: relative;
  height: 500px;
  width: 100%;
}

.hero-img {
  position: absolute;
  box-shadow: var(--shadow-elevation);
  border-radius: 0; /* Sharp corners */
}

.hero-img-1 {
  width: 60%;
  height: auto;
  top: 0;
  right: 0;
  z-index: 3;
}

.hero-img-2 {
  width: 55%;
  height: auto;
  bottom: 10%;
  left: 0;
  z-index: 2;
}

.hero-img-3 {
  width: 45%;
  height: auto;
  top: 20%;
  left: 10%;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cluster { height: 350px; margin-top: 3rem; }
  .hero-content h1 { font-size: 2.5rem; }
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #ffffff;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 0;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-elevation), 0 0 15px var(--accent-secondary);
  color: #ffffff;
}

.btn-text {
  display: inline-block;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  margin-left: 1.5rem;
  text-decoration: none;
}

.btn-text::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}

.btn-text:hover::after {
  width: 100%;
}

/* LIST ROWS & DIVIDERS */
.list-wrapper {
  margin: 3rem 0;
}

.list-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 2px solid var(--text-primary);
}

.list-row:last-child {
  border-bottom: none;
}

.list-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  font-family: var(--font-heading);
}

.list-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.list-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* CONTENT SECTIONS */
.article-header {
  text-align: center;
  margin-bottom: 4rem;
}

.article-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.prose h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 2rem;
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 0.5rem;
}

.prose ul, .prose ol {
  margin: 1.5rem 0 1.5rem 2rem;
  font-size: 1.1rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin: 3rem 0;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--text-muted);
  background: var(--bg-canvas);
  font-family: var(--font-body);
  border-radius: 0;
  font-size: 1rem;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: 2px solid var(--accent-primary);
  border-color: transparent;
}

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

/* FOOTER */
.site-footer {
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--bg-canvas);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: #aaaaaa;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: #888;
}

.footer-bottom a {
  color: #ffffff;
  font-weight: 600;
  margin-left: 1rem;
}

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

.reveal.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}}
