/* ==== CSS RESET & NORMALIZE ==== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #fff;
  color: #234267;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #234267;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 12px;
}
p, ul, ol {
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 24px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #234267;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #5CB85C;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}
:focus {
  outline: 2px solid #5CB85C;
  outline-offset: 2px;
}

/* ==== BRAND VARIABLES (STATIC AS FALLBACK) ==== */
:root {
  --color-primary: #234267;
  --color-secondary: #5CB85C;
  --color-accent: #EDEDED;
  --color-bg: #fff;
  --color-dark: #15263b;
  --color-light: #F8FBFF;
  --color-error: #F44336;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius: 16px;
  --shadow-lg: 0 6px 24px rgba(35,66,103,0.11);
  --shadow-card: 0 2px 8px rgba(35,66,103,0.09);
  --gap: 24px;
}

/* ==== LAYOUT / CONTAINER ==== */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section, section {
    padding: 28px 10px;
    margin-bottom: 32px;
  }
}

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

/* ===== HEADER NAVIGATION ==== */
header {
  background: var(--color-bg);
  box-shadow: 0 2px 8px rgba(35,66,103,0.04);
  position: sticky;
  top: 0;
  z-index: 99;
  width: 100%;
  padding: 0;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 18px 0;
}
header nav a img {
  height: 38px;
  width: auto;
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width: 992px) {
  header nav {
    gap: 10px;
    font-size: 0.96rem;
  }
}
/* Hide navigation on mobile */
@media (max-width: 900px) {
  header nav {
    display: none;
  }
}
.cta-primary {
  background: var(--color-secondary);
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(35,66,103,0.18);
  font-size: 1.1rem;
  margin-left: 20px;
  transition: background 0.19s, box-shadow 0.18s, transform 0.14s;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #449d44;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 18px rgba(35,66,103,0.23);
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
  font-size: 2.3rem;
  color: var(--color-primary);
  background: transparent;
  border: none;
  margin-left: auto;
  padding: 8px 16px;
  z-index: 101;
  border-radius: 8px;
  transition: background 0.14s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 5px 32px rgba(35,66,103,0.14);
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.52,.05,.83,.98);
  display: flex;
  flex-direction: column;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--color-secondary);
  align-self: flex-end;
  margin: 18px 24px 0 0;
  border-radius: 50%;
  background: var(--color-accent);
  padding: 6px 14px;
  transition: background 0.16s, color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 40px 0 0 0;
  align-items: flex-start;
  padding: 0 20px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 14px 8px;
  border-radius: 10px;
  margin: 0 0 4px 0;
  width: 100%;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: var(--color-accent);
}

@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ==== HERO BOLD STYLING ==== */
.hero {
  background: var(--color-primary);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 60px 0 48px 0;
}
.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 900;
  text-shadow: 0 4px 24px rgba(35,66,103,0.15);
  margin-bottom: 20px;
  line-height: 1.13;
}
.hero p {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 32px;
  max-width: 700px;
}
.hero .cta-primary {
  margin-left: 0;
  margin-top: 8px;
  font-size: 1.2rem;
  font-weight: 900;
  padding: 18px 38px;
}
@media (max-width: 768px) {
  .hero {
    padding: 40px 0 28px 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* ==== FLEXBOX PATTERNS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  min-width: 220px;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(35,66,103,0.06);
  margin-bottom: 24px;
  border-left: 5px solid var(--color-secondary);
  min-width: 220px;
  max-width: 550px;
}
.testimonial-card p {
  color: #234267;
  font-size: 1.1rem;
  font-weight: 600;
}
.testimonial-card span {
  color: #555;
  font-size: 1rem;
  font-weight: 700;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === FEATURE GRID === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--color-accent);
  border-radius: var(--radius);
  padding: 24px 18px 20px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  box-shadow: 0 2px 10px rgba(35,66,103,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.13s, box-shadow 0.16s;
}
.feature-grid > div:hover,
.feature-grid > div:focus-within {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 32px rgba(35,66,103,0.11);
}
.feature-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
}
.feature-grid h3 {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--color-primary);
}
.feature-grid p {
  color: #333;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 20px;
  }
  .feature-grid > div {
    min-width: 150px;
    padding: 18px 10px 18px 10px;
  }
}
@media (max-width: 600px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div {
    width: 100%;
    min-width: 0;
  }
}

/* ==== TEXT SECTIONS ==== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.text-section img {
  display: inline;
  vertical-align: bottom;
  margin-right: 6px;
  height: 1.1em;
}

/* ==== BUTTONS & INTERACTIVE ==== */
button, .cta-primary {
  transition: background 0.14s, color 0.14s, box-shadow 0.17s, transform 0.14s;
}
button:active, .cta-primary:active {
  transform: scale(0.97);
}
/* Customize checkboxes for filter UI */
input[type=checkbox] {
  accent-color: var(--color-secondary);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  margin-right: 7px;
}

/* ==== CARDS ==== */
ul > li, ol > li {
  margin-bottom: 14px;
}
ul > li:last-child, ol > li:last-child {
  margin-bottom: 0;
}

/* ==== FOOTER ==== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 48px 0 18px 0;
  margin-top: 60px;
  box-shadow: 0 -4px 14px rgba(35,66,103,0.07);
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer a {
  color: #fff;
  font-weight: 700;
  opacity: 0.92;
  transition: color 0.14s, opacity 0.14s;
  margin-right: 18px;
}
footer a:hover, footer a:focus {
  color: var(--color-secondary);
  opacity: 1;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
footer img {
  height: 36px;
  width: auto;
  margin-bottom: 10px;
}
footer .text-section {
  color: #BACFE2;
  font-size: 0.96rem;
}
footer .social-links {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
}
footer .social-links a img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
  transition: box-shadow 0.14s;
}
footer .social-links a:hover img {
  box-shadow: 0 4px 16px var(--color-secondary);
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  footer {
    text-align: left;
    padding: 28px 0 14px 0;
  }
}

/* ==== VISUAL GEOMETRY ==== */
section, .card, .feature-grid > div, .testimonial-card {
  border-radius: var(--radius);
}

/* ==== SPACING & GAPS ==== */
@media (max-width: 768px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 14px;
  }
}

/* ==== TYPOGRAPHY SCALE ==== */
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.06rem; }
}

/* ==== HOVER/FOCUS EFFECTS ==== */
.card,
.feature-grid > div,
.testimonial-card {
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 10px 36px rgba(35,66,103,0.13);
  transform: translateY(-4px) scale(1.01);
}

/* ==== BLOG/INDEX CARD LIST ==== */
ul > li {
  background: var(--color-accent);
  border-radius: 13px;
  padding: 18px 14px 16px 14px;
  box-shadow: 0 2px 8px rgba(35,66,103,0.04);
  margin-bottom: 18px;
  color: #234267;
  font-size: 1rem;
}
ul > li h2, ul > li h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

/* ==== COOKIE CONSENT ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #fff;
  color: #234267;
  border-top: 4px solid var(--color-secondary);
  box-shadow: 0 -1px 14px rgba(35,66,103,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 12px 18px 12px;
  font-size: 1rem;
  animation: fadeInUp 0.6s cubic-bezier(.48,.09,.82,.97);
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(48px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  margin-top: 3px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(35,66,103,0.06);
  padding: 10px 30px;
  font-size: 1rem;
  transition: background 0.14s, color 0.14s, transform 0.14s;
}
.cookie-banner .accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner .accept:hover {
  background: #378d37;
}
.cookie-banner .reject {
  background: #fff;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
}
.cookie-banner .reject:hover {
  background: var(--color-accent);
}
.cookie-banner .settings {
  background: var(--color-accent);
  color: #234267;
  border: 2px solid transparent;
}
.cookie-banner .settings:hover {
  border: 2px solid var(--color-secondary);
}

/* ==== COOKIE MODAL POPUP ==== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: rgba(35,66,103,0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.31s cubic-bezier(.48,.09,.82,.97);
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #234267;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(35,66,103,0.23);
  padding: 38px 28px 30px 28px;
  max-width: 98vw;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  animation: scaleIn 0.19s cubic-bezier(.48,.09,.82,.97);
}
@keyframes scaleIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  color: var(--color-primary);
  font-size: 1.26rem;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-secondary);
}
.cookie-category.essential {
  color: #999;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 13px;
}
.cookie-modal-close {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  align-self: flex-end;
  margin-bottom: -18px;
  margin-top: -19px;
  margin-right: -16px;
  padding: 7px 11px;
  transition: background 0.12s, color 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 600px) {
  .section, section { padding: 12px 3px; }
  .hero { padding: 22px 0; }
  .feature-grid > div, .testimonial-card, .card { padding: 12px 8px; }
  .cookie-banner {
    padding: 16px 4px 14px 4px;
    font-size: 0.94rem;
  }
  .cookie-modal-content {
    padding: 16px 3px 14px 8px;
    width: 98vw;
    min-width: 0;
  }
  h1, h2, h3 { margin-bottom: 10px; }
}

/* ==== MISC BOLD MODERN ==== */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: #fff;
}
::selection {
  background: var(--color-secondary);
  color: #fff;
}

/* ==== ANIMATIONS ==== */
.cta-primary,
button,
.feature-grid > div,
.testimonial-card,
.card {
  transition: background 0.12s, color 0.12s, transform 0.13s, box-shadow 0.13s;
}
