/* ===== CSS 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, main, nav, section {
 display: block;
}
body {
  line-height: 1.6;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #244158;
  background: #F3F6F9;
  min-height: 100vh;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
}
a {
  color: #244158;
  text-decoration: none;
}
ul, ol {
  padding-left: 1.2em;
}
img {
  max-width: 100%;
  display: block;
}

/* ====== FONTS ====== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');
h1, h2, h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.16;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
p, ul, ol, blockquote {
  font-size: 1rem;
  margin-bottom: 16px;
}
strong {
  font-weight: bold;
  color: #244158;
}

/* ====== GRADIENTS & BRAND COLORS ====== */
:root {
  --color-primary: #244158;
  --color-secondary: #F3F6F9;
  --color-accent: #DDA032;
  --gradient-main: linear-gradient(90deg, #DDA032 0%, #244158 100%);
  --gradient-reverse: linear-gradient(90deg, #244158 0%, #DDA032 100%);
  --shadow-card: 0 6px 24px 0 rgba(36,65,88,0.08);
  --shadow-hover: 0 8px 32px 0 rgba(36,65,88,0.20);
  --radius: 16px;
  --radius-small: 8px;
}

body {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* ===== CONTAINER & SECTIONS (Spacing and Alignment) ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
}
section {
  margin-bottom: 0; /* handled by .section */
}
.content-wrapper {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  margin-bottom: 20px;
}
.text-section {
  text-align: center;
}
.cta-section {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: var(--shadow-card);
  margin-bottom: 0;
}

/* ===== LINKS & BUTTONS ===== */
.cta-primary, .cta-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 14px 32px;
  border-radius: var(--radius-small);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  margin-top: 18px;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.cta-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 2px 10px rgba(221,160,50,0.12);
  border: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--gradient-reverse);
  color: #fff;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.025);
}
.cta-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.025);
}

/* ===== NAVIGATION STYLES ===== */
header {
  background: #fff;
  box-shadow: 0 1px 18px rgba(36,65,88,0.07);
  padding: 0;
  position: relative;
  z-index: 1400;
}
nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 0 18px 0;
  position: relative;
}
nav > a img {
  height: 36px;
  width: auto;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
}
nav ul li {
  display: flex;
  align-items: center;
}
nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  opacity: 0.92;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.14s, color 0.12s;
}
nav ul li a:hover, nav ul li a:focus {
  color: var(--color-accent);
  background: #F9F5F1;
}

/* ----- MOBILE NAVIGATION ----- */
.mobile-menu-toggle {
  display: none;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  margin-left: 18px;
  z-index: 1250;
  position: relative;
  transition: background 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  right: 0;
  top: 0;
  width: 340px;
  max-width: 96vw;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 22px 0 rgba(36,65,88,0.15);
  z-index: 2000;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(.6,.19,.24,.93);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  padding: 16px 18px 12px 8px;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 36px 0 0 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  color: var(--color-primary);
  padding: 12px 0;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}

/* Overlay for mobile menu */
.mobile-menu-overlay {
  content: '';
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,65,88,0.22);
  z-index: 1990;
}
.mobile-menu.open ~ .mobile-menu-overlay {
  display: block;
}

@media (max-width:1023px) {
  nav ul {
    display: none;
  }
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width:1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ====== FLEX PATTERNS / LAYOUTS ====== */
.card-container,
.card-grid,
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 20px;
  justify-content: center;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 18px;
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px) scale(1.02);
}
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service-card {
  flex: 1 1 250px;
  min-width: 210px;
  max-width: 340px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.16s, transform 0.14s;
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.015);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px 30px;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #244158;
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.12rem;
  color: #244158;
  margin-bottom: 0;
}
.testimonial-card div {
  font-size: 0.98rem;
  color: #585B6D;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- Contact details flex ---- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

/* ====== LISTS IN CARDS AND SECTIONS ====== */
.content-wrapper ul, .content-wrapper ol {
  margin-top: 12px;
  margin-bottom: 18px;
  padding-left: 22px;
}
.content-wrapper ul li, .content-wrapper ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.content-wrapper ul li img {
  width: 22px;
  height: 22px;
  margin-right: 7px;
}
.content-wrapper ul li span {
  display: inline-block;
  padding: 0 10px 0 0;
  border-radius: 4px;
  font-weight: bold;
  min-width: 70px;
}

/* ====== FOOTER STYLES ====== */
footer {
  background: #244158;
  color: #fff;
  padding: 44px 0 28px 0;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.98rem;
  box-shadow: 0 -2px 16px rgba(36,65,88,0.12);
}
footer > a img {
  height: 42px;
  width: auto;
  margin-bottom: 9px;
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0 0 25px 0;
  padding: 0;
}
footer ul li a {
  color: #fff;
  opacity: 0.9;
  transition: color 0.13s, opacity 0.13s;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
footer ul li a:hover, footer ul li a:focus {
  color: var(--color-accent);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
  align-items: center;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #E6EAF3;
  font-size: 0.96rem;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  filter: brightness(95%) grayscale(18%);
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  color: #244158;
  box-shadow: 0 -5px 20px 0 rgba(36,65,88,0.12);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 30px 22px 30px;
  gap: 14px;
  animation: cookieBannerIn 0.55s cubic-bezier(0.4, 0.11, 0.16, 1) 1;
}
@keyframes cookieBannerIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  max-width: 560px;
  text-align: center;
  margin-bottom: 0;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 10px;
}
.cookie-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: var(--radius-small);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 18px;
  min-width: 120px;
  border: none;
  transition: background 0.12s, color 0.12s, box-shadow 0.13s;
  cursor: pointer;
}
.cookie-accept {
  background: var(--gradient-main);
  color: #fff;
}
.cookie-accept:hover {
  background: var(--color-primary);
  color: #fff;
}
.cookie-reject {
  background: #e3e6eb;
  color: var(--color-primary);
  border: 1px solid #BCC8D3;
}
.cookie-reject:hover {
  background: var(--color-accent);
  color: #fff;
}
.cookie-settings {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cookie-settings:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ------ COOKIE MODAL POPUP ------ */
.cookie-modal {
  position: fixed;
  z-index: 4000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(36,65,88,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.28s cubic-bezier(.6,.19,.36,.93) 1;
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  padding: 36px 30px 30px 30px;
  border-radius: var(--radius);
  max-width: 420px;
  min-width: 300px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h2 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: #244158;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover { color: var(--color-accent); }

.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 9px 0;
}
.cookie-category-title {
  font-weight: bold;
  color: var(--color-primary);
  margin-right: 8px;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 13px;
  background: #e4e7ed;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-toggle:checked {
  background: var(--color-accent);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
  box-shadow: 0 1px 5px rgba(36,65,88,0.10);
}
.cookie-toggle:checked:before {
  transform: translateX(14px);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
  justify-content: flex-end;
}

/* ======= RESPONSIVE DESIGN ======= */
@media (max-width: 1023px) {
  .container {
    max-width: 99vw;
    padding-left: 14px;
    padding-right: 14px;
  }
  .content-wrapper, .cta-section {
    padding: 22px 8px 22px 8px;
  }
  .section {
    padding: 28px 8px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.05rem; }
  .card-container, .card-grid, .service-cards {
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: stretch;
  }
  .card, .service-card {
    max-width: 100%;
    min-width: 0;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .testimonial-card {
    padding: 20px 10px;
  }
  footer ul {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
  }
  .footer-contact {
    align-items: flex-start;
  }
}

@media (max-width:600px) {
  .cookie-banner {
    padding: 16px 4vw;
  }
  .cookie-modal-content {
    padding: 16px 7vw 16px 7vw;
    min-width: unset;
    max-width: 90vw;
  }
}

/* ====== VISUAL HIERARCHY & MICROINTERACTIONS ====== */
.card, .service-card, .cta-section, .content-wrapper {
  transition: box-shadow 0.18s, transform 0.14s;
}
a, button, .cta-primary, .cta-secondary {
  outline: none;
}
a:focus:not(.cta-primary):not(.cta-secondary), button:focus:not(.cta-primary):not(.cta-secondary) {
  box-shadow: 0 0 0 2px var(--color-accent);
  border-radius: 4px;
}

/* ---- Animations for cards ---- */
.card, .service-card {
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover, .service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px) scale(1.02);
}

/* ==== MISC COMPONENTS ==== */
::-webkit-scrollbar {
  width: 10px;
  background: #eaeaea;
}
::-webkit-scrollbar-thumb {
  background: #bcc8d3;
  border-radius: 6px;
}

/* Selection color */
::selection {
  background: var(--color-accent);
  color: #fff;
}

/* Ensure no grid/columns are used */
/* (see only display:flex, flex-wrap, gap, etc.) */
