:root {
  --bg-canvas: #ffffff;
  --bg-surface: #f1f5f9;
  --text-primary: #1e293b;
  --accent-primary: #047857;
  --border-subtle: #cbd5e1;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  lang: en;
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

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

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  position: static;
  padding: 1rem 0;
}

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

.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  margin-right: auto;
  color: var(--text-primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background-color: var(--border-subtle);
}

.nav-link {
  font-size: 0.95rem;
  position: relative;
}

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

.nav-link:hover::after {
  width: 100%;
}

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

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
}
.mobile-nav.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  text-align: center;
  background: radial-gradient(circle at top left, rgba(4, 120, 87, 0.08) 0%, transparent 50%),
              radial-gradient(circle at bottom right, rgba(4, 120, 87, 0.08) 0%, transparent 50%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

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

/* Buttons & Links */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #035c43;
  color: #ffffff;
}

.link-underline {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness 0.2s ease;
}

.link-underline:hover {
  text-decoration-thickness: 3px;
}

/* Split Sections */
.split-wrapper {
  padding: 5rem 0;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.split-section:last-child {
  margin-bottom: 0;
}

.split-section.reversed .split-text {
  order: 2;
}

.split-section.reversed .split-photo {
  order: 1;
}

.split-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0; /* Square corners */
}

/* Cards & Entities */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  border-radius: 0;
  transition: border-color 0.3s ease;
}

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

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Badges & Avatars */
.badge-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  color: var(--accent-primary);
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.avatar-round {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* FAQ Accordion */
.faq-accordion {
  border-top: 1px solid var(--border-subtle);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 0;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-kinetic);
}

.faq-answer p {
  padding-bottom: 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* Data Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 3rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-subtle);
}

th, td {
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  text-align: left;
}

th {
  background-color: var(--bg-surface);
  font-weight: bold;
}

/* Article Styling */
.article-content {
  max-width: 72ch;
  margin: 0 auto;
  padding: 4rem 0;
}

.article-content h2 {
  margin-top: 3rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

/* Contact Tool */
.contact-tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  font-family: inherit;
  color: inherit;
  border-radius: 0;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.preview-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  white-space: pre-wrap;
  height: 300px;
  overflow-y: auto;
  font-family: inherit;
  margin-bottom: 1.5rem;
}

.tool-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

#statusLine {
  font-size: 0.9rem;
  color: var(--accent-primary);
  font-weight: bold;
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

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

.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

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

.footer-col a {
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-kinetic), transform 0.7s var(--ease-kinetic);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Background Utility */
.bg-emerald-tint {
  background: radial-gradient(circle at center, rgba(4, 120, 87, 0.08) 0%, transparent 70%);
  padding: 5rem 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .split-section {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .split-section, .split-section.reversed {
    grid-template-columns: 1fr;
  }
  .split-section.reversed .split-text {
    order: 1;
  }
  .split-section.reversed .split-photo {
    order: 2;
  }
  .contact-tool {
    grid-template-columns: 1fr;
  }
}

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