/* ===============================
   Płomień Wiedzy — style.css
   Vibrant & energetic, mobile-first, flex-only layouts
   =============================== */

/* -------------------------------
   1) RESET & ROOT TOKENS
-------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Arial, Helvetica, sans-serif; color: #0B2242; background: #FFFFFF; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
figure { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:root {
  /* Brand palette */
  --primary: #0B2242; /* deep navy */
  --secondary: #2E7D6B; /* teal */
  --accent: #F5F1E6; /* warm light */
  --paper: #FFFFFF;
  --ink: #0B2242;
  --muted: #6B7A8C;
  /* Energetic sparks (used as accents) */
  --electric-pink: #FF1E8A;
  --electric-orange: #FF6B00;
  --electric-cyan: #00E5FF;
  --electric-yellow: #FFE600;
  /* Shadows & radius */
  --shadow-sm: 0 2px 8px rgba(11,34,66,0.12);
  --shadow-md: 0 10px 24px rgba(11,34,66,0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  /* Spacing scale */
  --sp-8: 8px; --sp-12: 12px; --sp-16: 16px; --sp-20: 20px; --sp-24: 24px; --sp-32: 32px; --sp-40: 40px; --sp-48: 48px; --sp-60: 60px;
  /* Transitions */
  --t-fast: 180ms ease; --t-base: 260ms ease;
}

/* -------------------------------
   2) TYPOGRAPHY
-------------------------------- */
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: var(--primary); line-height: 1.2; margin: 0 0 var(--sp-16); }
h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.2px; }
h3 { font-size: 18px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 var(--sp-16); font-size: 16px; }
small { font-size: 14px; color: var(--muted); }
strong { font-weight: 800; }

/* Energetic headline underline */
.hero h1, .section h2, main h2 { position: relative; }
.hero h1::after, .section h2::after, main h2::after {
  content: ""; display: block; height: 6px; width: 80px; background: var(--electric-orange);
  margin-top: 10px; border-radius: 4px;
}

/* Links & buttons */
a { color: var(--secondary); text-decoration: none; transition: color var(--t-fast), background-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); }
a:hover { color: var(--electric-pink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--electric-cyan); outline-offset: 2px; border-radius: 6px; }

/* Button look for actionable links */
.btn, .cta-nav a, .hero a, .text-section > a, .footer-nav a.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: var(--secondary); color: #FFFFFF; font-weight: 800; letter-spacing: 0.2px; box-shadow: var(--shadow-sm);
}
.btn--alt, .hero a + a, .cta-nav a + a { background: var(--electric-orange); color: #0B2242; }
.btn:hover, .cta-nav a:hover, .hero a:hover, .text-section > a:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--alt:hover, .hero a + a:hover, .cta-nav a + a:hover { background: #FF7F24; }

/* Lists */
ul, ol { padding-left: 20px; margin: 0 0 var(--sp-16); }
ul li, ol li { margin: 8px 0; }
.text-section ul li { position: relative; }
.text-section ul li::marker { color: var(--electric-orange); font-weight: 700; }
.text-section p{ color: #000;}
/* -------------------------------
   3) GLOBAL LAYOUT (FLEX-ONLY)
-------------------------------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-16); display: flex; flex-direction: column; gap: var(--sp-20); }
.content-wrapper { display: flex; flex-direction: column; gap: var(--sp-20); align-items: stretch; }

/* Mandatory spacing and alignment patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: var(--sp-16); background: var(--paper); border: 1px solid rgba(11,34,66,0.08); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--sp-20); }
.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; }

/* Utility spacing to prevent overlaps */
section { padding: var(--sp-32) 0; }
section + section { margin-top: var(--sp-20); }

/* -------------------------------
   4) HEADER & NAVIGATION
-------------------------------- */
header { position: sticky; top: 0; z-index: 1000; background: #FFFFFF; border-bottom: 4px solid var(--electric-pink); box-shadow: 0 2px 12px rgba(11,34,66,0.06); }
header .container { padding-top: var(--sp-12); padding-bottom: var(--sp-12); }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-12); }

.brand { display: flex; align-items: center; gap: var(--sp-12); }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: Georgia, 'Times New Roman', serif; font-weight: 800; color: var(--primary); letter-spacing: -0.2px; }

.main-nav { display: none; align-items: center; gap: var(--sp-16); }
.main-nav a { padding: 8px 10px; border-radius: 8px; font-weight: 700; color: var(--primary); }
.main-nav a:hover { background: var(--accent); color: var(--primary); }

.cta-nav { display: none; align-items: center; gap: var(--sp-12); }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: none; background: var(--primary); color: #FFFFFF; font-size: 22px; box-shadow: var(--shadow-sm); cursor: pointer; }
.mobile-menu-toggle:hover { background: #112D57; transform: translateY(-1px); }

/* Mobile off-canvas menu */
.mobile-menu { position: fixed; inset: 0; background: var(--primary); color: #FFFFFF; display: flex; flex-direction: column; gap: var(--sp-20); padding: var(--sp-24); transform: translateX(100%); transition: transform var(--t-base); z-index: 2000; pointer-events: none; }
.mobile-menu.open, .mobile-menu.active, body.menu-open .mobile-menu { transform: translateX(0); pointer-events: auto; }
.mobile-menu-close { align-self: flex-end; width: 42px; height: 42px; border-radius: 10px; border: 2px solid #FFFFFF; background: transparent; color: #FFFFFF; font-size: 20px; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a { padding: 14px 12px; border-radius: 10px; background: rgba(255,255,255,0.06); color: #FFFFFF; font-weight: 800; }
.mobile-nav a:hover { background: rgba(255,255,255,0.14); color: #FFFFFF; }

/* -------------------------------
   5) HERO SECTION (vibrant & energetic)
-------------------------------- */
.hero { background: var(--primary); color: #FFFFFF; position: relative; overflow: hidden; }
.hero .container { padding-top: var(--sp-40); padding-bottom: var(--sp-40); }
.hero .content-wrapper { align-items: flex-start; }
.hero h1 { color: #FFFFFF; }
.hero h1::after { background: var(--electric-cyan); }
.hero p { color: #E6EEF8; max-width: 65ch; }
.hero a { margin-right: 8px; }

/* Energetic decorative slashes */
.hero::before, .hero::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 24px; transform: rotate(35deg); opacity: 0.16; }
.hero::before { background: var(--electric-orange); top: -60px; right: -40px; }
.hero::after { background: var(--electric-pink); bottom: -60px; left: -40px; }

/* Trust badges */
.trust-badges { list-style: none; margin: var(--sp-16) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-12); }
.trust-badges li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 999px; background: #102A52; color: #FFFFFF; border: 2px solid var(--electric-cyan); font-weight: 700; font-size: 14px; }

/* -------------------------------
   6) BODY CONTENT
-------------------------------- */
.text-section { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-12); padding: var(--sp-16); border: 1px solid rgba(11,34,66,0.08); border-radius: var(--radius-md); background: var(--paper); box-shadow: var(--shadow-sm); }
.text-section > a { margin-top: 6px; }

/* Testimonial cards - high contrast light */
.testimonial-card { background: var(--accent); color: var(--primary); border-left: 6px solid var(--electric-orange); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: var(--muted); margin-top: 8px; }

/* Footer */
footer { background: var(--primary); color: #E6EEF8; padding: var(--sp-32) 0; margin-top: var(--sp-40); border-top: 6px solid var(--electric-pink); }
footer .content-wrapper { flex-direction: column; gap: var(--sp-24); }
footer a { color: #FFFFFF; }
footer a:hover { color: var(--electric-cyan); }
.footer-nav { display: flex; flex-direction: column; gap: var(--sp-20); }
.footer-nav .text-section { background: transparent; border: none; box-shadow: none; padding: 0; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
footer img { width: 48px; height: 48px; }

/* -------------------------------
   7) CARDS & FEATURES (shared)
-------------------------------- */
.card--accent { background: var(--accent); border-color: rgba(11,34,66,0.12); }
.feature-item h3 { font-size: 18px; }
.feature-item p { margin: 0; }

/* -------------------------------
   8) ACCESSIBILITY & INTERACTIONS
-------------------------------- */
::selection { background: var(--electric-yellow); color: #0B2242; }
[role="button"], button, .btn, .cta-nav a, .hero a { cursor: pointer; }

/* Micro-interaction underline on nav links */
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 3px; background: var(--electric-orange); border-radius: 3px; transform: scaleX(0); transform-origin: center; transition: transform var(--t-base); }
.main-nav a:hover::after { transform: scaleX(1); }

/* -------------------------------
   9) COOKIE CONSENT (banner + modal)
-------------------------------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #101E37; color: #FFFFFF; padding: var(--sp-16); display: flex; flex-direction: column; gap: var(--sp-12); box-shadow: 0 -6px 16px rgba(0,0,0,0.18); z-index: 3000; transform: translateY(100%); transition: transform var(--t-base); }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: var(--sp-12); }
.cookie-banner .cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 999px; border: 2px solid transparent; font-weight: 800; }
.cookie-btn--accept { background: var(--electric-orange); color: #0B2242; }
.cookie-btn--reject { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.cookie-btn--settings { background: var(--secondary); color: #FFFFFF; }
.cookie-btn--accept:hover { background: #FF7F24; }
.cookie-btn--reject:hover { background: rgba(255,255,255,0.12); }
.cookie-btn--settings:hover { background: #2F8E7A; }

/* Modal overlay */
.cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; padding: var(--sp-24); z-index: 4000; opacity: 0; pointer-events: none; transition: opacity var(--t-base); }
.cookie-modal.show { opacity: 1; pointer-events: auto; }
.cookie-modal-content { background: #FFFFFF; color: var(--ink); width: 100%; max-width: 720px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: var(--sp-16); padding: var(--sp-24); }
.cookie-modal-header, .cookie-modal-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-12); }
.cookie-categories { display: flex; flex-direction: column; gap: var(--sp-12); }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-12); padding: 12px 14px; border: 1px solid rgba(11,34,66,0.1); border-radius: var(--radius-sm); }
.cookie-category small { color: var(--muted); }

/* Simple toggle switch */
.cookie-toggle { display: inline-flex; align-items: center; gap: 10px; }
.cookie-toggle .switch { width: 48px; height: 28px; border-radius: 999px; background: #DADFE6; position: relative; display: inline-flex; align-items: center; padding: 3px; transition: background var(--t-fast); }
.cookie-toggle .switch::after { content: ""; width: 22px; height: 22px; background: #FFFFFF; border-radius: 50%; box-shadow: var(--shadow-sm); transform: translateX(0); transition: transform var(--t-fast), background var(--t-fast); }
.cookie-toggle input { display: none; }
.cookie-toggle input:checked + .switch { background: var(--secondary); }
.cookie-toggle input:checked + .switch::after { transform: translateX(20px); background: #FFFFFF; }
.cookie-category--essential .switch { background: #C2CAD6; }
.cookie-category--essential .switch::after { background: #9AA7B8; }

/* -------------------------------
   10) RESPONSIVE (mobile-first)
-------------------------------- */
@media (min-width: 600px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .hero .container { padding-top: var(--sp-48); padding-bottom: var(--sp-48); }
}

@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  p { font-size: 18px; }

  .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .text-section { flex: 1 1 280px; }
  .footer-nav { flex-direction: row; justify-content: space-between; }
  .footer-nav > .text-section { flex: 1 1 320px; }

  /* Header desktop nav */
  .main-nav { display: flex; }
  .cta-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

@media (min-width: 992px) {
  .container { padding: 0 var(--sp-24); }
}

/* -------------------------------
   11) FORMS & MISC (for future expansion)
-------------------------------- */
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(11,34,66,0.18); background: #FFFFFF; box-shadow: var(--shadow-sm) inset; }
label { font-weight: 700; margin-bottom: 6px; display: inline-block; }

/* -------------------------------
   12) ACCESSORY LAYOUT HELPERS
-------------------------------- */
.align-center { display: flex; align-items: center; justify-content: center; }
.stack { display: flex; flex-direction: column; gap: var(--sp-16); }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-16); }

/* -------------------------------
   13) PAGE-SPECIFIC FINISHING TOUCHES
-------------------------------- */
/* Index highlights */
main h2 { scroll-margin-top: 90px; }

/* Contact icons in text */
.text-section img[alt^="Telefon"], .text-section img[alt^="E-mail"] { display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: middle; }
.text-section a[href^="tel"], .text-section a[href^="mailto"] { font-weight: 800; color: var(--secondary); }
.text-section a[href^="tel"]:hover, .text-section a[href^="mailto"]:hover { color: var(--electric-pink); }

/* Lists inside hero on light contrast handled above via trust-badges */

/* Footer contact links */
footer .text-section a { font-weight: 700; }

/* -------------------------------
   14) PRINT BASICS
-------------------------------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a { color: #000; text-decoration: underline; }
  body { background: #fff; }
}

/* -------------------------------
   15) ENSURE NO OVERLAP & SAFE Z-INDEX
-------------------------------- */
section, .text-section, .card, .testimonial-card { overflow: hidden; }

/* End of file */
