/* =============================================================
   ReindSpruz Kariera — style.css
   Vibrant & energetic, mobile‑first, flexbox‑only, brand‑driven UI
   ============================================================= */

/* -----------------------------
   CSS RESET & NORMALIZE
----------------------------- */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; color: #1F2A44; background: #FFFFFF; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: #0A6670; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
p { margin: 0 0 16px; }
button { font: inherit; color: inherit; background: transparent; border: none; cursor: pointer; }
:focus { outline: 2px dashed #00E5FF; outline-offset: 2px; }

/* -----------------------------
   THEME TOKENS
----------------------------- */
:root {
  --primary: #1F2A44;     /* deep navy */
  --secondary: #0A6670;   /* teal */
  --accent: #F5F8FF;      /* light sky */
  --ink: #0F1A33;         /* dark text */
  --muted: #6C7A99;       /* muted text */
  --surface: #FFFFFF;     /* card bg */
  --border: #E6ECF5;      /* light border */
  /* energetic accents */
  --electric-pink: #FF2D95;
  --electric-cyan: #00E5FF;
  --neon-yellow: #FFF500;
  --shadow-strong: 0 10px 24px rgba(31,42,68,0.18);
  --shadow-soft: 0 6px 16px rgba(31,42,68,0.12);
}

/* -----------------------------
   TYPOGRAPHY
----------------------------- */
h1, h2, h3 { font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, sans-serif; margin: 0 0 12px; color: var(--primary); }
h1 { font-size: 32px; line-height: 1.15; letter-spacing: -0.5px; }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 18px; line-height: 1.3; }
small { font-size: 14px; color: var(--muted); }

@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}
@media (min-width: 1080px) {
  h1 { font-size: 56px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

/* -----------------------------
   GLOBAL LAYOUT CONTAINERS (Flexbox‑only)
----------------------------- */
.container {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
}
.content-wrapper {
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
}
section { padding: 48px 0; }

/* Mandatory spacing & alignment patterns (exact rules) */
.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; }

/* Ensure minimum spacing between sections/cards */
section + section { margin-top: 20px; }

/* -----------------------------
   HEADER & NAVIGATION
----------------------------- */
header { position: sticky; top: 0; background: var(--surface); box-shadow: 0 2px 12px rgba(0,0,0,0.06); z-index: 1000; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { color: var(--ink); font-weight: 600; padding: 10px 12px; border-radius: 8px; position: relative; }
.main-nav a:hover { background: var(--accent); text-decoration: none; }

.header-cta { display: none; align-items: center; gap: 12px; }
.header-cta a { 
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px; font-weight: 700; letter-spacing: 0.2px;
  background: var(--secondary); color: #fff; box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.header-cta a:last-child { background: var(--electric-pink); }
.header-cta a:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); text-decoration: none; }

/* Mobile burger */
.mobile-menu-toggle { 
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; font-size: 22px; line-height: 1;
  background: var(--primary); color: #fff; box-shadow: var(--shadow-soft);
}
.mobile-menu-toggle:active { transform: scale(0.98); }

/* Mobile menu overlay */
.mobile-menu { 
  position: fixed; inset: 0; background: #0E1526; color: #fff;
  display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform 0.35s ease; z-index: 10000; padding: 16px;
}
.mobile-menu.active, .mobile-menu.open { transform: translateX(0); }
.mobile-menu .mobile-menu-close { 
  align-self: flex-end; width: 44px; height: 44px; border-radius: 10px;
  background: #243155; color: #fff; font-size: 20px;
}
.mobile-nav { display: flex; flex-direction: column; gap: 8px; padding: 12px 4px; }
.mobile-nav a { 
  display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 12px;
  background: rgba(255,255,255,0.06); color: #fff; font-weight: 600;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

/* Show full nav on desktop */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* -----------------------------
   HERO SECTION
----------------------------- */
.hero { position: relative; background: var(--accent); overflow: hidden; }
.hero .content-wrapper { padding: 24px 0; }
.hero h1 { 
  font-weight: 800; color: var(--primary);
  text-shadow: 0 2px 0 rgba(255,245,0,0.2);
}
.hero p { max-width: 72ch; }
/* energetic top bar */
.hero::before { 
  content: ""; display: block; width: 100%; height: 6px; background: var(--electric-pink);
}
.hero::after {
  content: ""; display: block; height: 6px; width: 100px; background: var(--electric-cyan);
}

/* CTA row buttons */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px;  }
.cta-row a { 
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 14px; font-weight: 800; letter-spacing: 0.3px;
  background: var(--secondary); color: #fff !important; box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;

}
.cta-row a:nth-child(2) { background: var(--electric-cyan); color: #0C1A2E; }
.cta-row a:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); text-decoration: none; }

/* badges & language */
.trust-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.lang-switcher { color: var(--muted); font-weight: 600; }

/* breadcrumbs */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--secondary); font-weight: 700; }

/* -----------------------------
   TEXT & LIST SECTIONS
----------------------------- */
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section img { vertical-align: middle; margin: 0 6px 0 0; display: inline-block; }

.benefits, .kpis { 
  display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0 0 12px;
}
.benefits li, .kpis li {
  flex: 1 1 240px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 2px solid var(--border);
  position: relative; box-shadow: var(--shadow-soft);
}
.benefits li::before, .kpis li::before { content: ""; width: 6px; height: 100%; background: var(--electric-pink); border-radius: 6px; margin-right: 10px; display: inline-block; }

.compliance-note { 
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--accent); border-left: 6px solid var(--neon-yellow); font-size: 14px; color: var(--ink);
}

/* ordered steps */
ol { display: flex; flex-direction: column; gap: 10px; padding-left: 18px; }
ol li { padding-left: 6px; }

/* -----------------------------
   CARDS & LISTINGS
----------------------------- */
.listing-card, .card { 
  display: flex; flex-direction: column; gap: 8px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 20px; box-shadow: var(--shadow-soft);
}
.listing-card h3 { margin-bottom: 4px; }
.listing-card a { font-weight: 700; color: var(--electric-pink); }
.listing-card:hover { box-shadow: var(--shadow-strong); }

/* testimonials: light bg + dark text for readability */
.testimonial-card { 
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-soft); color: var(--ink); max-width: 100%;
}
.testimonial-card p { margin: 0; }
.testimonial-card strong { color: var(--primary); }

/* -----------------------------
   KPI/INFO ROWS
----------------------------- */
.kpis li { border-left: 6px solid var(--electric-cyan); }

/* -----------------------------
   FOOTER
----------------------------- */
footer { background: #0F1730; color: #FFFFFF; }
footer section { padding: 40px 0; }
footer .content-wrapper { gap: 24px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-cols > div { flex: 1 1 240px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 16px; }
footer h3 { color: #FFFFFF; }
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer nav a { color: #BFD4FF; font-weight: 600; }
footer nav a:hover { color: #FFFFFF; text-decoration: none; }
footer p, footer a { font-size: 14px; }
footer .copyright, footer p.copyright { color: #BFD4FF; }

/* -----------------------------
   LINKS & BUTTON ENHANCEMENTS
----------------------------- */
a.btn, .btn { 
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 14px; font-weight: 800; letter-spacing: 0.3px;
  background: var(--secondary); color: #fff; box-shadow: var(--shadow-soft);
}
.btn--secondary { background: var(--electric-pink); color: #fff; }
.btn--outline { background: transparent; border: 2px solid var(--secondary); color: var(--secondary); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); text-decoration: none; }

/* -----------------------------
   RESPONSIVE
----------------------------- */
@media (min-width: 768px) {
  .content-wrapper { gap: 24px; }
  .text-image-section { flex-direction: row; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* -----------------------------
   PAGE-SPECIFIC MINORS
----------------------------- */
/* breadcrumbs spacing in hero */
.hero .breadcrumbs { margin-top: 8px; }

/* index/uslugi/oferty emphasis links */
.text-section a { font-weight: 700; color: var(--secondary); }
.text-section a:hover { color: var(--electric-pink); text-decoration: none; }

/* lists in oferty-pracy */
.listing-card p { color: var(--ink); }

/* -----------------------------
   MOBILE NAV VISIBILITY RULES
----------------------------- */
@media (max-width: 991.98px) {
  .main-nav, .header-cta { display: none; }
}

/* -----------------------------
   COOKIE CONSENT BANNER & MODAL
----------------------------- */
.cookie-banner { 
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex;
  flex-direction: column; gap: 12px; padding: 16px; background: #FFFFFF; color: var(--ink);
  border-top: 4px solid var(--electric-cyan); box-shadow: 0 -10px 24px rgba(0,0,0,0.12);
  transform: translateY(110%); transition: transform 0.35s ease;
}
.cookie-banner.show, .cookie-banner.active { transform: translateY(0); }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn-accept { background: var(--secondary); color: #fff; }
.cookie-actions .btn-reject { background: #F0F2F8; color: var(--ink); border: 2px solid var(--border); }
.cookie-actions .btn-settings { background: var(--electric-pink); color: #fff; }
.cookie-actions button, .cookie-actions a { 
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px;
  border-radius: 12px; font-weight: 800; box-shadow: var(--shadow-soft);
}
.cookie-actions button:hover, .cookie-actions a:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); text-decoration: none; }

/* Cookie modal overlay */
.cookie-modal {
  position: fixed; inset: 0; background: rgba(15,23,48,0.6); z-index: 9991; display: none;
  align-items: center; justify-content: center; padding: 16px;
}
.cookie-modal.show, .cookie-modal.active { display: flex; }
.cookie-modal .modal-content {
  background: #FFFFFF; color: var(--ink); border-radius: 16px; border: 1px solid var(--border);
  width: 100%; max-width: 680px; padding: 20px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-strong);
}
.cookie-modal h3 { margin: 0; }
.cookie-categories { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { 
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--accent);
}
/* toggle switch (checkbox-based) */
.toggle { position: relative; width: 46px; height: 26px; background: #C7D3EA; border-radius: 26px; transition: background 0.2s ease; display: flex; align-items: center; padding: 3px; }
.toggle::after { content: ""; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transform: translateX(0); transition: transform 0.2s ease; }
.toggle.on { background: var(--secondary); }
.toggle.on::after { transform: translateX(20px); }

.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-modal .modal-actions .btn-save { background: var(--secondary); color: #fff; }
.cookie-modal .modal-actions .btn-cancel { background: #F0F2F8; color: var(--ink); }
.cookie-modal .modal-actions button { padding: 10px 14px; border-radius: 12px; font-weight: 800; box-shadow: var(--shadow-soft); }

/* -----------------------------
   UTILITIES
----------------------------- */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; font-size: 12px; border-radius: 999px; background: var(--accent); color: var(--secondary); font-weight: 700; }
.muted { color: var(--muted); }
.hr { width: 100%; height: 1px; background: var(--border); }

/* -----------------------------
   FLEX-ONLY ENFORCEMENT FOR COMMON LAYOUT AREAS
----------------------------- */
nav, .footer-cols, .benefits, .kpis, .cta-row, .text-section, .content-wrapper, .container, .main-nav, .header-cta, .mobile-nav, .cookie-actions, .cookie-categories, .cookie-category { display: flex; }

/* -----------------------------
   DESKTOP ENHANCEMENTS
----------------------------- */
@media (min-width: 1080px) {
  .hero .content-wrapper { flex-direction: column; }
  .footer-cols { gap: 24px; }
}

/* -----------------------------
   ACCESSIBILITY & STATES
----------------------------- */
a:focus-visible, button:focus-visible { outline: 3px solid var(--electric-cyan); outline-offset: 2px; border-radius: 10px; }

/* -----------------------------
   EXTRA CARD & GRID-LIKE WRAPS USING FLEX
----------------------------- */
.card-grid, .listing-grid, .testimonial-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.card-grid > * , .listing-grid > * , .testimonial-grid > * { flex: 1 1 280px; }

/* -----------------------------
   SAFE TEXT IN TESTIMONIAL/REVIEW SECTIONS
----------------------------- */
/* Ensure dark text on light background in all sections containing testimonials */
section:has(.testimonial-card) { background: #FAFCFF; }
section:has(.testimonial-card) .testimonial-card { background: #FFFFFF; color: var(--ink); }

/* Note: :has has partial support; the testimonial-card styles above already enforce contrast. */

/* -----------------------------
   MISC PAGE NITS
----------------------------- */
.kpis { margin-bottom: 8px; }
.hero .cta-row { margin-top: 4px; }

/* END */
