/* RESET & BASE TYPOGRAPHY ------------------------------------------- */
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.6;
  background: #FFFFFF;
  color: #1d2630;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
a {
  color: #23527C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #14854F;
  outline: none;
}
img {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
  height: auto;
}
main {
  flex: 1 0 auto;
  width: 100%;
}

/* BRAND TYPOGRAPHY --------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #23527C;
  line-height: 1.22;
  font-weight: 700;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.5rem; /* 40px */
}
h2 {
  font-size: 2rem; /* 32px */
}
h3 {
  font-size: 1.375rem; /* 22px */
}
h4 {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
}
p, li, span {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #313a45;
  font-weight: 400;
}
p {
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
  color: #23527C;
}

/* LAYOUT CONTAINERS ------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(35,82,124,0.07);
  position: relative;
  padding: 32px 24px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(35,82,124,0.11);
}
.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: #f8fafb;
  box-shadow: 0 2px 14px 0 rgba(35, 82, 124, 0.07);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  color: #1d2630;
  font-size: 1.125rem;
}
.testimonial-card span {
  font-size: 0.92rem;
  color: #23527C;
  text-align: right;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* HERO SECTIONS ------------------------------------ */
.hero {
  background: #E7EFF6;
  padding: 48px 0;
  margin-bottom: 60px;
}
.hero .container {
  align-items: stretch;
}
.hero h1 {
  color: #23527C;
  font-size: 2.2rem;
  margin-bottom: 24px;
  line-height: 1.18;
}
.hero p {
  color: #1d2630;
  font-size: 1.1rem;
  margin-bottom: 28px;
}

/* NAVIGATION ---------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(35,82,124,0.09);
  position: relative;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 74px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #23527C;
  letter-spacing: 0.01em;
  padding: 8px 12px;
  border-radius: 7px;
  transition: background 0.14s, color 0.14s;
}
.main-nav a.cta {
  background: #23527C;
  color: #fff;
  font-weight: 700;
  padding: 9px 17px;
  border-radius: 21px;
  margin-left: 8px;
  box-shadow: 0 2px 12px 0 rgba(20,133,79,0.05);
  transition: background 0.16s, box-shadow 0.18s, color 0.13s;
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: #14854F;
  color: #fff;
  box-shadow: 0 4px 20px 0 rgba(20,133,79,0.14);
}
.main-nav a:hover, .main-nav a:focus:not(.cta) {
  background: #E7EFF6;
  color: #14854F;
}
.main-nav img {
  height: 40px;
  margin-right: 24px;
  vertical-align: middle;
}

/* MOBILE MENU -------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #23527C;
  cursor: pointer;
  padding: 6px 9px;
  position: absolute;
  right: 24px;
  top: 15px;
  z-index: 101;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 18px 32px 0 rgba(35,82,124,0.12);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.57,.35,.29,.93);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 46px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #23527C;
  position: absolute;
  right: 20px;
  top: 18px;
  z-index: 2010;
  cursor: pointer;
  padding: 6px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 30px;
  padding: 0 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  padding: 13px 16px;
  border-radius: 12px;
  color: #23527C;
  background: transparent;
  font-weight: 500;
  transition: background 0.2s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E7EFF6;
  color: #14854F;
}

@media (max-width: 1100px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 13px;
  }
  .main-nav img {
    margin-right: 14px;
  }
}
@media (max-width: 900px) {
  .main-nav a {
    font-size: 0.98rem;
    padding: 6px 8px;
  }
  .main-nav a.cta {
    padding: 8px 14px;
  }
}
@media (max-width: 830px) {
  .main-nav a {
    font-size: 0.93rem;
    padding: 5px 7px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* FEATURES & LISTS ----------------------------------*/
.features ul, .services ul, .services-preview ul, .about-preview ul,
.values ul, .areas ul, .team-profiles ul, .team-values ul, .contact ul, .contact-form ul, .blog-list ul, .legal ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}
.features ul li, .services ul li, .areas ul li, .values ul li, .about-preview ul li, .team-profiles ul li, .team-values ul li, .contact ul li, .contact-form ul li, .blog-list ul li, .legal ul li {
  display: flex;
  align-items: flex-start;
  font-size: 1.05rem;
  line-height: 1.55;
  gap: 13px;
  background: none;
  color: #313a45;
}
.features ul li img, .about-preview ul li img, .services-preview ul li img,
.contact ul li img, .contact-form ul li img, .footer-contact img {
  margin-right: 10px;
  height: 23px;
}

/* CTA SECTION & BUTTONS -----------------------------*/
.cta {
  background: #23527C;
  color: #fff;
  border-radius: 18px;
  padding: 13px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.11rem;
  display: inline-block;
  margin-top: 5px;
  box-shadow: 0 2px 24px 0 rgba(35,82,124,0.09);
  letter-spacing: 0.01em;
  transition: background 0.18s, box-shadow 0.17s, color 0.13s, transform 0.16s;
  cursor: pointer;
  text-align: center;
  border: none;
  outline: none;
}
.cta:hover, .cta:focus {
  background: #14854F;
  color: #fff;
  transform: translateY(-1.5px) scale(1.04);
  box-shadow: 0 6px 26px 0 rgba(20,133,79,0.17);
}

/* FOOTER --------------------------------------------*/
footer {
  background: #F7F9FB;
  border-top: 1px solid #E5EDF2;
  padding: 36px 0 20px 0;
}
footer .container {
  gap: 30px;
  flex-direction: column;
  align-items: stretch;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #14854F;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.13s, color 0.11s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #e7eff6;
  color: #23527C;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 14px;
}
.footer-contact span {
  font-size: 0.98rem;
  color: #1d2630;
  display: flex;
  gap: 9px;
  align-items: center;
}
.footer-contact img {
  height: 18px;
  margin-right: 4px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8A96A2;
  font-size: 0.98rem;
}
.footer-brand img {
  height: 31px;
}

/* BLOG CARDS ----------------------------------------*/
.blog-list ul li {
  margin-bottom: 20px;
}
.blog-list article {
  background: #f8fafb;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(35,82,124,0.07);
  padding: 23px 18px;
  transition: box-shadow 0.23s;
}
.blog-list article:hover {
  box-shadow: 0 6px 30px 0 rgba(35,82,124,0.14);
}
.blog-list h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: #14854F;
}

/* LEGAL SECTIONS ------------------------------------*/
.legal {
  background: #fff;
  padding: 48px 0 36px 0;
}
.legal h1 {
  font-size: 2rem;
  margin-bottom: 32px;
}

/* THANK YOU PAGE ------------------------------------*/
.thank-you {
  background: #E7EFF6;
  padding: 60px 0;
}
.thank-you h1 {
  font-size: 2rem;
  color: #14854F;
}

/* FORM & CONTACT ------------------------------------*/
.contact ul li, .contact-form ul li {
  font-size: 1.08rem;
}
.contact-form p {
  font-size: 1rem;
}

/* MODALS & OVERLAYS ----------------------------------*/
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,82,124,0.12);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: #fff;
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  padding: 38px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 6px 40px 0 rgba(35,82,124,0.13);
}
.modal-content h2 {
  font-size: 1.23rem;
  margin-bottom: 11px;
}
.modal-content .close-modal {
  background: none;
  border: none;
  position: absolute;
  top: 18px; right: 27px;
  font-size: 2rem;
  color: #23527C;
  cursor: pointer;
  z-index: 3200;
}

/* COOKIE BANNER ---------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #1d2630;
  z-index: 2100;
  box-shadow: 0 -2px 16px 0 rgba(35,82,124,0.09);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding: 28px 18px 18px 18px;
  width: 100%;
  animation: slideUp 0.65s cubic-bezier(.77,0,.18,1.01);
}
@keyframes slideUp {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
.cookie-banner-text {
  font-size: 1rem;
  color: #313a45;
  margin-bottom: 10px;
  flex: 1 0 auto;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  background: #23527C;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 9px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.2s, color 0.13s, transform 0.16s, box-shadow 0.18s;
  box-shadow: 0 1px 7px 0 rgba(35,82,124,0.08);
}
.cookie-btn.settings {
  background: #E7EFF6;
  color: #23527C;
  border: 1.5px solid #23527C;
}
.cookie-btn.reject {
  background: #fff;
  color: #14854F;
  border: 1.5px solid #14854F;
}
.cookie-btn:hover, .cookie-btn:focus {
  color: #fff;
  background: #14854F;
  box-shadow: 0 3px 12px 0 rgba(20,133,79,0.12);
  outline: none;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fff;
  color: #14854F;
  border-color: #14854F;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #E7EFF6;
  color: #23527C;
  border-color: #23527C;
}

/* COOKIE MODAL -------------------------------------*/
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px 0 rgba(35,82,124,0.18);
  max-width: 410px;
  width: 100%;
  position: relative;
  padding: 32px 27px 21px 27px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal h3 {
  font-size: 1.09rem;
  margin-bottom: 6px;
  color: #23527C;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cookie-category label {
  font-size: 1rem;
  color: #313a45;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-toggle {
  width: 40px; height: 22px;
  background: #E7EFF6;
  border-radius: 11px;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-toggle input {
  opacity: 0;
  width: 100%; height: 22px;
  margin: 0; position: absolute; left:0; top:0;
  cursor: pointer;
}
.cookie-toggle .toggle-slider {
  position: absolute;
  left: 3px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.21s, background 0.19s;
  box-shadow: 0 1px 3px 0 rgba(35,82,124,0.08);
}
.cookie-toggle input:checked ~ .toggle-slider {
  background: #14854F;
  left: 19px;
}
.cookie-toggle input:checked ~ .toggle-slider {
  background: #14854F;
}
.cookie-modal-actions {
  display: flex;
  gap: 11px;
  margin-top: 10px;
}

/* SECTION SPACING ----------------------------------*/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* RESPONSIVE LAYOUT --------------------------------*/
@media (max-width: 1100px) {
 .container { max-width: 97vw; }
}
@media (max-width: 950px) {
  .content-wrapper {
    padding-left: 0;
    padding-right: 0;
    max-width: 97vw;
  }
}
@media (max-width: 800px) {
 .hero {
    padding: 34px 0;
 }
 section {
   padding: 32px 10px;
 }
 .card {
   padding: 24px 12px;
 }
}
@media (max-width: 768px) {
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .hero {
    padding: 25px 0;
  }
  .hero h1 {
    font-size: 1.55rem;
  }
  section {
    margin-bottom: 38px;
    padding: 22px 2px;
  }
  .card {
    padding: 17px 8px;
  }
  .content-grid, .card-container, .footer-contact, .footer-nav {
    flex-direction: column;
    gap: 17px;
  }
  .testimonial-card {
    font-size: 1rem;
    padding: 13px;
  }
}
@media (max-width: 600px) {
  .hero h1, h1 {
    font-size: 1.23rem;
  }
 .hero p, p {
    font-size: 0.96rem;
 }
  .modal-content {
    padding: 25px 12px 14px 12px;
    max-width: 99vw;
  }
  .cookie-modal {
    padding: 18px 6px 11px 6px;
    max-width: 99vw;
  }
}
@media (max-width: 520px) {
 .footer-contact {
   gap: 11px;
   font-size: 0.91rem;
 }
 .footer-brand {
   font-size: 0.89rem;
 }
 .footer-brand img {
   height: 24px;
 }
 .footer-nav a {
   font-size: 0.91rem;
   padding: 3.5px 7px;
 }
 .cookie-btn, .cta {
   font-size: 0.93rem;
   padding: 7px 17px;
 }
}

/* MICRO-INTERACTIONS & TRANSITIONS ------------------*/
.card, .testimonial-card, .blog-list article, .cta, .cookie-btn, .modal-content, .mobile-menu {
  transition: box-shadow 0.2s, background 0.16s, color 0.17s, transform 0.16s;
}
a, .cta, .main-nav a {
  transition: color 0.18s, background 0.14s, font-weight 0.12s, transform 0.13s;
}

/* FLEXBOX INHERITANCE & MOBILE SECTIONS --------------*/
.text-image-section {
  flex-direction: row;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* CUSTOM UTILITIES ----------------------------------*/
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }

/* Accessibility: Focus-visible outline */
a:focus-visible, button:focus-visible, .cta:focus-visible, .cookie-btn:focus-visible {
  outline: 2px solid #14854F;
  outline-offset: 2px;
}

/* Hide default modal and cookie banner in JS (show via active class) */
.modal, .cookie-banner { display: none; }
.modal.open, .cookie-banner.active {
  display: flex;
}
