/* ===== CSS 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #1d2634;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}
a {
  color: #234163;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #F3BB16;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #234163;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }
p, li { font-size: 1rem; margin-bottom: 12px; color: #273246; }
p:last-child, li:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
button, .cta-primary {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

/* ========== BRAND COLORS ========== */
:root {
  --color-primary: #234163;
  --color-secondary: #F3BB16;
  --color-accent: #E5EAF1;
  --color-bg: #fff;
  --color-text: #1d2634;
  --color-text-dark: #234163;
  --color-border: #E5EAF1;
  --color-error: #C5392E;
}

/* ========== LAYOUT CONTAINER ========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== SPACING & FLEX PATTERNS ========== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(22,28,47,0.06);
  transition: box-shadow 0.2s;
  padding: 24px;
}
.card:hover {
  box-shadow: 0 4px 26px 0 rgba(22,28,47,0.12);
}
.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: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(22,28,47,0.09);
  padding: 20px 24px 16px 24px;
  margin-bottom: 20px;
  min-width: 0;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 22px 0 rgba(22,28,47,0.14);
}
.testimonial-card p {
  font-size: 1rem;
  color: #1d2634;
  margin-bottom: 10px;
}
.testimonial-meta {
  font-size: 0.95rem;
  color: #234163;
  opacity: 0.75;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.feature-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .service-list > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(22,28,47,0.07);
  padding: 28px 20px 22px 20px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 260px;
  transition: box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.feature-grid > div:hover, .service-list > div:hover {
  box-shadow: 0 4px 24px 0 rgba(22,28,47,0.12);
}

/* Responsive adjustments for cards */
@media (max-width: 900px) {
  .feature-grid, .service-list {
    gap: 16px;
  }
  .feature-grid > div, .service-list > div {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ========== HEADER/NAVBAR STYLES ========== */
header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 14px 0 rgba(22,28,47,0.04);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 14px 20px;
  height: 80px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  color: #234163;
  font-weight: 500;
  padding: 6px 2px;
  border-radius: 4px;
  transition: color 0.18s, background 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #F3BB16;
  background: rgba(243,187,22,0.08);
}
.cta-primary {
  display: inline-block;
  background: #234163;
  color: #fff;
  border-radius: 24px;
  padding: 12px 30px 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 13px 0 rgba(22,28,47,0.08);
  transition: background 0.18s, box-shadow 0.19s, color 0.16s;
  border: none;
  margin-left: 24px;
  cursor: pointer;
}
.cta-primary:hover, .cta-primary:focus {
  background: #F3BB16;
  color: #234163;
  box-shadow: 0 4px 25px 0 rgba(35,65,99,0.12);
}
.mobile-menu-toggle{
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #234163;
  cursor: pointer;
  margin-left: 18px;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: rgba(35,65,99,0.08);
}

/* ===== MOBILE MENU (OFFCANVAS + OVERLAY) ===== */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(35,65,99,0.88);
  z-index: 1111;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.6,.08,.24,1);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu .mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  position: absolute;
  top: 22px;
  right: 26px;
  z-index: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu .mobile-menu-close:hover, .mobile-menu .mobile-menu-close:focus {
  background: rgba(243,187,22,0.12);
}
.mobile-nav {
  background: #fff;
  box-shadow: 0 4px 24px 0 rgba(22,28,47,0.13);
  margin-top: 0;
  padding: 38px 36px 32px 36px;
  border-radius: 0 16px 16px 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  max-width: 350px;
}
.mobile-nav a {
  color: #234163;
  font-size: 1.08rem;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 12px 0 12px 6px;
  border-radius: 4px;
  transition: background 0.15s, color 0.18s;
  margin: 0;
  text-align: left;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #E5EAF1;
  color: #F3BB16;
}

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

@media (max-width: 768px) {
  header .container{
    flex-direction: row;
    gap: 8px;
    padding: 12px 8px 12px 8px;
    min-height: 62px;
    height: auto;
  }
  .cta-primary{ margin-left: 8px; padding: 11px 22px; font-size: 1rem; }
}

/* ========== FOOTER STYLES ========== */
footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 28px 0 12px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #234163;
  opacity: 0.7;
  font-size: 1rem;
  padding: 8px 2px;
  border-radius: 4px;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus { color: #F3BB16; opacity: 1; background: rgba(243,187,22,0.07);}
.footer-contact p{
  font-size: 0.97rem;
  color: #1d2634;
  margin-bottom: 5px;
  opacity: .85;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
}

/* ========== GENERAL FORMS ========== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: #fff;
  padding: 10px 14px;
  margin-bottom: 14px;
}
input:focus, textarea:focus, select:focus {
  border-color: #234163;
}
button, .button {
  cursor: pointer;
  border: none;
  background: #234163;
  color: #fff;
  border-radius: 24px;
  padding: 12px 30px;
  font-weight: 600;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 9px rgba(22,28,47,0.05);
  transition: background 0.17s, box-shadow 0.16s, color 0.16s;
}
button:hover, button:focus, .button:hover, .button:focus {
  background: #F3BB16;
  color: #234163;
  box-shadow: 0 4px 13px 0 rgba(35,65,99,0.11);
}

/* ========== TABLES ========== */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 8px 0 rgba(22,28,47,0.06);
}
thead tr {
  background: #E5EAF1;
}
th, td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #E5EAF1;
}
th {
  color: #234163;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  background: #E5EAF1;
}
tbody tr:last-child td { border-bottom: none; }
tbody td { color: #1d2634; font-size: 1rem; }
@media (max-width: 640px) {
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tr { margin-bottom: 16px; }
  td {
    padding: 10px 8px;
    border-bottom: none;
    border-radius: 8px;
    position: relative;
  }
}

/* ========== UTILITY CLASSES ========== */
.flex {
  display: flex !important;
}
.flex-col {
  flex-direction: column !important;
}
.align-center {
  align-items: center !important;
}
.align-start {
  align-items: flex-start !important;
}
.justify-center {
  justify-content: center !important;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
    padding: 0 12px;
  }
  .section {
    padding: 32px 8px;
    margin-bottom: 40px;
  }
}
@media (max-width: 768px) {
  .container{ padding: 0 6px; }
  .content-wrapper, .feature-grid, .service-list, .content-grid, .card-container{
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .section{
    padding: 20px 4px;
    margin-bottom: 33px;
  }
}

/* === ICONS INSIDE LISTS === */
li img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}
li {
  display: flex;
  align-items: center;
  margin-bottom: 11px;
}

/* === LISTS === */
ul, ol {
  margin-bottom: 18px;
}
li strong {
  color: #234163;
  margin-right: 4px;
}

/* === HERO AND SECTION SPACING === */
main section:first-of-type {
  margin-top: 28px;
}
@media (max-width: 700px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  .feature-grid > div, .service-list > div { padding: 17px 10px; font-size: 0.9rem; }
}

/* === BREADCRUMB (if present) === */
.breadcrumb {
  font-size: 0.92rem;
  color: #647188;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.breadcrumb a {
  color: #234163;
  opacity: 0.88;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 32px 0 20px;
}
.pagination button {
  background: #E5EAF1;
  color: #234163;
  font-size: 1.02rem;
  padding: 6px 20px;
  border-radius: 6px;
  transition: background .14s;
  border: none;
}
.pagination button.current, .pagination button:focus {
  background: #234163;
  color: #fff;
}
.pagination button:hover {
  background: #F3BB16;
  color: #234163;
}

/* === ANIMATIONS & MICRO-INTERACTIONS === */
.card, .testimonial-card, .feature-grid > div, .service-list > div {
  transition: box-shadow .21s, transform .18s;
}
.card:hover, .testimonial-card:hover, .feature-grid > div:hover, .service-list > div:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 6px 26px rgba(22,28,47,0.13);
}
.cta-primary, button, .button{
  transition: background .18s, color .14s, box-shadow .19s, transform .16s;
}
.cta-primary:hover, button:hover, .button:hover {
  transform: translateY(-2px) scale(1.025);
}

/* ================================
   COOKIE CONSENT BANNER & MODAL
==================================*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid #E5EAF1;
  box-shadow: 0 -2px 16px 0 rgba(22,28,47,0.11);
  padding: 24px 12px 18px 12px;
  z-index: 2010;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 1;
  transition: opacity .29s, bottom .36s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  bottom: -150px;
}
.cookie-banner-text {
  color: #234163;
  font-size: 1.03rem;
  flex: 1 1 210px;
  min-width: 180px;
  max-width: 540px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  transition: background .14s, color .12s, box-shadow .11s, transform .14s;
}
.cookie-btn.accept {
  background: #234163;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #F3BB16;
  color: #234163;
}
.cookie-btn.reject {
  background: #E5EAF1;
  color: #234163;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F3BB16;
  color: #234163;
}
.cookie-btn.settings {
  background: #fff;
  color: #234163;
  border: 1px solid #E5EAF1;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F3BB16;
  color: #234163;
  border: 1px solid #F3BB16;
}

/* ========== COOKIE PREFERENCES MODAL ========== */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,65,99,0.29);
  z-index: 2101;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px 0 rgba(22,28,47,0.16);
  max-width: 390px;
  width: 99vw;
  padding: 30px 26px 26px 26px;
  z-index: 2211;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: appear-modal .31s cubic-bezier(.51,.38,.46,1.13);
}
@keyframes appear-modal {
  0%{ opacity: 0; transform: scale(0.9); }
  80%{ opacity: 1; transform: scale(1.03);}
  100%{ opacity: 1; transform: scale(1); }
}
.cookie-modal-close {
  background: none;
  border: none;
  position: absolute;
  top: 15px;
  right: 21px;
  font-size: 1.68rem;
  color: #1d2634;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #E5EAF1;
}
.cookie-modal h3 {
  font-size: 1.22rem;
  margin-bottom: 5px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  margin-bottom: 10px;
  color: #234163;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #F3BB16;
  width: 19px;
  height: 19px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cookie-modal .cookie-category-desc {
  color: #647188;
  font-size: 0.97rem;
  margin-left: 31px;
  margin-bottom: 7px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 11px;
}

/* === MAKE SPACE AT BOTTOM IF BANNER IS PRESENT === */
body.has-cookie-banner {
  padding-bottom: 110px !important;
}

/* ========== MISCELLANEOUS ========== */
::-webkit-input-placeholder { color: #b4bbcc !important; opacity:1; }
::-moz-placeholder { color: #b4bbcc !important; opacity:1; }
:-ms-input-placeholder { color: #b4bbcc !important; opacity:1; }
::placeholder { color: #b4bbcc !important; opacity:1; }

hr {
  border: none;
  border-top: 1px solid #E5EAF1;
  margin: 32px 0 20px;
}

/* == NOTIFICATION/ALERT IF NEEDED == */
.alert {
  background: #fff6d5;
  color: #856404;
  border: 1px solid #F3BB16;
  border-radius: 7px;
  padding: 13px 18px;
  margin-bottom: 20px;
  font-size: 1rem;
}

/* ========== PRINT-ONLY ========== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  .container { max-width: 100vw; padding: 0 !important; }
}
