/* ==== 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, 
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7F7FB;
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  position: relative;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #236FA2;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #0C2330;
}
button {
  font: inherit;
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

/* ==== ROOT COLORS & FONTS ==== */
:root {
  --primary: #236FA2;
  --secondary: #0C2330;
  --accent: #F9D25E;
  --text-main: #222222;
  --text-light: #ffffff;
  --bg-main: #F7F7FB;
  --bg-soft: #FAFAFF;
  --bg-pastel1: #E5F4FB;
  --bg-pastel2: #EBF7F1;
  --bg-pastel3: #FFF9F5;
  --surface: #FFFFFF;
  --shadow-soft: 0 4px 16px rgba(83, 98, 124, 0.11);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius: 8px;
  --radius-sm: 5px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
}

/* ==== GENERAL LAYOUT ==== */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 32px;
    padding: 24px 8px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}
.text-section {
  background: none;
  box-shadow: none;
  padding: 0;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--secondary);
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  line-height: 1.14;
  text-shadow: 0 2px 8px rgba(36,79,153,0.06);
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1.16;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  font-weight: 600;
}
h4 { font-size: 1.1rem; }

p, li, ul, ol {
  font-size: 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  margin-bottom: 12px;
  line-height: 1.6;
}

ul, ol {
  margin-bottom: 0;
  padding-left: 1.4em;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  position: relative;
}
ul li img {
  vertical-align: text-bottom;
  margin-right: 7px;
  height: 24px;
}
strong { font-weight: 600; }

/* ==== FLEX UTILITY CLASSES ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
}
.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: 20px;
  background: #fffbe9;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(36,111,162,0.10);
  padding: 20px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 580px;
  color: var(--secondary);
}
.testimonial-card strong {
  color: var(--primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 768px) {
  .content-wrapper,
  .card-container,
  .content-grid,
  .text-image-section {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px;
  }
  .testimonial-card {
    max-width: 100%;
  }
}

/* ==== HEADER & NAVIGATION ==== */
header {
  width: 100%;
  background: linear-gradient(90deg, #E5F4FB 0%, #FFF9F5 100%);
  box-shadow: 0 2px 10px rgba(36,111,162,0.03);
  position: sticky;
  z-index: 1001;
  top: 0;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 14px 20px 14px 10px;
  min-height: 76px;
  font-family: var(--font-display);
}
.main-nav a {
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--secondary);
  opacity: 0.95;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--primary);
  color: #fff;
}
.main-nav img {
  height: 38px;
  margin-right: 18px;
  margin-bottom: 0;
  vertical-align: middle;
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--primary);
  color: #fff;
  padding: 7px 15px;
  border-radius: var(--radius);
  margin-left: auto;
  position: relative;
  z-index: 1202;
  transition: background 0.18s, box-shadow 0.22s;
  box-shadow: 0 2px 8px rgba(36,111,162,0.06);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 18px;
    font-size: 0.98rem;
    padding-right: 0;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
    font-size: 0.97rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 16px;
    top: 18px;
  }
}

/* ==== MOBILE MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(90deg, #E5F4FB 0%, #EBF7F1 80%);
  box-shadow: 0 4px 20px 0 rgba(0,0,0,0.06);
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.82,.02,.18,1), box-shadow 0.25s;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 0 100vw rgba(36, 111, 162, 0.19);
}
.mobile-menu-close {
  font-size: 2.1rem;
  background: none;
  color: var(--secondary);
  font-weight: 700;
  align-self: flex-end;
  margin: 20px 26px 5px 0;
  border-radius: 50%;
  transition: background 0.16s;
  padding: 7px 15px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #eaf8ff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  align-items: stretch;
  margin-top: 16px;
}
.mobile-nav a {
  padding: 17px 24px;
  color: var(--secondary);
  font-size: 1.13rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-bottom: 1px solid #e9e7fd;
  background: transparent;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e7f5ff;
  color: var(--primary);
}

/* ==== HERO SECTIONS ==== */
.hero {
  background: linear-gradient(120deg, #E5F4FB 55%, #FFF9F5 100%);
  padding: 56px 0 40px 0;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin-bottom: 52px;
  box-shadow: 0 3px 24px rgba(246,221,85, 0.14);
  min-height: 340px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  gap: 18px;
}
.hero h1, .hero h2 {
  color: var(--primary);
}
.hero p {
  color: #355c75;
  font-size: 1.11rem;
  margin-bottom: 16px;
  text-align: center;
  max-width: 540px;
}
.hero .cta-button {
  margin-top: 10px;
}
@media (max-width: 820px) {
  .hero { min-height: 240px; padding: 32px 0 28px 0; margin-bottom: 32px; }
}
@media (max-width: 600px) {
  .hero { padding: 18px 0 12px 0; }
  .hero .content-wrapper { gap: 16px; }
}

/* ==== BUTTONS ==== */
.cta-button {
  display: inline-block;
  padding: 13px 38px;
  font-family: var(--font-display);
  font-size: 1.11rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(36,111,162,0.10);
  letter-spacing: .03em;
  transition: background 0.16s, box-shadow 0.25s, transform 0.13s;
  margin-right: 0;
  margin-top: 8px;
  margin-bottom: 8px;
}
.cta-button:hover, .cta-button:focus {
  background: var(--secondary);
  box-shadow: 0 4px 22px rgba(36,111,162,0.13);
  color: var(--accent);
  transform: translateY(-2px) scale(1.03);
}
.button-secondary, .button-outline {
  display: inline-block;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  margin-right: 8px;
  transition: background 0.13s, color 0.13s;
}
.button-secondary:hover, .button-outline:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ==== FEATURES & SERVICES ==== */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 13px;
  align-items: stretch;
}
.service-list > div {
  flex: 1 1 200px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  transition: box-shadow 0.21s, transform 0.12s;
}
.service-list > div:hover {
  box-shadow: 0 8px 18px 0 rgba(40,135,144,0.15);
  transform: translateY(-3px);
}
.service-list img {
  height: 36px;
  width: auto;
  margin-bottom: 13px;
}
.service-list h3 {
  margin-bottom: 6px;
  color: var(--primary);
}

@media (max-width: 900px) {
  .service-list {
    gap: 18px;
    flex-direction: column;
  }
  .service-list > div {
    min-width: 0;
    width: 100%;
  }
}

/* ==== CARDS ==== */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  transition: box-shadow 0.22s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 10px 28px 0 rgba(83,98,124,0.13);
  transform: translateY(-3px);
}

/* ==== TESTIMONIALS ==== */
.testimonial-card {
  background: #fffbe9;
  border-left: 7px solid var(--accent);
  color: var(--secondary);
  font-size: 1.027rem;
  font-style: italic;
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
  position: relative;
  padding: 24px 28px 20px 28px;
  min-width: 0;
  /* readable on all backgrounds */
}
.testimonial-card p {
  color: var(--secondary);
  margin-bottom: 12px;
  font-style: italic;
  font-size: 1.09rem;
  letter-spacing: .01em;
  line-height: 1.5;
}
.testimonial-card span {
  color: #edbb22;
  margin-left: 8px;
  font-size: 1.15em;
  letter-spacing: 1px;
}

/* ==== FOOTER ==== */
footer {
  background: linear-gradient(90deg, #E5F4FB 20%, #ebf7f1 100%);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  padding: 36px 0 26px 0;
  box-shadow: 0 -2px 14px rgba(36,111,162,0.04);
  margin-top: 70px;
}
footer .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.97rem;
}
footer nav a {
  color: var(--primary);
  opacity: 0.88;
  font-weight: 500;
  padding: 2px 7px;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
}
footer img {
  height: 40px;
  margin-bottom: 10px;
}
footer h3 {
  font-size: 1.08rem;
  margin-bottom: 5px;
  font-weight: 600;
}
footer a img {
  display: inline-block;
  margin-right: 11px;
  width: 27px;
  height: 27px;
  margin-bottom: 0;
  vertical-align: middle;
}
footer p, footer li {
  color: var(--secondary);
  font-size: 0.98em;
}
@media (max-width: 950px) {
  footer .content-wrapper {
    gap: 20px;
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg, #fff8e6 70%, #e6faff 100%);
  color: var(--secondary);
  box-shadow: 0 -2px 24px 0 rgba(36,111,162,0.07);
  z-index: 2300;
  padding: 21px 25px 15px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  animation: cookie-fadein 0.55s;
}
@keyframes cookie-fadein {
  0% { transform: translateY(50px); opacity: 0; }
  99% { opacity: 1; }
  100% { transform: translateY(0); }
}
.cookie-consent-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.cookie-consent-banner button {
  padding: 8px 20px;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  background: var(--primary);
  color: #fff;
  transition: background 0.18s, color 0.18s, box-shadow 0.21s;
  box-shadow: 0 1px 7px 0 rgba(36,111,162,0.09);
  outline: none;
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-consent-banner button.cookie-settings {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 1px 5px 0 rgba(36,111,162,0.05);
}
.cookie-consent-banner button.cookie-settings:hover {
  background: var(--primary);
  color: #fff;
}
/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 2400;
  left: 0; top: 0; width: 100vw; height:100vh;
  background: rgba(36,111,162, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein-backdrop 0.35s;
}
@keyframes fadein-backdrop {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: linear-gradient(120deg, #e5f4fb 80%, #ffeeb1 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 38px rgba(36,111,162,0.17);
  max-width: 370px;
  width: 88vw;
  padding: 32px 24px;
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: cookie-modal-fadein 0.33s;
}
@keyframes cookie-modal-fadein {
  0% { transform: scale(0.96) translateY(23px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--primary);
  margin-bottom: 9px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 500;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  background: #fff;
  border-radius: 12px;
  position: relative;
  outline: 0;
  cursor: pointer;
  border: 1.5px solid #e5e9ef;
  transition: background 0.21s, border 0.14s;
  vertical-align: middle;
}
.cookie-toggle:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.cookie-toggle::before {
  content: '';
  display: block;
  width: 17px;
  height: 17px;
  background: #eee;
  border-radius: 50%;
  position: absolute;
  left: 2.1px;
  top: 50%;
  transform: translateY(-50%);
  transition: left 0.20s, background 0.14s;
}
.cookie-toggle:checked::before {
  background: var(--accent);
  left: 19px;
}
.cookie-category .cookie-toggle[disabled], .cookie-category .cookie-toggle:disabled {
  opacity: 0.5;
  background: #f4f4f6;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  align-items: center;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    padding: 15px 8px 8px 8px;
    font-size: .95rem;
  }
  .cookie-modal {
    padding: 16px 7px 18px 10px;
    min-width: 0;
    width: 97vw;
    max-width: min(97vw, 370px);
  }
}

/* ==== MISCELLANEOUS ==== */
::-webkit-input-placeholder {color: #b8b8cb; opacity: 0.98;}
::-moz-placeholder {color: #b8b8cb; opacity: 0.98;}
:-ms-input-placeholder {color: #b8b8cb; opacity: 0.98;}
::placeholder {color: #b8b8cb; opacity: 0.98;}

/* Lists & links */
ul, ol {
  margin-left: 0;
  padding-left: 1.2em;
  margin-bottom: 0;
  list-style: disc inside;
  line-height: 1.7;
}
li { margin-bottom: 7px; }
a:active { outline: 0; }

/* Helper: visually hide */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ==== FORMS (for future) ==== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: var(--radius);
  border: 1.5px solid #e7f0f5;
  background: #fff;
  color: var(--text-main);
  outline: none;
  padding: 14px 12px;
  margin-bottom: 10px;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 2px 7px rgba(36,111,162,0.07);
}
::selection {
  background: #faebc6;
  color: var(--primary);
}

/* ==== SCROLLBAR ==== */
::-webkit-scrollbar {
  width: 8px;
  background: #f4f7fa;
}
::-webkit-scrollbar-thumb {
  background: #bae1f9;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #accae1;
}

/* ==== RESPONSIVE MAIN PADDING (small screens) ==== */
@media (max-width: 600px) {
  main .container { padding: 0 5px; }
}

/* ==== MICRO-INTERACTIONS & HOVER ==== */
.card, .service-list > div, .cta-button, .button-outline {
  will-change: transform, box-shadow;
}

/* ==== Z-INDEX DEFINITIONS ==== */
header { z-index: 1001; }
.mobile-menu { z-index: 1400; }
.cookie-consent-banner { z-index: 2300; }
.cookie-modal-backdrop { z-index: 2400; }

/* ==== PASTEL BACKGROUNDS (for variation) ==== */
.bg-pastel1 { background: var(--bg-pastel1); }
.bg-pastel2 { background: var(--bg-pastel2); }
.bg-pastel3 { background: var(--bg-pastel3); }

/* ==== PRINT OVERRIDE ==== */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
  body { background: #fff; }
}
section {
  padding: 10px 0;
}