/* ============================================================
   Himank Industries — rotomoulded plastics
   Palette grounded in the forest-green wordmark + LLDPE granules
   ============================================================ */
:root {
  --ink:      #12211a;   /* near-black, green-tinted text        */
  --ink-soft: #46574e;   /* secondary text                       */
  --green:    #0b5c3f;   /* brand forest green (from logo)       */
  --green-800:#083d2a;   /* deep green                           */
  --green-900:#062a1d;   /* darkest                              */
  --amber:    #e79a12;   /* granule accent, used sparingly       */
  --bg:       #f4f6f3;   /* soft neutral surface (not cream)     */
  --surface:  #ffffff;
  --line:     rgba(18,33,26,.12);
  --shadow:   0 18px 40px -24px rgba(6,42,29,.55);

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body:    "Poppins", system-ui, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --pad: clamp(1.1rem, 4vw, 3rem);
}

/* ---------- reset-ish ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1,h2,h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--green); color:#fff; padding:.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }

/* ---------- shared type devices ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--green); margin: 0 0 1rem;
}
.eyebrow-light { color: #a7e8c9; }

.section { padding-block: clamp(3.6rem, 8vw, 7rem); }
.section-alt { background: var(--surface); }
.section-head { max-width: 44rem; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-title { font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 700; }
.section-lead { margin-top: 1.1rem; font-size: clamp(1.02rem,1.6vw,1.18rem); color: var(--ink-soft); max-width: 42rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: .96rem;
  padding: .8rem 1.35rem; border-radius: 999px; text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn-solid { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn-solid:hover { background: var(--green-800); transform: translateY(-2px); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color:#fff; transform: translateY(-2px); }
.btn-call { background: var(--green); color:#fff; padding:.55rem 1.1rem; font-size:.9rem; }
.btn-call:hover { background: var(--green-800); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,246,243,.82);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -20px rgba(6,42,29,.6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-display); }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px;
  background: var(--green); color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .02em;
}
.brand-name { font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -.01em; }
.brand-name-thin { font-weight: 400; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav > a { text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--ink); }
.nav > a:not(.btn) { position: relative; padding: .25rem 0; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--green);
  transition: width .2s ease;
}
.nav > a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
/* object-position pushed right: the banner has legacy text baked into its
   left-centre, so we frame the text-free granules on the right instead. */
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 82% center; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(6,42,29,.97) 0%, rgba(6,42,29,.9) 34%, rgba(6,42,29,.5) 62%, rgba(6,42,29,.22) 82%),
    linear-gradient(0deg, rgba(6,42,29,.85), rgba(6,42,29,0) 45%);
}
.hero-content { padding-block: clamp(5rem, 16vh, 9rem) clamp(7rem, 16vh, 9rem); }
.hero-content > * { max-width: 40rem; }
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 9vw, 5.6rem); letter-spacing: -.035em; line-height: .95;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero-lead { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: rgba(255,255,255,.9); max-width: 34rem; }
.hero-cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem; }

.spec-strip {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0; list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.16);
  background: rgba(6,42,29,.55); backdrop-filter: blur(4px);
}
.spec-strip li {
  padding: 1rem var(--pad); font-family: var(--font-mono); font-size: .9rem; font-weight: 700;
  display: flex; flex-direction: column; gap: .15rem;
  border-left: 1px solid rgba(255,255,255,.12);
}
.spec-strip li:first-child { border-left: 0; }
.spec-strip span {
  font-weight: 400; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: #a7e8c9;
}

/* ---------- SIGNATURE: material band ---------- */
.material-band {
  height: 14px;
  background-image: url("../assets/img/hero-granules.png");
  background-size: cover;
  background-position: center 85%; /* sample below the banner's baked-in text */
}

/* ============================================================
   ABOUT — feature grid
   ============================================================ */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.feature { background: var(--surface); padding: clamp(1.5rem, 2.4vw, 2.1rem); }
.feature-index {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: .9rem;
}
.feature h3 { font-size: 1.24rem; font-weight: 600; margin-bottom: .55rem; }
.feature p { color: var(--ink-soft); font-size: .98rem; }

.material-note {
  margin-top: 2rem; padding: 1.4rem 1.6rem; border-left: 4px solid var(--green);
  background: rgba(11,92,63,.06); border-radius: 0 12px 12px 0;
  font-size: 1.05rem; color: var(--ink);
}

/* ============================================================
   TECHNOLOGY
   ============================================================ */
.tech-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.tech-copy p { color: var(--ink-soft); margin-top: 1rem; max-width: 38rem; }
.tech-copy .section-title { margin-bottom: 1.4rem; }
.why-title { font-size: 1.15rem; font-weight: 600; margin-top: 2.2rem; margin-bottom: 1rem; color: var(--ink); }
.why-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.6rem; }
.why-list li { position: relative; padding-left: 1.6rem; font-size: .96rem; color: var(--ink-soft); }
.why-list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .55rem; height: .55rem; background: var(--green); border-radius: 2px; transform: rotate(45deg);
}
.tech-figure {
  margin: 0; background: var(--green-900); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); position: sticky; top: 90px;
}
.tech-figure img { width: 100%; background: #d9e2df; }
.tech-figure figcaption {
  padding: 1rem 1.2rem; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em;
  color: #a7e8c9;
}

/* ============================================================
   PRODUCTS — dark cards (photos are on black/white grounds)
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.product-card {
  margin: 0; background: var(--green-900); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); position: relative;
}
.product-card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.product-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.1rem .9rem; color: #fff; font-weight: 600; font-size: 1.02rem;
  background: linear-gradient(0deg, rgba(6,42,29,.92), rgba(6,42,29,0));
}
.product-card figcaption span {
  font-family: var(--font-mono); font-weight: 400; font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: #a7e8c9; margin-left: .5rem;
}
.product-card:hover img, .product-card:focus-within img { transform: scale(1.05); }
.products-foot { margin-top: 2rem; font-size: 1.05rem; color: var(--ink-soft); }
.products-foot a { color: var(--green); font-weight: 600; text-underline-offset: 3px; }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.partner {
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  padding: 2rem 1.6rem; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem;
}
.partner-monogram {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px;
  background: var(--green); color: #fff; font-weight: 800; font-family: var(--font-display);
  margin-bottom: 1rem; letter-spacing: .02em;
}
.partner-name { font-weight: 600; font-size: 1.16rem; }
.partner-role { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--green-900); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact-lead p { color: rgba(255,255,255,.82); margin-top: 1rem; max-width: 28rem; }
.contact-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -.03em; }
.contact-details { display: grid; gap: .2rem; }
.contact-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem .2rem; border-bottom: 1px solid rgba(255,255,255,.14); text-decoration: none;
  transition: padding-left .2s ease, background .2s ease;
}
.contact-row:not(.contact-row--static):hover { padding-left: .8rem; background: rgba(255,255,255,.04); }
.contact-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #a7e8c9; flex: none; }
.contact-value { font-weight: 600; font-size: 1.12rem; text-align: right; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding-block: 3rem; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: start; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand p { font-size: .92rem; max-width: 34rem; }
.footer-meta { text-align: right; font-size: .9rem; display: grid; gap: .4rem; }
.footer-meta a { color: #a7e8c9; text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }
.copyright { color: rgba(255,255,255,.45); margin-top: .5rem; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .product-card img, .nav > a::after { transition: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .tech-grid { grid-template-columns: 1fr; }
  .tech-figure { position: static; order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1.2rem; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav > a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn)::after { display: none; }
  .btn-call { margin-top: 1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .spec-strip { position: static; grid-template-columns: 1fr 1fr; background: var(--green-900); }
  .spec-strip li:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .spec-strip li:nth-child(odd) { border-left: 0; }
  .why-list { grid-template-columns: 1fr; }
  .contact-value { font-size: 1rem; }
}
@media (max-width: 420px) {
  .spec-strip { display: none; }
  .brand-name-thin { display: none; }
}
