/* ==== CSS RESET & 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, 
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 {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, sans-serif;
  background: linear-gradient(135deg, #f5fafa 0%, #e0ecea 100%);
  color: #17486E;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
a {
  color: #17486E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #368CBF;
  outline: none;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 12px;
}
img {
  max-width: 100%;
  display: block;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5 {
  font-family: 'Roboto Slab', 'Times New Roman', serif;
  font-weight: 700;
  color: #17486E;
  line-height: 1.18;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5 {
  font-size: 1.1rem;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #255B82;
}
strong {
  font-weight: 700;
}
blockquote {
  font-style: italic;
  color: #17486E;
  background: #F7FCFB;
  border-left: 4px solid #8FCFAD;
  padding: 12px 24px;
  margin-bottom: 12px;
  border-radius: 4px;
}

/* ==== LAYOUT ==== */
.container {
  width: 100%;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
/* Space between all direct section siblings */
section + section {
  margin-top: 0;
}

/* ==== HEADER & NAV ==== */
header {
  width: 100%;
  background: linear-gradient(90deg, #17486E 60%, #8FCFAD 100%);
  color: #fff;
  position: relative;
  box-shadow: 0 2px 8px rgba(23,72,110,0.05);
  z-index: 100;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
header img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 5px;
  transition: background 0.15s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: rgba(255,255,255,0.15);
  color: #EFFFfA;
}
header .button.primary {
  margin-left: 12px;
}

/* ==== MOBILE NAV ==== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  margin-left: auto;
  z-index: 120;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #17486E 90%, #8FCFAD 100%);
  color: #fff;
  z-index: 1000;
  padding: 36px 24px 0 24px;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  margin-left: auto;
  margin-bottom: 10px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #8FCFAD;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px 8px;
  border-radius: 5px;
  transition: background 0.15s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(255,255,255,0.16);
  color: #EFFFfA;
}

@media (max-width: 980px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ==== HERO & HEADINGS ==== */
section:first-of-type {
  padding-top: 54px;
  padding-bottom: 54px;
  background: linear-gradient(90deg, #8FCFAD 0%, #fff 100%);
  border-radius: 0 0 60px 60px / 0 0 28px 28px;
  box-shadow: 0 4px 16px rgba(23,72,110,0.05);
}
.section, section {
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(23,72,110,0.04);
  background: #fff;
}

/* ==== FLEXBOX PATTERNS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #f7fdfb;
  border-radius: 16px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 10px rgba(23,72,110,0.07);
  display: flex;
  flex-direction: column;
  padding: 28px 22px 22px 22px;
  min-width: 250px;
  flex: 1 1 300px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(23,72,110,0.14);
  transform: translateY(-3px) scale(1.025);
}
.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: #E6F5EF;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(23,72,110,0.09);
  margin-bottom: 20px;
  color: #17486E;
  min-width: 200px;
}
.testimonial-card blockquote {
  color: #1C374B;
  background: transparent;
  border-left: 4px solid #8FCFAD;
  font-size: 1.07rem;
  margin-bottom: 0;
  padding: 0 22px 0 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== FEATURE GRID ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 6px;
}
.feature-grid > div {
  background: #f7fdfb;
  border-radius: 14px;
  box-shadow: 0 1px 9px rgba(23,72,110,0.04);
  padding: 24px 18px;
  min-width: 210px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow .22s, transform .22s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 28px rgba(23,72,110,0.10);
  transform: translateY(-2px) scale(1.017);
}
.feature-grid img {
  height: 40px;
  width: 40px;
  margin-bottom: 4px;
}

/* ==== BUTTONS ==== */
.button {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: 30px;
  background: #8FCFAD;
  color: #17486E;
  font-size: 1.05rem;
  font-family: 'Open Sans', Arial, sans-serif;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.14s;
  box-shadow: 0 1px 4px rgba(23,72,110,0.05);
  margin-top: 16px;
  margin-bottom: 6px;
  text-align: center;
  gap: 10px;
  outline: none;
}
.button.primary {
  background: #17486E;
  color: #fff;
  box-shadow: 0 2px 16px rgba(23,72,110,0.1);
}
.button.primary:hover, .button.primary:focus {
  background: #255b82;
  color: #EFFFfA;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(23,72,110,0.13);
}
.button:hover, .button:focus {
  background: #59b591;
  color: #fff;
}
.button:active {
  transform: scale(0.96);
}

/* ==== TABLES ==== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 34px;
  font-size: 1rem;
  background: #f7fdfb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(23,72,110,0.06);
}
thead th {
  background: #8FCFAD;
  color: #17486E;
  text-align: left;
  padding: 12px 15px;
  font-weight: 700;
}
tbody td {
  padding: 12px 15px;
  border-top: 1px solid #e0ecea;
  color: #255B82;
}
tbody tr:nth-child(even) td {
  background: #e5f4ee;
}

/* ==== FOOTER ==== */
footer {
  background: linear-gradient(90deg, #17486E 60%, #8FCFAD 100%);
  color: #fff;
  padding: 36px 0 16px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
footer img {
  height: 42px;
  width: auto;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #EFFFfA;
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.13s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: rgba(255,255,255,0.14);
  color: #17486E;
}
.footer-contact p, .footer-contact a {
  color: #EFFFfA;
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer-contact a:hover, .footer-contact a:focus{
  color: #8FCFAD;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1800;
  background: #17486E;
  color: #fff;
  padding: 22px 26px 22px 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 0 18px rgba(23,72,110,0.09);
  flex-wrap: wrap;
  border-radius: 16px 16px 0 0;
  animation: cookieBannerSlideIn .6s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieBannerSlideIn {
  0% {transform: translateY(120%); opacity: 0;}
  80% {transform: translateY(-6px); opacity: 1;}
  100% {transform: translateY(0);}
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  margin-left: auto;
  flex-wrap: wrap;
}
.cookie-banner .button {
  margin: 0;
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 20px;
  background: #8FCFAD;
  color: #17486E;
  font-weight: 700;
}
.cookie-banner .button.accept {
  background: #8FCFAD;
  color: #17486E;
}
.cookie-banner .button.reject {
  background: #fbeee6;
  color: #17486E;
  border: 1px solid #8FCFAD;
}
.cookie-banner .button.cookie-settings {
  background: #fff;
  color: #17486E;
  border: 1px solid #8FCFAD;
}
.cookie-banner .button:hover, .cookie-banner .button:focus {
  background: #68b7a1;
  color: #fff;
  border-color: #17486E;
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 1900;
  inset: 0;
  background: rgba(23,72,110, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.35s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #17486E;
  border-radius: 14px;
  min-width: 320px;
  max-width: 98vw;
  padding: 32px 24px 19px 24px;
  box-shadow: 0 4px 36px rgba(23,72,110,0.26);
  animation: modalIn 0.43s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2000;
}
@keyframes modalIn {
  from { transform: scale(0.89); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  color: #17486E;
}
.cookie-modal .category input[type=checkbox] {
  width: 18px;
  height: 18px;
}
.cookie-modal .category.essential input[type=checkbox] {
  accent-color: #8FCFAD;
}
.cookie-modal .category.essential label {
  font-weight: 700;
  color: #17486E;
}
.cookie-modal .close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #17486E;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.19s;
}
.cookie-modal .close:hover, .cookie-modal .close:focus {
  color: #8FCFAD;
}
.cookie-modal .button {
  margin-top: 4px;
  padding: 11px 22px;
  align-self: flex-end;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 980px) {
  .footer-contact { margin-top: 20px; }
  .footer-nav { flex-direction: row; gap: 16px; }
  .content-grid, .feature-grid, .card-container {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  .testimonials-grid {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section,
  section {
    padding: 22px 8px;
    margin-bottom: 42px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 6px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.22rem;
    margin-bottom: 10px;
  }
  .feature-grid > div, .card {
    min-width: 0;
    padding: 17px 11px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 18px 10px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.15rem; }
  h2 { font-size: 1rem; }
  .button, .button.primary, .cookie-banner .button {
    font-size: 0.97rem;
    padding: 9px 13px;
  }
  .cookie-modal {
    min-width: 90vw;
    padding: 18px 9px 13px 9px;
  }
  .feature-grid {
    gap: 14px;
  }
}

/* ==== MICRO-INTERACTIONS ==== */
.card, .feature-grid > div, .testimonial-card, .button, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.19s cubic-bezier(.62,.28,.23,.99), transform 0.18s cubic-bezier(.62,.28,.23,.99);
}
.button:focus, .main-nav a:focus, .mobile-nav a:focus, .cookie-banner .button:focus {
  outline: 2px solid #8FCFAD;
  outline-offset: 2px;
}

/* ==== MISC ELEMENTS ==== */
::-webkit-input-placeholder { color: #9fbcc5; }
::-moz-placeholder { color: #9fbcc5; }
:-ms-input-placeholder { color: #9fbcc5; }
::placeholder { color: #9fbcc5; }

/* ==== UTILITIES ==== */
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }

/* Unique Feature – Newsletter Section in Blog */
.text-section strong {
  color: #17486E;
  font-weight: 800;
}

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