/* RESET & NORMALIZE */
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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #f7fafd;
  color: #253B53;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  color: #1E3C5A;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}

p, ul, ol, address {
  font-size: 1rem;
  margin-bottom: 14px;
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 6px;
}
a {
  color: #1E3C5A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #16406C;
  text-decoration: underline;
}
.link-underlined {
  display: inline-block;
  border-bottom: 2px solid #FFD166;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.link-underlined:hover, .link-underlined:focus {
  border-color: #1E3C5A;
  color: #16406C;
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.text-center {
  text-align: center;
  align-items: center;
}

/* Header */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(45, 75, 115, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  height: 40px;
  margin-right: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #1E3C5A;
  font-size: 16px;
  padding: 2px 0 1px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #253B53;
  border-color: #FFD166;
}
.cta-btn {
  display: inline-block;
  padding: 11px 28px;
  background: #1E3C5A;
  color: #fff;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 700;
  border-radius: 28px;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(30, 60, 90, 0.07);
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.16s, box-shadow 0.18s;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #16406C;
  color: #FFD166;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 18px rgba(30,60,90,0.10);
}

/* Mobile nav */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #1E3C5A;
  cursor: pointer;
  padding: 4px 10px;
  margin-left: 14px;
  transition: color 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #FFD166;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(30, 60, 90, 0.96);
  z-index: 1001;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.76,.12,.3,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 36px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #FFD166;
  margin: 0 22px 16px 0;
  padding: 4px 14px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  gap: 12px;
  padding-left: 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 20px;
  padding: 8px 0;
  text-decoration: none;
  transition: color 0.2s;
  border: none;
  border-bottom: 2px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFD166;
  border-bottom: 2px solid #FFD166;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  header .container {
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  header img {
    height: 32px;
  }
  .cta-btn {
    font-size: 15px;
    padding: 10px 18px;
  }
  .mobile-nav a {
    font-size: 18px;
  }
  .mobile-menu {
    padding-top: 18px;
  }
  .mobile-menu-close {
    font-size: 1.6rem;
    margin: 0 12px 10px 0;
  }
}

/* Sections */
section {
  width: 100%;
  background: transparent;
}
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 600px) {
  .section,
  section {
    margin-bottom: 38px;
    padding: 30px 7px;
  }
}

.features-grid,
.features-list,
.services-list,
.feature-grid,
.project-highlights,
.testimonial-slider,
.testimonial-list,
.benefits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  align-items: stretch;
}

.features-list, .feature-grid {
  gap: 24px 28px;
}
.features-list {
  margin-top: 18px;
}

.feature, .service {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1.5px 7px rgba(30,60,90, 0.06);
  padding: 28px 24px 20px 24px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 210px;
  max-width: 270px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.18s;
  position: relative;
}
.feature:hover, .service:hover {
  box-shadow: 0 4px 18px rgba(30,60,90,0.13);
  transform: translateY(-3px) scale(1.025);
}
.feature img, .service img {
  height: 40px; width: 40px;
  margin-bottom: 12px;
  margin-top: 0;
}
.feature h3, .service h3 {
  font-size: 1.13rem;
  margin-bottom: 7px;
}
.feature p, .service p {
  font-size: 1rem;
  color: #3A4D66;
}
.service strong {
  color: #1E3C5A;
  margin-top: 4px;
  font-weight: 600;
  font-size: 1rem;
}

@media (max-width: 830px) {
  .features-list, .feature-grid, .services-list {
    gap: 16px 10px;
    justify-content: flex-start;
  }
  .feature, .service {
    min-width: 150px;
    max-width: 99%;
  }
}

@media (max-width: 600px) {
  .content-wrapper, .text-center {
    align-items: stretch;
    text-align: left;
  }
  .features-list, .feature-grid, .services-list, .testimonial-slider, .testimonial-list, .project-highlights {
    flex-direction: column;
    gap: 18px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 7px rgba(30,60,90,0.07);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 5px 20px rgba(30,60,90,0.11);
  transform: translateY(-2px);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 800px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 15px;
  }
}

.cta-box {
  border-radius: 18px;
  background: #E2EBF3;
  box-shadow: 0 1.5px 7px rgba(30,60,90, 0.07);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 21px;
  margin-top: 24px;
  margin-bottom: 20px;
  text-align: center;
}
.cta-box h2 {
  margin-bottom: 10px;
}
.cta-box p {
  margin-bottom: 0;
}

/* Lists with icons, benefits */
.icon-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}
.icon-list li img {
  height: 24px; width: 24px;
}
.benefits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 28px;
  align-items: center;
  margin-bottom: 0;
}
.trust-badges img {
  height: 36px;
}
/* Steps List illustrations */
ol.steps-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
ol.steps-list img {
  width: 24px;
  height: 24px;
}

/* Testimonial Cards */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding: 24px 26px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1.5px 7px rgba(30,60,90, 0.11);
  margin-bottom: 20px;
  min-width: 210px;
  max-width: 370px;
  position: relative;
  transition: box-shadow 0.16s, transform 0.1s;
}
.testimonial-card:hover {
  box-shadow:0 5px 24px rgba(30,60,90,0.15);
  transform: translateY(-1.5px) scale(1.02);
}
.testimonial-card .star-rating {
  color: #FFD166;
  font-size: 1.25rem;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.testimonial-card p {
  color: #27344A;
  font-size: 1rem;
}
.testimonial-meta {
  color: #536886;
  font-size: 0.98rem;
  font-style: italic;
}
blockquote {
  margin: 8px 0 0 0;
  background: #f3f6fa;
  border-left: 4px solid #1E3C5A;
  padding: 12px 22px;
  border-radius: 8px;
  color: #253B53;
  font-style: italic;
  font-size: 1rem;
}

.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
@media (max-width: 600px) {
  .testimonial-slider, .testimonial-list {
    gap: 12px;
    flex-direction: column;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 14px 11px;
  }
}

/* Content sections for contact, about, map */
.contact-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 7px rgba(30,60,90, 0.07);
  padding: 28px 20px;
  margin-bottom: 16px;
}
.map-embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #E2EBF3;
  border-radius: 9px;
  padding: 18px;
  margin-top: 4px;
}
.map-embed-placeholder img {
  height: 32px;
  margin-bottom: 7px;
}

/* Blog page cards */
.search-bar {
  margin: 18px auto 0 auto;
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: center;
  max-width: 440px;
  background: #fff;
  box-shadow: 0 1.5px 7px rgba(30,60,90, 0.06);
  border-radius: 30px;
  overflow: hidden;
}
.search-bar input[type="search"] {
  flex: 1 1 0;
  border: none;
  background: transparent;
  font-size: 16px;
  padding: 12px 20px;
  font-family: inherit;
  outline: none;
}
.search-bar button {
  background: #1E3C5A;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 18px;
  height: 44px;
  cursor: pointer;
  transition: background 0.16s;
  border-radius: 0 30px 30px 0;
}
.search-bar button:hover, .search-bar button:focus {
  background: #16406C;
}
.search-bar button img {
  width: 20px;
  height: 20px;
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}
.blog-post {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 1.5px 7px rgba(30,60,90, 0.07);
  padding: 22px 22px 14px 22px;
  min-width: 210px;
  max-width: 300px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.16s, transform 0.12s;
  position: relative;
}
.blog-post:hover {
  box-shadow: 0 5px 18px rgba(30,60,90,0.12);
  transform: translateY(-1px);
}
.category-tag {
  display: inline-block;
  background: #E2EBF3;
  color: #1E3C5A;
  font-size: 0.96rem;
  font-weight: 500;
  border-radius: 12px;
  padding: 2px 12px;
  margin-top: 6px;
}

@media (max-width: 700px) {
  .blog-list {
    flex-direction: column;
    gap: 12px;
  }
  .blog-post {
    max-width: 100%;
    min-width: 0;
    padding: 13px 9px 8px 15px;
  }
}

/* Legal Pages */
.legal-section {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 1.5px 7px rgba(30,60,90,0.07);
  padding: 32px 24px;
  margin-bottom: 16px;
}
.text-section {
  margin-top: 8px;
}
.text-section p, .text-section ul, .text-section h2 {
  margin-bottom: 15px;
}

/* Footer */
footer {
  background: #1E3C5A;
  color: #fff;
  width: 100%;
  margin-top: 60px;
  font-size: 1rem;
}
footer .container {
  padding: 36px 18px 18px 18px;
}
.footer-columns {
  display: flex;
  flex-direction: row;
  gap: 60px;
  margin-bottom: 19px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-columns nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-columns a {
  color: #fff;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  opacity: 0.90;
  transition: color 0.15s, opacity 0.15s;
}
.footer-columns a:hover, .footer-columns a:focus {
  color: #FFD166;
  opacity: 1;
}
.footer-bottom {
  margin-top: 20px;
  border-top: 1px solid #355173;
  padding-top: 12px;
  color: #C5D4E5;
  font-size: 0.97rem;
  text-align: left;
}
@media (max-width: 800px) {
  .footer-columns {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  footer .container {
    padding: 20px 7px 7px 7px;
  }
  .footer-bottom {
    margin-top: 10px;
    padding-top: 7px;
    font-size: 0.95rem;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  z-index: 1500;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #FFF;
  color: #253B53;
  box-shadow: 0 -1.5px 10px rgba(30,60,90,0.11);
  padding: 22px 17px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(.44,.04,.11,1.07), opacity 0.27s;
}
.cookie-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  font-size: 1rem;
  font-weight: 400;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  border: none;
  border-radius: 18px;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 23px;
  margin: 0 2px;
  cursor: pointer;
  background: #1E3C5A;
  color: #fff;
  transition: background 0.14s, color 0.12s, box-shadow 0.18s;
  box-shadow: 0 0.5px 3px rgba(30,60,90,0.05);
}
.cookie-btn.accept {
  background: #1E3C5A;
  color: #fff;
}
.cookie-btn.reject {
  background: #E2EBF3;
  color: #1E3C5A;
}
.cookie-btn.settings {
  background: #FFD166;
  color: #1E3C5A;
}
.cookie-btn:hover, .cookie-btn:focus {
  box-shadow: 0 3.5px 11px rgba(30,60,90,0.10);
  opacity: 0.9;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 19px 7px;
  }
  .cookie-banner .cookie-buttons {
    width: 100%;
    flex-direction: column;
    gap: 9px;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1600;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(30,60,90,0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.33s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 38px rgba(30,60,90,0.12);
  min-width: 340px;
  max-width: 97vw;
  padding: 32px 24px 26px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal h3 {
  margin-bottom: 7px;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 16px;
  top: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #1E3C5A;
  cursor: pointer;
  transition: color 0.12s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #FFD166;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #F7FAFD;
  border-radius: 10px;
  padding: 14px 15px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 600;
  color: #253B53;
}
.toggle-switch {
  display: inline-flex;
  width: 34px;
  height: 20px;
  background: #E2EBF3;
  border-radius: 20px;
  position: relative;
}
.toggle-switch input[type="checkbox"] {
  display: none;
}
.toggle-switch span {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #FFD166;
  transition: left 0.22s, background 0.22s;
}
.toggle-switch input:checked + span {
  left: 16px;
  background: #1E3C5A;
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 14px;
}
@media (max-width: 500px) {
  .cookie-modal {
    min-width: 0;
    padding: 16px 7px 13px 9px;
  }
}

/* Forms Inputs (basic - for newsletter/search/contact) */
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #C5D4E5;
  border-radius: 10px;
  padding: 10px 13px;
  margin-bottom: 9px;
  transition: border 0.17s;
  background: #fff;
  box-shadow: none;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border: 1.5px solid #1E3C5A;
}

/* Micro-interactions (transitions all clickable) */
button, .cta-btn, a, .card, .feature, .service, .testimonial-card, .blog-post {
  transition: box-shadow 0.18s, color 0.14s, background 0.16s, transform 0.16s, border-color 0.14s;
}

/* Spacing Rules */
.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;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
  }
}

/* Misc helpers */
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.section, .card, .cta-box, .feature, .testimonial-card, .blog-post, .legal-section, .contact-section {
  animation: fadeInUp 0.8s cubic-bezier(.22,.57,.53,.99) both;
  animation-delay: 0.15s;
}

/* Hide visually (used for a11y) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
