/* Sparkon Peak Akademia Projektowania — Professional Corporate CSS Theme */
/* =====================================================================
   Fonts (brand): Montserrat (display), Inter (body)
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

/* =====================================================================
   Reset & Normalize
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding-left: 1.2rem; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* =====================================================================
   Design Tokens
   ===================================================================== */
:root {
  --primary: #1F2A44; /* deep blue */
  --secondary: #B73A12; /* brand accent (brick) */
  --accent: #F3F6FB; /* light blue-gray */
  --text: #1A2238; /* near black */
  --muted: #5B6475; /* neutral gray for body text */
  --border: #E2E8F0; /* subtle border */
  --border-strong: #CBD5E1; /* stronger border */
  --surface: #FFFFFF; /* white */
  --shadow-1: 0 2px 8px rgba(31,42,68,0.08);
  --shadow-2: 0 6px 20px rgba(31,42,68,0.12);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --focus: 2px solid #0EA5E9; /* azure focus for accessibility */
  --container: 1200px;
}

/* =====================================================================
   Base Typography
   ===================================================================== */
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--text);
  background: var(--surface);
  font-size: 16px; /* base */
}

h1, h2, h3 { font-family: 'Montserrat', 'Inter', Arial, sans-serif; letter-spacing: -0.02em; color: var(--primary); }
h1 { font-size: 40px; line-height: 1.2; font-weight: 800; }
h2 { font-size: 28px; line-height: 1.25; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }

p { color: var(--muted); font-size: 16px; line-height: 1.7; }
small { font-size: 14px; color: var(--muted); }
strong { color: var(--primary); font-weight: 700; }

@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
}

/* Links */
.content-wrapper a, .text-section a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .2s ease; }
.content-wrapper a:hover, .text-section a:hover { color: var(--secondary); }
.content-wrapper a{color:#0EA5E9;}

/* Focus visible */
:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 6px; }

/* =====================================================================
   Layout Helpers (Flex-only)
   ===================================================================== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; }

/* Global sections spacing (and mandatory .section class) */
section { margin-bottom: 60px; padding: 40px 0; background: transparent; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Required spacing/align patterns */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); box-shadow: var(--shadow-1); }
.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; background: var(--accent); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-m); box-shadow: var(--shadow-1); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Mobile first: column; Desktop: row for special sections */
@media (max-width: 768px) { .text-image-section { flex-direction: column; } }
@media (min-width: 769px) { .text-image-section { flex-direction: row; } }

/* Prevent overlaps by ensuring spacing between siblings */
.content-wrapper > * { min-width: 0; }

/* =====================================================================
   Header & Navigation (Mobile-first)
   ===================================================================== */
header { position: sticky; top: 0; z-index: 1000; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(0,0,0,0.02); }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; gap: 20px; }
.main-nav a { color: var(--primary); font-weight: 500; padding: 8px 10px; border-radius: 8px; transition: background-color .2s ease, color .2s ease; }
.main-nav a:hover { background: var(--accent); color: var(--primary); }

.header-cta { display: none; align-items: center; gap: 10px; flex-wrap: wrap; }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.mobile-menu-toggle:hover { background: var(--accent); border-color: var(--border-strong); }

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

/* Mobile Menu Overlay */
.mobile-menu { position: fixed; inset: 0; background: var(--surface); z-index: 1100; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s ease; box-shadow: var(--shadow-2); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; margin: 12px 16px 0; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; padding: 20px 16px 40px; }
.mobile-nav a { display: flex; align-items: center; padding: 14px 12px; border-radius: 10px; color: var(--primary); font-weight: 600; border: 1px solid transparent; }
.mobile-nav a:hover { background: var(--accent); border-color: var(--border); }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; text-decoration: none; transition: background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,0.05); }
.btn-primary:hover { background: #18223A; box-shadow: var(--shadow-1); }
.btn-secondary { background: #fff; color: var(--secondary); border-color: var(--secondary); }
.btn-secondary:hover { background: rgba(183,58,18,0.08); }
.btn:active { transform: translateY(0.5px); }

/* =====================================================================
   Hero Sections
   ===================================================================== */
.hero { background: var(--accent); border-bottom: 1px solid var(--border); }
.hero .content-wrapper { padding: 12px 0; }
.hero p { max-width: 70ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Trust & Metrics (index hero) */
.trust ul, .metrics ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.trust li, .metrics li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-1); color: var(--muted); }
.trust li img { width: 20px; height: 20px; }
.metrics li strong { font-family: 'Montserrat', 'Inter', sans-serif; font-size: 18px; color: var(--primary); }

/* =====================================================================
   Text Blocks, Lists, Details
   ===================================================================== */
.text-section { display: flex; flex-direction: column; gap: 14px; }
.text-section ul, .text-section ol { display: flex; flex-direction: column; gap: 8px; }
.text-section li { color: var(--muted); }

/* Styled Details */
details { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: #fff; }
summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '\25BC'; font-size: 12px; color: var(--muted); transition: transform .2s ease; margin-left: auto; }
details[open] summary::after { transform: rotate(180deg); }
details p { margin-top: 10px; }

/* =====================================================================
   Cards & Testimonials
   ===================================================================== */
.card { padding: 20px; }
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: var(--primary); }

/* =====================================================================
   Footer
   ===================================================================== */
footer section { background: var(--primary); color: #EAF0FA; border-top: 1px solid rgba(255,255,255,0.08); }
footer .content-wrapper { gap: 16px; }
footer a { color: #EAF0FA; text-decoration: underline; text-underline-offset: 3px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { padding: 6px 8px; border-radius: 8px; text-decoration: none; border: 1px solid transparent; }
.footer-nav a:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); }

/* =====================================================================
   Responsive Layout Enhancements
   ===================================================================== */
@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .hero .content-wrapper { padding: 8px 0; }
}

/* =====================================================================
   Utility Components Possibly Used Across Pages
   ===================================================================== */
/* Flexible two-column content using only flexbox (wraps on mobile) */
.content-grid > * { flex: 1 1 260px; min-width: 260px; }

/* Reusable badge style */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 14px; background: var(--accent); color: var(--primary); border: 1px solid var(--border); }

/* =====================================================================
   Mobile Menu & Header stacking assurances
   ===================================================================== */
header, .mobile-menu, .cookie-banner, .cookie-modal { will-change: transform, opacity; }

/* =====================================================================
   Cookie Consent Banner & Modal
   ===================================================================== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; display: flex; flex-direction: column; gap: 14px; padding: 16px; background: #FFFFFF; color: var(--text); border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(0,0,0,0.06); transform: translateY(110%); transition: transform .35s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-row { display: flex; flex-direction: column; gap: 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn-accept { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.cookie-actions .btn-accept:hover { background: #18223A; }
.cookie-actions .btn-reject { background: #fff; color: var(--primary); border: 1px solid var(--border-strong); }
.cookie-actions .btn-reject:hover { background: var(--accent); }
.cookie-actions .btn-settings { background: #fff; color: var(--secondary); border: 1px solid var(--secondary); }
.cookie-actions .btn-settings:hover { background: rgba(183,58,18,0.08); }

/* Cookie Modal */
.cookie-modal { position: fixed; inset: 0; z-index: 1300; background: rgba(15, 23, 42, 0.5); display: none; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .3s ease; }
.cookie-modal.open { display: flex; opacity: 1; }
.cookie-modal-content { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 640px; background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-l); box-shadow: var(--shadow-2); padding: 20px; }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-options { display: flex; flex-direction: column; gap: 12px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.cookie-option .label { display: flex; flex-direction: column; }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Simple toggle switch (flex-only, no absolute) */
.toggle { display: inline-flex; align-items: center; gap: 10px; }
.toggle input[type="checkbox"] { width: 44px; height: 24px; appearance: none; background: #e5e7eb; border: 1px solid var(--border-strong); border-radius: 999px; position: relative; outline: none; transition: background .2s ease, border-color .2s ease; }
.toggle input[type="checkbox"]::before { content: ''; display: block; width: 20px; height: 20px; background: #fff; border: 1px solid var(--border-strong); border-radius: 50%; box-shadow: var(--shadow-1); transform: translateX(1px) translateY(1px); transition: transform .2s ease; }
.toggle input[type="checkbox"]:checked { background: #22c55e; border-color: #22c55e; }
.toggle input[type="checkbox"]:checked::before { transform: translateX(21px) translateY(1px); }

/* =====================================================================
   Page-specific Light Enhancements
   ===================================================================== */
/* Pricing and CTA blocks */
.actions .btn-primary { min-width: 160px; }

/* Hero subtle divider on some pages */
.hero + section { border-top: 1px solid var(--border); }

/* Contact info blocks */
.text-section p strong { color: var(--primary); }

/* =====================================================================
   Spacing & Gaps Consistency
   ===================================================================== */
/* Ensure at least 20px between cards/sections */
.card-container > * { margin: 0; }
.content-grid { margin-top: 10px; }

/* Lists inside content keep vertical rhythm */
.text-section li { line-height: 1.7; }

/* =====================================================================
   Accessibility & Micro-interactions
   ===================================================================== */
/* Hover lift for cards */
.card:hover, .testimonial-card:hover { box-shadow: var(--shadow-2); transition: box-shadow .2s ease, transform .2s ease; transform: translateY(-1px); }

/* Keyboard focus visible for links/buttons inside navs */
.main-nav a:focus-visible, .mobile-nav a:focus-visible, .footer-nav a:focus-visible, .btn:focus-visible { outline: var(--focus); outline-offset: 3px; }

/* =====================================================================
   Responsive Alignments
   ===================================================================== */
/* Text-image rows: already handled above to switch column->row */
/* Align center for vertical centering when needed */
.align-center { display: flex; align-items: center; }

/* =====================================================================
   Forms (basic, in case used later)
   ===================================================================== */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--text); transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, textarea:focus, select:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,0.25); outline: none; }
label { font-weight: 600; color: var(--primary); }

/* =====================================================================
   Page Titles & Subtle Section Cards
   ===================================================================== */
/* Wrap content blocks into subtle cards when needed */
.section-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-m); padding: 24px; box-shadow: var(--shadow-1); }

/* =====================================================================
   Print (basic readability)
   ===================================================================== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
  section { padding: 0; margin-bottom: 20px; }
}
