/* ===================================================================
   Zynora Spark Pupile - style.css
   Design style: gradient_modern (modern gradients, smooth transitions)
   Mobile-first, flexbox-only layouts, accessible, brand-compliant
   =================================================================== */

/* =========================
   1) RESET & 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-size: 100%; font: inherit; vertical-align: baseline; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; border: none; background: transparent; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #236488; outline-offset: 2px; }

/* =========================
   2) THEME TOKENS (simple custom properties with fallbacks)
   ========================= */
:root {
  /* Brand colors */
  --primary: #1D4F6E; /* deep teal */
  --primary-700: #163A52; /* darker */
  --primary-600: #1C4763;
  --primary-500: #236488; /* lighter teal for gradients */
  --secondary: #F29F05; /* amber/orange */
  --secondary-600: #D98904;
  --accent: #F5F9FC; /* light accent */
  --neutral-900: #0F1720; /* near-black */
  --neutral-800: #1A2630;
  --neutral-700: #2A3A46;
  --neutral-600: #3D4E5B; /* muted text */
  --neutral-300: #D8E2EA; /* borders */
  --neutral-200: #E8EFF5;
  --white: #FFFFFF;

  /* Shadows & radii */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 4px 12px rgba(16, 38, 55, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 38, 55, 0.12);
  --shadow-lg: 0 16px 40px rgba(16, 38, 55, 0.16);

  /* Spacing scale */
  --space-4: 4px; --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-48: 48px; --space-60: 60px; --space-80: 80px;

  /* Typography */
  --font-display: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  --font-body: Verdana, 'Segoe UI', Arial, sans-serif;
}

/* =========================
   3) BASE TYPOGRAPHY & BODY
   ========================= */
html { scroll-behavior: smooth; }
body {
  background: var(--accent, #F5F9FC);
  color: var(--neutral-900, #0F1720);
  font-family: var(--font-body, Verdana, sans-serif);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-display, 'Trebuchet MS', sans-serif); color: var(--neutral-900, #0F1720); }
h1 { font-size: 38px; line-height: 1.2; letter-spacing: -0.5px; }
h2 { font-size: 28px; margin-bottom: var(--space-20); }
h3 { font-size: 20px; }
p { margin-bottom: var(--space-16); color: var(--neutral-800, #1A2630); }
strong { font-weight: 700; }

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

/* =========================
   4) LAYOUT WRAPPERS (Flexbox only)
   ========================= */
.container {
  display: flex; flex-direction: column; align-items: stretch;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-16);
}
.content-wrapper {
  display: flex; flex-direction: column; align-items: stretch; gap: var(--space-20);
}

/* Mandatory spacing & alignment patterns */
.section { margin-bottom: 60px; padding: 40px 20px; display: flex; flex-direction: column; gap: 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; }
.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; }

/* =========================
   5) HEADER & NAVIGATION
   ========================= */
header { background: var(--white, #FFFFFF); box-shadow: var(--shadow-sm); position: relative; z-index: 50; }
header .content-wrapper { padding: var(--space-12) 0; }

.brand { display: flex; align-items: center; gap: var(--space-12); }
.brand img { width: 140px; height: auto; }
.tagline { color: var(--neutral-600); font-size: 12px; }

.main-nav { display: none; align-items: center; gap: var(--space-16); flex-wrap: wrap; }
.main-nav a { color: var(--neutral-800); padding: 8px 10px; border-radius: 8px; transition: color .2s ease, background-color .2s ease; }
.main-nav a[aria-current="page"], .main-nav a:hover { background: var(--accent); color: var(--primary); }

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

.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--primary, #1D4F6E), var(--primary-500, #236488)); color: #fff;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(13, 22, 32, 0.5);
  display: flex; flex-direction: row; justify-content: flex-end; align-items: stretch; gap: 0;
  transform: translateX(100%); transition: transform .35s ease; z-index: 100;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .mobile-nav {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 0 0 80%; max-width: 380px;
  background: #fff; padding: 20px; border-top-left-radius: 16px; border-bottom-left-radius: 16px; box-shadow: var(--shadow-lg);
}
.mobile-menu-close {
  position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--neutral-900);
}
.mobile-nav a { width: 100%; padding: 14px 12px; border-radius: 10px; color: var(--neutral-900); background: var(--accent); }
.mobile-nav a:hover { background: #EEF5FA; }

/* Desktop layout switches */
@media (min-width: 992px) {
  header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-20); }
  .main-nav { display: flex; }
  .cta-bar { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* =========================
   6) HERO SECTIONS (gradient_modern)
   ========================= */
.hero { padding: var(--space-40) 0; margin-bottom: var(--space-32); }
.hero .container { position: relative; }
.hero .content-wrapper {
  background: linear-gradient(135deg, var(--primary, #1D4F6E) 0%, var(--primary-500, #236488) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: var(--space-32);
  box-shadow: var(--shadow-md);
}
.hero h1, .hero p { color: #fff; }
.hero .cta-group { display: flex; flex-wrap: wrap; gap: var(--space-12); }

/* Benefit badges row */
.benefit-badges { display: flex; flex-wrap: wrap; gap: var(--space-12); margin-top: var(--space-8); }
.benefit-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; color: #fff; }
.benefit-badges img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

/* =========================
   7) BUTTONS
   ========================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 12px; font-weight: 700; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }

.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary, #1D4F6E), var(--primary-500, #236488)); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary { color: var(--neutral-900); background: linear-gradient(135deg, var(--secondary, #F29F05), var(--secondary-600, #D98904)); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary:active { transform: translateY(0); }

/* Link-like button variant (if used) */
.btn-link { background: transparent; color: var(--primary); padding: 0; }
.btn-link:hover { color: var(--primary-500); }

/* =========================
   8) SEARCH BAR
   ========================= */
.search-bar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--neutral-300); border-radius: 14px; padding: 6px 6px 6px 12px; box-shadow: var(--shadow-sm); }
.search-bar input[type="search"] { flex: 1 1 auto; padding: 10px 6px; border-radius: 10px; background: transparent; color: var(--neutral-900); }
.search-bar button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); }
.search-bar button img { width: 20px; height: 20px; }

/* =========================
   9) FEATURE / CATEGORY / TABS / TEASERS
   ========================= */
.feature-grid, .category-cards, .product-teasers, .filters, .filters-bar, .sorting, .view-toggle, .testimonial-list, .payments, .footer-nav, .legal-links, .contact-info, .rating-summary {
  display: flex; flex-wrap: wrap; gap: var(--space-20);
}

/* Feature & category cards */
.feature-grid > div, .category-cards > a {
  flex: 1 1 260px; min-width: 260px; background: #fff; border: 1px solid var(--neutral-300); border-radius: var(--radius-md);
  padding: var(--space-20); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.category-cards > a h3 { margin-bottom: 8px; color: var(--neutral-900); }
.category-cards > a p { color: var(--neutral-700); }
.feature-grid > div:hover, .category-cards > a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tabs button { padding: 10px 14px; border-radius: 999px; background: var(--accent); color: var(--neutral-900); transition: background-color .2s ease, color .2s ease; }
.tabs button:hover { background: #EAF2F8; }
.tabs button:first-child { background: linear-gradient(135deg, var(--primary), var(--primary-500)); color: #fff; }

/* Teasers */
.product-teasers { display: flex; flex-wrap: wrap; gap: var(--space-20); }
.teaser { flex: 1 1 280px; min-width: 260px; background: #fff; border: 1px solid var(--neutral-300); border-radius: var(--radius-md); padding: var(--space-20); box-shadow: var(--shadow-sm); }
.teaser .badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--secondary); color: #111; font-weight: 700; margin-bottom: 8px; }
.teaser h3 { margin-bottom: 6px; }
.teaser p { margin-bottom: 12px; }
.teaser button { padding: 10px 12px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-500)); color: #fff; }

/* =========================
   10) PRODUCT LISTS
   ========================= */
.product-grid { display: flex; flex-wrap: wrap; gap: var(--space-20); }
.product-grid article {
  flex: 1 1 260px; min-width: 260px; background: #fff; border: 1px solid var(--neutral-300); border-radius: var(--radius-md);
  padding: var(--space-20); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, box-shadow .2s ease;
}
.product-grid article:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-grid .badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--secondary); color: #111; font-weight: 700; }
.product-grid .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.product-grid .actions button { padding: 10px 12px; border-radius: 10px; background: var(--accent); color: var(--neutral-900); }
.product-grid .actions button:hover { background: #EAF2F8; }

/* Sorting / filters */
.filters, .filters-bar { align-items: flex-start; }
.filters > div, .filters-bar > div { flex: 1 1 220px; min-width: 220px; background: #fff; border: 1px solid var(--neutral-300); border-radius: var(--radius-md); padding: var(--space-16); box-shadow: var(--shadow-sm); }
.filters ul { display: flex; flex-direction: column; gap: 8px; }
.sorting { align-items: center; }
.sorting span { color: var(--neutral-700); }
.sorting button { padding: 8px 12px; border-radius: 999px; background: var(--accent); }
.sorting button:hover { background: #EAF2F8; }
.view-toggle { margin-left: auto; }
.view-toggle button { padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--neutral-300); }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 8px; margin-top: var(--space-20); }
.pagination button { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--neutral-300); }
.pagination button.active, .pagination button:hover { background: linear-gradient(135deg, var(--primary), var(--primary-500)); color: #fff; border-color: transparent; }

/* =========================
   11) TEXT SECTIONS & LISTS
   ========================= */
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section h3 { font-size: 18px; margin-top: 6px; }
.values { display: flex; flex-direction: column; gap: 10px; }
.values ul { display: flex; flex-direction: column; gap: 8px; }
.metrics { display: flex; flex-wrap: wrap; gap: 12px; color: var(--neutral-700); }

/* Ordered/unordered lists shown as content blocks */
section ul, section ol { display: flex; flex-direction: column; gap: 8px; }
section ol { list-style: decimal inside; }

address { font-style: normal; color: var(--neutral-800); }

/* =========================
   12) TESTIMONIALS (light background, dark text for readability)
   ========================= */
.testimonial-list { align-items: stretch; }
.testimonial-card {
  flex: 1 1 280px; min-width: 260px; background: #fff; border: 1px solid var(--neutral-300); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); color: var(--neutral-900);
}
.testimonial-card p { margin: 0; }
.testimonial-card p + p { margin-top: 4px; }
.stars { display: inline-flex; align-items: center; gap: 4px; }
.stars img { width: 16px; height: 16px; }
.rating-summary { color: var(--neutral-800); }

/* =========================
   13) FOOTER
   ========================= */
footer { background: #fff; border-top: 1px solid var(--neutral-300); margin-top: var(--space-40); }
footer section { padding: var(--space-32) 0; }
.footer-nav, .contact-info, .legal-links, .payments { align-items: center; }
.footer-nav a, .legal-links a { padding: 6px 10px; border-radius: 8px; color: var(--neutral-800); }
.footer-nav a:hover, .legal-links a:hover { background: var(--accent); color: var(--primary); }
.brand-badge { display: flex; align-items: center; gap: 12px; }
.brand-badge img { width: 56px; height: 56px; }
.payments img { width: 44px; height: auto; filter: grayscale(0.1); }

/* =========================
   14) UTILITIES & GENERIC SECTIONS
   ========================= */
section > .container > .content-wrapper > h2 { margin-top: var(--space-8); }
section { margin-bottom: var(--space-32); }

/* =========================
   15) RESPONSIVE BEHAVIOR
   ========================= */
@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .text-image-section { flex-direction: row; }
}

@media (min-width: 992px) {
  .hero { padding: var(--space-60) 0; }
  .hero .content-wrapper { flex-direction: column; padding: var(--space-40); }
}

/* =========================
   16) ACCESSIBILITY & INTERACTION
   ========================= */
::selection { background: var(--secondary); color: #111; }
a:hover { color: var(--primary-500); }

/* =========================
   17) PAGE-SPECIFIC TWEAKS
   ========================= */
/* Breadcrumbs (sklep, psy, koty) */
[aria-label="okruszki"] { display: flex; flex-wrap: wrap; gap: 8px; color: #e5f3ff; margin-bottom: 4px; }
.hero [aria-label="okruszki"] a { color: #e5f3ff; text-decoration: underline; }

/* Newsletter CTA row */
.newsletter-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.newsletter-cta label { display: inline-flex; align-items: center; gap: 8px; color: var(--neutral-800); }

/* Contact icons row already covered by .benefit-badges */

/* Legal pages hero smaller text color */
.polityka, .rodo, .regulamin { /* optional namespace if added */ }

/* =========================
   18) MOBILE NAV ANIMATIONS (micro-interactions)
   ========================= */
@keyframes slideInMenu { from { transform: translateX(100%);} to { transform: translateX(0);} }
@keyframes slideOutMenu { from { transform: translateX(0);} to { transform: translateX(100%);} }
.mobile-menu.open .mobile-nav { animation: slideInMenu .35s ease both; }

/* =========================
   19) COOKIE CONSENT (banner + modal)
   ========================= */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; /* default hidden until JS shows it */
  justify-content: center; align-items: center; padding: var(--space-12);
}
.cookie-banner.show { display: flex; }
.cookie-banner .banner-inner {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--neutral-300); border-radius: 16px; box-shadow: var(--shadow-md);
  width: 100%; max-width: 1100px; padding: 16px;
}
.cookie-banner p { margin: 0; color: var(--neutral-800); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.cookie-accept { background: linear-gradient(135deg, var(--primary), var(--primary-500)); color: #fff; padding: 10px 14px; border-radius: 10px; }
.cookie-reject { background: var(--accent); color: var(--neutral-900); padding: 10px 14px; border-radius: 10px; }
.cookie-settings { background: linear-gradient(135deg, var(--secondary), var(--secondary-600)); color: #111; padding: 10px 14px; border-radius: 10px; }

/* Cookie preferences modal */
.cookie-modal-overlay {
  position: fixed; inset: 0; background: rgba(13, 22, 32, 0.5); z-index: 110; display: none;
  align-items: center; justify-content: center; padding: 16px;
}
.cookie-modal-overlay.open { display: flex; }
.cookie-modal {
  display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 720px; background: #fff; border: 1px solid var(--neutral-300);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 20px;
}
.cookie-modal h3 { font-size: 20px; }
.cookie-categories { display: flex; flex-direction: column; gap: 10px; }
.cookie-category { display: flex; flex-direction: column; gap: 6px; background: var(--accent); border-radius: 12px; padding: 12px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* =========================
   20) CARDS & GENERIC COMPONENTS (for future reuse)
   ========================= */
.card { background: #fff; border: 1px solid var(--neutral-300); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--space-20); }
.card:hover { box-shadow: var(--shadow-md); }

/* =========================
   21) ALIGNMENT & GAPS ENSURANCE
   ========================= */
/* Ensure minimum gaps between core sections */
main section + section { margin-top: var(--space-32); }

/* =========================
   22) DESKTOP ENHANCEMENTS
   ========================= */
@media (min-width: 1100px) {
  .feature-grid > div, .category-cards > a { flex: 1 1 calc(25% - 20px); }
  .product-grid article { flex: 1 1 calc(33.33% - 20px); }
}

/* =========================
   23) FORMS (basic)
   ========================= */
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }

/* =========================
   24) HEADER STACK ON MOBILE (visual hierarchy)
   ========================= */
@media (max-width: 991px) {
  header .content-wrapper { gap: var(--space-12); }
  .brand { order: 1; }
  .mobile-menu-toggle { order: 2; margin-left: auto; }
  .main-nav, .cta-bar { display: none; }
}

/* =========================
   25) LINKS IN HERO/CONTENT
   ========================= */
.hero a { color: #fff; }
.hero a.btn { color: #fff; }

/* =========================
   26) ACCESSIBLE STATES
   ========================= */
.btn:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible, .mobile-nav a:focus-visible {
  box-shadow: 0 0 0 3px rgba(35,100,136,.3);
}

/* =========================
   27) SOCIAL LINKS
   ========================= */
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-links a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: var(--accent); border-radius: 10px; }
.social-links a:hover { background: #EAF2F8; }

/* =========================
   28) HEADER GRADIENT RULE (subtle top bar optional)
   ========================= */
header::before {
  content: ""; display: block; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

/* =========================
   29) MISC FIXES FOR ICON COLORS IN HERO
   ========================= */
.hero .benefit-badges img[alt] { filter: brightness(0) invert(1); }

/* =========================
   30) ENSURE NO OVERLAPS
   ========================= */
section .content-wrapper > * { margin-right: 0; }

/* End of file */
