/* --- CSS RESET & BASE --- */
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,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: #F8FAFB;
  color: #222;
  scroll-behavior: smooth;
}
body {
  color: #234;
  background: #F8FAFB;
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: inherit; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- FONT IMPORTS (fallback ready) --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

/* --- COLOR VARIABLES & SYSTEM Fallbacks --- */
:root {
  --brand-primary: #194064;
  --brand-secondary: #61B9A8;
  --brand-accent: #F0F4F8;
  --brand-bg: #F8FAFB;
  --brand-text: #234;
  --brand-grey: #E2E8F0;
  --brand-success: #3EC590;
  --brand-danger: #D0826A;
  --shadow-xs: 0 1px 2px rgba(40,60,90,0.06);
  --shadow: 0 4px 20px 0 rgba(25,64,100,0.08);
  --radius: 12px;
}

/* --- TYPOGRAPHY --- */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.2;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 18px;
  margin-top: 0;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-secondary);
  margin-bottom: 12px;
}

p, li, blockquote {
  font-size: 1rem;
  color: var(--brand-text);
}
.subheadline,
.cta-text {
  font-size: 1.125rem;
  color: var(--brand-secondary);
  margin-bottom: 22px;
  font-weight: 500;
  line-height: 1.5;
}

blockquote {
  font-style: italic;
  color: var(--brand-primary);
  margin-bottom: 8px;
  quotes: "\201C" "\201D";
}
blockquote:before { content: open-quote; font-size:1.4em; color: var(--brand-accent); }
blockquote:after { content: close-quote; font-size:1.4em; color: var(--brand-accent); }

strong { font-weight: 700; }
em { font-style: italic; }

/* Typography Spacing */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.6em;
}
p { margin-bottom: 1.2em; }

/* --- CONTAINER & WRAPPERS --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
}

/* --- BASIC SECTIONS & LAYOUTS --- */
section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  margin-bottom: 60px;
  padding: 40px 20px;
}
section.hero {
  background: var(--brand-accent);
  box-shadow: none;
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 60px 20px 40px 20px;
}

.section { /* if used as .section */
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- FLEX LAYOUT COMPONENTS --- */
/* 1. For content cards/section lists */
.card-container,
.feature-grid, /* mapped to feature/benefit/process steps */
.service-list,
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}

.card-container { margin-bottom: 20px; }

.feature-grid > li, .feature-grid > div,
.service-list > li,
.text-section > ul > li, /* for smaller points or badges */
.blog-list > article {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 24px 20px 20px 20px;
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 230px;
  flex: 1 1 250px;
  transition: box-shadow 0.2s;
}
.feature-grid > li:hover, .feature-grid > div:hover,
.service-list > li:hover, .blog-list > article:hover {
  box-shadow: 0 10px 28px rgba(97,185,168,0.07), var(--shadow-xs);
}

.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;
    gap: 18px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F0F4F8;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  flex-direction: column;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover { box-shadow: 0 6px 24px rgba(25,64,100,0.09); }
.testimonial-card blockquote {
  color: var(--brand-primary);
  font-size: 1.1rem;
  margin: 0 0 12px 0;
}
.testimonial-card .client-name {
  font-size: 1rem;
  color: #222;
  font-style: normal;
  font-weight: 600;
}

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

.trust-badges { display: flex; flex-wrap: wrap; gap: 20px; margin: 16px 0 0 0; }
.trust-badges li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--brand-text);
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

/* ---- BLOG STYLING ---- */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.blog-list article {
  flex: 1 1 320px;
  min-width: 240px;
  max-width: 380px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 22px 20px 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow 0.22s;
}
.blog-list article h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--brand-primary);
}
.blog-list article p { margin-bottom: 10px; }
.blog-list article a {
  color: var(--brand-secondary);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.15s;
}
.blog-list article a:hover { color: var(--brand-primary); }

.blog-categories {
  margin-top: 10px;
  margin-bottom: 0;
}
.blog-categories h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--brand-secondary);
}
.blog-categories ul {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.blog-categories li {
  color: var(--brand-primary);
  background: #F0F4F8;
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 500;
}

.newsletter-box {
  background: var(--brand-accent);
  padding: 18px 22px;
  border-radius: var(--radius);
  color: var(--brand-primary);
  margin-top: 18px;
  font-size: 1rem;
  font-style: italic;
}

/* --- BUTTONS & CTA --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  background: var(--brand-secondary);
  color: #fff;
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border-radius: 40px;
  box-shadow: var(--shadow-xs);
  border: none;
  transition: background 0.18s, box-shadow 0.22s, color 0.16s;
  cursor: pointer;
  text-decoration: none;
  margin-top: 10px;
}
.cta-btn.primary {
  background: var(--brand-primary);
  color: #fff;
}
.cta-btn:hover, .cta-btn:focus {
  background: #153252;
  color: #fff;
  box-shadow: 0 8px 28px rgba(25,64,100,0.13);
  outline: none;
}
.cta-btn:active { background: var(--brand-secondary); }

.service-price {
  margin-top: 10px;
  font-weight: 600;
  color: var(--brand-secondary);
  font-size: 1.05rem;
  margin-bottom: 14px;
  display: inline-block;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0px 2px 12px 0px rgba(25,64,100,0.065);
  padding-top: 0;
  padding-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 20px;
}
.logo img {
  max-height: 48px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: 38px;
  flex: 1 1 auto;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--brand-primary);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1rem;
  padding: 2px 0;
  transition: color 0.18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-secondary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--brand-primary);
  margin-left: 16px;
  transition: color 0.18s;
  z-index: 100;
}
.mobile-menu-toggle:focus { outline: 2px solid var(--brand-secondary); }

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  background: rgba(240,244,248,0.99);
  box-shadow: -6px 0 30px 0 rgba(25,64,100,0.11);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 28px 28px 28px;
  transition: transform 0.37s cubic-bezier(.71,1.7,.62,.82), left 0.23s;
  will-change: transform;
  overflow-y: auto;
}
.mobile-menu.open {
  left: 0;
  transform: translateX(-100vw);
  animation: slideInMenu 0.54s cubic-bezier(.64,1.62,.43,1) forwards;
}
@keyframes slideInMenu {
  from { left: 100vw; transform: translateX(0); }
  to { left: 0; transform: translateX(-100vw); }
}
.mobile-menu:not(.open) { pointer-events: none; }
.mobile-menu-close {
  background: none;
  color: var(--brand-primary);
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  margin-bottom: 20px;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 201;
}
.mobile-menu-close:focus {
  outline: 2.5px solid var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 12px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: var(--brand-primary);
  font-weight: 700;
  padding: 12px 0 12px 6px;
  border-radius: 6px;
  transition: background 0.13s, color 0.14s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-secondary);
  color: #fff;
}

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .cta-btn.primary { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
}
@media (min-width: 1024px) {
  .mobile-menu { display: none!important; }
}

/* --- FOOTER --- */
footer {
  background: #F0F4F8;
  border-top: 1px solid #E2E8F0;
  padding: 40px 0 28px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  font-size: 1rem;
  color: var(--brand-primary);
  font-weight: 500;
  opacity: 0.9;
  transition: color 0.16s;
}
.footer-nav a:hover { color: var(--brand-secondary); }
.brand-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #555;
  font-size: 1rem;
  opacity: 0.8;
}
.brand-footer img {
  height: 28px;
  width: auto;
  display: block;
}

/* --- TEXT BLOCKS AND UTILS --- */
.text-section {
  margin-bottom: 0px;
  width: 100%;
}
.text-section ul,
.text-section ol {
  padding-left: 20px;
  margin-left: 0;
  margin-bottom: 20px;
}
.text-section li {
  margin-bottom: 10px;
  padding-left: 0;
  font-size: 1rem;
  color: var(--brand-text);
  list-style: disc inside;
}

@media (max-width: 1024px) {
  .container { max-width: 96vw; }
  section,
  .section { padding: 32px 10px; margin-bottom: 42px; }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 1.6rem; }
  h2, .h2 { font-size: 1.2rem; }
  h3, .h3 { font-size: 1rem; }
  .container { padding: 0 6px; }
  .card-container, .feature-grid, .blog-list, .service-list, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > li, .feature-grid > div, .service-list > li, .blog-list > article { min-width: 90vw; }
  section, .section, section.hero { padding: 24px 6px;  }
  .logo img { max-height: 36px; }
}

/* --- SHADOWS AND SURFACES --- */
.card, .feature-grid > li, .feature-grid > div, .service-list > li, .blog-list > article {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
}

/* --- HOVER/TOUCH INTERACTIONS --- */
.card:hover, .service-list > li:hover, .feature-grid > li:hover, .blog-list > article:hover {
  box-shadow: 0 8px 32px rgba(25,64,100,0.11), var(--shadow-xs);
  transform: translateY(-2px) scale(1.01);
}
.cta-btn:active { transform: scale(0.98); }

/* --- SPACING & LAYOUT GAP RULE ENFORCEMENT --- */
.card-container,
.feature-grid,
.service-list,
.blog-list,
.content-grid {
  gap: 24px;
}
.text-image-section {
  gap: 30px;
}
.testimonial-card {
  gap: 20px;
  margin-bottom: 20px;
  padding: 20px;
}
.feature-item {
  gap: 15px;
}
.section, section, .card {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .card-container, .feature-grid, .service-list, .blog-list, .content-grid {
    gap: 16px;
  }
  .section, section, .card {
    margin-bottom: 36px;
    padding: 18px 4px;
  }
}

/* --- ACCESSIBILITY/CONTRAST FOR TESTIMONIALS --- */
.testimonial-card {
  background: #F0F4F8;
  color: #162334;
  box-shadow: var(--shadow-xs);
}
.testimonial-card blockquote,
.testimonial-card .client-name {
  color: #194064;
  font-weight: 500;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 2222;
  background: #fff;
  box-shadow: 0 -4px 24px 0 rgba(25,64,100,0.11);
  border-top: 1px solid #E2E8F0;
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  padding: 20px 30px;
  justify-content: space-between;
  transition: transform 0.32s ease;
}
.cookie-banner.hide { transform: translateY(110%); }
.cookie-banner-message {
  font-size: 1rem;
  color: var(--brand-text);
  max-width: 420px;
  line-height: 1.45;
  margin-right: 10px;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  padding: 9px 22px;
  font-size: 1rem;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: var(--brand-secondary);
  color: #fff;
  border: none;
  margin-left: 0;
  margin-right: 0;
  transition: background 0.14s, color 0.15s;
}
.cookie-btn.accept {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-btn.reject {
  background: #D0826A;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--brand-primary);
  border: 1px solid #e2e8f0;
}
.cookie-btn:focus { outline: 2px solid var(--brand-secondary); }
.cookie-btn:hover {
  filter: brightness(0.95);
  box-shadow: 0 2px 16px rgba(97,185,168,0.07);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 10px;
  }
  .cookie-banner-message { max-width: 100%; margin-right: 0; }
  .cookie-banner-actions { gap: 9px; width: 100%; }
}

/* --- COOKIE MODAL/PREFERENCES --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; bottom: 0; right: 0;
  z-index: 2225;
  background: rgba(19,34,42,0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.21s;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px 0 rgba(25,64,100,0.15);
  min-width: 320px;
  padding: 32px 26px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 260px;
  animation: cookieModalFadeIn 0.3s cubic-bezier(.4,1.4,.4,1.1);
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  color: var(--brand-primary);
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  padding: 8px 0;
}
.cookie-category label {
  font-weight: 600;
  color: var(--brand-primary);
  flex: 1 1 auto;
}
.cookie-category .toggle {
  width: 34px;
  height: 18px;
  border-radius: 18px;
  background: #E2E8F0;
  position: relative;
  margin-left: 8px;
  transition: background 0.18s;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-category .toggle.checked {
  background: var(--brand-secondary);
}
.cookie-category .toggle::before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 1px; left: 1px;
  transition: left 0.18s, box-shadow 0.1s;
  box-shadow: 0 1px 4px rgba(46,100,100,0.13);
}
.cookie-category .toggle.checked::before {
  left: 17px;
}
.cookie-category .essential label {
  color: #888;
}

.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .modal-close-btn {
  background: none;
  color: var(--brand-primary);
  font-size: 1.3rem;
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  cursor: pointer;
  transition: color 0.11s;
}
.cookie-modal .modal-close-btn:hover {
  color: var(--brand-secondary);
}
@media (max-width: 500px) {
  .cookie-modal {min-width: 92vw; padding: 18px 6vw 16px 6vw}
}

/* --- FORMS, INPUTS (if added later) --- */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  background: #fff;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-secondary);
}

/* --- MODAL OVERLAYS, Z-INDEX FOR INTERACTIONS --- */
.mobile-menu,
.cookie-banner,
.cookie-modal-overlay { z-index: 2222; }

/* --- UTILS --- */
.hide { display: none!important; }
.sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- SCROLLBAR STYLING --- */
body::-webkit-scrollbar { width: 10px; background: #E2E8F0; }
body::-webkit-scrollbar-thumb { background: #cad8e3; border-radius: 10px; }

/* End CSS */
