/* =====================================
   Blisko Rodzica — style.css (mobile-first, flex-only)
   Vibrant Energetic design: electric accents, dynamic spacing, bold actions
   ===================================== */

/* -------- CSS RESET & BASE NORMALIZE -------- */
* { box-sizing: border-box; }
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video { margin: 0; padding: 0; border: 0; font: inherit; vertical-align: baseline; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; }
article, aside, footer, header, nav, section, main { display: block; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.2rem; }
button, input, textarea, select { font: inherit; }
button { background: none; border: none; cursor: pointer; }

/* -------- THEME TOKENS -------- */
:root {
  --color-primary: #2E5E6F; /* brand primary */
  --color-secondary: #6B8F71; /* brand secondary */
  --color-accent: #F5F7FA; /* brand accent light */
  /* Vibrant energetic support accents (solid colors only) */
  --color-electric: #00D4FF; /* electric cyan */
  --color-pop: #FF2D55; /* energetic pink-red */
  --color-ink: #0F1D2B; /* dark readable text */
  --color-muted: #5B6B7A;
  --color-white: #FFFFFF;
  --shadow-1: 0 4px 14px rgba(0, 212, 255, 0.18);
  --shadow-2: 0 10px 24px rgba(47, 94, 111, 0.25);
  --radius-1: 10px;
  --radius-2: 16px;
  --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;
  --max-w: 1200px;
  --transition-fast: 160ms ease;
  --transition-med: 260ms ease;
}

/* -------- BASE TYPOGRAPHY -------- */
body {
  font-family: Verdana, Geneva, sans-serif; /* brand body */
  color: var(--color-ink);
  background: var(--color-white);
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; /* brand display */ }
h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.3px; margin-bottom: var(--space-16); }
h2 { font-size: 24px; line-height: 1.25; margin-bottom: var(--space-16); position: relative; }
h3 { font-size: 18px; line-height: 1.3; margin-top: var(--space-16); margin-bottom: var(--space-8); }
p { margin-bottom: var(--space-12);   }
strong { font-weight: 700; }
em { font-style: italic; }

/* Energetic heading underline */
h2::after {
  content: "";
  display: block;
  height: 4px;
  width: 72px;
  background: var(--color-electric);
  margin-top: 8px;
}

/* Links */
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover, a:focus { color: var(--color-pop); }
a:focus, button:focus, .btn:focus { outline: 2px dashed var(--color-electric); outline-offset: 2px; }

/* -------- LAYOUT CONTAINERS (FLEX-ONLY) -------- */
.container {
  display: flex; /* flex-only */
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 0 var(--space-20);
}
.content-wrapper {
  display: flex; /* flex-only */
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-20);
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

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

/* Ensure minimum spacing between content blocks */
section { padding: var(--space-40) 0; }
section + section { margin-top: var(--space-20); }

/* -------- HEADER -------- */
header { position: sticky; top: 0; z-index: 1000; background: var(--color-white); border-bottom: 3px solid var(--color-electric); box-shadow: var(--shadow-1); }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-16); }

.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

.main-nav { display: none; /* hidden on mobile */ align-items: center; gap: var(--space-16); }
.main-nav a { font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; padding: 8px 10px; border-radius: var(--radius-pill); transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast); }
.main-nav a:hover { background: var(--color-accent); color: var(--color-pop); transform: translateY(-1px); }

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

/* Mobile menu button */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 22px; color: var(--color-white); background: var(--color-primary); border-radius: 8px; box-shadow: var(--shadow-1); transition: background var(--transition-fast), transform var(--transition-fast); }
.mobile-menu-toggle:hover { background: var(--color-secondary); transform: translateY(-1px); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; background: var(--color-primary);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--space-20);
  padding: var(--space-20);
  transform: translateX(100%);
  transition: transform var(--transition-med);
  z-index: 2000;
}
.mobile-menu[aria-hidden="false"] { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 44px; height: 44px; font-size: 20px; color: var(--color-white); background: rgba(255,255,255,0.1); border-radius: 8px; }
.mobile-nav { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.mobile-nav a { color: var(--color-white); font-weight: 700; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,0.06); transition: background var(--transition-fast), transform var(--transition-fast); }
.mobile-nav a:hover { background: rgba(0,212,255,0.18); transform: translateX(4px); }

/* -------- HERO -------- */
.hero { background: var(--color-accent); position: relative; }
.hero .content-wrapper { padding-top: var(--space-20); padding-bottom: var(--space-20); }
.hero h1 { color: var(--color-primary); font-weight: 700; }
.subheadline { font-size: 18px; color: var(--color-muted); max-width: 70ch; }

/* Energetic top bar accent */
.hero::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: var(--color-electric); }

/* CTA group */
.cta-group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); }

/* Trust badges */
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; color: var(--color-secondary); font-weight: 700; }
.trust-badges span { background: var(--color-white); border: 2px solid var(--color-electric); padding: 6px 10px; border-radius: var(--radius-pill); box-shadow: var(--shadow-1); }

/* Supporting points list */
.supporting-points { display: flex; flex-direction: column; gap: 12px; list-style: none; padding-left: 0; }
.supporting-points li { display: flex; align-items: center; gap: 10px; background: var(--color-white); padding: 10px 12px; border-radius: var(--radius-1); box-shadow: var(--shadow-1); border: 1px solid #E4ECF2; }
.supporting-points img { width: 20px; height: 20px; }

/* -------- TEXT BLOCKS -------- */
.text-section { display: flex; flex-direction: column; gap: var(--space-12); }
.text-section ul { display: flex; flex-direction: column; gap: 8px; }
.text-section li { margin-left: 14px; }
.text-section p { max-width: 80ch; }
.microcopy { font-size: 14px; color: var(--color-muted); }

/* Steps list (ordered) */
.steps-list { display: flex; flex-direction: column; gap: 10px; padding-left: 1.2rem; }
.steps-list li { padding: 10px 12px; background: var(--color-accent); border: 1px solid #E8EEF3; border-radius: 8px; }

/* -------- BUTTONS -------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius-pill); font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast); border: 2px solid transparent; }
.btn.primary { background: var(--color-pop); color: var(--color-white); box-shadow: 0 6px 18px rgba(255, 45, 85, 0.35); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 45, 85, 0.45); }
.btn.secondary { background: var(--color-primary); color: var(--color-white); box-shadow: var(--shadow-2); }
.btn.secondary:hover { background: var(--color-secondary); transform: translateY(-2px); }
.btn.link { background: transparent; color: var(--color-primary); border-color: var(--color-electric); }
.btn.link:hover { color: var(--color-pop); background: var(--color-accent); }

/* -------- TESTIMONIALS (readable high-contrast) -------- */
.testimonial-card { background: var(--color-white); border: 2px solid #E7EEF4; border-left: 6px solid var(--color-electric); border-radius: var(--radius-2); box-shadow: var(--shadow-1); color: var(--color-ink); }
.testimonial-card p { margin: 0; }
.testimonial-card p + p { margin-top: 6px; }

/* -------- LISTS & MISC -------- */
ol, ul { color: var(--color-ink); }
li { padding-left: 2px; }

/* -------- FOOTER -------- */
footer { background: #0E2431; color: var(--color-white); padding: 30px 0; margin-top: var(--space-40); border-top: 6px solid var(--color-electric); }
footer .content-wrapper { flex-direction: column; gap: var(--space-20); }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand img { height: 36px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { color: var(--color-white); background: rgba(255,255,255,0.06); padding: 8px 12px; border-radius: 8px; transition: background var(--transition-fast), transform var(--transition-fast); }
.footer-nav a:hover { background: rgba(0,212,255,0.25); transform: translateY(-2px); }
.footer-contact p a { color: var(--color-white); text-decoration: underline; }

/* -------- GENERIC CARD (for future use) -------- */
.card { background: var(--color-white); border: 1px solid #E6EDF3; border-radius: var(--radius-1); padding: var(--space-20); box-shadow: var(--shadow-1); }
.card:hover { box-shadow: var(--shadow-2); }

/* -------- ACCESSIBILITY UTILITIES -------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; border: 0; padding: 0; clip: rect(0 0 0 0); overflow: hidden; }

/* -------- MOBILE NAVIGATION RULES -------- */
@media (min-width: 769px) {
  .mobile-menu-toggle { display: none; }
  .main-nav { display: flex; }
  .header-cta { display: flex; }
}

/* -------- RESPONSIVE LAYOUTS -------- */
/* Text-image sections become side-by-side on larger screens */
@media (min-width: 769px) {
  .text-image-section { flex-direction: row; }
}

/* Header container alignment on larger screens */
@media (min-width: 1024px) {
  .hero h1 { font-size: 40px; }
  h2 { font-size: 28px; }
}

/* -------- PAGES: SPECIFIC TWEAKS -------- */
/* Pricing highlights */
.page-pricing .text-section li strong,
.page-services .text-section li strong { color: var(--color-primary); }

/* Small icon rows in contact sections */
.text-section p img { width: 18px; height: 18px; display: inline-block; margin-right: 8px; vertical-align: middle; }

/* -------- COOKIE CONSENT (banner + modal) -------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000;
  background: var(--color-white);
  color: var(--color-ink);
  border-top: 4px solid var(--color-electric);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.12);
  padding: 16px 20px;
  display: none; /* hidden by default, toggled by .is-visible */
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner .container { padding: 0 20px; }
.cookie-banner .content-wrapper { flex-direction: column; gap: 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: var(--radius-pill); font-weight: 700; border: 2px solid transparent; }
.cookie-btn.accept { background: var(--color-pop); color: var(--color-white); }
.cookie-btn.reject { background: var(--color-primary); color: var(--color-white); }
.cookie-btn.settings { background: transparent; color: var(--color-primary); border-color: var(--color-electric); }
.cookie-btn:hover { transform: translateY(-2px); transition: transform var(--transition-fast); }

/* Cookie preferences modal */
.cookie-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; z-index: 4000; }
.cookie-modal-overlay.is-visible { display: flex; }
.cookie-modal {
  background: var(--color-white); color: var(--color-ink);
  width: min(720px, 92%);
  margin: auto; border-radius: var(--radius-2);
  border: 4px solid var(--color-electric);
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px;
}
.cookie-modal header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; background: var(--color-accent); border: 1px solid #E7EEF4; border-radius: 10px; padding: 12px 14px; }
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; }
.cookie-toggle input[type="checkbox"] { width: 18px; height: 18px; }

/* -------- PRINT SAFE -------- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  header { position: static; box-shadow: none; }
}

/* -------- EXTRA FLEX UTILITIES (no grid) -------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-20 { gap: 20px; }

/* -------- PAGE-LEVEL HELPERS (no change to HTML needed) -------- */
/* Apply subtle alternating section backgrounds for energy & rhythm */
main section:nth-of-type(odd) { background: var(--color-white); }
main section:nth-of-type(even) { background: #FAFCFF; }

/* Ensure no overlapping elements */
section, .card, .testimonial-card, .text-section, .cta-group { margin-bottom: var(--space-20); }

/* -------- DESKTOP ENHANCEMENTS -------- */
@media (min-width: 900px) {
  .content-wrapper { flex-direction: column; }
  /* For hero and header we already used row where needed */
}

/* Keep all containers flex-only and responsive */
/* Footer rearranges horizontally on wider screens */
@media (min-width: 769px) {
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}

/* -------- ACCESSIBLE FOCUS STATES -------- */
:where(a, button, .btn):focus-visible { box-shadow: 0 0 0 3px rgba(0,212,255,0.45); }

/* -------- SCROLLBEHAVIOR -------- */
html { scroll-behavior: smooth; }
