/* --- 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, 
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F5F7FC;
  color: #1A2233;
  font-family: 'Open Sans', Arial, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style-position: inside;
}
img {
  max-width: 100%;
  display: block;
}

/* --- BRAND FONTS --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Open+Sans:400,600,700&display=swap');

/* --- ROOTS & UTILITIES --- */
:root {
  --primary: #273668;
  --secondary: #D5D9E7;
  --accent: #E59C29;
  --bg-gradient: linear-gradient(135deg, #ebedf6 0%, #d7deea 100%);
  --gradient-accent: linear-gradient(90deg, #eab94b, #e59c29 100%);
  --shadow-md: 0 2px 24px 0 rgba(39,54,104,0.09);
  --shadow-lg: 0 4px 36px 0 rgba(39,54,104,0.15);
  --radius-base: 16px;
  --radius-card: 20px;
  --radius-btn: 24px;
}

body {
  background: var(--bg-gradient);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-md);
  /* For contrast in split bg layouts, override background as needed in context */
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; }
p, li, span { font-size: 1rem; }
p {margin-bottom: 8px;}
strong {font-weight: 700; color: var(--primary);}
.text-section { display: flex; flex-direction: column; gap: 12px; }

/* Responsive Type for Devices */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.12rem; }
  .container { padding: 0 10px; }
}

/* --- NAVIGATION --- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(39,54,104,0.04);
  position: sticky;
  top: 0;
  z-index: 1001;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  justify-content: flex-start;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}
.main-nav img {
  max-height: 40px;
  margin-right: 10px;
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 20px;
  z-index: 1011;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  padding: 4px 12px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--accent);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(39,54,104,0.98);
  z-index: 2000;
  transform: translateX(-105vw);
  transition: transform 0.36s cubic-bezier(0.77,0.2,0.05,1.0);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  align-self: flex-end;
  margin: 24px 28px 16px 0;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 36px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  padding: 12px 0;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    flex-wrap: wrap;
  }
  .main-nav a {
    font-size: 0.97rem;
    padding: 8px 9px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- HERO & CTA SECTIONS --- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  width: 100%;
}
section:first-of-type {
  background: linear-gradient(100deg, #fff 57%, #e3eafe 100%);
  box-shadow: none;
  padding-top: 32px;
}
.cta-btn, .cta-group a {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  padding: 14px 34px;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 24px 0 rgba(39,54,104,0.08);
  border: none;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 8px;
  transition: background 0.18s, color 0.2s, box-shadow 0.18s;
  text-align: center;
  white-space: nowrap;
}
.cta-btn:hover, .cta-btn:focus, .cta-group a:hover {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 36px 0 rgba(229,156,41,0.13);
}
.cta-group {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}
@media (max-width: 600px) {
  .cta-group {
    flex-direction: column;
    gap: 16px;
  }
  .cta-btn {
    width: 100%;
    padding-left: 0; padding-right: 0;
    justify-content: center;
  }
}

/* --- FEATURE GRID (WHY CHOOSE) --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 20px;
  margin-bottom: 8px;
}
.feature {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  flex: 1 1 230px;
  min-width: 240px;
  max-width: 310px;
  padding: 28px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.19s;
}
.feature img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}
.feature:hover, .feature:focus {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.04);
}
@media (max-width: 1024px) {
  .feature-grid { gap: 24px; }
  .feature { min-width: 180px; }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature {
    width: 100%;
    max-width: unset;
  }
}

/* --- SERVICES LIST/STEPS --- */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 10px;
}
.service-item {
  background: #f6f7fa;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 40px rgba(39,54,104,0.06);
  padding: 24px 20px 18px 20px;
  min-width: 210px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px solid #e3e8f1;
  transition: border-color 0.15s, box-shadow 0.18s, transform 0.15s;
}
.service-item h3 {
  margin-bottom: 3px;
  font-size: 1.15rem;
  color: var(--primary);
}
.service-item span {
  color: var(--accent);
  font-weight: 600;
  margin-top: 5px;
}
.service-item:hover, .service-item:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px) scale(1.02);
}
@media (max-width: 768px) {
  .service-list {
    flex-direction: column;
    gap: 16px;
  }
  .service-item { min-width: unset; width: 100%; }
}

/* --- Responsive Spacing & Alignment for Required Patterns --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 28px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.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: stretch; gap: 18px; }
  .content-grid { flex-direction: column; gap: 18px; }
  .card-container { flex-direction: column; gap: 18px; }
}

.testimonial-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fafffb;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 18px rgba(124,134,193,0.09);
  padding: 20px 30px 18px 26px;
  min-width: 260px;
  max-width: 370px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  border-left: 5px solid var(--accent);
  color: #22303D;
  transition: box-shadow 0.24s, transform 0.18s;
}
.testimonial-card p {
  color: #1B2536;
  font-size: 1.09rem;
  font-weight: 600;
}
.testimonial-card span {
  color: #475375;
  font-size: 0.98rem;
  font-style: italic;
  padding-top: 2px;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 2px 32px rgba(229,156,41,0.14);
  transform: translateY(-2px) scale(1.015);
}
@media (max-width: 768px) {
  .testimonial-row { flex-direction: column; gap: 18px; }
  .testimonial-card { padding: 15px 15px 13px 16px; min-width: unset; }
}

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

/* --- BUTTONS, INTERACTIONS, LINKS --- */
button, [type="button"], [type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  border: none;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a {
  transition: color 0.2s, background 0.2s;
}
.footer-nav a, .footer-contact a {
  color: white;
  border-radius: 6px;
  padding: 3px 8px;
}
.footer-nav a:hover, .footer-contact a:hover {
  background: var(--secondary);
  color: var(--accent);
}

/* --- FOOTER --- */
footer {
  background: #222d4a;
  color: #e6e9f2;
  padding: 34px 0 26px 0;
  margin-top: 40px;
  width: 100%;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 14px;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: #d9dbe2;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}
.footer-brand img {
  height: 36px;
  margin-bottom: 2px;
}
.footer-brand span {
  font-size: 0.97rem;
  color: #a7adc8;
}
@media (max-width: 768px) {
  .footer-nav, .footer-contact, .footer-brand {
    flex-direction: column;
    gap: 7px;
    align-items: center;
  }
  .footer-contact { text-align: center; }
}

/* --- POLICY PAGES / TEXT-SECTION --- */
.text-section ul {
  margin: 0 0 10px 0;
  padding: 0 0 0 1em;
}
.text-section h2, .text-section h3 {
  margin-top: 14px;
}
.text-section p, .text-section li {
  color: #36415E;
  font-size: 1.03rem;
}

/* --- LISTS --- */
ul, ol {
  margin-bottom: 12px;
  padding-left: 1.2em;
}
li {
  margin-bottom: 8px;
  color: #293150;
}

/* --- FORMS (for possible future extension) --- */
input, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  border: 1.5px solid #C8CEE6;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 1rem;
  margin-bottom: 12px;
  background: #fff;
  transition: border-color 0.17s;
}
input:focus, textarea:focus {
  border-color: var(--accent);
}
label { display: block; margin-bottom: 6px; color: var(--primary); }

/* --- COOKIE CONSENT --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fffbe9;
  color: #22303D;
  z-index: 3000;
  box-shadow: 0 -2px 36px 0 rgba(39,54,104,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 12px 18px 12px;
  font-size: 1rem;
  transition: transform 0.38s cubic-bezier(0.86,0,0.07,1.0), opacity 0.17s;
}
.cookie-banner.hidden {
  transform: translateY(125%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p { margin-bottom: 0; }
.cookie-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 20px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 18px rgba(223,179,76,0.08);
  margin-bottom: 4px;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.accept {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.reject {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.settings {
  background: #fff;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--accent);
}
.cookie-btn.reject:hover { background: #ffe4b5; color: var(--primary); }

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 96vw;
  max-width: 410px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 48px rgba(39,54,104,0.18);
  transform: translate(-50%, -52%) scale(1);
  z-index: 3100;
  padding: 32px 28px 26px 28px;
  opacity: 1;
  transition: opacity 0.23s, transform 0.23s;
  display: none;
}
.cookie-modal.open { display: block; }
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.cookie-modal .modal-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: center;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
}
.cookie-category-toggle {
  width: 36px;
  height: 22px;
  background: #e3e7f8;
  border-radius: 17px;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-category-toggle[data-enabled="true"] {
  background: var(--accent);
}
.cookie-category-toggle::before {
  content: '';
  display: block;
  position: absolute;
  left: 4px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
}
.cookie-category-toggle[data-enabled="true"]::before {
  left: 16px;
}
.cookie-category input[type=checkbox] {
  display: none;
}
.cookie-modal .close-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.4rem;
  position: absolute;
  right: 18px;
  top: 16px;
  cursor: pointer;
}

/* --- ANIMATIONS & MICROINTERACTIONS --- */
.card, .feature, .service-item, .testimonial-card {
  transition: box-shadow 0.21s, transform 0.18s, border-color 0.13s;
}
.cta-btn, .cta-group a {
  transition: background 0.17s, color 0.16s, box-shadow 0.21s, transform 0.14s;
}
.cta-btn:active, .cta-group a:active {
  transform: scale(0.967);
}
button:active {
  transform: scale(0.965);
}

/* --- RESPONSIVE UTILITIES ---*/
@media (max-width: 768px) {
  section { padding: 26px 0; }
  .section { padding: 22px 8px; }
  .card, .feature, .service-item, .testimonial-card {
    padding: 16px 10px 12px 10px;
  }
  .container { padding-left: 7px; padding-right: 7px; }
}

/* --- ACCESSIBILITY --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- HIDE SCROLL ON MOBILE MENU OPEN --- */
body.mobile-menu-open {
  overflow: hidden;
}

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