/* =========================
   Spirex Wave AutoGwarancja — style.css
   Vibrant Energetic UI • Mobile-first • Flexbox only
   ========================= */

/* 1) RESET & NORMALIZE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding-left: 1.1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #00E5FF; outline-offset: 2px; }

/* 2) THEME TOKENS (with fallbacks) */
:root {
  --color-primary: #0B2B4C;  /* brand navy */
  --color-secondary: #1E7A7A;/* brand teal */
  --color-accent: #F5F7FA;   /* brand light */
  /* Vibrant energetic accents */
  --electric-cyan: #00E5FF;
  --neon-pink: #FF2D55;
  --electric-yellow: #FFD600;
  --ink: #0B2B4C;            /* text dark */
  --bg: #F5F7FA;             /* base background */
  --white: #FFFFFF;
  --muted: #5C728A;
  --shadow: rgba(11,43,76,0.12);
}

/* 3) BASE TYPOGRAPHY */
body { font-family: Verdana, Geneva, Tahoma, sans-serif; background: var(--bg, #F5F7FA); color: var(--ink, #0B2B4C); line-height: 1.6; }
h1, h2, h3, .display { font-family: "Trebuchet MS", Arial, sans-serif; letter-spacing: 0.2px; }
h1 { font-size: 32px; line-height: 1.2; font-weight: 800; }
h2 { font-size: 24px; line-height: 1.3; font-weight: 800; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 700; }
p, li { font-size: 16px; color: var(--ink, #0B2B4C); }
.smallprint { font-size: 14px; color: var(--muted); }
strong { font-weight: 800; }

/* Global links */
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a.btn-link { color: var(--secondary, #1E7A7A); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
a.btn-link:hover { color: var(--neon-pink); }

/* 4) LAYOUT PRIMITIVES (Flexbox-only) */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; }
section { margin-bottom: 60px; padding: 40px 20px; display: flex; }
section > .container { flex: 1 1 auto; }

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

/* 5) HEADER & NAV */
header { background: var(--white); box-shadow: 0 4px 18px var(--shadow); border-bottom: 3px solid var(--electric-cyan); position: sticky; top: 0; z-index: 100; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
header img { max-height: 40px; }
.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a { color: var(--ink); font-weight: 700; padding: 10px 12px; border-radius: 10px; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.main-nav a:hover { background: var(--electric-cyan); color: var(--primary, #0B2B4C); transform: translateY(-1px); }
.header-cta { display: flex; gap: 10px; align-items: center; }

/* Mobile burger */
.mobile-menu-toggle { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px var(--shadow); transition: transform .2s ease, background-color .2s ease; }
.mobile-menu-toggle:hover { background: var(--neon-pink); transform: translateY(-1px) scale(1.02); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; background: var(--ink); color: var(--white); transform: translateX(100%); transition: transform .35s ease; display: flex; flex-direction: column; padding: 20px; gap: 20px; z-index: 9999; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 44px; height: 44px; border-radius: 12px; background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a { display: block; padding: 14px 12px; border-radius: 10px; background: rgba(255,255,255,0.06); color: var(--white); font-weight: 700; }
.mobile-nav a:hover { background: var(--neon-pink); color: var(--white); }

/* 6) BUTTONS */
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font-weight: 800; letter-spacing: .2px; transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.btn-primary { background: var(--neon-pink); color: var(--white); box-shadow: 0 8px 20px rgba(255,45,85,0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,45,85,0.35); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary { background: var(--ink); border: 2px solid var(--electric-cyan); color: #046f7a; box-shadow: 0 8px 20px var(--shadow); }
.btn-secondary:hover { background: var(--secondary); border-color: var(--electric-yellow); transform: translateY(-2px); }

/* 7) HERO */
.hero-section { background: #E6FBFF; position: relative; overflow: hidden; }
.hero-section .content-wrapper { gap: 16px; }
.hero-section h1 { text-transform: uppercase; color: var(--ink); }
.hero-section h2 { color: var(--secondary); font-weight: 700; }
.value-propositions { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.value-propositions li { display: flex; align-items: center; gap: 10px; background: var(--white); border: 2px solid var(--electric-cyan); border-radius: 12px; padding: 10px 12px; box-shadow: 0 6px 16px var(--shadow); }
.value-propositions img { width: 18px; height: 18px; }
.guarantee-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--electric-yellow); color: #151515; font-weight: 800; }
.guarantee-badge img { width: 18px; height: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust-strip, .usp-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-strip span, .usp-strip span { display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--ink); border: 2px solid var(--secondary); border-radius: 999px; padding: 8px 12px; font-weight: 700; }
.usp-strip img { width: 16px; height: 16px; }

/* 8) FEATURES */
.feature-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.feature-item { flex: 1 1 260px; background: var(--white); border-radius: 16px; padding: 18px; border: 2px solid var(--electric-cyan); box-shadow: 0 10px 24px var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.feature-item img { width: 36px; height: 36px; }
.feature-item h3 { color: var(--ink); }
.feature-item:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(11,43,76,0.18); }

/* 9) PROCESS */
.process-steps { display: flex; flex-direction: column; gap: 14px; counter-reset: step; list-style: none; padding: 0; }
.process-steps li { background: var(--white); border-radius: 14px; padding: 14px; border-left: 6px solid var(--neon-pink); box-shadow: 0 8px 20px var(--shadow); }
.process-steps li strong { display: block; margin-bottom: 6px; font-weight: 800; }
.process-cta { display: flex; }

/* 10) SERVICES SUMMARY */
.service-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.service-card { flex: 1 1 280px; background: var(--white); border-radius: 16px; padding: 18px; border: 2px solid var(--secondary); box-shadow: 0 8px 22px var(--shadow); transition: transform .2s ease; }
.service-card:hover { transform: translateY(-3px); }
.service-card h3 { margin-bottom: 8px; }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; }
.service-card li { display: flex; align-items: center; gap: 8px; }
.service-card li img { width: 16px; height: 16px; }
.service-card .badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; margin-right: 8px; padding: 6px 10px; border-radius: 999px; border: 2px dashed var(--electric-yellow); background: #FFFBE6; color: #3B2F00; font-weight: 700; }
.service-card .badge img { width: 16px; height: 16px; }

/* 11) GUARANTEE OVERVIEW */
.guarantee-coverage { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; }
.guarantee-coverage li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--white); border: 2px solid var(--electric-cyan); }
.coverage-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 2px solid var(--electric-yellow); border-radius: 14px; padding: 10px 12px; font-weight: 800; }
.coverage-badge img { width: 20px; height: 20px; }

/* 12) TESTIMONIALS (light background, dark text for readability) */
.testimonials { display: flex; flex-wrap: wrap; gap: 20px; }
.testimonial-card { flex: 1 1 320px; background: var(--white); border: 2px solid var(--secondary); border-left: 6px solid var(--electric-yellow); border-radius: 16px; box-shadow: 0 10px 24px var(--shadow); color: var(--ink); }
.testimonial-card .stars img { width: 18px; height: 18px; }
.testimonial-card p { color: var(--ink); }
.reviewer { font-size: 14px; color: var(--muted); font-weight: 700; }
.testimonial-case { display: flex; flex-direction: column; gap: 8px; background: #FFF7CC; border: 2px solid var(--electric-yellow); border-radius: 16px; padding: 16px; color: #1A1A1A; }
.testimonial-case blockquote { font-style: italic; font-weight: 700; }
.testimonials-cta { display: flex; }

/* 13) FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border: 2px solid var(--secondary); border-radius: 14px; padding: 10px 12px; box-shadow: 0 6px 16px var(--shadow); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; cursor: pointer; }
.faq summary::after { content: "+"; font-weight: 800; color: var(--neon-pink); }
.faq details[open] summary::after { content: "−"; }
.faq-cta { display: flex; }

/* 14) CONTACT */
.contact-details { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--white); border: 2px solid var(--electric-cyan); border-radius: 16px; padding: 16px; box-shadow: 0 8px 20px var(--shadow); }
.contact-info { display: flex; flex-direction: column; gap: 8px; }
.contact-info p { display: flex; align-items: center; gap: 8px; }
.contact-info img { width: 18px; height: 18px; }
.contact-actions { display: flex; align-items: center; justify-content: flex-start; }
.privacy-consent { display: flex; }
.privacy-consent label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }

/* 15) LISTS & MISC SECTIONS */
.pricing-tiers, .additional-services, .top-pros-cons { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; }
.approach-pillars ul, .about-section ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; }
.verification-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 2px solid var(--electric-cyan); border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.verification-badge img { width: 18px; height: 18px; }
.rating-overview { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.average-score, .average-score-big { font-weight: 800; }
.average-score img, .average-score-big img { width: 18px; height: 18px; display: inline-block; }
.distribution-bars { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.review-list { display: flex; flex-wrap: wrap; gap: 20px; }
.review-filters, .pagination-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.review-filters a, .pagination-controls a { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 999px; background: var(--white); border: 2px solid var(--secondary); font-weight: 700; }
.review-filters a:hover, .pagination-controls a:hover { background: var(--neon-pink); color: var(--white); border-color: var(--neon-pink); }
.assurance-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.assurance-badges img { width: 36px; height: 36px; filter: drop-shadow(0 6px 12px var(--shadow)); }
.timline-visual { display: flex; align-items: center; gap: 10px; }
.timline-visual img { width: 20px; height: 20px; }

/* 16) PACKAGES */
.service-packages { display: flex; flex-wrap: wrap; gap: 20px; }
.service-package { flex: 1 1 260px; background: var(--white); border-radius: 16px; padding: 18px; border: 2px solid var(--electric-yellow); box-shadow: 0 8px 22px var(--shadow); }
.service-package h3 { background: var(--electric-yellow); color: #151515; display: inline-flex; padding: 6px 10px; border-radius: 10px; font-weight: 900; }
.service-package ul { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 10px 0 0 0; }
.inclusions-matrix { display: flex; padding: 12px; background: var(--white); border: 2px solid var(--secondary); border-radius: 14px; }
.addons { display: flex; flex-direction: column; gap: 10px; }

/* 17) FOOTER */
footer { background: var(--primary, #0B2B4C); color: var(--white); padding: 30px 0; margin-top: 20px; }
footer .container { gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-quick-links, .footer-legal-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-quick-links a, .footer-legal-links a { color: var(--white); background: rgba(255,255,255,0.06); padding: 8px 10px; border-radius: 10px; font-weight: 700; }
.footer-quick-links a:hover, .footer-legal-links a:hover { background: var(--neon-pink); }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact p { display: flex; align-items: center; gap: 8px; color: #E6EDF5; }
.footer-contact img { width: 16px; height: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: inline-flex; background: rgba(255,255,255,0.1); padding: 8px; border-radius: 10px; }
.footer-social a:hover { background: var(--electric-cyan); }
.footer-copyright { color: #BFD0E3; font-size: 14px; }

/* 18) CARDS (generic) */
.card { background: var(--white); border-radius: 16px; padding: 18px; border: 2px solid var(--secondary); box-shadow: 0 10px 24px var(--shadow); }
.card:hover { transform: translateY(-3px); transition: transform .2s ease; }

/* 19) PAGINATION/CHIPS UTILS */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: var(--white); border: 2px solid var(--secondary); font-weight: 700; }

/* 20) COOKIE CONSENT BANNER + MODAL */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: var(--white); color: var(--ink); border-top: 4px solid var(--neon-pink); box-shadow: 0 -10px 24px var(--shadow); padding: 16px; transform: translateY(100%); transition: transform .35s ease; z-index: 9998; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-inner { display: flex; flex-direction: column; gap: 12px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn-accept { background: var(--neon-pink); color: var(--white); border-radius: 12px; padding: 10px 14px; font-weight: 800; }
.cookie-banner .btn-reject { background: var(--ink); color: var(--white); border: 2px solid var(--electric-cyan); border-radius: 12px; padding: 10px 14px; font-weight: 800; }
.cookie-banner .btn-settings { background: var(--white); color: var(--ink); border: 2px solid var(--secondary); border-radius: 12px; padding: 10px 14px; font-weight: 800; }

.cookie-modal-overlay { position: fixed; inset: 0; background: rgba(11,43,76,0.7); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 9999; }
.cookie-modal-overlay.open { opacity: 1; visibility: visible; }
.cookie-modal { background: var(--white); color: var(--ink); width: 92%; max-width: 720px; border-radius: 16px; border: 2px solid var(--electric-cyan); box-shadow: 0 20px 48px rgba(0,0,0,0.25); display: flex; flex-direction: column; overflow: hidden; }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: #E6FBFF; border-bottom: 2px solid var(--secondary); font-weight: 800; }
.cookie-modal-content { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 12px; background: var(--accent); border: 2px solid var(--secondary); }
.cookie-modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 16px; border-top: 2px solid var(--accent); }

/* Toggle switch (for analytics/marketing) */
.toggle { position: relative; width: 50px; height: 28px; background: #D1D9E6; border-radius: 999px; transition: background .2s ease; display: inline-flex; align-items: center; }
.toggle::after { content: ""; width: 22px; height: 22px; background: var(--white); border: 2px solid var(--secondary); border-radius: 50%; transform: translateX(3px); transition: transform .2s ease, border-color .2s ease; }
.toggle.active { background: var(--neon-pink); }
.toggle.active::after { transform: translateX(25px); border-color: var(--neon-pink); }

/* 21) UTILITIES */
.hide { display: none !important; }
.center { display: flex; align-items: center; justify-content: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* 22) RESPONSIVE BREAKPOINTS */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
}

@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .text-image-section { flex-direction: row; }
}

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  header .container { gap: 24px; }
}

/* 23) ACCESSIBILITY HOVERS & FOCUS */
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-link:focus-visible, .main-nav a:focus-visible, .mobile-nav a:focus-visible { box-shadow: 0 0 0 3px var(--electric-cyan); border-radius: 12px; }

/* 24) PRINT BASICS */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  a { text-decoration: underline; }
}
