/* =======================================================================
   CSS RESET & NORMALIZE
   ======================================================================= */
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.6;
  background: #F7F5F2;
  color: #20344D;
  min-height: 100vh;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
:focus {
  outline: 2px solid #F4B93F;
  outline-offset: 2px;
}

/* =======================================================================
   FONT IMPORTS
   ======================================================================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #20344D;
  background: #F7F5F2;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #20344D;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.375rem; margin-bottom: 12px; }
h4 { font-size: 1.125rem; margin-bottom: 8px; }

p {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #22334B;
}

strong {
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

/* =======================================================================
   HEADER & NAVIGATION
   ======================================================================= */
header {
  background: #fff;
  border-bottom: 2px solid #E5EAF0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 20px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 20px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #20344D;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #F4B93F;
  border-bottom: 2px solid #F4B93F;
}
.cta-button {
  background: #20344D;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 12px 32px;
  border-radius: 28px;
  box-shadow: 0 4px 24px 0 rgba(32,52,77,0.08);
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.24s;
  cursor: pointer;
  display: inline-block;
  margin-left: 20px;
}
.cta-button.secondary {
  background: #F4B93F;
  color: #20344D;
}
.cta-button:hover, .cta-button:focus {
  background: #fff;
  color: #20344D;
  border: 2px solid #20344D;
  box-shadow: 0 2px 16px 0 rgba(32,52,77,0.10);
}
.cta-button.secondary:hover, .cta-button.secondary:focus {
  background: #ffe3ab;
  color: #20344D;
  border: 2px solid #F4B93F;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #20344D;
  cursor: pointer;
  display: none;
  margin-left: 18px;
  padding: 0 10px;
  transition: color 0.16s;
  z-index: 1202;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #F4B93F;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: #20344D;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 32px;
  padding-left: 28px;
  padding-right: 28px;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(0.77,0,0.175,1);
  z-index: 1201;
  box-shadow: 0 8px 32px rgba(32,52,77,0.17);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  position: absolute;
  right: 23px;
  top: 24px;
  cursor: pointer;
  z-index: 1220;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F4B93F;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 56px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  padding: 15px 0 15px 6px;
  border-radius: 4px;
  transition: background 0.16s, color 0.16s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F4B93F;
  color: #20344D;
}

@media (max-width: 1024px) {
  header .container {
    gap: 14px;
  }
  .main-nav {
    gap: 18px;
  }
  .cta-button {
    margin-left: 8px;
    padding: 10px 22px;
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =======================================================================
   SECTIONS & COMMON LAYOUTS
   ======================================================================= */
main {
  min-height: 60vh;
  margin-bottom: 80px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 24px rgba(32,52,77,0.06);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(32,52,77,0.06);
  padding: 26px 20px 28px 26px;
  flex: 1 1 260px;
  min-width: 260px;
  transition: box-shadow 0.18s, transform 0.175s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 36px rgba(32,52,77,0.13);
  transform: translateY(-4px);
}
.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: #F7F5F2;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(32,52,77,0.10);
  margin-bottom: 24px;
  min-width: 280px;
  max-width: 500px;
  border-left: 5px solid #F4B93F;
}
.testimonial-meta {
  font-size: 1rem;
  color: #20344D;
  display: flex;
  align-items: center;
  gap: 16px;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #233658;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.client-logos, .client-list {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.client-logos img {
  height: 40px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Unordered list bullets: if needed for particular lists */
ul li:before {
  content: '\2022';
  color: #F4B93F;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  position: relative;
  top: 1px;
}
ul, ol {
  margin-left: 24px;
}

/* Specific lists without bullets */
.features ul, .services-overview ul, .about-team ul, .milestones-list, .blog-list ul {
  list-style: none;
  margin-left: 0;
}
.features ul li, .services-overview ul li, .about-team ul li, .milestones-list li, .blog-list ul li {
  background: #F7F5F2;
  border-radius: 8px;
  padding: 12px 20px 12px 56px;
  position: relative;
  margin-bottom: 12px;
  line-height: 1.55;
  font-size: 1.02rem;
  color: #26344B;
  min-height: 46px;
}
.features ul li img, .kontakt-info ul li img {
  position: absolute;
  left: 16px;
  top: 12px;
  width: 26px;
  height: 26px;
}
.services-overview ul h3,
.about-team ul h3,
.case-studies h3,
.blog-list ul h3 {
  font-size: 1.18rem;
  margin-bottom: 7px;
}

.blog-list ul li {
  background: #F7F5F2;
  border: 1px solid #E5EAF0;
  margin-bottom: 14px;
  padding-left: 18px !important;
}
.tag {
  display: inline-block;
  background: #F4B93F;
  color: #20344D;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 10px;
  margin-top: 4px;
}
.featured-post {
  background: #fffbe4;
  border-left: 4px solid #F4B93F;
  border-radius: 6px;
  padding: 18px 22px;
  margin-top: 16px;
  box-shadow: 0 2px 10px rgba(244,185,63,0.06);
}
.featured-post h4 {
  font-size: 1.1rem;
  color: #20344D;
}

/* =======================================================================
   HERO SECTION
   ======================================================================= */
.hero {
  background: linear-gradient(125deg, #F7F5F2 75%, #E5EAF0 100%);
  box-shadow: 0 6px 28px rgba(32,52,77,0.09);
  border-radius: 0 0 28px 28px;
  padding-top: 52px;
  padding-bottom: 44px;
  margin-bottom: 48px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 300px;
}
.hero h1 {
  font-size: 2.7rem;
  color: #20344D;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 24px;
}

/* =======================================================================
   FOOTER
   ======================================================================= */
footer {
  background: #20344D;
  color: #fff;
  padding: 30px 0 0 0;
  width: 100%;
  box-shadow: 0 -3px 24px rgba(32,52,77,0.10);
}
footer .container {
  padding-bottom: 18px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
}
footer a {
  color: #fff;
  transition: color 0.16s;
  font-weight: 600;
}
footer a:hover, footer a:focus {
  color: #F4B93F;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact {
  font-size: 1rem;
  line-height: 1.5;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 7px;
}
.social-links {
  display: flex;
  gap: 18px;
  margin-top: 8px;
}
.social-links img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: border 0.12s;
  background: #fff;
}
.social-links a:hover img,
.social-links a:focus img {
  border: 1px solid #F4B93F;
}

/* =======================================================================
   SECTION MODIFIERS AND UTILITIES
   ======================================================================= */
.text-section {
  max-width: 750px;
}
.credentials-list p {
  font-size: 0.99rem;
}
.milestones-list li {
  background: #E5EAF0;
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 8px 18px;
  color: #20344D;
  font-size: 0.99rem;
  min-width: 180px;
}
.blog-list .categories {
  font-style: italic;
  font-size: 0.99rem;
  color: #765D29;
  margin-top: 9px;
  display: block;
}

/* Cookie policy and GDPR generic list fix */
.cookie-policy ul li,
.gdpr-info ul li {
  background: #F7F5F2;
  border-radius: 8px;
  padding: 12px 20px 12px 20px;
  position: relative;
  margin-bottom: 12px;
  line-height: 1.6;
  color: #26344B;
  font-size: 1.02rem;
  min-height: 20px;
}

/* =======================================================================
   SPACING AND FLEX CONTAINERS (MANDATORY)
   ======================================================================= */
.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; }

/* Ensure at least 20px margin between all content cards/sections */
.section:not(:last-child) { margin-bottom: 60px; }
.card:not(:last-child), .testimonial-card:not(:last-child) { margin-bottom: 24px; }
.content-wrapper > *:not(:last-child) { margin-bottom: 20px; }

/* =======================================================================
   RESPONSIVE DESIGN (MOBILE FIRST)
   ======================================================================= */
@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  section, .section {
    padding: 24px 8px;
    margin-bottom: 38px;
  }
  .content-wrapper {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .card-container, .content-grid, .client-logos, .client-list {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .hero .container {
    flex-direction: column;
    align-items: flex-start;
    min-height: unset;
  }
  .main-nav, .footer-nav {
    flex-direction: column;
    align-items: flex-start;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 480px) {
  body { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
}

/* =======================================================================
   BUTTONS & LINKS INTERACTION
   ======================================================================= */
button,
input[type="button"],
input[type="submit"] {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: #20344D;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 10px 28px;
  border-radius: 24px;
  margin-top: 8px;
  transition: background 0.19s, color 0.18s, box-shadow 0.22s;
}
button:hover, button:focus {
  background: #F4B93F;
  color: #20344D;
}

/* =======================================================================
   COOKIE CONSENT BANNER & MODAL
   ======================================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #20344D;
  color: #fff;
  padding: 26px 18px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 1303;
  box-shadow: 0 -6px 38px rgba(32,52,77,0.13);
  font-size: 1rem;
}
.cookie-banner p {
  margin: 0 0 8px 0;
  color: #fff;
  flex: 1 1 70%;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 23px;
  min-width: 138px;
  border: none;
  cursor: pointer;
  padding: 9px 26px;
  box-shadow: 0 2px 8px rgba(32,52,77,0.08);
  margin: 0;
}
.cookie-banner .accept {
  background: #F4B93F;
  color: #20344D;
  border: 2px solid #F4B93F;
  transition: background 0.13s, color 0.13s;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #fff;
  color: #20344D;
}
.cookie-banner .reject {
  background: #fff;
  color: #20344D;
  border: 2px solid #F4B93F;
  transition: background 0.13s, color 0.13s;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #F4B93F;
  color: #20344D;
}
.cookie-banner .settings {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  transition: background 0.13s, color 0.13s;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #fff;
  color: #20344D;
}

/* Cookie consent modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32, 52, 77, 0.79);
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #20344D;
  border-radius: 18px;
  box-shadow: 0 12px 38px rgba(32,52,77,0.21);
  padding: 36px 32px 28px 32px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  max-height: 89vh;
}
.cookie-modal h2 {
  color: #20344D;
  margin-bottom: 9px;
  font-size: 1.3rem;
}
.cookie-modal label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 11px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #F4B93F;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  margin-right: 7px;
}
.cookie-modal-category {
  margin-bottom: 16px;
  color: #20344D;
}
.cookie-modal-category.essential input[type='checkbox'] {
  accent-color: #ccc !important;
  pointer-events: none;
}
.cookie-modal-buttons {
  margin-top: 18px;
  width: 100%;
  display: flex;
  gap: 16px;
}
.cookie-modal .cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 10px 26px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  margin-right: 9px;
  background: #F4B93F;
  color: #20344D;
  box-shadow: 0 2px 12px rgba(32,52,77,0.10);
  transition: background 0.13s, color 0.13s;
}
.cookie-modal .cookie-btn.cancel {
  background: #fff;
  color: #20344D;
  border: 2px solid #20344D;
}
.cookie-modal .cookie-btn.cancel:hover {
  background: #f2f2f7;
  color: #20344D;
}
.cookie-modal .cookie-btn.save {
  background: #F4B93F;
  color: #20344D;
  border: 2px solid #F4B93F;
}
.cookie-modal .cookie-btn.save:hover, .cookie-modal .cookie-btn.save:focus {
  background: #ffe3ab;
}
.cookie-modal-close {
  position: absolute;
  top: 20px;
  right: 22px;
  background: none;
  border: none;
  color: #20344D;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 3;
  transition: color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #F4B93F;
}
@media (max-width: 700px) {
  .cookie-modal {
    padding: 22px 10px 18px 10px;
    min-width: 180px;
    max-width: 97vw;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.99rem;
    gap: 9px;
  }
  .cookie-modal-buttons {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
}

/* =======================================================================
   FORM ELEMENTS (FOR FUTURE USE)
   ======================================================================= */
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='number'],
textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: 1.5px solid #E5EAF0;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.16s;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #F4B93F;
}

/* =======================================================================
   ANIMATION UTILITIES
   ======================================================================= */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { transform: translateX(-100vw); }
  to { transform: translateX(0); }
}
@keyframes slideOutLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-100vw); }
}

.section, .card, .testimonial-card, .cta-button, .mobile-menu, .cookie-banner, .cookie-modal {
  animation: fadeInUp 0.5s cubic-bezier(0.66,0,0.45,1) both;
}

.mobile-menu.open {
  animation: slideInLeft 0.4s cubic-bezier(0.66,0,0.35,1) both;
}

.cookie-banner {
  animation: fadeInUp 0.5s cubic-bezier(0.77,0,0.175,1) both;
}

/* =======================================================================
   OVERRIDES & MISCELLANEOUS
   ======================================================================= */
::-webkit-scrollbar { width: 9px; background: #e8ecf0; }
::-webkit-scrollbar-thumb { background: #bbc5d6; border-radius: 7px; }

/* Helper classes */
.hide { display: none !important; }
.show { display: block !important; }

/* Accessibility: Ensure high contrast in testimonials/cards */
.testimonial-card, .testimonial-meta {
  color: #20344D !important;
  background: #F7F5F2 !important;
}

/* Toast notification for confirmation, etc. */
.toast {
  position: fixed;
  bottom: 14px;
  right: 18px;
  background: #F4B93F;
  color: #20344D;
  padding: 18px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(32,52,77,0.18);
  font-weight: 700;
  font-size: 1rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}
.toast.show {
  opacity: 1;
  pointer-events: auto;
}
