/* Green Automation — Design Tokens & Base */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Brand palette */
  --color-navy: #0E2023;
  --color-off-white: #EBF3EC;
  --color-sage: #D1DDCB;
  --color-lime: #90EA67;
  --color-dark-green: #164F3B;

  /* Functional tokens */
  --color-primary: #164F3B;
  --color-primary-dark: #0E2023;
  --color-primary-light: #90EA67;
  --color-accent: #90EA67;
  --color-secondary: #90EA67;
  --color-secondary-dark: #164F3B;
  --color-bg: #EBF3EC;
  --color-bg-alt: #D1DDCB;
  --color-bg-dark: #0E2023;
  --color-text: #0E2023;
  --color-text-muted: rgba(14, 32, 35, 0.62);
  --color-text-on-dark: #EBF3EC;
  --color-border: #B8C9B0;
  --color-success: #164F3B;
  --color-error: #EF4444;
  --color-whatsapp: #b8e879;

  --font-heading: 'DM Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(14, 32, 35, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(14, 32, 35, 0.08), 0 2px 4px -2px rgba(14, 32, 35, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(14, 32, 35, 0.1), 0 4px 6px -4px rgba(14, 32, 35, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(14, 32, 35, 0.12), 0 8px 10px -6px rgba(14, 32, 35, 0.06);

  --header-height: 72px;
  --container-max: 1440px;
  --section-padding: 5rem;
  --transition: 0.2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-dark-green);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-navy);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-navy);
  color: var(--color-text-on-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: inherit;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-dark-green);
  margin-bottom: 0.75rem;
}

.section-dark .section-label {
  color: var(--color-lime);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-center { text-align: center; }

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Placeholder product images */
.product-img-placeholder {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-size: 3rem;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
}

.hero-img-placeholder {
  background: linear-gradient(145deg, #0E2023 0%, #164F3B 55%, #90EA67 100%);
  border-radius: var(--radius-lg);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-icon {
  font-size: 5rem;
  opacity: 0.9;
  z-index: 1;
}
