/* =============================
   CSS RESET & BASELINE 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, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background: #181F2F;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #E9F6FB;
  background: linear-gradient(140deg, #1A2542 0%, #23395D 60%, #17192D 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar {
  width: 12px;
  background: #181F2F;
}
::-webkit-scrollbar-thumb {
  background: #23395D;
  border-radius: 6px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #58ffb0;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #28A745;
  text-shadow: 0 0 2px #58ffb0, 0 0 12px #58ffb077;
}

/* ===========
   FONTS LOAD
   =========== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800|Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p, li, input, label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #C2D5E5;
  line-height: 1.7;
}
p.subheadline {
  font-size: 1.25rem;
  margin-bottom: 22px;
  color: #E9F6FB;
  font-weight: 400;
  letter-spacing: 0.02em;
}

strong, b {
  font-weight: 700;
  color: #fff;
}

ul, ol {
  padding-left: 1.3em;
  margin-bottom: 16px;
  color: #C2D5E5;
}
ul li, ol li {
  margin-bottom: 8px;
}
li img {
  vertical-align: middle;
  margin-right: 8px;
}

/* =====================
   CONTAINER & LAYOUTS
   ===================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  margin-bottom: 32px;
}
main {
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #202F46;
  border-radius: 16px;
  box-shadow: 0 6px 32px 0 #1A25425a;
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 260px;
}
.card:hover {
  box-shadow: 0 8px 40px 0 #28a74544, 0 2px 8px #1A2542bb;
  transform: translateY(-4px) scale(1.02);
}
.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;
  background: #F6FBFD;
  color: #181F2F;
  padding: 20px 26px;
  border-radius: 14px;
  box-shadow: 0 3px 14px #23395D13;
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 410px;
}

/* Ensure white/dark text for testimonial contrast */
.testimonial-card p,.testimonial-card .name {
  color: #181F2F;
}

.feature-list, .service-list, .feature-icons, .categories {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-left: 0;
}
.feature-list li, .service-list li, .feature-icons li, .categories li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1A2542;
  border-radius: 9px;
  padding: 12px 20px;
  margin-bottom: 0;
  color: #E9F6FB;
  font-weight: 500;
}
.feature-list li img, .feature-icons li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* Blog cards & topic cards */
.blog-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.post-teaser {
  background: #202F46;
  border-radius: 14px;
  box-shadow: 0 2px 16px #23395D11;
  padding: 24px 22px;
  min-width: 240px;
  min-height: 100px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-teaser:hover {
  box-shadow: 0 6px 30px #28A7451A, 0 2px 8px #1A2542bb;
  transform: translateY(-3px) scale(1.01);
}

.topic-highlights ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.topic-highlights li {
  background: #17192D;
  color: #caffea;
  padding: 6px 18px;
  border-radius: 20px;
}

.editor-picks {
  color: #28A745;
  font-weight: bold;
  margin-top: 16px;
  padding: 10px 16px;
  background: #1A2542;
  border-radius: 10px;
  box-shadow: 0 1px 7px #23395D22;
}

.categories {
  flex-wrap: wrap;
  gap: 14px;
}
.categories li {
  background: #17192D;
  color: #28A745;
  font-weight: 600;
  border-radius: 13px;
  padding: 6px 16px 6px 12px;
  letter-spacing: 0.03em;
}

/* =======================
   NAVIGATION & HEADER
   ======================= */
header {
  background: rgba(24,31,47,0.95);
  box-shadow: 0 4px 16px #202F4636;
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 20px 20px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: #E9F6FB;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 7px;
  position: relative;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover, header nav a:focus {
  background: #23395D;
  color: #28A745;
  box-shadow: 0 0 5px #28A74566;
}

.cta.primary {
  background: #28A745;
  color: #fff;
  padding: 13px 34px;
  border-radius: 32px;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  box-shadow: 0 0 18px #28A74555, 0 2px 12px #1A254211;
  border: none;
  letter-spacing: 0.025em;
  margin-left: 24px;
  transition: background 0.17s, transform 0.14s, box-shadow 0.18s;
  cursor: pointer;
  text-shadow: 0 1px 9px #16eb7260;
}
.cta.primary:hover, .cta.primary:focus {
  background: #22c95c;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 34px #28A745cc;
}

/* ===============
   FOOTER STYLES
   =============== */
footer {
  background: #181F2F;
  padding: 38px 0 28px 0;
  box-shadow: 0 -2px 24px #1A254233;
}
footer .container {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 38px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer nav a {
  color: #c2f9e3;
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.86;
  transition: color 0.19s;
}
footer nav a:hover, footer nav a:focus {
  color: #28A745;
}
.contact-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #C2D5E5;
  font-size: 1rem;
  margin-top: 0;
}
.legal-links {
  margin-top: 14px;
  font-size: 0.98rem;
  color: #5afecd;
  opacity: 0.87;
}
.legal-links a {
  color: #28A745;
  font-weight: 500;
  opacity: 0.94;
}
.legal-links a:hover {
  color: #E9F6FB;
}

/* ==================
   TABLES & FORMS
   ==================*/
table {
  width: 100%;
  border-collapse: collapse;
  background: #202F46;
  border-radius: 14px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 2px 16px #23395D18;
  color: #E9F6FB;
}
table th, table td {
  padding: 16px 14px;
  text-align: left;
}
table tr:not(:last-child) {
  border-bottom: 1px solid #394866;
}
table th {
  background: #23395D;
  color: #00ffd5;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.022em;
}
table td {
  font-weight: 400;
  color: #bbf9e8;
  background: none;
  font-size: 1rem;
}
table tr:hover td {
  background: #23395D66;
  color: #28A745;
  transition: background .13s, color .13s;
}

input[type="search"], input[type="text"], input[type="email"], input[type="number"], textarea {
  border: 1px solid #394866;
  background: #262C3F;
  color: #E9F6FB;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  outline: none;
  transition: border-color .13s, box-shadow .13s;
  margin-bottom: 18px;
  width: 100%;
}
input[type="search"]:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="number"]:focus, textarea:focus {
  border-color: #28A745;
  box-shadow: 0 0 0 2px #28a74566;
}

button, .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  padding: 12px 27px;
  background: #23395D;
  color: #fff;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.12s;
  margin-right: 10px;
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: #28A745;
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 0 9px #28A74555;
}

/* =============================
   MOBILE MENU (HAMBURGER NAV)
   ============================= */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: none;
  background: #28A745;
  color: #fff;
  font-size: 2rem;
  z-index: 1080;
  border-radius: 50%;
  box-shadow: 0 2px 12px #28A74586;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #22c95c;
  color: #fff;
  transform: scale(1.1);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #181F2F;
  box-shadow: 0 0 80px #28A7451A;
  transform: translateX(-100vw);
  transition: transform 370ms cubic-bezier(.5,.3,.2,1.1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  opacity: 0.992;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #28A745;
  font-size: 2rem;
  padding: 20px 24px 0 0;
  cursor: pointer;
  transition: color 0.17s, transform 0.14s;
  z-index: 2021;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
  transform: scale(1.1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 30px;
  align-items: flex-start;
  padding: 0 38px;
}
.mobile-nav a {
  color: #fff;
  background: #23395D;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 1.17rem;
  margin-bottom: 2px;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  font-weight: 800;
  width: 100%;
  transition: background 0.2s, color 0.17s, transform 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #28A745;
  color: #fff;
  transform: translateX(6px) scale(1.04);
  text-shadow: 0 0 6px #28a745bb;
}

/* Hide main nav on mobile, show hamburger */
@media (max-width: 1023px) {
  header nav, header .cta.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .mobile-menu, 
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ========================
   COOKIE CONSENT BANNER
   ======================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #202F46;
  color: #fff;
  box-shadow: 0 -2px 30px #28A74533;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 22px 6vw 22px 20px;
  z-index: 4800;
  font-size: 1.05rem;
  transition: transform 0.37s cubic-bezier(.5,.3,.2,1.1), opacity 0.3s;
}
.cookie-banner.hide {
  transform: translateY(140%);
  opacity: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  background: #23395D;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  box-shadow: 0 1px 6px #28A74524;
  transition: background 0.16s, color 0.16s, transform .11s;
  margin-right: 0;
}
.cookie-banner button.accept {
  background: #28A745;
}
.cookie-banner button.reject {
  background: #202F46;
  color: #28A745;
  border: 1px solid #28A745;
}
.cookie-banner button.settings {
  background: #23395D;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  filter: brightness(1.05);
  color: #fff;
  transform: scale(1.03);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 5000;
  background: rgba(20,32,39,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.27s;
}
.cookie-modal.hide {
  pointer-events: none;
  opacity: 0;
}
.cookie-modal-content {
  background: #181F2F;
  border-radius: 14px;
  box-shadow: 0 0 52px #28A74511, 0 4px 18px #23395D33;
  color: #E9F6FB;
  padding: 32px 28px;
  max-width: 98vw;
  width: 390px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  position: relative;
}
.cookie-modal-content h3 {
  color: #28A745;
  font-size: 1.32rem;
  margin-bottom: 10px;
}
.cookie-modal-content .modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #28A745;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-content .modal-close:hover {
  color: #fff;
}
.cookie-modal-content ul {
  list-style: none;
  width: 100%;
  padding-left: 0;
}
.cookie-modal-content li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #23395D44;
  color: #E9F6FB;
}
.cookie-modal-content li:last-child {
  border-bottom: none;
}
.cookie-modal-content label {
  font-size: 1.05rem;
  color: #E9F6FB;
  font-weight: 500;
}
.cookie-toggle {
  position: relative;
  width: 38px; height: 22px;
  display: inline-block;
}
.cookie-toggle input {
  display: none;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #23395D;
  border-radius: 16px;
  transition: background 0.2s;
}
.cookie-toggle input:checked + .cookie-slider {
  background: #28A745;
}
.cookie-slider:before {
  position: absolute;
  content: "";
  left: 4px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.21s;
}
.cookie-toggle input:checked + .cookie-slider:before {
  left: 20px;
}
.cookie-legend {
  font-size: .99rem;
  margin-bottom: 6px;
  color: #E9F6FB;
  opacity: 0.73;
}

/* ========================
   STAR RATINGS 
   ======================== */
.star-ratings {
  color: #28A745;
  letter-spacing: 2px;
  font-size: 1.24rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 0 0 6px #28c74571;
}

/* ==============
   UTILITIES
   ============= */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 24px; }
.pa-1 { padding: 8px; }
.pa-2 { padding: 16px; }
.sticky { position: sticky; top: 0; z-index: 1100; }

.section:not(:last-child) {
  border-bottom: 1px solid #23395D22;
}

/* Micro-interactions */
.card, .testimonial-card, .post-teaser {
  transition: box-shadow 0.19s, transform 0.16s;
}

/* ============================
   RESPONSIVE DESIGN & FLEXBOX
   ============================ */
@media (max-width: 1023px) {
  .container {
    max-width: 98vw;
    padding: 0 14px;
  }
  .footer .container {
    gap: 24px;
    flex-direction: column;
  }
  header .container {
    padding: 16px 10px 13px 10px;
  }
  .section {
    margin-bottom: 40px;
    padding: 26px 10px;
  }
  .card {
    padding: 20px 13px;
  }
}
@media (max-width: 900px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 16px;
  }
  .blog-teasers {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.08rem; }
  .section { padding: 20px 4px; }
  .testimonial-card, .card {
    padding: 13px 7px;
  }
  .feature-list, .feature-icons, .categories {
    flex-direction: column;
    gap: 10px;
  }
  .card-container {
    flex-direction: column;
    gap: 12px;
  }
  .topic-highlights ul {
    flex-direction: column;
    gap: 9px;
  }
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 11px;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
  .card-container {
    flex-direction: column;
    gap: 12px;
  }
  .card {
    min-width: 90vw;
  }
}

/* GENERAL: Ensure gap/margins between all cards and sections */
.card, .testimonial-card, .post-teaser {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===============
   MISC DECORATIONS
   =============== */
hr {
  border: none;
  border-top: 1px solid #39486655;
  margin: 32px 0;
}

.map-embed {
  background: #181F2F;
  color: #bbf9e8;
  border-radius: 13px;
  box-shadow: 0 1px 7px #28a74517;
  padding: 18px 13px;
  margin-top: 12px;
}

/* ===============
   ICONS
   =============== */
.contact-info img, .contact-footer img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px #28A74577);
}

/* ===============
   ACCESSIBILITY
   =============== */
:focus {
  outline: 2px solid #28A745;
  outline-offset: 2px;
}

/* ===============
   HINTS, BADGES
   =============== */
.badge {
  background: #28A745;
  color: #181F2F;
  font-size: .92rem;
  padding: 3px 12px;
  border-radius: 12px;
  margin-left: 8px;
  font-weight: 700;
}

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