/* =============================
   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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f8f9fa;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* =============================
   CSS VARIABLES (FALLBACKS)
============================= */
:root {
  --primary: #205072;
  --secondary: #329d9c;
  --accent: #e9e6e1;
  --bg-main: #f8f9fa;
  --bg-section: #fff;
  --text: #22313a;
  --text-light: #626e7e;
  --border: #e2e6ea;
  --shadow: 0 4px 16px 0 rgba(32,80,114,0.09);
  --radius: 12px;
}

/* =============================
    TYPOGRAPHY
============================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-main);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

p, ul, ol {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--text-light);
}
strong { color: var(--primary); font-weight: 700; }

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

/* =============================
   LAYOUT CONTAINERS
============================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =============================
   SECTIONS & FLEX LAYOUTS
============================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-section);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: 0 8px 32px -4px rgba(32,80,114,0.18);
  transform: translateY(-2px);
}
.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;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
  flex: 1 1 280px;
  min-width: 0;
  color: var(--text);
}
.testimonial-card p {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.testimonial-card span {
  margin-left: auto;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-list .text-section {
  flex: 1 1 320px;
  box-shadow: var(--shadow);
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px 18px;
}

/* ========== Spacing for lists within features/text ========= */
ul, ol {
  margin-left: 22px;
}
ul li, ol li {
  margin-bottom: 8px;
  color: var(--text-light);
}
ul li strong, ol li strong {
  color: var(--primary);
}

/* =============================
   HEADER, NAV & MOBILE MENU
============================= */
header {
  background: #fff;
  box-shadow: var(--shadow);
  padding: 0;
  z-index: 100;
  position: sticky;
  top: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  max-width: 1160px;
  margin: 0 auto;
  gap: 40px;
}
.main-nav > a img {
  height: 40px;
}
.main-nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  margin: 0 30px 0 0;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--primary);
  font-size: 1.05rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
  position: relative;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: var(--accent);
  color: var(--secondary);
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.07rem;
  padding: 10px 30px;
  border-radius: 32px;
  box-shadow: 0 2px 8px 0 rgba(32,80,114,0.05);
  border: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.17s;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 6px 26px -4px rgba(50,157,156,0.14);
  transform: translateY(-1px) scale(1.028);
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 20px;
  top: 12px;
  z-index: 180;
  border: none;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover {
  background: var(--secondary);
}
/* ============ MOBILE MENU ============ */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  width: 310px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 32px 2px rgba(32,80,114,0.12);
  z-index: 250;
  transform: translateX(105%);
  transition: transform 0.38s cubic-bezier(.77,.2,.24,1);
  padding: 32px 18px 18px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: var(--accent);
  border-radius: 50%;
  padding: 8px 16px;
  margin-bottom: 20px;
  color: var(--primary);
  transition: background 0.18s;
}
.mobile-menu-close:hover {
  background: var(--secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  padding: 14px 6px;
  color: var(--primary);
  border-radius: 6px;
  transition: background 0.17s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
/* =========== Responsive menu toggles =========== */
@media (max-width: 1060px) {
  .main-nav {
    padding-left: 12px;
    padding-right: 12px;
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .main-nav ul {
    gap: 14px;
    margin-right: 8px;
  }
  .cta-primary {
    font-size: 0.99rem;
    padding: 8px 20px;
  }
}
@media (max-width: 768px) {
  .main-nav ul, .main-nav .cta-primary {
    display: none;
  }
  .main-nav {
    gap: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu {
    width: 100vw;
    max-width: 100vw;
    padding-left: 26px;
  }
}
/* Overlay to dim background when menu open */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(32,80,114,0.14);
  transition: opacity 0.3s;
}
.mobile-menu.open + .mobile-menu-backdrop {
  display: block;
  opacity: 1;
}

/* =============================
     MAIN & HERO SECTIONS
============================= */
main {
  min-height: 480px;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
@media (max-width: 768px) {
  section {
    padding: 24px 0;
    margin-bottom: 38px;
  }
}

/* =============================
   FOOTER
============================= */
footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 40px 0 0 0;
  margin-top: 30px;
}
footer .content-wrapper {
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-menu ul, .legal-menu ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu ul li a, .legal-menu ul li a {
  color: var(--text-light);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.16s;
}
.footer-menu ul li a:hover, .legal-menu ul li a:hover {
  color: var(--primary);
}
footer .text-section {
  max-width: 220px;
  color: var(--text-light);
  font-size: 0.99rem;
  gap: 6px;
}
footer img {
  max-width: 90px;
  margin-bottom: 10px;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}

/* =============================
   BUTTONS & LINKS
============================= */
.button,
.btn,
.cta-primary {
  cursor: pointer;
  outline: none;
}
.button:active,
.btn:active,
.cta-primary:active {
  opacity: 0.94;
}
a {
  transition: color 0.18s;
}
a:active {
  opacity: 0.93;
}

/* =============================
   FORM ELEMENTS (if needed)
============================= */
input,
select,
textarea {
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 1.05rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
  margin-bottom: 14px;
  transition: border 0.16s;
}
input:focus,
select:focus,
textarea:focus {
  border: 1.5px solid var(--primary);
}

/* =============================
   RESPONSIVE LAYOUTS
============================= */
@media (max-width: 1060px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  .footer-menu, .legal-menu {
    margin-bottom: 14px;
  }
  .service-list {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .content-wrapper, .section {
    padding: 14px 3px;
    gap: 16px;
  }
  .service-list .text-section {
    padding: 12px 10px;
    font-size: 1rem;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 12px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* =============================
   UTILITIES & MISC
============================= */
.shadow {
  box-shadow: var(--shadow);
}
.rounded {
  border-radius: var(--radius);
}
.bg-primary { background: var(--primary); color: #fff; }
.bg-accent  { background: var(--accent); color: var(--primary); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.gap-20 { gap: 20px; }
.mb-20 { margin-bottom: 20px !important; }

/* =============================
   COOKIE CONSENT BANNER
============================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: #fff;
  box-shadow: 0 -3px 22px -4px rgba(32,80,114,.16);
  border-top: 2px solid var(--primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 30px;
  min-height: 70px;
  transition: transform 0.3s;
  gap: 24px;
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner__text {
  color: var(--text);
  font-size: 0.99rem;
  max-width: 570px;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 8px 21px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 24px;
  border: none;
  transition: background 0.14s;
  margin-right: 8px;
}
.cookie-btn-accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn-accept:hover { background: var(--secondary); }
.cookie-btn-reject {
  background: #ebebf0;
  color: var(--primary);
}
.cookie-btn-reject:hover {
  background: #cbcfd3;
}
.cookie-btn-settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn-settings:hover { background: var(--secondary); color: #fff; }

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 12px;
    gap: 18px;
    min-height: 92px;
  }
  .cookie-banner__actions {
    width: 100%;
    gap: 10px;
  }
}

/* =============================
   COOKIE PREFERENCES MODAL
============================= */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(32,80,114,0.28);
  z-index: 1003;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.23s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px 8px rgba(32,80,114,.19);
  max-width: 400px;
  width: 96vw;
  padding: 34px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modalSlideIn 0.25s cubic-bezier(.62,1.23,.57,.92);
}
@keyframes modalSlideIn { from { transform: translateY(48px); opacity: 0;} to { transform: translateY(0); opacity: 1;} }
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-category {
  background: var(--accent);
  border-radius: 7px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-category input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  margin-left: 12px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.5rem;
  background: var(--accent);
  border-radius: 50%;
  padding: 4px 10px;
  color: var(--primary);
  transition: background 0.18s;
}
.cookie-modal-close:hover {
  background: var(--secondary);
  color: #fff;
}

/* =============================
   ANIMATIONS
============================= */
.section, .card, .service-list .text-section, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.19s, background 0.18s;
}
.cta-primary, .button, .cookie-btn {
  transition: background 0.18s, color 0.17s, transform 0.17s, box-shadow 0.18s;
}

/* =============================
   SCROLLBAR
============================= */
::-webkit-scrollbar {
  width: 10px;
  background: #eee;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 8px;
}

/* =============================
   MISC & OVERRIDES
============================= */
@media (max-width: 620px) {
  .footer-menu ul, .legal-menu ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  footer .text-section {
    max-width: 100%;
    margin-bottom: 8px;
  }
}

/* =============================
   FOCUS STATES FOR ACCESSIBILITY
============================= */
a:focus, button:focus, .cta-primary:focus, .cookie-btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* =============================
   PRINT STYLES
============================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none!important;
  }
}
