/*
Theme Name: Mirova Manufacturing
Author: Codex
Description: Custom WordPress theme for Mirova LLC vitamin and supplement manufacturing.
Version: 1.0.0
Text Domain: mirova
*/

:root {
  --ink: #18201d;
  --muted: #5f6f68;
  --line: #dbe3df;
  --soft: #f3f7f4;
  --paper: #ffffff;
  --forest: #173f35;
  --green: #2f7d5a;
  --mint: #d9eee3;
  --gold: #c79d45;
  --steel: #51616a;
  --danger: #923d32;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-shell,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--forest), var(--green));
  border-radius: 8px;
  font-weight: 900;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--steel);
  font-size: 14px;
  font-weight: 700;
}

.primary-menu a {
  padding: 8px 0;
}

.primary-menu a:hover {
  color: var(--forest);
}

.quote-link,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff;
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 6px;
  font-weight: 800;
}

.button.secondary {
  color: var(--forest);
  background: transparent;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  background: #0d1714;
  color: #fff;
}

.hero > .section-inner {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 760px;
  align-items: center;
  padding: 72px 0 96px;
}

.hero-ops {
  isolation: isolate;
}

.hero-ops::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 19, 17, 0.95), rgba(10, 19, 17, 0.82) 43%, rgba(10, 19, 17, 0.34)),
    url("https://images.unsplash.com/photo-1581093458791-9d15482442f6?auto=format&fit=crop&w=1900&q=82") center / cover;
  transform: scale(1.02);
}

.hero-ops::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(circle at 70% 18%, rgba(199, 157, 69, 0.32), transparent 24%),
    linear-gradient(180deg, transparent 62%, rgba(9, 15, 14, 0.72));
  pointer-events: none;
}

.hero-content {
  max-width: 760px;
}

.ops-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.ops-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridDrift 18s linear infinite;
}

.machine-panel {
  position: absolute;
  right: clamp(24px, 7vw, 120px);
  width: min(42vw, 560px);
  min-width: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(232, 242, 236, 0.12);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.panel-fill {
  top: 132px;
  height: 210px;
}

.panel-pack {
  right: clamp(18px, 10vw, 170px);
  bottom: 162px;
  height: 190px;
  width: min(38vw, 500px);
}

.panel-label,
.qa-panel span {
  position: absolute;
  top: 16px;
  left: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fill-heads {
  position: absolute;
  top: 54px;
  right: 42px;
  left: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.fill-heads span {
  height: 68px;
  border-radius: 4px 4px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(180, 196, 187, 0.16));
  animation: fillPulse 2.8s ease-in-out infinite;
}

.fill-heads span:nth-child(2) {
  animation-delay: 0.35s;
}

.fill-heads span:nth-child(3) {
  animation-delay: 0.7s;
}

.fill-heads span:nth-child(4) {
  animation-delay: 1.05s;
}

.belt {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  height: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 22px, rgba(255, 255, 255, 0.04) 22px 44px),
    rgba(9, 18, 16, 0.55);
}

.belt i {
  position: absolute;
  top: 11px;
  width: 28px;
  height: 32px;
  border-radius: 7px 7px 10px 10px;
  background:
    linear-gradient(180deg, #f7fbf8 0 24%, #b8d3c2 24% 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
  animation: bottleMove 7.5s linear infinite;
}

.belt i:nth-child(1) { animation-delay: -0.2s; }
.belt i:nth-child(2) { animation-delay: -1.6s; }
.belt i:nth-child(3) { animation-delay: -3s; }
.belt i:nth-child(4) { animation-delay: -4.4s; }
.belt i:nth-child(5) { animation-delay: -5.8s; }

.bottle-row {
  position: absolute;
  right: 42px;
  bottom: 34px;
  left: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.bottle-row span {
  height: 88px;
  border-radius: 10px 10px 18px 18px;
  background:
    linear-gradient(180deg, #ffffff 0 18%, #dfe9e3 18% 28%, #8ab49a 28% 66%, #f5f7f4 66% 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.62);
}

.scan-line {
  position: absolute;
  top: 48px;
  bottom: 18px;
  width: 3px;
  background: var(--gold);
  box-shadow: 0 0 20px rgba(199, 157, 69, 0.9);
  animation: scanPass 3.8s ease-in-out infinite;
}

.qa-panel {
  position: absolute;
  right: min(7vw, 80px);
  top: 390px;
  width: 210px;
  height: 122px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(16, 31, 27, 0.72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.qa-panel strong {
  position: absolute;
  left: 18px;
  bottom: 36px;
  color: #bce8c9;
  font-size: 34px;
  letter-spacing: 0.06em;
}

.qa-panel em {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-style: normal;
}

.capsule-stream {
  position: absolute;
  right: 12%;
  top: 86px;
  width: 410px;
  height: 120px;
  transform: rotate(-8deg);
}

.capsule-stream span {
  position: absolute;
  width: 54px;
  height: 21px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0f6f1 0 50%, var(--gold) 50% 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  animation: capsuleFloat 7s ease-in-out infinite;
}

.capsule-stream span:nth-child(1) { left: 0; top: 52px; animation-delay: -0.2s; }
.capsule-stream span:nth-child(2) { left: 68px; top: 12px; animation-delay: -1.1s; }
.capsule-stream span:nth-child(3) { left: 132px; top: 72px; animation-delay: -2s; }
.capsule-stream span:nth-child(4) { left: 206px; top: 30px; animation-delay: -2.9s; }
.capsule-stream span:nth-child(5) { left: 270px; top: 86px; animation-delay: -3.8s; }
.capsule-stream span:nth-child(6) { left: 340px; top: 38px; animation-delay: -4.7s; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 30px;
  color: #edf7f1;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.trust-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--ink);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.trust-item {
  padding: 20px;
  border-right: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  color: var(--forest);
  font-size: 24px;
}

.trust-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: var(--soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.metric-card,
.insight-card {
  min-height: 230px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card .icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 28px;
  color: var(--forest);
  background: var(--mint);
  border-radius: 8px;
  font-weight: 900;
}

.service-card h3,
.metric-card h3,
.insight-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.service-card p,
.metric-card p,
.insight-card p {
  margin: 0;
  color: var(--muted);
}

.manufacturing-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.6fr);
  gap: 44px;
  align-items: center;
}

.photo-panel {
  min-height: 470px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(23, 63, 53, 0), rgba(23, 63, 53, 0.65)),
    url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1200&q=82") center / cover;
}

.capability-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.capability-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--steel);
  font-weight: 720;
}

.quality {
  color: #fff;
  background: var(--forest);
}

.quality .section-heading p,
.quality .eyebrow {
  color: #cce4d7;
}

.quality-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.quality-list li {
  padding-left: 26px;
  background: linear-gradient(var(--gold), var(--gold)) left 0.76em / 10px 10px no-repeat;
  color: #f5fbf8;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card strong {
  display: block;
  color: var(--green);
  font-size: 40px;
  line-height: 1;
}

.cta {
  padding: 86px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(24, 32, 29, 0.93), rgba(23, 63, 53, 0.78)),
    url("https://images.unsplash.com/photo-1584308666744-24d5c474f2ae?auto=format&fit=crop&w=1600&q=82") center / cover;
}

.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.cta h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
}

.cta p {
  max-width: 680px;
  margin: 14px 0 0;
  color: #e6f1eb;
  font-size: 18px;
}

.site-footer {
  padding: 54px 0 34px;
  color: #d9e4de;
  background: #111917;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #9fb0a8;
  font-size: 13px;
}

.page-hero {
  padding: 86px 0 58px;
  color: #fff;
  background: linear-gradient(135deg, var(--forest), #233733);
}

.page-hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
}

.content-page {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 86px;
}

.content-page h2 {
  margin-top: 38px;
  font-size: 30px;
}

.content-page p,
.content-page li {
  color: var(--muted);
  font-size: 18px;
}

.quote-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-form input,
.quote-form textarea,
.quote-form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.quote-form textarea {
  min-height: 150px;
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 160px 80px, 160px 80px;
  }
}

@keyframes fillPulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.72;
  }
  48% {
    transform: translateY(18px);
    opacity: 1;
  }
}

@keyframes bottleMove {
  from {
    left: -40px;
  }
  to {
    left: calc(100% + 40px);
  }
}

@keyframes scanPass {
  0%,
  100% {
    left: 36px;
    opacity: 0.35;
  }
  50% {
    left: calc(100% - 40px);
    opacity: 1;
  }
}

@keyframes capsuleFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0.68;
  }
  50% {
    transform: translate3d(18px, -18px, 0) rotate(14deg);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .primary-menu {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .hero,
  .hero > .section-inner {
    min-height: 1040px;
  }

  .hero > .section-inner {
    align-items: start;
    padding-top: 92px;
  }

  .hero-ops::before {
    background:
      linear-gradient(180deg, rgba(10, 19, 17, 0.94), rgba(10, 19, 17, 0.78) 56%, rgba(10, 19, 17, 0.42)),
      url("https://images.unsplash.com/photo-1581093458791-9d15482442f6?auto=format&fit=crop&w=1400&q=80") center / cover;
  }

  .machine-panel {
    right: 24px;
    left: 24px;
    width: auto;
    min-width: 0;
  }

  .panel-fill {
    top: 690px;
    height: 168px;
  }

  .panel-pack {
    display: none;
  }

  .qa-panel {
    top: 890px;
    right: 24px;
    width: 190px;
  }

  .capsule-stream {
    top: 348px;
    right: 30px;
    width: 310px;
    opacity: 0.72;
  }

  .trust-grid,
  .card-grid,
  .metrics,
  .quality-list,
  .section-heading,
  .manufacturing-band,
  .cta-box,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    position: static;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .section-inner,
  .footer-inner,
  .content-page {
    width: min(100% - 28px, var(--max));
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1;
  }

  .hero,
  .hero > .section-inner {
    min-height: 1110px;
  }

  .hero > .section-inner {
    padding-top: 70px;
    padding-bottom: 42px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 280px;
  }

  .panel-fill {
    top: 820px;
    height: 138px;
  }

  .fill-heads {
    right: 24px;
    left: 24px;
    gap: 12px;
  }

  .belt {
    bottom: 20px;
  }

  .qa-panel {
    top: 980px;
    right: 14px;
    left: 14px;
    width: auto;
    height: 92px;
  }

  .qa-panel strong {
    font-size: 25px;
  }

  .capsule-stream {
    display: none;
  }

  .section {
    padding: 62px 0;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .hero-content {
    max-width: 650px;
  }

  .hero h1 {
    font-size: clamp(54px, 6.2vw, 72px);
  }

  .machine-panel {
    opacity: 0.76;
  }
}

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