/* ===============================
   Płomień Awansu – modern_bold style
   Mobile-first, ONLY Flexbox
   No CSS Grid / Columns
   =============================== */

/* CSS Reset & Normalize */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
ul, ol { margin: 0; padding: 0 0 0 1.25rem; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* Brand Tokens (with fallbacks) */
:root {
  --primary: #0A3D62;
  --secondary: #6A2C70;
  --accent: #F5F9FF;
  --ink: #0B1220;
  --ink-weak: #233049;
  --bg: #FFFFFF;
  --muted: #E6ECF6;
  --success: #0FB36B;
  --warning: #F5A524;
  --danger: #E23C3C;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(10, 61, 98, 0.08);
  --shadow-md: 0 10px 24px rgba(10, 61, 98, 0.12);
  --shadow-lg: 0 18px 40px rgba(10, 61, 98, 0.16);
  --focus: 0 0 0 3px rgba(245, 169, 42, 0.45);
}

/* Typography */
body {
  background: #FFFFFF; background: var(--bg);
  color: #0B1220; color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3 {
  font-family: Montserrat, Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800; /* bold & modern */
  color: #0A3D62; color: var(--primary);
  letter-spacing: -0.02em;
}
h1 { font-size: 36px; line-height: 1.15; }
h2 { font-size: 28px; margin-bottom: 16px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; }
p, li { font-size: 16px; color: #233049; color: var(--ink-weak); }
strong { color: #0B1220; color: var(--ink); font-weight: 700; }

/* Links */
a { color: #6A2C70; color: var(--secondary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #0A3D62; color: var(--primary); text-decoration: underline; }
a:focus-visible, .btn:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

/* Containers & Layout – ONLY Flex */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start; width: 100%;
}
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #FFFFFF; border: 2px solid #E6ECF6; border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.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; background: #F5F9FF; border: 2px solid #E6ECF6; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); color: #0B1220; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Spacing utilities */
.mt-0{margin-top:0} .mt-16{margin-top:16px} .mt-24{margin-top:24px} .mt-32{margin-top:32px}
.mb-0{margin-bottom:0} .mb-16{margin-bottom:16px} .mb-24{margin-bottom:24px} .mb-32{margin-bottom:32px}
.gap-12{gap:12px} .gap-16{gap:16px} .gap-24{gap:24px} .gap-32{gap:32px}

/* Header */
header {
  position: sticky; top: 0; z-index: 1000; background: #FFFFFF; background: var(--bg);
  border-bottom: 3px solid #0A3D62; border-bottom-color: var(--primary);
}
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo img { width: 148px; height: auto; }

/* Desktop nav hidden by default (mobile-first) */
.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a { font-weight: 700; color: #0B1220; color: var(--ink); padding: 10px 8px; border-radius: 10px; }
.main-nav a:hover { background: #F5F9FF; background: var(--accent); color: #0A3D62; color: var(--primary); }
.header-cta { display: none; align-items: center; gap: 12px; }

/* Mobile menu button */
.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; border: 2px solid #0A3D62; border-color: var(--primary);
  color: #0A3D62; color: var(--primary); background: #FFFFFF; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.mobile-menu-toggle:hover { background: #0A3D62; background: var(--primary); color: #FFFFFF; transform: translateY(-1px); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed; inset: 0; background: #FFFFFF; background: var(--bg);
  transform: translateX(100%); transition: transform .35s ease-in-out; z-index: 2000;
  display: flex; flex-direction: column; padding: 20px; gap: 20px; box-shadow: var(--shadow-lg);
}
.mobile-menu.open, .mobile-menu.active, body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end; width: 44px; height: 44px; border-radius: 12px; border: 2px solid #6A2C70; border-color: var(--secondary);
  background: #FFFFFF; color: #6A2C70; color: var(--secondary); cursor: pointer;
}
.mobile-nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a {
  padding: 14px 12px; border-radius: 12px; font-weight: 800; color: #0A3D62; color: var(--primary);
  border: 2px solid #E6ECF6; background: #F5F9FF; transition: background-color .2s ease, transform .15s ease;
}
.mobile-nav a:active { transform: scale(0.98); }
.mobile-nav a:hover { background: #FFFFFF; }

/* Prevent body scroll when menu open */
body.menu-open { overflow: hidden; }

/* Hero */
.hero {
  position: relative; background: #F5F9FF; background: var(--accent); overflow: hidden;
  padding: 40px 0; border-bottom: 4px solid #0A3D62; border-bottom-color: var(--primary);
}
.hero .content-wrapper { gap: 16px; }
.hero h1 { font-size: 34px; color: #0A3D62; color: var(--primary); }
.hero p { max-width: 70ch; }

/* Geometric decorative shapes (decorative only) */
.hero::before, .hero::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0; opacity: 0.08;
  background: #6A2C70; background: var(--secondary);
}
.hero::before { width: 260px; height: 260px; right: -60px; top: -60px; transform: rotate(18deg); border-radius: 24px; }
.hero::after { width: 180px; height: 180px; left: -40px; bottom: -40px; transform: rotate(-12deg); border-radius: 20px; }
.hero .container, .hero .content-wrapper, .hero * { position: relative; z-index: 1; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding-left: 0; color: #233049; color: var(--ink-weak); }
.breadcrumb li { font-size: 14px; font-weight: 700; }

/* Badges & Trust */
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: #0A3D62; background: var(--primary); color: #FFFFFF; font-weight: 800; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding-left: 0; }
.trust-badges li { background: #FFFFFF; border: 2px solid #E6ECF6; color: #0B1220; border-radius: 999px; padding: 8px 12px; font-weight: 700; }

/* Text sections & content blocks */
.text-section {
  display: flex; flex-direction: column; gap: 12px; background: #FFFFFF;
  border: 2px solid #E6ECF6; border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm);
}
.text-section h3 { color: #6A2C70; color: var(--secondary); font-size: 18px; }
.text-section ul, .text-section ol { margin: 6px 0 0 1.25rem; }
.text-section p a { text-decoration: underline; }

/* Cards – modern bold */
.card { border-left: 6px solid #6A2C70; border-left-color: var(--secondary); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card h3 { font-size: 18px; color: #0A3D62; color: var(--primary); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-left-color: #0A3D62; }

/* Testimonial cards – light background, dark text for readability */
.testimonial-card p { margin: 0; }
.testimonial-card strong { color: #0A3D62; color: var(--primary); }

/* CTA group */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 14px; font-weight: 800; letter-spacing: 0.02em;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn.primary { background: #0A3D62; background: var(--primary); color: #FFFFFF; }
.btn.primary:hover { transform: translateY(-2px); background: #082e49; }
.btn.secondary { background: #FFFFFF; color: #6A2C70; color: var(--secondary); border-color: #6A2C70; }
.btn.secondary:hover { background: #6A2C70; color: #FFFFFF; }
.btn:active { transform: translateY(0); }

/* Lists with geometric bullets */
ul li { position: relative; }
ul li::marker { color: #6A2C70; }

/* Footer */
footer { background: #0A3D62; background: var(--primary); color: #FFFFFF; margin-top: 40px; }
footer .content-wrapper { padding: 24px 0; }
footer a { color: #F5F9FF; text-decoration: underline; }
footer .text-section { background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.12); color: #FFFFFF; }
footer h3 { color: #FFFFFF; font-size: 16px; }
footer .logo img { filter: brightness(100%); }
    footer p {
        color: #FFFFFF;
    }
footer a:hover{
    color: aqua;
}
/* Map & social placeholders */
.map-placeholder, .social-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 120px;
    background: #F5F9FF;
    border: 2px dashed #E6ECF6;
    border-radius: var(--radius-md);
    padding: 16px;
    color: #233049;
}

/* Accessibility focus helpers */
:focus-visible { outline: none; box-shadow: var(--focus); }

/* Tables (generic) */
table { width: 100%; border-collapse: collapse; border: 2px solid #E6ECF6; border-radius: 12px; overflow: hidden; }
th, td { padding: 12px; border-bottom: 1px solid #E6ECF6; text-align: left; }
th { background: #F5F9FF; color: #0A3D62; font-weight: 800; }

/* FAQ sections (id #faq present on some pages) */
#faq .text-section h3 { font-size: 18px; }

/* Breadcrumb spacing in hero when present */
.hero .breadcrumb { margin-bottom: 6px; }

/* Divider utility */
.hr { height: 2px; background: #E6ECF6; width: 100%; border-radius: 2px; }

/* RESPONSIVE BREAKPOINTS */
@media (min-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }

  .text-image-section { flex-direction: row; }
  .content-grid { justify-content: flex-start; }
}

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

  .hero { padding: 60px 0; }
  .hero h1 { font-size: 48px; }

  /* Layout rows for dense content */
  .content-grid, .card-container { gap: 24px; }
}

/* COOKIE CONSENT – Banner and Modal (mobile-first) */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000;
  background: #FFFFFF; color: #0B1220; border-top: 4px solid #6A2C70; border-top-color: var(--secondary);
  box-shadow: 0 -12px 28px rgba(10, 61, 98, 0.16);
  display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 18px; align-items: flex-start;
  transform: translateY(110%); transition: transform .35s ease;
}
.cookie-banner.show, body.cookies-show .cookie-banner { transform: translateY(0); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { padding: 10px 14px; border-radius: 12px; }
.cookie-banner .btn.accept { background: #0FB36B; color: #FFFFFF; border-color: #0FB36B; }
.cookie-banner .btn.reject { background: #FFFFFF; color: #E23C3C; border-color: #E23C3C; }
.cookie-banner .btn.settings { background: #FFFFFF; color: #6A2C70; border-color: #6A2C70; }

/* Cookie Modal */
.cookie-modal {
  position: fixed; inset: 0; background: rgba(11,18,32,0.6); display: flex; align-items: center; justify-content: center;
  z-index: 4000; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.cookie-modal.open, body.cookie-modal-open .cookie-modal { opacity: 1; pointer-events: auto; }
.cookie-modal .cookie-modal-content {
  background: #FFFFFF; color: #0B1220; width: calc(100% - 32px); max-width: 720px;
  border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-lg);
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle (switch) */
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 2px solid #E6ECF6; border-radius: 12px; }
.switch { position: relative; width: 46px; height: 28px; display: inline-flex; align-items: center; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.slider { position: relative; width: 100%; height: 100%; background: #E6ECF6; border-radius: 999px; transition: background-color .2s ease; }
.slider::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: transform .2s ease; }
.switch input:checked + .slider { background: #0FB36B; }
.switch input:checked + .slider::after { transform: translateX(18px); }

/* Forms (generic, for cookie modal toggles or future forms) */
label { font-weight: 700; color: #0A3D62; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid #E6ECF6; background: #FFFFFF; color: #0B1220;
}
input:focus, textarea:focus, select:focus { outline: none; box-shadow: var(--focus); }

/* Accessibility: high-contrast mode hint */
@media (prefers-contrast: more) {
  .btn.primary { border-color: #082e49; }
  a { text-decoration: underline; }
}

/* Misc small components */
.badge--secondary { background: #6A2C70; color: #FFFFFF; }
.tag { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #F5F9FF; border: 2px solid #E6ECF6; color: #0A3D62; font-weight: 700; }

/* Ensure adequate spacing between content sections and cards */
main > section { padding: 30px 0; }
main > section + section { border-top: 2px solid #E6ECF6; }

/* Ensure no overlap: z-index discipline */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: auto; }
header { z-index: 1000; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 3000; }
.cookie-modal { z-index: 4000; }

/* Alignments according to requirements */
.text-image-section { align-items: center; }
.card-content { display: flex; flex-direction: column; justify-content: center; gap: 8px; }

/* Desktop refinements */
@media (min-width: 1100px) {
  .content-wrapper.row { flex-direction: row; align-items: flex-start; }
}

/* Print adjustments */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}
