/* style.css – EnergiaAktywna soft pastel flexbox theme */

/* ----------- CSS Reset & Normalize ----------- */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, figure, blockquote {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}

body {
  background: #F5F7F9;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #27345A;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-color: #F8FAFB;
}

:root {
  /* Brand and soft pastel palette */
  --primary: #143A71;
  --secondary: #31A366;
  --accent: #F4F7F8;
  --pastel-blue: #C2D7F5;
  --pastel-green: #D6F5E2;
  --pastel-pink: #FAD4DF;
  --pastel-yellow: #FFF4CC;
  --pastel-violet: #E4D9F7;
  --text-main: #27345A;
  --text-secondary: #4B5578;
  --surface: #FFFFFF;
  --shadow: 0 4px 16px rgba(44, 96, 160, 0.09);
}

/* ----------- Typography ----------- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, li, dd {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
strong {
  font-weight: 700;
}

/* ----------- Global Containers and Layout ----------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-wrapper {
  margin-bottom: 32px;
  background: transparent;
}

/* ----------- Header & Navigation ----------- */
header {
  background: linear-gradient(90deg, #F4F7F8 60%, #E4D9F7 100%);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 80;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo-link img {
  height: 40px;
}
.main-nav {
  display: flex;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 5px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-blue);
  color: var(--secondary);
}
.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 24px;
  background: linear-gradient(90deg, #E4D9F7 0%, #D6F5E2 100%);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(20, 58, 113, 0.06);
  transition: background 0.24s, box-shadow 0.24s, color 0.2s;
  border: none;
  outline: none;
  cursor: pointer;
  margin-left: 8px;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #D6F5E2 0%, #FAD4DF 100%);
  color: var(--secondary);
  box-shadow: 0 4px 24px rgba(44, 96, 160, 0.16);
}

/* ----------- Mobile Menu ----------- */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 10px;
  padding: 5px 16px;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #E4D9F7 66%, #C2D7F5 100%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(.77,0,.18,1), opacity 0.22s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
  margin-top: 42px;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--primary);
  padding: 10px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.17s;
  min-width: 160px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-blue);
  color: var(--secondary);
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* ----------- Hero Section ----------- */
.hero {
  background: linear-gradient(120deg, #FAD4DF 30%, #C2D7F5 100%);
  padding-top: 56px;
  padding-bottom: 56px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.82);
  border-radius: 36px;
  box-shadow: 0 2px 12px rgba(44, 96, 160, 0.045);
  padding: 38px 24px 30px 24px;
  gap: 18px;
  max-width: 520px;
  margin-bottom: 0;
}
.hero h1 {
  text-align: center;
  color: var(--primary);
  font-size: 2.4rem;
  line-height: 1.15;
}
.hero p {
  text-align: center;
  font-size: 1.12rem;
  margin-bottom: 12px;
}
.hero .cta-btn {
  margin-top: 12px;
}

/* ----------- Features Grid / Cards ----------- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.features-grid > div {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(44,96,160,0.06);
  padding: 28px 22px 22px 22px;
  flex: 1 1 230px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.19s, box-shadow 0.26s;
  margin-bottom: 0; /* Controlled by gap */
}
.features-grid > div:hover {
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 6px 28px rgba(44, 96, 160, 0.16);
}
.features-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
}
.features-grid h3 {
  font-size: 1.09rem;
  color: var(--primary);
  margin-bottom: 8px;
  margin-top: 0;
}
.features-grid p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ----------- Services List ----------- */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
  margin-top: 0;
}
.services-list li {
  background: var(--surface);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(44,96,160,0.06);
  font-size: 1rem;
}
.services-list h3 {
  font-size: 1.02rem;
  margin-bottom: 2px;
}

/* ----------- Steps List ----------- */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 12px 0 18px 0;
  padding-left: 18px;
  font-size: 1rem;
}
.steps-list li::marker {
  color: var(--secondary);
  font-size: 1.1em;
}

/* ----------- Feature Item / List ----------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 28px;
  padding-left: 20px;
}
.feature-list li {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ----------- Testimonials ----------- */
.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px 28px 20px 24px;
  background: linear-gradient(100deg,#FFF4CC 70%, #FAD4DF 100%);
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(44,96,160,0.07);
  min-width: 240px;
  max-width: 340px;
  color: #1C2738;
  transition: box-shadow 0.18s, transform 0.16s;
  margin-bottom: 0; /* Controlled by gap */
  font-size: 1.06rem;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(44,96,160,0.15);
  transform: translateY(-3px) scale(1.025);
}
.testimonial-meta {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--primary);
  margin-top: 5px;
}
.stars {
  font-size: 1.21rem;
  color: #FDB900;
}

/* ----------- Cards and Card Container ----------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
}

/* ----------- Generic Content Grids ----------- */
.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;
}

/* ----------- Sections & Spacing ----------- */
.text-section {
  margin-bottom: 42px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 34px 18px 30px 26px;
}
.benefit-sections {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: 20px;
}
.pricing-highlights {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 22px 0;
  color: var(--secondary);
  font-size: 1rem;
}
.service-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 18px 0;
}
.service-highlights > div {
  background: var(--pastel-blue);
  border-radius: 12px;
  padding: 18px 14px;
  flex: 1 1 170px;
  min-width: 120px;
  text-align: center;
}

/* ----------- Footer ----------- */
footer {
  background: linear-gradient(90deg, #E4D9F7 25%, #D6F5E2 100%);
  padding-top: 44px;
  padding-bottom: 18px;
  margin-top: 40px;
  box-shadow: 0 -2px 12px rgba(44,96,160,0.10);
}
.footer-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}
.footer-brand img {
  height: 44px;
  mix-blend-mode: multiply;
}
.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 1rem;
  color: var(--primary);
  padding: 7px 4px;
  border-radius: 4px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.19s, color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--pastel-pink);
  color: var(--secondary);
}
.footer-meta {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-left: auto;
}

/* ----------- Forms, Tables, etc ----------- */
input, textarea, select {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #D6F5E2;
  border-radius: 6px;
  width: 100%;
  font-size: 1rem;
  margin-bottom: 12px;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
}

/* ----------- Map Placeholder ----------- */
.map-placeholder {
  background: var(--pastel-blue);
  border-radius: 13px;
  padding: 28px 0 22px 0;
  text-align: center;
  color: var(--primary);
  font-size: 1.1em;
  margin: 16px 0 8px 0;
  box-shadow: 0 1px 7px rgba(44,96,160,0.07);
}

/* ----------- Cookie Consent Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: linear-gradient(90deg, #FAD4DF 60%, #D6F5E2 100%);
  box-shadow: 0 -2px 12px rgba(44,96,160,0.12);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 18px 18px 24px;
  font-size: 1.02rem;
  color: var(--primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 20px;
  border-radius: 16px;
  font-size: 0.98rem;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, box-shadow 0.13s;
  border: none;
  margin-bottom: 0;
  cursor: pointer;
}
.cookie-accept {
  background: var(--pastel-green);
  color: var(--primary);
  box-shadow: 0 1px 4px #0001;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--secondary);
  color: #fff;
}
.cookie-reject {
  background: var(--pastel-pink);
  color: var(--primary);
  box-shadow: 0 1px 4px #0001;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #F68383;
  color: #fff;
}
.cookie-settings {
  background: var(--pastel-blue);
  color: var(--primary);
  box-shadow: 0 1px 4px #0001;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--primary);
  color: #fff;
}

/* ----------- Cookie Modal ----------- */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44,96,160,0.16);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px 28px 32px;
  box-shadow: 0 8px 36px rgba(44,96,160,0.19);
  min-width: 320px;
  max-width: 94vw;
  color: var(--primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--secondary);
}
.cookie-modal h2 {
  margin-bottom: 0.4em;
  font-size: 1.28rem;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 20px;
  height: 20px;
}
.cookie-category label {
  font-size: 1.04rem;
  color: var(--text-secondary);
}
.essential-cookies {
  font-style: italic;
  color: var(--text-secondary);
  opacity: 0.82;
}

.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

/* ----------- Responsive ----------- */
@media (max-width: 1200px) {
  .features-grid {
    gap: 16px;
  }
}
@media (max-width: 990px) {
  .features-grid {
    gap: 14px;
  }
  .container {
    padding-left: 8px; padding-right: 8px;
  }
}
@media (max-width: 800px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-meta { margin-left: 0; }
  .features-grid { flex-direction: column; }
}
@media (max-width: 768px) {
  .container {
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .section {
    padding: 32px 6px;
    margin-bottom: 32px;
  }
  .content-wrapper,
  .text-section {
    padding-left: 11px;
    padding-right: 11px;
  }
  .features-grid, .testimonials-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .hero .content-wrapper {
    max-width: 100%;
    padding: 30px 10px 20px 10px;
    border-radius: 22px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .service-highlights {
    flex-direction: column;
    gap: 13px;
  }
  .footer-nav {
    gap: 14px;
  }
  .cookie-modal {
    padding: 24px 7vw 14px 7vw;
  }
  .footer-brand img {
    height: 38px;
  }
}
@media (max-width: 530px) {
  h1 { font-size: 1.39rem; }
  h2 { font-size: 1.08rem; }
  .cookie-modal { min-width: 0; padding: 14px 4vw; }
  .mobile-menu-close { font-size: 1.8rem; margin: 12px 10px 0 0; }
}

/* ----------- Animations & Micro-interactions ----------- */
a, button, .cta-btn {
  transition: color 0.18s, background 0.18s, box-shadow 0.12s, border 0.17s, transform 0.12s;
}
.cta-btn:active { transform: scale(0.97); }
.testimonial-card:active, .features-grid > div:active { transform: scale(0.98); }

/* ----------- Misc ----------- */
::-webkit-scrollbar {
  width: 7px;
  background: #f3f5fb;
}
::-webkit-scrollbar-thumb {
  background: #C2D7F5;
  border-radius: 5px;
}
::-webkit-input-placeholder { color: #B5BFCF; opacity: 1; }
::placeholder { color: #B5BFCF; opacity: 1; }

/* ----------- Utility Classes ----------- */
.hide { display: none !important; }
.flex { display: flex !important; }

/********* End CSS *********/
