/* ================================
   Voltix Shore — nature_organic UI
   Senior CSS Dev: Mobile-first, Flexbox-only
   ================================ */
/* --- CSS Reset & Normalize (light) --- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
ul, ol { list-style: none; }
/* --- Design Tokens (with fallbacks) --- */
:root {
  --brand-primary: #0B3D91; /* Navy */
  --brand-secondary: #065F52; /* Deep green */
  --brand-accent: #F5F7FA; /* Light neutral */
  --earth-bg: #FAF7F1; /* warm ivory */
  --earth-sand: #E8E3D9; /* beige */
  --earth-sienna: #8C6A43; /* brown accent */
  --ink: #2B2B28; /* dark text */
  --ink-soft: #3C3A35; /* slightly softer */
  --muted: #667067; /* muted text on light */
  --line: #D9D2C4; /* soft divider (earth) */
  --surface: #FFFFFF; /* cards */
  --surface-alt: #FEFDF9; /* alt card */
  --success: #1E7E62;
  --danger: #9E2F2F;
  --focus: #0B3D91; /* focus ring */
  --shadow-1: 0 4px 14px rgba(20, 40, 30, 0.08);
  --shadow-2: 0 10px 30px rgba(20, 40, 30, 0.10);
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 18px;
  --radius-pill: 999px;
  --gap-1: 8px;
  --gap-2: 12px;
  --gap-3: 16px;
  --gap-4: 20px;
  --gap-5: 24px;
  --gap-6: 32px;
  --gap-7: 40px;
  --gap-8: 60px;
}
/* --- Base Typography --- */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* brand body */
  color: var(--ink);
  background: var(--earth-bg);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3 { font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans", Arial, sans-serif; /* brand display */ }
h1 { font-size: 32px; line-height: 1.2; letter-spacing: 0.2px; margin-bottom: var(--gap-5); color: var(--ink); }
h2 { font-size: 24px; line-height: 1.3; margin-bottom: var(--gap-4); color: var(--ink); }
h3 { font-size: 18px; line-height: 1.4; margin-bottom: var(--gap-2); color: var(--ink-soft); }
p { margin-bottom: var(--gap-3); color: var(--ink); }
strong { color: var(--ink); font-weight: 700; }
/* Links */
a { color: var(--brand-primary); }
a:hover { color: var(--brand-secondary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
/* --- Layout Containers (Flexbox-only) --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-5);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap-5);
  position: relative; /* for decorative organic shapes */
}
/* Decorative organic blob behind content (subtle, non-intrusive) */
.content-wrapper::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -20px; left: -12px;
  width: 160px; height: 120px;
  background: rgba(6,95,82,0.06);
  border-radius: 45% 55% 50% 50% / 60% 50% 50% 40%;
  filter: blur(0.2px);
}
.content-wrapper > * { position: relative; z-index: 1; }
/* Global section spacing (applies to all <section>) */
section { padding: 40px 0; }
main section + section { margin-top: 20px; }
/* --- Header & Navigation --- */
header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
header .container { flex-direction: row; justify-content: space-between; align-items: center; gap: var(--gap-4); padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 34px; width: auto; }
.main-nav, .cta-nav { display: none; }
.main-nav a, .footer-nav a { color: var(--ink); }
.main-nav a[aria-current="page"], .footer-nav a[aria-current="page"] { color: var(--brand-secondary); font-weight: 700; }
/* Burger */
.mobile-menu-toggle { font-size: 24px; line-height: 1; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--surface); background: var(--brand-secondary); border-radius: var(--radius-m); box-shadow: var(--shadow-1); }
.mobile-menu-toggle:hover { background: #07493F; }
/* Mobile menu overlay + panel */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: stretch; justify-content: flex-end;
  background: rgba(20,30,25,0.45);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.mobile-menu .mobile-nav {
  width: 84vw; max-width: 360px; height: 100%;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 2px; padding: 24px;
  box-shadow: var(--shadow-2);
  transform: translateX(100%);
  transition: transform .35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu.open .mobile-nav { transform: translateX(0); }
.mobile-menu-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 40px; height: 40px; border-radius: var(--radius-m);
  display: flex; align-items: center; justify-content: center;
  color: var(--surface); background: var(--brand-secondary);
}
.mobile-nav a {
  padding: 14px 10px; border-bottom: 1px dashed var(--line); border-radius: 8px;
  color: var(--ink);
}
.mobile-nav a:hover { background: var(--earth-sand); }
body.menu-open { overflow: hidden; }
/* Desktop nav */
@media (min-width: 992px) {
  .main-nav, .cta-nav { display: flex; align-items: center; }
  .main-nav { gap: var(--gap-4); }
  .main-nav a { padding: 10px 8px; border-radius: 8px; }
  .main-nav a:hover { background: var(--earth-sand); }
  .cta-nav { gap: var(--gap-3); }
  .mobile-menu-toggle { display: none; }
}
/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 18px; min-height: 44px;
  border-radius: var(--radius-pill); border: 2px solid var(--brand-secondary);
  color: var(--brand-secondary); background: transparent; font-weight: 700;
  transition: background-color .2s ease, color .2s ease, transform .12s ease;
}
.btn:hover { background: rgba(6,95,82,0.08); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--brand-secondary); color: var(--surface);
  border-color: var(--brand-secondary);
}
.btn.primary:hover { background: #07493F; border-color: #07493F; }
/* --- Hero & Section elements --- */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-3); }
.trust span { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-pill); background: rgba(6,95,82,0.08); color: var(--brand-secondary); }
.trust img { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--gap-3); align-items: center; }
.text-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; box-shadow: var(--shadow-1); }
/* Lists */
.bullets { display: flex; flex-direction: column; gap: var(--gap-3); }
.bullets li { display: flex; align-items: flex-start; gap: 10px; padding-left: 2px; color: var(--ink); }
.bullets li img { width: 18px; height: 18px; margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: var(--gap-3); }
.tags li { padding: 8px 14px; background: var(--surface); border: 1px solid var(--brand-secondary); color: var(--brand-secondary); border-radius: var(--radius-pill); box-shadow: var(--shadow-1); }
/* Ordered lists (steps) */
ol { counter-reset: step; display: flex; flex-direction: column; gap: var(--gap-3); padding-left: 2px; }
ol li { position: relative; padding-left: 44px; }
ol li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-secondary); color: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: var(--shadow-1); }
/* Testimonial cards: ensure contrast (dark text on light bg) */
.testimonial-card {
  display: flex; align-items: center; gap: 20px; padding: 20px; /* per requirement */
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--brand-secondary);
  border-radius: var(--radius-m);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}
.testimonial-card p { margin: 0; }
.testimonial-card + .testimonial-card { margin-top: var(--gap-4); }
/* Footer */
footer { background: #0F2A24; color: #F3F0EA; border-top: 1px solid rgba(233,226,212,0.2); }
footer .container { padding-top: 28px; padding-bottom: 28px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--gap-3); }
.footer-nav a { color: #DDE7E2; padding: 6px 10px; border-radius: 8px; }
.footer-nav a:hover { background: rgba(255,255,255,0.08); }
.brand-foot { display: flex; flex-direction: column; gap: 8px; }
.brand-foot img { height: 28px; width: auto; filter: brightness(1.1) contrast(1.1); }
/* --- Cards, Content grids and features (flex-only) --- */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; box-shadow: var(--shadow-1); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.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; }
/* Required spacing pattern */
.section { margin-bottom: 60px; padding: 40px 20px; }
/* --- Utilities & helpers --- */
hr { border: 0; border-top: 1px solid var(--line); margin: var(--gap-6) 0; }
.small { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.center { text-align: center; }
/* --- Responsive behavior --- */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
}
@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .container { gap: var(--gap-6); }
  .actions { gap: var(--gap-4); }
}
/* --- Page-specific gentle accents --- */
/* Hero sections get an organic surface panel */
[aria-labelledby^="hero"] .content-wrapper,
[aria-labelledby^="hero-"] .content-wrapper {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-1);
}
/* Contact rows with icons */
.content-wrapper p img { width: 18px; height: 18px; display: inline-block; vertical-align: middle; margin-right: 8px; }
/* --- Tables (if any appear later) --- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
th { color: var(--ink); }
/* --- Mobile-first visibility for nav groups --- */
@media (max-width: 991.98px) {
  .main-nav, .cta-nav { display: none !important; }
}
@media (min-width: 992px) {
  header .container { gap: var(--gap-6); }
}
/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 6px solid var(--brand-secondary);
  border-radius: var(--radius-l);
  padding: 16px;
  box-shadow: var(--shadow-2);
  transform: translateY(120%);
  opacity: 0; transition: transform .35s ease, opacity .35s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-title { font-weight: 700; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { min-width: 44%; justify-content: center; }
.btn-accept { background: var(--brand-secondary); color: var(--surface); border-color: var(--brand-secondary); }
.btn-accept:hover { background: #07493F; border-color: #07493F; }
.btn-reject { border-color: var(--danger); color: var(--danger); }
.btn-reject:hover { background: rgba(158,47,47,0.08); }
.btn-settings { border-color: var(--brand-primary); color: var(--brand-primary); }
.btn-settings:hover { background: rgba(11,61,145,0.08); }
/* Cookie preferences modal */
.cookie-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(20,30,25,0.55); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.cookie-modal.open { opacity: 1; pointer-events: auto; }
.cookie-modal-content { width: 92vw; max-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 16px; }
.cookie-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.cookie-row .label { font-weight: 700; }
/* Simple toggle (pure CSS) */
.toggle { display: inline-flex; align-items: center; gap: 10px; }
.toggle input { appearance: none; width: 46px; height: 26px; background: #C9D4CD; border-radius: 20px; position: relative; outline: none; transition: background .2s ease; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-1); transition: transform .2s ease; }
.toggle input:checked { background: var(--brand-secondary); }
.toggle input:checked::after { transform: translateX(20px); }
/* --- Accessibility helpers --- */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 10px; top: 10px; width: auto; height: auto; background: #fff; padding: 8px 12px; border-radius: 8px; border: 2px solid var(--brand-primary); z-index: 999; }
/* --- Spacing between blocks within content wrappers --- */
.content-wrapper > * + * { margin-top: 8px; }
/* Ensure minimum spacing between section blocks */
section .text-section + .text-section,
section .testimonial-card + .testimonial-card,
section .actions + *,
section .bullets + *,
section .tags + * { margin-top: 20px; }
/* --- Images in text rows --- */
.text-section p a { text-decoration: underline; }
/* --- Interactive micro-interactions --- */
.tags li:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
/* --- Readability in testimonials/review sections --- */
[aria-labelledby="sukcesy"],
[aria-labelledby="opinie-f"],
[aria-labelledby="opinie-firm"],
[aria-labelledby="historie-f"],
[aria-labelledby="efekty"] { background: transparent; }
[aria-labelledby="sukcesy"] .content-wrapper,
[aria-labelledby="opinie-f"] .content-wrapper,
[aria-labelledby="opinie-firm"] .content-wrapper,
[aria-labelledby="historie-f"] .content-wrapper,
[aria-labelledby="efekty"] .content-wrapper {
  background: none; border: 0; box-shadow: none; padding: 0;
}
/* --- Organic separators (optional subtle) --- */
section + section { border-top: 1px solid var(--line); }
/* --- Forms (generic) --- */
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(11,61,145,0.2); border-color: var(--brand-primary); }
/* --- Ensure no element overlapping --- */
.content-wrapper, .text-section, .testimonial-card, .card { margin-bottom: 20px; }
/* --- Brand personality highlights --- */
/* Use primary navy for links and secondary green for CTAs; add sienna as subtle rule/badge */
.badge-earth { background: var(--earth-sand); color: var(--earth-sienna); border: 1px solid var(--earth-sienna); border-radius: var(--radius-pill); padding: 4px 10px; font-weight: 700; }
/* --- Print adjustments --- */
@media print {
  .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  header, footer { box-shadow: none; }
}
/* ================================
   End of stylesheet
   ================================ */