/* BASE STYLES & VARIABLES */
:root {
  --bg-canvas: #eef7f2;
  --bg-surface: #ffffff;
  --text-primary: #1f2937;
  --text-muted: #4b5563;
  --accent-primary: #14532d;
  --border-tint: rgba(20, 83, 45, 0.2);
  --radius: 20px;
  --font-main: "Trebuchet MS", "Segoe UI", sans-serif;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

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

a:hover {
  text-decoration: underline;
}

/* DOT GRID BACKGROUND */
.dot-grid {
  background-image: radial-gradient(var(--border-tint) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* HEADER & NAV */
.site-header {
  position: relative;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease;
  z-index: 100;
}

.site-header.scrolled {
  background: var(--bg-canvas);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent-primary);
}

.desktop-nav {
  display: flex;
  gap: 1.5rem;
}

.desktop-nav a {
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.5rem;
}

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

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-surface);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-tint);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 0.75rem 0;
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-tint);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* BUTTONS */
.btn {
  display: inline-block;
  background: var(--accent-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 4px 4px 0 var(--border-tint);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* CARDS & PANELS */
.card, .panel, img.content-img {
  background: var(--bg-surface);
  border: 1px solid var(--border-tint);
  border-radius: var(--radius);
  padding: 2rem;
}

img.content-img {
  padding: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.materials-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-tint);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.materials-panel ul {
  list-style-type: none;
  padding-left: 0;
}

.materials-panel li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.materials-panel li::before {
  content: "•";
  color: var(--accent-primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

.content-narrow {
  max-width: 72ch;
  margin: 0 auto;
}

.section-padding {
  padding: 5rem 0;
}

/* SPLIT SECTIONS (Alternating Text & Image) */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
  align-items: center;
}

@media (min-width: 769px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
  }
  
  .split-right .text-side {
    order: 2;
  }
  .split-right .img-side {
    order: 1;
  }
}

/* HERO SECTION */
.hero {
  padding: 6rem 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 769px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-images {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-images img {
  border: 1px solid var(--border-tint);
  border-radius: var(--radius);
  background: var(--bg-surface);
  position: absolute;
  object-fit: cover;
}

.hero-images .img-1 {
  width: 60%;
  aspect-ratio: 1;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-images .img-2 {
  width: 45%;
  aspect-ratio: 4/3;
  z-index: 1;
  top: 10%;
  left: 10%;
}

.hero-images .img-3 {
  width: 50%;
  aspect-ratio: 3/4;
  z-index: 3;
  bottom: 0;
  right: 10%;
}

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

/* LISTS & COMPARISON ROWS */
ol.numbered-setup {
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}

ol.numbered-setup li {
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

ol.numbered-setup li::marker {
  font-weight: 700;
  color: var(--accent-primary);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 769px) {
  .comparison-row {
    grid-template-columns: 1fr 1fr;
  }
}

.comparison-card {
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-tint);
  border-radius: var(--radius);
}

/* FAQ DISCLOSURES */
.faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-tint);
  border-radius: var(--radius);
  background: var(--bg-surface);
  padding: 1.5rem;
}

.faq-question {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}

.faq-answer {
  color: var(--text-muted);
}

/* CONTACT TOOL */
.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(--border-tint);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-main);
}

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

.preview-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-tint);
  border-radius: var(--radius);
  padding: 1.5rem;
  white-space: pre-wrap;
  min-height: 150px;
  margin-top: 1rem;
}

.tool-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* SCROLL REVEAL CLASSES */
.reveal-left, .reveal-right, .reveal-up {
  opacity: 0;
  transition: all 0.7s var(--ease-kinetic);
}

.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up { transform: translateY(40px); }

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

/* FOOTER */
.site-footer {
  background: var(--bg-canvas);
  border-top: 1px solid var(--border-tint);
  padding: 4rem 2rem;
  margin-top: 5rem;
}

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

.footer-col h4 {
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

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

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

.footer-col ul li a {
  color: var(--text-muted);
}

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

.footer-bottom {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-tint);
  color: var(--text-muted);
  font-size: 0.875rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
th, td {
  padding: 1rem;
  border: 1px solid var(--border-tint);
  text-align: left;
}
th {
  background-color: var(--bg-surface);
  color: var(--accent-primary);
}

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