/* ============================================================
   MADHAV COTEX — Brand Design System
   Crimson Pro (display) + Inter (body)
   Palette: Deep navy-brown anchors, earth accents, warm whites
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Tokens ── */
:root {
  --c-navy:       #19243D;
  --c-brown:      #362419;
  --c-earth:      #D6CEC3;
  --c-offwhite:   #F7F3F0;
  --c-white:      #FFFFFF;
  --c-ink:        #111111;
  --c-ink-muted:  #555047;
  --c-border:     #E2DDD8;
  --c-accent:     #8B6F5E;

  --f-display:    'Crimson Pro', Georgia, serif;
  --f-body:       'Inter', system-ui, sans-serif;

  --radius:       4px;
  --max-w:        1160px;
  --section-pad:  96px 24px;
  --transition:   0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-body);
  background: var(--c-offwhite);
  color: var(--c-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; }
p  { font-size: 1rem; line-height: 1.75; color: var(--c-ink-muted); }
.eyebrow {
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: block;
  margin-bottom: 12px;
}

/* ── Layout helpers ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: var(--section-pad); }
.section--dark    { background: var(--c-navy);    color: var(--c-white); }
.section--brown   { background: var(--c-brown);   color: var(--c-white); }
.section--earth   { background: var(--c-earth); }
.section--white   { background: var(--c-white); }
.section--offwhite{ background: var(--c-offwhite); }
.section--dark p,
.section--brown p { color: rgba(255,255,255,0.72); }
.section--dark .eyebrow,
.section--brown .eyebrow { color: var(--c-earth); }
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: var(--c-brown);
  color: var(--c-white);
  border-color: var(--c-brown);
}
.btn-primary:hover { background: #4a3325; border-color: #4a3325; }
.btn-outline {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--c-white); background: rgba(255,255,255,0.08); }
.btn-outline-dark {
  background: transparent;
  color: var(--c-navy);
  border-color: var(--c-navy);
}
.btn-outline-dark:hover { background: var(--c-navy); color: var(--c-white); }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  background: rgba(25, 36, 61, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
/* ── Scrolled state — switches to earth/beige ── */
.nav.scrolled {
  background: #D6CEC3;
  border-bottom: 1px solid rgba(54,36,25,0.12);
  box-shadow: 0 2px 20px rgba(54,36,25,0.1);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo img {
  height: 36px;
  width: auto;
  transition: filter 0.35s ease;
}
.nav__logo-text {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--c-white);
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition: color 0.35s ease;
}
.nav.scrolled .nav__logo-text {
  color: var(--c-navy);
}
.nav__logo-sub {
  display: block;
  font-family: var(--f-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-earth);
  opacity: 0.8;
  transition: color 0.35s ease, opacity 0.35s ease;
}
.nav.scrolled .nav__logo-sub {
  color: var(--c-brown);
  opacity: 1;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.35s ease;
  position: relative;
}
.nav.scrolled .nav__links a {
  color: rgba(25,36,61,0.65);
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--c-earth);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav.scrolled .nav__links a::after {
  background: var(--c-brown);
}
.nav__links a:hover,
.nav__links a.active { color: var(--c-white); }
.nav.scrolled .nav__links a:hover,
.nav.scrolled .nav__links a.active { color: var(--c-navy); }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }
.nav__cta { margin-left: 12px; }
/* CTA button adapts on scroll */
.nav.scrolled .nav__cta {
  background: var(--c-brown);
  border-color: var(--c-brown);
  color: var(--c-white);
}
.nav.scrolled .nav__cta:hover {
  background: #4a3325;
  border-color: #4a3325;
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--c-white);
  transition: background 0.35s ease;
}
.nav.scrolled .nav__burger span {
  background: var(--c-navy);
}

/* ══════════════════════════════════════════
   HERO — HOME
══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--c-navy);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}
/* Signature element: a fine diagonal grain overlay */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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.03'%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__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-earth);
  margin-bottom: 24px;
}
.hero__kicker::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--c-earth);
}
.hero h1 {
  color: var(--c-white);
  margin-bottom: 24px;
  font-weight: 300;
}
.hero h1 em {
  font-style: italic;
  color: var(--c-earth);
}
.hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero__scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBob 2s ease-in-out infinite;
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ══════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════ */
.stats {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats__item {
  padding: 36px 32px;
  border-right: 1px solid var(--c-border);
  text-align: center;
}
.stats__item:last-child { border-right: none; }
.stats__num {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--c-navy);
  line-height: 1;
  margin-bottom: 8px;
}
.stats__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}

/* ══════════════════════════════════════════
   DIFFERENCE SECTION
══════════════════════════════════════════ */
.difference__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}
.difference__item {}
.difference__num {
  font-family: var(--f-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--c-border);
  line-height: 1;
  margin-bottom: 16px;
}
.difference__item h3 {
  font-size: 1.4rem;
  color: var(--c-navy);
  margin-bottom: 12px;
}
.difference__item p { font-size: 0.95rem; }

/* ══════════════════════════════════════════
   PRODUCT CARDS
══════════════════════════════════════════ */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
}
.product-card {
  position: relative;
  overflow: hidden;
  background: var(--c-navy);
  aspect-ratio: 4/5;
}
.product-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0.55;
}
.product-card:hover .product-card__img {
  transform: scale(1.04);
  opacity: 0.35;
}
.product-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(25,36,61,0.95) 0%, transparent 100%);
}
.product-card__body h3 {
  color: var(--c-white);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.product-card__body p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.product-card__link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-earth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--transition);
}
.product-card:hover .product-card__link { gap: 14px; }
.product-card__link::after { content: '→'; }

/* ══════════════════════════════════════════
   INDUSTRIES
══════════════════════════════════════════ */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  margin-top: 56px;
  border: 1px solid rgba(255,255,255,0.1);
}
.industry-tile {
  padding: 32px 20px;
  text-align: center;
  background: var(--c-navy);
  transition: background var(--transition);
}
.industry-tile:hover { background: rgba(255,255,255,0.07); }
.industry-tile__icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
}
.industry-tile__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* ══════════════════════════════════════════
   CTA BAND
══════════════════════════════════════════ */
.cta-band {
  padding: 72px 24px;
  text-align: center;
}
.cta-band h2 {
  color: var(--c-white);
  font-weight: 300;
  font-style: italic;
  max-width: 680px;
  margin: 0 auto 32px;
}

/* ══════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════ */
.page-hero {
  padding: 160px 24px 80px;
  background: var(--c-navy);
  position: relative;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/page-hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  color: var(--c-white);
  font-weight: 300;
  max-width: 700px;
  margin-bottom: 16px;
}
.page-hero__sub {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.8;
}

/* ══════════════════════════════════════════
   PRODUCTS PAGE
══════════════════════════════════════════ */
.product-list { display: flex; flex-direction: column; gap: 0; }
.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  border-bottom: 1px solid var(--c-border);
}
.product-row:nth-child(even) { direction: rtl; }
.product-row:nth-child(even) > * { direction: ltr; }
.product-row__img {
  width: 100%; height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.product-row__body {
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--c-white);
}
.product-row__body h3 {
  color: var(--c-navy);
  font-size: 2rem;
  margin-bottom: 16px;
}
.product-row__body p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.product-row__forms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.form-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--c-border);
  border-radius: 2px;
  color: var(--c-ink-muted);
  background: var(--c-offwhite);
}

/* CNC section */
.cnc-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.cnc-section__body {
  padding: 72px 64px;
  background: var(--c-navy);
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cnc-section__body h2 { color: var(--c-white); margin-bottom: 20px; }
.cnc-section__body p  { color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.cnc-section__img { width: 100%; height: 100%; object-fit: cover; min-height: 480px; }

/* ══════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════ */
.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.story-section__body h2 { color: var(--c-navy); margin-bottom: 24px; }
.story-section__body p  { margin-bottom: 16px; }
.story-section__img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
}

/* Timeline */
.timeline { position: relative; margin-top: 56px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: var(--c-border);
  transform: translateX(-50%);
}
.timeline__item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: start;
  margin-bottom: 48px;
  gap: 0;
}
.timeline__item:nth-child(odd) .timeline__content  { grid-column: 1; text-align: right; padding-right: 48px; }
.timeline__item:nth-child(odd) .timeline__dot      { grid-column: 2; }
.timeline__item:nth-child(odd) .timeline__spacer   { grid-column: 3; }
.timeline__item:nth-child(even) .timeline__spacer  { grid-column: 1; }
.timeline__item:nth-child(even) .timeline__dot     { grid-column: 2; }
.timeline__item:nth-child(even) .timeline__content { grid-column: 3; text-align: left; padding-left: 48px; }
.timeline__dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}
.timeline__dot-ring {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--c-navy);
  background: var(--c-offwhite);
  flex-shrink: 0;
}
.timeline__year {
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-navy);
  white-space: nowrap;
}
.timeline__content h4 {
  font-family: var(--f-display);
  font-size: 1.2rem;
  color: var(--c-navy);
  margin-bottom: 6px;
}
.timeline__content p { font-size: 0.88rem; }
.timeline__spacer {}

/* Credentials */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  margin-top: 56px;
}
.cred-item {
  padding: 48px 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.cred-item__badge {
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--c-earth);
  margin-bottom: 12px;
}
.cred-item h4 { color: var(--c-white); font-size: 1.1rem; margin-bottom: 8px; }
.cred-item p  { color: rgba(255,255,255,0.6); font-size: 0.88rem; }

/* Facility stats */
.facility-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.facility-stat {
  padding: 32px;
  background: var(--c-offwhite);
  border: 1px solid var(--c-border);
  text-align: center;
}
.facility-stat__num {
  font-family: var(--f-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--c-navy);
  margin-bottom: 8px;
}
.facility-stat__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}

/* ══════════════════════════════════════════
   QUALITY PAGE
══════════════════════════════════════════ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 56px;
  border: 1px solid var(--c-border);
}
.process-step {
  padding: 36px 28px;
  border-right: 1px solid var(--c-border);
  position: relative;
  background: var(--c-white);
}
.process-step:last-child { border-right: none; }
.process-step__num {
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--c-border);
  line-height: 1;
  margin-bottom: 16px;
}
.process-step h4 { color: var(--c-navy); margin-bottom: 10px; font-size: 1rem; }
.process-step p  { font-size: 0.82rem; }

/* Hennecke callout */
.hennecke-callout {
  padding: 96px 24px;
  background: var(--c-navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hennecke-callout__quote {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--c-white);
  max-width: 860px;
  margin: 0 auto 24px;
  line-height: 1.3;
}
.hennecke-callout__attr {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-earth);
}
/* Decorative lines */
.hennecke-callout::before,
.hennecke-callout::after {
  content: '';
  position: absolute;
  top: 50%; left: 10%; right: 10%;
  height: 1px;
  background: rgba(255,255,255,0.05);
}
.hennecke-callout::before { transform: translateY(-40px); }
.hennecke-callout::after  { transform: translateY(40px); }

/* QC table */
.qc-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.qc-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  border-bottom: 2px solid var(--c-border);
}
.qc-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
.qc-table td:first-child { font-weight: 500; color: var(--c-navy); }
.qc-table tr:last-child td { border-bottom: none; }
.qc-table tr:hover td { background: var(--c-offwhite); }

/* ══════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-details h2 { color: var(--c-navy); margin-bottom: 32px; }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact-item__icon {
  width: 36px; height: 36px;
  background: var(--c-offwhite);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: block;
  margin-bottom: 4px;
}
.contact-item__val {
  font-size: 0.95rem;
  color: var(--c-ink);
  line-height: 1.6;
}
.contact-item__val a:hover { color: var(--c-brown); }

/* Form */
.contact-form { }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}
.form-input,
.form-select,
.form-textarea {
  font-family: var(--f-body);
  font-size: 0.9rem;
  padding: 12px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-ink);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--c-navy); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-top: 8px; }

/* Success message */
.form-success {
  display: none;
  padding: 20px;
  background: #EAF3DE;
  border: 1px solid #95BA9B;
  border-radius: var(--radius);
  color: #2a5a1a;
  font-size: 0.9rem;
  margin-top: 16px;
}

/* Map */
.map-wrap {
  margin-top: 72px;
  height: 400px;
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--c-ink);
  color: rgba(255,255,255,0.6);
  padding: 64px 24px 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer__brand {}
.footer__logo { height: 32px; width: auto; margin-bottom: 12px; }
.footer__brand-name {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--c-white);
  margin-bottom: 4px;
}
.footer__tagline { font-size: 0.8rem; }
.footer__address {
  font-size: 0.82rem;
  line-height: 1.8;
  margin-top: 16px;
}
.footer__col h5 {
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 16px;
}
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer__col ul a:hover { color: var(--c-white); }
.footer__contact-item {
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__contact-item a:hover { color: var(--c-earth); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy { font-size: 0.78rem; }
.footer__certs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__cert {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  color: rgba(255,255,255,0.45);
}

/* ══════════════════════════════════════════
   IMAGE PLACEHOLDERS
══════════════════════════════════════════ */
.img-placeholder {
  background: var(--c-earth);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--c-accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}
.img-placeholder::before {
  content: '[ Photo ]';
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--c-brown);
  opacity: 0.5;
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .difference__grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .products__grid     { grid-template-columns: 1fr 1fr; }
  .industries__grid   { grid-template-columns: repeat(3, 1fr); }
  .process-steps      { grid-template-columns: 1fr 1fr; }
  .process-step       { border-bottom: 1px solid var(--c-border); }
  .footer__grid       { grid-template-columns: 1fr 1fr; }
  .story-section      { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout     { grid-template-columns: 1fr; gap: 48px; }
  .cnc-section        { grid-template-columns: 1fr; }
  .product-row        { grid-template-columns: 1fr; }
  .product-row:nth-child(even) { direction: ltr; }
  .product-row__img   { min-height: 280px; height: 280px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px 20px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.mobile-open .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--c-navy);
    padding: 24px 40px 32px;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav.mobile-open .nav__cta { display: block; }
  .stats__grid        { grid-template-columns: 1fr 1fr; }
  .stats__item:nth-child(2) { border-right: none; }
  .stats__item:nth-child(3) { border-right: 1px solid var(--c-border); border-top: 1px solid var(--c-border); }
  .stats__item:nth-child(4) { border-right: none; border-top: 1px solid var(--c-border); }
  .difference__grid   { grid-template-columns: 1fr; }
  .products__grid     { grid-template-columns: 1fr; }
  .industries__grid   { grid-template-columns: repeat(2, 1fr); }
  .process-steps      { grid-template-columns: 1fr; }
  .cred-grid          { grid-template-columns: 1fr; }
  .facility-stats     { grid-template-columns: 1fr; }
  .footer__grid       { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom     { flex-direction: column; align-items: flex-start; }
  .form-grid          { grid-template-columns: 1fr; }
  .timeline::before   { left: 20px; }
  .timeline__item     { grid-template-columns: 0 40px 1fr; }
  .timeline__item:nth-child(odd) .timeline__content  { grid-column: 3; text-align: left; padding-right: 0; padding-left: 20px; }
  .timeline__item:nth-child(odd) .timeline__dot      { grid-column: 2; }
  .timeline__item:nth-child(odd) .timeline__spacer   { display: none; }
  .timeline__item:nth-child(even) .timeline__spacer  { display: none; }
  .timeline__item:nth-child(even) .timeline__content { padding-left: 20px; }
  .product-row__body  { padding: 36px 28px; }
  .cnc-section__body  { padding: 48px 28px; }
}