/* ================================
   Voltera BłyskDostawa — style.css
   Design: modern_bold — bold, bright, geometric, high contrast
   Mobile-first, ONLY Flexbox layouts, no CSS Grid/Columns
   ================================ */

/* -------- CSS Reset & Base Normalize -------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Verdana, Geneva, sans-serif; color: #0B0F14; background: #FFFFFF; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: #1B5E20; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
p { margin: 0 0 16px; }
button, input, select, textarea { font-family: inherit; font-size: 100%; }
:focus-visible { outline: 3px solid #FF7A00; outline-offset: 2px; }

/* -------- CSS Custom Properties (with fallbacks) -------- */
:root {
  --primary: #1B5E20;
  --secondary: #FF7A00;
  --accent: #F5F7FA;
  --ink: #0B0F14;
  --muted: #6B7280;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-alt: #F0F3F7;
  --shadow: 0 10px 24px rgba(0,0,0,0.08);
  --shadow-strong: 0 14px 34px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --gap-1: 12px; --gap-2: 16px; --gap-3: 20px; --gap-4: 24px; --gap-5: 32px; --gap-6: 40px;
}

/* -------- Typography (modern_bold) -------- */
h1, h2, h3, h4 { font-family: "Trebuchet MS", Tahoma, sans-serif; color: var(--ink); font-weight: 800; line-height: 1.2; letter-spacing: -0.2px; }
h1 { font-size: 32px; margin: 0 0 16px; }
h2 { font-size: 24px; margin: 0 0 14px; }
h3 { font-size: 18px; margin: 0 0 12px; }
h4 { font-size: 16px; margin: 0 0 10px; }
small { color: var(--muted); font-size: 12px; }
strong { font-weight: 800; }

/* -------- Global Sections & Containers -------- */
main { display: flex; flex-direction: column; gap: 20px; }
section { display: flex; flex-direction: column; margin-bottom: 40px; padding: 0; background: transparent; }
/* Mandatory spacing pattern */
.section { margin-bottom: 60px; padding: 40px 20px; display: flex; flex-direction: column; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: var(--gap-4); }
.content-wrapper { display: flex; flex-direction: column; gap: var(--gap-4); flex-wrap: wrap; }
.text-section { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }

/* Cards, Features (mandatory patterns) */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; background: var(--surface); border: 2px solid #E7ECF2; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

/* Testimonial cards — light background, dark text for high readability */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--accent); border: 2px solid #E1E7EE; border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); }
.testimonial-card p { margin: 0; }

/* -------- Header & Navigation -------- */
header { position: sticky; top: 0; z-index: 1000; background: var(--bg); border-bottom: 4px solid var(--primary); box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--gap-3); padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; }
.logo img { height: 34px; width: auto; }

.main-nav { display: none; align-items: center; gap: 12px; }
.main-nav a { display: flex; align-items: center; padding: 10px 12px; border-radius: 10px; text-transform: uppercase; font-weight: 800; font-size: 12px; letter-spacing: .6px; color: var(--ink); border: 2px solid transparent; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.main-nav a:hover { background: var(--accent); border-color: #E7ECF2; transform: translateY(-1px); }
.main-nav a[aria-current="page"] { color: #fff; background: var(--primary); border-color: var(--primary); }

.cta-nav { display: none; align-items: center; gap: 10px; }

/* Mobile menu controls */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 10px; font-size: 22px; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.mobile-menu-toggle:hover { background: var(--ink); color: #fff; transform: scale(1.03); }

/* Mobile slide-in menu */
.mobile-menu { position: fixed; top: 0; right: 0; height: 100vh; width: 86%; max-width: 420px; background: var(--surface); box-shadow: -8px 0 24px rgba(0,0,0,0.15); transform: translateX(100%); transition: transform .3s ease; z-index: 1200; display: flex; flex-direction: column; padding: 16px; border-left: 6px solid var(--secondary); }
.mobile-menu[aria-hidden="false"], .mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-size: 18px; cursor: pointer; transition: background .2s ease, color .2s ease; margin-bottom: 10px; }
.mobile-menu-close:hover { background: var(--ink); color: #fff; }
.mobile-nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a { display: flex; align-items: center; padding: 14px 12px; border: 2px solid #E7ECF2; border-radius: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--ink); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.mobile-nav a:hover { background: var(--accent); border-color: var(--secondary); transform: translateX(-2px); }
.mobile-nav a[aria-current="page"] { background: var(--primary); color: #fff; border-color: var(--primary); }

/* -------- Buttons -------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 14px; border: 2px solid var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: .6px; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn.primary:hover { background: #E86D00; border-color: #E86D00; box-shadow: var(--shadow-strong); transform: translateY(-1px); }
.btn.secondary { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn.secondary:hover { background: var(--primary); color: #fff; box-shadow: var(--shadow-strong); transform: translateY(-1px); }
.btn:focus-visible { box-shadow: 0 0 0 4px rgba(255,122,0,0.35); }

/* -------- Lists & Content Emphasis -------- */
ul li, ol li { margin-bottom: 8px; }
ol { counter-reset: step; }

/* -------- Media & Icons inside text blocks -------- */
.text-section img { height: 28px; width: auto; display: inline-flex; margin-right: 10px; filter: contrast(1.1); }

/* -------- Footer -------- */
footer { background: var(--ink); color: #fff; }
footer a { color: #fff; }
footer section { padding-top: 28px; padding-bottom: 28px; margin-bottom: 0; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.footer-nav > div { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.footer-nav h4 { color: #fff; margin-bottom: 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .6px; }
.footer-nav a { display: inline-flex; padding: 6px 0; border-bottom: 2px solid transparent; }
.footer-nav a:hover { border-color: rgba(255,255,255,0.25); }

/* -------- Utility & Spacing -------- */
.hr { width: 100%; height: 2px; background: #E7ECF2; border: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* -------- Responsive (Mobile-first) -------- */
@media (min-width: 600px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .text-section img { height: 32px; }
}

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

  /* Section rhythm and alternating subtle surfaces for bold geometry */
  main > section:nth-child(odd) { background: var(--surface); }
  main > section:nth-child(even) { background: var(--surface-alt); }
  main > section > .container { padding-top: 28px; padding-bottom: 28px; }

  .content-wrapper { flex-direction: row; align-items: flex-start; gap: 28px; }
  .text-section { flex: 1 1 300px; }
  .text-image-section { flex-direction: row; }
}

@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: center; }
  /* Ensure readable breathing room on small screens */
  .container { gap: 20px; }
}

/* -------- Accessibility states -------- */
a:focus-visible, .btn:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible { outline: 3px solid #FF7A00; outline-offset: 2px; }

/* -------- Micro-interactions -------- */
.content-wrapper .btn + .btn { margin-left: 10px; }
.card:focus-within { box-shadow: var(--shadow-strong); }

/* -------- Tables (if any appear implicitly) -------- */
table { width: 100%; border-collapse: collapse; display: flex; flex-direction: column; }
thead, tbody, tr { display: flex; width: 100%; }
tr { display: flex; flex-direction: row; justify-content: space-between; border-bottom: 1px solid #E7ECF2; padding: 8px 0; }
th, td { flex: 1 1 0; padding: 8px; text-align: left; }

/* -------- Forms (if added later) -------- */
.input, input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; padding: 12px 14px; border: 2px solid #DDE5EE; border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(255,122,0,0.2); outline: none; }
.label { font-weight: 700; margin-bottom: 6px; display: inline-flex; }

/* -------- Cookie Consent Banner -------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300; background: #0B0F14; color: #fff; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-top: 6px solid var(--secondary); box-shadow: 0 -10px 24px rgba(0,0,0,0.25); transform: translateY(120%); transition: transform .3s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { border-color: #fff; }
.cookie-actions .btn.accept { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.cookie-actions .btn.reject { background: transparent; color: #fff; }
.cookie-actions .btn.settings { background: #fff; color: var(--ink); border-color: #fff; }

/* Cookie Settings Modal */
.cookie-modal { position: fixed; inset: 0; z-index: 1400; display: none; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal.open { display: flex; }
.cookie-modal .modal-panel { width: 100%; max-width: 640px; background: #fff; color: var(--ink); border: 4px solid var(--primary); border-radius: 16px; box-shadow: var(--shadow-strong); 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-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 2px solid #E7ECF2; border-radius: 12px; }
.cookie-row .label { font-weight: 800; }
.cookie-row .toggle { display: inline-flex; align-items: center; gap: 8px; }
/* Simple toggle look */
.switch { position: relative; width: 48px; height: 28px; border-radius: 20px; background: #D1D8E0; border: 2px solid #B9C3CF; display: inline-flex; align-items: center; padding: 2px; transition: background .2s ease, border-color .2s ease; }
.switch::after { content: ""; width: 20px; height: 20px; background: #fff; border-radius: 50%; transform: translateX(0); transition: transform .2s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.switch.on { background: var(--secondary); border-color: var(--secondary); }
.switch.on::after { transform: translateX(20px); }

/* -------- Decorative geometric tags (optional utility) -------- */
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; border: 2px solid var(--ink); background: var(--accent); }

/* -------- Ensure minimum spacing between elements -------- */
main > section .content-wrapper > * { margin-right: 0; }
main > section .content-wrapper > * + * { margin-top: 0; }

/* -------- Ensure no overlap; consistent gaps -------- */
main > section .content-wrapper { gap: 24px; }

/* -------- Specific small tweaks to match content -------- */
/* Emphasize stats figures */
.text-section em { background: #FFF4E9; border: 2px solid #FFD2A6; color: #8A3B00; padding: 2px 6px; border-radius: 8px; font-style: normal; font-weight: 800; }

/* Icon lists alignment */
.text-section ul li { display: flex; align-items: center; gap: 8px; }
.text-section ul li img { height: 20px; }

/* Links styled loudly for modern_bold */
a.btn-link { font-weight: 800; text-transform: uppercase; letter-spacing: .5px; border-bottom: 3px solid var(--secondary); padding-bottom: 2px; }

/* -------- ARIA current in all navs -------- */
nav a[aria-current="page"] { position: relative; }
nav a[aria-current="page"]::after { content: ""; position: relative; display: block; width: 100%; height: 3px; background: var(--secondary); margin-top: 6px; border-radius: 2px; }

/* -------- Print friendly minimal -------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { color: #000; }
}

/* ====== End of style.css ====== */
