:root {
  --bg-color: #f7f5f0;
  --text-color: #111111;
  --accent-color: #d62828;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-soft: 0 4px 16px rgba(17, 17, 17, 0.05);
  --shadow-hover: 0 12px 32px rgba(17, 17, 17, 0.1);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

body, h1, h2, h3, h4, h5, h6, p {
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: normal;
  margin-top: 0;
}

/* Layout Wrappers */
.section-wrapper {
  width: 100%;
}
.bg-neutral {
  background-color: var(--bg-color);
  color: var(--text-color);
}
.bg-accent {
  background-color: var(--accent-color);
  color: var(--bg-color);
}
.bg-accent h1, .bg-accent h2, .bg-accent h3, .bg-accent p, .bg-accent label {
  color: var(--bg-color);
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.prose {
  max-width: 72ch;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Header */
.header-wrapper {
  width: 100%;
  background: var(--bg-color);
  padding: 1rem 2rem;
  box-sizing: border-box;
  position: relative;
}
.main-header {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-color);
  border-radius: 9999px;
  padding: 1rem 2.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 1.4rem;
}
.brand a {
  color: var(--text-color);
  text-decoration: none;
}
.desktop-nav {
  display: flex;
  gap: 2rem;
}
.desktop-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.desktop-nav a:hover {
  color: var(--accent-color);
}
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}
.hero-text {
  flex: 1;
}
.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.hero-images {
  flex: 1;
  position: relative;
  height: 400px;
}
.hero-images img {
  position: absolute;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  border-radius: 0;
}
.hero-img-1 { width: 220px; height: 220px; top: 0; left: 0; z-index: 1; }
.hero-img-2 { width: 180px; height: 180px; top: 120px; left: 160px; z-index: 2; }
.hero-img-3 { width: 200px; height: 200px; top: 220px; left: 40px; z-index: 3; }

/* Split Sections */
.split-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.split-left { flex-direction: row; }
.split-right { flex-direction: row-reverse; }
.split-image, .split-content { flex: 1; }
.split-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: var(--shadow-soft);
}
.split-content h2 { font-size: 2.5rem; }

/* Cards & Badges */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.card {
  background: #ffffff;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
  border-radius: 0;
  color: var(--text-color);
}
.card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-hover);
}
.card h3 { color: var(--text-color); }
.card p { color: var(--text-color); }

.badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons */
.btn {
  background: var(--accent-color);
  color: var(--bg-color);
  border-radius: 9999px;
  padding: 0.85rem 2rem;
  border: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
}
.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(214, 40, 40, 0.4);
}
.bg-accent .btn {
  background: var(--bg-color);
  color: var(--text-color);
}
.bg-accent .btn:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; }
.form-control {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 0;
  font-family: var(--font-sans);
  background: #ffffff;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  box-sizing: border-box;
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; margin: 2rem 0; background: #fff; }
.data-table th, .data-table td { border-bottom: 1px solid rgba(0,0,0,0.1); padding: 1rem; text-align: left; }
.data-table th { background: #eee; }

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

/* Footer */
.site-footer {
  background: var(--text-color);
  color: var(--bg-color);
  padding: 5rem 2rem 3rem;
  margin-top: 0;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}
.footer-col h4 {
  color: var(--bg-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}
.footer-col a {
  color: var(--bg-color);
  text-decoration: none;
  opacity: 0.7;
  display: block;
  margin-bottom: 0.75rem;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 1; color: var(--accent-color); }
.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
    position: absolute;
    top: 5rem;
    left: 2rem;
    right: 2rem;
    background: var(--bg-color);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-hover);
    border-radius: 1rem;
    z-index: 100;
  }
  .desktop-nav.active { display: flex; }
  .mobile-menu-btn { display: block; }
  
  .hero { flex-direction: column; text-align: center; gap: 2rem; margin: 2rem auto; }
  .hero-images { width: 100%; height: 300px; display: flex; justify-content: center; align-items: center; }
  .hero-images img { position: relative; top: 0 !important; left: 0 !important; margin: -20px; width: 140px; height: 140px; }
  
  .split-left, .split-right { flex-direction: column; padding: 3rem 1rem; gap: 2rem; }
  .split-content h2 { font-size: 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}}
