:root {
  --color-bg: #f0f0f0;
  --color-surface: #ffffff;
  --color-text: #4b424e;
  --color-text-muted: #665d69;
  --color-accent: #89a353;
  --color-accent-strong: #6d8242;
  --color-accent-soft: rgba(137, 163, 83, 0.2);
  --color-accent-muted: #8f53a3;
  --color-border: #d8d1db;
  --color-border-light: #e9e4ea;
  --color-warm: #e7dcef;
  --logo-row-1: #89a353;
  --logo-row-2: #8f53a3;
  --logo-row-3: #4b424e;
  --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-4xl: 2.5rem;
  --line-tight: 1.2;
  --line-normal: 1.55;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --container-max: 72rem;
  --container-padding: 1.5rem;
  --radius: 0.5rem;
  --radius-lg: 0.8rem;
  --transition: 0.2s ease;
}

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

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

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-strong); }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.main-content { min-height: 60vh; }
.section { padding: var(--space-3xl) 0; }
.section-alt { background: var(--color-warm); }
.page-home + .section-alt {
  background: var(--color-surface);
}
.page-home + .section-alt .kicker {
  color: var(--color-accent-muted);
}
.page-home + .section-alt .mix-card {
  background: #89a353;
  border-color: #6d8242;
}
.page-home + .section-alt .mix-card h3,
.page-home + .section-alt .mix-card p,
.page-home + .section-alt .mix-card-title {
  color: #fff;
}
.page-home + .section-alt .mix-dot {
  background: #8f53a3;
}
.page-about + .section-alt {
  background: var(--color-bg);
}
.page-about {
  background: #89a353;
}
.page-about .kicker,
.page-about .page-title {
  color: #fff;
}
.page-about .lead {
  color: rgba(255, 255, 255, 0.9);
}
.page-home + .section-alt .mix-card,
.page-about .about-panel,
.page-services.section-contact .service-cluster,
.page-contact .contact-form-shell,
.page-home.section-contact .hero-shell {
  box-shadow: 0 10px 24px rgba(17, 10, 24, 0.14);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
}

.site-nav {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-md) var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: inherit;
}

.logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-mark-svg {
  width: 1.3rem;
  height: 1.3rem;
}
.logo-row {
  stroke-width: 1.8;
  stroke-linecap: round;
}
.logo-knob {
  stroke: #fff;
  stroke-width: 0.9;
}
.logo-row-1,
.logo-knob-1 {
  stroke: var(--logo-row-1);
  fill: var(--logo-row-1);
}
.logo-row-2,
.logo-knob-2 {
  stroke: var(--logo-row-2);
  fill: var(--logo-row-2);
}
.logo-row-3,
.logo-knob-3 {
  stroke: var(--logo-row-3);
  fill: var(--logo-row-3);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.1rem;
}

.nav-links a {
  color: var(--color-text-muted);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a.current {
  color: var(--color-accent-muted);
  background: rgba(143, 83, 163, 0.2);
}
.nav-links a.current {
  color: #fff;
  background: var(--color-accent-muted);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 1.25rem;
}

@media (max-width: 47.99em) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-lg);
    flex-direction: column;
    display: none;
  }
  .site-nav.nav-open .nav-links { display: flex; }
}

.page-title {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  line-height: var(--line-tight);
}

.lead {
  margin: 0 0 var(--space-xl);
  max-width: 52ch;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

h2 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
}

h3 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
}

p { margin: 0 0 var(--space-md); color: var(--color-text-muted); max-width: 66ch; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius);
  border: 0;
  background: var(--color-accent-muted);
  color: #fff;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.btn:hover {
  background: #744487;
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-warm);
  color: var(--color-text);
}

.hero-shell {
  background: linear-gradient(170deg, #ffffff, var(--color-warm));
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: grid;
  gap: var(--space-xl);
}
.page-home.section-contact .hero-shell {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-image {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.kicker {
  margin: 0 0 var(--space-md);
  color: var(--color-accent-muted);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.mix-grid {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.mix-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.mix-card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mix-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--color-accent);
}

.mix-stage {
  margin-top: var(--space-2xl);
  display: grid;
  gap: var(--space-lg);
}

.mix-stage-row {
  display: grid;
  gap: var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.mix-stage-row h3 { margin: 0; }

.about-split {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.about-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.placeholder-image {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.placeholder-image img {
  width: 100%;
  object-fit: cover;
}

.placeholder-image.square img { aspect-ratio: 1/1; }
.placeholder-image.wide img { aspect-ratio: 16/9; }

.services-stack {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.service-cluster {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.service-list {
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.service-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.55rem;
}

.service-list li::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: var(--color-accent);
}

.services-cta {
  margin-top: var(--space-2xl);
  max-width: none;
  text-align: center;
}

.section-contact {
  background: linear-gradient(170deg, #8f53a3 0%, #4b424e 100%);
}

.contact-wrap {
  display: grid;
  gap: var(--space-xl);
}

.contact-note {
  color: rgba(255, 255, 255, 0.88);
}

.contact-form-shell {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.section-contact .page-title,
.section-contact .lead,
.section-contact .contact-note,
.section-contact label { color: #fff; }
.section-contact .kicker { color: rgba(255, 255, 255, 0.88); }
.page-home.section-contact .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.page-home.section-contact .btn-home-primary {
  border: 1px solid rgba(255, 255, 255, 0.85);
}
.page-contact .contact-form-shell .btn {
  border: 1px solid rgba(255, 255, 255, 0.85);
}
.page-services.section-contact .btn {
  border: 1px solid rgba(255, 255, 255, 0.85);
}
.page-home.section-contact .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.form-group { margin-bottom: var(--space-lg); }
.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: var(--text-sm);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.75rem;
  font: inherit;
}

.form-group textarea { min-height: 10rem; resize: vertical; }

.form-status {
  display: none;
  margin-top: var(--space-md);
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
}

.form-status.visible { display: block; }
.form-status.success {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}
.form-status.error {
  background: #fff;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.site-footer {
  border-top: 1px solid var(--color-border-light);
  background: var(--color-surface);
  padding: var(--space-2xl) var(--container-padding);
}

.footer-inner { max-width: var(--container-max); margin: 0 auto; text-align: center; }
.footer-links {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.footer-copy { margin: 0; max-width: none; font-size: var(--text-sm); }

.legal-content { max-width: 66ch; }
.legal-content h2 { margin-top: var(--space-2xl); }

@media (max-width: 47.99em) {
  .hero-shell,
  .contact-wrap { text-align: center; }
  .hero-actions { justify-content: center; }
  .page-about .kicker {
    display: table;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .page-services .kicker {
    display: table;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .page-contact .kicker {
    display: table;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .page-services .lead {
    text-align: center;
  }
  .page-about .lead {
    text-align: center;
  }
  .page-title { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .contact-wrap .lead,
  .contact-wrap .contact-note { margin-left: auto; margin-right: auto; }
  .form-actions { text-align: center; }
  .page-contact .form-group {
    text-align: left;
  }
  .page-contact .form-group label {
    text-align: left;
  }
  .page-about + .section-alt .about-panel { order: 1; }
  .page-about + .section-alt .placeholder-image { order: 2; }
}

@media (min-width: 48em) {
  .hero-shell {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
  .mix-grid { grid-template-columns: repeat(3, 1fr); }
  .about-split { grid-template-columns: 1fr 1fr; align-items: start; }
  .services-stack { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
  .contact-wrap { grid-template-columns: 42% 1fr; align-items: start; }
}
