/* -----------------------------------------------------
   CSS RESET & BASE STYLES
----------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  outline: none;
}
body {
  background: #F6F3EC;
  color: #173152;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1rem;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #20416D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #DB296A;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.25em;
  margin-top: 0.8em;
  margin-bottom: 0.8em;
}
li {
  margin-bottom: 0.5em;
}

/* -----------------------------------------------------
   BRAND COLORS
----------------------------------------------------- */
:root {
  --color-primary: #20416D;
  --color-secondary: #7B9675;
  --color-accent: #F6F3EC;
  --color-highlight: #DB296A; /* Electric Pink */
  --color-info: #2CB4EB; /* Electric Blue */
  --color-warning: #FFD23F; /* Energetic Yellow */
  --color-card-bg: #FFFFFF;
  --color-card-shadow: rgba(32,65,109,0.13);
  --color-footer-bg: #16253b;
  --color-footer-text: #f6f3ec;
  --color-cta-text: #FFF;
  --color-body: #173152;
  --color-divider: #E2E7F0;
}

/* -----------------------------------------------------
   TYPOGRAPHY
----------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -1px;
}
h1 {
  font-size: 2.8rem;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 1px 3px 16px rgba(220,45,170,0.09);
}
h2 {
  font-size: 2.0rem;
  margin-bottom: 16px;
  line-height: 1.15;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.subheadline {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-highlight);
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}
p {
  margin-bottom: 1.2em;
  font-size: 1.08rem;
  color: var(--color-body);
}
address, em {
  font-style: italic;
  color: var(--color-secondary);
  font-size: 1rem;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}

/* Typography scale for spacing */
.text-section h2 {
  margin-bottom: 10px;
}
.text-section ul {
  margin-top: 0.6em;
  margin-bottom: 1.2em;
}
.text-section li {
  margin-bottom: 0.3em;
}

/* -----------------------------------------------------
   LAYOUT: SECTION & CONTAINERS
----------------------------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 20px;
}
.text-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* -----------------------------------------------------
   FLEX CARD & FEATURE LAYOUTS
----------------------------------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 var(--color-card-shadow);
  padding: 24px 16px 20px 16px;
  min-width: 230px;
  flex: 1 1 240px;
  max-width: 325px;
  margin-bottom: 20px;
  transition: box-shadow 0.25s, transform 0.21s;
  position: relative;
  border-left: 4px solid var(--color-info);
}
.feature-item img {
  width: 48px;
  height: 48px;
}
.feature-item h3 {
  font-size: 1.15rem;
  color: var(--color-highlight);
  font-weight: 700;
}
.feature-item p {
  font-size: 1rem;
  color: var(--color-body);
}
.feature-item:hover, .feature-item:focus {
  box-shadow: 0 6px 32px 0 rgba(32,65,109,0.22);
  transform: translateY(-4px) scale(1.025);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 var(--color-card-shadow);
  padding: 24px 18px 18px 18px;
  flex: 1 1 230px;
  min-width: 200px;
  max-width: 320px;
  transition: box-shadow 0.23s, transform 0.18s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 32px 0 var(--color-card-shadow);
  transform: scale(1.021);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-image-section > * {
  flex: 1 1 360px;
}

/* -----------------------------------------------------
   TESTIMONIALS & SLIDER
----------------------------------------------------- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 var(--color-card-shadow);
  min-width: 240px;
  max-width: 380px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-warning);
  position: relative;
  color: #133063;
}
.testimonial-card p {
  color: #17243b;
  font-size: 1.03rem;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--color-secondary);
  margin-top: 8px;
}
.testimonial-card:before {
  content: '\201C';
  font-family: 'Georgia', serif;
  position: absolute;
  top: 12px;
  left: 10px;
  color: var(--color-highlight);
  font-size: 2.5rem;
  opacity: 0.12;
  z-index: 1;
}

/* -----------------------------------------------------
   BUTTONS, CTA, INTERACTIVES
----------------------------------------------------- */
.cta-button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 99px;
  background: var(--color-highlight);
  color: var(--color-cta-text);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(220,45,170,0.14);
  letter-spacing: 0.6px;
  transition: background 0.21s, transform 0.15s, box-shadow 0.21s;
  cursor: pointer;
  margin-bottom: 14px;
  text-align: center;
  min-width: 178px;
}
.cta-button.primary {
  background: linear-gradient(94deg, var(--color-highlight) 70%, var(--color-info) 100%);
  color: var(--color-cta-text);
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, var(--color-info) 60%, var(--color-highlight) 100%);
  color: #fff;
  transform: scale(1.045) translateY(-2px);
  box-shadow: 0 4px 28px 0 rgba(32,65,109,0.21);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* -----------------------------------------------------
   HEADER & NAVIGATION
----------------------------------------------------- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 18px 0 var(--color-card-shadow);
  padding: 0 0;
  min-height: 72px;
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
}
header > a img {
  margin: 13px 28px 13px 20px;
  height: 48px;
  width: auto;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
}
header nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.07rem;
  letter-spacing: 0.4px;
  border-bottom: 2.5px solid transparent;
  padding-bottom: 2px;
  transition: border 0.15s, color 0.14s;
}
header nav a:hover, header nav a[aria-current="page"] {
  color: var(--color-highlight);
  border-bottom: 2.5px solid var(--color-highlight);
}
header .cta-button {
  margin-left: 36px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.15rem;
  color: var(--color-highlight);
  margin-left: 24px;
  margin-right: 14px;
  line-height: 1;
  transition: color 0.12s, transform 0.14s;
  z-index: 120;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--color-warning);
  transform: scale(1.15) rotate(5deg);
}

/* -----------------------------------------------------
   MOBILE NAVIGATION (SLIDING MENU)
----------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26,42,70,0.94);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.86,0,0.07,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  margin: 20px 28px 0 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.12s, transform 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-highlight);
  transform: scale(1.13);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 50px 32px 0 0;
  align-items: flex-end;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.27rem;
  font-weight: bold;
  letter-spacing: 0.7px;
  background: none;
  border-radius: 8px;
  padding: 12px 18px;
  margin: 0;
  transition: background 0.18s, color 0.17s;
  min-width: 180px;
  text-align: right;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-warning);
  background: rgba(32,65,109,0.13);
}

@media (max-width: 1024px) {
  header nav,
  header .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}


/* -----------------------------------------------------
   MAIN
----------------------------------------------------- */
main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 72vh;
  flex: 1 0 auto;
}

/* -----------------------------------------------------
   FOOTER
----------------------------------------------------- */
footer {
  width: 100%;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 36px 16px 22px 16px;
  text-align: center;
  margin-top: 48px;
  box-shadow: 0 -2px 16px 0 rgba(20,32,54,0.11);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 16px;
}
footer nav a {
  color: var(--color-footer-text);
  font-size: 1.03rem;
  font-weight: 700;
  padding-bottom: 2px;
  border-bottom: 2.5px solid transparent;
  transition: border 0.15s, color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  border-bottom: 2.5px solid var(--color-warning);
  color: var(--color-warning);
}
.footer-address {
  color: #fdfbfa;
  opacity: 0.93;
  font-size: 0.99rem;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.footer-address span {
  display: inline-block;
}

/* -----------------------------------------------------
   MAP PLACEHOLDER / EMBED
----------------------------------------------------- */
.map-placeholder {
  background: #E9EFF9;
  border: 2px dashed var(--color-info);
  border-radius: 12px;
  padding: 30px 14px;
  font-size: 1.01rem;
  color: var(--color-secondary);
  text-align: center;
  margin: 16px 0 16px 0;
  min-width: 220px;
}

/* -----------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
----------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: var(--color-body);
  box-shadow: 0 -2px 20px 0 rgba(32,65,109,0.14);
  border-top: 4px solid var(--color-highlight);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 24px 14px;
  gap: 32px;
  transition: transform 0.28s, opacity 0.18s;
  font-size: 1.08rem;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 24px;
  border-radius: 22px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-info);
  margin-left: 0;
  margin-right: 0;
  transition: background 0.14s, box-shadow 0.15s, transform 0.13s;
}
.cookie-btn.accept {
  background: var(--color-highlight);
}
.cookie-btn.reject {
  background: var(--color-primary);
}
.cookie-btn.settings {
  background: var(--color-warning);
  color: #262626;
}
.cookie-btn:hover,
.cookie-btn:focus {
  box-shadow: 0 4px 18px 0 rgba(220,45,170,0.17);
  transform: translateY(-2px) scale(1.042);
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(28,44,83,0.70);
  z-index: 3010;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 390px;
  width: 90vw;
  padding: 34px 24px 28px 24px;
  box-shadow: 0 6px 38px 0 rgba(32,65,109,0.22);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  gap: 18px;
  z-index: 1;
  animation: popin 0.33s cubic-bezier(0.74,0.18,0.21,0.99);
}
@keyframes popin {
  0% { opacity: 0; transform: scale(0.92); }
  80% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 11px;
  background: none;
  border: none;
  color: var(--color-highlight);
  font-size: 1.8rem;
  transition: color 0.14s, transform 0.18s;
  cursor: pointer;
  z-index: 2;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-warning);
  transform: scale(1.13);
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 15px;
  gap: 16px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-info);
  width: 20px;
  height: 20px;
}
.cookie-category label {
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-category .always-on {
  font-size: 0.95rem;
  color: var(--color-secondary);
  font-style: italic;
  margin-left: 12px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 16px;
  justify-content: flex-end;
}

/* -----------------------------------------------------
   MICROINTERACTIONS (HOVERS ETC)
----------------------------------------------------- */
.card, .feature-item, .cta-button, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: box-shadow 0.17s, transform 0.13s, background 0.16s, color 0.13s;
}

/* Focus ring for accessibility */
a:focus-visible, button:focus-visible, .cta-button:focus-visible, .cookie-btn:focus-visible {
  outline: 2.5px solid var(--color-info);
  outline-offset: 2px;
  z-index: 10;
}

/* -----------------------------------------------------
   RESPONSIVE DESIGN
----------------------------------------------------- */
@media (max-width: 1024px) {
  .feature-grid {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  .feature-item {
    max-width: 95vw;
    min-width: 180px;
  }
}

@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .testimonial-slider {
    gap: 14px;
  }
  footer{
    padding-left: 8px;
    padding-right:8px;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.38rem; }
  h3 { font-size: 1.18rem; }
  .section {
    margin-bottom: 35px;
    padding: 26px 4vw;
  }
  .mobile-menu-toggle {
    font-size: 2.01rem;
    margin-right: 10px;
  }
  .feature-grid, .card-container, .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .card, .feature-item, .testimonial-card {
    max-width: 100vw;
    min-width: 0;
  }
  .testimonial-card {
    padding: 18px 12px;
  }
  footer nav {
    flex-direction: column;
    gap: 15px;
  }
  .footer-address {
    font-size: 0.93rem;
    gap: 3px;
  }
}

@media (max-width: 460px) {
  html { font-size: 14px; }
  header > a img {
    margin: 8px;
    height: 40px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    font-size: 0.97rem;
  }
  .cookie-banner .cookie-buttons {
    width: 100%;
    justify-content: flex-start;
  }
}

/* -----------------------------------------------------
   UTILITY CLASSES & MISC
----------------------------------------------------- */
.hidden,
[hidden] {
  display: none !important;
}
.gap-vertical {
  margin-top: 20px;
  margin-bottom: 20px;
}
hr {
  border: none;
  border-top: 1.5px solid var(--color-divider);
  margin: 34px 0;
}

/**** END OF VIBRANT ENERGETIC, FLEXBOX-ONLY, RESPONSIVE MODERN STYLES ****/
