/* Pasiv-dom Design System */
:root {
  --green-primary: #16A34A;
  --green-deep: #14532D;
  --green-soft: #DCFCE7;
  --black: #0A0A0A;
  --gray-900: #171717;
  --gray-700: #404040;
  --gray-500: #737373;
  --gray-300: #D4D4D4;
  --gray-200: #E5E5E5;
  --gray-100: #F5F5F5;
  --beige: #F5F1EA;
  --white: #FFFFFF;
  --container: 1280px;
  --radius-card: 8px;
  --radius-btn: 4px;
  --radius-hero: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--black);
  text-wrap: balance;
}

.h1 {
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.h2 {
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.h4 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.body-lg {
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-700);
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-primary);
}

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 48px; }
}

.section {
  padding: 64px 0;
}

@media (min-width: 1024px) {
  .section { padding: 96px 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 52px;
  cursor: pointer;
}

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-deep);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--black);
}

.btn-light:hover {
  background: var(--gray-100);
}

.btn-ghost {
  padding: 12px 0;
  color: var(--black);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-200);
  border-radius: 0;
}

.btn-ghost:hover {
  border-bottom-color: var(--black);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
  min-height: 40px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--gray-200);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--black);
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--green-primary);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--white);
  clip-path: polygon(50% 0, 100% 60%, 100% 100%, 0 100%, 0 60%);
}

.logo-suffix {
  color: var(--green-primary);
}

.nav {
  display: none;
  gap: 36px;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav { display: flex; }
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  transition: color 0.15s;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--green-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green-primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hamburger { display: none; }
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.drawer-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--black);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-link {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

/* Footer */
.footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer h5 {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer a:hover {
  color: var(--white);
}

.footer-brand-text {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--gray-200);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.12);
}

.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
}

/* Forms */
.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
  color: var(--gray-900);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.input::placeholder, .textarea::placeholder {
  color: var(--gray-500);
}

.label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.field {
  margin-bottom: 20px;
}

/* Pill chip */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--gray-500);
}

.chip.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Utilities */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

.divider {
  height: 1px;
  background: var(--gray-200);
}

/* Image placeholder pattern */
.img-placeholder {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.03) 25%, transparent 25%, transparent 50%, rgba(0,0,0,0.03) 50%, rgba(0,0,0,0.03) 75%, transparent 75%, transparent) 0/16px 16px,
    var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 12px;
  text-align: center;
  padding: 24px;
}

/* Sticky bottom CTA bar (mobile) */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  z-index: 50;
}

@media (min-width: 1024px) {
  .sticky-bar { display: none; }
}

.sticky-bar .btn {
  flex: 1;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 14px;
  justify-content: center;
}


/* Hide scrollbar utility */
.scroll-x {
  overflow-x: auto;
  scrollbar-width: thin;
}

/* Section dividers / spacing helpers */
.section-tight {
  padding: 48px 0;
}

@media (min-width: 1024px) {
  .section-tight { padding: 64px 0; }
}

.bg-beige { background: var(--beige); }
.bg-soft { background: var(--green-soft); }
.bg-deep { background: var(--green-deep); color: var(--white); }
.bg-deep h1, .bg-deep h2, .bg-deep h3 { color: var(--white); }
.bg-gray { background: var(--gray-100); }

/* Icon styles (lucide-style line icons rendered as SVG inline) */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-lg {
  width: 28px;
  height: 28px;
}

.icon-xl {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
}
