/* =============================
   Scara Impaw Kariera – style.css
   Warm & Friendly theme, mobile-first, flexbox-only
   ============================= */
/* ===== CSS Reset & Base Normalize ===== */
html { box-sizing: border-box; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; line-height: 1.6; color: #14212B; background: #FFF8F3; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0 0 16px 20px; padding: 0; }
p { margin: 0 0 16px; }
strong { font-weight: 700; }
button, a { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 3px solid #FFB882; outline-offset: 2px; border-radius: 8px; }

/* ===== Theme Variables & Fallbacks ===== */
:root {
  --primary: #0B3D5C;         /* brand deep navy */
  --secondary: #2E7D6B;       /* brand teal */
  --accent: #F4F7FB;          /* brand light accent */
  --bg: #FFF8F3;              /* warm background */
  --peach: #FFE8D6;           /* warm section tint */
  --peach-2: #FFF1E8;         /* hero alt tint */
  --warm: #FFB882;            /* warm friendly accent */
  --text: #14212B;            /* dark readable */
  --muted: #5C6A76;           /* body muted */
  --border: #E9EEF2;          /* soft borders */
  --card: #FFFFFF;            /* card bg */
  --shadow: 0 8px 24px rgba(11, 61, 92, 0.08), 0 2px 8px rgba(11, 61, 92, 0.06);
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 18px;
  --transition: 220ms ease;   /* smooth micro-interactions */
}

/* ===== Typography Scale ===== */
h1, h2, h3, h4 { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; color: var(--primary); margin: 0 0 12px; line-height: 1.25; letter-spacing: 0.2px; }
h1 { font-size: 32px; }
h2 { font-size: 26px; margin-bottom: 18px; }
h3 { font-size: 20px; margin-bottom: 10px; }
h4 { font-size: 16px; margin-bottom: 8px; color: #234; }
body, p, li { font-size: 16px; color: var(--text); }
.small, small { font-size: 14px; color: var(--muted); }
.lead { font-size: 18px; color: var(--text); }

/* ===== Global Layout Wrappers (Flexbox-Only) ===== */
.container {
  width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px;
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
}
.content-wrapper {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px; width: 100%;
}
main > section { padding: 40px 0; }

/* ===== Mandatory Spacing & Alignment 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(--card); border-radius: var(--radius-m); 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; border-radius: var(--radius-l); background: #FFF7F1; box-shadow: var(--shadow); border: 1px solid #FFE4D1; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ===== Buttons ===== */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 20px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary { background: var(--secondary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(46,125,107,0.25); background: #256d5e; }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: #FFF; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--peach); border-color: #0A3550; }

/* ===== Header & Navigation ===== */
.site-header { background: #FFFFFF; border-bottom: 1px solid var(--border); position: relative; z-index: 50; }
.site-header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.logo img { height: 36px; width: auto; }
.main-nav { display: none; gap: 14px; flex-wrap: wrap; align-items: center; }
.main-nav a { padding: 8px 10px; border-radius: 10px; color: var(--primary); transition: background-color var(--transition), color var(--transition); }
.main-nav a:hover { background: var(--accent); color: #082f47; }
.header-cta { display: none; }

/* Mobile hamburger */
.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; transition: background-color var(--transition), box-shadow var(--transition), transform var(--transition); font-size: 22px; color: var(--primary);
}
.mobile-menu-toggle:hover { background: var(--peach); box-shadow: var(--shadow); transform: translateY(-1px); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(0,0,0,0.28); display: flex; align-items: stretch; justify-content: flex-end; transform: translateX(100%);
  transition: transform 280ms ease; z-index: 1200;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .mobile-nav {
  background: #FFFFFF; width: 86%; max-width: 360px; padding: 20px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.mobile-menu-close {
  position: relative; align-self: flex-start; margin: 14px 12px 0; background: #fff; border: 1px solid var(--border); border-radius: 10px; width: 38px; height: 38px;
  font-size: 18px; color: var(--primary); transition: background-color var(--transition);
}
.mobile-menu-close:hover { background: var(--accent); }
.mobile-nav a {
  padding: 14px 12px; border-radius: 12px; color: var(--primary); font-weight: 600; transition: background-color var(--transition), transform var(--transition);
}
.mobile-nav a:hover { background: var(--peach); transform: translateX(2px); }

/* ===== Hero Section ===== */
.hero { background: var(--peach-2); }
.hero .content-wrapper { align-items: flex-start; }
.hero h1 { font-size: 30px; }
.hero p { font-size: 18px; color: var(--text); max-width: 60ch; }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* USP bullets and trust badges */
.usp-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.usp-bullets li { display: flex; align-items: center; gap: 10px; background: #FFFFFF; border: 1px solid #FFE4D1; border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.usp-bullets img { width: 18px; height: 18px; }
.trust-badges { display: flex; flex-direction: column; gap: 8px; }
.trust-badges ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.trust-badges li { display: flex; align-items: center; gap: 8px; background: #FFF; border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.trust-badges img { width: 16px; height: 16px; }

/* ===== Feature & Services Cards ===== */
.features, .services-preview, .service-packages, .packages { background: #FFF; }
.feature-grid, .service-cards, .package-cards, .feature-matrix, .values-list, .credentials-list,
.metrics-grid, .benefit-list, .deliverables-list, .bonuses-list, .add-on-list, .guarantee-points,
.inclusions-list, .tools-list, .methodology-highlights, .milestones-list, .success_factors_list {
  display: flex; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; margin: 0;
}
.text-section {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 18px; box-shadow: var(--shadow); flex: 1 1 260px; min-width: 260px; max-width: 100%;
}
.feature-matrix { margin-top: 8px; }
.feature-matrix h3 { width: 100%; margin-bottom: 8px; }
.feature-matrix ul { width: 100%; }

/* ===== Process & Steps ===== */
.process .steps-timeline,
.how-it-works .steps-timeline,
.steps-timeline { display: flex; flex-direction: column; gap: 12px; padding-left: 0; list-style: none; }
.steps-timeline li { background: #FFFFFF; border: 1px solid #FFE4D1; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }

/* ===== Metrics / Statistics ===== */
.metrics-grid li {
  flex: 1 1 240px; min-width: 220px; background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow);
}
.metrics-grid li strong { font-size: 26px; color: var(--secondary); }

/* ===== Pricing cards ===== */
.package-cards .text-section h3 span { font-size: 12px; color: #B45800; background: #FFF0E1; border-radius: 999px; padding: 4px 8px; margin-left: 6px; }
.benefit-list li, .deliverables-list li, .bonuses-list li, .guarantee-points li, .add-on-list li { padding: 10px 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.bundle-discounts, .refund-policy, .payment-methods, .timeframes-info, .language-support-notice { color: var(--muted); }

/* ===== Testimonials ===== */
.testimonials { background: #FFF; }
.testimonials .content-wrapper { gap: 16px; }
.testimonial-card p { margin: 0; color: #1B2730; }
.testimonial-card strong { color: #0A3550; }
.ratings-summary { display: flex; align-items: center; gap: 8px; color: var(--text); }
.ratings-summary img { width: 18px; height: 18px; }

/* ===== Legal / Policies ===== */
.legal .text-section { background: #FFFFFF; border-color: var(--border); }
.legal h2, .legal h3 { color: var(--primary); }

/* ===== CTA and Taglines ===== */
.cta, .contact-cta { background: var(--peach); }
.tagline, .secondary-note { color: var(--muted); }

/* ===== Contact Details & Icons ===== */
.contact-details .text-section p, .contact-cta .text-section p { display: flex; align-items: center; gap: 10px; }
.contact-details .text-section img, .contact-cta .text-section img { width: 18px; height: 18px; }
.support-channels, .owner-responsibilities { color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: var(--primary); color: #EAF3F8; }
.site-footer section { padding: 28px 0; }
.site-footer .content-wrapper { flex-direction: column; gap: 20px; }
.site-footer .footer-nav { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.site-footer .footer-nav a { color: #EAF3F8; opacity: 0.92; padding: 6px 8px; border-radius: 10px; transition: background-color var(--transition), opacity var(--transition); }
.site-footer .footer-nav a:hover { background: rgba(255,255,255,0.12); opacity: 1; }
.site-footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Generic Cards & Utilities ===== */
.card-soft { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-l); padding: 18px; box-shadow: var(--shadow); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--accent); color: var(--primary); border-radius: 999px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ===== Mobile-first Flex Behaviors ===== */
/* Common multi-column wrappers become responsive rows on larger screens */
.feature-grid .text-section,
.service-cards .text-section,
.package-cards .text-section { flex: 1 1 280px; }

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

/* ===== Responsive Layout Enhancements ===== */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .hero h1 { font-size: 44px; }
  .content-wrapper { gap: 24px; }
  .text-image-section { flex-direction: row; }
  .hero .content-wrapper { flex-direction: column; align-items: flex-start; }
  .site-footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}

/* ===== Links & Interactions ===== */
a:hover { color: #0A3550; }
button, .btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close { will-change: transform; }

/* ===== Lists without bullets (where used as UI groups) ===== */
.values-list, .credentials-list, .inclusions-list, .deliverables-list, .benefits-list,
.tools-list, .methodology-highlights, .milestones-list, .success_factors_list,
.add-on-list, .guarantee-points { list-style: none; padding: 0; }

/* ===== Page-specific light accents ===== */
.pricing-teaser, .roi, .results { background: #FFFAF6; }
.stats, .statistics { background: #FFFFFF; }
.about-story, .values, .team, .industries, .how-help { background: #FFF; }

/* ===== Language notices / info lines ===== */
.language-support-notice { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: #FFF0E6; color: #6B3700; border: 1px solid #FFD8BF; }

/* ===== Footer addresses & addresses in content ===== */
address { font-style: normal; color: #EAF3F8; }

/* ===== Mobile Menu z-index vs Cookie Banner ===== */
/* Ensure both layers stack correctly */
.mobile-menu { z-index: 1200; }

/* ===== Cookie Consent Banner & Modal ===== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; background: #FFFFFF; border-top: 1px solid var(--border);
  box-shadow: 0 -10px 28px rgba(0,0,0,0.08); padding: 14px 16px; display: flex; align-items: center; justify-content: center;
  transform: translateY(100%); transition: transform 280ms ease; z-index: 1400;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-inner { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 1160px; }
.cookie-banner p { margin: 0; color: var(--text); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn-accept { background: var(--secondary); color: #fff; border-radius: 999px; padding: 10px 16px; border: 2px solid transparent; font-weight: 700; }
.cookie-actions .btn-reject { background: #fff; color: var(--primary); border: 2px solid var(--primary); border-radius: 999px; padding: 10px 16px; font-weight: 700; }
.cookie-actions .btn-settings { background: var(--peach); color: #6B3700; border: 2px solid #FFDBBF; border-radius: 999px; padding: 10px 16px; font-weight: 700; }
.cookie-actions .btn-accept:hover { background: #256d5e; }
.cookie-actions .btn-reject:hover { background: var(--accent); }
.cookie-actions .btn-settings:hover { background: #FFE8D6; }

/* Cookie modal */
.cookie-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); display: none; align-items: center; justify-content: center; z-index: 1500; }
.cookie-modal-overlay.show { display: flex; }
.cookie-modal { background: #fff; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); width: 92%; max-width: 680px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.cookie-modal header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #FAFCFE; }
.cookie-category .always-on { color: #0A7A3A; font-weight: 700; }
.cookie-modal .modal-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* Toggle switch (for analytics/marketing) */
.toggle { position: relative; width: 44px; height: 26px; background: #CBD6DE; border-radius: 999px; transition: background-color var(--transition); display: inline-flex; align-items: center; padding: 3px; }
.toggle input { appearance: none; width: 0; height: 0; margin: 0; }
.toggle .knob { width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform var(--transition); box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.toggle input:checked + .knob { transform: translateX(18px); }
.toggle input:checked ~ .knob { transform: translateX(18px); }
.toggle input:checked ~ .bg { background: var(--secondary); }

/* ===== Accessibility helpers ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== Decorative subtle shadows for cards ===== */
section .text-section:hover, .card:hover, .metrics-grid li:hover, .testimonial-card:hover { box-shadow: 0 12px 26px rgba(11, 61, 92, 0.12), 0 3px 8px rgba(11, 61, 92, 0.08); transform: translateY(-1px); transition: box-shadow var(--transition), transform var(--transition); }

/* ===== Links in content blocks ===== */
.text-section a, .legal a, .contact a, .faq a, .site-footer a { color: var(--secondary); }
.text-section a:hover, .legal a:hover, .contact a:hover, .faq a:hover { color: #215d50; text-decoration: underline; text-underline-offset: 3px; }

/* ===== FAQ styles ===== */
.faq .text-section h3 { margin-bottom: 6px; }
.faq .contact-prompt { color: var(--muted); }

/* ===== Pages: spacing consistency ===== */
.features .text-section, .services-preview .text-section, .service-packages .text-section, .packages .text-section,
.how-help .text-section, .faq .text-section, .values .text-section, .team .text-section, .about-story .text-section,
.cases .text-section, .success-factors .text-section { margin-bottom: 8px; }

/* ===== Alignments & Wrapping ===== */
.content-grid > * { flex: 1 1 280px; }
.card-container > * { flex: 1 1 280px; }

/* ===== Header light elevation on scroll (optional) ===== */
@media (min-width: 0px) {
  .site-header { box-shadow: 0 2px 16px rgba(0,0,0,0.03); }
}

/* ===== Print tweaks ===== */
@media print {
  .mobile-menu-toggle, .mobile-menu, .site-header, .site-footer { box-shadow: none !important; }
}

/* ===== Ensure no layout overlaps ===== */
section, .text-section, .testimonial-card, .metrics-grid li, .card { overflow: hidden; }

/* ===== Desktop spacing refinements ===== */
@media (min-width: 1024px) {
  .container { padding: 0 24px; }
  main > section { padding: 56px 0; }
}

/* ===== Specific minor elements ===== */
.rates, .time_to_offer_stats { color: var(--muted); }
.footer-nav h4, .site-footer h3, .site-footer h4 { color: #fff; }

/* ===== Icon sizing edge cases ===== */
.contact-cta img, .contact-details img, .trust-badges img { flex: 0 0 auto; }

/* ===== Prevent absolute positioning of content cards ===== */
/* Only decorative elements should ever use absolute; ensuring common cards remain in normal flow. */
.card, .text-section, .testimonial-card, .metrics-grid li { position: relative; }

/* ===== Touch targets ===== */
.mobile-nav a, .main-nav a { min-height: 40px; }

/* ===== Content Section color accents to reinforce warm_friendly ===== */
.values { background: #FFF9F4; }
.success-factors, .pricing-teaser, .what-included { background: #FFF9F6; }

/* ===== Lists inside legal pages with better rhythm ===== */
.legal ul { display: flex; flex-direction: column; gap: 8px; margin-left: 18px; }

/* ===== Contact prompt pill ===== */
.contact-prompt { display: inline-flex; background: #FFF0E6; padding: 8px 12px; border-radius: 999px; border: 1px solid #FFD8BF; color: #6B3700; }

/* ===== Mobile-first column layout to desktop rows for common sections ===== */
.service-cards, .package-cards, .feature-grid, .cases .content-wrapper, .stats .content-wrapper, .statistics .content-wrapper { align-items: stretch; }

/* ===== Visual hierarchy helpers ===== */
.section-title { font-size: 28px; color: var(--primary); }
.subtitle { font-size: 18px; color: var(--muted); }

/* ===== Ensure testimonials and review text are dark on light backgrounds ===== */
.testimonials, .roi, .results { color: var(--text); }
.testimonials .testimonial-card, .roi .testimonial-card, .results .testimonial-card { background: #FFF7F1; border: 1px solid #FFDCC6; }

/* ===== End of stylesheet ===== */
