/* CSS 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 {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F7F8FA;
  font-family: 'Open Sans', Georgia, serif;
  color: #222327;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #174378;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:focus, a:hover {
  color: #C35A00;
}
ul, ol {
  list-style: none;
}
strong, b {
  font-weight: bold;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  color: #174378;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p {
  margin-bottom: 16px;
  color: #344052;
  font-size: 1rem;
}

/* Container, Section & Structure */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(23,67,120,0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* -----------------------------------
   HEADER, NAVIGATION & LOGO
-------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 15px rgba(23,67,120,0.08);
  position: relative;
  padding: 0 0 0 0;
  z-index: 1002;
  width: 100%;
}
.logo-header {
  display: flex;
  align-items: center;
  padding: 18px 20px 14px 20px;
  flex: 1 1 0%;
}
.logo-header img {
  height: 54px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.05rem;
}
.main-nav a {
  color: #174378;
  padding: 6px 5px;
  border-radius: 3px;
  font-weight: 500;
  transition: background 0.15s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E0E5EA;
  color: #C35A00;
}

.header {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

.cta-btn {
  margin-left: 24px;
  padding: 10px 32px;
  background-color: #C35A00;
  color: #fff !important;
  border: none;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  border-radius: 28px;
  box-shadow: 0 2px 12px rgba(195,90,0,0.08);
  cursor: pointer;
  transition: background 0.19s, box-shadow 0.19s, transform 0.15s;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}
.cta-btn:hover, .cta-btn:focus {
  background: #174378 !important;
  color: #fff !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 20px rgba(23,67,120,0.11);
}

button.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: #174378;
  margin-right: 18px;
  margin-left: auto;
  cursor: pointer;
  z-index: 1030;
  transition: color 0.2s, transform 0.17s;
}
button.mobile-menu-toggle:hover{
  color: #C35A00;
  transform: scale(1.09);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1100;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 24px 32px 16px 32px;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.45,0,0.55,1);
  box-shadow: -2px 0 18px rgba(23,67,120,0.07);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 2.0rem;
  color: #174378;
  position: relative;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 22px;
  transition: color 0.2s, transform 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #C35A00;
  transform: scale(1.13);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  padding: 14px 0 8px 0;
  color: #174378;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 600;
  border-bottom: 1px solid #E0E5EA;
  transition: background 0.13s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E0E5EA;
  color: #C35A00;
}

@media (max-width: 1130px) {
  .main-nav {
    gap: 12px;
  }
  .cta-btn { margin-left: 8px; }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
}
@media (max-width: 820px) {
  .main-nav, .cta-btn {
    display: none;
  }
  button.mobile-menu-toggle {
    display: block;
  }
}

/* ---- HERO SECTION ---- */
.hero {
  width: 100%;
  padding: 48px 0 44px 0;
  background: #E0E5EA;
  background: linear-gradient(102deg, #E0E5EA 70%, #264969 100%);
  border-bottom: 1px solid #E0E5EA;
  margin-bottom: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  text-align: center;
  align-items: center;
  gap: 24px;
}
.hero h1 {
  color: #174378;
}
.hero p {
  color: #374969;
  font-size: 1.22rem;
  margin-bottom: 0;
}
.hero .cta-btn {
  margin-top: 24px;
}

/* ---- FEATURES & CARDS ---- */
.feature-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
  margin-top: 10px;
  justify-content: flex-start;
}
.feature-grid li, .service-list li {
  background: #fff;
  border: 1px solid #E0E5EA;
  border-radius: 12px;
  padding: 24px 20px;
  flex: 1 1 310px;
  min-width: 220px;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 1px 4px rgba(23,67,120,0.04);
  transition: box-shadow 0.17s, transform 0.18s, border-color 0.17s;
  position: relative;
  margin-bottom: 20px;
}
.feature-grid li:hover, .service-list li:hover {
  box-shadow: 0 8px 28px rgba(23,67,120,0.11);
  transform: translateY(-2px) scale(1.02);
  border-color: #C35A00;
}
.feature-grid img {
  height: 44px;
  width: 44px;
  margin-bottom: 0;
}
.feature-grid strong, .service-list strong {
  color: #C35A00;
  font-weight: 700;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.05em;
}
.service-list .service-price {
  color: #174378;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.27em;
  font-weight: 600;
  margin-top: 10px;
  display: block;
  letter-spacing: 0.5px;
}
 
/* ---- TESTIMONIALS ---- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F8F8FA;
  border-radius: 11px;
  border: 1px solid #E0E5EA;
  box-shadow: 0 2px 16px rgba(23,67,120,0.10);
  margin-bottom: 20px;
  flex: 1 1 340px;
  position: relative;
  transition: box-shadow 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(195,90,0,0.10);
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #374969;
  font-style: italic;
  flex: 1 1 auto;
  margin-bottom: 0;
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-left: 16px;
}
.testimonial-meta span {
  color: #C35A00;
  font-size: 1.08rem;
  line-height: 1;
  margin-bottom: 4px;
}
.testimonial-meta strong {
  color: #174378;
  font-size: 1rem;
  font-weight: 700;
}

/* ---- TEXT SECTION ----*/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.02rem;
  color: #344052;
}
.text-section h2, .text-section h3, .text-section h4 {
  margin-top: 24px;
}
.text-section ul, .text-section ol {
  margin-bottom: 14px;
}
.text-section li {
  padding-left: 1.2em;
  position: relative;
  margin-bottom: 6px;
}
.text-section li:before {
  content: '\2014';
  color: #174378;
  display: inline-block;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
}

/* ---- GENERAL FLEX LAYOUTS ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 12px rgba(23,67,120,0.04);
  padding: 28px 20px 24px 20px;
  border: 1px solid #E0E5EA;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.15s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(23,67,120,0.09);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/************************************
 * RESPONSIVE LAYOUT (MOBILE-FIRST) *
 ***********************************/
@media (max-width: 768px) {
  .hero {
    padding-top: 22px;
    padding-bottom: 34px;
    margin-bottom: 28px;
  }
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu {
    display: none;
    padding: 18px 8vw 10vh 8vw !important;
  }
  .mobile-menu.open {
    display: flex;
  }
  .container {
    max-width: 99vw;
    padding: 0 2vw;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 42px;
    border-radius: 11px;
  }
  .card, .feature-grid li, .service-list li, .testimonial-card {
    min-width: unset;
    max-width: 98vw;
    width: 100%;
  }
  .content-grid,
  .feature-grid,
  .service-list {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/**** ADDITIONAL FLEX/SPACING PATTERNS ****/
.contact-data {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 8px 0;
}

/************************************
 *  FOOTER
 ************************************/
footer {
  background: #fff;
  border-top: 1px solid #E0E5EA;
  margin-top: 54px;
  padding: 32px 0 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #174378;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #E0E5EA;
  color: #C35A00;
}
.footer-info {
  color: #616672;
  font-size: 0.97rem;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  text-align: center;
}

/************************************
 *  BUTTONS
 ************************************/
button, .cta-btn {
  outline: none;
  box-shadow: none;
  transition: background 0.2s, color 0.17s, box-shadow 0.16s, transform 0.13s;
}
button:focus, .cta-btn:focus {
  box-shadow: 0 0 0 2px #E98024;
}
button[disabled], .cta-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/************************************
 *  COOKIE CONSENT BANNER
 ************************************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid #E0E5EA;
  box-shadow: 0 -2px 12px rgba(23,67,120,0.08);
  padding: 16px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1500;
  animation: cookie-slidein 0.7s cubic-bezier(0.41,0,0.71,1);
}
@keyframes cookie-slidein {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #222327;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 0;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 6px;
  justify-content: center;
}
.cookie-banner button {
  padding: 8px 22px;
  border-radius: 24px;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: #E0E5EA;
  color: #174378;
  transition: background 0.15s, color 0.17s, transform 0.13s;
}
.cookie-banner button.accept {
  background: #C35A00;
  color: #fff;
}
.cookie-banner button.accept:hover, .cookie-banner button.accept:focus {
  background: #174378;
  color: #fff;
}
.cookie-banner button.reject {
  background: #E0E5EA;
  color: #174378;
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: #C35A00;
  color: #fff;
}
.cookie-banner button.settings {
  background: transparent;
  color: #174378;
  border: 1.5px solid #C35A00;
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #F6EEE4;
  color: #C35A00;
}

/************************************
 *  COOKIE PREFERENCES MODAL
 ************************************/
.cookie-modal-overlay {
  position: fixed;
  z-index: 1600;
  top: 0; left: 0; right: 0; bottom: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(23, 67, 120, 0.24);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: cookiemodal-fadein 0.24s cubic-bezier(0.46,0,0.68,1);
}
@keyframes cookiemodal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(23,67,120,0.19);
  padding: 32px 28px 24px 28px;
  max-width: 480px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 1620;
  animation: cookiemodal-slidein 0.28s cubic-bezier(0.51,0,0.76,1);
}
@keyframes cookiemodal-slidein {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Georgia, serif;
  color: #174378;
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}
.cookie-category label {
  font-size: 1rem;
  color: #344052;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #E0E5EA;
  border-radius: 28px;
  transition: background 0.15s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #C35A00;
}
.cookie-slider:before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3.3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(23,67,120,0.08);
  transition: transform 0.18s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(14px);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 12px;
  justify-content: flex-end;
}

/************************************
 *  MISC
 ************************************/
::-webkit-input-placeholder { color: #B0B8C3; opacity: 1; }
::-moz-placeholder { color: #B0B8C3; opacity: 1; }
:-ms-input-placeholder { color: #B0B8C3; opacity: 1; }
::placeholder { color: #B0B8C3; opacity: 1; }

[tabindex]:focus { outline: 2px solid #C35A00 !important; }

/* Remove last child margin problems */
.content-wrapper > *:last-child,
.section > *:last-child,
.text-section > *:last-child {
  margin-bottom: 0 !important;
}

/************************************
 *  SCROLLBAR & SELECTION
 ************************************/
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-thumb { background: #E0E5EA; border-radius: 8px; }
::-webkit-scrollbar-track { background: #fff; }
::selection { background: #C35A00; color: #fff; }

@media (max-width:480px) {
  .cookie-modal { padding: 14px 5vw; }
}

/* Hide cookie-modal overlay by default */
.cookie-modal-overlay {
  display: none;
}
.cookie-modal-overlay.active {
  display: flex;
}

/**** REMOVE OUTLINES for click but not for keyboard ****/
button:not(:focus-visible):not(.mobile-menu-toggle):not(.mobile-menu-close) {
  outline: none;
}

/* Ensuring min 20px margins on content cards/sections */
.card, .feature-grid li, .service-list li, .testimonial-card, .section {
  margin-bottom: 20px;
}

/**** ACCESSIBLE FOCUS STYLE ****/
.main-nav a:focus, .footer-nav a:focus, .mobile-nav a:focus, .cta-btn:focus, button:focus {
  outline: 2.5px solid #C35A00 !important;
  outline-offset: 2px;
  z-index: 4;
}
