/* =========================================
   Dynor Momentum — Modern Bold CSS (Flex-only)
   Author: Senior CSS Developer & UI Designer
   Notes:
   - Mobile-first, high-contrast, bold typography
   - ONLY Flexbox layouts (no grid/columns)
   - Solid colors, smooth transitions, clear hierarchy
   - Includes mobile menu + cookie banner styles
   ========================================= */

/* =======================
   0) RESET & NORMALIZE
   ======================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { margin: 0; padding: 0 0 0 0; list-style: none; }
button, input { font-family: inherit; font-size: 100%; }
:focus { outline: none; }
:focus-visible { outline: 3px solid #0A66C2; outline-offset: 2px; }

/* =======================
   1) THEME VARIABLES & BASE
   ======================= */
:root {
  --c-primary: #0D1B2A; /* dark navy */
  --c-secondary: #0A66C2; /* bold blue */
  --c-accent: #F7FAFC; /* light surface */
  --c-ink: #0D1B2A; /* for dark text on light */
  --c-ink-soft: #1B2B42;
  --c-muted: #9FB3C8;
  --c-surface-dark: #13263A;
  --c-surface-border: #16314B;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-1: 0 8px 20px rgba(10, 102, 194, 0.25);
  --shadow-2: 0 10px 32px rgba(0, 0, 0, 0.35);
  --transition-fast: 0.2s ease;
  --transition-med: 0.35s ease;
}

/* Fallbacks if custom properties unsupported */
body { background: #0D1B2A; color: #E6EEF8; }

/* Typography */
body {
  font-family: Verdana, Arial, Helvetica, sans-serif; /* brand body */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif; /* brand display */
  color: #FFFFFF;
  margin: 0 0 12px 0;
  letter-spacing: 0.2px;
}
h1 { font-size: 34px; font-weight: 800; line-height: 1.2; }
h2 { font-size: 28px; font-weight: 800; line-height: 1.25; }
h3 { font-size: 20px; font-weight: 800; line-height: 1.3; }
p { margin: 0 0 12px 0; font-size: 16px; color: #E6EEF8; }
strong { font-weight: 800; }
.tagline { font-size: 18px; color: #D7E6F7; font-weight: 700; }

/* Links */
a { color: #62A8FF; font-weight: 700; }
a:hover { color: #8BC1FF; }
a[aria-current="page"], nav a[aria-current] { color: #FFFFFF; }

/* =======================
   2) LAYOUT CONTAINERS (Flex-only)
   ======================= */
main, header, footer, section, nav, .container, .content-wrapper, .text-section, .footer-links, .main-nav, .header-cta, .cta-row, .mobile-nav, .card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  display: flex;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-direction: column; /* mobile-first */
  gap: 20px;
}

/* Content wrapper inside sections */
.content-wrapper {
  flex-direction: column;
  gap: 20px;
}

/* Text sections are vertical stacks */
.text-section {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Mandatory spacing patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--c-surface-dark); border: 1px solid var(--c-surface-border); border-radius: var(--radius-md); padding: 20px; color: #EAF2FF; box-shadow: var(--shadow-2); }
.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; }

/* Global section spacing for native <section> */
section { margin-bottom: 60px; padding: 40px 20px; }

/* =======================
   3) HEADER & NAVIGATION
   ======================= */
header {
  background: var(--c-primary);
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 2px solid var(--c-secondary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

/* Main navigation */
.main-nav { display: none; gap: 8px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  color: #DCE9F8;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.main-nav a:hover { background: #12253A; color: #FFFFFF; transform: translateY(-1px); }
.main-nav a[aria-current], .main-nav a[aria-current="page"] { background: var(--c-secondary); color: #FFFFFF; }

.header-cta { gap: 10px; align-items: center; }

/* =======================
   4) BUTTONS
   ======================= */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.btn-primary {
  background: var(--c-secondary);
  color: #FFFFFF;
  box-shadow: var(--shadow-1);
  border: 2px solid var(--c-secondary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(10,102,194,0.35); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid var(--c-secondary);
}
.btn-secondary:hover { background: #113055; }
.btn-secondary:active { background: #0D2746; }

/* CTA rows */
.cta-row { flex-wrap: wrap; gap: 12px; }

/* =======================
   5) LISTS, ICON ROWS, CONTENT
   ======================= */
.text-section ul li, .text-section ol li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; color: #E6EEF8; }
.text-section ul li img { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; }
.text-section a { color: #6EB3FF; }
.text-section a:hover { color: #9CCBFF; }

/* Bread crumbs */
nav[aria-label="okruszki"] p { color: #9FB3C8; font-weight: 700; }
nav[aria-label="okruszki"] a { color: #BFD4EA; }

/* Cards baseline visuals (when used) */
.card { transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,0.4); }

/* =======================
   6) TESTIMONIALS (light for readability)
   ======================= */
.testimonial-card {
  width: 100%;
  background: var(--c-accent); /* light background */
  color: var(--c-ink); /* dark text */
  border: 2px solid var(--c-secondary);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 24px rgba(13,27,42,0.25);
  flex-direction: column;
}
.testimonial-card p { color: var(--c-ink); }
.testimonial-card strong { color: var(--c-ink); }

/* =======================
   7) FOOTER
   ======================= */
footer { background: #0B1726; border-top: 2px solid var(--c-secondary); }
footer .container { padding-top: 24px; padding-bottom: 24px; }
footer .content-wrapper { flex-direction: column; gap: 16px; }
.footer-links { gap: 12px; flex-wrap: wrap; }
.footer-links a {
  color: #CFE0F2;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-weight: 800;
}
.footer-links a:hover { background: #12253A; color: #FFFFFF; }
footer p { color: #C8D7EA; }

/* =======================
   8) MOBILE MENU (Hamburger)
   ======================= */
.mobile-menu-toggle {
  position: fixed; top: 14px; right: 14px;
  z-index: 1100;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-secondary);
  color: #FFFFFF;
  border: none; border-radius: 12px;
  box-shadow: var(--shadow-1);
  cursor: pointer;
}
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 86%; max-width: 340px;
  background: var(--c-primary);
  border-left: 4px solid var(--c-secondary);
  transform: translateX(100%);
  transition: transform var(--transition-med);
  z-index: 1090;
  padding: 20px;
  flex-direction: column; gap: 16px;
}
.mobile-menu.open, .mobile-menu.active, .mobile-menu.show { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: #10233A; color: #FFFFFF;
  border: 2px solid var(--c-secondary);
  border-radius: 10px;
  cursor: pointer;
}
.mobile-nav { flex-direction: column; gap: 6px; }
.mobile-nav a {
  padding: 12px 14px;
  background: #10233A;
  color: #E8F2FF;
  border-radius: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.mobile-nav a:hover { background: #143152; }

/* Backdrop when menu is open (optional if body class added by JS) */
body.menu-open::after {
  content: "";
  position: fixed; inset: 0; z-index: 1080;
  background: rgba(0,0,0,0.55);
}

/* =======================
   9) COOKIE CONSENT (banner + modal)
   ======================= */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #101F35;
  color: #EAF2FF;
  border-top: 3px solid var(--c-secondary);
  z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px 12px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.35);
}
.cookie-banner .inner { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 1200px; padding: 0 16px; }
.cookie-banner p { margin: 0; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; }
.cookie-accept { background: var(--c-secondary); color: #fff; border: 2px solid var(--c-secondary); box-shadow: var(--shadow-1); }
.cookie-reject { background: transparent; color: #fff; border: 2px solid #3B4F69; }
.cookie-settings { background: #102B4A; color: #fff; border: 2px solid var(--c-secondary); }
.cookie-accept:hover { transform: translateY(-1px); }

/* Cookie preferences modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(13,27,42,0.85); z-index: 1300; display: none; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal.open, .cookie-modal.active, .cookie-modal.show { display: flex; }
.cookie-modal-content {
  background: var(--c-accent); color: var(--c-ink);
  width: 100%; max-width: 680px;
  border-radius: 18px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.45);
}
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal-title { font-family: "Trebuchet MS", Verdana, sans-serif; font-weight: 900; font-size: 22px; color: var(--c-ink); }
.cookie-categories { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #FFFFFF; border: 2px solid #DDE7F2; border-radius: 12px; padding: 12px; }
.cookie-category .label { font-weight: 800; color: var(--c-ink); }
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--c-ink); }
/* Simple toggle style */
.switch { position: relative; width: 44px; height: 26px; background: #C3D3E5; border-radius: 26px; display: inline-flex; align-items: center; padding: 3px; transition: background var(--transition-fast); }
.switch .dot { width: 20px; height: 20px; background: #FFFFFF; border-radius: 50%; transform: translateX(0); transition: transform var(--transition-fast); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.switch.on { background: var(--c-secondary); }
.switch.on .dot { transform: translateX(18px); }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-save { background: var(--c-secondary); color: #fff; border: 2px solid var(--c-secondary); padding: 10px 16px; border-radius: 12px; font-weight: 900; text-transform: uppercase; }
.cookie-cancel { background: transparent; color: var(--c-ink); border: 2px solid #B5C7DA; padding: 10px 16px; border-radius: 12px; font-weight: 900; }

/* =======================
   10) UTILITIES & MICRO-INTERACTIONS
   ======================= */
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: #123458; color: #EAF2FF; border: 2px solid var(--c-secondary); font-weight: 800; }
.separator { height: 2px; width: 100%; background: #16314B; }
.muted { color: var(--c-muted); }

/* =======================
   11) RESPONSIVE BEHAVIOR
   ======================= */
@media (min-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }

  .container { flex-direction: column; }
  .content-wrapper { flex-direction: column; }

  /* Text-image sections become rows on tablet+ when appropriate */
  .text-image-section { flex-direction: row; }
}

@media (min-width: 992px) {
  /* Show desktop nav, hide burger */
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }

  header .container { gap: 20px; }

  /* Arrange hero content more spaciously if needed */
  .content-grid { justify-content: space-between; }
}

/* =======================
   12) HIGH-CONTRAST SECTION STYLES
   ======================= */
/* Optional alternating section surfaces using solid colors */
section:nth-of-type(odd) { background: #0D1B2A; }
section:nth-of-type(even) { background: #0F2034; }

/* Make sure links pop on dark sections */
section a.btn-primary, section a.btn-secondary { color: inherit; }

/* =======================
   13) ACCESSIBILITY & STATES
   ======================= */
button:hover, a.btn-primary:hover, a.btn-secondary:hover { cursor: pointer; }
button:disabled, .btn-primary:disabled, .btn-secondary:disabled { opacity: 0.6; cursor: not-allowed; }

/* =======================
   14) PAGE-SPECIFIC MINOR ENHANCEMENTS
   ======================= */
/* Breadcrumb spacing */
nav[aria-label="okruszki"] { display: flex; }

/* Ensure adequate spacing between inline CTAs */
.text-section p a + a { margin-left: 8px; }

/* =======================
   15) FLEX-ONLY VERIFICATION HELPERS
   ======================= */
/* Explicitly avoid grid/columns by ensuring common layout groups use flex */
main { flex-direction: column; }
footer .content-wrapper { flex-direction: column; }

/* =======================
   16) PRINT BASICS (optional)
   ======================= */
@media print {
  header, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  body { color: #000; background: #fff; }
}
