/* ============================================================
   Quark-Actinet — brand stylesheet
   Pure CSS with custom properties. No build step required.
   Loaded AFTER Quark's nucleus.css so variables override cleanly.
   ============================================================ */

:root {
  /* --- Brand palette (extracted from logo.pdf) --- */
  --brand-yellow:     #FCD016;
  --brand-yellow-hi:  #FFDE3D;
  --brand-yellow-lo:  #E6BC00;
  --brand-gray:       #898F8C;

  /* --- Neutrals --- */
  --ink:              #0F172A;
  --ink-2:            #1F2937;
  --slate-700:        #334155;
  --slate-600:        #475569;
  --slate-500:        #64748B;
  --slate-400:        #94A3B8;
  --slate-300:        #CBD5E1;
  --slate-200:        #E2E8F0;
  --slate-100:        #F1F5F9;
  --slate-50:         #F8FAFC;
  --white:            #FFFFFF;

  /* --- Semantic --- */
  --success:          #10B981;
  --warning:          #F59E0B;
  --danger:           #EF4444;

  /* --- Quark variable overrides --- */
  --core-accent:      var(--brand-yellow);
  --color-accent:     var(--brand-yellow);
  --link-color:       var(--ink);
  --link-hover:       var(--brand-yellow-lo);
  --text-color:       var(--ink);
  --background-color: var(--white);
  --header-bg:        var(--ink);
  --header-color:     var(--white);

  /* --- Type scale --- */
  --font-body:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:     'Space Grotesk', 'Inter', sans-serif;
  --font-mono:        'JetBrains Mono', ui-monospace, monospace;

  /* --- Layout --- */
  --container-max:    1200px;
  --radius:           6px;
  --radius-lg:        12px;
  --shadow-sm:        0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md:        0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg:        0 12px 32px rgba(15, 23, 42, 0.12);
}

/* --- Base --- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: 2.5rem; }
h3 { font-size: 1.3rem; }

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--brand-yellow);
  transition: color .15s ease, border-color .15s ease;
}
a:hover { color: var(--brand-yellow-lo); border-bottom-color: var(--brand-yellow-lo); }

/* --- Buttons --- */
.btn, .button, a.btn, a.button {
  display: inline-block;
  padding: .75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary, .button-primary, a.btn-primary {
  background: var(--brand-yellow);
  color: var(--ink);
  border-color: var(--brand-yellow);
}
.btn-primary:hover {
  background: var(--brand-yellow-hi);
  border-color: var(--brand-yellow-hi);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--ink);
}

/* --- Container --- */
.container, .grav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
}
.section-light { background: var(--white); color: var(--ink); }
.section-alt   { background: var(--slate-50); color: var(--ink); }
.section-dark  { background: var(--ink); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a { color: var(--brand-yellow); border-bottom-color: var(--brand-yellow); }
.section-dark a:hover { color: var(--brand-yellow-hi); }

/* --- Accent underline on H2 --- */
.section h2.accent,
.accent-heading {
  display: inline-block;
  padding-bottom: .35rem;
  border-bottom: 3px solid var(--brand-yellow);
  margin-bottom: 1.5rem;
}

/* --- Header / Nav --- */
.site-header {
  background: var(--ink);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-logo img { height: 44px; width: auto; display: block; }
.site-logo a { border: none; }
.site-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a {
  color: var(--white);
  border-bottom: 2px solid transparent;
  padding-bottom: .25rem;
  font-weight: 500;
  font-size: .95rem;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--brand-yellow);
  border-bottom-color: var(--brand-yellow);
}
.site-nav .btn-primary {
  background: var(--brand-yellow);
  color: var(--ink);
  border: 2px solid var(--brand-yellow);
  padding: .5rem 1.1rem;
}
.site-nav .btn-primary:hover {
  background: var(--brand-yellow-hi);
  border-color: var(--brand-yellow-hi);
  color: var(--ink);
}
.lang-switch a {
  color: var(--slate-300);
  font-size: .85rem;
  text-transform: uppercase;
  border: none;
  padding: 0 .25rem;
}
.lang-switch a.active { color: var(--brand-yellow); font-weight: 600; }

/* --- Hero --- */
.hero {
  background: var(--ink);
  color: var(--white);
  padding: 6rem 0 7rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand-yellow);
}
.hero h1 { color: var(--white); max-width: 22ch; }
.hero .lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--slate-300);
  max-width: 60ch;
  margin: 1.5rem 0 2.5rem;
  line-height: 1.6;
}
.hero .cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero .badges {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-700);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--slate-400);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hero .badges strong { color: var(--brand-yellow); }

.hero-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-text { min-width: 0; }
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .hero-with-image {
    grid-template-columns: 1fr;
  }
  .hero-image {
    order: -1;
    margin-bottom: 1rem;
  }
  .hero-image img {
    max-height: 250px;
  }
}

/* --- Services grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all .2s ease;
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 2rem; right: 2rem;
  height: 3px;
  background: var(--brand-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.service-card:hover {
  border-color: var(--brand-yellow);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}
.card-num {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-yellow);
  opacity: .25;
  line-height: 1;
  pointer-events: none;
}
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .9rem;
  color: var(--slate-600);
}
.service-card li {
  padding: .25rem 0 .25rem 1.25rem;
  position: relative;
}
.service-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--brand-yellow);
  font-weight: bold;
}

/* --- Partners strip --- */
.partners-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 3rem;
  align-items: center;
  justify-items: center;
  margin-top: 3rem;
}
.partners-strip img {
  max-width: 140px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(.55);
  transition: filter .2s ease;
}
.partners-strip img:hover { filter: grayscale(0%) opacity(1); }

/* --- Trust / stats --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.stat {
  text-align: center;
  padding: 1.5rem;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--brand-yellow);
  line-height: 1;
  display: block;
}
.stat .label {
  margin-top: .75rem;
  color: var(--slate-300);
  font-size: .95rem;
}
.iso-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}
.iso-badge {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--slate-700);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-size: .85rem;
  color: var(--slate-300);
  font-family: var(--font-mono);
}

/* --- Contact block --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.contact-card {
  padding: 1.5rem;
  border-left: 3px solid var(--brand-yellow);
  background: var(--white);
}
.contact-card h4 {
  margin: 0 0 .75rem;
  color: var(--ink);
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .08em;
}
.contact-card address {
  font-style: normal;
  color: var(--slate-600);
  font-size: .95rem;
  line-height: 1.6;
}

/* --- Form --- */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea,
form select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 3px rgba(252, 208, 22, .2);
}
form label {
  display: block;
  font-weight: 500;
  margin: 1rem 0 .35rem;
  color: var(--ink);
}

/* --- Footer --- */
.site-footer {
  background: var(--ink-2);
  color: var(--slate-300);
  padding: 4rem 0 2rem;
  margin-top: 0;
}
.site-footer h4 {
  color: var(--white);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 1rem;
}
.site-footer a {
  color: var(--slate-300);
  border-bottom: none;
  font-size: .9rem;
}
.site-footer a:hover { color: var(--brand-yellow); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--slate-700);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: var(--slate-500);
}

/* --- NIS2 landing specific --- */
.nis2-scope-check {
  background: var(--white);
  border: 2px solid var(--brand-yellow);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}
.nis2-scope-check h3 {
  margin-top: 0;
  color: var(--ink);
}
.nis2-scope-check ul {
  margin: 1rem 0;
  padding-left: 1.2rem;
}
.nis2-scope-check li { margin: .5rem 0; }
.nis2-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 3rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.nis2-steps li {
  counter-increment: step;
  padding: 2rem 1.5rem 1.5rem;
  background: var(--slate-50);
  border-top: 3px solid var(--brand-yellow);
  border-radius: var(--radius);
  position: relative;
}
.nis2-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: .5rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-yellow);
  opacity: .5;
}
.nis2-steps h4 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.nis2-steps p {
  margin: 0;
  font-size: .9rem;
  color: var(--slate-600);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .site-nav ul { gap: 1rem; }
  .site-nav ul li:not(:last-child) { display: none; }
  .hero { padding: 4rem 0 5rem; }
  .section { padding: 3.5rem 0; }
  .partners-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Print & reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* --- Focus visible for a11y --- */
:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 2px;
}

.lang-switch ul.langswitcher {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: .25rem;
}
.lang-switch ul.langswitcher li a {
  color: var(--slate-300);
  font-size: .85rem;
  text-transform: lowercase;
  border: none;
  padding: 0 .25rem;
  text-decoration: none;
}
.lang-switch ul.langswitcher li a.active {
  color: var(--brand-yellow);
  font-weight: 600;
}

