/* ========================================================
   CSS RESET & NORMALIZATION (MOBILE-FIRST)
=========================================================== */
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;
  vertical-align: baseline;
  box-sizing: border-box;
  font-family: inherit;
}
html {
  scroll-behavior: smooth;
  font-size: 100%;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #1C344C;
  background-color: #F7F7F9;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
}
*, *:before, *:after {
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
img, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
iframe {
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ==========================================================
   BASE LAYOUTS & CONTAINERS
=========================================================== */
.container {
  width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 1240px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 32px 0 rgba(44, 52, 70, 0.04);
  /* Spacing to create breathing room */
}

/* ==========================================================
   TYPOGRAPHY -- MODERN BOLD STYLE
=========================================================== */
h1, .h1 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  font-size: 2.125rem;
  color: #1C344C;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
@media (min-width: 600px) {
  h1, .h1 {
    font-size: 2.75rem;
  }
}
h2, .h2 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #1C344C;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
@media (min-width: 600px) {
  h2, .h2 {
    font-size: 2rem;
  }
}
h3, .h3 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #1C344C;
  letter-spacing: -0.1px;
  line-height: 1.2;
}
@media (min-width: 600px) {
  h3, .h3 {
    font-size: 1.35rem;
  }
}
p, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #1C344C;
  font-weight: 400;
}
strong, b {
  font-weight: 700;
}
.text-section p, .text-section ul {
  font-size: 1.125rem;
}
blockquote {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1C344C;
  background: #F7F7F9;
  border-left: 5px solid #319C8C;
  margin-bottom: 8px;
  padding: 10px 18px 10px 24px;
  border-radius: 12px;
  font-style: italic;
}

/* ==========================================================
   BUTTONS & LINK STYLES
=========================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Open Sans', 'Arial', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 13px 32px;
  border: none;
  outline: none;
  background: #1C344C;
  color: #fff;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(44, 52, 70, 0.08);
  margin-top: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  text-decoration: none;
}
.button.primary {
  background: #1C344C;
  color: #fff;
}
.button.primary:hover, .button.primary:focus {
  background: #319C8C;
  color: #fff;
  box-shadow: 0 6px 16px 0 rgba(49, 156, 140, 0.11);
}
.button.secondary {
  background: #319C8C;
  color: #fff;
}
.button.secondary:hover, .button.secondary:focus {
  background: #1C344C;
  color: #fff;
  box-shadow: 0 4px 12px 0 rgba(28, 52, 76, 0.14);
}
.button[disabled], .button.disabled {
  background: #dddddd;
  color: #a6a6a6;
  cursor: not-allowed;
  box-shadow: none;
}
.main-menu a, .footer-menu a {
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 8px 12px;
}
.main-menu a:hover, .footer-menu a:hover, .mobile-nav a:hover {
  color: #319C8C;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
  color: #fff;
  padding: 15px 0;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:active, .mobile-nav a:focus {
  background: #e9f7f6;
  color: #319C8C;
}

/* ==========================================================
   HEADER & NAVIGATION (DESKTOP & MOBILE)
=========================================================== */
header {
  background: #fff;
  box-shadow: 0 4px 16px 0 rgba(44,52,70,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
nav.main-menu {
  display: none;
}
@media (min-width: 1100px) {
  nav.main-menu {
    display: flex;
    gap: 16px;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1C344C;
  color: #fff;
  font-size: 2rem;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  border: none;
  margin-left: 12px;
  transition: background 0.18s, color 0.18s;
  z-index: 101;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #319C8C;
  color: #fff;
}

/* ==========================================================
   MOBILE MENU OVERLAY
=========================================================== */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28, 52, 76, 0.98);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.47,1.64,.41,.8);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 36px 32px 24px 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: #fff;
  background: #319C8C;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: none;
  transition: background 0.14s;
  z-index: 1220;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #fff;
  color: #319C8C;
}
nav.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
}

@media (min-width: 1100px) {
  .mobile-menu {
    display: none;
  }
}

/* ==========================================================
   HERO, CONTENT & FLEX LAYOUTS
=========================================================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F7F7F9;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(28,52,76,0.07);
  min-width: 210px;
  max-width: 340px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  border: 2.5px solid #319C8C22;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
  }
  .feature-item {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.service-item {
  background: #fff;
  box-shadow: 0 1px 6px 0 rgba(28,52,76,0.12);
  border-radius: 14px;
  padding: 20px 16px;
  flex: 1 1 210px;
  min-width: 210px;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
  border-left: 5px solid #319C8C;
}
@media (max-width: 900px) {
  .service-list {
    flex-direction: column;
  }
  .service-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

.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: center;
  gap: 20px;
  padding: 20px;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 6px 24px 0 rgba(49,156,140,0.10);
  background: #fff;
  border-left: 8px solid #319C8C;
  color: #1C344C;
  max-width: 680px;
  width: 100%;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(28,52,76,0.07);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 768px) {
  .content-wrapper, .content-grid, .feature-grid, .service-list, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 24px;
  }
}

/* Contact List Style */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #1C344C;
}
.contact-list img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ==========================================================
   FOOTER
=========================================================== */
footer {
  background: #1C344C;
  color: #fff;
  padding-top: 33px;
  padding-bottom: 25px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-logo {
  margin-bottom: 8px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-menu a {
  color: #fff;
  opacity: 0.85;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  font-size: 1rem;
  font-weight: 700;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #319C8C;
  border-color: #319C8C;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.97rem;
  justify-content: center;
  color: #b8cae0;
  text-align: center;
}
.footer-contact a {
  color: #b8cae0;
  transition: color 0.1s;
}
.footer-contact a:hover {
  color: #319C8C;
}

@media (min-width: 700px) {
  footer .container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 44px;
  }
  .footer-logo {
    margin-bottom: 0;
  }
  .footer-contact {
    justify-content: flex-end;
  }
}

/* ==========================================================
   COOKIE CONSENT BANNER & MODAL
=========================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #1C344C;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 16px 22px 16px;
  box-shadow: 0 0px 18px rgba(28,52,76,0.28);
  z-index: 1500;
  transition: transform 0.40s cubic-bezier(.47,1.64,.41,.8);
  border-top-left-radius: 19px;
  border-top-right-radius: 19px;
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner .cookie-message {
  font-size: 1rem;
  margin-right: 0;
  margin-bottom: 5px;
  font-weight: 600;
  color: #fff;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner .button {
  font-size: 1rem;
  padding: 9px 22px;
  border-radius: 16px;
  box-shadow: none;
  margin: 0;
}
.cookie-banner .button.primary {
  background: #319C8C;
  color: #fff;
}
.cookie-banner .button.secondary {
  background: #fff;
  color: #1C344C;
  border: 2px solid #319C8C;
}
.cookie-banner .button.secondary:hover, .cookie-banner .button.secondary:focus {
  background: #F7F7F9;
  color: #319C8C;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  left:0; top:0; right:0; bottom:0;
  background: rgba(28,52,76,0.63);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 44px 12px 24px 12px;
  opacity: 1;
  transition: opacity 0.28s ease;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #1C344C;
  border-radius: 24px 24px 18px 18px;
  min-width: 320px;
  max-width: 420px;
  box-shadow: 0 8px 48px 0 rgba(28,52,76,0.20);
  padding: 38px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: cookiePopIn 0.38s cubic-bezier(.42,2,.43,.89);
}
@keyframes cookiePopIn {
  0% { transform: scale(0.95) translateY(120px); opacity: 0; }
  100% { transform: scale(1) translateY(0);  opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: #1C344C;
  font-weight: 700;
  margin-bottom: 3px;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.cookie-category label {
  font-size: 1.06rem;
  font-weight: 600;
}
.cookie-category input[type="checkbox"] {
  accent-color: #319C8C;
  width: 21px;
  height: 21px;
  margin: 0 3px 0 0;
}
.cookie-category .always-on {
  font-size: 0.92rem;
  color: #319C8C;
  background: #F7F7F9;
  border-radius: 8px;
  padding: 2px 12px;
  margin-left: 5px;
  font-weight: 700;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal .button {
  font-size: 1rem;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: #319C8C;
  color: #fff;
  border-radius: 50%;
  border: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: background 0.15s;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  background: #1C344C;
}
@media (max-width: 500px) {
  .cookie-modal {
    min-width: unset;
    max-width: 96vw;
    padding: 23px 8px 22px 8px;
  }
}

/* ==========================================================
   UTILITIES & VISUAL EFFECTS
=========================================================== */
.geometric-bg {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 240px;
  height: 240px;
  opacity: 0.15;
  top: -110px;
  right: -70px;
  background-image: url('../assets/bg-geometric.svg');
  background-size: cover;
}
/* Subtle shadow on sections */
.section {
  box-shadow: 0 4px 36px 0 rgba(44,52,70,0.05), 0 1.5px 5px 0 rgba(49,156,140,0.05);
}
.card, .feature-item, .service-item, .testimonial-card {
  transition: box-shadow 0.21s, transform 0.22s;
}
.card:hover, .feature-item:hover, .service-item:hover, .testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(49,156,140,0.12);
  transform: translateY(-4px) scale(1.018);
}

/* ==========================================================
   VISUAL HIERARCHY & SPACING
=========================================================== */
section, .section {
  margin-bottom: 60px;
}
.section:last-child, section:last-child {
  margin-bottom: 0;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 18px;
}

/* Gaps between cards and layout wrappers */
.card-container, .feature-grid, .service-list, .content-grid, .footer-menu {
  gap: 24px;
}

/* ==========================================================
   RESPONSIVENESS - MOBILE FIRST
=========================================================== */
@media (max-width: 700px) {
  html {
    font-size: 96%;
  }
  .section, section {
    padding: 25px 8px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 12px;
  }
  h1 {
    font-size: 1.3rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .service-list, .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .footer-menu {
    gap: 16px;
    flex-wrap: wrap;
  }
}

/* Hide nav desktop on mobile */
@media (max-width: 1099px) {
  nav.main-menu {
    display: none;
  }
}

/* ==========================================================
   ACCENT UTILITIES & VISUAL DETAILS
=========================================================== */
.accent {
  color: #319C8C;
  font-weight: 700;
}
.bg-accent {
  background: #319C8C;
  color: #fff;
}
.bg-light {
  background: #F7F7F9;
}
.bg-primary {
  background: #1C344C;
  color: #fff;
}
.rounded-xl {
  border-radius: 22px;
}
.shadow-soft {
  box-shadow:0 2px 8px 0 rgba(28,52,76,0.10);
}

/* ==========================================================
   MICRO-INTERACTIONS & FOCUS STATES
=========================================================== */
.button:focus {
  outline: 2.5px solid #319C8C;
  outline-offset: 2px;
}
.main-menu a:focus, .footer-menu a:focus {
  color: #319C8C;
  outline: 2px solid #319C8C;
  outline-offset: 2px;
}
input:focus, textarea:focus, select:focus {
  border-color: #319C8C;
  outline: 2px solid #319C8C;
}

/* ==========================================================
   PRINT STYLES (MINIMAL)
=========================================================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
}

/* ==========================================================
   CUSTOM SCROLLBAR (MODERN BOLD FLAVOR)
=========================================================== */
html {
  scrollbar-color: #319C8C #F7F7F9;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 7px;
  background: #F7F7F9;
}
::-webkit-scrollbar-thumb {
  background: #319C8C;
  border-radius: 12px;
}

/* End of Bridevoghe Mobilität "modern_bold" CSS */
