/* AMOX Industrial - global base styles shared by every page. */

:root {
  --orange: #ef4b0b;
  --orange-2: #ff7a16;
  --ink: #101216;
  --ink-2: #181c22;
  --muted: #6d727b;
  --line: #e8e8e5;
  --paper: #f6f6f3;
  --white: #fff;
  --site-bg: #f2f2f2;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(12, 15, 20, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--site-bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 10px;
  border-radius: 999px;
  background: var(--site-bg);
  border: 1px solid rgba(16, 18, 22, 0.1);
  color: var(--ink);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: 0 3px 12px rgba(12, 15, 20, 0.04);
  margin-bottom: 12px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: none;
  background: url("../img/amox-gear-mark.svg") center / contain no-repeat;
  filter: drop-shadow(0 2px 5px rgba(239, 75, 11, 0.35));
  animation: eyebrowGearSpin 4s linear infinite;
  will-change: transform;
}
.eyebrow:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 75, 11, 0.45);
  box-shadow: 0 8px 22px rgba(239, 75, 11, 0.14);
}
.hero .eyebrow,
.page-hero .eyebrow,
.section-dark .eyebrow {
  background: rgba(16, 20, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.display, h1, h2, h3 { line-height: 1.05; letter-spacing: -.035em; }
h1, h2, h3, h4, p { margin-top: 0; }
h2 { font-size: clamp(2.2rem, 5vw, 4.35rem); margin-bottom: 20px; }
.section { padding: 110px 0; }
.section-soft { background: var(--paper); }
.section-dark { color: white; background: var(--ink); }
.lead { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.section-dark .lead { color: #b9bdc5; }
.accent { color: var(--orange); }

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: white;
  background: #25d366;
  box-shadow: 0 10px 28px rgba(18, 140, 75, .32);
  font-size: 2rem;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: white;
  background: #1fbd5b;
  box-shadow: 0 14px 34px rgba(18, 140, 75, .42);
  transform: translateY(-3px);
}
.whatsapp-float:focus-visible { outline: 3px solid rgba(37, 211, 102, .3); outline-offset: 3px; }

/* Buttons (shared with the header CTA) */
.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 10px 24px rgba(239,75,11,.22);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover, .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(239,75,11,.3); }
.btn-outline { border-color: rgba(255,255,255,.28); color: white; background: transparent; box-shadow: none; }
.btn-dark { background: var(--ink); box-shadow: none; }
.btn-light { border-color: var(--line); color: var(--ink); background: var(--site-bg); box-shadow: none; }
.btn, .nav-cta, .quote-small { position: relative; isolation: isolate; overflow: hidden; }
.btn::after, .nav-cta::after, .quote-small::after {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.36) 49%, transparent 63%);
  transform: translateX(-125%) rotate(8deg);
  transition: transform .85s cubic-bezier(.22,1,.36,1);
}
.btn:hover::after, .nav-cta:hover::after, .quote-small:hover::after { transform: translateX(125%) rotate(8deg); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: .86rem;
  font-weight: 850;
}
.text-link i { transition: transform .2s; }
.text-link:hover i { transform: translateX(3px); }

/* Shared icon box (home trust strip + about value cards) */
.trust-icon-box {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(239,75,11,.08);
  border: 1px solid rgba(239,75,11,.16);
  color: var(--orange);
  font-size: 1.3rem;
  transition: all .3s cubic-bezier(.22,1,.36,1);
}

/* Split media + feature blocks (home, about, industries) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.image-frame { position: relative; min-height: 520px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.image-frame img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: right center; }
.image-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.22); border-radius: inherit; pointer-events: none; }
.metric-card { position: absolute; left: 25px; bottom: 25px; padding: 20px 24px; border-radius: 12px; color: white; background: rgba(16,18,22,.91); backdrop-filter: blur(12px); }
.metric-card b { display: block; color: var(--orange-2); font-size: 2rem; line-height: 1; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.feature { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--site-bg); }
.feature b { display: block; margin-bottom: 4px; font-size: .9rem; }
.feature span { color: var(--muted); font-size: .82rem; }

/* Inner page hero */
.page-hero { position: relative; min-height: 720px; display: grid; align-content: center; color: white; background: var(--ink); overflow: hidden; }
.page-hero .container { padding: 70px 0; }
.page-hero::after { content: ""; position: absolute; inset: 0 0 0 55%; background: linear-gradient(90deg, var(--ink), transparent), url("../img/factory-sparks.jpg") center / cover; opacity: .72; transform-origin: center; will-change: opacity, transform, filter, background-position; }
.page-hero--about::after { background: linear-gradient(90deg, var(--ink), transparent), url("../img/supply.jpg") center / cover no-repeat; }
.page-hero--products::after { background: linear-gradient(90deg, var(--ink), transparent), url("../img/engineering.jpg") center / cover no-repeat; }
.page-hero--industries::after { background: linear-gradient(90deg, var(--ink), transparent), url("../img/industries-grid.jpg") center / cover no-repeat; }
.page-hero--contact::after { background: linear-gradient(90deg, var(--ink), transparent), url("../img/hero-factory.jpg") center / cover no-repeat; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 900px; margin: 20px 0 26px; font-size: clamp(3rem, 5.4vw, 5.5rem); font-weight: 900; line-height: 1.02; text-transform: uppercase; }
.page-hero p { max-width: 610px; color: #c6c8cc; font-size: 1.1rem; }
.motion-ready .page-hero::after,
.motion-ready .hero-video {
  animation:
    pageHeroMediaEnter 1.15s cubic-bezier(.22,1,.36,1) both,
    pageHeroMediaDrift 14s ease-in-out 1.15s infinite alternate;
  animation-play-state: paused;
}
.motion-ready .hero-video { --hero-media-opacity: 1; }
.motion-ready.motion-running .page-hero::after,
.motion-ready.motion-running .hero-video { animation-play-state: running; }

/* Forms (RFQ modal on every page + contact page) */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .78rem; font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 15px; border: 1px solid #d7d9dd; border-radius: 8px; outline: none; background: var(--site-bg); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239,75,11,.1); }
.field textarea { min-height: 138px; resize: vertical; }
.file-field input[type="file"] { padding: 8px; color: var(--muted); cursor: pointer; }
.file-field input[type="file"]::file-selector-button { margin-inline-end: 12px; padding: 10px 14px; border: 0; border-radius: 6px; color: white; background: var(--ink); font: inherit; font-weight: 750; cursor: pointer; transition: background-color .2s ease; }
.file-field input[type="file"]:hover::file-selector-button { background: var(--orange); }
.field-help { color: var(--muted); font-size: .75rem; line-height: 1.55; }
.form-message { display: none; margin-top: 18px; padding: 14px; border-radius: 8px; color: #18572d; background: #eaf8ee; font-size: .86rem; }
.form-message.show { display: block; }
.form-message.is-error { color: #8a1f17; background: #fcebea; }
.moweb-honeypot { position: absolute !important; inset-inline-start: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-grid button[disabled] { cursor: wait; opacity: .68; }

/* RFQ modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; background: rgba(6,8,10,.78); backdrop-filter: blur(8px); }
.modal.open { display: grid; }
.modal-panel { width: min(640px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 18px; background: var(--site-bg); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 28px 30px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 6px 0 0; font-size: 2rem; }
.modal-close { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--paper); font-size: 1.05rem; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.modal-close:hover { background: #e5e5e0; color: var(--orange); }
.modal-body { padding: 26px 30px 32px; }
.selection-box { margin-bottom: 22px; padding: 14px 16px; border-left: 3px solid var(--orange); background: #fff4ed; font-size: .86rem; }
.modal.open .modal-panel { animation: premiumModalIn .55s cubic-bezier(.22,1,.36,1) both; }
.modal.open .selection-box { animation: premiumRevealUp .6s cubic-bezier(.22,1,.36,1) .1s both; }

/* Motion utilities used by page Heroes, scroll-reveal sections and overlays. */
.motion-header { animation: premiumHeaderIn .9s cubic-bezier(.22,1,.36,1) .12s both; }
.motion-ready .motion-reveal {
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(0,38px,0);
  transition: none;
  will-change: opacity, transform, filter;
}
.motion-ready.motion-running .motion-reveal {
  transition: opacity 1s cubic-bezier(.22,1,.36,1) var(--motion-delay,0ms), transform 1.05s cubic-bezier(.22,1,.36,1) var(--motion-delay,0ms), filter .9s ease var(--motion-delay,0ms);
}
.motion-ready .motion-reveal.motion-soft { transform: translate3d(0,24px,0) scale(.976); }
.motion-ready .motion-reveal.motion-left { transform: translate3d(-44px,0,0); }
.motion-ready .motion-reveal.motion-right { transform: translate3d(44px,0,0); }
.motion-ready .motion-reveal.is-visible { opacity: 1; filter: blur(0); transform: translate3d(0,0,0) scale(1); }
.motion-ready .motion-media { overflow: hidden; }
.motion-media img { transform: scale(1.07); transition: transform 1.45s cubic-bezier(.22,1,.36,1), filter .8s ease; }
.motion-media.is-visible img { transform: scale(1); }
.motion-media.is-visible:hover img { transform: scale(1.035); }

@keyframes premiumHeaderIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes premiumRevealUp { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes premiumModalIn { from { opacity: 0; transform: translateY(28px) scale(.97); filter: blur(8px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes eyebrowGearSpin { to { transform: rotate(360deg); } }
@keyframes pageHeroMediaEnter {
  from { opacity: 0; filter: blur(8px) saturate(.75); }
  to { opacity: var(--hero-media-opacity, .72); filter: blur(0) saturate(1); }
}
@keyframes pageHeroMediaDrift {
  from { background-position: 0 0, 50% 50%; transform: scale(1.035); }
  to { background-position: 0 0, 43% 50%; transform: scale(1.09); }
}

@media (max-width: 740px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 76px 0; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .image-frame, .image-frame img { min-height: 390px; }
  .feature-list { grid-template-columns: 1fr; }
  .page-hero { min-height: 680px; }
  .page-hero h1 { font-size: clamp(2.65rem, 12vw, 4rem); }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 1.8rem; }
  .motion-ready .motion-reveal.motion-left,
  .motion-ready .motion-reveal.motion-right { transform: translate3d(0,28px,0); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .eyebrow::before { animation: none !important; }
  .page-hero::after { animation: none !important; transform: none !important; filter: none !important; }
  .motion-header, .motion-section, .motion-reveal, .motion-media, .motion-media img, .hero, .hero::before, .hero-index, .modal-panel, .selection-box {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}
