/* ============================================================
   Mondial Manufacturing Solutions — shared design system
   Cinematic industrial editorial. Archivo display · IBM Plex Sans
   body · IBM Plex Mono spec-labels. Used by interior pages;
   index.html carries the same system inline (converge later).
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #090D13;
  --navy: #0E1B2C;
  --navy-2: #13273E;
  --gold: #CE9A3A;
  --gold-lt: #E7C87A;
  --gold-deep: #A67A2E;
  --bone: #ECE7D9;
  --bone-2: #F5F2EA;
  --steel: #8A97A6;
  --text-dark: #16202D;
  --text-body: #47535F;
  --line-d: rgba(255,255,255,0.11);
  --line-l: rgba(20,32,48,0.12);
  --disp: 'Archivo', sans-serif;
  --body: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--text-body); background: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.kicker { font-family: var(--mono); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.mission { font-family: var(--mono); font-size: 1.12rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-lt); margin-top: 38px; }

/* motion */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- NAV ---------- */
.nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(9,13,19,0.9); backdrop-filter: blur(12px); border-bottom-color: var(--line-d); }
.nav-in { max-width: 1240px; margin: 0 auto; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { line-height: 1; }
.brand-main { font-family: var(--disp); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.02em; color: #fff; }
.brand-sub { font-family: var(--mono); font-size: 1.02rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-lt); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { font-family: var(--body); font-size: 1.05rem; font-weight: 500; color: #D6DCE3; padding: 9px 16px; border-radius: 6px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-links a.active { color: #fff; background: rgba(255,255,255,0.1); }
.nav-cta { color: var(--ink) !important; background: var(--gold) !important; font-weight: 600 !important; }
.nav-cta:hover { background: var(--gold-lt) !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; z-index: 101; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.on span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.on span:nth-child(2) { opacity: 0; }
.nav-toggle.on span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- INTERIOR PAGE HERO (compact) ---------- */
.phero { position: relative; overflow: hidden; background: var(--ink); }
.phero-bg { position: absolute; inset: -30px; background: url('images/feed-mill-interior.jpg') center 40% / cover no-repeat; filter: blur(4px) brightness(0.55) saturate(0.8); transform: scale(1.12); }
.phero-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,13,19,0.95) 4%, rgba(9,13,19,0.55) 60%, rgba(9,13,19,0.35)); }
.phero-in { position: relative; z-index: 3; padding: 150px 0 52px; }
.phero h1 { font-family: var(--disp); font-weight: 800; color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.0; letter-spacing: -0.03em; margin: 10px 0 18px; }
.phero h1 span { color: var(--gold); }
.phero-sub { font-size: clamp(1rem, 1.4vw, 1.15rem); color: #C6CDD5; max-width: 62ch; line-height: 1.65; font-weight: 300; }
.phero-sub b { color: #fff; font-weight: 500; }

/* ---------- SECTIONS ---------- */
.sec { padding: 88px 0; }
.sec-bone { background: var(--bone); color: var(--text-dark); }
.sec-navy { background: var(--navy); color: #fff; border-top: 1px solid var(--line-d); }
.sec-ink { background: var(--ink); color: #fff; }
.sec h2 { font-family: var(--disp); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.05; letter-spacing: -0.02em; margin: 12px 0 16px; }
.sec-bone h2 { color: var(--text-dark); }
.sec-navy h2 span, .sec-ink h2 span { color: var(--gold); }
.sec-bone h2 em { font-style: normal; color: var(--gold-deep); }
.sec p.lead { font-size: 1.06rem; line-height: 1.72; max-width: 66ch; }
.sec-bone p.lead { color: #4a5765; }
.sec-navy p.lead, .sec-ink p.lead { color: #B9C1CA; }
.sec-bone .kicker { color: var(--gold-deep); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--body); font-size: 0.98rem; font-weight: 600; padding: 15px 28px; border-radius: 7px; transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s; }
.btn svg { width: 15px; height: 15px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.28); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.btn-phone { background: rgba(255,255,255,0.06); border: 1px solid var(--line-d); color: #fff; }
.btn-phone:hover { border-color: var(--gold); background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-phone svg { color: var(--gold); }

/* text link with arrow */
.tlink { display: inline-flex; align-items: center; gap: 9px; font-family: var(--body); font-weight: 600; font-size: 0.96rem; }
.tlink .ar { display: inline-block; transition: transform 0.2s; color: var(--gold-deep); }
.tlink:hover .ar { transform: translateX(5px); }

/* spec panel (navy card with gold top rule) */
.panel { background: var(--navy); border-radius: 14px; padding: 34px 32px; position: relative; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(9,13,19,0.6); }
.panel::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--gold), transparent 70%); }
.panel-kick { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: #AEB9C4; }
.panel ul { list-style: none; margin-top: 20px; position: relative; }
.panel li { display: flex; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-d); font-family: var(--body); font-size: 0.98rem; color: #DCE2E8; }
.panel li:last-child { border-bottom: 0; }
.panel li .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; transform: translateY(-2px); }
.panel li b { color: #fff; font-weight: 600; }
.panel li span { color: var(--steel); font-family: var(--mono); font-size: 0.82rem; }

/* two-column feature row */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* checklist (bone bg) */
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin-top: 24px; }
.checks li { display: flex; align-items: baseline; gap: 10px; font-size: 0.98rem; color: #3d4a58; }
.checks li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-lt)); flex-shrink: 0; transform: translateY(-1px); }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tag { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; color: #CBD3DB; border: 1px solid var(--line-d); border-radius: 100px; padding: 9px 17px; }
.sec-bone .tag { color: #4a5765; border-color: var(--line-l); }

/* CTA band */
.endcta { position: relative; background: var(--ink); overflow: hidden; }
.endcta-bg { position: absolute; inset: 0; background: url('images/feed-mill-interior.jpg') center 60% / cover no-repeat; opacity: 0.3; filter: blur(2px); }
.endcta-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,13,19,0.95), rgba(9,13,19,0.72)); }
.endcta-in { position: relative; z-index: 2; text-align: center; padding: 96px 0; }
.endcta h2 { font-family: var(--disp); font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.1rem); color: #fff; letter-spacing: -0.02em; line-height: 1.06; }
.endcta p { color: #B9C1CA; font-size: 1.08rem; max-width: 54ch; margin: 18px auto 34px; line-height: 1.7; }
.endcta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.foot { background: #06090E; padding: 62px 0 34px; border-top: 1px solid var(--line-d); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
.foot .brand-main { font-size: 1.2rem; }
.foot .brand-sub { color: var(--gold); }
.foot-brand p { color: var(--steel); font-size: 0.9rem; line-height: 1.65; margin-top: 14px; max-width: 40ch; }
.foot-contact { margin-top: 16px; display: flex; flex-direction: column; gap: 5px; }
.foot-contact a { color: var(--gold-lt); font-weight: 500; font-size: 0.92rem; }
.foot h5 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #9aa6b2; margin-bottom: 16px; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot ul a { color: var(--steel); font-size: 0.92rem; transition: color 0.2s; }
.foot ul a:hover { color: var(--gold-lt); }
.foot-base { border-top: 1px solid var(--line-d); margin-top: 40px; padding-top: 22px; text-align: center; color: #5b6773; font-size: 0.76rem; line-height: 1.7; font-family: var(--mono); letter-spacing: 0.04em; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 0; height: 100dvh; background: rgba(9,13,19,0.98); backdrop-filter: blur(8px); flex-direction: column; justify-content: center; gap: 10px; transform: translateX(100%); transition: transform 0.35s ease; }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.2rem; padding: 14px 30px; }
  .nav-toggle { display: block; }
  .duo { grid-template-columns: 1fr; gap: 30px; }
  .checks { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .nav-in { padding: 16px 22px; }
  .phero-in { padding: 130px 0 40px; }
  .sec { padding: 56px 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
