/* =====================================================
   CircoFix Serwis — Professional Corporate UI
   style.css — Mobile-first, flexbox-only, responsive design
   Brand: blue/gray palette, structured layout, business fonts
   ===================================================== */

/* =============================
   0) Reset & Base Normalization
   ============================= */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: #ffffff; color: #0B2538; line-height: 1.6; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: #0B3558; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; font-size: 1rem; }
:focus { outline: 2px solid #0A6B52; outline-offset: 2px; }

/* =============================
   1) CSS Custom Properties
   ============================= */
:root {
  --color-primary: #0B3558;
  --color-secondary: #0A6B52;
  --color-accent: #F4F7FB;
  --color-surface: #ffffff;
  --color-border: #DFE7EE;
  --color-muted: #5B6B7C;
  --color-dark: #0B2538;
  --color-link: #0B3558;
  --color-link-hover: #08253D;
  --shadow-sm: 0 2px 8px rgba(11,53,88,0.08);
  --shadow-md: 0 6px 18px rgba(11,53,88,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-display: 'Trebuchet MS', Tahoma, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;
}

/* =============================
   2) Typography
   ============================= */
h1, h2, h3, h4 { font-family: var(--font-display), 'Trebuchet MS', Arial, sans-serif; color: var(--color-dark); margin: 0 0 var(--space-16); line-height: 1.25; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; color: var(--color-dark); }
.subtitle { font-size: 18px; color: var(--color-muted); margin-bottom: var(--space-20); max-width: 72ch; }
p { margin: 0 0 12px; }
strong { color: var(--color-dark); }

/* Responsive type scale */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .subtitle { font-size: 20px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
}

/* =============================
   3) Layout Helpers (Flex-only)
   ============================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;           /* Flex-required */
  flex-direction: column;  /* Content will center via child wrapper */
}
.content-wrapper {
  display: flex;           /* Flex-required */
  flex-direction: column;  /* Mobile-first */
  gap: var(--space-20);
  width: 100%;
  align-items: flex-start;
}

/* Global section spacing (mobile-first) */
main section { margin-bottom: 40px; padding-top: 24px; padding-bottom: 24px; }
@media (min-width: 768px) {
  main section { margin-bottom: 60px; padding-top: 40px; padding-bottom: 40px; }
}

/* =============================
   4) Header & Navigation
   ============================= */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.site-header .container { padding-top: 10px; padding-bottom: 10px; }
.site-header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-16); flex-wrap: wrap; }
.brand img { height: 36px; width: auto; }

/* Desktop main navigation (hidden on mobile-first) */
.main-nav { display: none; align-items: center; gap: var(--space-16); }
.main-nav a { color: var(--color-dark); padding: 8px 10px; border-radius: 6px; transition: background-color .2s ease, color .2s ease; }
.main-nav a:hover { background: var(--color-accent); color: var(--color-link-hover); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--color-primary); font-weight: bold; }
.main-nav .cta { background: var(--color-primary); color: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.main-nav .cta:hover { background: #082946; }

.quick-actions { display: flex; align-items: center; gap: var(--space-12); }
.quick-actions .phone { display: flex; align-items: center; gap: 8px; color: var(--color-dark); font-weight: 600; }
.quick-actions .phone img { width: 18px; height: 18px; }

/* Show desktop nav on wider screens */
@media (min-width: 992px) {
  .main-nav { display: flex; }
}

/* =============================
   5) Mobile Menu (burger)
   ============================= */
.mobile-menu-toggle {
  position: fixed; right: 16px; top: 14px; z-index: 1100; 
  background: var(--color-primary); color: #fff; border: none; 
  padding: 10px 12px; border-radius: 8px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; cursor: pointer; 
  transition: background-color .2s ease, transform .2s ease;
}
.mobile-menu-toggle:hover { background: #082946; transform: translateY(-1px); }

/* Hide burger on desktop */
@media (min-width: 992px) { .mobile-menu-toggle { display: none; } }

.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 86%; max-width: 380px;
  background: #ffffff; box-shadow: -8px 0 24px rgba(0,0,0,0.18); z-index: 1200;
  transform: translateX(100%);
  transition: transform .35s ease;
  display: flex; flex-direction: column; /* Flex-required */
  padding: 16px; gap: 12px;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end; background: transparent; border: none; color: var(--color-dark);
  font-size: 20px; padding: 6px; cursor: pointer; border-radius: 6px;
}
.mobile-menu-close:hover { background: var(--color-accent); }

.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: flex; align-items: center; padding: 14px 10px; border-radius: 8px; color: var(--color-dark); border: 1px solid var(--color-border); background: #fff; }
.mobile-nav a:hover { background: var(--color-accent); text-decoration: none; }
.mobile-nav a[aria-current="page"] { border-color: var(--color-primary); color: var(--color-primary); font-weight: 600; }

/* Optional backdrop for mobile menu */
.mobile-menu::before {
  content: ""; position: fixed; inset: 0; right: auto; width: 100vw; 
  background: rgba(0,0,0,0.35); z-index: -1; opacity: 0; transition: opacity .35s ease;
}
.mobile-menu.open::before { opacity: 1; }

/* =============================
   6) Buttons & CTAs
   ============================= */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 10px; font-weight: 700; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .1s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #082946; text-decoration: none; }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary { background: #fff; color: var(--color-primary); border-color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

.cta-row { display: flex; flex-direction: column; gap: 12px; flex-wrap: wrap; }
@media (min-width: 768px) { .cta-row { flex-direction: row; gap: 16px; } }

/* =============================
   7) Hero & Key Sections
   ============================= */
.hero { background: var(--color-accent); border-bottom: 1px solid var(--color-border); }
.hero .content-wrapper { align-items: flex-start; }

.trust-badges ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 8px 0 0; }
.trust-badges li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--color-border); background: #fff; border-radius: 10px; color: var(--color-dark); box-shadow: var(--shadow-sm); }
.trust-badges img { width: 18px; height: 18px; }

.quick-contact-bar { display: flex; align-items: center; background: #fff; border: 1px solid var(--color-border); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow-sm); }
.quick-contact-bar p { display: flex; align-items: center; gap: 8px; color: var(--color-muted); flex-wrap: wrap; }
.quick-contact-bar img { width: 16px; height: 16px; }

/* =============================
   8) Content Sections (Features, Services, Process, Pricing, FAQ, Contact, About)
   ============================= */
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section p { max-width: 80ch; }
.text-section ul, .text-section ol { padding-left: 1.2rem; display: block; }
.text-section li { margin-bottom: 8px; }

.features, .services, .process, .pricing, .faq, .contact, .about, .timeline, .team, .cta, .policy, .testimonials, .brands, .next-steps, .form-info {
  display: flex; /* Section itself as flex container */
}

/* Visual accents for select sections */
.features, .pricing, .policy, .brands, .form-info { background: #FAFCFF; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.cta { background: var(--color-accent); }

/* =============================
   9) Testimonials (high contrast: dark text on light bg)
   ============================= */
.testimonials .text-section { gap: 20px; }
.testimonial-card { 
  display: flex; align-items: flex-start; gap: 20px; padding: 20px; 
  background: #ffffff; color: var(--color-dark); border: 1px solid var(--color-border); 
  border-radius: 12px; box-shadow: var(--shadow-sm);
}
.testimonial-card h3 { margin-bottom: 6px; color: var(--color-dark); }
.testimonial-card p { margin: 0; }

/* =============================
   10) Footer
   ============================= */
.site-footer { background: var(--color-primary); color: #e7edf4; }
.site-footer .container { padding-top: 28px; padding-bottom: 28px; }
.site-footer .content-wrapper { flex-direction: column; gap: 16px; }
.footer-brand img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { color: #e7edf4; padding: 6px 8px; border-radius: 6px; }
.footer-nav a:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.contact-snippet p, .contact-snippet a { color: #cfe0ee; }
.contact-snippet a:hover { color: #ffffff; text-decoration: underline; }

@media (min-width: 768px) {
  .site-footer .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* =============================
   11) Mandatory Spacing & Alignment Patterns (exact class names)
   ============================= */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); }
.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; }

/* Responsive alignment rules */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* =============================
   12) Cards & Micro-interactions
   ============================= */
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); transition: box-shadow .2s ease, transform .15s ease; }

/* =============================
   13) Links & Inline elements
   ============================= */
a { transition: color .2s ease, background-color .2s ease; }
a:focus { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

/* =============================
   14) Tables (if any in future)
   ============================= */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); }

/* =============================
   15) Cookie Consent Banner & Modal
   ============================= */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300; 
  background: #ffffff; border-top: 1px solid var(--color-border); box-shadow: 0 -6px 18px rgba(0,0,0,0.08);
  display: flex; /* Flex-required */
  padding: 16px; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap;
  transform: translateY(110%); transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 8px; max-width: 900px; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-buttons .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; font-weight: 600; }
.cookie-accept { background: var(--color-secondary); color: #fff; }
.cookie-accept:hover { background: #07533F; }
.cookie-reject { background: #fff; color: var(--color-secondary); border-color: var(--color-secondary); }
.cookie-reject:hover { background: var(--color-accent); }
.cookie-settings { background: #fff; color: var(--color-primary); border-color: var(--color-primary); }
.cookie-settings:hover { background: var(--color-accent); }

/* Cookie preferences modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 1400; display: none; /* hidden by default */
  align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal.open { display: flex; }
.cookie-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.cookie-modal-content {
  position: relative; background: #fff; width: 100%; max-width: 720px; 
  border-radius: 12px; border: 1px solid var(--color-border); box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 16px; padding: 20px; transform: translateY(16px); transition: transform .25s ease; z-index: 1;
}
.cookie-modal.open .cookie-modal-content { transform: translateY(0); }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.cookie-modal-close { background: transparent; border: none; font-size: 20px; padding: 6px; border-radius: 6px; cursor: pointer; }
.cookie-modal-close:hover { background: var(--color-accent); }

/* Toggle (for analytics/marketing) */
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 10px; }
.switch { position: relative; width: 46px; height: 26px; background: #D6DFE8; border-radius: 13px; transition: background-color .2s ease; display: flex; align-items: center; }
.switch::after { content: ""; width: 20px; height: 20px; background: #fff; border-radius: 50%; margin-left: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform .2s ease; }
input[type="checkbox"].switch-input { position: absolute; opacity: 0; pointer-events: none; }
input[type="checkbox"].switch-input:checked + .switch { background: var(--color-secondary); }
input[type="checkbox"].switch-input:checked + .switch::after { transform: translateX(20px); }

/* =============================
   16) Accessibility & States
   ============================= */
[aria-current="page"] { text-decoration: none; }
:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

/* =============================
   17) Utilities
   ============================= */
.muted { color: var(--color-muted); }
.centered { display: flex; align-items: center; justify-content: center; }
.hidden { display: none !important; }

/* =============================
   18) Desktop Enhancements
   ============================= */
@media (min-width: 768px) {
  .content-wrapper { gap: var(--space-24); }
  .trust-badges ul { gap: 16px; }
}

@media (min-width: 992px) {
  .hero .content-wrapper { flex-direction: column; max-width: 900px; }
}

/* =============================
   19) Ensure no overlap & adequate spacing
   ============================= */
/* All flex containers use gaps, and sections have minimum spacing set above. */

/* =============================
   20) Brand personality refinements
   ============================= */
/* Subtle separators for corporate structure */
hr { border: none; border-top: 1px solid var(--color-border); margin: 20px 0; }

/* =============================
   21) Page-specific small touches
   ============================= */
/* Pricing lists more legible */
.pricing .text-section ul li { padding-left: 2px; }

/* FAQ headings spacing */
.faq .text-section h3 { margin-top: 8px; }

/* Contact emphasis links */
.contact .text-section a { font-weight: 600; }

/* Thank-you page CTA alignment */
.next-steps .text-section ul { margin-top: 4px; }

/* =============================
   22) Color contrast assurance in testimonials/reviews
   ============================= */
.testimonials, .opinie { color: var(--color-dark); }
.testimonials a { color: var(--color-primary); }

/* =============================
   23) Hover and subtle animations
   ============================= */
.section, .features, .services, .process, .pricing, .faq, .contact, .about, .timeline, .team, .cta, .policy, .testimonials, .brands, .form-info, .next-steps {
  transition: background-color .2s ease, border-color .2s ease;
}

/* =============================
   24) Compliance: Flex-only layout classes provided below
   (No CSS Grid / Columns used anywhere)
   ============================= */
/* The codebase exclusively uses display:flex for layout containers as defined above. */
