/* =========================================================
   ECOSPERO PACKAGING INDUSTRIES — BASE STYLES
   Design tokens, reset, typography, layout utilities.
   Loaded on every page, first in the CSS order.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Color palette — deep natural green / leaf / warm cream / earth */
  --color-forest: #1e3d0f;      /* deep natural green — primary, headers, footer */
  --color-forest-dark: #0E211C; /* darker shade for depth/hover */
  --color-leaf: #4C7A57;        /* leaf green — accents, links, icons */
  --color-leaf-light: #7FA487;  /* lighter leaf — subtle backgrounds, borders */
  --color-cream: #F6F1E4;       /* warm cream / parchment — section backgrounds */
  --color-parchment: #EFE7D3;   /* slightly deeper cream — cards on cream bg */
  --color-white: #FFFFFF;
  --color-earth: #A9825A;       /* natural earth tone — secondary accent, CTAs */
  --color-earth-dark: #8A6A45;
  --color-ink: #1C1F1B;         /* primary text */
  --color-ink-soft: #4A4F49;    /* secondary text */
  --color-line: #DCD3BC;        /* hairline borders on cream */
  --color-line-dark: rgba(255,255,255,0.12); /* hairline borders on forest */

  /* Typography */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-h1: clamp(2.4rem, 4.6vw, 4.2rem);
  --fs-h2: clamp(1.9rem, 3.2vw, 2.8rem);
  --fs-h3: clamp(1.4rem, 2vw, 1.8rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8rem;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 5rem;
  --space-7: 7rem;

  /* Layout */
  --max-width: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.25s;

  /* Shadow */
  --shadow-soft: 0 8px 30px rgba(22, 48, 42, 0.08);
  --shadow-lift: 0 16px 40px rgba(22, 48, 42, 0.14);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul[class], ol[class] { padding: 0; margin: 0; list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-white);
  min-height: 100vh;
}

/* ---------- Typography ---------- */
h1, h2, h3, .font-display {
  font-family: var(--font-display);
  color: var(--color-forest);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { color: var(--color-ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-earth);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.lede {
  font-size: 1.125rem;
  color: var(--color-ink-soft);
  max-width: 640px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}


.section {
  padding-block: var(--space-6);
}

.section--cream { background: var(--color-cream); }
.section--forest {
  background: var(--color-forest);
  color: var(--color-white);
}
.section--forest h1,
.section--forest h2,
.section--forest h3 { color: var(--color-white); }
.section--forest p { color: rgba(255,255,255,0.78); }

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-5);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: var(--space-4);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-forest);
  color: var(--color-white);
  padding: var(--space-1) var(--space-2);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Focus states (accessibility) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-earth);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Signature element: leaf-vein divider ----------
   A thin organic vein line used between sections instead of a
   plain hairline — nods to the leaf/compost motif without
   being decorative clutter. Reused across pages. */
.vein-divider {
  display: block;
  width: 100%;
  height: 28px;
  color: var(--color-leaf-light);
  opacity: 0.55;
}

/* ---------- Lazy-load fade-in ---------- */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

img.is-loaded {
  opacity: 1;
}


/* ---------- Breadcrumb (inner pages only) ---------- */
.page-header {
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-line);
  padding-block: var(--space-4) var(--space-5);
}

.page-header__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.82rem;
  margin-bottom: var(--space-2);
}

.breadcrumb a {
  color: var(--color-ink-soft);
  transition: color var(--duration) var(--ease);
}

.breadcrumb a:hover { color: var(--color-leaf); }

.breadcrumb__sep {
  color: var(--color-line);
}

.breadcrumb__current {
  color: var(--color-earth);
  font-weight: 600;
}

.page-header h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

@media (max-width: 768px) {
  .page-header { padding-block: var(--space-3) var(--space-4); }
  .breadcrumb { font-size: 0.76rem; }
}


/* ---------- Page header — hero variant (forest green, full width, centered) ---------- */
.page-header--hero {
  background: var(--color-forest);
  border-bottom: none;
  padding-block: var(--space-6);
  min-height: 300px;
  display: flex;
  align-items: center;
}

.page-header--hero .page-header__inner {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-header--hero h1 {
  color: var(--color-white);
  order: 1;
  margin-bottom: var(--space-2);
}

.page-header--hero .breadcrumb {
  justify-content: center;
  margin-bottom: 0;
  order: 2;
}

.page-header--hero .breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.page-header--hero .breadcrumb a:hover { color: var(--color-leaf-light); }

.page-header--hero .breadcrumb__sep {
  color: rgba(255,255,255,0.35);
}

.page-header--hero .breadcrumb__current {
  color: var(--color-leaf-light);
}

@media (max-width: 768px) {
  .page-header--hero {
    min-height: 240px;
    padding-block: var(--space-5);
  }
}



.about-intro .container {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}