/* --- CSS RESET & BASE STYLES --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #2E3A4F;
  background: #fffbe9;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
a {
  color: #167264;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #F3C847;
  outline: none;
}
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 20px;
}
li + li {
  margin-top: 12px;
}
button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}
input, select {
  font-family: inherit;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1.5px solid #e1dac8;
  font-size: 1rem;
  margin-bottom: 12px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #193752;
}
h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 20px; }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 16px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
h4 { font-size: 1.1rem; font-weight: 500; margin-bottom: 10px; }
p {
  font-size: 1.07rem;
  margin-bottom: 16px;
  color: #374868;
}
strong {
  font-weight: 600;
  color: #193752;
}

.text-section {
  margin-bottom: 20px;
}

/* --- FLEXBOX LAYERS & CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 32px rgba(243,200,71,0.07), 0 2px 8px rgba(25,55,82,0.09);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fffef9;
  border-radius: 22px;
  margin-bottom: 20px;
  box-shadow: 0 2.5px 18px rgba(243,200,71,0.09);
  padding: 28px 26px 24px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 240px;
}
.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;
  padding: 20px;
  background: #FDF6E5;
  border-radius: 22px;
  min-width: 242px;
  box-shadow: 0 2.5px 20px rgba(25,55,82,0.07), 0 1.2px 9px rgba(243,200,71,0.08);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1.5px 7px rgba(22,114,100,0.07);
  padding: 18px 18px 18px 20px;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- HEADER & NAVIGATION --- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFEFC2;
  box-shadow: 0 4px 22px rgba(243,200,71,0.11);
  padding: 14px 18px;
  position: relative;
  z-index: 30;
}
header > a img {
  height: 38px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-size: 1.04rem;
  color: #193752;
  font-weight: 500;
  border-radius: 14px;
  padding: 6px 15px;
  transition: background 0.17s, color 0.17s;
}
header nav a:hover,
header nav a:focus {
  background: #f8e9b2;
  color: #167264;
}
.btn-primary {
  background: #F3C847;
  color: #193752;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  padding: 12px 29px;
  border-radius: 22px;
  box-shadow: 0 1.5px 10px rgba(243,200,71,0.16);
  margin-left: 16px;
  border: none;
  font-size: 1.08rem;
  display: inline-block;
  transition: background 0.19s, box-shadow 0.19s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #FFE36B;
  color: #167264;
  box-shadow: 0 3.5px 18px rgba(243,200,71,0.30);
  outline: none;
}
.mobile-menu-toggle {
  display: none;
  background: #F3C847;
  color: #193752;
  border: none;
  padding: 8px 16px;
  border-radius: 18px;
  font-size: 1.35rem;
  margin-left: 18px;
  transition: background 0.15s;
  z-index: 105;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #FFE36B;
  color: #167264;
  outline: none;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  background: #FFEFC2;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: -6px 3px 34px rgba(25,55,82,0.18);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.78,-0.03,.26,.90);
  padding: 28px 22px 16px 32px;
}
.mobile-menu.open {
  transform: translateX(-100vw);
  left: 0;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #167264;
  background: none;
  border: none;
  padding: 4px 14px 6px 0;
  align-self: flex-end;
  margin-bottom: 18px;
  border-radius: 12px;
  transition: background 0.17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #fffbc4;
  color: #f18607;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.33rem;
  color: #193752;
  padding: 13px 0 13px 10px;
  border-radius: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F3C847;
  color: #167264;
}

/* Hide nav and show burger on mobile */
@media (max-width: 992px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}
/* --- MAIN, SECTIONS, CARDS --- */
main {
  min-height: 65vh;
}
section {
  margin-bottom: 58px;
}
section > .container > h1, section > .container > h2 {
  margin-bottom: 30px;
}
section > .container > .content-wrapper > ul,
section > .container > .content-wrapper > ol {
  width: 100%;
  background: none;
  padding-left: 1.25em;
  font-size: 1.09rem;
}
ul li, ol li {
  margin-bottom: 9px;
}
.card img, .feature-item img {
  margin-bottom: 14px;
  border-radius: 12px;
  background: #fffbe9;
}

.blog-teaser {
  background: #FAEBA7;
  border-radius: 18px;
  box-shadow: 0 3px 22px rgba(239,192,64,0.08);
  padding: 22px 20px 18px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.blog-teaser h2 {
  font-size: 1.28rem;
  margin-bottom: 6px;
  color: #167264;
}
.blog-teaser a {
  color: #193752;
  font-weight: 600;
  font-size: 1.07rem;
  margin-top: 3px;
  display: inline-block;
  border-radius: 9px;
  transition: background 0.15s, color 0.15s;
}
.blog-teaser a:hover, .blog-teaser a:focus {
  background: #F3C847;
  color: #193752;
  outline: none;
}

.map-snippet {
  margin-top: 12px;
  background: #FFEFC2;
  border-radius: 18px;
  box-shadow: 0 1.2px 11px rgba(22,114,100,0.06);
  padding: 10px;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  border-left: 7px solid #167264;
  box-shadow: 0 3.5px 16px rgba(25,55,82,0.10), 0 1.3px 9px rgba(243,200,71,0.10);
  color: #263040;
  background: #fffbe9;
  min-width: 265px;
  max-width: 500px;
}
.testimonial-card p {
  color: #222e46;
  font-size: 1.07rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #193752;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}

/* --- FOOTER --- */
footer {
  background: #FFEFC2;
  padding: 0 0 12px 0;
  box-shadow: 0 -2px 14px rgba(243,200,71,0.07);
}
footer .container {
  padding-top: 23px;
  padding-bottom: 6px;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
footer nav a {
  font-size: 1rem;
  color: #167264;
  padding: 4px 13px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.14s, color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  background: #F3C847;
  color: #193752;
}
footer img {
  height: 34px;
}
footer .text-section p {
  font-size: 0.96rem;
  color: #526170;
  margin-top: 8px;
  margin-bottom: 0;
}

/* --- FAQ ACCORDION (dla-firm.html) --- */
.faq-accordion > div {
  background: #fffbe9;
  border-radius: 14px;
  box-shadow: 0 2px 9px rgba(22,114,100,0.07);
  padding: 18px 24px;
  transition: box-shadow 0.20s;
}
.faq-accordion > div:hover, .faq-accordion > div:focus-within {
  box-shadow: 0 5px 20px rgba(22,114,100,0.19);
}
.faq-accordion h3 {
  font-size: 1.11rem;
  color: #167264;
  margin-bottom: 6px;
}
.faq-accordion p {
  margin-bottom: 0;
}

/* --- FORMS --- */
input[type="text"], select {
  background: #fff;
  border: 1.5px solid #d2caae;
  color: #222e46;
  margin-bottom: 10px;
}
input[type="text"]:focus, select:focus {
  border: 1.5px solid #167264;
  outline: none;
  background: #FFEFC2;
}
label {
  margin-bottom: 2px;
  color: #167264;
  font-weight: 500;
  font-size: 1.02rem;
}

/* --- SPACING --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
/* Minimum 20px margin between content cards/sections */
section + section, .card + .card, .testimonial-card + .testimonial-card {
  margin-top: 24px;
}

/* --- TRANSITIONS & MICROS --- */
.card, .feature-item, .testimonial-card, .faq-accordion > div, .blog-teaser {
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover, .faq-accordion > div:hover, .blog-teaser:hover {
  box-shadow: 0 10px 32px rgba(22,114,100,0.14), 0 4px 11px rgba(25,55,82,0.12);
  transform: translateY(-4px) scale(1.0135);
}
.btn-primary {
  transition: background 0.16s, color 0.16s, box-shadow 0.21s, transform 0.14s;
}
.btn-primary:active {
  transform: scale(0.97);
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(255, 239, 194, 0.98);
  box-shadow: 0 -2.5px 18px rgba(25,55,82,0.09);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px 12px 24px 12px;
  z-index: 140;
  font-size: 1.04rem;
  border-radius: 18px 18px 0 0;
  animation: cookieBannerSlidein .77s cubic-bezier(.6,.01,.19,.98);
}
@keyframes cookieBannerSlidein {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  margin-left: 7px;
  margin-right: 7px;
  border-radius: 14px;
  border: none;
  background: #F3C847;
  color: #193752;
  font-weight: 600;
  padding: 11px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.16s, color 0.16s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #FFE36B;
  color: #167264;
}
.cookie-banner .cookie-settings {
  background: #fff;
  color: #167264;
  border: 1.5px solid #F3C847;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #FFF6CB;
  color: #167264;
  border-color: #167264;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: rgba(25, 55, 82, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.21s;
}
@keyframes fadeInOverlay {
  from { opacity: 0 }
  to { opacity: 1 }
}
.cookie-modal {
  background: #fff;
  min-width: 335px;
  max-width: 97vw;
  border-radius: 19px;
  box-shadow: 0 4.5px 30px rgba(25,55,82,0.22);
  padding: 36px 34px 30px 34px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: dropInModal .33s cubic-bezier(.77,0,.17,1.08);
}
@keyframes dropInModal {
  from { transform: translateY(-60px) scale(.94); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.33rem;
  color: #167264;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fffbe9;
  border-radius: 11px;
  padding: 10px 17px;
  margin-bottom: 14px;
}
.cookie-modal .toggle-switch {
  width: 44px;
  height: 25px;
  border-radius: 13px;
  background: #d8e2d5;
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-modal .toggle-switch input {
  display: none;
}
.cookie-modal .toggle-switch .slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 21px; height: 21px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.17s cubic-bezier(.46,.03,.37,.98), background 0.14s;
  box-shadow: 0 2px 8px rgba(18,94,93,0.15);
}
.cookie-modal .toggle-switch input:checked + .slider {
  left: 21px;
  background: #F3C847;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 15px;
  margin-top: 14px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px; right: 18px;
  font-size: 2.1rem;
  color: #167264;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: #FFEFC2;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 992px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100vw;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .section {
    padding: 26px 8px;
    border-radius: 21px;
  }
}
@media (max-width: 768px) {
  header {
    padding: 10px 7px 10px 10px;
    flex-wrap: wrap;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
    max-width: 100vw;
  }
  .section {
    padding: 18px 2.5vw;
    border-radius: 13px;
  }
  h1 {font-size: 1.63rem; margin-bottom: 12px;}
  h2 {font-size: 1.29rem; margin-bottom: 10px;}
  h3 {font-size: 1.07rem; margin-bottom: 6px;}
  .content-wrapper, .content-grid {
    flex-direction: column;
    gap: 17px;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100vw;
    font-size: 0.97rem;
    padding: 14px 9px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  .card, .feature-item, .blog-teaser {
    min-width: 0;
    padding: 15px 10px 12px 10px;
  }
  .map-snippet {
    padding: 5px;
    border-radius: 7px;
  }
  .btn-primary {
    padding: 12px 19px;
    font-size: 1rem;
    margin-left: 0;
    margin-top: 13px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.98rem;
    padding: 19px 7px 20px 7px;
    border-radius: 9px 9px 0 0;
  }
  .mobile-menu {
    padding-left: 17px;
    padding-right: 7px;
  }
  .cookie-modal {
    padding: 20px 12px 19px 12px;
    min-width: 0;
    border-radius: 11px;
  }
  .cookie-modal .cookie-actions {
    flex-direction: column;
    gap: 11px;
  }
}
@media (max-width: 430px) {
  h1 {font-size: 1.19rem;}
  h2 {font-size: 1.09rem;}
  .btn-primary {font-size: 0.94rem; padding: 10px 10px;}
}

/* --- MISC --- */
::-webkit-scrollbar {
  width: 8px;
  background: #f3e7bb;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #F3C847;
  border-radius: 10px;
}

/* --- UTILITY CLASSES --- */
.mt-36 {margin-top: 36px;}
.mb-32 {margin-bottom: 32px;}
.text-center {text-align: center;}

/* --- END --- */
