/* =========================
  PRISTINE FLAME ELEKTRONIKA 
  Scandinavian Clean Design
  Author: Senior CSS/UI Designer
==========================*/

/* --- RESET & BASE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  background: #FAFAF8;
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #21344B;
  background: #FAFAF8;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 1rem;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; border: none; }
a { color: #21344B; text-decoration: none; transition: color 0.2s; }
a:focus, a:hover { color: #F3B82F; outline: none; }
ul, ol { list-style-position: inside; margin-left: 0; }
button, .button { border: none; background: none; font: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid #E4E6EB; margin: 32px 0; }
.map-placeholder { background: #F9FAFE; border: 1px dashed #E4E6EB; padding: 32px 0; border-radius: 18px; color: #7C858F; text-align: center; font-size: 1rem; margin-top: 8px; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; line-height: 1.2; color: #21344B; }
h1 { font-size: 2.2rem; margin-bottom: 16px; }
h2 { font-size: 1.7rem; margin-bottom: 12px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }
h4 { font-size: 1rem; margin-bottom: 8px; }
p, li { font-size: 1rem; color: #31425B; }
li { margin-bottom: 8px; }
strong { font-weight: 600; color: #21344B; }
blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  color: #21344B;
  background: #FAFAF8;
  border-left: 4px solid #F3B82F;
  padding: 14px 22px;
  margin: 0 0 8px 0;
}

@media (min-width: 500px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.3rem; }
}
@media (min-width: 992px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.4rem; }
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  width: 100%;
}

/* --- HEADER & NAV --- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #E4E6EB;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  position: relative;
  box-shadow: 0 8px 24px 0 rgba(33,52,75,0.04);
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header img {
  height: 42px;
  width: auto;
  margin-right: 24px;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 12px;
  color: #21344B;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}
nav a:hover, nav a.active, nav a:focus {
  background: #F3B82F;
  color: #fff;
  outline: none;
}
.button.primary {
  background: #21344B;
  color: #fff;
  border-radius: 22px;
  padding: 11px 28px;
  font-size: 1.03rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 10px 0 rgba(33,52,75,0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.14s;
  margin-left: 18px;
  letter-spacing: 0.02em;
}
.button.primary:hover, .button.primary:focus {
  background: #2c4e7e;
  color: #F3B82F;
  box-shadow: 0 4px 16px 0 rgba(33,52,75,0.13);
}
.button.secondary {
  background: #F3B82F;
  color: #21344B;
  border-radius: 22px;
  padding: 11px 28px;
  font-size: 1.03rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 1px 8px 0 rgba(33,52,75,0.07);
  transition: background 0.14s, color 0.13s, box-shadow 0.12s;
  margin-top: 10px;
  letter-spacing: 0.02em;
}
.button.secondary:hover, .button.secondary:focus {
  background: #21344B;
  color: #fff;
  box-shadow: 0 3px 14px 0 rgba(33,52,75,0.08);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3B82F;
  color: #21344B;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 150;
  font-size: 2rem;
  font-weight: bold;
  border: none;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 2px 10px 0 rgba(33,52,75,0.13);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #21344B;
  color: #F3B82F;
  outline: none;
}
.mobile-menu {
  position: fixed;
  z-index: 3000;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  box-shadow: 0 0 44px 0 rgba(33,52,75,0.13);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-105%);
  opacity: 0;
  transition: transform 0.37s cubic-bezier(0.55,0,0.1,1), opacity 0.37s cubic-bezier(0.55,0,0.1,1);
  padding: 32px 24px 16px 32px;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: #F3B82F;
  color: #21344B;
  border: none;
  font-size: 2.2rem;
  border-radius: 50%;
  padding: 0 0.3em;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 22px;
  margin-right: 8px;
  box-shadow: 0 2px 16px 0 rgba(33,52,75,0.13);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #21344B;
  color: #F3B82F;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 12px;
}
.mobile-nav a {
  font-size: 1.15rem;
  padding: 12px 0 12px 0;
  border-radius: 8px;
  color: #21344B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F3B82F;
  color: #fff;
  outline: none;
}

@media (max-width: 992px) {
  header .container nav,
  header .container .button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none!important;
  }
}

/* --- HERO SECTION --- */
.hero {
  background: #F9FAFE;
  padding: 64px 0 60px 0;
  margin-bottom: 60px;
}
.hero .container { align-items: center; }
.hero .content-wrapper {
  align-items: flex-start;
  text-align: left;
  gap: 30px;
  max-width: 650px;
  margin: 0 auto;
}
.hero h1 {
  color: #21344B;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.hero p {
  margin-bottom: 22px;
  color: #31425B;
}
.hero .button { margin-top: 8px; }

/* --- COMMON FLEX SECTIONS --- */
.features {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(33,52,75,0.06);
  margin-bottom: 60px;
}
.features .content-wrapper > h2 {
  margin-bottom: 6px;
}
.features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
  margin-top: 10px;
  list-style: none;
}
.features ul li {
  background: #F9FAFE;
  border-radius: 15px;
  box-shadow: 0 1px 8px 0 rgba(33,52,75,0.03);
  padding: 28px 22px 18px 22px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  min-width: 195px;
  max-width: 310px;
  margin-bottom: 20px;
  border: 1px solid #F6F7FB;
  transition: box-shadow 0.18s, transform 0.15s;
}
.features ul li:hover {
  box-shadow: 0 4px 20px 0 rgba(33,52,75,0.11);
  transform: translateY(-2px) scale(1.015);
  border-color: #F3B82F;
}
.features ul li img {
  width: 40px; height: 40px;
  margin-bottom: 3px;
}
.features ul li h3 {
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.features ul li p {
  font-size: 0.98rem;
  color: #495872;
}

/* --- SERVICES SECTION --- */
.services {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 3px 16px 0 rgba(33,52,75,0.05);
  margin-bottom: 60px;
}
.services .content-wrapper > h2,
.services .content-wrapper > h1 {
  margin-bottom: 15px;
}
.services ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin: 10px 0 16px 0;
  list-style: none;
}
.services ul li {
  background: #F9FAFE;
  border-radius: 17px;
  margin-bottom: 20px;
  padding: 26px 18px 18px 18px;
  box-shadow: 0 1px 7px 0 rgba(33,52,75,0.03);
  flex: 1 1 220px;
  min-width: 170px;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  border: 1px solid #F6F7FB;
  transition: box-shadow 0.15s, border 0.11s, transform 0.13s;
}
.services ul li:hover {
  box-shadow: 0 4px 20px 0 rgba(33,52,75,0.10);
  border-color: #F3B82F;
  transform: translateY(-1px) scale(1.01);
}
.services ul li img {
  width: 36px; height: 36px;
}
.services ul li h3 {
  font-size: 1.08rem;
  margin-bottom: 5px;
}
.service-price {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  color: #F3B82F;
  font-weight: 600;
  margin-top: 5px;
  letter-spacing: 0.01em;
}
.services .button.secondary {
  margin-left: 0;
}

/* --- TESTIMONIALS --- */
.testimonials {
  background: #F9FAFE;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(33,52,75,0.05);
  margin-bottom: 60px;
}
.testimonials .content-wrapper { gap: 24px; }
.testimonials h2 {text-align: left; margin-bottom: 4px;}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px 18px 22px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 10px 0 rgba(33,52,75,0.08);
  border: 1px solid #E4E6EB;
  min-width: 240px;
  max-width: 570px;
  color: #21344B;
  transition: box-shadow 0.17s, border 0.11s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px 0 rgba(33,52,75,0.13);
  border-color: #F3B82F;
}
.testimonial-name {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  color: #31425B;
  margin-top: 1px;
}

/* --- CONTACT, TEXT-IMAGE, CONFIRM --- */
.contact .content-wrapper,
.confirmation .content-wrapper {
  align-items: flex-start;
  gap: 24px;
}
.text-section {
  margin-bottom: 16px;
}
.text-section ul, .text-section ol { margin-left: 22px; }
.text-section ul li, .text-section ol li { margin-bottom: 6px; color: #31425B; }
.text-section strong { color: #F3B82F; }
.contact .button.primary, .confirmation .button.secondary {
  margin-top: 20px;
}
.confirmation .content-wrapper ul { margin-top: 10px; margin-bottom: 16px; }
.confirmation .content-wrapper li { margin-bottom: 6px; }

/* --- LEGAL --- */
.legal {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 14px 0 rgba(33,52,75,0.03);
  margin-bottom: 60px;
}
.legal .content-wrapper h1, .legal .content-wrapper h2, .legal .content-wrapper h3 {
  margin-top: 14px;
}
.legal .text-section p, .legal .text-section ul, .legal .text-section li { color: #31425B; }

/* --- TEAM/About --- */
.team .content-wrapper ul {
  margin-top: 10px;
  margin-left: 22px;
  color: #31425B;
  padding-left: 5px;
}
.team .content-wrapper ul li {
  margin-bottom: 6px;
  font-weight: 500;
}
.about .text-section ul {
  margin-left: 18px;
  color: #31425B;
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 1px solid #E4E6EB;
  box-shadow: 0 -1px 12px 0 rgba(33,52,75,0.04);
  padding: 28px 0 18px 0;
  margin-top: 64px;
  width: 100%;
  position: relative;
}
footer .container {
  flex-direction: column;
  gap: 22px;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
  align-items: center;
  justify-content: center;
}
.footer-nav a {
  color: #21344B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 7px;
  transition: background 0.15s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #F3B82F;
  color: #fff;
}
.brand-credits p {
  font-size: 0.88rem;
  color: #7C858F;
  text-align: center;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #21344B;
  box-shadow: 0 -6px 24px 0 rgba(33,52,75,0.15);
  padding: 18px 24px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  z-index: 9999;
  transition: transform 0.35s cubic-bezier(0.55,0,0.1,1), opacity 0.25s;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.cookie-banner .button {
  padding: 8px 22px;
  border-radius: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 2px;
  box-shadow: 0 2px 8px 0 rgba(33,52,75,0.08);
  transition: background 0.14s, color 0.13s, box-shadow 0.13s;
}
.cookie-banner .button.primary {
  background: #21344B;
  color: #fff;
}
.cookie-banner .button.primary:hover,
.cookie-banner .button.primary:focus {
  background: #F3B82F;
  color: #21344B;
}
.cookie-banner .button.secondary {
  background: #F3B82F;
  color: #21344B;
}
.cookie-banner .button.secondary:hover,
.cookie-banner .button.secondary:focus {
  background: #21344B;
  color: #fff;
}
.cookie-banner .button.cookie-settings {
  background: #FAFAF8;
  color: #21344B;
  border: 1px solid #E4E6EB;
}
.cookie-banner .button.cookie-settings:hover {
  background: #F3B82F;
  color: #fff;
}

/* Cookie Modal Popup */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 12000;
  background: rgba(33,52,75,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s cubic-bezier(0.55,0,0.1,1);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 28px 0 rgba(33,52,75,0.18);
  padding: 34px 28px 20px 28px;
  max-width: 420px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 12090;
  animation: cookiePop 0.33s;
}
@keyframes cookiePop {
  0% { opacity: 0; transform: translateY(64px) scale(0.95); }
  70% { opacity: 0.92; transform: translateY(-6px) scale(1.03); }
  100%{ opacity: 1; transform: none; }
}
.cookie-modal h2 {
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 14px;
  font-size: 1rem;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  user-select: none;
}
.cookie-toggle {
  appearance: none;
  width: 32px; height: 18px;
  background: #E4E6EB;
  border-radius: 12px;
  position: relative;
  outline: none;
  transition: background 0.16s;
  cursor: pointer;
  margin-right: 6px;
}
.cookie-toggle:checked {
  background: #F3B82F;
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px 0 rgba(33,52,75,0.08);
  transition: transform 0.15s;
}
.cookie-toggle:checked:before {
  transform: translateX(14px);
}
.cookie-modal .cookie-category[data-essential] label {
  opacity: 0.7;
}
.cookie-modal .cookie-category[data-essential] .cookie-toggle {
  background: #F3B82F;
  pointer-events: none;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding-top: 8px;
}
.cookie-modal .button {
  padding: 7px 18px; border-radius: 15px;
  font-weight: 600;
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 14px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #F3B82F;
  cursor: pointer;
}

/* --- SPACINGS AND FLEX GAPS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 11px 0 rgba(33,52,75,0.08);
  padding: 30px 26px;
  transition: box-shadow 0.14s;
  border: 1px solid #F6F7FB;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(33,52,75,0.13);
  border-color: #F3B82F;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
  .container {
    max-width: 900px;
    padding: 0 12px;
  }
  nav { gap: 12px; }
}
@media (max-width: 768px) {
  .container { max-width: 620px; }
  .content-wrapper {
    gap: 18px;
  }
  .hero {
    padding: 52px 0 44px 0;
  }
  .hero .content-wrapper, .features .content-wrapper, .services .content-wrapper, .contact .content-wrapper {
    max-width: 98vw;
    padding: 0;
  }
  .features ul,
  .services ul {
    flex-direction: column;
    gap: 14px;
  }
  .features ul li, .services ul li {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.97rem;
    padding: 16px 10px 14px 12px;
  }
  .footer-nav { flex-direction: column; gap: 10px; }
  .brand-credits p { font-size: 0.85rem; }
  footer { padding: 20px 0 10px 0; }
  section, .section {
    margin-bottom: 46px;
    padding: 28px 6px;
  }
  .card-container, .content-grid {
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 550px) {
  h1 { font-size: 1.36rem; }
  h2 { font-size: 1.13rem; }
  .button.primary, .button.secondary, .cookie-banner .button { font-size: 0.99rem; padding: 8px 11px; }
  .hero { padding: 30px 0 24px 0; }
}

/* --- SMOOTH INTERACTIONS --- */
.button, .mobile-menu-toggle, .mobile-menu-close, .footer-nav a, nav a {
  transition: background 0.18s, color 0.17s, box-shadow 0.16s, transform 0.10s;
}
.button:active, .mobile-menu-toggle:active, .mobile-menu-close:active {
  transform: scale(0.97);
}
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 7px;
  border: 1px solid #E4E6EB;
  padding: 9px 11px;
  transition: border 0.15s;
  background: #fff;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  border-color: #F3B82F;
  outline: none;
}

/* --- MISC --- */
::-webkit-scrollbar { width: 9px; background: #F9FAFE; }
::-webkit-scrollbar-thumb { background: #F3B82F; border-radius: 8px; }
::-webkit-selection { background: #F3B82F; color: #fff; }

/* --- LOADING, PLACEHOLDER --- */
[aria-busy="true"] { opacity:0.4; pointer-events:none; }

/* --- FONT-FACES: Montserrat & Roboto (load via Google Fonts in HTML) --- */
@font-face {
  font-family: 'Montserrat';
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'), local('Montserrat-Regular');
}
@font-face {
  font-family: 'Roboto';
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular');
}
