/* =========================================================
   SolviCore – style.css
   Tech-futuristic theme: neon accents, sleek dark UI, modern type
   Mobile-first, Flexbox-only layouts, high contrast, accessible
   ========================================================= */

/* ------------ CSS RESET & BASE NORMALIZE ------------ */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video { margin: 0; padding: 0; border: 0; vertical-align: baseline; }
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font: inherit; }
input, select, textarea { font: inherit; }

/* ------------ THEME TOKENS ------------ */
:root {
  --sc-primary: #1F2A44; /* deep navy */
  --sc-secondary: #14B8A6; /* neon teal */
  --sc-accent: #F4F7FB; /* light surface */
  --sc-bg: #0E1422; /* ultra dark backdrop */
  --sc-text: #E8EEF8; /* light text */
  --sc-muted: #A9B4C5; /* muted */
  --sc-border: #2B3A5C; /* border on dark */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-soft: 0 6px 18px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 0 2px rgba(20,184,166,0.45), 0 10px 30px rgba(20,184,166,0.15);
  --transition-fast: 180ms ease;
  --transition-mid: 280ms ease;
}

/* Font stack from brand guidelines */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* body */
  color: var(--sc-text);
  background-color: var(--sc-bg);
  background-image: linear-gradient(180deg, rgba(20,184,166,0.06), rgba(31,42,68,0.12)); /* subtle tech wash */
}

h1, h2, h3, .logo { font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; }

/* Type scale - mobile first */
h1 { font-size: 32px; line-height: 1.2; letter-spacing: 0.2px; }
h2 { font-size: 24px; line-height: 1.3; margin-bottom: 16px; }
h3 { font-size: 18px; line-height: 1.35; margin-top: 12px; margin-bottom: 8px; }
p, li { font-size: 16px; color: var(--sc-text); }
small { font-size: 14px; color: var(--sc-muted); }
strong { color: #ffffff; font-weight: 700; }

/* Links */
a { color: var(--sc-text); }
a:hover { color: var(--sc-secondary); }
a:focus-visible { outline: 2px solid var(--sc-secondary); outline-offset: 2px; border-radius: 4px; }

/* ------------ LAYOUT CONTAINERS (FLEX-ONLY) ------------ */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex; /* layout container */
  flex-direction: column;
  gap: 20px;
}

/* Mandatory spacing pattern - also apply to semantic section */
.section { margin-bottom: 60px; padding: 40px 20px; }
section { margin-bottom: 60px; padding: 40px 0; }

/* Content wrapper within sections */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px; /* global gap for vertical rhythm */
}

/* Text + image (if used) */
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

/* Generic content grid using flex only */
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }

/* Card patterns */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #111827; border: 1px solid var(--sc-border); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-soft); transition: transform var(--transition-mid), box-shadow var(--transition-mid), border-color var(--transition-fast); }
.card:hover { transform: translateY(-4px); border-color: rgba(20,184,166,0.5); box-shadow: var(--shadow-glow); }

.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Testimonial card: light surface with dark text for readability */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--sc-accent); color: #0F172A; border: 1px solid #E1E8F5; border-radius: var(--radius-md); box-shadow: 0 8px 20px rgba(15,23,42,0.08); }
.testimonial-card p { color: #0F172A; }
.testimonial-card strong { color: #0B1220; }

/* ------------ HEADER & NAV ------------ */
header { position: relative; z-index: 50; background: rgba(8,12,22,0.7); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--sc-border); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }

.logo img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { padding: 10px 12px; border-radius: 8px; color: var(--sc-text); opacity: 0.9; transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast); }
.main-nav a:hover { color: #FFFFFF; background: rgba(20,184,166,0.08); transform: translateY(-1px); }
.main-nav .cta { background: var(--sc-secondary); color: #041016; border-radius: 10px; padding: 10px 14px; font-weight: 700; box-shadow: 0 6px 18px rgba(20,184,166,0.35); }
.main-nav .cta:hover { box-shadow: 0 10px 24px rgba(20,184,166,0.45); }

/* Mobile burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: #EAF7F5; background: rgba(20,184,166,0.14); transition: background var(--transition-fast), transform var(--transition-fast); }
.mobile-menu-toggle:hover { background: rgba(20,184,166,0.22); transform: translateY(-1px); }
.mobile-menu-toggle:focus-visible { outline: 2px solid var(--sc-secondary); outline-offset: 2px; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 20px; padding: 20px; background: linear-gradient(180deg, rgba(4,10,22,0.98), rgba(13,26,36,0.98)); border-left: 1px solid var(--sc-border);
  transform: translateX(100%);
  transition: transform 320ms ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 10px; color: #EAF7F5; background: rgba(31,42,68,0.6); }
.mobile-nav { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.mobile-nav a { padding: 14px 12px; border-radius: 10px; background: rgba(20,184,166,0.08); color: #DFF7F3; border: 1px solid rgba(20,184,166,0.2); }
.mobile-nav a:hover { background: rgba(20,184,166,0.16); }

/* Desktop nav visibility */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ------------ HERO ------------ */
.hero { position: relative; overflow: hidden; padding-top: 30px; padding-bottom: 30px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(20,184,166,0.25), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(31,42,68,0.45), transparent 60%);
}
.hero .container { gap: 0; }
.hero .content-wrapper { align-items: center; text-align: center; }
.hero h1 { font-size: 34px; background: linear-gradient(90deg, #EFFFFA 0%, #14B8A6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 24px rgba(20,184,166,0.15); }
.hero p { color: var(--sc-muted); max-width: 840px; }

/* Actions */
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* Badges */
.badges ul { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badges li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(20,184,166,0.10); color: #D9FAF6; border: 1px solid rgba(20,184,166,0.25); }
.badges img { width: 16px; height: 16px; }

.trust-logos p { color: var(--sc-muted); font-size: 14px; }

/* ------------ LISTS ------------ */
.content-wrapper ul { display: flex; flex-direction: column; gap: 8px; margin-left: 0; padding-left: 0; }
.content-wrapper ul li { position: relative; padding-left: 22px; color: var(--sc-text); }
.content-wrapper ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--sc-secondary); box-shadow: 0 0 12px rgba(20,184,166,0.6); }

.content-wrapper ol { display: flex; flex-direction: column; gap: 8px; counter-reset: step; }
.content-wrapper ol li { counter-increment: step; padding-left: 32px; position: relative; }
.content-wrapper ol li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: rgba(20,184,166,0.16); border: 1px solid rgba(20,184,166,0.35); color: #CCF7F0; font-size: 13px; }

/* ------------ BUTTONS ------------ */
.button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--sc-border); color: #EAF2FF; background: #121A2A; transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast); }
.button:hover, .btn:hover { transform: translateY(-2px); border-color: rgba(20,184,166,0.5); box-shadow: var(--shadow-glow); }
.button.primary, .btn-primary { background: var(--sc-secondary); color: #041416; border-color: rgba(20,184,166,0.9); box-shadow: 0 8px 24px rgba(20,184,166,0.35); font-weight: 800; }
.button.primary:hover, .btn-primary:hover { box-shadow: 0 12px 30px rgba(20,184,166,0.5); }
.btn-outline { background: transparent; border-color: var(--sc-secondary); color: var(--sc-secondary); }
.btn-ghost { background: rgba(20,184,166,0.08); color: #DFF7F3; border-color: rgba(20,184,166,0.25); }

/* Focus */
.button:focus-visible, .btn:focus-visible { outline: 3px solid rgba(20,184,166,0.6); outline-offset: 2px; }

/* ------------ TEXT BLOCKS ------------ */
.text-section { display: flex; flex-direction: column; gap: 10px; }
.text-section p { color: var(--sc-text); }

/* ------------ FOOTER ------------ */
footer { border-top: 1px solid var(--sc-border); background: rgba(10,14,24,0.8); }
footer .content-wrapper { display: flex; flex-wrap: wrap; gap: 24px; }
footer nav { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
footer nav h3 { color: #E6F7F4; font-size: 16px; margin-bottom: 6px; }
footer ul { display: flex; flex-direction: column; gap: 8px; }
footer a { color: #D2E8FF; font-size: 14px; }
footer a:hover { color: var(--sc-secondary); }
footer .text-section p { color: var(--sc-muted); font-size: 14px; }
footer .logo img { height: 28px; }
footer .container:last-child { padding-top: 10px; padding-bottom: 20px; }
footer .container:last-child p { color: var(--sc-muted); font-size: 13px; }

/* ------------ GENERIC SURFACES ------------ */
section .container { background: linear-gradient(180deg, rgba(17,24,39,0.75), rgba(12,16,28,0.75)); border: 1px solid rgba(43,58,92,0.7); border-radius: var(--radius-lg); padding: 20px; box-shadow: 0 8px 26px rgba(0,0,0,0.25); }
/* Keep hero container transparent for stronger header/hero effect */
.hero > .container { background: transparent; border: none; box-shadow: none; }

/* ------------ RESPONSIVE ------------ */
@media (min-width: 576px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .hero h1 { font-size: 44px; }
  h2 { font-size: 28px; }
}

@media (min-width: 992px) {
  section { padding: 60px 0; }
  .hero { padding-top: 50px; padding-bottom: 50px; }
  .hero .content-wrapper { align-items: flex-start; text-align: left; }
  .container { gap: 24px; }
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

/* ------------ ACCESSIBILITY & UTILITIES ------------ */
.hidden { display: none !important; }
.center { display: flex; align-items: center; justify-content: center; }
.max-w-narrow { max-width: 720px; }

/* Spacing helpers */
.mt-20 { margin-top: 20px; } .mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; } .mb-30 { margin-bottom: 30px; }

/* ------------ MICRO-INTERACTIONS ------------ */
.pulse-glow { box-shadow: var(--shadow-glow); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(20,184,166,0.35); } 50% { box-shadow: 0 0 0 8px rgba(20,184,166,0.05); } }

.fade-in-up { opacity: 0; transform: translateY(10px); animation: fadeUp 600ms ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ------------ TABLES (if appear in knowledge base) ------------ */
table { width: 100%; border-collapse: collapse; margin: 10px 0; }
th, td { border: 1px solid var(--sc-border); padding: 10px; text-align: left; font-size: 14px; }
th { background: #101829; color: #EAF2FF; }

/* ------------ FORMS (generic) ------------ */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--sc-border); background: #0E172A; color: var(--sc-text);
}
input::placeholder, textarea::placeholder { color: #90A4C0; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(20,184,166,0.6); border-color: rgba(20,184,166,0.6); }
label { font-size: 14px; color: var(--sc-muted); margin-bottom: 6px; display: block; }

/* ------------ PAGE-SPECIFIC LIGHT ELEMENTS ------------ */
/* Emphasize info paragraphs inside policy/legal pages */
main section p { max-width: 1000px; }

/* ------------ MOBILE MENU REQUIRED ANIMATIONS ------------ */
@keyframes slideInMenu { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideOutMenu { from { transform: translateX(0); } to { transform: translateX(100%); } }
.mobile-menu.open { animation: slideInMenu 320ms ease both; }

/* ------------ COOKIE CONSENT: BANNER & MODAL ------------ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; flex-direction: column; gap: 12px; padding: 16px 16px;
  background: #0A1222; color: #E6EEF8; border-top: 1px solid var(--sc-border);
  transform: translateY(100%);
  transition: transform 300ms ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-inner { display: flex; flex-direction: column; gap: 12px; }
.cookie-banner p { color: #D7E6FF; font-size: 14px; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-buttons .btn { padding: 10px 14px; border-radius: 10px; }
.cookie-buttons .btn-accept { background: var(--sc-secondary); color: #041416; border-color: rgba(20,184,166,0.8); }
.cookie-buttons .btn-reject { background: rgba(20,184,166,0.08); color: #EAF7F5; border: 1px solid rgba(20,184,166,0.35); }
.cookie-buttons .btn-settings { background: #101A2B; color: #DFF7F3; border: 1px solid var(--sc-border); }

/* Cookie modal overlay */
.cookie-modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(4,10,18,0.75); backdrop-filter: blur(4px); }
.cookie-modal.show { display: flex; }
.cookie-modal .modal-card { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 16px; background: #0F172A; border: 1px solid var(--sc-border); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.45); padding: 18px; }
.cookie-modal h3 { font-size: 20px; color: #EAF2FF; }
.cookie-categories { display: flex; flex-direction: column; gap: 12px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--sc-border); border-radius: 12px; background: #0C1426; }
.cookie-row .meta { display: flex; flex-direction: column; gap: 4px; }
.cookie-row .meta small { color: var(--sc-muted); }
.cookie-row .switch { display: inline-flex; align-items: center; width: 48px; height: 28px; border-radius: 999px; padding: 2px; background: #263147; border: 1px solid #314265; transition: background var(--transition-fast), border-color var(--transition-fast); }
.cookie-row .switch .dot { width: 22px; height: 22px; border-radius: 50%; background: #93A1BE; transform: translateX(0); transition: transform var(--transition-fast), background var(--transition-fast); }
.cookie-row.enabled .switch { background: rgba(20,184,166,0.22); border-color: rgba(20,184,166,0.65); }
.cookie-row.enabled .switch .dot { background: var(--sc-secondary); transform: translateX(20px); }
.cookie-modal .modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

/* ------------ MANDATORY PATTERNS (kept for compatibility) ------------ */
/* Already defined above but reiterated to ensure presence */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ------------ PAGE-SPECIFIC ADJUSTMENTS ------------ */
/* Pricing (cennik) highlight blocks if needed */
.pricing { display: flex; flex-wrap: wrap; gap: 20px; }
.pricing .plan { flex: 1 1 280px; }

/* Knowledge base lists spacing */
.baza-wiedzy .content-wrapper ul li { color: #EAF2FF; }

/* ------------ HIGH CONTRAST FOR TESTIMONIAL SECTIONS ------------ */
/* Ensure text on light bg is dark */
section .testimonial-card p, section .testimonial-card strong { color: #0F172A; }

/* ------------ Z-INDEX SAFETY FOR MENUS & BANNERS ------------ */
header { z-index: 60; }
.mobile-menu { z-index: 100; }
.cookie-modal { z-index: 120; }
.cookie-banner { z-index: 110; }

/* ------------ PRINT STYLES (basic) ------------ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; color: #000; }
  section .container { border: none; background: #fff; box-shadow: none; }
}
