/* ============================================================
   ADVaSol Distribucija — Website Stylesheet
   Built from the ADVaSol Website Design System v1.0
   ============================================================ */

:root {
  /* Color System (Design System Ch.4) */
  --color-primary: #16345A;      /* ADVaSol Navy (logo) */
  --color-gold: #B1801F;         /* Gold on light backgrounds (logo) */
  --color-gold-dark-bg: #C99123; /* Gold on navy backgrounds (logo) */
  --color-gold-text: #8A6315;    /* Gold for small text on light (AA contrast) */
  --color-white: #FFFFFF;
  --color-grey: #5F6B78;         /* Engineering Grey */
  --color-graphite: #2E3135;
  --color-innovation-blue: #1F5C99;
  --color-green: #4E9F50;
  --color-orange: #B1801F;
  --color-red: #C73A3A;
  --color-bg-alt: #F6F7F9;
  --color-border: #E2E6EA;

  /* Typography (Ch.5) */
  --font-body: 'Inter', -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Layout (Ch.6) */
  --container-max: 1280px;
  --content-max: 1140px;
  --text-max: 760px;
  --radius: 12px;
  --radius-btn: 9px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-graphite);
  background: var(--color-white);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-innovation-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.text-col {
  max-width: var(--text-max);
}

h1, h2, h3, h4 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 20px 0;
}
h1 { font-size: 56px; letter-spacing: -0.01em; }
h2 { font-size: 40px; margin-top: 0; }
h3 { font-size: 28px; font-weight: 600; }
h4 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 20px 0; max-width: var(--text-max); }
ul.plain { list-style: none; margin: 0; padding: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gold-text);
  margin-bottom: 12px;
  display: block;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.logo-block { display: flex; flex-direction: column; }
.logo-block a { text-decoration: none; }
.logo-word {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
.logo-tagline {
  font-size: 12px;
  color: var(--color-grey);
  letter-spacing: 0.02em;
}
nav.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--color-graphite);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
nav.main-nav a:hover { color: var(--color-primary); }
nav.main-nav li.current > a { color: var(--color-primary); font-weight: 600; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

.header-cta {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}
.header-cta:hover { background: #0F2642; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: #0F2642; text-decoration: none; }
.btn-secondary { background: var(--color-white); color: var(--color-primary); border: 1.5px solid var(--color-primary); }
.btn-secondary:hover { background: var(--color-bg-alt); text-decoration: none; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* ---------------- Hero ---------------- */
.hero {
  padding: 90px 0 80px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--color-border);
}
.hero .eyebrow { color: var(--color-gold-text); }
.hero h1 { max-width: 820px; }
.hero p.lead {
  font-size: 20px;
  color: var(--color-grey);
  max-width: 700px;
}
.hero-stat {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat .stat-num { font-size: 30px; font-weight: 700; color: var(--color-primary); }
.hero-stat .stat-label { font-size: 14px; color: var(--color-grey); }

/* ---------------- Sections ---------------- */
section { padding: 88px 0; }
section.alt { background: var(--color-bg-alt); }
section.dark { background: var(--color-graphite); color: #D7DBE0; }
section.dark h2, section.dark h3 { color: var(--color-white); }
section.dark p { color: #C3C9D1; }
.section-head { max-width: 720px; margin-bottom: 48px; }

/* ---------------- Cards ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 2px rgba(22,52,90,0.05);
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 16px; color: var(--color-grey); margin-bottom: 0; }
.card .icon-dot {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--color-bg-alt); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 18px; font-size: 15px;
}

/* ---------------- Engineering Note / Quote ---------------- */
.engineering-note {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
  padding: 22px 26px;
  margin: 36px 0;
  max-width: var(--text-max);
}
.engineering-note .eyebrow { color: var(--color-gold-text); margin-bottom: 8px; }
.engineering-note p { margin: 0; font-size: 16px; color: var(--color-graphite); }

.quote-block {
  border-left: 4px solid var(--color-gold);
  padding: 8px 0 8px 26px;
  margin: 36px 0;
  max-width: var(--text-max);
}
.quote-block p {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.4;
}

.evidence-list { list-style: none; margin: 24px 0; padding: 0; max-width: var(--text-max); }
.evidence-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  font-size: 16px;
}
.evidence-list li::before {
  content: "✔";
  position: absolute; left: 0; top: 0;
  color: var(--color-green); font-weight: 700;
}

/* ---------------- Timeline ---------------- */
.timeline { max-width: var(--text-max); margin-top: 8px; }
.timeline-item { display: flex; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--color-border); }
.timeline-item:last-child { border-bottom: none; }
.timeline-year { min-width: 80px; font-weight: 700; color: var(--color-primary); font-size: 18px; }
.timeline-desc { color: var(--color-graphite); }

/* ---------------- Process diagram ---------------- */
.process-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
  margin: 32px 0;
}
.process-step {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  flex: 1 1 140px;
  display: flex; align-items: center; justify-content: center;
}
.process-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--color-grey); font-size: 18px; padding: 0 6px;
  flex: 0 0 auto;
}

/* ---------------- Stats block ---------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}
.stat-box { text-align: left; }
.stat-box .num { font-size: 40px; font-weight: 700; color: var(--color-primary); line-height: 1; }
.stat-box .label { font-size: 14px; color: var(--color-grey); margin-top: 8px; }

/* ---------------- Table ---------------- */
table.matrix { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
table.matrix th, table.matrix td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--color-border); }
table.matrix th { background: var(--color-primary); color: var(--color-white); font-weight: 600; }
table.matrix tr:nth-child(even) td { background: var(--color-bg-alt); }

/* ---------------- CTA block ---------------- */
.cta-block {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 56px;
  text-align: left;
}
.cta-block h2, .cta-block p { color: var(--color-white); }
.cta-block .btn-secondary { background: var(--color-white); color: var(--color-primary); border-color: var(--color-white); }

/* ---------------- Breadcrumb / signature line ---------------- */
.sig-line { height: 2px; width: 64px; background: var(--color-gold); margin: 0 0 20px 0; }

/* ---------------- FAQ ---------------- */
.faq-item { border-bottom: 1px solid var(--color-border); padding: 20px 0; max-width: var(--text-max); }
.faq-item h4 { margin-bottom: 8px; font-size: 18px; }
.faq-item p { margin: 0; color: var(--color-grey); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--color-primary);
  color: #B7BEC7;
  padding: 72px 0 28px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-grid h5 { color: var(--color-white); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 16px 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #B7BEC7; }
.footer-grid a:hover { color: var(--color-white); }
.footer-brand .logo-word { color: var(--color-white); }
.footer-brand p { color: #9198A1; font-size: 14px; margin-top: 12px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 24px; font-size: 13px; color: #8A919A;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .container, .header-inner { padding-left: 24px; padding-right: 24px; }
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0; }
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-block { padding: 32px; }
}

/* ---------------- Utility ---------------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.small { font-size: 14px; color: var(--color-grey); }
.tag {
  display: inline-block;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  margin: 0 8px 8px 0;
}

/* ---------------- Brand additions (logo package v2) ---------------- */
.logo-block img { height: 54px; width: auto; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 4px; }
.site-footer { color: #C9D2DD; }
.footer-grid a, .footer-bottom a { color: #C9D2DD; }
.footer-brand p, .footer-bottom { color: #AEB9C6; }
.footer-bottom a:hover { color: #fff; }
.hero { border-top: 3px solid var(--color-gold); }
.icon-dot { border-bottom: 2px solid var(--color-gold); }
.cta-block { border-top: 4px solid var(--color-gold-dark-bg); }
.legal-entity { background:#fff; border:1px solid var(--color-border); border-top:3px solid var(--color-gold); border-radius: var(--radius); padding: 28px 32px; }
.legal-entity h3 { font-size: 20px; margin-bottom: 14px; }
.legal-entity dl { display:grid; grid-template-columns: 170px 1fr; gap: 6px 16px; margin:0; font-size:15px; }
.legal-entity dt { color: var(--color-grey); }
.legal-entity dd { margin:0; color: var(--color-graphite); }
@media (max-width: 600px){ .legal-entity dl { grid-template-columns: 1fr; } .legal-entity dd { margin-bottom:8px; } }
form .hp { position:absolute; left:-9999px; }
.form-error { color: var(--color-red); font-size: 15px; display:none; }
@media (max-width: 900px){ .logo-block img { height: 44px; } .header-cta { display:none; } }
@media (max-width: 900px) {
  nav.main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--color-border); box-shadow: 0 8px 16px rgba(22,52,90,.08); }
  nav.main-nav.open ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  nav.main-nav.open li a { display: block; padding: 10px 0; font-size: 17px; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}
.logo-block img { height: 62px; }
.nav-toggle { font-size: 28px; color: var(--color-primary); line-height: 1; padding: 4px 8px; }
@media (max-width: 900px){ .logo-block img { height: 48px; } }
.client-wall { display:grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin: 28px 0 20px; }
.client-logo { margin:0; background:#fff; border:1px solid var(--color-border); border-radius: var(--radius); padding: 22px 16px 12px; display:flex; flex-direction:column; align-items:center; justify-content:space-between; min-height: 130px; }
.client-logo img { max-height: 56px; max-width: 140px; width:auto; height:auto; filter: grayscale(1); opacity:.85; transition: filter .2s, opacity .2s; }
.client-logo:hover img { filter:none; opacity:1; }
.client-logo figcaption { font-size: 12px; color: var(--color-grey); margin-top: 12px; text-align:center; }
table.matrix td:last-child { white-space: nowrap; }
