/* ==========================================================================
   Shri Balaji Plastic — design tokens & shared styles
   Palette derived from brand mark: forest greens + charcoal ink.
   Type: Archivo (display) / Inter (body) / IBM Plex Mono (labels & data)
   ========================================================================== */

:root {
  /* Brand colors — sourced directly from logo.svg */
  --forest-900: #0B5E43;
  --forest-700: #12855C;
  --mint-400: #57BE8E;
  --mint-200: #BEE7D2;
  --mint-100: #E7F5EC;

  --ink-900: #20262B;
  --ink-600: #4B5560;

  --paper-0: #FFFFFF;
  --stone-100: #F6F7F5;
  --stone-200: #ECEFEC;
  --stone-300: #D8DED9;
  --stone-500: #8B948E;

  /* granule swatch colors — mimics real PP grade/masterbatch chips */
  --granule-natural: #EFEAE0;
  --granule-amber: #C98A3E;
  --granule-slate: #5C6B72;

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1160px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 1px 2px rgba(32, 38, 43, 0.04), 0 8px 24px rgba(32, 38, 43, 0.06);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper-0);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--forest-700);
  outline-offset: 3px;
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-700);
}

.eyebrow--muted { color: var(--stone-500); }
.eyebrow--on-dark { color: var(--mint-400); }

h1 { font-size: clamp(2.4rem, 4.4vw, 4.1rem); line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.1; }
h3 { font-size: 1.28rem; line-height: 1.25; }

.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ink-600);
  max-width: 46ch;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--stone { background: var(--stone-100); }

@media (max-width: 720px) {
  .section { padding: 56px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--forest-900); color: var(--paper-0); }
.btn--primary:hover { background: var(--forest-700); }

.btn--ghost { border-color: var(--ink-900); color: var(--ink-900); background: transparent; }
.btn--ghost:hover { border-color: var(--forest-900); color: var(--forest-900); }

.btn--on-dark { border-color: rgba(255,255,255,0.5); color: var(--paper-0); background: transparent; }
.btn--on-dark:hover { border-color: var(--paper-0); background: rgba(255,255,255,0.08); }

.btn--whatsapp { background: #25D366; color: #05330E; }
.btn--whatsapp:hover { background: #1ebc59; }

/* ---------- Spec / quality callout ---------- */
.spec-box {
  border: 1.5px solid var(--forest-900);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  background: var(--mint-100);
}
.spec-box__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 18px;
}
@media (max-width: 700px) { .spec-box__grid { grid-template-columns: 1fr; } }
.spec-box__item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--forest-900);
  margin-bottom: 4px;
}
.spec-box__item span { font-size: 0.9rem; color: var(--ink-600); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--stone-300);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; color: var(--ink-900); letter-spacing: -0.01em; }
.brand__tag { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--forest-700); text-transform: uppercase; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-600);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink-900); border-color: var(--forest-700); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span, .nav__toggle::before, .nav__toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-900);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--paper-0);
    border-bottom: 1px solid var(--stone-300);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--stone-200); width: 100%; }
  .nav__cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero__eyebrow { margin-bottom: 18px; }
.hero h1 { color: var(--ink-900); margin-bottom: 20px; }
.hero .lede { margin-bottom: 32px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.credential-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  border-top: 1px solid var(--stone-300);
  padding-top: 20px;
}
.credential-strip__item {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-600);
  padding-right: 22px;
  margin-right: 22px;
  border-right: 1px solid var(--stone-300);
}
.credential-strip__item:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.credential-strip__item strong { color: var(--ink-900); font-weight: 600; }

@media (min-width: 640px) {
  .credential-strip__item { white-space: nowrap; }
}

/* ---------- Granule field (signature motif) ---------- */
.granule-field {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
}
.granule-field svg { width: 100%; height: 100%; }
.granule-field circle { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .granule-field .drift-a { animation: drift 9s ease-in-out infinite; }
  .granule-field .drift-b { animation: drift 11s ease-in-out infinite reverse; }
  .granule-field .drift-c { animation: drift 13s ease-in-out infinite; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Waste hero photo collage ---------- */
.waste-hero-photos {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.waste-hero-photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }

/* ---------- Pillars (triad — echoes the 3-petal mark) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stone-300);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-md);
  overflow: hidden;
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--paper-0);
  padding: 40px 32px;
}
.pillar__petal { width: 34px; height: 34px; margin-bottom: 22px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--ink-600); font-size: 0.96rem; }

/* ---------- Dark band (trusted-by statement) ---------- */
.band-dark {
  background: var(--forest-900);
  color: var(--paper-0);
  padding: 76px 0;
  position: relative;
}
.band-dark p.statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.32;
  max-width: 22ch;
  letter-spacing: -0.01em;
}
.band-dark .statement em {
  font-style: normal;
  color: var(--mint-400);
}
.band-dark__meta {
  margin-top: 32px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.band-dark__meta div { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint-200); }
.band-dark__meta strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--paper-0); letter-spacing: 0; text-transform: none; margin-top: 4px; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-0);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }

.swatch {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--stone-100);
}
.swatch__pellets { width: 64%; }
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch__label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-500);
  background: rgba(255,255,255,0.85);
  padding: 3px 8px;
  border-radius: 4px;
}
.card__body { padding: 22px 22px 26px; }
.card__body h3 { margin-bottom: 8px; }
.card__body p { color: var(--ink-600); font-size: 0.93rem; }

/* ---------- Section headers ---------- */
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: none;
}
@media (max-width: 700px) { .section-head--split { flex-direction: column; align-items: flex-start; } }

/* ---------- About / people ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 700px) { .people { grid-template-columns: 1fr; } }
.person {
  background: var(--stone-100);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.person__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(155deg, var(--mint-200), var(--stone-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--forest-900);
  overflow: hidden;
  border: 3px solid var(--paper-0);
  box-shadow: 0 0 0 1px var(--stone-300);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest-700); margin-bottom: 4px; display: block; }
.person h3 { margin-bottom: 6px; }
.person p { color: var(--ink-600); font-size: 0.92rem; }

/* ---------- Timeline note (single anchor, not a generic numbered sequence) ---------- */
.origin {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .origin { grid-template-columns: 1fr; gap: 32px; } }
.origin__year {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4.5rem, 9vw, 8rem);
  line-height: 0.85;
  color: var(--mint-200);
  -webkit-text-stroke: 1.5px var(--forest-900);
  color: transparent;
}
.origin__copy p + p { margin-top: 16px; }
.origin__copy p { color: var(--ink-600); }

/* ---------- Form ---------- */
.enquiry {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
}
@media (max-width: 900px) { .enquiry { grid-template-columns: 1fr; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-500);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1.5px solid var(--stone-300);
  border-radius: var(--radius-sm);
  background: var(--paper-0);
  color: var(--ink-900);
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--forest-700);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }

.form-note { font-size: 0.85rem; color: var(--stone-500); margin-top: 4px; }
.form-status { margin-top: 16px; font-size: 0.92rem; font-weight: 600; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-success { color: var(--forest-700); }
.form-status.is-error { color: #B23A2E; }

.contact-block { display: flex; flex-direction: column; gap: 28px; }
.contact-block .card__body { padding: 26px; }
.contact-line { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.contact-line:last-child { margin-bottom: 0; }
.contact-line span.eyebrow { margin-bottom: 2px; }
.contact-line a, .contact-line p { font-size: 0.98rem; }
.contact-line a { text-decoration: none; color: var(--ink-900); font-weight: 600; }
.contact-line a:hover { color: var(--forest-700); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--stone-300);
  padding: 52px 0 32px;
  background: var(--stone-100);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-500);
  font-weight: 500;
  margin-bottom: 14px;
}
.footer-grid a, .footer-grid p { font-size: 0.92rem; color: var(--ink-600); text-decoration: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a:hover { color: var(--forest-700); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand__mark { width: 30px; height: 30px; }
.footer-brand__word { font-family: var(--font-display); font-weight: 800; color: var(--ink-900); }
.footer-bottom {
  border-top: 1px solid var(--stone-300);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--stone-500);
}

/* ---------- Page intro (for sub-pages) ---------- */
.page-intro { padding: 56px 0 8px; }
.page-intro .eyebrow { display: block; margin-bottom: 16px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
