:root {
  --bg-canvas: #fbf1f0;
  --bg-surface: #ffffff;
  --text-primary: #1c1917;
  --text-muted: #57534e;
  --accent-primary: #9333ea;
  --accent-secondary: #d946ef;
  --border-subtle: #e7e5e4;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: none; 
  --shadow-hard: 4px 4px 0 var(--text-primary);
  --radius-panel: 20px;
}

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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Nav */
.site-header {
  background-color: var(--bg-surface);
  padding: 1.5rem 5%;
  position: static;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.2s;
}

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

/* Layout Engine */
main {
  flex-grow: 1;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 5%;
}

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

.section-band {
  background-color: var(--bg-surface);
  padding: 6rem 0;
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  margin: -2rem 0;
  position: relative;
  z-index: 1;
}

.section-band.alt {
  background-color: var(--bg-canvas);
  clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%);
  z-index: 2;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--text-primary);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 5%;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--bg-surface);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.25rem;
  color: var(--bg-canvas);
  margin-bottom: 2rem;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 769px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-wide {
    grid-column: span 2;
  }
  .bento-tall {
    grid-row: span 2;
  }
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card img {
  width: calc(100% + 4rem);
  margin: -2rem -2rem 1.5rem -2rem;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
}

.card h2, .card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Interactive Elements */
.btn {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--bg-surface);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border: 2px solid var(--text-primary);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-hard);
  transition: transform 0.15s var(--ease-kinetic), box-shadow 0.15s var(--ease-kinetic);
  cursor: pointer;
  text-align: center;
}

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

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Typography & Content Formatting */
h2, h3, h4 {
  color: var(--text-primary);
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }

p {
  margin-bottom: 1.5rem;
}

ul, ol {
  margin: 0 0 1.5rem 2rem;
}

li {
  margin-bottom: 0.5rem;
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: var(--radius-panel);
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
}

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

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

.feature-img {
  width: 100%;
  border-radius: var(--radius-panel);
  height: 400px;
  object-fit: cover;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
}

/* Contact Form Generator */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--text-primary);
  border-radius: var(--radius-panel);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-canvas);
}
.form-group textarea {
  resize: vertical;
  min-height: 150px;
}
.result-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: var(--radius-panel);
  margin-top: 1.5rem;
  white-space: pre-wrap;
  display: none;
}

/* FAQ Styles */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-question {
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}

/* Footer */
.site-footer {
  background-color: var(--text-primary);
  color: var(--bg-surface);
  padding: 4rem 5% 2rem;
  margin-top: auto;
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
}

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

.footer-col h4 {
  color: var(--accent-secondary);
  margin-top: 0;
  margin-bottom: 1rem;
}

.footer-col a {
  color: var(--bg-surface);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--accent-secondary);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  opacity: 0.6;
}

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

/* Media Queries */
@media (max-width: 768px) {
  .header-top {
    position: relative;
  }
  .mobile-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    width: 100%;
    padding-top: 1rem;
  }
  .main-nav.active {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .section-band {
    clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
    padding: 4rem 0;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
}

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