/* =============================
   Lucora Shore Prawo Biznesu
   Scandinavian Clean – style.css
   Mobile-first, Flexbox-only
   ============================= */

/* -----------------------------
   CSS Reset / Normalize (lite)
------------------------------ */
* { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 1.2em; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
blockquote { margin: 0; }

/* -----------------------------
   Design tokens & base theme
------------------------------ */
:root {
  --color-primary: #0B2C3D;
  --color-secondary: #1E7A6E;
  --color-accent: #F4F7FA;
  --ink-900: #0B2C3D; /* primary */
  --ink-800: #17394A;
  --ink-700: #2A4857;
  --ink-600: #3B5B68;
  --ink-500: #597380;
  --ink-400: #7F97A3;
  --ink-300: #AFC0C9;
  --ink-200: #D5DEE3;
  --ink-100: #E9EFF2;
  --surface: #FFFFFF;
  --surface-muted: #FAFBFC;
  --accent: #F4F7FA; /* brand accent */
  --focus: #1E7A6E;
  --shadow-soft: 0 6px 18px rgba(11,44,61,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-8: 8px;  --space-12: 12px; --space-16: 16px; --space-20: 20px;
  --space-24: 24px; --space-30: 30px; --space-32: 32px; --space-40: 40px; --space-60: 60px;
}

/* -----------------------------
   Base typography
------------------------------ */
body {
  font-family: Arial, Helvetica, sans-serif; /* brand body */
  color: var(--ink-700, #2A4857);
  background: var(--surface-muted, #FAFBFC);
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif; /* brand display */
  color: var(--ink-900, #0B2C3D);
}

h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.2px; }
h2 { font-size: 24px; line-height: 1.3; margin-top: 8px; }
h3 { font-size: 18px; line-height: 1.35; color: var(--ink-800, #17394A); }

p, li { font-size: 16px; color: var(--ink-700, #2A4857); }
small, .breadcrumbs { font-size: 14px; color: var(--ink-500, #597380); }

strong { color: var(--ink-800, #17394A); }

/* Ensure readable links */
a { color: var(--color-secondary, #1E7A6E); text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
a:focus { outline: 2px solid var(--focus, #1E7A6E); outline-offset: 2px; border-radius: 6px; }

/* -----------------------------
   Layout helpers (Flex-only)
------------------------------ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex; /* flex-only layout */
  flex-direction: column;
  gap: var(--space-20);
}

.content-wrapper {
  display: flex; /* flex-only layout */
  flex-direction: column;
  gap: var(--space-16);
}

/* MANDATORY spacing classes */
.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; }

/* Apply same spacing to semantic sections */
section { margin-bottom: var(--space-60); padding: var(--space-40) var(--space-20); background: var(--surface, #FFFFFF); border: 1px solid var(--ink-100, #E9EFF2); border-radius: var(--radius-lg); }

/* First section on page = hero feel */
main > section:first-of-type {
  background: var(--accent, #F4F7FA);
  border-color: var(--ink-100, #E9EFF2);
}

/* Prevent overlaps and ensure gaps */
section .container { gap: var(--space-20); }

/* -----------------------------
   Header & navigation
------------------------------ */
header { position: sticky; top: 0; z-index: 1000; background: #FFFFFF; border-bottom: 1px solid var(--ink-100, #E9EFF2); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 12px; }

header a img { height: 36px; width: auto; }

/* Desktop nav hidden on mobile */
header nav { display: none; }

/* CTAs */
.cta-primary,
.cta-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 18px; border-radius: 10px;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .08s ease;
  white-space: nowrap;
}

.cta-primary { background: var(--color-secondary, #1E7A6E); color: #FFFFFF; box-shadow: var(--shadow-soft); border: 1px solid rgba(30,122,110,0.1); }
.cta-primary:hover { background: #18665D; box-shadow: 0 8px 24px rgba(30,122,110,0.18); text-decoration: none; }
.cta-primary:active { transform: translateY(1px); }

.cta-secondary { background: transparent; color: var(--color-primary, #0B2C3D); border: 1px solid var(--ink-200, #D5DEE3); }
.cta-secondary:hover { background: var(--accent, #F4F7FA); }
.cta-secondary:active { transform: translateY(1px); }

/* Mobile burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--ink-200, #D5DEE3); background: #FFFFFF; border-radius: 10px; cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease; }
.mobile-menu-toggle:hover { background: var(--accent, #F4F7FA); box-shadow: var(--shadow-soft); }
.mobile-menu-toggle:focus { outline: 2px solid var(--focus, #1E7A6E); outline-offset: 2px; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; /* top/right/bottom/left */
  background: #FFFFFF;
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 2000;
  display: flex; /* flex-only layout */
  flex-direction: column;
  gap: var(--space-24);
  padding: 20px;
}
.mobile-menu.open, .mobile-menu.active { transform: translateX(0); }

.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ink-200, #D5DEE3); background: #FFFFFF; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mobile-menu-close:hover { background: var(--accent, #F4F7FA); }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a { padding: 12px 10px; border-radius: 8px; color: var(--ink-800, #17394A); }
.mobile-nav a:hover { background: var(--accent, #F4F7FA); text-decoration: none; }

body.no-scroll { overflow: hidden; }

/* Show desktop nav on wider screens */
@media (min-width: 992px) {
  header nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .mobile-menu-toggle { display: none; }
}

/* -----------------------------
   Hero & common components
------------------------------ */
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: var(--ink-500, #597380); }

.metrics { display: flex; flex-wrap: wrap; gap: 10px; color: var(--ink-600, #3B5B68); }
.metrics strong { color: var(--ink-800, #17394A); }

.feature-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.feature-grid > div { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; background: #FFFFFF; border: 1px solid var(--ink-100, #E9EFF2); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-soft); }
.feature-grid img { width: 32px; height: 32px; }

.service-icons { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 6px; }
.service-icons img { width: 40px; height: 40px; filter: saturate(0.85) contrast(1.05); }

.featured-articles, .article-list { display: flex; flex-wrap: wrap; gap: 20px; }
.featured-articles article, .article-list article { flex: 1 1 280px; background: #FFFFFF; border: 1px solid var(--ink-100, #E9EFF2); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 8px; }

.filters, .tag-cloud { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--ink-600, #3B5B68); }
.filters a { padding: 6px 10px; border: 1px solid var(--ink-200, #D5DEE3); border-radius: 20px; }
.filters a:hover { background: var(--accent, #F4F7FA); text-decoration: none; }

.next-steps { display: flex; flex-direction: column; gap: 10px; background: #FFFFFF; border: 1px solid var(--ink-100, #E9EFF2); padding: 16px; border-radius: var(--radius-md); }

/* Text-image responsive requirement */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* -----------------------------
   Testimonials (contrast-safe)
------------------------------ */
.testimonial-card {
  background: #FFFFFF; /* light surface for readability */
  border: 1px solid var(--ink-100, #E9EFF2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  color: var(--ink-800, #17394A);
}
.testimonial-card blockquote { font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.5; color: var(--ink-900, #0B2C3D); }
.testimonial-card img { width: 36px; height: 36px; opacity: 0.85; }
.testimonial-card span { margin-left: auto; color: var(--ink-700, #2A4857); }

/* -----------------------------
   Lists, tables, forms
------------------------------ */
.content-wrapper ul { display: flex; flex-direction: column; gap: 8px; }
.content-wrapper ol { display: flex; flex-direction: column; gap: 8px; padding-left: 1.4em; }

/* Table (cookies page) */
table { width: 100%; border-collapse: collapse; background: #FFFFFF; border: 1px solid var(--ink-100, #E9EFF2); border-radius: var(--radius-md); overflow: hidden; display: table; }
thead tr { background: var(--accent, #F4F7FA); }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--ink-100, #E9EFF2); font-size: 14px; color: var(--ink-700, #2A4857); }
tr:last-child td { border-bottom: none; }

/* Forms */
input[type="email"], input[type="search"] { width: 100%; max-width: 360px; padding: 12px 14px; border: 1px solid var(--ink-200, #D5DEE3); border-radius: 10px; background: #FFFFFF; color: var(--ink-800, #17394A); }
input[disabled] { background: var(--accent, #F4F7FA); color: var(--ink-400, #7F97A3); cursor: not-allowed; }
label { display: inline-block; margin-bottom: 6px; color: var(--ink-700, #2A4857); }

/* -----------------------------
   Footer
------------------------------ */
footer { background: #FFFFFF; border-top: 1px solid var(--ink-100, #E9EFF2); }
footer .container { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px; padding-top: 24px; padding-bottom: 24px; }
footer nav { display: flex; flex-direction: column; gap: 10px; }
footer a { color: var(--ink-700, #2A4857); }
footer a:hover { color: var(--color-secondary, #1E7A6E); text-decoration: none; }
footer .social-links { display: flex; align-items: center; gap: 12px; }
footer .social-links a { display: inline-flex; padding: 8px; border: 1px solid var(--ink-200, #D5DEE3); border-radius: 8px; }
footer .social-links a:hover { background: var(--accent, #F4F7FA); }

/* -----------------------------
   Cookie consent banner + modal
------------------------------ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #FFFFFF;
  border-top: 1px solid var(--ink-100, #E9EFF2);
  box-shadow: 0 -10px 24px rgba(11,44,61,0.08);
  z-index: 2500;
  transform: translateY(110%);
  transition: transform .3s ease;
  display: flex; /* flex-only layout */
  flex-direction: column; gap: 12px;
  padding: 16px;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--ink-200, #D5DEE3); cursor: pointer; background: #FFFFFF; color: var(--ink-800, #17394A); }
.cookie-banner .btn:hover { background: var(--accent, #F4F7FA); }
.cookie-banner .btn-primary { background: var(--color-secondary, #1E7A6E); color: #FFFFFF; border-color: rgba(30,122,110,0.2); }
.cookie-banner .btn-primary:hover { background: #18665D; }

/* Cookie preferences modal */
.cookie-modal-overlay { position: fixed; inset: 0; background: rgba(11,44,61,0.32); display: none; z-index: 3000; }
.cookie-modal-overlay.show { display: flex; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal { background: #FFFFFF; border: 1px solid var(--ink-100, #E9EFF2); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.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; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* -----------------------------
   Utilities & micro-interactions
------------------------------ */
hr { border: none; border-top: 1px solid var(--ink-100, #E9EFF2); margin: 20px 0; }

/* Card utility (for any generic box) */
.card { background: #FFFFFF; border: 1px solid var(--ink-100, #E9EFF2); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-soft); }

/* Blockquote style accent */
blockquote { border-left: 4px solid var(--color-secondary, #1E7A6E); padding-left: 12px; color: var(--ink-900, #0B2C3D); }

/* Icons inside inline text */
p img[alt^="Telefon"], p img[alt^="E-mail"], p img[alt^="Adres"], p img[alt^="Godziny"], p img[alt^="Czat"] { display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }

/* Hover lift for cards and articles */
.feature-grid > div:hover,
.featured-articles article:hover,
.article-list article:hover,
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(11,44,61,0.12); transition: transform .2s ease, box-shadow .2s ease; }

/* -----------------------------
   Responsive adjustments
------------------------------ */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .container { padding-left: 20px; padding-right: 20px; }
  footer .container { gap: 24px; }
}

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

/* -----------------------------
   Page-specific light touches
------------------------------ */
/* Index highlights */
main > section:nth-of-type(2) .content-wrapper > h2 { margin-bottom: 4px; }

/* About/Team/Services breadcrumbs spacing */
.breadcrumbs { padding-top: 4px; }

/* Publications search row */
.filters strong { color: var(--ink-700, #2A4857); }

/* Contact links */
.content-wrapper a { transition: color .2s ease, background-color .2s ease, box-shadow .2s ease; }

/* Ensure min spacing between content blocks */
.content-wrapper > * + * { margin-top: 0; }

/* -----------------------------
   Accessibility focus-visible
------------------------------ */
:focus-visible { outline: 2px solid var(--focus, #1E7A6E); outline-offset: 2px; border-radius: 6px; }

/* -----------------------------
   Compliance with flex-only rule
   (No CSS Grid / Columns used)
------------------------------ */
/* Verified: All layout containers use display:flex where applicable. */
