/* =====================================================================
   CSS RESET AND NORMALIZATION (Modern Reset + Font Rendering)
====================================================================== */
html {
  box-sizing: border-box;
  font-size: 100%;
  font-family: 'Open Sans', Arial, sans-serif;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #f7f9fa;
  color: #243447;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #23527C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #179E5B;
  outline: none;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
ul ul, ol ol {
  margin-bottom: 0;
}
strong {
  font-weight: 600;
  color: #23527C;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #23527C;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 0.7em; }
h2 { font-size: 2rem; margin-bottom: 0.7em; }
h3 { font-size: 1.25rem; }
h4, h5, h6 { font-size: 1.1rem; }

p, li {
  font-size: 1rem;
  margin-bottom: 14px;
}
p:last-child, li:last-child { margin-bottom: 0; }

/* =====================================================================
   GENERAL STRUCTURE AND LAYOUT
====================================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(34,82,124,.08);
  transition: box-shadow 0.2s;
}
.section:last-child {
  margin-bottom: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 6px 0 rgba(34,82,124,.08);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  transition: box-shadow 0.25s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 6px 18px 0 rgba(34,82,124,.15);
  transform: translateY(-2px);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =====================================================================
   HEADER & NAVIGATION
====================================================================== */
header {
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(34,82,124,.07);
  padding: 0;
  z-index: 103;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
header img {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #23527C;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.21s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #ECF3FA;
  color: #179E5B;
}
.main-nav .cta-btn {
  background: #23527C;
  color: #fff;
  border-radius: 8px;
  padding: 10px 22px;
  margin-left: 10px;
  font-weight: 700;
  box-shadow: 0 2px 10px 0 rgba(34,82,124,.10);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  letter-spacing: .08em;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: #179E5B;
  color: #fff;
  box-shadow: 0 4px 20px 0 rgba(23,158,91,.12);
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: #23527C;
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 8px;
  padding: 6px 16px;
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.18s;
  z-index: 201;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #179E5B;
  color: #fff;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,82,124,0.95);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.87,-0.41,.19,1.44);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 22px 24px 0 0;
  cursor: pointer;
  z-index: 5010;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #89C2E6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 40px 0 0 40px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.2rem;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.15s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #179E5B;
  color: #fff;
}

/* =====================================================================
   HERO & CTA BUTTONS
====================================================================== */
.section .cta-btn,
.content-wrapper .cta-btn {
  display: inline-block;
  background: #23527C;
  color: #fff;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .05em;
  margin-top: 10px;
  box-shadow: 0 2px 10px 0 rgba(34,82,124,.09);
  transition: background 0.24s, box-shadow 0.18s, color 0.24s, transform 0.15s;
  text-align: center;
  border: none;
  cursor: pointer;
}
.section .cta-btn:hover,
.section .cta-btn:focus,
.content-wrapper .cta-btn:hover,
.content-wrapper .cta-btn:focus {
  background: #179E5B;
  color: #fff;
  box-shadow: 0 8px 32px 0 rgba(23,158,91,.18);
  transform: translateY(-2px) scale(1.03);
}

.subheadline {
  font-size: 1.15rem;
  color: #476A8A;
  margin-bottom: 22px;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* =====================================================================
   FEATURES, SERVICES, PLANS, TESTIMONIALS
====================================================================== */
.feature-grid, .service-list, .pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}

.feature {
  background: #F7F9FA;
  border-radius: 14px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
  flex: 1 1 220px;
  box-shadow: 0 1px 4px 0 rgba(34,82,124,.07);
  text-align: center;
  transition: box-shadow 0.2s, transform 0.14s;
}
.feature img {
  margin-bottom: 16px;
  height: 48px;
}
.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.feature p {
  font-size: 1rem;
  color: #425864;
}
.feature:hover {
  box-shadow: 0 4px 18px 0 rgba(23,158,91,.09);
  transform: translateY(-2px);
}

.service {
  background: #fff;
  border-radius: 14px;
  flex: 1 1 220px;
  box-shadow: 0 1px 6px 0 rgba(34,82,124,.07);
  padding: 22px 20px;
  min-width: 200px;
  transition: box-shadow 0.24s, transform 0.16s;
}
.service h3 {
  font-size: 1.09rem;
  margin-bottom: 8px;
  color: #23527C;
}
.service:hover {
  box-shadow: 0 8px 24px 0 rgba(23,158,91,.11);
  transform: translateY(-2px);
}

.plan {
  background: #F2F6FA;
  border-radius: 12px;
  padding: 30px 28px 32px 28px;
  box-shadow: 0 1px 6px 0 rgba(34,82,124,.07);
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
  border: 2px solid #e7ecf3;
  transition: border 0.2s, box-shadow 0.2s, transform 0.14s;
}
.plan h2 {
  font-size: 1.2rem;
  margin-bottom: 2px;
}
.plan p {
  color: #179E5B;
  font-weight: 700;
  font-size: 1.15rem;
}
.plan ul {
  margin: 0;
  padding-left: 18px;
  color: #425864;
}
.plan:hover, .plan:focus {
  border: 2px solid #179E5B;
  box-shadow: 0 8px 22px 0 rgba(23,158,91,.11);
  transform: translateY(-2px);
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  background: #ECF3FA;
  border-radius: 13px;
  box-shadow: 0 1px 4px 0 rgba(35,82,124,0.07);
  color: #243447;
  font-size: 1.06rem;
}
.testimonial-card p {
  font-style: italic;
  color: #243447;
  margin-bottom: 12px;
}
.testimonial-card span {
  font-size: 1rem;
  color: #179E5B;
  font-weight: 600;
}
.testimonial-card strong {
  color: #23527C;
}

/* =====================================================================
   FOOTER
====================================================================== */
footer {
  background: #23527C;
  color: #fff;
  padding: 36px 0 22px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1rem;
}
.footer-nav a {
  color: #fff;
  opacity: 0.93;
  transition: color 0.18s, opacity 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #179E5B;
  opacity: 1;
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 1rem;
  color: #ECF3FA;
}
.contact-info img {
  height: 20px;
  width: 20px;
  vertical-align: middle;
  margin-right: 3px;
}

/* =====================================================================
   COOKIE BANNER & SETTINGS MODAL
====================================================================== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: #fff;
  color: #243447;
  box-shadow: 0 6px 24px 0 rgba(23,158,91,.14);
  border-radius: 12px;
  padding: 24px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 500px;
  margin: 0 auto;
  animation: cookieBannerSlideIn 0.45s cubic-bezier(.62,.02,.53,.98);
}
@keyframes cookieBannerSlideIn {
  from { opacity: 0; transform: translateY(80px); }
  to   { opacity: 1; transform: translateY(0);   }
}
.cookie-banner p {
  margin-bottom: 8px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 9px 20px;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner .accept-btn {
  background: #179E5B;
  color: #fff;
}
.cookie-banner .accept-btn:hover, .cookie-banner .accept-btn:focus {
  background: #23527C;
  color: #fff;
}
.cookie-banner .reject-btn {
  background: #eaeaec;
  color: #243447;
}
.cookie-banner .reject-btn:hover, .cookie-banner .reject-btn:focus {
  background: #f3f6fa;
  color: #23527C;
}
.cookie-banner .settings-btn {
  background: #fff;
  border: 1.5px solid #179E5B;
  color: #179E5B;
}
.cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  background: #179E5B;
  color: #fff;
}

/* Cookie settings modal (for eg.: .cookie-modal) */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 12000;
  background: rgba(35, 82, 124, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.28s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #243447;
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(34,82,124,0.16);
  padding: 30px 36px 30px 36px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideDownModal 0.33s;
}
@keyframes slideDownModal {
  from { opacity: 0; transform: translateY(-44px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-categories label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-categories input[type="checkbox"] {
  width: 20px;
  height: 20px;
}
.cookie-modal-content .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal-content button {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 9px 20px;
  transition: background 0.17s, color 0.17s;
}
.cookie-modal-content .save-btn {
  background: #179E5B;
  color: #fff;
}
.cookie-modal-content .save-btn:hover, .cookie-modal-content .save-btn:focus {
  background: #23527C;
  color: #fff;
}
.cookie-modal-content .cancel-btn {
  background: #EAEAEA;
  color: #243447;
}
.cookie-modal-content .cancel-btn:hover, .cookie-modal-content .cancel-btn:focus {
  background: #f3f6fa;
  color: #23527C;
}

/* =====================================================================
   GENERAL FORMS & ELEMENTS
====================================================================== */
input, button, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}

input[type="text"], input[type="email"], input[type="password"], textarea, select {
  font-size: 1rem;
  padding: 10px 12px;
  border: 1.5px solid #D9E4ED;
  border-radius: 8px;
  background: #fafbfd;
  color: #243447;
  transition: border 0.18s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #179E5B;
  outline: none;
  box-shadow: 0 2px 8px 0 rgba(23,158,91,0.08);
}

button {
  cursor: pointer;
  outline: none;
}

/* =====================================================================
   TEXT BLOCKS, TITLES, SECTION PATTERNS
====================================================================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* =====================================================================
   UTILITIES AND ANIMATION EFFECTS
====================================================================== */
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.rounded { border-radius: 12px !important; }
.shadow {
  box-shadow: 0 2px 10px 0 rgba(34,82,124,.10) !important;
}

/* =====================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST)
====================================================================== */
@media (max-width: 1000px) {
  .container { max-width: 98vw; }
  .feature-grid, .service-list, .pricing-table {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .container,
  header .container,
  footer .container {
    padding-left: 12px; padding-right: 12px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  .content-wrapper {
    gap: 14px;
  }
  header .container {
    min-height: 56px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-nav, .contact-info {
    flex-direction: column;
    gap: 10px;
    font-size: 0.97rem;
  }
  .feature-grid, .service-list, .pricing-table {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .plan, .feature, .service, .card {
    padding: 18px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    gap: 12px;
  }
}
@media (max-width: 530px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.15rem; }
  .cookie-banner {
    max-width: 96vw;
    padding: 15px 8px 10px 8px;
  }
}

/* ================= Custom scrollbar for modal/mobile menu =================== */
.mobile-menu, .cookie-modal-content {
  scrollbar-width: thin;
  scrollbar-color: #23527C #E0E9F2;
}
.mobile-menu::-webkit-scrollbar,
.cookie-modal-content::-webkit-scrollbar {
  width: 7px;
  background: #E0E9F2;
}
.mobile-menu::-webkit-scrollbar-thumb,
.cookie-modal-content::-webkit-scrollbar-thumb {
  background: #23527C;
  border-radius: 20px;
}

/* =====================================================================
   PRINT STYLE
====================================================================== */
@media print {
  * { background: #fff !important; color: #111 !important; box-shadow: none !important; }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
}
