/* ====================================================================
   STYLE.CSS — Elements India
   --------------------------------------------------------------------
   Base layer: reset, design tokens (CSS variables), typography scale,
   and shared utility classes (.container, .btn, .section, etc).

   Load order (see every page <head>):
   1. style.css        <- this file (tokens + base + utilities)
   2. header.css
   3. footer.css
   4. home.css / products.css / [page].css
   5. responsive.css   <- always last
   ==================================================================== */


/* --------------------------------------------------------------------
   1. FONTS
   Archivo       -> display grotesque, headings + UI (industrial, technical)
   Inter         -> body copy
   IBM Plex Mono -> technical data voice (specs, labels, section refs)

   "Specification Sheet" direction: a grotesque + mono pairing, deliberately
   NOT the serif-display look that reads as generic.
   -------------------------------------------------------------------- */

/* Loaded from Google Fonts, so no local font files are needed.
   (@import must stay above every style rule below.) */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600&display=swap');


/* --------------------------------------------------------------------
   2. DESIGN TOKENS
   -------------------------------------------------------------------- */

:root {

  /* Color — "Specification Sheet" palette: cool graphite neutrals (NOT
     warm cream), a single signal-orange accent used like safety signage,
     and graphite for dark bands. Kept token names so the whole site
     shifts palette without markup changes. */
  --color-paper:        #EEEFEC;   /* base background — cool technical paper */
  --color-paper-dim:    #E5E7E2;   /* slightly deeper section background */
  --color-panel:        #F6F7F4;   /* raised card / panel surface */
  --color-ink:          #161918;   /* primary text, cool near-black */
  --color-ink-soft:     #454A47;   /* secondary text */
  --color-stone:        #767B77;   /* muted text, captions, meta */
  --color-line:         #D5D8D2;   /* hairline borders / dividers */
  --color-line-strong:  #C4C8C0;   /* slightly stronger rule */
  --color-rust:         #DA5216;   /* single signal accent — CTAs, links, emphasis */
  --color-rust-dark:    #A83C0C;   /* hover state for the accent */
  --color-slate:        #1C201E;   /* graphite — Industries band + footer + dark bands */
  --color-slate-light:  #2A2F2C;
  --color-white:        #FFFFFF;

  /* Typography — grotesque display + mono data voice */
  --font-display: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  --fs-xs:    0.75rem;    /* 12px — captions, meta */
  --fs-sm:    0.875rem;   /* 14px — small body */
  --fs-base:  1rem;       /* 16px — body */
  --fs-md:    1.125rem;   /* 18px — lead paragraphs */
  --fs-lg:    1.4rem;                          /* ~22px — h4 / card titles */
  --fs-xl:    clamp(1.5rem, 2.4vw, 1.9rem);    /* h3 — fluid */
  --fs-2xl:   clamp(1.9rem, 3.6vw, 2.9rem);    /* h2 — fluid */
  --fs-3xl:   clamp(2.4rem, 5.6vw, 4.4rem);    /* h1 / hero — fluid, scales smoothly */

  --lh-tight:  1.15;
  --lh-snug:   1.35;
  --lh-normal: 1.6;

  /* Spacing scale (used consistently instead of arbitrary px values) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --space-10: 8rem;

  /* Layout */
  --container-max: 1240px;
  --container-pad: var(--space-5);
  --header-height: 72px;

  /* Radius — kept small and consistent; this is not a rounded-card design */
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Motion — short, functional, never decorative */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;

  /* Shadow — reserved for header-on-scroll and dropdowns only */
  --shadow-soft: 0 4px 16px rgba(32, 29, 25, 0.08);
}


/* --------------------------------------------------------------------
   3. RESET
   -------------------------------------------------------------------- */

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

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 {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-ink);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

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

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

table {
  border-collapse: collapse;
  width: 100%;
}

/* Visible keyboard focus — never remove outline without a replacement */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-rust);
  outline-offset: 2px;
}


/* --------------------------------------------------------------------
   4. TYPOGRAPHY
   -------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--color-ink);
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); font-weight: 700; }
h2 { font-size: var(--fs-2xl); font-weight: 600; }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); font-weight: 600; font-family: var(--font-body); }

p {
  color: var(--color-ink-soft);
  line-height: var(--lh-normal);
}

.lead {
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: var(--space-4);
}

.text-muted { color: var(--color-stone); }


/* --------------------------------------------------------------------
   5. LAYOUT UTILITIES
   -------------------------------------------------------------------- */

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

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

.section--dim {
  background-color: var(--color-paper-dim);
}

.section--slate {
  background-color: var(--color-slate);
  color: var(--color-white);
}

.section--slate h2,
.section--slate h3 {
  color: var(--color-white);
}

.section--slate p {
  color: rgba(255, 255, 255, 0.75);
}

.hr-line {
  border: none;
  border-top: 1px solid var(--color-line);
}

/* Generic reveal-on-scroll hook — toggled by main.js via IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* --------------------------------------------------------------------
   6. SIGNATURE ELEMENT — SPEC STRIP
   A hairline-bordered row of technical data in mono type. Used under
   product cards and on product pages wherever a real spec is shown.
   -------------------------------------------------------------------- */

.spec-strip {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-line);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  gap: var(--space-5);
}

.spec-strip__item {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-stone);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-strip__item span {
  color: var(--color-ink);
  font-size: var(--fs-sm);
}


/* --------------------------------------------------------------------
   7. BUTTONS
   -------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid transparent;
  transition: background-color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
}

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

.btn--rust:hover {
  background-color: var(--color-rust-dark);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn--outline:hover {
  background-color: var(--color-ink);
  color: var(--color-paper);
}

.btn--outline-light {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

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

.btn--text {
  padding: 0;
  color: var(--color-rust);
  font-size: var(--fs-sm);
  border-bottom: 1px solid transparent;
}

.btn--text:hover {
  border-bottom-color: var(--color-rust);
}


/* --------------------------------------------------------------------
   8. PAGE BANNER
   Generic dark banner used at the top of about.html and contact.html.
   Same visual language as .product-banner in products.css, kept here
   since it's not product-specific.
   -------------------------------------------------------------------- */

.page-banner {
  position: relative;
  height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--color-ink);
}

.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-banner__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  width: 100%;
  margin-inline: auto;
  padding: var(--space-7) var(--container-pad);
  color: var(--color-white);
}

.page-banner__content .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.page-banner__content h1 {
  color: var(--color-white);
  max-width: 22ch;
}


/* --------------------------------------------------------------------
   9. MISSION / VISION / VALUES GRID
   -------------------------------------------------------------------- */

.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.mv-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-line);
  padding: var(--space-6);
}

.mv-item .eyebrow {
  margin-bottom: var(--space-4);
}

.mv-item h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-3);
}

.mv-item p {
  font-size: var(--fs-sm);
}


/* --------------------------------------------------------------------
   10. VALUES LIST (used within the Values mv-item, or standalone)
   -------------------------------------------------------------------- */

.values-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.values-list li {
  font-size: var(--fs-sm);
  color: var(--color-ink-soft);
  padding-left: var(--space-4);
  position: relative;
}

.values-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background-color: var(--color-rust);
}


/* --------------------------------------------------------------------
   11. PDF MODAL
   Reusable popup for viewing certificate / document PDFs inline
   without exposing a direct download link. Toggled via js/pdf-modal.js.
   -------------------------------------------------------------------- */

.pdf-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
}

.pdf-modal.is-open {
  display: flex;
}

.pdf-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(32, 29, 25, 0.72);
  backdrop-filter: blur(2px);
}

.pdf-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  height: min(88vh, 1000px);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}

.pdf-modal.is-open .pdf-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pdf-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-line);
  background-color: var(--color-paper);
  flex-shrink: 0;
}

.pdf-modal__title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.pdf-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  transition: background-color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}

.pdf-modal__close:hover {
  background-color: var(--color-ink);
  color: var(--color-paper);
  border-color: var(--color-ink);
}

.pdf-modal__body {
  position: relative;
  flex: 1;
  background-color: var(--color-paper-dim);
}

.pdf-modal__frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Transparent shield over the iframe blocks right-click / drag-save
   attempts on the rendered PDF without interfering with scroll. */
.pdf-modal__shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 640px) {
  .pdf-modal__dialog {
    height: 92vh;
  }
}

/* ====================================================================
   CONTENT-PROTECTION DETERRENTS (paired with js/protect.js)
   --------------------------------------------------------------------
   Discourages casual image saving / dragging. NOT a hard block — a
   screenshot or a JS-disabled browser defeats it. Kept narrow so it
   does NOT harm accessibility or copying of real contact details:
     • body text stays selectable (only media is locked)
     • focus outlines / keyboard nav untouched
   ==================================================================== */
img,
picture,
video,
[data-protect] {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Suppresses the iOS long-press "Save Image / Copy" callout menu. */
  -webkit-touch-callout: none;
}