/* ============================================================
   Procurla — website2
   Fixed left sidebar + full-width "chapter" sections.
   Flat, corporate, no gradients. Base colour #1F3A5F.
   ============================================================ */

:root {
  --navy: #1F3A5F;
  --navy-dark: #16293F;
  --navy-light: #2B4C77;
  --steel: #4A7BB7;
  --teal: #2E7D8A;
  --gold: #C9A227;
  --gold-soft: #E8C85A;

  --ink: #1B2129;
  --body: #4E5866;
  --muted: #7B8593;
  --line: #DCE0E6;
  --gray-50: #F7F8FA;
  --gray-100: #EEF0F4;
  --gray-200: #E2E6EC;
  --white: #fff;

  --sidebar-w: 264px;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Roboto", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-left: var(--sidebar-w);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 400;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 400;
  margin: 0;
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------------- SIDEBAR ---------------- */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 36px 0 24px;
  z-index: 100;
  overflow-y: auto;
}

.sidebar .brand {
  display: block;
  text-align: center;
  color: #fff;
  padding: 0 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  margin-bottom: 22px;
}
/* the brand mark ships navy; invert it to white for the navy sidebar/footer */
.brand-mark { filter: brightness(0) invert(1); }
.sidebar .brand-mark { margin: 0 auto; }
.sidebar .brand-name {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: .5px;
  line-height: 1;
}
.sidebar .brand-sub {
  display: block;
  margin-top: 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.main-nav { display: flex; flex-direction: column; }
.main-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .4px;
  color: rgba(255,255,255,.88);
  padding: 12px 24px 12px 27px;
  border-left: 3px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a.active { color: #fff; background: rgba(255,255,255,.06); border-left-color: var(--gold); }
.main-nav .nav-out {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--gold-soft);
}

.sidebar-foot { margin-top: auto; padding: 26px 24px 0; }

.lang-toggle { display: flex; gap: 6px; margin-bottom: 16px; }
.lang-toggle a {
  flex: 1;
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 8px 0;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  cursor: pointer;
  transition: .2s;
}
.lang-toggle a:hover { background: rgba(255,255,255,.18); }
.lang-toggle a.active { color: var(--navy-dark); background: var(--gold); border-color: var(--gold); }

.sidebar-copy { font-size: 11.5px; line-height: 1.7; color: rgba(255,255,255,.62); margin: 0; }

.nav-toggle { display: none; }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--navy);
  transition: .2s;
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-lg { padding: 16px 44px; font-size: 14px; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
/* oversized brand mark as a quiet watermark, cropped by the section */
.hero-mark {
  position: absolute;
  right: 6%;
  bottom: -60px;
  width: 340px;
  height: auto;
  opacity: .05;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.hero-inner { position: relative; padding-top: 90px; padding-bottom: 90px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 18px;
}

.hero-title {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 300;
  color: #fff;
  letter-spacing: .5px;
  max-width: 16ch;
}
.hero-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: var(--gold);
  margin: 26px 0;
}
.hero-sub {
  max-width: 62ch;
  color: rgba(255,255,255,.85);
  font-size: 16px;
  font-weight: 300;
}
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
/* navy-on-navy would vanish here */
.hero-cta .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }
.hero-cta .btn-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: 26px;
  gap: 56px;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-size: 38px; color: var(--gold-soft); line-height: 1; }
.stat-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-top: 10px;
}

/* ---- hero screenshot deck ---- */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}
.hero-title { max-width: 14ch; }

/* cascade of app shots; % offsets so the whole composition scales with the column */
.hero-shots {
  position: relative;
  aspect-ratio: 1 / 1.02;
  align-self: center;
}
.hero-shot {
  position: absolute;
  margin: 0;
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 26px 60px rgba(0,0,0,.45);
  transition: transform .45s ease, box-shadow .45s ease;
}
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-shot-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 10px;
  background: var(--navy-light);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.hero-shot-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.38); }

.hero-shot.s3 { top: 0;      right: 0;     width: 58%; z-index: 1; }
.hero-shot.s1 { top: 15%;    left: 0;      width: 78%; z-index: 3; border-top: 2px solid var(--gold); }
.hero-shot.s0 { bottom: 0;   left: 5%;     width: 52%; z-index: 2; }
.hero-shot.s2 { top: 55%;    right: -5%;   width: 56%; z-index: 4; }

/* the deck breathes; each card on its own phase */
.hero-shot { animation: shotFloat 9s ease-in-out infinite; }
.hero-shot.s1 { animation-delay: -1.5s; }
.hero-shot.s2 { animation-delay: -3.5s; }
.hero-shot.s0 { animation-delay: -5.5s; }
@keyframes shotFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero-shots:hover .hero-shot { animation-play-state: paused; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
/* `scale` not `transform` — the float animation owns transform and would win */
.hero-shot:hover { z-index: 5; scale: 1.035; }

/* ---------------- SECTIONS ---------------- */
.section { padding: 92px 0; }
.section.about { background: var(--white); }
.section.modules { background: var(--gray-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.integration { background: var(--white); }
.section.showcase { background: var(--gray-50); border-top: 1px solid var(--line); }

.section-title {
  font-size: clamp(24px, 2.6vw, 34px);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
  text-align: center;
  color: var(--navy);
}
.section-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--gold);
  margin: 20px auto 0;
}
.section-head { margin-bottom: 52px; }
.section-head .eyebrow { text-align: center; color: var(--steel); }
.section-lead {
  max-width: 68ch;
  margin: 24px auto 0;
  text-align: center;
  font-size: 16px;
}

.full-divider { height: 1px; background: var(--line); margin: 32px 0; }

/* ---------------- ABOUT ---------------- */
.about-con { max-width: 840px; margin: 44px auto 0; }
.about-con h3 {
  font-size: 21px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.5;
}
.about-con p { margin: 0; }

/* ---------------- TRUST STRIP ---------------- */
.trust { background: var(--gray-100); padding: 34px 0; }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  /* border-left: 3px solid var(--steel); */
  padding: 18px 20px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}
.trust-item:nth-child(2) { border-left-color: var(--line); }
.trust-item:nth-child(3) { border-left-color: var(--line); }
.trust-item:nth-child(4) { border-left-color: var(--line); }
.trust-ico { width: 26px; height: 26px; flex: 0 0 26px; color: var(--navy); }

/* ---------------- MODULES (two cards per row) ---------------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 1fr rows: every module box is as tall as the tallest one, not just the
     tallest in its own row. */
  grid-auto-rows: 1fr;
  gap: 20px;
}

.module-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px 26px 24px;
  transition: border-color .2s, transform .2s;
}
.module-card:hover { border-color: var(--steel); transform: translateY(-2px); }

.module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.module-num {
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--gray-200);
  order: 2;
  line-height: 1;
}
.module-ico {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: #fff;
  order: 1;
}
.module-ico svg { width: 24px; height: 24px; }
/* rotate a small hue set so the grid reads as a system, not a monotone wall */
.module-card:nth-child(4n+2) .module-ico { background: var(--steel); }
.module-card:nth-child(4n+3) .module-ico { background: var(--teal); }
.module-card:nth-child(4n+4) .module-ico { background: #5A6472; }

.module-card h3 {
  font-size: 17px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.module-card p { margin: 0; font-size: 14.5px; }

/* The module's sub-applications, as a plain follow-up line. */
.module-apps {
  margin-top: 10px !important;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------------- ERP INTEGRATION ---------------- */
.integration-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: center;
}
.integration .section-title, .integration .eyebrow { text-align: left; }
.integration .section-title::after { margin-left: 0; }
.integration .section-lead { text-align: left; margin-left: 0; }

.feature-list { list-style: none; padding: 0; margin: 30px 0 0; }
.feature-list li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.feature-list .tick { color: var(--gold); font-weight: 700; }

.integration-visual {
  background: var(--navy);
  color: #fff;
  padding: 40px 30px;
  text-align: center;
}
.pipeline { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.node {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,.4);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.node-ok { border-color: var(--gold); background: rgba(201,162,39,.14); color: var(--gold-soft); }
.arrow { color: rgba(255,255,255,.6); }
.pipeline-caption {
  margin-top: 20px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

/* ---------------- SHOWCASE ---------------- */
.showcase-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 50px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.showcase-row.reverse { grid-template-columns: 1fr 320px; }
.showcase-row.reverse .showcase-text { order: 2; }
.showcase-row.reverse .browser-mock { order: 1; }

.showcase-text .module-num {
  display: inline-block;
  font-size: 14px;
  color: var(--white);
  background: var(--steel);
  width: 30px;
  text-align: center;
  line-height: 30px;
  margin-bottom: 12px;
}
.showcase-text h3 {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--navy);
  margin-bottom: 12px;
}
.showcase-text p { margin: 0; }

.browser-mock { margin: 0; border: 1px solid var(--line); background: #fff; }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--navy);
  color: rgba(255,255,255,.8);
}
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); }
.browser-bar em { margin-left: 12px; font-style: normal; font-size: 11px; letter-spacing: 1.2px; }
.browser-body { position: relative; min-height: 240px; background: var(--gray-100); }
.browser-body img { width: 100%; }
.shot-placeholder {
  position: absolute; inset: 16px;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed #BFC6D0;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
/* main.js sets display:block once a real screenshot loads — then hide the placeholder */
.browser-body img[style*="block"] ~ .shot-placeholder { display: none; }

/* ---------------- CONTACT ---------------- */
.cta { background: var(--navy); color: #fff; }
.cta-title {
  color: #fff;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 300;
  letter-spacing: .5px;
  text-align: center;
  max-width: 24ch;
  margin: 0 auto;
}
.cta-sub {
  max-width: 62ch;
  margin: 20px auto 44px;
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: 15.5px;
}

.contact-grid { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.3);
  padding: 12px 14px;
  width: 100%;
  resize: vertical;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.14); }

.contact-form .btn-primary {
  align-self: flex-start;
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}
.contact-form .btn-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.form-note { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.65); }

.contact-info {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  padding: 26px 24px;
}
.contact-info h3 {
  color: #fff;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.contact-line { margin: 0 0 14px; font-size: 15px; color: #fff; line-height: 1.5; }
.contact-line a { color: var(--gold-soft); }
.contact-line a:hover { text-decoration: underline; }
.contact-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

/* ---------------- FOOTER ---------------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.8); padding: 34px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-name {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .5px;
  font-size: 17px;
  color: #fff;
}
.footer-tagline, .footer-copy { margin: 0; font-size: 13px; }
.footer-copy { margin-left: auto; color: rgba(255,255,255,.7); }

/* ---------------- REVEAL ---------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-shot { animation: none; }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1100px) {
  .integration-inner { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 32px; }
}

@media (max-width: 900px) {
  body { padding-left: 0; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: fixed;
    top: 14px; right: 14px;
    width: 46px; height: 46px;
    padding: 0 11px;
    background: var(--navy);
    border: 0;
    cursor: pointer;
    z-index: 120;
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; }

  .sidebar { transform: translateX(-100%); transition: transform .3s ease; }
  .sidebar.open { transform: none; }

  .module-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .showcase-row,
  .showcase-row.reverse { grid-template-columns: 1fr; gap: 26px; }
  .showcase-row.reverse .showcase-text { order: 1; }
  .showcase-row.reverse .browser-mock { order: 2; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-title { max-width: 16ch; }
  /* one column: the 4th card lands behind the others, so drop it */
  .hero-shots { aspect-ratio: 1 / .62; max-width: 620px; }
  .hero-shot.s0 { display: none; }
  .hero-shot.s1 { top: 8%; }
  .hero-shot.s2 { top: auto; bottom: 0; right: 0; }

  .footer-copy { margin-left: 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 22px; }
  .section { padding: 62px 0; }
  .hero-stats { gap: 30px; }
  .trust-inner { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-mark { width: 300px; }
  /* four overlapping cards are mush at phone width — keep two */
  .hero-shots { aspect-ratio: 1 / .58; }
  .hero-shot.s3, .hero-shot.s0 { display: none; }
  .hero-shot.s1 { top: 0; width: 84%; }
  .hero-shot.s2 { top: auto; bottom: 0; right: 0; width: 62%; }
}
