/* ==========================================================================
   Fuzzy Trek IT - Professional Corporate CSS Reset & Responsive Design
   Brand colors: #174376 (primary), #EFEFEF (secondary), #F9A23B (accent)
   Fonts: Montserrat (display), Roboto (body)
   ========================================================================== */

/* Reset (normalize + base styles) */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  box-sizing: border-box;
}
body {
  background: #FFFFFF;
  color: #22313F;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #174376;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F9A23B;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}

/* Font faces (Google Fonts assumed available) */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* =======================================================================
  GENERAL STRUCTURE & BRAND LAYOUT
   ======================================================================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 12px 0 rgba(23, 67, 118, 0.07);
  /* For touch targets below */
}
@media (max-width: 768px) {
  .section {
    padding: 26px 10px;
    margin-bottom: 36px;
  }
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =======================================================================
    TYPOGRAPHY
   ======================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #174376;
  letter-spacing: -0.01em;
  margin-bottom: 0.5em;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 0.8em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 0.75em;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 0.7em;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 0.7em;
}
p, ul, ol, li, .text-section, .case-study-results {
  font-family: 'Roboto', Arial, sans-serif;
  color: #233142;
  font-size: 1rem;
  line-height: 1.6;
}
strong {
  font-weight: 700;
}

/* Simple text-section spacing */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.numbers-block ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.numbers-block strong {
  font-size: 1.5rem;
  color: #174376;
}

/* =======================================================================
   HEADER & MAIN NAVIGATION
   ======================================================================= */
header {
  background: #174376;
  color: #fff;
  position: relative;
  z-index: 50;
  box-shadow: 0 3px 10px rgba(23,67,118,0.06);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
}
header a img {
  max-height: 48px;
}
/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #213e60;
  color: #F9A23B;
}
.main-nav .cta-btn {
  background: #F9A23B;
  color: #174376;
  padding: 10px 22px;
  margin-left: 12px;
  border-radius: 8px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: #fff;
  color: #174376;
}

/* Hide burger on desktop */
.mobile-menu-toggle {
  display: none;
}

/* =======================================================================
   MOBILE NAVIGATION
   ======================================================================= */
@media (max-width: 940px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #174376;
    color: #F9A23B;
    border: none;
    font-size: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 12px;
    transition: background 0.15s, box-shadow 0.15s;
  }
  .mobile-menu-toggle:active,
  .mobile-menu-toggle:focus {
    background: #213e60;
    color: #fff;
  }
}
.mobile-menu {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(23,67,118,0.99);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.55,0,0.25,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px;
  box-shadow: 6px 0 30px 0 rgba(23,67,118,0.12);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 16px;
  margin-right: 5px;
  z-index: 10001;
  transition: color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F9A23B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.21s, background 0.18s;
  border-radius: 7px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #213e60;
  color: #F9A23B;
}
@media (min-width: 941px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Overlay shading when mobile menu open */
body.menu-open {
  overflow: hidden;
}

/* =======================================================================
   HERO SECTION
   ======================================================================= */
.hero {
  background: linear-gradient(135deg, #174376 85%, #F9A23B 170%);
  color: #fff;
  padding: 72px 0 60px 0;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 8px 42px rgba(23,67,118,0.08);
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.13;
}
.hero p {
  font-size: 1.15rem;
  color: #EFEFEF;
  margin-bottom: 30px;
}
.hero .cta-btn {
  background: #F9A23B;
  color: #174376;
  padding: 14px 32px;
  font-size: 1.12rem;
  border-radius: 10px;
  font-weight: 700;
  transition: background 0.19s, color 0.19s, transform 0.09s;
  box-shadow: 0 2px 8px rgba(23,67,118,0.13);
}
.hero .cta-btn:hover, .hero .cta-btn:focus {
  background: #fff;
  color: #174376;
  transform: translateY(-2px) scale(1.04);
}

@media (max-width: 768px) {
  .hero {
    padding: 38px 0 36px 0;
    border-radius: 0 0 12px 12px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
}

/* =======================================================================
   STANDARD BUTTONS & CTA
   ======================================================================= */
.cta-btn {
  background: #F9A23B;
  color: #174376;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  padding: 12px 30px;
  font-size: 1.07rem;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(23,67,118,0.11);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.11s;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #174376;
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}

/* =======================================================================
   FLEX LAYOUTS (MANDATORY PATTERNS)
   ======================================================================= */
.card-container, .feature-grid, .services-list, .solutions-grid, .case-studies, .blog-snippets {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(23,67,118,0.08);
  padding: 30px 22px 28px 22px;
  margin-bottom: 20px;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .feature-grid, .card-container, .services-list, .solutions-grid, .case-studies, .blog-snippets {
    flex-direction: column;
    gap: 14px;
  }
}

/* =======================================================================
   FEATURE GRID / SERVICES
   ======================================================================= */
.feature-grid {
  margin-top: 30px;
  gap: 28px;
}
.feature-item {
  background: #EFF4F8;
  border-radius: 12px;
  padding: 32px 18px 26px 18px;
  box-shadow: 0 1px 6px rgba(23,67,118,0.04);
  min-width: 250px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.feature-item img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  margin-bottom: 16px;
}
.feature-item h3 {
  font-size: 1.19rem;
  margin-bottom: 4px;
}
.feature-item p {
  font-size: 1rem;
  color: #22313F;
}

/* Services on homepage/oferta */
.services-list {
  gap: 28px;
}
.service-short, .service-detail {
  background: #F8FAFC;
  border-radius: 10px;
  box-shadow: 0 1px 7px rgba(23,67,118,0.05);
  padding: 22px 16px 18px 16px;
  flex: 1 1 245px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  min-width: 200px;
}
.service-short h3, .service-detail h2 {
  color: #174376;
}

/* CTA banner */
.cta-banner {
  background: #174376;
  color: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(23,67,118,0.09);
  padding: 38px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cta-banner .cta-btn {
  margin: 0 auto;
}

/* =======================================================================
   TESTIMONIALS
   ======================================================================= */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2.5px 9px 0 rgba(23,67,118,0.09);
  padding: 20px 26px 18px 26px;
  min-width: 260px;
  max-width: 420px;
  flex: 1 1 270px;
  color: #22313F;
}
.testimonial-card p {
  color: #174376;
  font-size: 1.01rem;
  line-height: 1.67;
  margin-bottom: 10px;
}
.testimonial-data {
  color: #757B81;
  font-size: 0.98rem;
  font-style: italic;
  text-align: right;
}
@media (max-width: 768px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 14px;
  }
}

.client-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 10px;
  min-height: 54px;
}

/* =======================================================================
   BLOG SNIPPETS
   ======================================================================= */
.blog-snippets {
  margin-top: 16px;
}
.blog-post-snippet {
  background: #F5F8FA;
  border-radius: 10px;
  padding: 22px 18px 18px 18px;
  flex: 1 1 270px;
  box-shadow: 0 1.5px 7px rgba(23,67,118,0.07);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.blog-post-snippet h2 {
  font-size: 1.13rem;
  color: #174376;
}
.blog-post-snippet a {
  margin-top: 10px;
  font-weight: 700;
  color: #174376;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
}
.blog-post-snippet a:hover {
  color: #F9A23B;
  text-decoration: underline;
}

/* Blog categories */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #757B81;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

/* =======================================================================
   CONTACT & LOCATION
   ======================================================================= */
.contact-details, .business-hours, .location-map, .contact-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.contact-details p, .business-hours p {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  color: #233142;
}
.contact-details img, .business-hours img {
  height: 20px;
  width: 20px;
  object-fit: contain;
  margin-right: 7px;
}
.location-map {
  background: #F8FAFE;
  border-radius: 9px;
  padding: 17px 13px;
  color: #174376;
  font-size: 0.99rem;
}
.contact-cta {
  margin-top: 18px;
}

/* =======================================================================
   THANK YOU / CONFIRMATION
   ======================================================================= */
.thank-you-message {
  padding: 24px 18px;
  background: #F7F8FA;
  border-radius: 9px;
  font-size: 1.05rem;
  color: #174376;
  margin-bottom: 20px;
}
.confirmation-actions .cta-btn {
  margin-top: 12px;
  min-width: 190px;
}

/* =======================================================================
   INDUSTRY LIST (BRANZE)
   ======================================================================= */
.industry-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 18px;
  margin-bottom: 8px;
}
.industry-list li {
  background: #FAFBFC;
  border-radius: 9px;
  box-shadow: 0 1px 7px rgba(23,67,118,0.06);
  padding: 18px 17px 14px 17px;
  color: #22313F;
  font-size: 1rem;
}
.industry-list strong {
  color: #174376;
}

/* =======================================================================
   SOLUTIONS & CASES (ROZWIAZANIA-IT)
   ======================================================================= */
.solutions-grid {
  margin-top: 26px;
  gap: 28px;
}
.solution-highlight {
  background: #F5F9FC;
  border-radius: 11px;
  box-shadow: 0 1px 7px rgba(23,67,118,0.05);
  padding: 30px 18px 24px 18px;
  flex: 1 1 255px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.solution-highlight img {
  height: 42px;
  width: 42px;
  margin-bottom: 10px;
}
.solution-highlight h2 {
  color: #174376;
  font-size: 1.11rem;
}
.case-studies {
  gap: 26px;
  margin-top: 18px;
}
.case-study {
  background: #F7FCFA;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(23,67,118,0.04);
  padding: 17px 15px 13px 15px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.case-study-results {
  flex: 1 1 300px;
  background: #FFF4DE;
  border-radius: 10px;
  padding: 17px 15px;
  margin-top: 1.3em;
  color: #22313F;
  box-shadow: 0 1px 6px rgba(23,67,118,0.07);
}
.case-study-results h4 {
  color: #174376;
  font-size: 1.01rem;
}
.case-study-results ul {
  margin-top: 9px;
  padding-left: 22px;
  gap: 9px;
}

/* =======================================================================
   FOOTER
   ======================================================================= */
footer {
  background: #174376;
  color: #fff;
  padding: 28px 0 15px 0;
  box-shadow: 0 -2px 16px rgba(23,67,118,0.07);
  position: relative;
  z-index: 10;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand img {
  height: 40px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  font-size: 0.97rem;
  transition: color 0.17s;
}
.footer-nav a:hover {
  color: #F9A23B;
}
.footer-contact {
  color: #EFEFEF;
  font-size: 0.99rem;
  text-align: right;
  margin-top: 4px;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-contact {
    text-align: left;
  }
}

/* =======================================================================
   COOKIE CONSENT BANNER + MODAL
   ======================================================================= */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 20000;
  background: #fff;
  color: #22313F;
  box-shadow: 0 -4px 16px rgba(23,67,118,0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 28px 20px 26px 20px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: transform 0.26s;
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 11px 19px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.12s;
}
.cookie-btn.accept {
  background: #174376;
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #264f82;
  color: #F9A23B;
}
.cookie-btn.reject {
  background: #EFEFEF;
  color: #22313F;
  border: 1px solid #C5CBD0;
}
.cookie-btn.reject:hover {
  background: #D8E4F0;
}
.cookie-btn.settings {
  background: #F9A23B;
  color: #174376;
  margin-right: 6px;
}
.cookie-btn.settings:hover {
  background: #fff2e2;
  color: #174376;
}

/* Cookie preferences MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 40000;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(23,67,118,0.36);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: #22313F;
  border-radius: 15px;
  box-shadow: 0 4px 40px rgba(23,67,118,0.19);
  padding: 38px 26px 26px 26px;
  max-width: 400px;
  width: 90vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookie-modal-in 0.32s cubic-bezier(.61,-0.14,.29,1.1);
}
@keyframes cookie-modal-in {
  from {transform: translateY(50px) scale(0.97); opacity:0;}
  to   {transform: none; opacity:1;}
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #174376;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #F9A23B;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 5px;
}
.cookie-category-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.01rem;
  color: #174376;
}
.cookie-category-toggle {
  margin-left: auto;
  accent-color: #174376;
}
.cookie-category-essential {
  color: #bbb;
  font-size: 0.97rem;
  margin-left: 6px;
}

@media (max-width: 500px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 20px 0;
    padding: 18px 8px 18px 8px;
  }
  .cookie-modal {
    padding: 20px 8px 13px 8px;
  }
}

/* =======================================================================
   UTILITIES & ANIMATIONS
   ======================================================================= */
@media (max-width: 768px) {
  h1 {font-size:1.35rem;}
  h2 {font-size:1.16rem;}
  .card, .feature-item, .service-short, .service-detail, .solution-highlight, .case-study {
    padding: 15px 9px 13px 9px;
    min-width: 0;
    max-width: 100%;
  }
}

/* Spacing helpers */
.mb-20 { margin-bottom:20px !important; }
.mb-32 { margin-bottom:32px !important; }
.mt-16 { margin-top:16px !important; }
.mt-30 { margin-top:30px !important; }
.gap-20 { gap:20px !important; }

/* Subtle shadow utility */
.shadow {
  box-shadow: 0 2px 9px 0 rgba(23,67,118,0.07);
}

/* Hide visually only (for modals etc) */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
  border: 0;
}

/* =======================================================================
   MICRO-INTERACTIONS
   ======================================================================= */
button, .cta-btn, .cookie-btn {
  transition: background 0.14s, color 0.14s, box-shadow 0.10s, transform 0.10s;
}
button:active, .cta-btn:active, .cookie-btn:active {
  transform: scale(0.97);
}

/* Focus accessibility */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid #F9A23B;
  outline-offset: 2px;
}

/* =======================================================================
   MISC
   ======================================================================= */
::-webkit-scrollbar {
  background: #EEF6FB;
  width: 8px;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #CEDCE8;
  border-radius: 8px;
}

