/*
Theme Name: VIKTEX Web Theme
Theme URI: https://viktex.eu/
Author: VIKTEX TECHNOLOGY
Author URI: https://viktex.eu/
Description: Professional WordPress theme for VIKTEX TECHNOLOGY broker technology, risk controls, automation and WooCommerce products.
Version: 0.4.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: viktex-web-theme
Tags: custom-menu, featured-images, wide-blocks, e-commerce
*/

:root {
  --trust-navy: #081426;
  --deep-navy: #0f1d33;
  --graphite: #1e293b;
  --light-bg: #f7f9fc;
  --white: #ffffff;
  --blue: #2563eb;
  --cyan: #22d3ee;
  --gold: #c9a24b;
  --green: #10b981;
  --amber: #f59e0b;
  --muted: #64748b;
  --border: #dbe4f0;
  --shadow: 0 18px 44px rgba(8, 20, 38, 0.14);
  --max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--light-bg);
  color: var(--graphite);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: var(--blue); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 14px; color: var(--trust-navy); line-height: 1.08; }
p { margin: 0 0 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 20, 38, 0.96);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.site-footer__inner,
.site-main,
.section,
.trust-strip {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

.site-branding { min-width: 250px; }

.site-title,
.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.site-title__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.site-navigation { flex: 1; }

.primary-menu,
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a,
.footer-menu a {
  color: rgba(255,255,255,0.84);
  font-weight: 800;
  text-decoration: none;
}

.header-cta,
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.header-cta,
.button--primary,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
}

.button--ghost {
  color: var(--white);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.28);
}

.site-main { padding: 64px 0 78px; }
.site-main--front { width: 100%; padding: 0; }

.trust-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 14%, rgba(34, 211, 238, 0.2), transparent 30%),
    linear-gradient(120deg, rgba(8, 20, 38, 0.99), rgba(15, 29, 51, 0.96));
}

.trust-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 52px;
  width: min(100% - 32px, var(--max));
  min-height: 650px;
  margin-inline: auto;
  padding: 88px 0 74px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trust-hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  letter-spacing: 0;
}

.hero-lead {
  max-width: 690px;
  color: rgba(255,255,255,0.78);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.risk-dashboard {
  padding: 22px;
  color: var(--white);
  background: rgba(8, 20, 38, 0.76);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0,0,0,0.42);
}

.dashboard-top,
.dashboard-grid {
  display: grid;
  gap: 12px;
}

.dashboard-top {
  grid-template-columns: 1fr auto;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.68);
}

.dashboard-top strong { color: var(--green); }

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
}

.dashboard-card span {
  display: block;
  color: rgba(255,255,255,0.66);
  font-size: 0.86rem;
}

.dashboard-card strong {
  display: block;
  margin-top: 14px;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
}

.dashboard-card--ring {
  background:
    radial-gradient(circle at 50% 65%, var(--trust-navy) 0 34%, transparent 35%),
    conic-gradient(var(--cyan) 0 78%, rgba(255,255,255,0.16) 78% 100%);
}

.dashboard-card--alert strong { color: var(--amber); }

.dashboard-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 10px;
  height: 132px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
}

.dashboard-bars i {
  min-height: 26px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.dashboard-bars i:nth-child(1) { height: 34%; }
.dashboard-bars i:nth-child(2) { height: 48%; }
.dashboard-bars i:nth-child(3) { height: 42%; }
.dashboard-bars i:nth-child(4) { height: 64%; }
.dashboard-bars i:nth-child(5) { height: 78%; }
.dashboard-bars i:nth-child(6) { height: 92%; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: -38px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trust-strip div {
  min-height: 104px;
  padding: 20px;
  background: var(--deep-navy);
}

.trust-strip strong,
.trust-strip span { display: block; }
.trust-strip strong { color: var(--white); font-size: 1.5rem; }
.trust-strip span { color: rgba(255,255,255,0.68); }

.section { padding: 82px 0; }

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-header h2,
.page-hero h1 {
  font-size: clamp(2.1rem, 3.3vw, 3.25rem);
}

.section-header--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
}

.solution-grid,
.product-grid,
.product-catalog,
.product-detail-grid,
.why-grid {
  display: grid;
  gap: 18px;
}

.solution-grid,
.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.solution-card,
.product-card,
.catalog-card,
.product-detail-grid article,
.content-page {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(8,20,38,0.07);
}

.solution-card,
.product-card {
  min-height: 238px;
  padding: 26px;
}

.card-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(37,99,235,0.16), rgba(34,211,238,0.22));
  border: 1px solid rgba(37,99,235,0.22);
}

.solution-card p,
.product-card p,
.catalog-card p,
.page-hero p {
  color: var(--muted);
}

.section--products {
  width: 100%;
  max-width: none;
  padding-inline: max(32px, calc((100vw - var(--max)) / 2));
  background: var(--trust-navy);
}

.section--products .section-header h2,
.section--products .section-header p { color: var(--white); }

.product-card {
  color: var(--white);
  background: linear-gradient(180deg, rgba(15,29,51,0.98), rgba(8,20,38,0.98));
  border-color: rgba(255,255,255,0.12);
}

.product-card h3,
.product-card h3 a { color: var(--white); text-decoration: none; }
.product-card p { color: rgba(255,255,255,0.68); }
.product-card__type {
  display: inline-flex;
  margin-bottom: 26px;
  padding: 7px 10px;
  color: var(--cyan);
  background: rgba(34,211,238,0.09);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 850;
}

.about-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 36px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.why-grid { grid-template-columns: 1fr; }
.why-grid div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.why-grid strong,
.why-grid span { display: block; }
.why-grid span { color: var(--muted); }

.page-hero,
.content-page {
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.content-page .entry-title { display: none; }
.entry-content > * { max-width: 920px; }

.product-catalog {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.catalog-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  padding: 24px;
}

.catalog-card__visual,
.product-visual {
  display: grid;
  place-items: center;
  min-height: 110px;
  border-radius: 8px;
  color: var(--white);
  background:
    radial-gradient(circle at 70% 20%, rgba(34,211,238,0.55), transparent 30%),
    linear-gradient(135deg, var(--deep-navy), var(--blue));
  font-size: 1.7rem;
  font-weight: 950;
}

.catalog-card__kicker {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-card h2 a { color: var(--trust-navy); text-decoration: none; }
.text-link { font-weight: 850; text-decoration: none; }

.product-hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 38px;
  align-items: center;
  padding: clamp(32px, 5vw, 58px);
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(120deg, var(--trust-navy), var(--deep-navy));
}

.product-hero h1 { color: var(--white); font-size: clamp(2.3rem, 4vw, 4.5rem); }
.product-hero p { color: rgba(255,255,255,0.76); }

.product-visual {
  min-height: 300px;
  border: 1px solid rgba(255,255,255,0.14);
}

.mini-lines {
  display: grid;
  gap: 10px;
  width: 70%;
}

.mini-lines i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}

.product-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.product-detail-grid article { padding: 26px; }

.site-footer {
  background: var(--trust-navy);
  color: var(--white);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding: 52px 0;
}

.site-footer p { color: rgba(255,255,255,0.68); }

@media (max-width: 940px) {
  .trust-hero__inner,
  .about-panel,
  .product-hero,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .solution-grid,
  .product-grid,
  .product-catalog,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .header-cta { display: none; }
}

@media (max-width: 680px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr;
    padding: 16px 0;
  }

  .primary-menu {
    justify-content: flex-start;
    gap: 12px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .catalog-card {
    grid-template-columns: 1fr;
  }
}
