/* Dynara Blaze CertAuto - style.css (monochrome_sophisticated) */
/* ===================================================================
   RESET & BASELINE
=================================================================== */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { padding-left: 1.2rem; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #E85D04; outline-offset: 2px; }

/* ===================================================================
   THEME TOKENS (Monochrome base + subtle brand accents)
=================================================================== */
:root {
  --brand-primary: #0F2A3F; /* Deep navy (subtle accents only) */
  --brand-secondary: #E85D04; /* Accent for focus/active micro details */
  --brand-accent: #F5F8FC; /* Not primary, used only as faint tint if needed */

  --bg: #FFFFFF;
  --bg-alt: #F7F7F7; /* Light gray for cards */
  --surface: #FAFAFA; /* Section light */
  --text: #0A0A0A;
  --text-muted: #5A5A5A;
  --line: #E6E6E6;
  --line-strong: #CFCFCF;
  --ink: #111111; /* Buttons/Headings strong */
  --ink-inverse: #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* ===================================================================
   TYPOGRAPHY
=================================================================== */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, h4 { font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; color: var(--ink); line-height: 1.2; letter-spacing: 0.2px; }
h1 { font-size: 32px; margin-bottom: 12px; }
h2 { font-size: 24px; margin-bottom: 10px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { color: var(--text); }
small, .muted { color: var(--text-muted); }

/* Links (monochrome with elegant underline on hover) */
a { color: #121212; border-bottom: 1px solid transparent; transition: color .25s ease, border-color .25s ease, opacity .25s ease; }
a:hover { color: #000000; border-color: #000000; }

/* ===================================================================
   LAYOUT CORE (Flex-only)
=================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex; /* Flex-only requirement */
  flex-direction: column;
  gap: 24px;
}

/* Section spacing: element + required utility class */
section { margin-bottom: 60px; padding: 40px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.section { margin-bottom: 60px; padding: 40px 20px; }

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===================================================================
   HEADER & NAVIGATION
=================================================================== */
header { position: sticky; top: 0; z-index: 1000; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
header img { height: 36px; width: auto; }

header nav { display: none; align-items: center; gap: 16px; }
header nav a { padding: 10px 12px; color: #151515; border-radius: var(--radius-sm); border: 1px solid transparent; }
header nav a:hover { background: var(--bg-alt); border-color: var(--line); }

/* CTA buttons inside header nav inherit button styles below */

/* Mobile hamburger */
.mobile-menu-toggle { width: 44px; height: 44px; font-size: 24px; line-height: 44px; text-align: center; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; background: var(--bg); transition: transform .2s ease, background .2s ease; }
.mobile-menu-toggle:hover { background: var(--bg-alt); transform: translateY(-1px); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; /* Flex-only */
  align-items: stretch; justify-content: flex-end;
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 1400;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .mobile-nav {
  width: 88%; max-width: 360px; background: #111; color: #fff;
  display: flex; flex-direction: column; gap: 4px; padding: 20px; box-shadow: var(--shadow-lg);
}
.mobile-menu-close { align-self: flex-start; margin: 16px; width: 40px; height: 40px; border-radius: 50%; background: #222; color: #fff; font-size: 18px; border: 1px solid #333; }
.mobile-nav a { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 8px; color: #EFEFEF; border: 1px solid transparent; }
.mobile-nav a:hover { background: #1A1A1A; border-color: #2A2A2A; }

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

/* When menu open, prevent scroll */
body.menu-open { overflow: hidden; }

/* ===================================================================
   BUTTONS (Monochrome with refined micro-accents)
=================================================================== */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

.cta-primary, .cta-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; font-weight: bold; letter-spacing: .2px; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease; }

.cta-primary { background: #111; color: #fff; border: 1px solid #111; box-shadow: 0 2px 0 #000; }
.cta-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.25); }
.cta-primary:active { transform: translateY(0); box-shadow: 0 1px 0 #000; }

.cta-secondary { background: transparent; color: #111; border: 1px solid #111; }
.cta-secondary:hover { background: #111; color: #fff; }

/* Keyboard focus accent with brand secondary */
.cta-primary:focus-visible, .cta-secondary:focus-visible { box-shadow: 0 0 0 3px rgba(232,93,4,0.3); }

/* ===================================================================
   LISTS & TEXT BLOCKS
=================================================================== */
.text-section { display: flex; flex-direction: column; gap: 12px; }
ul li, ol li { margin-bottom: 8px; }
ul li img { display: inline-block; vertical-align: middle; height: 18px; width: 18px; margin-right: 8px; }

/* ===================================================================
   CARDS, GRIDS & FLEX UTILITIES (Flex-only)
=================================================================== */
/* Required spacing utilities */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; 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; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Project-specific cards */
.stats-counters { display: flex; flex-wrap: wrap; gap: 12px; }
.stats-counters > div { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #111; box-shadow: var(--shadow-sm); }

.trust-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--text-muted); }
.trust-badges img { height: 22px; width: 22px; filter: grayscale(100%); opacity: 0.85; }
.trust-badges span { margin-left: 8px; font-weight: bold; color: #1a1a1a; }

.search-and-sort { display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-muted); }

/* Car listing */
.car-card-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.car-card { flex: 1 1 100%; display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); min-width: 260px; }
.car-card h3 { font-size: 18px; }
.car-card ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 1.2rem; }
.car-card ul li img { height: 16px; width: 16px; margin-right: 6px; vertical-align: middle; display: inline-block; }

/* Helper lists */
.help-links-list { display: flex; flex-wrap: wrap; gap: 10px; color: #111; }

/* Contact snippet */
.contact-details-snippet { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface); }
.contact-details-snippet img { height: 18px; width: 18px; filter: grayscale(100%); }

/* Customer care */
.customer-care-principles { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: #111; color: #fff; box-shadow: var(--shadow-sm); }

/* ===================================================================
   TESTIMONIALS (Contrast requirement)
=================================================================== */
/* Dark text on light backgrounds for readability */
.testimonial-card p { color: #121212; }
.testimonial-card strong { color: #1a1a1a; }

/* ===================================================================
   FOOTER
=================================================================== */
footer { border-top: 2px solid var(--brand-primary); background: #f9f9f9; }
footer .container { padding-top: 24px; padding-bottom: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px; }
footer nav a { color: #222; padding: 8px 10px; border-radius: 6px; }
footer nav a:hover { background: #ECECEC; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; color: var(--text-muted); }

/* ===================================================================
   RESPONSIVE TYPOGRAPHY & LAYOUT
=================================================================== */
@media (min-width: 480px) {
  h1 { font-size: 36px; }
}
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .search-and-sort { justify-content: space-between; }
  .text-image-section { flex-direction: row; }
  .car-card { flex: 1 1 calc(50% - 12px); }
}
@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  section { padding: 56px 24px; }
  .container { gap: 28px; }
}

/* Mobile-first: text-image sections stack on mobile */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
}

/* ===================================================================
   TABLES (if any appear later) - monochrome
=================================================================== */
.table { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.table-row { display: flex; border-top: 1px solid var(--line); }
.table-row:first-child { border-top: 0; background: #FBFBFB; font-weight: bold; }
.table-cell { flex: 1; padding: 12px 14px; border-left: 1px solid var(--line); }
.table-cell:first-child { border-left: 0; }

/* ===================================================================
   COOKIES: Banner & Modal (Flex-only)
=================================================================== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; display: none; }
.cookie-banner.active { display: flex; }
.cookie-banner .cookie-inner { margin: 12px; background: #111; color: #fff; border: 1px solid #222; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.cookie-banner p { margin: 0; color: #EFEFEF; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 999px; border: 1px solid #fff; color: #111; background: #fff; transition: all .25s ease; }
.cookie-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
.cookie-btn.secondary { background: transparent; color: #686363; border-color: #444; }
.cookie-btn.secondary:hover { background: #1D1D1D; }

/* Cookie settings modal */
.cookie-modal { position: fixed; inset: 0; z-index: 1600; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal.open { display: flex; }
.cookie-modal .cookie-dialog { width: 100%; max-width: 560px; background: #fff; color: #111; border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--line); }
.cookie-dialog h3 { margin-bottom: 4px; }
.cookie-categories { display: flex; flex-direction: column; gap: 10px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #FAFAFA; }
.cookie-toggle { width: 42px; height: 26px; border-radius: 999px; background: #D0D0D0; border: 1px solid #BDBDBD; position: relative; }
.cookie-toggle::after { content: ""; position: absolute; top: 50%; left: 3px; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: left .2s ease; }
.cookie-toggle.on { background: #111; border-color: #111; }
.cookie-toggle.on::after { left: 21px; }
.cookie-dialog .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ===================================================================
   MISC INTERACTIONS
=================================================================== */
/* Subtle section hover lift (for non-static hero sections only if needed) */
section:hover { /* keeps minimal; no large animations to avoid jank */ }

/* Cards hover */
.card:hover, .car-card:hover, .testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); transition: transform .2s ease, box-shadow .25s ease; }

/* Icons grayscale consistent (monochrome) */
svg, img.icon { filter: grayscale(100%); }

/* ===================================================================
   PAGE-SPECIFIC TWEAKS
=================================================================== */
/* Hero first section: elevate slightly */
main > section:first-of-type { background: #FFFFFF; border-bottom: 1px solid var(--line); }

/* Headings spacing harmony */
.content-wrapper > h2 + ul, .content-wrapper > h2 + p, .content-wrapper > h2 + div { margin-top: 6px; }

/* Index trust badges spacing */
.trust-badges span { font-size: 14px; }

/* Search/sort pill style for samochody.html */
.search-and-sort span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }

/* FAQ like anchor links default */
.content-wrapper a { color: #6e6969; border-bottom-color: #111; }

/* Thank you page icon alignment fix */
[alt="Sukces"] { display: inline-block; margin-right: 8px; }

/* ===================================================================
   NAV LINK STATES & ACCESSIBILITY
=================================================================== */
header nav a:focus-visible { box-shadow: 0 0 0 3px rgba(232,93,4,0.3); }

/* ===================================================================
   PRINT (optional minimal)
=================================================================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section { padding: 20px; margin-bottom: 24px; }
  a { border-bottom: 0; }
}
