/* =============================================
   SOLVERSTOP — "Brutal Digital" theme layer (2026 redesign)
   ---------------------------------------------
   Loaded LAST on every page. Overrides the original
   variables, navbar, footer, buttons and heroes so the
   whole site shares one look: dark, square, oversized
   type, monospace labels, visible grid lines.
   New page layouts (homepage, pillar pages) live in v2.css.
   ============================================= */

:root {
  --radius: 0px;
  --shadow: none;
  --shadow-lg: none;
  /* BACKGROUND IS ALWAYS WHITE. Ink is black, lines are black, silver is used for fills only. */
  --bd-bg: #ffffff;
  --bd-ink: #000000;
  --bd-mute: rgba(0, 0, 0, 0.64);
  --bd-line: #000000;
  --bd-line-soft: rgba(0, 0, 0, 0.16);
  /* Accent is SILVER (owner's choice, Dec 2026). Photos and images stay in full colour. */
  --bd-accent: rgb(196, 199, 204);
  --gold: rgb(150, 154, 160);
  --gold-light: rgba(150, 154, 160, 0.14);
  /* CONSULTING LOOK (Dec 2026, taken from the founder's lecture slides): charcoal ink, grey labels,
     light-grey takeaway bars, serif action titles. Background always white; silver = neutral fill. */
  /* COLOUR (owner, 4 Dec 2026): Croatian flag blue #171796 for cards, labels, numerals, buttons.
     Background of the pages stays white; ink is charcoal; silver is the neutral fill. */
  --bd-blue: #171796;
  --bd-blue-2: #2a2ac4;  /* lighter step of the same blue */
  --bd-sky: #e4e4f6;     /* light tint of the flag blue: takeaway bars, highlights */
  --bd-sky-2: #f3f3fc;
  --blue: #171796;
  --blue-light: rgba(23, 23, 150, 0.10);
  --blue-dark: #0f0f6b;
  --font-display: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-mono: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Global hard edges ---------- */
*, *::before, *::after { border-radius: 0 !important; }
html, body { background: #fff; }
::selection { background: var(--bd-blue); color: #fff; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.015em; font-weight: 500; }
body { color: var(--bd-ink); }

/* ---------- Navbar ---------- */
#navbar {
  background: #fff;
  border-bottom: 1px solid var(--bd-ink);
  box-shadow: none;
}
.nav-logo-text { color: var(--bd-ink); font-family: var(--font-display); font-weight: 700; }
.nav-logo-text span { color: var(--bd-ink); background: var(--bd-accent); padding: 0 3px; margin-left: 1px; }
.nav-link {
  color: var(--bd-ink);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-item:hover > .nav-link,
.nav-item.open > .nav-link {
  background: var(--bd-ink);
  color: #fff;
}
.nav-link-cta,
.nav-item:hover > .nav-link-cta {
  background: var(--bd-ink) !important;
  color: #fff !important;
  border: 1px solid var(--bd-ink);
}
.nav-link-cta:hover, .nav-item:hover > .nav-link-cta:hover { background: var(--bd-accent) !important; border-color: var(--bd-ink); color: var(--bd-ink) !important; }
.nav-link-lang { border: 1px solid var(--bd-ink); color: var(--bd-ink); background: #fff; }
.nav-hamburger { border-color: var(--bd-ink); background: #fff; }
.nav-hamburger span { background: var(--bd-ink); }

.dropdown {
  background: #fff;
  border: 1px solid var(--bd-ink);
  box-shadow: none;
  padding: 0;
  top: 100%;
}
.dropdown-item {
  color: var(--bd-ink);
  font-size: 0.86rem;
  border-bottom: 1px solid var(--bd-line-soft);
}
.dropdown li:last-child > .dropdown-item { border-bottom: 0; }
.dropdown-item:hover { background: var(--bd-accent); color: var(--bd-ink); }
.dropdown-item.dropdown-item-overview {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bd-ink);
  background: transparent;
  border: 0;
}
.dropdown-item.dropdown-item-overview:hover { background: var(--bd-accent); color: var(--bd-ink); }
.dropdown-lang-item { color: var(--bd-ink); background: #fff; }
.dropdown-lang-item:hover, .dropdown-lang-item.active { background: var(--bd-accent); color: var(--bd-ink); }

/* Mega menu (Services) */
.dropdown-mega { list-style: none; }
.dropdown-mega .mega-col { border-bottom: 1px solid var(--bd-ink); }
.dropdown-mega .mega-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 18px 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bd-ink);
  text-decoration: none;
}
.dropdown-mega .mega-title:hover span:last-child { background: var(--bd-accent); }
.dropdown-mega .mega-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--bd-ink);
  letter-spacing: 0.08em;
}
.dropdown-mega .mega-col .dropdown-item {
  display: block;
  padding: 9px 18px;
  border-bottom: 0;
  color: var(--bd-mute);
  font-size: 0.84rem;
  line-height: 1.35;
  white-space: normal;
  text-decoration: none;
}
.dropdown-mega .mega-col .dropdown-item:hover { background: transparent; color: var(--bd-ink); text-decoration: underline; text-decoration-color: var(--bd-accent); text-decoration-thickness: 3px; }
.dropdown-mega .mega-foot .dropdown-item { display: block; padding: 14px 18px; text-decoration: none; }

@media (min-width: 901px) {
  .nav-item-mega { position: static; }
  .nav-inner { position: relative; }
  .dropdown-mega {
    left: var(--container-pad) !important;
    right: var(--container-pad) !important;
    width: auto !important;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .dropdown-mega .mega-col {
    border-bottom: 0;
    border-right: 1px solid var(--bd-ink);
    padding-bottom: 14px;
  }
  .dropdown-mega .mega-col:nth-child(4) { border-right: 0; }
  .dropdown-mega .mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--bd-ink); }
}
@media (max-width: 900px) {
  .nav-menu { background: #fff !important; border-top: 1px solid var(--bd-ink); }
  .nav-menu .nav-link { color: var(--bd-ink); }
  .nav-menu .nav-item.open > .nav-link { color: #fff; }
  .dropdown { background: #fff !important; }
}

/* ---------- Page heroes (older inner pages): full-background video, white text ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background-color: #0b0b45 !important;
  background-size: cover !important;
  background-position: center !important;
  color: #fff;
  height: auto !important;
  min-height: clamp(300px, 44vh, 520px);
  padding: clamp(40px, 6vw, 88px) 0;
  display: flex;
  align-items: flex-end;
}
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,8,70,0.9) 0%, rgba(8,8,70,0.55) 55%, rgba(8,8,70,0.25) 100%), linear-gradient(0deg, rgba(8,8,70,0.75) 0%, rgba(8,8,70,0) 45%);
  -webkit-mask-image: none; mask-image: none; }
.page-hero::after { display: none; }
.page-hero .ph-video-el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; z-index: 0; }
.page-hero .ph-video-el.is-playing { opacity: 1; }
.page-hero > .container, .page-hero > div:not(.ph-video-el) { position: relative; z-index: 2; width: 100%; }
.page-hero, .page-hero h1, .page-hero p, .page-hero span, .page-hero a, .page-hero div { color: #fff !important; }
.page-hero p { opacity: 0.9 !important; font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.3; max-width: 34em; text-align: left; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: none;
  margin-bottom: 14px;
}
/* No breadcrumbs anywhere: the page title is enough (owner, 4 Dec 2026) */
.breadcrumb, .page-hero .breadcrumb { display: none !important; }
.hero-note { border-left-color: #fff; opacity: 0.85; }

/* ---------- Labels and buttons ---------- */
.section-label,
.resource-card-label,
.partnerships-logos-label {
  font-family: var(--font-mono) !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--bd-ink);
}
.btn, .contact-btn, .cta-btn, .partners-cta-btn, button[type="submit"] {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* ---------- Final CTA strip + resource cards area ---------- */
.final-section, .final-cta-intro { background: #fff; }
.final-cta-intro { border-top: 1px solid var(--bd-ink); color: var(--bd-ink); }
.final-cta-intro h2, .final-cta-intro h3, .final-cta-intro p { color: var(--bd-ink); }

/* ---------- Footer (white) ---------- */
#footer { border-top: 1px solid var(--bd-ink); background: #fff; }
.footer-row1 { background: #fff; }
.footer-row1-inner { grid-template-columns: 1.6fr 0.9fr 1fr 1.2fr 0.6fr; }
.footer-logo-text { font-family: var(--font-display); color: var(--bd-ink); }
.footer-logo-text span { color: var(--bd-ink); background: var(--bd-accent); padding: 0 3px; margin-left: 1px; }
.footer-brand-desc { color: var(--bd-mute); text-align: left; }
.footer-col-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bd-ink);
}
.footer-links a, .footer-info-item, .footer-email { color: var(--bd-ink); }
.footer-links a:hover, .footer-email:hover { color: var(--bd-ink); text-decoration: underline; text-decoration-color: var(--bd-accent); text-decoration-thickness: 3px; }
.footer-link-icon { stroke: var(--bd-ink); }
.footer-social-icon, .footer-social-icon--active { border: 1px solid var(--bd-ink); background: #fff; color: var(--bd-ink); }
.footer-social-icon--active svg { stroke: var(--bd-ink); }
.footer-social-icon--active svg [fill="currentColor"], .footer-social-icon--active svg[fill="currentColor"] { fill: var(--bd-ink); }
.footer-social-icon--active:hover { background: var(--bd-accent); border-color: var(--bd-ink); }
.footer-social-icon--active:hover svg { stroke: var(--bd-ink); }
.footer-social-icon--active:hover svg [fill="currentColor"], .footer-social-icon--active:hover svg[fill="currentColor"] { fill: var(--bd-ink); }
.lang-dropup-btn { background: #fff; color: var(--bd-ink); border: 1px solid var(--bd-ink); }
.lang-dropup-list { background: #fff; border: 1px solid var(--bd-ink); }
.lang-dropup-item { color: var(--bd-ink); }
.lang-dropup-item:hover, .lang-dropup-item.active { background: var(--bd-accent); color: var(--bd-ink); }
.footer-row2 { background: #fff; border-top: 1px solid var(--bd-ink); }
.footer-copy-detail, .footer-copy-line, .footer-imprint { color: var(--bd-mute); }
.footer-legal-links a { color: var(--bd-ink); }
.footer-legal-links a:hover { color: var(--bd-ink); text-decoration: underline; text-decoration-color: var(--bd-accent); text-decoration-thickness: 3px; }
.footer-link-dot, .footer-bottom-sep { background: var(--bd-ink); }
@media (max-width: 1100px) { .footer-row1-inner { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px)  { .footer-row1-inner { grid-template-columns: 1fr 1fr; } }

.back-to-top { background: var(--bd-accent); color: var(--bd-ink); border: 1px solid var(--bd-ink); }

/* ---------- Cookie banner (white) ---------- */
#cookie-banner, .cookie-banner { background: #fff !important; color: var(--bd-ink) !important; border-top: 1px solid var(--bd-ink) !important; }
#cookie-banner *, .cookie-banner * { color: var(--bd-ink) !important; }
#cookie-banner .cb-btn, .cookie-banner .cb-btn { background: #fff !important; border: 1px solid var(--bd-ink) !important; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
#cookie-banner .cb-btn-accept, .cookie-banner .cb-btn-accept { background: var(--bd-ink) !important; color: #fff !important; }
#cookie-banner .cb-btn-accept:hover { background: var(--bd-accent) !important; color: var(--bd-ink) !important; }
#cookie-banner .cb-btn:hover, .cookie-banner .cb-btn:hover { background: var(--bd-ink) !important; color: #fff !important; }

.dropdown-mega .mega-col .dropdown-item.dropdown-item-new { color: var(--bd-ink); font-weight: 600; background: linear-gradient(var(--bd-accent), var(--bd-accent)) 18px 82% / calc(100% - 36px) 0.5em no-repeat; }

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Consulting layer: labels and logo ---------- */
.nav-link { font-weight: 600; font-size: 0.72rem; }
.nav-logo-text, .footer-logo-text { font-family: 'Inter', sans-serif; letter-spacing: -0.02em; }
.section-label, .resource-card-label, .footer-col-heading { color: var(--bd-blue) !important; font-weight: 700; }
.page-hero h1 { font-weight: 500; letter-spacing: -0.02em; }

/* ---------- Colour layer: flag blue in navigation ---------- */
.nav-link-cta, .nav-item:hover > .nav-link-cta { background: var(--bd-blue) !important; border-color: var(--bd-blue); color: #fff !important; }
.nav-link-cta:hover, .nav-item:hover > .nav-link-cta:hover { background: var(--bd-ink) !important; border-color: var(--bd-ink); color: #fff !important; }
.nav-item:hover > .nav-link, .nav-item.open > .nav-link { background: var(--bd-blue); color: #fff; }
.nav-logo-text span, .footer-logo-text span { background: var(--bd-blue); color: #fff; }
.dropdown-item:hover, .dropdown-lang-item:hover, .dropdown-lang-item.active, .lang-dropup-item:hover, .lang-dropup-item.active { background: var(--bd-blue); color: #fff; }
.dropdown-mega .mega-num { color: var(--bd-blue); }
.dropdown-mega .mega-title:hover span:last-child { background: var(--bd-sky); }
.dropdown-mega .mega-col .dropdown-item:hover { text-decoration-color: var(--bd-blue); }
.dropdown-item.dropdown-item-overview:hover { background: var(--bd-blue); color: #fff; }
.back-to-top { background: var(--bd-blue); color: #fff; border-color: var(--bd-blue); }
.footer-social-icon--active:hover { background: var(--bd-blue); border-color: var(--bd-blue); }
.footer-social-icon--active:hover svg { stroke: #fff; }
.footer-social-icon--active:hover svg [fill="currentColor"], .footer-social-icon--active:hover svg[fill="currentColor"] { fill: #fff; }
.footer-links a:hover, .footer-email:hover, .footer-legal-links a:hover { text-decoration-color: var(--bd-blue); }
#cookie-banner .cb-btn-accept, .cookie-banner .cb-btn-accept { background: var(--bd-blue) !important; border-color: var(--bd-blue) !important; }
.page-hero { border-bottom: 4px solid var(--bd-blue); }
/* Logo: the whole word "SolverStop" in black on white, no highlight on "Stop" (owner, 4 Dec 2026) */
.nav-logo-text, .footer-logo-text, .nav-logo-text span, .footer-logo-text span { color: var(--bd-ink) !important; background: none !important; padding: 0 !important; margin: 0 !important; }

/* ---------- Two bars: site navigation (bar 1) + pages of the current section (bar 2) ---------- */
.nav-link.is-active { background: var(--bd-blue); color: #fff; }
.subnav {
  position: fixed; top: 70px; left: 0; right: 0; z-index: 900;
  height: 46px; background: #fff; border-bottom: 1px solid var(--bd-ink);
}
.subnav-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad);
  height: 100%; display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-link {
  display: flex; align-items: center; white-space: nowrap; padding: 0 18px;
  font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bd-ink); border-right: 1px solid var(--bd-line-soft); text-decoration: none; transition: background .2s, color .2s;
}
.subnav-link:first-child { border-left: 1px solid var(--bd-line-soft); }
.subnav-link:hover { background: var(--bd-sky); color: var(--bd-blue); }
.subnav-link.is-active { background: var(--bd-blue); color: #fff; }
.subnav-link.is-parent { color: var(--bd-blue); box-shadow: inset 0 -3px 0 var(--bd-blue); }
.subnav-link.is-child { text-transform: none; letter-spacing: 0; font-size: 0.8rem; font-weight: 500; }
.subnav-sep { flex: 0 0 18px; border-right: 1px solid var(--bd-line-soft); background: repeating-linear-gradient(135deg, transparent 0 4px, var(--bd-line-soft) 4px 5px); }
body.has-subnav:not(.v2) { padding-top: 116px !important; }
@media (max-width: 900px) { .subnav-link { padding: 0 14px; } }


/* =============================================
   v5 (4 Dec 2026): drop-down lists back in the top bar (second bar removed),
   no resource cards (news / events / coming soon) anywhere
   ============================================= */
#resource-cards-placeholder, .resource-cards-section { display: none !important; }
.subnav { display: none !important; }
#navbar .nav-item.has-dd { position: relative; }
#navbar .has-dd > .nav-link::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
#navbar .has-dd:hover > .nav-link::after, #navbar .has-dd:focus-within > .nav-link::after { transform: translateY(0) rotate(225deg); }
#navbar .dd { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: -14px; min-width: 300px; background: #fff; border: 2px solid var(--bd-blue); border-top-width: 4px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 1200; box-shadow: 0 18px 40px rgba(10,10,60,0.14); }
#navbar .has-dd:hover > .dd, #navbar .has-dd:focus-within > .dd { opacity: 1; visibility: visible; transform: none; }
#navbar .dd li { margin: 0; }
#navbar .dd a { display: flex; align-items: baseline; gap: 12px; padding: 11px 20px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; text-transform: none; color: var(--bd-ink); text-decoration: none; white-space: nowrap; }
#navbar .dd a i { font-style: normal; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; color: var(--bd-blue); }
#navbar .dd a:hover, #navbar .dd a:focus { background: var(--bd-blue); color: #fff; }
#navbar .dd a:hover i, #navbar .dd a:focus i { color: #fff; }
#navbar .dd li:first-child a { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bd-blue); border-bottom: 1px solid var(--bd-sky); margin-bottom: 4px; }
#navbar .dd li:first-child a:hover { color: #fff; }
@media (max-width: 768px) {
  #navbar .has-dd > .nav-link::after { display: none; }
  #navbar .dd { position: static; opacity: 1; visibility: visible; transform: none; border: 0; border-left: 2px solid var(--bd-blue); box-shadow: none; min-width: 0; margin: 0 0 10px 18px; padding: 0; }
  #navbar .dd li:first-child { display: none; }
  #navbar .dd a { padding: 8px 14px; font-size: 0.98rem; white-space: normal; }
}
/* drop-down lists: the first item looks like the others (no capitals) */
#navbar .dd li:first-child a { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; text-transform: none; color: var(--bd-ink); border-bottom: 0; margin-bottom: 0; }
#navbar .dd li:first-child a:hover, #navbar .dd li:first-child a:focus { color: #fff; }

/* =============================================
   Compact footer (4 Dec 2026): less height on every page
   ============================================= */
#footer .footer-row1 { padding: 30px 0 22px !important; }
#footer .footer-row1-inner { gap: 24px 32px !important; align-items: start; }
#footer .footer-logo { margin-bottom: 8px !important; }
#footer .footer-brand-desc { font-size: 0.86rem !important; line-height: 1.45 !important; margin: 0 0 12px !important; max-width: 300px; }
#footer .footer-social-row { gap: 6px !important; margin: 0 !important; }
#footer .footer-social-icon { width: 30px !important; height: 30px !important; }
#footer .footer-social-icon svg { width: 14px !important; height: 14px !important; }
#footer .footer-col-heading { margin: 0 0 10px !important; font-size: 0.68rem !important; }
#footer .footer-links { display: grid !important; gap: 6px !important; margin: 0 !important; padding: 0 !important; }
#footer .footer-links li { margin: 0 !important; padding: 0 !important; }
#footer .footer-links a, #footer .footer-info-item, #footer .footer-email { font-size: 0.88rem !important; line-height: 1.35 !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important; }
#footer .footer-info-item { margin-bottom: 6px !important; }
#footer .footer-row2 { padding: 12px 0 14px !important; }
#footer .footer-copyright, #footer .footer-copy-detail, #footer .footer-imprint { font-size: 0.72rem !important; line-height: 1.4 !important; margin: 0 !important; padding: 0 !important; }
#footer .footer-copyright { max-width: none !important; }
#footer .footer-bottom-row { margin: 6px 0 0 !important; padding: 0 !important; gap: 4px 22px !important; border: 0 !important; }
#footer .footer-legal-links { gap: 4px 18px !important; margin: 0 !important; }
#footer .footer-legal-links a { font-size: 0.72rem !important; padding: 0 !important; min-height: 0 !important; }
@media (max-width: 640px) {
  #footer .footer-row1 { padding: 22px 0 16px !important; }
  #footer .footer-row1-inner { grid-template-columns: 1fr 1fr !important; gap: 18px 20px !important; text-align: left !important; }
  #footer .footer-col-brand { grid-column: 1 / -1; }
  #footer .footer-col, #footer .footer-col * { text-align: left !important; }
  #footer .footer-col { align-items: flex-start !important; }
  #footer .footer-brand-desc { max-width: none; margin-left: 0 !important; }
  #footer .footer-social-row { justify-content: flex-start !important; }
  #footer .footer-links { justify-items: start !important; }
}
#footer .footer-copyright { text-align: center !important; }
