/* PearlyWay Polska – CSS Reset, Normalize & Gradient Modern Styles */

/* ==== CSS RESET & NORMALIZATION ==== */
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,
main, 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #264653;
  background: linear-gradient(120deg, #F7F7F7 40%, #A5CA4B 100%);
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #264653;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #A5CA4B;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}
button { cursor: pointer; }

/* ==== BRAND FONTS & HEADINGS ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #264653;
}
h1 { font-size: 2.5rem; line-height: 1.18; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.22; margin-bottom: 20px; }
h3 { font-size: 1.4rem; line-height: 1.22; margin-bottom: 12px; }
h4 { font-size: 1.1rem; line-height: 1.22; }
.subtitle { font-size: 1.25rem; color: #3B5D6D; margin-bottom: 20px; font-weight: 400; font-family: 'Roboto', Arial, sans-serif }
p, ul li, ol li { font-size: 1rem; line-height: 1.7; margin-bottom: 10px; font-family: 'Roboto', Arial, sans-serif; }
strong { font-weight: 600; color: #A5CA4B; }

/* ================= LAYOUT ================== */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: linear-gradient(120deg, #F7F7F7 90%, #A5CA4B 100%);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(37,60,81,0.05);
}

@media (max-width: 900px) {
  .section {
    padding: 32px 8px;
  }
}

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

.text-section, .faq-snippet, .faq-list, .country-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(32,60,81,0.08);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(76,128,77,0.12);
  transform: translateY(-8px) scale(1.025);
}

/* ==== Specific Flex Layout Patterns ==== */
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F7F7F7;
  border-radius: 18px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(37,60,81,0.06);
  transition: box-shadow 0.22s;
  border: 1px solid #e3eae4;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(165,202,75,0.14);
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: #213644;
  margin-bottom: 10px;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-meta .stars {
  color: #A5CA4B;
  font-size: 1rem;
  letter-spacing: 2px;
}

.feature-item, .feature-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-list li, .feature-grid li, .faq-list ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.feature-list img, .feature-grid img, .text-section img {
  width: 32px;
  height: 32px;
  margin-right: 8px;
}

/**** Feature Grid - using flex only ****/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-block: 20px 0;
}
.feature-grid li {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(37,60,81,0.06);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.18s, transform 0.18s;
  margin-bottom: 20px;
  min-width: 180px;
}
.feature-grid li:hover {
  box-shadow: 0 8px 28px rgba(165,202,75,0.13);
  transform: translateY(-4px) scale(1.01);
}

/***** FAQ Lists *****/
.faq-list {
  background: #fafdfe;
  border-radius: 18px;
  box-shadow: 0 1px 5px rgba(37,60,81,0.04);
  padding: 18px 18px 10px 18px;
}
.faq-list h3 { color: #264653; font-size:1.2rem; margin-bottom: 10px; }

/* ================= HEADER & NAV BAR ================== */
header {
  background: linear-gradient(90deg, #264653 60%, #A5CA4B 100%);
  padding: 0 0 0 0;
  box-shadow: 0 8px 32px -18px rgba(38,70,83,0.18);
  position: relative;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  max-width: 1100px;
  margin: 0 auto;
  background: none;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 14px;
  transition: background 0.14s, color 0.14s;
  margin-right: 4px;
}
.main-nav a:last-child { margin-right: 0; }
.main-nav a:hover, .main-nav a:focus {
  background: #A5CA4B;
  color: #264653;
}
.main-nav a.cta-primary {
  background: #A5CA4B;
  color: #264653;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 22px;
  box-shadow: 0 2px 12px rgba(165,202,75,0.15);
  margin-left: 8px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a.cta-primary:hover, .main-nav a.cta-primary:focus {
  background: #F7F7F7;
  color: #264653;
}
.main-nav img {
  height: 42px;
  margin-right: 22px;
}

/**** HIDE .main-nav ON MOBILE, SHOW .mobile-menu-toggle ****/
@media (max-width: 1050px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 13px 0;
  }
  .main-nav a {
    font-size: 0.97rem;
    padding: 6px 11px;
  }
}
@media (max-width: 850px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 851px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/**** Hamburger Menu Button ****/
.mobile-menu-toggle {
  background: #A5CA4B;
  color: #264653;
  border: none;
  border-radius: 16px;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 24px;
  top: 14px;
  z-index: 52;
  box-shadow: 0 3px 16px rgba(76,128,77,0.13);
  transition: background 0.13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F7F7F7;
}

/**** Mobile Menu Overlay ****/
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(115deg, #264653 90%, #A5CA4B 100%);
  z-index: 1010;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.33s cubic-bezier(0.53,0,0.3,1), opacity 0.24s;
}
.mobile-menu.active {
  transform: translateX(0%);
  opacity: 1;
}
.mobile-menu-close {
  background: #fff;
  color: #264653;
  border-radius: 18px;
  border: none;
  font-size: 2.3rem;
  padding: 5px 18px;
  position: absolute;
  top: 20px; right: 24px;
  z-index: 20;
  box-shadow: 0 3px 12px rgba(76,128,77,0.13);
  transition: background 0.13s, color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #A5CA4B;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 110px 34px 34px 34px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 8px;
  width: 100%;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A5CA4B;
  color: #264653;
}

/**** Force mobile menu scrolling on small screens ****/
@media (max-width: 500px) {
  .mobile-menu {
    padding-top: 0px;
  }
  .mobile-nav {
    padding: 72px 14px 24px 14px;
    gap: 16px;
  }
  .mobile-menu-close {
    font-size: 2rem;
    top: 12px; right: 14px;
  }
}

/* ================= BUTTONS & CTA STYLES ================== */
.cta-primary, .cta-secondary {
  display: inline-block;
  text-align: center;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 1.12rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-top: 10px;
  border: none;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 12px rgba(37,60,81,0.06);
  background: #A5CA4B;
  color: #264653;
  transition: background 0.13s, color 0.13s, transform 0.18s, box-shadow 0.16s;
}
.cta-secondary {
  background: #fff;
  color: #264653;
  border: 2px solid #A5CA4B;
  margin-left: 10px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #264653;
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 20px rgba(165,202,75,0.15);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #A5CA4B;
  color: #fff;
  transform: translateY(-3px) scale(1.03);
}

button.cta-primary, button.cta-secondary {
  width: auto;
  min-width: 140px;
}

/**** Accessibility focus outlines ****/
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: 2px dashed #A5CA4B;
  outline-offset: 2px;
}

/**** Card content layouts ****/
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/**** Social Links ****/
.social-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 26px 0 0 0;
}
.social-links a {
  background: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 8px rgba(38,70,83,0.08);
  transition: background 0.12s, box-shadow 0.15s;
}
.social-links a:hover, .social-links a:focus {
  background: #A5CA4B;
  box-shadow: 0 4px 16px rgba(165,202,75,0.12);
}

/**** Footer ****/
footer {
  background: #264653;
  color: #fff;
  padding: 40px 0 22px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-radius: 24px 24px 0 0;
  margin: 60px 0 0 0;
}
.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-links a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.93;
  transition: opacity 0.13s, color 0.13s;
  margin-bottom: 2px;
}
.footer-links a:hover, .footer-links a:focus {
  color: #A5CA4B;
  opacity: 1;
}
.copyright {
  font-size: .95rem;
  opacity: .7;
  margin-top:12px;
}

/**** Utility margin & spacing helpers ****/
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/**** Responsive Spacing Adjustments ****/
@media (max-width: 600px) {
  .section {
    padding: 18px 2px;
    margin-bottom: 35px;
  }
  .content-wrapper {
    gap: 13px;
  }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.25rem; }
  .cta-primary, .cta-secondary { font-size: 1rem; padding: 10px 16px; }
}

/**** Responsive Flex Directions for Text-Image Section ****/
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}

/**** Responsive Feature Grids ****/
@media (max-width: 700px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid li {
    min-width: 0;
    width: 100%;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

/**** Responsive Footer Layout ****/
@media (max-width: 550px) {
  footer {
    padding: 20px 0 16px 0;
    border-radius: 0;
    margin: 40px 0 0 0;
  }
  .footer-links { gap: 16px; }
  .social-links { margin: 20px 0 0 0; }
}

/**** Responsive Tables (not present, but for normalization) ****/
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
td, th {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #E3EAE4;
}

/**** Forms (should it appear) ****/
input, textarea, select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #DADADA;
  background: #fff;
  font-size: 1rem;
  transition: border 0.18s;
  margin-bottom: 16px;
}
input:focus, textarea:focus, select:focus {
  border-color: #A5CA4B;
  outline: none;
}
label {
  margin-bottom: 7px;
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  color: #264653;
}

/**** Misc/Helper Classes ****/
.d-none { display: none !important; }

/**** Micro Interactions ****/
.card, .testimonial-card, .feature-grid li, .cta-primary, .cta-secondary {
  transition: box-shadow 0.12s, transform 0.11s, background 0.11s, color 0.11s;
}

/**** Focused testimonial accessibility ****/
.testimonial-card:focus-within {
  border-color: #A5CA4B;
  box-shadow: 0 4px 32px rgba(165,202,75,0.2);
}

/**** FAQ Accessible Contrast ****/
.faq-list ul li, .country-info {
  color: #27485b;
  background: #F7F7F7;
  border-radius: 8px;
  padding: 7px 12px;
}
.country-info {
  margin-top:8px;
}

/**** Cookie Consent Banner (fixed bottom) ****/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #264653;
  color: #fff;
  z-index: 2222;
  padding: 22px 0 18px 0;
  box-shadow: 0 -2px 18px rgba(37,60,81,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: cookie-slide-in 0.6s cubic-bezier(.3,.7,.4,1) both;
}
@keyframes cookie-slide-in {
  0% { transform: translateY(64px); opacity: 0; }
  100% { transform: translateY(0px); opacity: 1; }
}
.cookie-banner-message {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 5px;
  text-align: center;
  max-width: 92vw;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.cookie-btn {
  padding: 10px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 18px;
  border: none;
  color: #264653;
  background: #A5CA4B;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, transform 0.17s;
  min-width: 120px;
}
.cookie-btn.cookie-reject {
  background: #fff;
  color: #264653;
  border: 2px solid #A5CA4B;
}
.cookie-btn.cookie-settings {
  background: #F7F7F7;
  color: #264653;
  border: 2px solid #A5CA4B;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #264653;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
.cookie-btn.cookie-reject:hover, .cookie-btn.cookie-reject:focus,
.cookie-btn.cookie-settings:hover, .cookie-btn.cookie-settings:focus {
  background: #A5CA4B;
  color: #fff;
}

/**** Cookie Preferences Modal ****/
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38,70,83,0.65);
  z-index: 2224;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 24px;
  padding: 42px 30px 30px 30px;
  width: 100%;
  max-width: 390px;
  box-shadow: 0 8px 60px rgba(38,70,83,0.23);
  color: #264653;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-in 0.4s cubic-bezier(.25,.8,.4,1) both;
}
@keyframes cookie-modal-in {
  0% {transform: translateY(84px) scale(0.94); opacity:0;}
  100% {transform: none; opacity:1;}
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.cookie-modal-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #264653;
}
.cookie-modal-close {
  background: #264653;
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.22rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #A5CA4B;
  color: #264653;
}
.cookie-modal-body {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  margin-bottom: 5px;
  justify-content: space-between;
}
.cookie-category .category-name {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #264653;
}
.cookie-toggle {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #A5CA4B;
  border-radius: 14px;
  position: relative;
  outline: none;
  border: 2px solid #A5CA4B;
  transition: background 0.1s, border 0.13s;
}
.cookie-toggle:checked {
  background: #264653;
  border-color: #264653;
}
.cookie-toggle:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.cookie-toggle:after {
  content: '';
  display: block;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 1px;
  transition: left 0.2s;
  box-shadow: 0 1px 4px rgba(37,60,81,0.11);
}
.cookie-toggle:checked:after {
  left: 20px;
}
.cookie-category .cookie-toggle[disabled] {
  filter: grayscale(0.6);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-btn {
  min-width: 90px;
  padding: 7px 16px;
  font-size: 1.02rem;
}

/**** Cookie Modal Responsive ****/
@media (max-width: 600px) {
  .cookie-modal-dialog {
    max-width: 95vw;
    padding: 28px 7vw 19px 7vw;
  }
}

/**** Accessibility for cookie banner/modal ****/
.cookie-modal-dialog:focus, .cookie-modal-dialog:focus-within {
  outline: 2px solid #A5CA4B;
  outline-offset: 2px;
}

/* ==== END CSS ==== */
