/* ========================================================
   Fjord Wiedzy Expo — style.css
   Creative Artistic theme with brand personality
   Mobile-first, flexbox-only layouts, accessible & responsive
   ======================================================== */

/* ------------------------------
   1) Reset & Normalize
------------------------------ */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body { min-height: 100%; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
ul, ol { margin: 0; padding-left: 1.2rem; }
li { margin: 0.25rem 0; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: transparent; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ------------------------------
   2) Theme Variables & Fallbacks
------------------------------ */
:root {
  --color-primary: #0A3D62; /* deep navy */
  --color-secondary: #1EA896; /* fresh green-teal */
  --color-accent: #F3F7FC; /* light mist blue */
  --color-ink: #0E2433; /* near-black for text */
  --color-ink-soft: #35546A; /* supportive text */
  --color-white: #FFFFFF;
  --shadow-soft: 0 6px 18px rgba(10, 61, 98, 0.12);
  --shadow-lift: 0 10px 28px rgba(10, 61, 98, 0.18);
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-pill: 999px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-30: 30px;
  --space-40: 40px;
  --space-60: 60px;
}

/* ------------------------------
   3) Base Typography
------------------------------ */
body {
  font-family: Verdana, Geneva, sans-serif; /* brand body */
  color: #0E2433; color: var(--color-ink);
  background: #FFFFFF; background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: "Trebuchet MS", Tahoma, sans-serif; /* brand display */ color: #0A3D62; color: var(--color-primary); margin: 0 0 12px 0; line-height: 1.25; letter-spacing: 0.2px; }

h1 { font-size: 32px; }
h2 { font-size: 24px; margin-top: 8px; }
h3 { font-size: 18px; color: #35546A; color: var(--color-ink-soft); }

p { margin: 0 0 12px 0; }
strong { font-weight: 700; }

nav[aria-label="okruszki"] { font-size: 13px; color: #35546A; color: var(--color-ink-soft); margin-bottom: 10px; }
nav[aria-label="okruszki"] a { color: #1EA896; color: var(--color-secondary); text-decoration: underline; text-underline-offset: 2px; }

/* Links & focus */
a:focus-visible, button:focus-visible { outline: 3px solid #1EA896; outline-offset: 2px; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------
   4) Layout Primitives (Flex-only)
------------------------------ */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: var(--space-20); }
.content-wrapper { display: flex; flex-direction: column; gap: var(--space-20); }

/* Required spacing pattern class */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Global section default spacing to ensure breathing room */
main > section { padding: 32px 0; }
main > section .content-wrapper { gap: var(--space-24); }
.text-section { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 12px 16px; border-left: 4px solid #1EA896; border-left-color: var(--color-secondary); background: #FFFFFF; border-radius: 10px; }

/* Flex helpers requested */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; background: #FFFFFF; border: 1px solid #E5EEF7; border-radius: var(--radius-l); padding: 18px; box-shadow: var(--shadow-soft); }
.card-content { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.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; margin-bottom: 20px; background: #F3F7FC; background: var(--color-accent); border: 1px solid #E1EDF8; border-radius: var(--radius-m); color: #0E2433; color: var(--color-ink); box-shadow: var(--shadow-soft); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Ensure minimum spacing between repeating blocks */
.text-section + .text-section { margin-top: 12px; }

/* ------------------------------
   5) Header & Navigation
------------------------------ */
header { position: relative; z-index: 20; box-shadow: 0 2px 0 rgba(30, 168, 150, 0.12); background: #FFFFFF; }
header .content-wrapper { padding: 12px 0; }

/* Header bar layout */
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-16); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.tagline { display: none; font-size: 13px; color: #35546A; color: var(--color-ink-soft); margin: 0; }

/* Desktop navigation hidden by default (mobile-first) */
.main-nav { display: none; gap: 12px; align-items: center; flex-wrap: wrap; }
.main-nav a { display: inline-flex; align-items: center; padding: 8px 10px; border-radius: 10px; color: #0A3D62; color: var(--color-primary); font-weight: 600; }
.main-nav a:hover { background: #F3F7FC; background: var(--color-accent); text-decoration: none; }

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

/* ------------------------------
   6) Buttons & Micro-interactions
------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius-pill); border: 2px solid #0A3D62; border-color: var(--color-primary); color: #0A3D62; color: var(--color-primary); font-weight: 700; text-decoration: none; transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; box-shadow: var(--shadow-soft); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); text-decoration: none; }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-soft); }
.btn.primary { background: #1EA896; background: var(--color-secondary); color: #FFFFFF; border-color: #1EA896; }
.btn.primary:hover { background: #179D8C; }
.btn.secondary { background: #FFFFFF; color: #0A3D62; border-color: #0A3D62; }
.btn.secondary:hover { background: #F3F7FC; }

/* Small utility button inside light blocks */
.text-section .btn { align-self: flex-start; }

/* ------------------------------
   7) Hero Section (Creative Artistic)
------------------------------ */
.hero { position: relative; overflow: hidden; background: #F3F7FC; background: var(--color-accent); }
.hero .content-wrapper { padding: 20px 0 8px 0; }
.hero h1 { font-size: 30px; letter-spacing: 0.3px; }
.hero p { font-size: 16px; }

/* Decorative shapes (artistic, non-content) */
.hero::before, .hero::after { content: ""; position: absolute; inset: auto auto  -60px -40px; width: 220px; height: 220px; background: #1EA896; opacity: 0.15; border-radius: 40% 60% 50% 50% / 40% 40% 60% 60%; filter: blur(0.5px); z-index: 0; animation: floaty 9s ease-in-out infinite alternate; }
.hero::after { inset: -70px -50px auto auto; width: 280px; height: 280px; background: #0A3D62; opacity: 0.12; border-radius: 50% 40% 60% 40% / 50% 60% 40% 50%; animation-duration: 11s; }
.hero .container, .hero .content-wrapper { position: relative; z-index: 1; }

@keyframes floaty { from { transform: translateY(0) rotate(0); } to { transform: translateY(12px) rotate(6deg); } }

/* CTA row */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Partner logos row */
.logo-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; margin: 6px 0 0 0; }
.logo-row li { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border: 1px dashed rgba(10,61,98,0.25); border-radius: 12px; background: #FFFFFF; }
.logo-row img { height: 28px; width: auto; opacity: 0.85; }

/* ------------------------------
   8) Lists and Content blocks
------------------------------ */
.text-section ul, .text-section ol { padding-left: 20px; }
.text-section ul li { position: relative; }
.text-section ul li::marker { color: #1EA896; }
.text-section ol li { margin: 6px 0; }

/* ------------------------------
   9) Testimonials (high contrast on light bg)
------------------------------ */
.testimonial-card p { margin: 0; }
.testimonial-card p + p { margin-top: 6px; }
.testimonial-card::before { content: "\201C"; font-family: Georgia, serif; font-size: 42px; line-height: 1; color: #1EA896; margin-right: 6px; }

/* ------------------------------
   10) Footer
------------------------------ */
footer { margin-top: 20px; background: #0A3D62; background: var(--color-primary); color: #FFFFFF; }
footer section { padding: 28px 0; }
.footer-brand img { height: 36px; filter: brightness(0) invert(1); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { color: #FFFFFF; opacity: 0.9; padding: 6px 10px; border-radius: 8px; }
.footer-nav a:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.small-print { font-size: 13px; opacity: 0.9; }

/* ------------------------------
   11) Mobile Menu Overlay (slide-in)
------------------------------ */
.mobile-menu { position: fixed; inset: 0; display: flex; flex-direction: column; background: #F3F7FC; background: var(--color-accent); transform: translateX(100%); transition: transform 0.35s ease; z-index: 9998; box-shadow: var(--shadow-lift); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { position: relative; align-self: flex-end; margin: 16px; width: 42px; height: 42px; border-radius: 10px; border: 2px solid #0A3D62; border-color: var(--color-primary); color: #0A3D62; color: var(--color-primary); background: #FFFFFF; }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 30px; }
.mobile-nav a { display: flex; align-items: center; padding: 14px 12px; border-radius: 12px; font-weight: 700; color: #0A3D62; color: var(--color-primary); background: #FFFFFF; box-shadow: var(--shadow-soft); }
.mobile-nav a:hover { background: #EAF3FA; }

/* ------------------------------
   12) Cookie Consent Banner & Modal
------------------------------ */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10000; display: none; /* hidden by default */ }
.cookie-banner.show { display: flex; }
.cookie-banner .cookie-inner { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 1180px; margin: 12px auto; padding: 16px; background: #FFFFFF; border: 2px solid #1EA896; border-color: var(--color-secondary); border-radius: var(--radius-l); box-shadow: var(--shadow-lift); }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 8px; color: #0E2433; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn-accept { background: #1EA896; color: #FFFFFF; border-color: #1EA896; }
.cookie-actions .btn-reject { background: #FFFFFF; color: #0A3D62; border-color: #0A3D62; }
.cookie-actions .btn-settings { background: #F3F7FC; color: #0A3D62; border-color: #0A3D62; }

/* Cookie Modal */
.cookie-modal { position: fixed; inset: 0; z-index: 10001; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(14, 36, 51, 0.55); }
.cookie-modal.open { display: flex; }
.cookie-modal .modal-card { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 720px; background: #FFFFFF; border-radius: var(--radius-l); box-shadow: var(--shadow-lift); padding: 20px; border: 1px solid #E5EEF7; }
.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 .toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #E9F1F8; border-radius: 12px; background: #F9FCFF; }
.cookie-modal .toggle { width: 48px; height: 28px; border-radius: 28px; background: #CCDCE8; position: relative; box-shadow: inset 0 0 0 2px #E2EDF5; }
.cookie-modal .toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #FFFFFF; border-radius: 50%; box-shadow: var(--shadow-soft); transition: transform 0.2s ease; }
.cookie-modal .toggle.on { background: #1EA896; }
.cookie-modal .toggle.on::after { transform: translateX(20px); }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ------------------------------
   13) Utilities
------------------------------ */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.muted { color: #35546A; color: var(--color-ink-soft); }

/* ------------------------------
   14) Responsiveness (Mobile-first)
------------------------------ */
@media (min-width: 480px) {
  h1 { font-size: 34px; }
}

@media (min-width: 640px) {
  h1 { font-size: 38px; }
}

@media (min-width: 768px) {
  /* Header: show desktop nav */
  .tagline { display: block; }
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }

  .hero .content-wrapper { padding: 28px 0 18px 0; }
  .hero h1 { font-size: 42px; }

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

  /* Two-column-like flows using flex wraps */
  .content-grid { justify-content: flex-start; }

  /* Footer alignment */
  footer .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  header .content-wrapper { gap: var(--space-24); }
  .tagline { margin-left: 6px; }

  .hero .content-wrapper { gap: 18px; }
  .cta-row { gap: 14px; }
}

/* ------------------------------
   15) Page-specific subtle touches
------------------------------ */
/* Make hero headings extra artistic: underline accent bar */
.hero h1 { position: relative; padding-bottom: 6px; }
.hero h1::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 84px; height: 6px; background: #1EA896; border-radius: 6px; }

/* Enhance lists in key pages */
main section h2 + .text-section { border-left-color: #0A3D62; }

/* Ensure adequate gaps between all repeated blocks */
.content-wrapper > .testimonial-card + .testimonial-card { margin-top: 10px; }

/* ------------------------------
   16) Accessibility-friendly contrasts
------------------------------ */
/* Testimonials mandated to be dark-on-light */
.testimonial-card, .testimonial-card * { color: #0E2433; }

/* ------------------------------
   17) Prevent overlaps with safe spacing
------------------------------ */
main > section + section { margin-top: 6px; }

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