/* 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  background: #F8F9FD;
  color: #18406A;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.04em;
}
img { max-width: 100%; display: block; }
a { color: #18406A; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #FFD600; outline: none; }
ul { list-style: none; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 12px 8px; text-align: left; }
th { font-weight: 700; background: #F8F9FD; color: #18406A; font-size: 16px; }

:root {
  --color-primary: #18406A;
  --color-secondary: #F8F9FD;
  --color-accent: #FFD600;
  --color-dark: #112033;
  --color-shadow: rgba(24,64,106,0.08);
  --radius: 14px;
  --shadow: 0 4px 24px var(--color-shadow);
  --transition: all 0.21s cubic-bezier(.5, .8, .3, 1);
}


/* TYPOGRAPHY ------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: #112033;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 { font-size: 2.3rem; margin-bottom: 24px; line-height: 1.17; }
h2 { font-size: 1.75rem; margin-bottom: 24px; line-height: 1.18; }
h3 { font-size: 1.25rem; margin-bottom: 14px; line-height: 1.22; }
h4, h5, h6 { font-size: 1rem; }
p { margin-bottom: 14px; }
strong { font-weight: 600; color: #18406A; }

/* LAYOUT ----------------------------------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
main .container { padding-top: 32px; padding-bottom: 32px; }
section { margin-bottom: 60px; padding: 40px 20px; background: transparent; }
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.section { margin-bottom: 60px; padding: 40px 20px; }
.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); padding: 28px; }
.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: center; gap: 20px; padding: 20px 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  max-width: 420px;
  min-width: 260px;
  color: #112033;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px 22px 20px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 24px;
}
.service-grid > div {
  flex: 1 1 240px;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 18px 16px 18px;
}

.hero-section {
  background: linear-gradient(93deg, #F8F9FD 85%, #ffd60012 100%);
  margin-bottom: 60px;
  padding: 60px 0 60px 0;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  max-width: 620px;
}
.cta-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0;
  padding: 40px 20px;
}
.cta-section .content-wrapper { align-items: center; gap: 12px; }

/* BUTTONS ---------------------------------------------------------- */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff !important;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 13px 30px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(24,64,106, 0.08);
  outline: none;
  transition: var(--transition);
  letter-spacing: 0.015em;
  min-width: 185px;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent);
  color: var(--color-primary) !important;
  box-shadow: 0 6px 24px rgba(24,64,106,0.13);
  transform: translateY(-2px) scale(1.04);
}

.btn-secondary {
  display: inline-block;
  background: none;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 500;
  border-radius: var(--radius);
  padding: 11px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

/* NAVIGATION -------------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 18px rgba(24, 64, 106, 0.06);
  padding: 0;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding-top: 0;
  padding-bottom: 0;
}
.logo img { height: 38px; }
nav.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
nav.main-nav a {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 500;
  color: #18406A;
  padding: 0 2px;
  font-size: 1rem;
  opacity: 0.94;
  position: relative;
  transition: color 0.18s;
}
nav.main-nav a:not(.btn-primary):hover, nav.main-nav a:not(.btn-primary):focus {
  color: var(--color-accent);
}
nav.main-nav .btn-primary {
  margin-left: 18px;
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: 8px;
  font-size: 2em;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 9px rgba(24,64,106,.08);
  transition: background 0.15s;
  position: relative;
  z-index: 30;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 64, 106, 0.15);
  z-index: 1100;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.mobile-menu.open {
  display: flex;
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu > nav {
  background: #fff;
  width: 82vw;
  max-width: 350px;
  height: 100vh;
  box-shadow: var(--shadow);
  padding: 44px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.75,0,.18,1.13);
}
.mobile-menu.open > nav {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 26px; right: 24px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 6px;
  font-size: 1.7em;
  width: 38px;
  height: 38px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
  z-index: 1001;
  outline: none;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-nav a {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  margin-bottom: 8px;
  font-weight: 500;
  color: #18406A;
  font-size: 1.06rem;
  padding: 12px 6px;
  border-radius: 6px;
  min-width: 160px;
  transition: background .15s, color .15s;
  display: block;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #f7eaaf;
  color: #18406A;
}

@media (max-width: 990px) {
  nav.main-nav { gap: 18px; }
  nav.main-nav .btn-primary { min-width: 130px; padding: 10px 18px; }
}
@media (max-width: 820px) {
  nav.main-nav { gap: 11px; }
}
@media (max-width: 768px) {
  nav.main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .logo img { height: 28px; }
  header .container { min-height: 56px; }
}

/* MAIN CONTENT ------------------------------------------------------ */
section ul {
  margin-bottom: 12px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
section ul li {
  padding-left: 0;
  background: none;
  font-size: 1rem;
  color: #18406A;
  border-left: 3px solid transparent;
}
section ul li strong {
  color: #18406A;
}

.faq-accordion > div {
  margin-bottom: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(24,64,106,.06);
  padding: 20px 24px;
  transition: box-shadow .22s;
}
.faq-accordion > div:hover {
  box-shadow: 0 4px 24px rgba(24,64,106,.11);
}
.faq-accordion h3 { margin-bottom: 8px !important; font-size: 1.14rem; font-weight: 600; }

.contact-details ul {
  gap: 14px;
}
.contact-details li {
  display: flex; align-items: center; gap: 14px;
}
.location-map {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(24,64,106,0.04);
  padding: 10px 14px;
  margin-top: 12px;
}

/* TABLES ------------------------------------------------------------- */
table {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(24,64,106,0.04);
  overflow: hidden;
  margin-bottom: 28px;
}
thead { background: #F8F9FD; }
th, td { font-size: 1rem; }
tr { border-bottom: 1px solid #f1f3f8; }
tr:last-child { border-bottom: none; }
/* CARDS ------------------------------------------------------------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 3px 14px rgba(24,64,106,0.08);
}
.card .card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* TESTIMONIALS ------------------------------------------------------ */
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-top: 10px;
}
.testimonial-card p { font-size: 1.1rem; font-weight: 400; color: #112033; text-align: left; margin-bottom: 8px; }
.testimonial-card strong { color: var(--color-primary); font-size: 1.04rem; margin-top: 4px; align-self: flex-end; }

/* FOOTER ------------------------------------------------------------ */
footer {
  background: #fff;
  box-shadow: 0 -2px 24px rgba(24,64,106,.03);
  padding: 36px 0 18px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.98rem;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-contact {
  display: flex; flex-direction: column; gap: 8px; min-width: 190px; }
.footer-contact img { vertical-align: middle; margin-right: 7px; height: 1.1em; display: inline-block; }
.footer-social {
  display: flex; gap: 12px; margin-top: 4px; }
.footer-social img { height: 26px; width: 26px; opacity: 0.90; transition: opacity .17s; }
.footer-social img:hover { opacity: 1; }
footer a:hover { color: var(--color-accent); }

@media (max-width: 820px) {
  footer .container { flex-direction: column; gap: 20px; align-items: flex-start; }
  footer nav { flex-direction: row; gap: 18px; }
}
@media (max-width: 540px) {
  footer .container { flex-direction: column; align-items: flex-start; gap: 13px; }
}

/* SPACING & ALIGNMENT (MANDATORY) ----------------------------------- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* RESPONSIVE ------------------------------------------------------- */
@media (max-width: 1100px) {
  .feature-grid, .service-grid, .content-grid, .testimonials .content-wrapper { gap: 14px; }
}
@media (max-width: 900px) {
  .feature-grid > div, .service-grid > div, .content-grid > div {
    min-width: 170px;
    flex: 1 1 47%;
  }
  .feature-grid, .service-grid, .testimonials .content-wrapper {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .section, section, .cta-section { padding: 28px 9px; }
  .container { padding: 0 7px; }
  .hero-section { padding: 36px 0; }
  .content-wrapper, .content-grid, .feature-grid, .service-grid, .testimonials .content-wrapper {
    flex-direction: column !important; gap: 16px;
  }
  .feature-grid > div, .service-grid > div { width: 100%; min-width: unset; }
  .testimonials .content-wrapper { align-items: stretch; }
  .text-image-section { flex-direction: column; gap: 20px; }
}
@media (max-width: 550px) {
  .testimonial-card { min-width: 90vw; padding: 12px 10px; }
  .feature-grid > div, .service-grid > div { padding: 14px 7px 11px 7px; }
  .hero-section .content-wrapper { max-width: 97vw; }
  h1 { font-size: 1.23rem; }
}

/* SHADOWS & ANIMATION --------------------------------------------- */
.card, .feature-grid > div, .service-grid > div, .testimonial-card, .cta-section, .faq-accordion > div {
  transition: box-shadow .22s, transform .22s;
}
.card:hover, .feature-grid > div:hover, .service-grid > div:hover, .testimonial-card:hover, .faq-accordion > div:hover {
  box-shadow: 0 7px 30px rgba(24,64,106,0.16);
  transform: translateY(-5px) scale(1.012);
}

/* MICRO-INTERACTIONS ---------------------------------------------- */
a, button, .btn-primary, .btn-secondary, .mobile-nav a {
  transition: background .18s, color .15s, box-shadow .17s, transform .14s;
}

/* COOKIE CONSENT BANNER ------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: #fff;
  color: #18406A;
  box-shadow: 0 -2px 18px rgba(24,64,106, .09);
  padding: 24px 14px 16px 14px;
  z-index: 2200;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  box-sizing: border-box;
  opacity: 1;
  transition: transform .33s cubic-bezier(.68,.09,.54,1.07), opacity .18s;
}
.cookie-banner.hide {
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-content {
  max-width: 680px;
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-left: 24px;
}
@media (max-width: 680px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 4vw 15px 4vw;
  }
  .cookie-banner .cookie-actions { margin-left: 0; }
}
.cookie-banner .btn-primary, .cookie-banner .btn-secondary {
  min-width: 120px; padding: 8px 20px; font-size: 0.98rem;
}

/* COOKIE MODAL ---------------------------------------------------- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(24,64,106,0.18);
  z-index: 2300;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .28s;
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal .cookie-modal-dialog {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 60px rgba(24,64,106,0.23);
  padding: 36px 32px 32px 32px;
  min-width: 300px;
  max-width: 94vw;
  max-height: 97vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  animation: modalfadein .34s cubic-bezier(.66,.12,.39,1.05);
  position: relative;
}
@keyframes modalfadein {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 7px;
  width: 33px; height: 33px;
  font-size: 1.4em;
  cursor: pointer;
  z-index: 10;
  transition: background .14s, color .14s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--color-accent); color: var(--color-primary);
}
.cookie-modal h3 {
  font-size: 1.2rem;
  color: #18406A;
  margin-bottom: 9px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
  width: 100%;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F8F9FD;
  border-radius: 8px;
  padding: 11px 14px 11px 16px;
}
.cookie-category label { flex: 1; font-weight: 500; font-size: 1.04rem; }
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-primary);
  width: 19px;
  height: 19px;
}
.cookie-category.cookie-essential label {
  opacity: 0.6;
  font-style: italic;
}
.cookie-category.cookie-essential input[type='checkbox'] {
  pointer-events: none;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  width: 100%;
  margin-top: 8px;
  justify-content: flex-end;
}

/* ACCESSIBILITY ---------------------------------------------------- */
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
::-webkit-input-placeholder { color: #AAA; }
::-moz-placeholder { color: #AAA; }
:-ms-input-placeholder { color: #AAA; }
::placeholder { color: #AAA; }

/* UTILITY CLASSES -------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }

/* MINIMAL IMAGE STYLE ---------------------------------------------- */
section img, .feature-grid img, .footer-contact img {
  height: 32px;
  width: auto;
  margin-bottom: 8px;
  filter: none;
}
.footer-social img, .footer-contact img { margin-bottom: 0; }

/* HIDE EMPTY CARDS ON MOBILE --------------------------------------- */
@media (max-width: 420px) {
  .service-grid > div:empty, .feature-grid > div:empty { display: none; }
}

/* PRINT ------------------------------------------------------------ */
@media print {
  nav.main-nav, .mobile-menu-toggle, .btn-primary, .footer-social, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body, section, .container { background: #fff; color: #212121; }
}
