/* ===============================
   IncorriApp Kariera — style.css
   Creative Artistic theme (flex-only layouts)
   =============================== */

/* --- CSS Reset & Normalize --- */
* { box-sizing: border-box; }
*::before,*::after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul,ol { margin: 0; padding: 0 0 0 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: transparent; border: 0; cursor: pointer; }
:focus-visible { outline: 2px dashed #0B3D91; outline-offset: 3px; }

/* --- Root Variables (Brand + Creative Accents) --- */
:root {
  --color-primary: #0B3D91;
  --color-secondary: #2E7D32;
  --color-accent: #F5F7FA;
  --color-ink: #17223B; /* dark body text */
  --color-muted: #64748B; /* muted text */
  --color-white: #FFFFFF;
  --shadow-1: 0 8px 24px rgba(13, 22, 46, 0.08);
  --shadow-2: 0 14px 40px rgba(11, 61, 145, 0.12);
  --radius-lg: 16px; 
  --radius-sm: 10px;
  --gap-1: 12px;
  --gap-2: 16px;
  --gap-3: 20px;
  --gap-4: 24px;
  --gap-5: 32px;
  /* Creative accent solids (decorative only) */
  --artist-coral: #FF6F61;
  --artist-teal: #00B8D9;
  --artist-gold: #FFD166;
}

/* --- Global Typography --- */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* brand body */
  color: var(--color-ink);
  background: var(--color-accent);
  line-height: 1.6;
}
h1,h2,h3,h4 { font-family: "Trebuchet MS", Tahoma, sans-serif; letter-spacing: 0.2px; }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 24px; line-height: 1.25; margin: 0 0 12px; }
h3 { font-size: 18px; line-height: 1.3; margin: 0 0 10px; }
p { margin: 0 0 14px; font-size: 16px; }
small { font-size: 14px; color: var(--color-muted); }
strong { font-weight: bold; }

/* Link look inside content */
main a { color: var(--color-primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
main a:hover { color: var(--color-secondary); }

/* --- Layout Containers (Flex-only) --- */
.container {
  width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px;
  display: flex; flex-direction: column; gap: var(--gap-4);
}
.content-wrapper {
  display: flex; flex-direction: column; gap: var(--gap-3);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-1);
  position: relative;
}
/* Decorative creative corners */
.content-wrapper::before, .content-wrapper::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 16px; height: 16px; border-radius: 4px;
}
.content-wrapper::before { background: var(--artist-teal); left: 12px; top: 12px; transform: rotate(10deg); }
.content-wrapper::after { background: var(--artist-gold); right: 14px; bottom: 14px; transform: rotate(-8deg); }
.content-wrapper > * { position: relative; z-index: 1; }

/* Section spacing (element + mandatory class) */
section { margin-bottom: 60px; padding: 40px 0; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* --- Header & Navigation --- */
header { background: var(--color-white); box-shadow: 0 1px 0 rgba(18, 18, 18, 0.06); position: sticky; top: 0; z-index: 50; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--gap-3); padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; }

.main-nav { display: none; align-items: center; gap: var(--gap-3); flex-wrap: wrap; }
.main-nav a { color: var(--color-ink); font-weight: 600; padding: 8px 12px; border-radius: 10px; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.main-nav a:hover { background: var(--color-accent); color: var(--color-primary); transform: translateY(-1px); }

.header-cta { display: none; align-items: center; gap: var(--gap-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 999px; font-weight: 700; letter-spacing: 0.2px; transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease; border: 2px solid transparent; }
.btn.primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-1); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn.secondary { background: #E8F0FE; color: var(--color-primary); border-color: #D0DCF7; }
.btn.secondary:hover { background: #DDE8FD; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Mobile Menu Trigger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--color-primary); color: #fff; font-size: 20px; line-height: 1; box-shadow: var(--shadow-1); }
.mobile-menu-toggle:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }

/* Mobile Menu Panel */
.mobile-menu {
  position: fixed; inset: 0; background: var(--color-white);
  transform: translateX(100%); transition: transform 0.3s ease; z-index: 100;
  display: flex; flex-direction: column; gap: 12px; padding: 18px; box-shadow: -8px 0 24px rgba(0,0,0,0.12);
  border-left: 6px solid var(--color-primary);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 10px; background: #EDF2F7; color: #111; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav { display: flex; flex-direction: column; gap: 10px; }
.mobile-nav a { padding: 14px 12px; border-radius: 12px; background: var(--color-accent); color: var(--color-ink); font-weight: 700; }
.mobile-nav a:hover { background: #E8EEF6; color: var(--color-primary); }

/* --- Lists inside content (creative bullets) --- */
main ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
main ul li { position: relative; padding-left: 28px; }
main ul li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px; border-radius: 4px;
  background: var(--artist-coral);
  box-shadow: 10px 0 0 var(--artist-teal);
}
/* Ordered lists */
main ol { counter-reset: step; display: flex; flex-direction: column; gap: 10px; padding-left: 0; }
main ol li { counter-increment: step; padding-left: 36px; position: relative; }
main ol li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 8px; background: var(--color-secondary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

/* --- Testimonial Card (readable, light bg) --- */
.testimonial-card {
  display: flex; align-items: center; gap: 20px; padding: 20px;
  background: #FFFFFF; color: #0F172A; border: 1px solid #E5E7EB; border-left: 6px solid var(--color-primary);
  box-shadow: var(--shadow-1); border-radius: var(--radius-lg);
}
.testimonial-card p { margin: 0; }
.testimonial-card + .testimonial-card { margin-top: 16px; }

/* --- Footer --- */
footer { background: #0A0F1F; color: #E8EDF7; padding: 28px 0; }
footer .container { gap: var(--gap-3); }
footer .content-wrapper { background: transparent; box-shadow: none; padding: 0; }
.footer-nav, .legal-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a, .legal-nav a { color: #D5E3FF; padding: 6px 10px; border-radius: 8px; transition: background 0.2s ease; }
.footer-nav a:hover, .legal-nav a:hover { background: rgba(255,255,255,0.08); }
.brand-tagline { color: #FDFDFD; font-weight: 700; }

/* --- Utility Content Blocks (Required Patterns) --- */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #fff; border: 1px solid #E5E7EB; border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 18px; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --- Micro-interactions --- */
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); transition: all 0.18s ease; }

/* --- Forms (generic) --- */
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #D1D5DB; border-radius: 10px; background: #fff; transition: border 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(11,61,145,0.15); outline: none; }
label { font-weight: 600; margin-bottom: 6px; display: inline-flex; }

/* --- Header section hero enhancements --- */
main > section:first-of-type .content-wrapper { border-top: 8px solid var(--color-primary); }

/* --- Accessibility & Contrast for testimonials/reviews --- */
/* Explicitly dark text on light bg ensured in .testimonial-card */

/* --- Mobile-first Responsive Layout --- */
@media (min-width: 769px) {
  .logo img { height: 48px; }
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }

  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  .container { gap: var(--gap-5); }
  .content-wrapper { padding: 32px; }

  /* Align header items in one row cleanly */
  header .container { flex-wrap: nowrap; }

  /* Text-image sections -> row layout */
  .text-image-section { flex-direction: row; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
}

/* --- Mobile Navigation Animations --- */
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideOutRight { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #ffffff; border-top: 4px solid var(--color-primary); box-shadow: 0 -10px 30px rgba(0,0,0,0.12);
  transform: translateY(100%); transition: transform 0.35s ease; 
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .inner {
  display: flex; flex-direction: column; gap: 16px; padding: 16px; max-width: 1100px; margin: 0 auto;
}
.cookie-banner p { margin: 0; color: var(--color-ink); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { padding: 10px 14px; border-radius: 999px; font-weight: 700; border: 2px solid transparent; }
.cookie-btn.accept { background: var(--color-secondary); color: #fff; }
.cookie-btn.reject { background: #FFE4E8; color: #9B1C1C; border-color: #F8B4BD; }
.cookie-btn.settings { background: #E8F0FE; color: var(--color-primary); border-color: #D0DCF7; }
.cookie-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 120; display: none; flex-direction: column; 
}
.cookie-modal.open { display: flex; }
.cookie-overlay { flex: 1 1 auto; background: rgba(10, 15, 31, 0.55); }
.cookie-dialog {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-2);
  width: 92%; max-width: 680px; margin: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; border-top: 6px solid var(--color-primary);
}
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EEF2F7; }
.cookie-row:last-child { border-bottom: 0; }
.cookie-note { color: var(--color-muted); font-size: 14px; }

/* Simple toggle style (if used) */
.toggle { position: relative; width: 48px; height: 28px; background: #E5E7EB; border-radius: 999px; transition: background 0.2s ease; display: inline-flex; align-items: center; padding: 0 3px; }
.toggle.is-on { background: var(--color-secondary); }
.toggle .knob { width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: transform 0.2s ease; transform: translateX(0); }
.toggle.is-on .knob { transform: translateX(20px); }

/* --- Tables (if appear in policies) --- */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-1); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #EEF2F7; font-size: 15px; }
th { background: #F0F4FA; font-weight: 700; }

/* --- Miscellaneous Utility Spacing --- */
.mt-0 { margin-top: 0 !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.gap-20 { display: flex; gap: 20px; }
.center { display: flex; align-items: center; justify-content: center; }

/* --- Ensure no content overlaps & adequate spacing --- */
main .container > .content-wrapper + .content-wrapper { margin-top: 20px; }

/* --- Page-specific light touches --- */
/* Tagline highlight */
.brand-tagline { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 209, 102, 0.18); color: #FFF; }

/* Contact info rows with icons */
.text-section p img { width: 18px; height: 18px; margin-right: 8px; display: inline-block; vertical-align: -3px; }
.text-section a.btn { text-decoration: none; }

/* --- Print basics --- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
  body { background: #fff; }
  .content-wrapper { box-shadow: none; border: 1px solid #E5E7EB; }
}

/* --- Safety: Flexbox alignment hints --- */
/* Examples already implemented per requirements. No CSS Grid/Columns used. */
