/* =================================================================
   ARIMEC Industries — style.css
   Pure CSS. No framework. Mobile-first. Institutional tone.
   Palette: white background, navy ink (#0B1F3B), soft grey lines,
   amber accent rule. Clean neo-grotesk typography.
================================================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, figure, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }
a { color: inherit; text-decoration: none; }

/* ---------- Tokens ---------- */
:root {
  --ink: #0B1F3B;
  --ink-700: #071427;
  --graphite: #3B4252;
  --muted: #6B7280;
  --line: #E5E7EB;
  --line-strong: #D4D9E1;
  --soft: #F5F6F8;
  --surface: #FFFFFF;
  --accent: #C69A4B;
  --max-shell: 1280px;
  --radius: 0;
  --pad-x: clamp(1.25rem, 3vw, 2.5rem);
  --t-fast: 150ms;
}

/* ---------- Typography ---------- */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4 {
  font-family: inherit;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.25; }
p { color: var(--graphite); }

::selection { background: var(--ink); color: #fff; }

/* ---------- Utility ---------- */
.shell {
  width: 100%;
  max-width: var(--max-shell);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.hairline { border-top: 1px solid var(--line); }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--graphite);
}
.accent-rule { position: relative; padding-top: 0.75rem; }
.accent-rule::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}
.muted { color: var(--graphite); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn, .btn-ghost, .btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.8rem 1.15rem;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
}
.btn {
  background: var(--ink);
  color: #fff;
}
.btn:hover { background: var(--ink-700); }
.btn-ghost {
  color: var(--ink);
  padding: 0.8rem 0.25rem;
}
.btn-ghost:hover { color: var(--ink-700); }
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { background: var(--soft); }
.btn svg, .btn-ghost svg, .btn-light svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}

/* ---------- Header / Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav__brand svg { width: 30px; height: 30px; color: var(--ink); }
.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav__brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__brand-sub {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--graphite);
  margin-top: 2px;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.875rem;
  color: var(--ink);
  transition: color var(--t-fast);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--accent); }
.nav__cta { display: none; }
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.nav__toggle svg { width: 20px; height: 20px; }
.nav__panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}
.nav__panel.is-open { display: block; }
.nav__panel ul {
  display: flex;
  flex-direction: column;
}
.nav__panel li + li { border-top: 1px solid var(--line); }
.nav__panel a {
  display: block;
  padding: 0.85rem 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.nav__panel .btn { width: 100%; justify-content: center; margin-top: 1rem; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__panel { display: none !important; }
}

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-dark {
  background: var(--ink);
  color: #fff;
}
.section-dark h2 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.75); }

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.hero__copy h1 {
  max-width: 560px;
}
.hero__copy p {
  margin-top: 1.25rem;
  max-width: 460px;
  font-size: clamp(1rem, 1.3vw, 1.0625rem);
  line-height: 1.7;
}
.hero__ctas {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}
.hero__media {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: var(--soft);
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 5fr 7fr;
  }
}

/* ---------- Section heading pattern ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 2.5rem;
  }
}
.section-head h2 { margin-top: 0.5rem; }
.section-head p { max-width: 460px; font-size: 0.9375rem; }

/* ---------- Platforms grid ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.platform-card {
  background: #fff;
  display: flex;
  flex-direction: column;
}
.platform-card__body {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.platform-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.platform-card__icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.platform-card__icon svg { width: 18px; height: 18px; }
.platform-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.platform-card__name sup { font-size: 0.625rem; font-weight: 400; margin-left: 2px; }
.platform-card__tag {
  font-size: 0.75rem;
  color: var(--graphite);
  margin-top: 2px;
}
.platform-card__copy {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--graphite);
}
.platform-card__foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.platform-card__more {
  font-size: 0.875rem;
  color: var(--ink);
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  transition: color var(--t-fast);
}
.platform-card__more:hover { color: var(--accent); }
.platform-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  background: var(--soft);
  overflow: hidden;
}
.platform-card__img img {
  width: 100%; height: 100%; object-fit: cover;
}
@media (min-width: 720px) {
  .platform-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .platform-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Projects (Selected) ---------- */
.projects-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.projects-title .rule {
  height: 1px;
  width: 2.5rem;
  background: var(--line);
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 960px) {
  .projects-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.project {
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  grid-template-columns: 1fr;
}
.project__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--soft);
  overflow: hidden;
}
.project__media img { width: 100%; height: 100%; object-fit: cover; }
.project__body {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  display: flex;
  flex-direction: column;
}
.project__status {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--graphite);
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
}
.project__title {
  margin-top: 0.9rem;
  font-size: 1.125rem;
  font-weight: 600;
}
.project__copy {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}
.project__metrics {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.metric {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.metric__icon {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.metric__icon svg { width: 14px; height: 14px; }
.metric__label { font-size: 0.75rem; color: var(--graphite); }
.metric__value { font-size: 0.9375rem; color: var(--ink); }
.project__more {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.project__more svg { width: 16px; height: 16px; flex-shrink: 0; }
.project__more:hover { color: var(--accent); }
@media (min-width: 600px) {
  .project { grid-template-columns: 2fr 3fr; }
  .project__media { aspect-ratio: auto; min-height: 240px; }
}

/* ---------- Principles (home) / pillars (about) ---------- */
.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.principles > div {
  background: #fff;
  padding: clamp(1.25rem, 2vw, 1.75rem);
}
.principles__index {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
}
.principles h3 {
  margin-top: 0.75rem;
  font-size: 1rem;
}
.principles p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}
@media (min-width: 700px) {
  .principles { grid-template-columns: 1fr 1fr; }
}

/* ---------- Trust strip (footer) ---------- */
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  padding: 2.5rem 0;
}
.trust__item { display: flex; gap: 0.75rem; align-items: flex-start; }
.trust__icon {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex: 0 0 auto;
}
.trust__icon svg { width: 16px; height: 16px; }
.trust__title { font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.trust__text { font-size: 0.75rem; color: var(--graphite); margin-top: 2px; }
@media (min-width: 820px) {
  .trust { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
}
.footer__brand { max-width: 320px; }
.footer__brand .nav__brand { margin-bottom: 1.25rem; }
.footer__brand p { font-size: 0.875rem; margin-bottom: 1rem; }
.footer__brand .loc { color: var(--ink); font-size: 0.875rem; }
.footer__brand a.email { color: var(--ink); font-size: 0.875rem; }
.footer__brand a.email:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__col h4 { margin-bottom: 1rem; }
.footer__col ul li { margin-bottom: 0.6rem; }
.footer__col a { font-size: 0.875rem; color: var(--ink); transition: color var(--t-fast); }
.footer__col a:hover { color: var(--accent); }
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0;
}
.footer__legal p { font-size: 0.75rem; color: var(--graphite); max-width: 820px; line-height: 1.6; }
.footer__legal .rights { white-space: nowrap; }
@media (min-width: 900px) {
  .footer__main {
    grid-template-columns: 4fr 3fr 3fr 2fr;
    gap: 3rem;
  }
  .footer__legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
}
.contact-detail p { font-size: 0.9375rem; line-height: 1.7; }
.contact-detail dl { margin-top: 1.75rem; }
.contact-detail dt {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--graphite);
  margin-top: 1.25rem;
}
.contact-detail dd {
  margin: 0.4rem 0 0 0;
  font-size: 0.9375rem;
  color: var(--ink);
}
.contact-detail dd a { text-decoration: underline; text-underline-offset: 4px; }

.form {
  display: grid;
  gap: 1.1rem;
}
.form__row {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 640px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
}
.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  padding: 0.85rem 0.95rem;
  border-radius: 0;
  transition: border-color var(--t-fast);
  width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form__status {
  font-size: 0.8125rem;
  color: var(--graphite);
  min-height: 1.25rem;
}
.form__status.is-error { color: #9B2C2C; }
.form__status.is-ok { color: #1f6e43; }
.compliance {
  font-size: 0.75rem;
  color: var(--graphite);
  line-height: 1.6;
  max-width: 56ch;
}

/* ---------- Platforms page — detailed sections ---------- */
.platform-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 960px) {
  .platform-detail { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}
.platform-detail__img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--soft);
  border: 1px solid var(--line);
  overflow: hidden;
}
.platform-detail__img img { width: 100%; height: 100%; object-fit: cover; }
.platform-detail__body h2 sup { font-size: 0.75rem; font-weight: 400; margin-left: 4px; vertical-align: super; }
.platform-detail__lists {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .platform-detail__lists { grid-template-columns: 1fr 1fr; }
}
.platform-detail__lists ul li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--ink);
  padding: 0.25rem 0;
}
.platform-detail__lists ul li::before {
  content: "";
  flex: 0 0 auto;
  margin-top: 0.8rem;
  height: 1px; width: 10px;
  background: var(--ink);
}
.is-reversed { background: var(--soft); }
.is-reversed .platform-detail { direction: rtl; }
.is-reversed .platform-detail > * { direction: ltr; }
@media (max-width: 959px) {
  .is-reversed .platform-detail { direction: ltr; }
}

/* ---------- Page header band ---------- */
.page-head { border-bottom: 1px solid var(--line); }
.page-head__grid {
  display: grid;
  gap: 1.5rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
@media (min-width: 960px) {
  .page-head__grid { grid-template-columns: 7fr 5fr; gap: 3rem; align-items: end; }
}
.page-head h1 { max-width: 720px; }
.page-head p { font-size: 0.9375rem; line-height: 1.7; max-width: 480px; }

/* ---------- About narrative & stats ---------- */
.narrative {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 960px) {
  .narrative { grid-template-columns: 4fr 8fr; gap: 3rem; }
}
.narrative p { font-size: 1rem; line-height: 1.75; max-width: 640px; }
.narrative p + p { margin-top: 1.25rem; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat { background: #fff; padding: clamp(1.25rem, 2vw, 2rem); }
.stat__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
}
.stat__value {
  margin-top: 0.6rem;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stat__caption {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--graphite);
}
@media (min-width: 820px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  align-items: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 520px; font-size: 0.9375rem; }
@media (min-width: 760px) {
  .cta-band__inner { grid-template-columns: 1fr auto; gap: 2rem; }
}

/* ---------- Reveal utility (currently a no-op; kept as a class hook) ---------- */
/* Institutional tone: no animation, just consistent layout. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Print ---------- */
@media print {
  .nav, .footer, .cta-band, .nav__toggle, .nav__panel { display: none !important; }
  body { color: #000; background: #fff; }
}
