/* =====================================================
  CSS RESET & NORMALIZATION
===================================================== */
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, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F6F7F9;
  color: #2D3A4D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #2D3A4D;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #89B530;
  outline-offset: 2px;
}
button, input, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  color: inherit;
}
button {
  cursor: pointer;
}
strong, b {
  font-weight: 700;
}
ul, ol {
  list-style: disc;
  margin-left: 24px;
}
hr {
  border: 0;
  height: 1px;
  background: #e6e9ef;
}

/* =====================================================
  GLOBAL TYPOGRAPHY
===================================================== */
h1{
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #2D3A4D;
  margin-bottom: 24px;
  line-height: 1.2;
}
h2{
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #2D3A4D;
  margin-bottom: 20px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2D3A4D;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 10px;
}
p {
  margin-bottom: 18px;
}
blockquote {
  font-style: italic;
  background: #eaf1fb;
  border-left: 4px solid #89B530;
  color: #264064;
  padding: 18px 28px;
  margin: 36px 0;
  border-radius: 8px;
}

/* =====================================================
  LAYOUT CONTAINERS & SECTIONS
===================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.hero-section {
  justify-content: center;
  align-items: flex-start;
  padding-top: 32px;
  padding-bottom: 32px;
}
.newsletter-section {
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Flexbox grid patterns */
.features-grid, .reviews-snippets, .guides-preview, .reviews-list, .guides-list, .news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 18px;
}
.features-grid > div, .reviews-snippets > div, .review-card, .guide-card, .news-item, .guide-preview, .review-snippet {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(45,58,77,0.07);
  padding: 28px 24px 20px 24px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  transition: box-shadow 0.18s;
}
.features-grid > div:hover, .reviews-snippets > div:hover, .review-card:hover, .guide-card:hover, .news-item:hover, .guide-preview:hover, .review-snippet:hover {
  box-shadow: 0 4px 20px rgba(45, 58, 77, 0.09);
}

.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;
}

/* Testimonials and rating summary */
.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 18px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F6F7F9;
  border: 1px solid #dbe3ef;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(45,58,77,0.04);
  color: #2D3A4D;
  font-size: 1rem;
  min-width: 220px;
  flex: 1 1 320px;
  margin-bottom: 20px;
}
.testimonial-card p {
  margin: 0 0 6px 0;
}
.rating-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.10rem;
  color: #2D3A4D;
  font-weight: 500;
  margin-top: 8px;
}

/* Card containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(45,58,77,0.08);
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 250px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Feature item for future use */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Cookie Banner/Modal Layout */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid #dbe3ef;
  box-shadow: 0 -2px 25px rgba(45,58,77,0.07);
  z-index: 12000;
  padding: 22px 20px 18px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 1rem;
  justify-content: center;
  transition: transform 0.30s cubic-bezier(0.4,0.3,0.2,1), opacity 0.20s;
}
.cookie-banner[data-hidden="true"] {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  z-index: 13000;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(45,58,77,0.14);
  padding: 40px 24px 24px 24px;
  width: 98%;
  max-width: 420px;
  min-width: 260px;
  opacity: 1;
  transition: opacity 0.20s, transform 0.22s;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal[data-hidden="true"] {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-50%) scale(0.93);
}
.cookie-modal-categories {
  margin: 20px 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category label {
  flex: 1;
  font-weight: 500;
}
.cookie-modal .cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #2D3A4D;
}
.cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: transparent;
  font-size: 1.4rem;
  border: none;
  color: #2D3A4D;
  cursor: pointer;
  z-index: 2;
}


/* =====================================================
  BUTTONS
===================================================== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.8em 2.2em;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.14s, box-shadow 0.14s;
  box-shadow: 0 1px 3px rgba(45,58,77,0.08);
  min-width: 142px;
  margin-right: 12px;
  margin-bottom: 10px;
}
.btn-primary {
  background: #2D3A4D;
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #22314e;
  color: #fff;
  box-shadow: 0 2px 10px rgba(45,58,77,0.16);
}
.btn-secondary {
  background: #fff;
  color: #2D3A4D;
  border: 2px solid #2D3A4D;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #2D3A4D;
  color: #fff;
}
.btn-success {
  background: #89B530;
  color: #fff !important;
  border: none;
}
.btn-success:hover {
  background: #709e28;
}
.btn-outline {
  background: #fff;
  border: 2px solid #89B530;
  color: #89B530;
}
.btn-outline:hover {
  background: #ecfae0;
}

.btn-cookie-settings {
  background: #fff;
  border: 2px solid #89B530;
  color: #89B530;
  border-radius: 5px;
  font-size: 1em;
  font-weight: 600;
  padding: 0.6em 1.4em;
  margin: 3px 6px 3px 0;
  transition: background 0.14s, color 0.13s;
}
.btn-cookie-settings:hover,
.btn-cookie-settings:focus {
  background: #e6f4c2;
  color: #628923;
}

/* Menu Buttons for Cookie Banner */
.btn-cookie-accept {
  background: #2D3A4D;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: 600;
  padding: 0.6em 1.4em;
  margin: 3px 6px 3px 0;
}
.btn-cookie-accept:hover, .btn-cookie-accept:focus {
  background: #22314e;
}
.btn-cookie-reject {
  background: #fff;
  color: #2D3A4D;
  border: 2px solid #2D3A4D;
}
.btn-cookie-reject:hover, .btn-cookie-reject:focus{
  background: #f2f4f8;
  color: #22314e;
}

/* General button reset for forms */
input[type="submit"], input[type="button"] {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* =====================================================
  HEADER & NAVIGATION
===================================================== */
header {
  background: #fff;
  padding: 20px 0 20px 0;
  box-shadow: 0 4px 16px rgba(45,58,77,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 11000;
}
header > a img {
  height: 38px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #2D3A4D;
  padding: 7px 12px;
  border-radius: 4px;
  transition: background 0.16s, color 0.13s;
}
header nav a:hover,
header nav a:focus {
  background: #ecf2fc;
  color: #89B530;
}
header .btn-primary {
  margin-left: 28px;
  margin-bottom: 0;
}
.mobile-menu-toggle {
  background: #2D3A4D;
  color: #fff;
  font-size: 1.65rem;
  border: none;
  border-radius: 5px;
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 18px;
  transition: background 0.17s;
  z-index: 12001;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #22314e;
  color: #fff;
}

/* MOBILE NAVIGATION STYLES */
.mobile-menu {
  position: fixed;
  z-index: 13000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(45,58,77,0.98);
  box-shadow: 0 8px 28px rgba(45,58,77,0.11);
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(0.4,0.3,0.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 20px;
  top: 18px;
  background: transparent;
  font-size: 2.2rem;
  color: #fff;
  border: none;
  z-index: 3;
  cursor: pointer;
  transition: color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #89B530;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 60px 0 0 38px;
  width: 100%;
  gap: 18px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 5px;
  padding: 10px 16px;
  width: fit-content;
  transition: background 0.14s, color 0.11s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #89B530;
  color: #21253A;
}

/* Hide header nav and show burger on mobile */
@media (max-width: 900px) {
  header nav, header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

/* =====================================================
  FORMS, INPUTS, SEARCH, FILTERS
===================================================== */
input[type="search"],
input[type="text"],
select {
  border: 1px solid #e6e9ef;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 1rem;
  background: #fff;
  margin-right: 10px;
  margin-bottom: 12px;
  color: #2D3A4D;
  font-family: 'Roboto', Arial, sans-serif;
  transition: border 0.13s;
}
input[type="search"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border: 1.7px solid #89B530;
  background: #f8fcf2;
}
.filters,
.contact-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 4px 0 18px 0;
}
.filters label {
  font-weight: 500;
  font-size: 1rem;
  margin-right: 8px;
  color: #2D3A4D;
}

.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.popular-tags span {
  background: #eaf1fb;
  color: #2D3A4D;
  font-size: 0.95em;
  border-radius: 20px;
  padding: 5px 14px;
  font-weight: 500;
  transition: background 0.14s;
  cursor: pointer;
}
.popular-tags span:hover {
  background: #89B530;
  color: #fff;
}

/* =====================================================
  SPECIAL SECTIONS & CTAs
===================================================== */
.contact-details > div {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-right: 28px;
  font-size: 1.09rem;
  margin-bottom: 10px;
}
.contact-details > div img {
  width: 22px;
  height: 22px;
}
.contact-cta {
  margin-top: 32px;
  background: #ecf2fc;
  border-left: 4px solid #2D3A4D;
  padding: 28px 32px;
  border-radius: 10px;
}
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  padding: 16px;
  background: #F6F7F9;
  border-radius: 11px;
  border: 1px solid #dbe3ef;
  color: #2D3A4D;
  gap: 5px;
}
.map-placeholder img {
  width: 70px;
  height: 70px;
}

.trends-highlight {
  background: #ecf2fc;
  border-radius: 10px;
  padding: 24px 32px;
  margin-top: 32px;
  margin-bottom: 14px;
  font-size: 1.09rem;
}
.trends-highlight strong {
  color: #2D3A4D;
}
.trends-highlight ul {
  margin-top: 6px;
  margin-bottom: 12px;
  padding-left: 18px;
}

/* =====================================================
  FOOTER
===================================================== */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #2D3A4D;
  color: #fff;
  padding: 46px 20px 28px 20px;
  gap: 16px;
  margin-top: 60px;
}
.footer-logo img {
  height: 40px;
  margin-bottom: 9px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 9px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.93;
  margin-bottom: 7px;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #89B530;
  opacity: 1;
}
.footer-contact {
  font-size: 0.99rem;
  text-align: center;
  opacity: 0.92;
}

/* =====================================================
  RESPONSIVE DESIGN
===================================================== */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.45rem;
  }
  h3 {
    font-size: 1.13rem;
  }
  .section {
    margin-bottom: 38px;
    padding: 24px 6px;
  }
  .features-grid, .reviews-snippets, .news-list, .guides-preview, .reviews-list, .guides-list, .testimonials-list {
    gap: 14px;
  }
  .features-grid > div, .reviews-snippets > div, .review-card, .guide-card, .news-item, .guide-preview, .review-snippet, .testimonial-card {
    min-width: 128px;
    padding: 16px 11px 11px 13px;
  }
  .content-wrapper, .newsletter-section {
    gap: 14px;
    padding: 0;
  }
  .hero-section {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .contact-cta {
    padding: 14px 7px;
  }
  .trends-highlight {
    padding: 14px 6px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 9px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* Mobile nav spacing */
@media (max-width: 440px) {
  .mobile-nav{
    margin-left: 17px;
  }
}
@media (max-width: 500px) {
  .footer-nav{
    gap: 13px;
  }
}
@media (max-width: 400px) {  
  .cookie-modal {
    padding: 24px 8px 16px 8px;
    min-width: 120px;
    max-width: 98vw;
  }
}

/* =====================================================
  TRANSITIONS & MICROINTERACTIONS
===================================================== */
.btn-primary, .btn-secondary, .btn-success, .btn-outline, .btn-cookie-accept, .btn-cookie-reject, .btn-cookie-settings {
  transition: background 0.14s, color 0.13s, border 0.1s;
}
.features-grid > div, .reviews-snippets > div, .review-card, .guide-card, .news-item, .guide-preview, .review-snippet, .testimonial-card {
  transition: box-shadow 0.16s, transform 0.16s;
}
.features-grid > div:hover, .reviews-snippets > div:hover, .review-card:hover, .guide-card:hover, .news-item:hover, .review-snippet:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 6px 20px rgba(45,58,77,0.10);
}

.cookie-banner, .cookie-modal {
  transition: transform 0.30s cubic-bezier(0.4,0.3,0.2,1), opacity 0.14s;
}

/* ======================
 UTILITIES
======================== */
.bg-accent {
  background: #F6F7F9;
}
.bg-secondary {
  background: #89B530;
  color: #fff;
}
.text-primary {
  color: #2D3A4D;
}
.text-secondary {
  color: #89B530;
}
.text-muted {
  color: #6b7b90;
}
.rounded {
  border-radius: 12px;
}
.shadow-sm {
  box-shadow: 0 1px 4px rgba(45,58,77,0.06);
}

/* =========================
  MISC: Accessibility
=========================== */
[tabindex]:focus {
  outline: 2px solid #89B530;
  outline-offset: 3px;
}


/*
===============================================
 COOKIE BANNER (for direct HTML injection)
===============================================
*/
.cookie-banner {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-banner strong {
  color: #2D3A4D;
}


/* ===============
   Hide Print nav for mobile
================ */
@media print {
  header, .mobile-menu, .mobile-menu-toggle, footer, .cookie-banner {
    display: none !important;
  }
}
