/* ================================================================
   Ion Plex – Gradient Modern Style – style.css
   BRAND: Ion Plex | Nowoczesne oświetlenie fasad
   ================================================================== */

/* RESET & BASE ----------------------------------------------------- */
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;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: linear-gradient(120deg, #E3E6F3 0%, #F3F6FF 100%);
  color: #1B255C;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*::-webkit-scrollbar { width: 8px; background: #E3E6F3; }
*::-webkit-scrollbar-thumb { background: #1B255C; border-radius: 4px; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #1B255C;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #FFB700;
  outline: none;
}


/* TYPOGRAPHY ------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #1B255C;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 18px; }
h4 { font-size: 1.2rem; }
p, li, blockquote, dt, dd, span, address {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #252C44;
}
strong {
  font-weight: 700;
  color: #1B255C;
}

blockquote {
  font-style: italic;
  color: #1B255C;
  opacity: 0.85;
}


/* CONTAINER & SECTIONS --------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: linear-gradient(95deg, #FFFFFF 60%, #E3E6F3 100%);
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(27,37,92,0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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


/* HEADER & MAIN NAV ------------------------------------------------ */
header {
  width: 100%;
  background: #FFF;
  box-shadow: 0 2px 24px rgba(27,37,92,0.06);
  border-bottom: 1px solid #E3E6F3;
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 14px 16px;
}

header img[alt="Ion Plex"] {
  max-height: 42px;
  margin-right: 24px;
}

.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 0;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  color: #1B255C;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #E3E6F3;
  color: #FFB700;
}
.main-nav .cta-primary {
  background: #FFB700;
  color: #1B255C;
  font-weight: 600;
  padding: 8px 22px;
  margin-left: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255,183,0,0.12);
  transition: background 0.18s, color 0.18s;
}
.main-nav .cta-primary:hover,
.main-nav .cta-primary:focus {
  background: #1B255C;
  color: #FFB700;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1B255C;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
  z-index: 40;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #E3E6F3;
  color: #FFB700;
}

/* MOBILE NAV ------------------------------------------------------ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #E3E6F3;
  box-shadow: 0 2px 48px 0 rgba(27,37,92,0.12);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.7,.2,.45,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  padding: 40px 24px 24px 24px;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #1B255C;
  margin-bottom: 30px;
  cursor: pointer;
  transition: color .18s;
  padding: 8px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #FFB700; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  padding: 12px 0;
  font-size: 1.1rem;
  color: #1B255C;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #FFB700;
  color: #1B255C;
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 16px;
  }
  header .container {
    padding-left: 6px;
    padding-right: 6px;
  }
}
@media (max-width: 900px) {
  .main-nav a:not(.cta-primary) { font-size: 0.96rem; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
}
@media (max-width: 860px) {
  .main-nav { gap: 7px; }
  .main-nav a { font-size: 0.93rem; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    padding: 13px 6px;
  }
}

/* MAIN & LAYOUT PATTERNS-------------------------------------------- */
main {
  position: relative;
  width: 100%;
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 20px;
  background: linear-gradient(103deg, #FFFFFF 72%, #E3E6F3 100%);
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(27,37,92,0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 600px) {
 section {
    padding: 24px 8px;
    margin-bottom: 32px;
    border-radius: 14px;
  }
  .content-wrapper {
    gap: 21px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 3px 12px 0 rgba(27,37,92,0.05);
  position: relative;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 230px;
  flex: 1 1 270px;
}
.card:hover {
  box-shadow: 0 7px 32px 0 rgba(27,37,92,0.10);
  transform: translateY(-3px) scale(1.012);
}

.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;
  margin-bottom: 20px;
  background: #F8FAFF;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(27,37,92,0.07);
  transition: box-shadow .18s, background .18s;
  border: 1px solid #E3E6F3;
}
.testimonial-card blockquote {
  color: #1B255C;
  font-size: 1.09rem;
  max-width: 410px;
}
.testimonial-card .text-section {
  margin-left: 0;
  font-size: 1rem;
}
.testimonial-card:hover {
  background: #E3E6F3;
  box-shadow: 0 3px 16px 0 rgba(27,37,92,0.11);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 16px 9px;
}

ul, ol {
  margin-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
ul.contact-details li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1rem;
}
ul.contact-details img {
  max-width: 26px;
}


/* CTAs, BUTTONS & INTERACTIONS ------------------------------------- */
.cta-primary, .cta-secondary a, .cta-primary a {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  background: linear-gradient(90deg, #FFB700 0%, #FFDD96 90%);
  color: #1B255C;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  margin-top: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 20px 0 rgba(255,183,0,0.10);
  transition: background .18s, color .18s, box-shadow .18s, transform .16s;
  text-align: center;
  cursor: pointer;
}
.cta-primary:hover, .cta-primary:focus, .cta-secondary a:hover, .cta-secondary a:focus {
  background: #1B255C;
  color: #FFB700;
  box-shadow: 0 8px 32px 0 rgba(27,37,92,0.14);
  outline: none;
  transform: translateY(-2px) scale(1.014);
}
.cta-secondary a {
  display: inline-block;
  background: transparent;
  color: #1B255C;
  border: 2px solid #FFB700;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 7px;
  font-size: 1.07rem;
  box-shadow: none;
  margin: 6px 0 0 0;
  transition: all .18s;
}


/* FOOTER ----------------------------------------------------------- */
footer {
  background: linear-gradient(90deg, #E3E6F3 90%, #F4F6FE 100%);
  padding: 36px 0 20px 0;
  border-top: 1px solid #E3E6F3;
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1B255C;
  font-size: 1.02rem;
  font-weight: 500;
  padding: 5px 5px;
  border-radius: 5px;
  transition: background .15s, color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #FFB700;
  color: #FFF;
}
.footer-legal {
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #777D95;
}
.footer-legal a {
  color: #1B255C;
  font-size: 1rem;
  transition: color .15s;
}
.footer-legal a:hover, .footer-legal a:focus { color: #FFB700; }
.footer-contact {
  font-size: 0.94rem;
  color: #252C44;
}
.footer-social {
  display: flex;
  gap: 13px;
  margin-top: 8px;
  align-items: center;
}
.footer-social a img { max-width: 28px; transition: filter .19s; }
.footer-social a:hover img { filter: brightness(1.5) drop-shadow(0 0 2px #FFB700); }


/* UTILITY CLASSES ------------------------------------------------- */
.text-section {
  font-size: 1.02rem;
  color: #252C44;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .container { max-width: 98vw; padding-left: 7px; padding-right: 7px; }
}
@media (max-width: 768px) {
  .footer-nav, .footer-legal, .footer-contact, .footer-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .container { padding-left: 5px; padding-right: 5px; }
}
@media (max-width: 600px) {
  .footer-nav { gap: 9px; }
  .footer-social { gap: 11px; }
}


/* FAQ / DEFINITION LISTS ------------------------------------------- */
dl {
  width: 100%;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #1B255C;
  margin-bottom: 2px;
  font-size: 1.1rem;
}
dd {
  margin-bottom: 15px;
  margin-left: 15px;
  color: #252C44;
  font-size: 1rem;
}


/* RESPONSIVE: FLEX DIRECTION SWITCHERS ---------------------------- */
@media (max-width: 900px) {
  .content-grid, .card-container, .feature-item {
    flex-direction: column !important;
    gap: 20px !important;
  }
}
@media (max-width: 768px) {
  .text-image-section, .content-grid, .card-container, .feature-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 17px !important;
  }
}


/* ANIMATIONS & HIGHLIGHTS ------------------------------------------ */
.section, .testimonial-card, .card, .cta-primary, .cta-secondary a {
  transition: box-shadow .23s cubic-bezier(.36,.53,.51,.93), background .23s, color .16s, transform .15s;
}

h2::after {
  display: block;
  content: '';
  width: 64px;
  height: 3px;
  border-radius: 4px;
  margin-top: 9px;
  background: #FFB700;
  opacity: .84;
}


/* COOKIE CONSENT BANNER --------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: #FFF;
  border-top: 2px solid #E3E6F3;
  box-shadow: 0 -2px 18px 0 rgba(27,37,92,0.07);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  animation: fadeInBanner 0.5s;
  font-size: 1rem;
}
.cookie-banner p {
  margin: 0;
  flex: 1 1 auto;
  color: #1B255C;
}
.cookie-buttons {
  display: flex;
  gap: 15px;
}

.cookie-banner .cookie-btn, .cookie-banner .cookie-settings-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 9px 20px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background .16s, color .16s, box-shadow .16s;
  margin: 0 2px;
}
.cookie-banner .cookie-btn.accept {
  background: #FFB700;
  color: #1B255C;
  box-shadow: 0 2px 8px 0 rgba(255,183,0,0.13);
}
.cookie-banner .cookie-btn.accept:hover, .cookie-banner .cookie-btn.accept:focus {
  background: #1B255C;
  color: #FFB700;
}
.cookie-banner .cookie-btn.reject {
  background: #E3E6F3;
  color: #1B255C;
  border: 1px solid #E3E6F3;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: #1B255C;
  color: #E3E6F3;
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  color: #252C44;
  border: 1px solid #FFB700;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: #FFB700;
  color: #1B255C;
}
@media (max-width: 650px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 15px; padding: 16px 9px; font-size: 0.96rem; }
  .cookie-buttons { gap: 11px; }
}

@keyframes fadeInBanner {
  0% { opacity: 0; transform: translateY(45px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* COOKIE MODAL ---------------------------------------------------- */
.cookie-modal-overlay {
  position: fixed; z-index: 2300; left: 0; right:0; top:0; bottom:0;
  background: rgba(30,40,82,0.45);
  display: flex; align-items: center; justify-content: center;
  animation: fadeInModal .2s;
}
.cookie-modal {
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 8px 40px 0 rgba(27,37,92,0.18);
  padding: 36px 28px 28px 28px;
  width: 95vw;
  max-width: 390px;
  display: flex; flex-direction: column;
  gap: 23px;
  position: relative;
  animation: slideModalIn .28s cubic-bezier(.36,.53,.51,.93);
}

.cookie-modal h3 { font-size: 1.25rem; margin-bottom: 7px; }
.cookie-category {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.cookie-category label {
  font-size: 1.01rem;
  font-family: 'Montserrat';
  color: #1B255C;
}
.cookie-category input[type='checkbox'] {
  accent-color: #FFB700;
  width: 21px; height: 21px;
}
.cookie-modal .cookie-save {
  background: #FFB700;
  color: #1B255C;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 1rem;
  margin-top: 8px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.cookie-modal .cookie-save:hover, .cookie-modal .cookie-save:focus {
  background: #1B255C;
  color: #FFB700;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 16px;
  top: 12px;
  background: none;
  border: none;
  font-size: 1.46rem;
  color: #AAA;
  cursor: pointer;
  transition: color .18s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus { color: #FFB700; }

@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes slideModalIn {
  0% { opacity: 0; transform: translateY(42px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ACCESSIBILITY: FOCUS VISIBLE ------------------------------------- */
a:focus-visible, button:focus-visible, .cta-primary:focus-visible {
  outline: 2px solid #FFB700;
  outline-offset: 2px;
}

/* PRINT MINIMIZATION ---------------------------------------------- */
@media print {
  header, footer, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  section, .section, main, .container { box-shadow: none !important; background: #FFF !important; }
}
