/* === CSS RESET, NORMALIZE & BASE === */
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;
}
html {
  box-sizing: border-box; scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #FFFFFF;
  color: #222;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #2D4C74;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #CA7632;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
strong {
  font-weight: 700;
}

/* === COLOR VARIABLES AS FALLBACKS === */
:root {
  --color-primary: #2D4C74;
  --color-accent: #CA7632;
  --color-accent-dark: #9A4E00;
  --color-secondary: #F5F1ED;
  --color-bg: #FFFFFF;
  --color-border: #ECECEC;
  --color-shadow: 0 2px 12px rgba(45,76,116,0.07);
  --color-shadow-card: 0 2px 16px rgba(45,76,116,0.09);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #2D4C74;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.375rem; /* 38px */
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.15;
}
h2 {
  font-size: 1.875rem; /* 30px */
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}
p, li, blockquote {
  font-size: 1rem;
  color: #232323;
  line-height: 1.7;
}
blockquote {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #2D4C74;
  background: #F5F1ED;
  border-left: 3px solid #CA7632;
  padding: 12px 18px;
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  font-style: italic;
  border-radius: 8px;
}

/* === CONTAINER UTILITY === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* === HEADER & NAVIGATION === */
header {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(45,76,116,0.03);
  position: relative;
  z-index: 1002;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75px;
  padding: 0 18px;
  position: relative;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 28px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #2D4C74;
  padding: 10px 0;
  font-weight: 500;
  transition: color 0.18s;
  letter-spacing: 0.01em;
}
.main-nav a:hover, .main-nav a:focus {
  color: #CA7632;
}
header .cta.primary {
  margin-left: 32px;
}
/* Hamburger icon (mobile) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #2D4C74;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 18px;
  z-index: 1102;
  padding: 3px 6px;
  border-radius: 4px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #ECECEC;
}
/* MOBILE NAV OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #FFFFFF;
  z-index: 1500;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 0 0 2000px rgba(45,76,116,0.10);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 22px 12px 0;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #2D4C74;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 3px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #ECECEC;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  margin: 0 0 0 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  color: #2D4C74;
  font-weight: 500;
  padding: 12px 0;
  border-radius: 3px;
  transition: background 0.17s, color 0.18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #F5F1ED;
  color: #CA7632;
}

/* === HERO / PAGE TITLE SECTIONS === */
.hero {
  background: #F5F1ED;
  padding: 60px 0 50px 0;
  margin-bottom: 60px;
}
.hero .container {
  align-items: center;
  text-align: center;
  justify-content: center;
}
.hero h1 {
  color: #2D4C74;
  font-size: 2.5rem;
}
.hero p {
  font-size: 1.12rem;
  max-width: 620px;
  margin: 0 auto 24px auto;
  color: #333;
}
.hero .cta {
  margin: 0 auto;
}

/* === GENERAL SECTION SPACING === */
.section, .features, .services, .benefits, .about, .team, .contact, .cta, .confirmation, .testimonials, .newsletter, .blog-intro, .contact-teaser, .legal {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 600px) {
  .section, .features, .services, .benefits, .about, .team, .contact, .cta, .confirmation, .testimonials, .newsletter, .blog-intro, .contact-teaser, .legal {
    padding: 26px 8px;
    margin-bottom: 36px;
  }
}

/* === FLEXBOX LAYOUT PRESETS REQUIRED === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  flex: 1 1 280px;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: var(--color-shadow-card);
  padding: 28px 22px;
  min-width: 240px;
  transition: box-shadow 0.23s;
  border: 1.5px solid #ECECEC;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(202, 118, 50, 0.09);
  border-color: #CA7632;
}
.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;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: var(--color-shadow-card);
  border: 1.5px solid #ECECEC;
  margin-bottom: 20px;
  flex-direction: column;
  max-width: 600px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: var(--color-shadow-card);
  padding: 24px 18px;
  border: 1.5px solid #ECECEC;
  min-width: 210px;
  max-width: 305px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, border 0.22s;
}
.feature-item:hover {
  box-shadow: 0 4px 18px rgba(45,76,116,0.13);
  border-color: #CA7632;
}

/* == Features Grid for .features & .benefits == */
.features .feature-grid, .benefits ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.features .feature-item {
  flex: 1 1 210px;
}
.benefits ul, .features ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  flex-wrap: wrap;
  gap: 18px;
}
.benefits ul li, .features ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F5F1ED;
  border-radius: 11px;
  padding: 15px 15px;
  color: #27405A;
  margin-bottom: 12px;
  font-size: 1.03rem;
}
.benefits ul li img, .features ul li img {
  height: 28px;
  min-width: 28px;
}

/* === TESTIMONIALS === */
.testimonials {
  background: #F5F1ED;
  border-radius: 16px;
  box-shadow: 0 1px 12px rgba(45,76,116,0.03);
  margin-bottom: 60px;
}
.testimonials .testimonial-card {
  background: #FFF;
  box-shadow: var(--color-shadow-card);
  border: 1.5px solid #ECECEC;
  margin-bottom: 20px;
  color: #1a2433;
}
.testimonials .testimonial-card strong {
  color: #CA7632;
  font-size: 1rem;
}

/* === CTA BUTTONS === */
.cta, .cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  background: #2D4C74;
  color: #FFF;
  cursor: pointer;
  transition: background 0.19s, box-shadow 0.22s;
  box-shadow: 0 2px 8px rgba(45,76,116,0.05);
  text-align: center;
  margin: 10px 0 0 0;
  text-decoration: none;
}
.cta.primary, .cta:hover, .cta:focus {
  background: #CA7632;
  color: #FFF;
  box-shadow: 0 4px 16px rgba(202,118,50,0.11);
}
.cta:focus {
  outline: 2px solid #2D4C74;
}
.cta {
  background: #2D4C74;
  color: #FFF;
}
.cta:active {
  background: #9A4E00;
}

/* === FOOTER === */
footer {
  background: #FFF;
  border-top: 1.5px solid #ECECEC;
  padding: 34px 0 24px 0;
  margin-top: 36px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.footer-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #2D4C74;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 2px 2px;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #CA7632;
}
footer p {
  color: #818181;
  font-size: 0.97rem;
}

/* === BLOG INTRO & NEWSLETTER === */
.blog-intro .text-section, .newsletter .content-wrapper > ul, .about .content-wrapper > ul {
  margin-left: 0;
  padding-left: 0;
}
.blog-intro ul, .newsletter ul {
  padding-left: 1.1em;
}
.blog-intro li, .newsletter li {
  margin-bottom: 10px;
}

/* === CONTACT SECTION === */
.contact .text-section ul {
  list-style: none;
  padding: 0;
}
.contact .text-section li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
  font-size: 1.07rem;
}
.contact .text-section img {
  height: 22px;
  min-width: 22px;
}

/* === GENERIC TEXT SECTION === */
.text-section {
  margin-bottom: 18px;
}
.text-section:last-child {
  margin-bottom: 0;
}

/* === LEGAL & STATIC PAGES === */
.legal h1 {
  font-size: 2rem;
}
.legal h2 {
  font-size: 1.18rem;
  margin-bottom: 9px;
}
.legal ul {
  margin-bottom: 18px;
}
.legal li {
  margin-bottom: 8px;
}

/* === CONFIRMATION/CONTACT TEASER STYLES === */
.confirmation, .contact-teaser {
  background: #F5F1ED;
  border-radius: 12px;
  box-shadow: var(--color-shadow);
  margin-bottom: 60px;
}
.contact-teaser img {
  height: 20px;
  margin-right: 10px;
}
.confirmation ul {
  margin-top: 8px;
}
.confirmation li {
  margin-bottom: 11px;
}

/* === UTILITIES === */
.hide-on-mobile { display: block !important; }
.hide-on-desktop { display: none !important; }

/* === RESPONSIVE DESIGN === */
@media (max-width: 1100px) {
  .container { max-width: 96vw; }
}
@media (max-width: 880px) {
  .feature-item { min-width: 150px; }
  .features .feature-grid, .benefits ul {
    gap: 12px;
  }
}
@media (max-width: 850px) {
  .main-nav {
    gap: 20px;
  }
  header .cta.primary {
    margin-left: 12px;
  }
}
@media (max-width: 860px) {
  header .container {
    flex-direction: row;
    gap: 6px;
  }
  .main-nav { gap: 14px; }
  .cta.primary { margin-left: 8px; }
}
@media (max-width: 740px) {
  .main-nav, header .cta.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    min-height: 62px;
  }
}
@media (max-width: 714px) {
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .content-grid {
    flex-direction: column;
    gap: 15px;
  }
}
@media (max-width: 690px) {
  .testimonials .testimonial-card {
    max-width: 95vw;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 1.13rem;
    margin-bottom: 8px;
  }
  .feature-item {
    min-width: 133px;
    padding: 14px 6px;
  }
  .card {
    padding: 16px 5px;
    min-width: 130px;
  }
}
@media (max-width: 540px) {
  .content-wrapper {
    gap: 14px;
  }
  .features .feature-grid, .benefits ul {
    gap: 7px;
  }
  .testimonials, .confirmation, .contact-teaser {
    padding: 12px 3px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* === ANIMATIONS & TRANSITIONS === */
.card, .feature-item, .testimonial-card, .cta, .mobile-menu, .mobile-menu-toggle, .mobile-menu-close {
  transition: box-shadow 0.18s, border 0.18s, transform 0.18s, color 0.18s, background 0.18s;
}
.mobile-menu {
  transition: transform 0.38s cubic-bezier(.77,0,.18,1);
  /* forcibly moved for micro-interaction */
  will-change: transform;
}

/* === FOCUS STATES === */
a:focus, button:focus, .cta:focus {
  outline: 2px solid #CA7632;
  outline-offset: 1.5px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 2000;
  background: #FFFFFF;
  border-top: 1.5px solid #ECECEC;
  box-shadow: 0 -4px 20px rgba(45,76,116,0.09);
  display: flex;
  align-items: center;
  padding: 18px 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  font-size: 1rem;
  animation: cookieSlideIn 0.5s cubic-bezier(.6,.2,.3,1);
}
.cookie-banner p {
  color: #232323;
  font-size: 1rem;
  margin: 0;
  line-height: 1.45;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner button, .cookie-banner .cta {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 9px 20px;
  border: none;
  background: #2D4C74;
  color: #FFF;
  cursor: pointer;
  margin: 0;
  transition: background 0.18s, color 0.16s;
  box-shadow: 0 1px 6px rgba(45,76,116,0.04);
}
.cookie-banner button.accept {
  background: #CA7632;
  color: #FFF;
}
.cookie-banner button.accept:hover, .cookie-banner button.accept:focus {
  background: #9A4E00;
}
.cookie-banner button.reject {
  background: #ECECEC;
  color: #2D4C74;
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: #F5F1ED;
  color: #2D4C74;
}
.cookie-banner .cookie-settings-btn {
  background: #2D4C74;
  color: #FFF;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: #CA7632;
  color: #FFF;
}
/* Animation */
@keyframes cookieSlideIn {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(45,76,116,0.20);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFade 0.28s cubic-bezier(.77,0,.18,1);
}
.cookie-modal-content {
  background: #FFF;
  border-radius: 13px;
  box-shadow: 0 6px 32px rgba(45,76,116,0.12);
  max-width: 98vw;
  width: 400px;
  padding: 32px 28px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h3 {
  font-size: 1.22rem;
  font-weight: bold;
  color: #2D4C74;
  margin-bottom: 8px;
}
.cookie-modal-content .close-modal {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #2D4C74;
  cursor: pointer;
  transition: background 0.18s;
  border-radius: 2px;
}
.cookie-modal-content .close-modal:hover, .cookie-modal-content .close-modal:focus {
  background: #ECECEC;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #ECECEC;
}
.cookie-category:last-child { border-bottom: none; }
.cookie-category label {
  font-size: 1rem;
  color: #2D4C74;
}
.cookie-category input[type='checkbox'] {
  accent-color: #CA7632;
  width: 18px;
  height: 18px;
}
.cookie-category.essential label {
  font-style: italic;
  color: #888;
}
.cookie-category.essential input[type='checkbox'] {
  display: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-actions button, .cookie-modal-actions .cta {
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
@keyframes cookieModalFade {
  from { opacity:0; }
  to { opacity:1; }
}
@media (max-width: 530px) {
  .cookie-modal-content {
    width: 92vw;
    padding: 21px 6px 13px 6px;
  }
}

/* ===== SCROLLBAR STYLES (MINIMAL) ===== */
::-webkit-scrollbar { width: 8px; background: #F5F1ED; }
::-webkit-scrollbar-thumb { background: #ECECEC; border-radius: 6px; }

/* === MISC: HIDE SCROLLBAR FOR MOBILE MENU === */
.mobile-menu {
  overflow-y: auto;
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* === PRINT OVERRIDES === */
@media print {
  header, .mobile-menu, footer, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #FFF; }
}
