/* RESET AND NORMALIZE */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; }
html { font-family: 'Roboto', serif; font-size: 16px; -webkit-text-size-adjust: 100%; background: #F7F7FA; }
body { line-height: 1.65; color: #222; background: #F7F7FA; min-height: 100vh; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: #1A365D; text-decoration: none; transition: color .18s; }
a:hover, a:focus { color: #279C51; text-decoration: underline; }
ul { list-style: none; margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #E3E3EA; }
th { background: #F7F7FA; font-weight: 600; color: #1A365D; font-size: 16px; font-family: 'Montserrat', serif; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', serif; font-weight: 600; color: #1A365D; margin-bottom: 16px; line-height: 1.15; }
h1 { font-size: 32px; margin-bottom: 20px; letter-spacing: .5px; }
h2 { font-size: 24px; margin-bottom: 18px; }
h3 { font-size: 18px; margin-bottom: 12px; }
p, li, td { font-family: 'Roboto', serif; font-size: 16px; }
strong, b { font-weight: 700; }
.button, .cta-btn {
  background: #1A365D;
  color: #fff;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  border-radius: 32px;
  padding: 12px 32px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(26,54,93,0.06);
  font-size: 18px;
  letter-spacing: .02em;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.button:hover, .cta-btn:hover, .button:focus, .cta-btn:focus {
  background: #279C51;
  color: #fff;
  box-shadow: 0 4px 16px rgba(39,156,81,0.08);
}
/* UTILITY FLEX CONTAINERS (MANDATORY CLASSES) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(26,54,93,0.06);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.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: 18px;
  padding: 24px 28px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(26,54,93,0.07);
  min-width: 260px;
  max-width: 350px;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* CONTAINER AND WRAPPING */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* HERO AREA */
main>section:first-of-type {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(26,54,93,0.06);
  margin-top: 32px;
  margin-bottom: 60px;
}
/* NAVIGATION */
header { background: #fff; box-shadow: 0 2px 8px rgba(26,54,93,0.07); }
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 0 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Montserrat', serif;
  font-weight: 500;
  color: #1A365D;
  font-size: 16px;
  padding: 5px 0 5px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: #279C51;
  border-bottom: 2px solid #279C51;
}
.cta-btn {
  margin-left: 24px;
}
/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  font-size: 26px;
  color: #1A365D;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #E3E3EA;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover { background: #E6EDD3; color: #279C51; }
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  z-index: 1111;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.5,.2,.2,1);
  box-shadow: 2px 0px 32px rgba(26,54,93,.20);
  padding: 24px 24px 0 24px;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 32px;
  color: #1A365D;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 20px;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover { background: #E6EDD3; color: #279C51; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 18px;
}
.mobile-nav a {
  color: #1A365D;
  font-family: 'Montserrat', serif;
  font-size: 21px;
  font-weight: 600;
  padding: 16px 0 8px 4px;
  border-radius: 6px;
  transition: background 0.17s, color 0.18s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #E6EDD3;
  color: #279C51;
}
@media (max-width: 1000px) {
  header nav { display: none; }
  .cta-btn { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 1001px) {
  .mobile-menu { display: none !important; }
}
/* MAIN FLEXIBLE CARDS AND GRIDS */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.features-grid > div {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(26,54,93,0.055);
  padding: 28px 24px;
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow 0.23s;
}
.features-grid > div:hover {
  box-shadow: 0 4px 20px rgba(39,156,81,0.09);
}
.ranking-teasers, .article-grid, .guides-list, .team-profiles, .news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.ranking-teasers > div, .article-grid > div,
.guides-list > div, .team-profiles > div, .news-list > div {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 6px rgba(26,54,93,0.05);
  padding: 22px 18px;
  flex: 1 1 210px;
  min-width: 230px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.22s;
  margin-bottom: 20px;
}
.ranking-teasers > div:hover, .article-grid > div:hover,
.guides-list > div:hover, .news-list > div:hover {
  box-shadow: 0 4px 18px rgba(26,54,93,0.07);
}
.calculator-preview {
  background: #F7F7FA;
  border-radius: 13px;
  box-shadow: 0 1px 4px rgba(26,54,93,0.04);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.filters-section, .ranking-filter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.filters-section ul,
.ranking-filter ul {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.filters-section li, .ranking-filter li {
  background: #F7F7FA;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 15px;
  color: #1A365D;
  font-family: 'Montserrat', serif;
}
.comparison-table {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(26,54,93,0.04);
  padding: 18px 0 6px 0;
  overflow-x: auto;
}
.individual-card-rating {
  display: flex;
  align-items: center;
  gap: 19px;
}
.individual-card-rating a {
  font-size: 15px;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  color: #279C51;
  background: #E6EDD3;
  border-radius: 100px;
  padding: 5px 18px;
  border: 1px solid #CAE8D1;
  transition: background .19s, color .19s;
}
.individual-card-rating a:hover,
.individual-card-rating a:focus {
  background: #279C51;
  color: #fff;
}
.result-highlight {
  margin-top: 20px;
  padding: 14px 18px;
  background: #E6EDD3;
  color: #1A365D;
  border-radius: 10px;
  font-family: 'Montserrat', serif;
  font-size: 16px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 23px;
  margin-top: 13px;
}
.category-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
}
.category-tags span {
  background: #E6EDD3;
  color: #279C51;
  border-radius: 7px;
  padding: 2px 11px;
  font-size: 13px;
  font-family: 'Montserrat', serif;
}
.team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.team-profiles > div {
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px;
  font-size: 16px;
  box-shadow: 0 1px 6px rgba(26,54,93,0.04);
  flex: 1 1 160px;
}
.map-snippet {
  background: #F7F7FA;
  border-radius: 9px;
  padding: 11px 17px;
  margin-top: 12px;
  font-size: 15px;
}
/* TABLES FOR CONTACT HOURS & COMPARISON */
table {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(26,54,93,0.04);
  overflow: hidden;
  margin-bottom: 20px;
  font-size: 15px;
}
th, td { border-bottom: 1px solid #E3E3EA; }
tr:last-child td { border-bottom: none; }
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tr { margin-bottom: 16px; }
  td {
    padding: 10px 15px;
    border: none;
    background: none;
    position: relative;
  }
}
/* TESTIMONIALS SLIDER AND RATINGS */
.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
}
.user-ratings {
  color: #1A365D;
  font-size: 18px;
  background: #E6EDD3;
  padding: 12px 18px;
  border-radius: 9px;
  align-self: flex-start;
  margin-bottom: 14px;
  font-family: 'Montserrat', serif;
}
/* FOOTER */
footer {
  background: #fff;
  box-shadow: 0 -2px 8px rgba(26,54,93,0.06);
  margin-top: 80px;
  padding: 40px 0 18px 0;
}
footer .container {
  align-items: flex-start;
  gap: 32px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  margin-bottom: 24px;
}
footer nav a {
  color: #1A365D;
  font-weight: 500;
  font-family: 'Montserrat', serif;
  font-size: 15px;
}
.footer-info {
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 16px;
}
.footer-info > div:first-child img { max-width: 62px; margin-bottom: 6px; }
.footer-info > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-info p {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #60647a;
}
/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -3px 18px rgba(26,54,93,0.11);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 30px;
  font-family: 'Roboto', serif;
  font-size: 16px;
  color: #1A365D;
  animation: cookie-banner-in 0.5s cubic-bezier(.5,.05,.22,1);
}
@keyframes cookie-banner-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 17px;
}
.cookie-btn, .cookie-settings-btn {
  font-family: 'Montserrat', serif;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 22px;
  background: #279C51;
  color: #fff;
  border: none;
  transition: background 0.19s, color 0.19s;
  cursor: pointer;
  margin-left: 0;
}
.cookie-btn.reject {
  background: #1A365D;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #126134;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #3d5574;
}
.cookie-settings-btn {
  background: #fff;
  color: #279C51;
  border: 1.5px solid #CAE8D1;
  transition: background 0.12s, color 0.12s, border 0.12s;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #E6EDD3;
  color: #1A365D;
  border-color: #BFE2C2;
}
/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(26,54,93,0.25);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .23s linear;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 28px rgba(26,54,93,0.18);
  max-width: 430px;
  width: 100%;
  padding: 37px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  font-family: 'Roboto', serif;
  animation: slideInFromBottom .34s cubic-bezier(.5,.21,.2,1);
  position: relative;
  z-index: 1301;
}
@keyframes slideInFromBottom {
  from { transform: translateY(90px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  color: #1A365D;
  font-size: 21px;
  font-family: 'Montserrat', serif;
  margin-bottom: 0;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category label {
  font-size: 16px;
  font-family: 'Roboto', serif;
  color: #222;
}
.cookie-category .switch {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
}
.cookie-category .switch input { opacity: 0; width: 0; height: 0; }
.cookie-category .slider {
  background: #E6EDD3;
  border-radius: 16px;
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background .19s;
}
.cookie-category .slider:before {
  position: absolute;
  content: '';
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1.5px 4px rgba(26,54,93,0.09);
  transition: transform 0.18s;
}
.cookie-category .switch input:checked + .slider {
  background: #279C51;
}
.cookie-category .switch input:checked + .slider:before {
  transform: translateX(20px);
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 13px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  font-size: 26px;
  color: #60647a;
  border-radius: 6px;
  cursor: pointer;
  padding: 4px 8px;
  transition: background .18s;
  z-index: 1;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #E6EDD3;
}
/* RESPONSIVE FLEX AND LAYOUTS */
@media (max-width: 840px) {
  .content-grid, .features-grid, .ranking-teasers, .article-grid, .guides-list, .team-profiles, .news-list {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div, .ranking-teasers > div, .article-grid > div, .guides-list > div, .team-profiles > div, .news-list > div {
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 700px) {
  .container { max-width: 97vw; padding: 0 8px; }
  .footer-info { flex-direction: column; gap: 14px; }
}
@media (max-width: 640px) {
  .section { padding: 26px 7px; margin-bottom: 36px; }
  main>section:first-of-type { margin-top: 18px !important; }
  h1 { font-size: 23px; }
  h2 { font-size: 18px; }
  h3 { font-size: 15px; }
  p, ul, th, td { font-size: 14px; }
  .team-profiles { gap: 12px; }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .content-wrapper { gap: 22px; }
  .testimonials-slider {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 500px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 16px 8px; gap: 14px; font-size: 14px; }
  .cookie-modal { padding: 19px 8px 18px 8px; }
}
/* ANIMATIONS, SHADOWS, AND DETAILS */
.card, .testimonials-slider > div, .features-grid > div, .ranking-teasers > div, .article-grid > div, .guides-list > div, .news-list > div {
  transition: box-shadow 0.2s, transform 0.19s;
}
.card:hover, .features-grid > div:hover, .ranking-teasers > div:hover, .article-grid > div:hover, .news-list > div:hover, .guides-list > div:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 5px 24px rgba(39,156,81,0.11);
}
.cta-btn:active, .cookie-btn:active, .button:active { transform: scale(0.97); }

/* GENERAL SPACING AND HIERARCHY */
main > section { margin-bottom: 60px; }

/* ACCESSIBILITY and INTERACTIONS */
a, button, .cta-btn, .cookie-btn, .cookie-settings-btn { outline: none; }
a:focus-visible, .cta-btn:focus-visible,
.cookie-btn:focus-visible,
.cookie-settings-btn:focus-visible,
.mobile-menu-toggle:focus-visible,
.mobile-menu-close:focus-visible {
  box-shadow: 0 0 0 3px #BFE2C2;
}

/* Add a little more gap for visually separated sections */
main > section + section {
  margin-top: 18px;
}

/* DARKER TEXT ON TESTIMONIALS */
.testimonial-card, .user-ratings {
  color: #1A365D;
  background: #fff;
}

/* ENSURE MINIMAL GAP/MARGIN BETWEEN CARDS */
.card, .testimonial-card, .features-grid > div, .ranking-teasers > div, .article-grid > div, .guides-list > div, .news-list > div, .team-profiles > div {
  margin-bottom: 20px;
}

/* Z-INDEX FOR MODALS AND MENUS */
.mobile-menu { z-index: 1111; }
.cookie-banner { z-index: 1200; }
.cookie-modal-overlay, .cookie-modal { z-index: 1300; }

/* Hide irrelevant scrollbars for overflows */
.mobile-menu, .cookie-modal { -webkit-overflow-scrolling: touch; }
