/* CSS RESET & BASIC NORMALIZATION */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #fff;
  color: #1A2A40;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #2274A5;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1A2A40;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
strong {
  font-weight: 600;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1A2A40;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.2;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

p {
  font-size: 1rem;
  margin-bottom: 16px;
}
span, li {
  font-size: 1rem;
}
.price {
  color: #2274A5;
  font-weight: 600;
  margin-left: 8px;
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* MANDATORY SPACING AND FLEX PATTERNS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(34, 116, 165, 0.08);
  transition: box-shadow 0.2s, transform 0.2s;
  padding: 32px 24px 28px 24px;
}
.card:hover {
  box-shadow: 0 4px 18px rgba(34, 116, 165, 0.12);
  transform: translateY(-2px) scale(1.015);
}
.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: 12px;
  padding: 20px;
  background: #EEF4F7;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(34, 116, 165, 0.06);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: transparent;
}

/* HEADER NAV */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(34,116,165,0.03);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 32px;
}
header a img {
  height: 40px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #1A2A40;
  padding: 4px 0;
  border-radius: 6px;
  position: relative;
  transition: color 0.18s, background 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #2274A5;
  background: #EEF4F7;
}
.cta-btn {
  padding: 10px 22px;
  background: #2274A5;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 16px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(34,116,165,0.06);
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  outline: none;
  display: inline-block;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #1A2A40;
  box-shadow: 0 4px 12px rgba(34,116,165,0.13);
  transform: translateY(-1px) scale(1.03);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #1A2A40;
  cursor: pointer;
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 101;
  transition: background 0.16s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #EEF4F7;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.7,.1,.25,1);
  box-shadow: -8px 0 18px rgba(34,116,165,0.09);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 18px;
  padding: 0 10px;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #1A2A40;
  cursor: pointer;
  z-index: 102;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: 80px;
  padding: 32px 32px 24px 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  color: #1A2A40;
  text-decoration: none;
  padding: 7px 0;
  width: 100%;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: #EEF4F7;
  color: #2274A5;
}

/* Sections and Feature Grid */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 8px;
}
.feature-grid > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 220px;
  min-width: 180px;
  background: #fff;
  padding: 26px 18px 22px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(34,116,165,0.06);
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 18px rgba(34,116,165,0.13);
  transform: translateY(-1px) scale(1.02);
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
}

/* Blog & Guide Previews */
.blog-previews,
.guide-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.blog-post-preview,
.guide-teaser {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(34,116,165,0.08);
  padding: 24px 20px 18px 20px;
  flex: 1 1 280px;
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.17s;
}
.blog-post-preview:hover,
.guide-teaser:hover {
  box-shadow: 0 8px 24px rgba(34,116,165,0.11);
  transform: translateY(-2px) scale(1.017);
}
.blog-post-preview span,
.guide-teaser span {
  color: #2274A5;
  font-size: 0.95rem;
  margin-bottom: 3px;
  font-weight: 500;
}

/* Text Section and List Styling */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-section ul,
.text-section ol {
  margin-bottom: 0;
  margin-top: 6px;
  padding-left: 28px;
}

/* FOOTER */
footer {
  background: #EEF4F7;
  padding: 40px 0 0 0;
  border-top: 1px solid #E0E6EA;
  margin-top: 90px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 24px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #1A2A40;
  font-size: 1rem;
  transition: color 0.16s;
}
.footer-nav a:hover {
  color: #2274A5;
  text-decoration: underline;
}
.footer-brand img {
  height: 37px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #1A2A40;
  font-size: 1rem;
  margin-top: 8px;
}

/* Testimonial Styling (CRITICAL CONTRAST) */
.testimonial-card p {
  color: #1A2A40;
  font-size: 1.06rem;
  margin-bottom: 10px;
  font-style: italic;
}
.testimonial-card span {
  color: #2274A5;
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Buttons and Micro-Interactions */
button, .cta-btn, .cookie-btn {
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s, transform 0.18s;
  outline: none;
}
button:active, .cta-btn:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* COOKIE CONSENT BANNER */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: #fff;
  color: #1A2A40;
  box-shadow: 0 -2px 16px rgba(34,116,165,0.13);
  border-top: 1px solid #E0E6EA;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 32px;
  font-size: 1rem;
  min-height: 70px;
  animation: cookieSlideIn 0.5s cubic-bezier(.69,.06,.32,1);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-consent__message {
  flex: 1 1 200px;
  max-width: 660px;
}
.cookie-btn {
  padding: 8px 20px;
  margin-right: 12px;
  border-radius: 5px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  background: #EEF4F7;
  color: #2274A5;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(34,116,165,0.06);
}
.cookie-btn.accept {
  background: #2274A5;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  border: 1px solid #2274A5;
  color: #1A2A40;
}
.cookie-btn.settings {
  background: #EEF4F7;
  color: #1A2A40;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: #1A2A40;
  color: #fff;
}

/* COOKIE CONSENT MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(26,42,64,0.16);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeModalBg 0.28s;
}
@keyframes fadeModalBg {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal {
  background: #fff;
  color: #1A2A40;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(34,116,165,0.19);
  max-width: 430px;
  width: 94vw;
  padding: 34px 24px 24px 24px;
  position: relative;
  animation: modalSlideIn 0.33s cubic-bezier(.6,.04,.29,1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1350;
}
@keyframes modalSlideIn {
  from { transform: translateY(60px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 20px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #1A2A40;
  cursor: pointer;
}
.cookie-modal h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #2274A5;
}
.cookie-options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category .toggle {
  margin-left: auto;
  accent-color: #2274A5;
  width: 20px;
  height: 20px;
}
.cookie-category.essential .toggle {
  accent-color: #E2E5EA;
  pointer-events: none;
  opacity: 0.7;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* RESPONSIVENESS */
@media (max-width: 1100px) {
  .container {
    max-width: 94vw;
  }
  header .container {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 20px;
  }
  .blog-previews,
  .guide-list {
    gap: 14px;
  }
  footer .container {
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .section {
    padding: 30px 8px;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .blog-previews,
  .guide-list {
    flex-direction: column;
    gap: 10px;
  }
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    padding: 15px 10px;
  }
}
@media (max-width: 560px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .blog-post-preview, .guide-teaser, .feature-grid > div {
    min-width: 84vw;
    padding: 16px 8px 12px 8px;
  }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; }
}

/* UTILITIES */
.mt-3 { margin-top: 12px; }
.mb-3 { margin-bottom: 12px; }
.mt-4 { margin-top: 18px; }
.mb-4 { margin-bottom: 18px; }

/* Hide outline for mouse users (show for keyboard users) */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #2274A5;
  outline-offset: 2px;
}

/* Misc */
::-webkit-scrollbar {
  width: 10px; background: #EEF4F7;
}
::-webkit-scrollbar-thumb {
  background: #E0E6EA; border-radius: 8px;
}

/* --- CUSTOM CLASSES FOR HTML STRUCTURE --- */
.guide-list ul {
  margin-top: 20px;
  margin-bottom: 14px;
}
.guide-list .cta-btn {
  margin-top: 8px;
}

.text-section a {
  color: #2274A5;
}

/* Misc tweaks for form (if added later) */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #E0E6EA;
  margin-bottom: 12px;
  background: #F9FBFC;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #2274A5;
}

/* Accessibility: High contrast on testimonial card text (enforce override) */
.testimonial-card, .testimonial-card * {
  color: #1A2A40 !important;
  background: #EEF4F7 !important;
}

/* Keep proper margin between cards and sections (CRITICAL) */
.card, .testimonial-card, .feature-grid > div, .blog-post-preview, .guide-teaser {
  margin-bottom: 20px;
}
.section:not(:last-child) {
  margin-bottom: 60px;
}

/* Prevent content overlapping */
main, section, .content-wrapper, .container {
  min-width: 0;
  word-break: break-word;
}

/* --- END OF CSS --- */
