/* Dynora Fala Prezentów — Soft Pastel Style (mobile-first, flex-only) */
/* RESET & NORMALIZE */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 2px; }
ul, ol { padding-left: 20px; }

/* THEME TOKENS (with fallbacks) */
:root {
  --primary: #7A2432;
  --secondary: #2E6B52;
  --accent: #FFF6EC;
  --bg: #FFFBF8; /* soft off-white pastel */
  --ink: #2B2B2B; /* main text */
  --ink-soft: #4A4A4A;
  --muted: #8E8E8E;
  --pastel-peach: #FFEDE1;
  --pastel-mint: #EAF6F1;
  --pastel-lilac: #F2EEFA;
  --pastel-sky: #EEF7FF;
  --surface: #FFFFFF;
  --shadow: 0 6px 18px rgba(122, 36, 50, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --focus: rgba(46, 107, 82, 0.45);
  --focus-strong: rgba(122, 36, 50, 0.5);
}

/* TYPOGRAPHY */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* brand body */
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: var(--primary); line-height: 1.25; }
h1 { font-size: 36px; margin: 0 0 16px; }
h2 { font-size: 28px; margin: 0 0 16px; }
h3 { font-size: 20px; margin: 12px 0; color: var(--secondary); }
.subheadline { color: var(--ink-soft); font-size: 18px; margin: 8px 0 20px; }
p { margin: 0 0 12px; }
small, .small { font-size: 14px; color: var(--muted); }

/* LINKS */
a { color: var(--secondary); text-decoration: underline; transition: color .2s ease; }
a:hover { color: var(--primary); }
a.btn { text-decoration: none; }

/* LAYOUT BASICS (flex-only) */
.container { display: flex; width: 100%; justify-content: center; padding: 0 16px; }
.content-wrapper { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 1120px; }

/* Sections spacing */
section { margin-bottom: 60px; padding: 40px 0; }
/* MANDATORY 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(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 20px; }
.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(--surface); border: 1px solid #F1E9E6; border-left: 6px solid var(--secondary); box-shadow: var(--shadow); border-radius: var(--radius-md); margin-bottom: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* HEADER */
header { background: var(--accent); border-bottom: 1px solid #F0D8CD; position: relative; z-index: 30; }
header .container { padding-top: 10px; padding-bottom: 10px; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.logo img { height: 36px; width: auto; }

/* MAIN NAV (desktop) */
.main-nav { display: none; align-items: center; gap: 14px; flex-wrap: wrap; }
.main-nav a { color: var(--primary); background: #ffffff70; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: background .2s ease, color .2s ease, transform .2s ease; }
.main-nav a:hover { background: #fff; color: var(--secondary); transform: translateY(-1px); }

/* MOBILE MENU */
.mobile-menu-toggle { background: var(--primary); color: #fff; border: none; padding: 10px 12px; border-radius: 10px; font-size: 18px; line-height: 1; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-1px); background: #641C28; }
.mobile-menu { position: fixed; top: 0; left: 0; bottom: 0; right: 0; background: rgba(122, 36, 50, 0.08); display: flex; justify-content: flex-end; transform: translateX(100%); transition: transform .35s ease; z-index: 100; }
.mobile-menu[aria-hidden="false"] { transform: translateX(0); }
.mobile-menu .mobile-nav { background: var(--surface); width: 86vw; max-width: 420px; padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); border-top-left-radius: var(--radius-lg); border-bottom-left-radius: var(--radius-lg); }
.mobile-menu-close { align-self: flex-end; background: transparent; border: none; color: var(--primary); font-size: 22px; cursor: pointer; padding: 6px; border-radius: 8px; }
.mobile-menu-close:hover { background: var(--pastel-lilac); }
.mobile-nav a { color: var(--primary); text-decoration: none; padding: 12px 14px; border-radius: 12px; background: var(--accent); transition: background .2s ease, color .2s ease; }
.mobile-nav a:hover { background: var(--pastel-peach); color: var(--secondary); }

/* HERO */
.hero { padding: 0; }
.hero .container { padding: 0 16px; }
.hero .content-wrapper { background: var(--accent); border: 1px solid #F0D8CD; border-radius: var(--radius-lg); padding: 28px 20px; align-items: flex-start; box-shadow: var(--shadow); }
.hero h1 { color: var(--primary); }

/* TEXT BLOCKS */
.text-section { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.text-section ul, .text-section ol { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.text-section p img { display: inline-block; vertical-align: middle; margin-right: 8px; height: 18px; width: auto; }

/* USP LIST */
.usp-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.usp-list li { background: var(--surface); border: 1px solid #F1E9E6; border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }

/* CTA GROUP */
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: background .2s ease, color .2s ease, transform .15s ease, border-color .2s ease; font-weight: 700; letter-spacing: .2px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #641C28; transform: translateY(-1px); }
.btn-secondary { background: var(--pastel-mint); color: var(--secondary); border-color: #CBE6DA; }
.btn-secondary:hover { background: #DFF2EA; border-color: #B7E0D1; transform: translateY(-1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus), 0 0 0 6px #fff; }

/* BREADCRUMBS */
nav[aria-label="Okruszki"] { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
nav[aria-label="Okruszki"] span { background: var(--surface); padding: 4px 8px; border-radius: 999px; }

/* TESTIMONIALS (readable contrast) */
.testimonial-card p { margin: 0; color: var(--ink); }
.testimonial-card strong { color: var(--primary); }

/* FOOTER */
footer { background: var(--pastel-lilac); border-top: 1px solid #E8E0F4; padding: 24px 0; color: var(--ink); }
footer .content-wrapper { gap: 16px; }
footer nav[aria-label="Menu w stopce"] { display: flex; flex-wrap: wrap; gap: 10px; }
footer nav[aria-label="Menu w stopce"] a { text-decoration: none; background: var(--surface); padding: 8px 12px; border-radius: 10px; border: 1px solid #E9E3F5; color: var(--primary); }
footer nav[aria-label="Menu w stopce"] a:hover { background: var(--pastel-sky); color: var(--secondary); }

/* PAGINATION LINKS (in sklep) */
nav[aria-label="Stronicowanie"] { display: flex; gap: 8px; align-items: center; }
nav[aria-label="Stronicowanie"] a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); border: 1px solid #EDE1DD; color: var(--primary); text-decoration: none; box-shadow: var(--shadow); }
nav[aria-label="Stronicowanie"] a:hover { background: var(--pastel-peach); color: var(--secondary); }

/* GENERIC CARDS (for future product/feature use) */
.card .card-title { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; color: var(--primary); margin: 0 0 6px; }
.card .card-meta { color: var(--muted); font-size: 14px; }

/* ACCESSIBILITY: FOCUS & SELECTION */
:focus-visible { outline: 2px dashed var(--secondary); outline-offset: 2px; }
::selection { background: #FFE1D1; color: var(--primary); }

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid #EED9D0; box-shadow: 0 -8px 20px rgba(0,0,0,0.06); padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; transform: translateY(110%); transition: transform .35s ease; z-index: 120; }
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner .cookie-text { display: flex; flex: 1 1 260px; gap: 10px; align-items: flex-start; color: var(--ink); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 14px; border-radius: 12px; font-weight: 700; }
.cookie-accept { background: var(--secondary); color: #fff; }
.cookie-accept:hover { background: #235543; }
.cookie-reject { background: var(--pastel-lilac); color: var(--primary); border: 1px solid #E5DDF3; }
.cookie-reject:hover { background: #EDE7F7; }
.cookie-settings { background: var(--pastel-peach); color: var(--primary); border: 1px solid #F6D5C3; }
.cookie-settings:hover { background: #FFE4D5; }

/* COOKIE SETTINGS MODAL */
.cookie-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 130; }
.cookie-overlay.is-visible { display: flex; }
.cookie-modal { background: var(--surface); width: 100%; max-width: 640px; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 16px; border: 1px solid #F1E9E6; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 14px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--pastel-mint); padding: 12px; border-radius: 12px; border: 1px solid #CBE6DA; }
.cookie-row.is-essential { background: var(--pastel-sky); border-color: #D6EAFB; }

/* Toggle switch (checkbox + label) */
.cookie-toggle { display: flex; align-items: center; gap: 8px; }
.cookie-switch { position: relative; width: 48px; height: 28px; background: #E6E6E6; border-radius: 999px; border: 1px solid #D0D0D0; transition: background .2s ease; display: flex; align-items: center; padding: 2px; }
.cookie-switch::after { content: ""; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.15); transform: translateX(0); transition: transform .2s ease, background .2s ease; }
.cookie-switch.is-on { background: var(--secondary); }
.cookie-switch.is-on::after { transform: translateX(20px); background: #fff; }
.cookie-modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* FORMS (generic) */
input[type="text"], input[type="email"], textarea, select { width: 100%; padding: 12px 14px; border: 1px solid #E6DCD8; border-radius: 12px; background: var(--surface); box-shadow: inset 0 1px 0 rgba(0,0,0,0.02); }
input:focus, textarea:focus, select:focus { outline: none; box-shadow: 0 0 0 3px var(--focus); border-color: #D9C6C0; }
label { color: var(--ink); font-weight: 600; margin-bottom: 6px; display: inline-block; }

/* MEDIA QUERIES */
@media (min-width: 480px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
}
@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .hero .content-wrapper { padding: 36px 28px; }
  .usp-list { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .usp-list li { flex: 1 1 260px; }
  .text-image-section { flex-direction: row; }
}
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  .logo img { height: 44px; }
  .content-wrapper { gap: 20px; }
}

/* UTILITIES */
.muted { color: var(--muted); }
.center { text-align: center; }
.divider { height: 1px; width: 100%; background: #EDE1DD; }
.spacer-16 { height: 16px; }
.spacer-24 { height: 24px; }

/* PAGE-SPECIFIC POLISHING */
/* Hero emphasis across pages */
.hero .subheadline { color: var(--ink-soft); }
/* Breadcrumb holders get subtle bubble background already above */

/* Ensure all nav groups are flex-aligned */
nav[aria-label="Główna nawigacja"], nav[aria-label="Menu mobilne"], nav[aria-label="Menu w stopce"] { display: flex; }

/* CONTENT SAFETY SPACING */
main > section .content-wrapper > .testimonial-card + .testimonial-card { margin-top: 12px; }
main > section .content-wrapper > .text-section + .testimonial-card { margin-top: 12px; }

/* SHADOW HOVER for cards, testimonials */
.card:hover, .testimonial-card:hover { transform: translateY(-2px); transition: transform .2s ease; }

/* PRINT (basic) */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-overlay { display: none !important; }
  a { text-decoration: none; }
}
