/* CSS RESET & 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, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body { background: #F6F9FA; color: #184653; font-family: 'Roboto', Arial, sans-serif; line-height: 1.6; min-height: 100vh; }

/* BRAND FONTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #246B85;
}
h1 { font-size: 2.2rem; margin-bottom: 24px; }
h2 { font-size: 1.5rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; }

@media (min-width: 600px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.3rem; }
}

p, ul, ol, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #184653;
}
strong { color: #246B85; font-weight: 700; }
a { color: #246B85; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #5AB6CC; text-decoration: underline; }

/* GRADIENT MODERN BACKGROUND */
body, .section {
  background: linear-gradient(135deg, #F6F9FA 75%, #5AB6CC 100%);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(36, 107, 133, 0.08);
}
@media (min-width: 900px) {
  .section { padding: 60px 32px; }
}

/* CONTAINER / WRAPPERS */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* FLEXBOX PATTERNS */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(36,107,133,0.07); overflow: hidden; }
.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;
  padding: 20px;
  background: #F6F9FA;
  border: 1px solid #e4eef2;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(36,107,133,0.04);
  margin-bottom: 20px;
  max-width: 540px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* RESPONSIVE FLEX ADJUSTMENTS */
@media (max-width: 900px) {
  .container { padding: 0 8px; }
  .content-wrapper { gap: 16px; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
  .card-container, .content-grid { flex-direction: column; gap: 20px; }
  .testimonial-card { width: 100%; }
  .section { padding: 28px 8px; margin-bottom: 40px; }
}

/* HEADER / MAIN NAV */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(36,107,133,0.07);
  position: sticky;
  top: 0; z-index: 50;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 20px;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #246B85;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.16s;
}
.main-nav > a:hover {
  background: #E8F4F7;
  color: #246B85;
}
.main-nav img {
  height: 36px;
  display: block;
  margin-right: 14px;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: #246B85;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  position: absolute;
  right: 20px;
  top: 14px;
  z-index: 101;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #5AB6CC;
  outline: none;
  transform: scale(1.08);
}
@media (max-width: 1024px) {
  .main-nav { gap: 12px; }
}
@media (max-width: 768px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(36,107,133,0.92);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77,0,0.175,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  background: #246B85;
  border: none;
  font-size: 2rem;
  padding: 12px 18px;
  margin: 16px 16px 0 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-close:hover {
  background: #5AB6CC;
}
.mobile-nav {
  margin-top: 12vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-left: 30px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 12px 8px;
  border-radius: 8px;
  display: block;
  width: 92%;
  transition: background 0.15s;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #5AB6CC;
  color: #184653;
}

/* SECTION & CARD SPACING */
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 12px;
  list-style: none;
  position: relative;
  padding-left: 22px;
  font-size: 1rem;
  line-height: 1.7;
}
ul li:before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: #5AB6CC;
  border-radius: 50%;
  position: absolute;
  left: 0; top: 0.70em;
}
@media (max-width: 600px) {
  ul, ol { margin-left: 14px; }
  ul li, ol li { padding-left: 14px; font-size: 0.99rem; }
}

/* BUTTONS */
.button, .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(90deg, #246B85 60%, #5AB6CC 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  margin-top: 12px;
  box-shadow: 0 2px 12px 0 rgba(36,107,133,0.10);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.18s;
}
.button:hover, .primary:hover, .button:focus, .primary:focus {
  background: linear-gradient(90deg, #5AB6CC 0%, #246B85 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 18px 0 rgba(36,107,133,0.16);
  outline: none;
}

/* TEXT SECTIONS & IMAGE SIZING */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}
.text-section img {
  height: 34px;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}
@media (max-width: 600px) {
  .text-section { gap: 10px; }
}

/* CARDS & ICONS */
.card {
  padding: 24px;
  gap: 14px;
  border: 1px solid #e4eef2;
  min-width: 210px;
}
.card img {
  height: 44px; width: 44px; margin-bottom: 4px;
}

.testimonial-card {
  color: #184653;
  background: #F6F9FA;
  border-left: 6px solid #5AB6CC;
  box-shadow: 0 2px 12px 0 rgba(36,107,133,0.09);
  font-size: 1.08rem;
}
.testimonial-card p {
  color: #184653;
  font-size: 1.05rem;
}
.testimonial-card strong {
  color: #246B85;
}
.testimonial-card img {
  vertical-align: bottom;
  height: 18px; width: 18px;margin: 0 4px 0 0;
}

/* ICONS IN LISTS */
li img {
  height: 32px;
  width: 32px;
  margin-bottom: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

/* FOOTER */
footer {
  width: 100%;
  border-top: 1px solid #e6eef3;
  background: #fff;
  padding: 40px 0 16px 0;
  margin-top: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
footer nav a {
  color: #246B85;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  opacity: 0.83;
  transition: opacity 0.14s;
}
footer nav a:hover { opacity: 1; color: #5AB6CC; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  font-size: 0.98rem;
  color: #184653;
}
.footer-contact img {
  width: 44px;
  margin-bottom: 8px;
}
footer a { text-decoration: none; }
footer a:hover, footer a:focus { text-decoration: underline; color: #5AB6CC; }

@media (max-width:768px) {
  footer {
    padding: 24px 0 12px 0;
    margin-top: 24px;
  }
  .footer-contact { font-size: 0.97rem; }
  footer nav { gap: 14px; }
}

/* COOKIE BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: #ffffff;
  border-top: 2px solid #5AB6CC;
  box-shadow: 0 -2px 22px 0 rgba(36,107,133,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 12px 18px 12px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  animation: cookie-slide-in 0.7s cubic-bezier(0.6,0.3,0.3,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0;}
  to   { transform: translateY(0); opacity: 1;}
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-banner-buttons .button,
.cookie-banner-buttons .primary {
  font-size: 1rem;
  padding: 10px 16px;
  margin-top: 0;
  border-radius: 8px;
}
.button.cookie-settings-btn {
  background: #fff;
  color: #246B85;
  border: 1px solid #5AB6CC;
  box-shadow: none;
}
.button.cookie-settings-btn:hover {
  background: #E8F4F7;
  color: #246B85;
}
/* Hide on accept */
.cookie-consent-banner.hide {
  animation: cookie-slide-out 0.5s cubic-bezier(0.6,0.3,0.3,1) forwards;
}
@keyframes cookie-slide-out {
  to { transform: translateY(100%); opacity: 0; }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36,107,133,0.78);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s;
}
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
.cookie-modal {
  background: #fff;
  padding: 32px 22px 26px 22px;
  border-radius: 18px;
  max-width: 390px;
  width:94vw;
  box-shadow: 0 8px 40px 0 rgba(36,107,133,0.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-modal h2 {
  font-size: 1.32rem; margin-bottom: 4px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cookie-category label {
  font-size: 1.05rem;
  color: #246B85;
  font-weight: 500;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  border-radius: 12px;
  background: #5AB6CC;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-toggle:checked {
  background: #246B85;
}
.cookie-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-toggle::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  margin: 1px;
  position: absolute;
  left: 1px;
  top: 1px;
  transition: left 0.2s;
}
.cookie-toggle:checked::after {
  left: 17px;
}
.cookie-modal-buttons {
  display: flex; gap: 12px; justify-content: flex-end;
}
.cookie-modal .button {
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 8px;
}
.cookie-modal .button:last-child {
  background: #246B85;
  color: #fff;
  border: none;
}
.cookie-modal .button:last-child:hover {
  background: #5AB6CC; color: #fff;
}


/* MICRO-INTERACTIONS/TRANSITIONS */
.button, .primary, .testimonial-card, .section, .card, .cookie-consent-banner, .cookie-modal {
  transition: box-shadow 0.22s, background 0.19s, color 0.16s, transform 0.2s;
}

/* VISUAL ENHANCEMENTS */
.section, .card, .testimonial-card, .cookie-modal {
  box-shadow: 0 2px 12px 0 rgba(36,107,133,0.07);
}
img { max-width: 100%; height: auto; border-radius: 8px; }

/* SUPPORT FOR HIGH CONTRAST / ACCESSIBILITY */
.testimonial-card, .testimonial-card p, .testimonial-card strong {
  color: #184653;
  background: #F6F9FA;
  /* Ensures dark text on light background for testimonials/reviews */
}

/* SPACING AND LAYOUT SAFEGUARDS */
main, .main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 70vh;
}
.section:not(:last-of-type),
.container:not(:last-child),
.content-wrapper:not(:last-child),
.card:not(:last-child),
.testimonial-card:not(:last-child) {
  margin-bottom: 24px;
}

/* PREVENT OVERLAPPING */
* { box-sizing: border-box; }

/* HIDE UNNEEDED LAYOUT ADJUSTS FOR PRINT */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff !important; }
}
