/* =============================
   Iglica Polszczyzny – style.css
   Warm & Friendly theme
   Mobile-first, Flexbox-only layouts
   ============================= */

/* ---------- CSS RESET / NORMALIZE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: 'Arial', system-ui, -apple-system, Segoe UI, Roboto, 'Trebuchet MS', sans-serif; line-height: 1.6; color: #23303A; background-color: #FFF9F6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: #0A3D62; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 16px 20px; padding: 0; }
button { font: inherit; background: transparent; border: 0; padding: 0; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid rgba(162,58,45,0.35); outline-offset: 2px; border-radius: 8px; }

/* ---------- THEME TOKENS ---------- */
:root {
  --color-primary: #0A3D62; /* deep blue */
  --color-secondary: #A23A2D; /* warm brick */
  --color-accent: #F5F7FA; /* light cool neutral */
  --warm-50: #FFF7F2; /* peach tint */
  --warm-100: #FFEDE3;
  --warm-200: #FFD9C7;
  --ink: #23303A; /* dark text */
  --muted: #6B7A86; /* muted text */
  --white: #FFFFFF;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(10, 61, 98, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 61, 98, 0.12);
  --shadow-lg: 0 16px 40px rgba(10, 61, 98, 0.16);

  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;

  --font-display: 'Trebuchet MS', 'Arial', sans-serif;
  --font-body: 'Arial', 'Trebuchet MS', sans-serif;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--color-primary); margin: 0 0 12px 0; line-height: 1.25; }
h1 { font-size: 32px; }
h2 { font-size: 24px; margin-top: 8px; }
h3 { font-size: 18px; color: var(--color-secondary); }
p { margin: 0 0 12px 0; font-size: 16px; }
small { color: var(--muted); }
strong { color: var(--ink); }

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

/* MANDATORY SPACING PATTERNS */
.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; }

/* ---------- HEADER & NAV ---------- */
header { background: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; gap: 14px; }
.main-nav a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink); transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.main-nav a:hover { background: var(--warm-100); color: var(--color-primary); transform: translateY(-1px); }

.header-ctas { display: none; align-items: center; gap: 10px; }

/* Mobile burger */
.mobile-menu-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--warm-100); color: var(--color-primary); box-shadow: var(--shadow-sm); transition: background .2s ease, transform .2s ease; }
.mobile-menu-toggle:hover { background: var(--warm-200); transform: translateY(-1px); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; background: rgba(10,61,98,0.06); display: flex; align-items: flex-start; justify-content: flex-start; transform: translateX(-100%); transition: transform .3s ease; z-index: 1000; }
.mobile-menu.open, .mobile-menu.active { transform: translateX(0); }
.mobile-menu > nav, .mobile-nav { background: var(--white); height: 100%; width: 85%; max-width: 360px; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-top-right-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.mobile-menu-close { align-self: flex-end; margin: 16px; width: 40px; height: 40px; border-radius: 10px; background: var(--warm-100); color: var(--color-secondary); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.mobile-nav a { padding: 12px 14px; border-radius: 10px; color: var(--ink); font-size: 16px; background: var(--accent); transition: background .2s ease, transform .2s ease; }
.mobile-nav a:hover { background: var(--warm-100); transform: translateX(2px); }

/* ---------- HERO ---------- */
.hero { background: var(--warm-50); border-radius: 0 0 var(--radius-xl) var(--radius-xl); box-shadow: inset 0 -1px 0 rgba(10,61,98,0.06); padding: 20px 0 30px; }
.hero .container { gap: 0; }
.hero .content-wrapper { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); }
.hero h1 { font-size: 28px; }
.hero p { font-size: 16px; color: var(--ink); }

/* ---------- TEXT BLOCKS ---------- */
.text-section { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.text-section ul, .text-section ol { display: flex; flex-direction: column; gap: 8px; margin-left: 18px; }
.text-section p img { display: inline-block; vertical-align: middle; margin-right: 8px; }

/* ---------- TRUST BADGES ---------- */
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.trust-badges span { background: var(--warm-100); color: var(--ink); padding: 8px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); font-size: 14px; }

/* ---------- CTA ROW & BUTTONS ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; font-weight: bold; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; box-shadow: var(--shadow-sm); }
.button.primary { background: var(--color-secondary); color: var(--white); }
.button.primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.button.secondary { background: var(--warm-100); color: var(--color-primary); }
.button.secondary:hover { background: var(--warm-200); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.button:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

/* ---------- CARDS & TESTIMONIALS ---------- */
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.testimonial-card { background: var(--white); border: 1px solid rgba(10,61,98,0.08); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); color: var(--ink); }
.testimonial-card p { margin: 0; font-size: 16px; color: var(--ink); }
.testimonial-card div { color: var(--muted); font-size: 14px; }

/* ---------- LISTS OF INFO ---------- */
.content-grid { justify-content: space-between; }
.feature-item h3 { margin-bottom: 4px; }

/* ---------- FOOTER ---------- */
footer { background: var(--color-primary); color: #EAF1F6; padding: 24px 0 0; margin-top: 40px; border-top-left-radius: var(--radius-xl); border-top-right-radius: var(--radius-xl); box-shadow: 0 -6px 20px rgba(10,61,98,0.12); }
footer .container { gap: 12px; }
footer .content-wrapper { gap: 10px; }
.footer-nav, .legal-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a, .legal-nav a { color: #EAF1F6; background: rgba(255,255,255,0.06); padding: 8px 12px; border-radius: 10px; transition: background .2s ease, transform .2s ease; }
.footer-nav a:hover, .legal-nav a:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
footer h3 { color: #FFFFFF; }
footer a { color: #FFFFFF; }

/* ---------- COOKIES BANNER & MODAL ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; background: var(--white); border: 1px solid rgba(10,61,98,0.1); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; z-index: 1050; transform: translateY(120%); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .button { padding: 10px 14px; }
.cookie-banner .btn-accept { background: var(--color-secondary); color: var(--white); }
.cookie-banner .btn-reject { background: var(--warm-100); color: var(--color-primary); }
.cookie-banner .btn-settings { background: var(--accent); color: var(--ink); }

.cookie-modal { position: fixed; inset: 0; background: rgba(10,61,98,0.35); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 1100; }
.cookie-modal.open { display: flex; }
.cookie-modal .cookie-modal-content { width: 100%; max-width: 640px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.cookie-modal .cookie-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(10,61,98,0.08); }
.cookie-modal .cookie-row:last-child { border-bottom: 0; }

/* Toggle switch pattern (for analytics/marketing) */
.toggle { position: relative; width: 44px; height: 26px; background: var(--accent); border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(10,61,98,0.08); transition: background .2s ease; display: flex; align-items: center; padding: 3px; }
.toggle::after { content: ""; width: 20px; height: 20px; background: var(--white); border-radius: 50%; box-shadow: var(--shadow-sm); transform: translateX(0); transition: transform .2s ease; }
.toggle.on { background: rgba(162,58,45,0.35); }
.toggle.on::after { transform: translateX(18px); }

/* ---------- UTILS ---------- */
.muted { color: var(--muted); }
.center { display: flex; align-items: center; justify-content: center; }
.pill { border-radius: 999px; }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 576px) {
  h1 { font-size: 34px; }
  .hero h1 { font-size: 32px; }
}

@media (min-width: 768px) {
  /* Show desktop nav, align header */
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }

  .hero .content-wrapper { padding: 32px; }
  .text-image-section { flex-direction: row; }
  .container { padding: 0 20px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}

@media (min-width: 1024px) {
  .hero .content-wrapper { padding: 40px; }
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  p { font-size: 18px; }
}

/* ---------- PAGE-SPECIFIC POLISHES ---------- */
/* Lists and info blocks across pages */
.content-wrapper > ul, .content-wrapper > ol { display: flex; flex-direction: column; gap: 8px; margin-left: 18px; }

/* Course badges and schedule badges mentions */
.content-wrapper p strong, .text-section p strong { color: var(--color-primary); }

/* Contact info rows with icons */
.text-section p a { color: var(--color-secondary); font-weight: bold; }
.text-section p a:hover { text-decoration: underline; }

/* CTA sections near page ends */
main .content-wrapper > .cta-row { margin-top: 6px; }

/* ---------- ACCESSIBILITY & STATES ---------- */
.button:focus-visible, .main-nav a:focus-visible, .mobile-nav a:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible { outline: 3px solid rgba(10,61,98,0.35); outline-offset: 2px; }

/* ---------- FLEX SAFETY SPACING ---------- */
/* Ensure no overlap and breathing room between blocks */
.content-wrapper > * + * { margin-top: 4px; }

/* ---------- ENHANCED CARDS FOR POSSIBLE FUTURE USE ---------- */
.card.elevated { box-shadow: var(--shadow-md); }
.card.highlight { border: 2px solid rgba(162,58,45,0.25); background: #FFF3EF; }

/* ---------- FORBIDDEN PROPERTIES SAFETY NOTE ---------- */
/* No CSS Grid or multi-column properties used. All layouts rely on Flexbox. */
