/* ========================================================================
   CSS RESET & NORMALIZATION
   ======================================================================== */
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 {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  line-height: 1.55;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #222;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

ul, ol {
  list-style: none;
}

a {
  color: #214478;
  text-decoration: underline;
  transition: color 0.16s;
}
a:hover, a:focus {
  color: #38A169;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

/* ========================================================================
   BRAND COLORS & TYPOGRAPHY
   ======================================================================== */
:root {
  --color-primary: #214478;
  --color-primary-contrast: #fff;
  --color-secondary: #38A169;
  --color-accent: #F5FAFF;
  --color-body: #222;
  --color-muted: #888;
  --color-border: #eaeaea;
  --shadow-card: 0 2px 12px rgba(33,68,120,0.04), 0 0.5px 1px rgba(34,50,80,0.02);
  --shadow-hover: 0 4px 24px rgba(33,68,120,0.10);
  --radius-card: 14px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 18px;
}
h1 {
  font-size: 2.75rem; /* 44px */
  line-height: 1.13;
  letter-spacing: -.01em;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-top: 16px;
}
h3 {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  color: var(--color-body);
}
h4, h5, h6 {
  font-size: 1rem;
}
p {
  margin-bottom: 18px;
  color: var(--color-body);
  font-size: 1rem;
}
.text-section p, .text-section ul, .text-section ol, .text-section dl {
  color: var(--color-body);
}
ul, ol {
  padding-left: 1.4rem;
  margin-bottom: 18px;
  color: var(--color-body);
}
li {
  margin-bottom: 8px;
  line-height: 1.6;
}

hr {
  border: none;
  border-bottom: 1px solid var(--color-border);
  margin: 32px 0;
}

/* ========================================================================
   SPACING & LAYOUT CONTAINERS (FLEXBOX ONLY)
   ======================================================================== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.15s, transform 0.15s;
  padding: 24px;
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 360px;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.02);
  z-index: 1;
}

.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: var(--color-accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 380px;
  flex: 1 1 300px;
  color: var(--color-body);
  position: relative;
  transition: box-shadow 0.16s, transform 0.13s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.01);
  z-index: 2;
}
.testimonial-footer {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 500;
}
.rating {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-size: 1.1rem;
  letter-spacing: .08em;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.feature-card {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 350px;
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.16s, transform 0.13s;
}
.feature-card img {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  object-fit: contain;
}
.feature-card h3 {
  margin-bottom: 9px;
}
.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.01);
}

.team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-member {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 18px;
  flex: 1 1 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
  gap: 13px;
  text-align: center;
  margin-bottom: 20px;
}
.team-member img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 5px;
  box-shadow: 0 1px 3px rgba(33,68,120,0.05);
}

/* Testimonial Row (Home page) */
.testimonial-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}

/* Feature Items pattern */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.map-placeholder {
  border-radius: var(--radius-card);
  background: var(--color-accent);
  padding: 17px 18px;
  margin-top: 14px;
  box-shadow: var(--shadow-card);
  color: var(--color-body);
}

/* ========================================================================
   HEADER & NAVIGATION
   ======================================================================== */
header {
  background: #fff;
  box-shadow: 0px 2px 12px rgba(33,68,120,0.035);
  position: sticky;
  top: 0;
  z-index: 1002;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
}
.main-nav > a img {
  height: 38px;
  margin-right: 12px;
}
.main-nav nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.main-nav nav a {
  color: var(--color-body);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  padding: 7px 3px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.main-nav nav a:hover, .main-nav nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border-radius: 999px;
  padding: 12px 32px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .01em;
  text-transform: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(33,68,120,0.05);
  transition: background 0.17s, transform 0.12s, box-shadow 0.15s;
  outline: none;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-1px) scale(1.015);
  box-shadow: 0 4px 16px rgba(33,68,120,0.10);
}

/* Hamburger Icon */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-primary);
  padding: 6px 16px;
  cursor: pointer;
  transition: color 0.12s;
  z-index: 1202;
}
.mobile-menu-toggle:focus {
  color: var(--color-secondary);
}

/* ========================================================================
   MOBILE MENU (SLIDE IN NAVIGATION)
   ======================================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  overflow-y: auto;
  z-index: 1200;
  box-shadow: 0 2px 32px rgba(33,68,120,0.11);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-104vw);
  transition: transform 0.42s cubic-bezier(.74,.05,.34,1), opacity 0.23s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.mobile-menu.open {
  pointer-events: all;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  position: absolute;
  top: 20px;
  right: 28px;
  color: var(--color-body);
  cursor: pointer;
  z-index: 1201;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 68px;
  width: 100%;
  align-items: flex-start;
  padding: 0 40px 30px 40px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--color-body);
  text-decoration: none;
  padding: 13px 4px;
  border-radius: 7px;
  transition: background 0.14s, color 0.12s;
  display: block;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* Hide desktop nav and show mobile icons accordingly */
@media (max-width: 960px) {
  .main-nav nav {
    display: none;
  }
  .btn-primary {
    padding: 12px 20px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (max-width: 400px) {
  .mobile-nav {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Make sure hamburger is always on top */
.mobile-menu-toggle {
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 1230;
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */
.hero {
  background: var(--color-accent);
  padding-bottom: 0px;
  padding-top: 30px;
  min-height: 275px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 6px rgba(33,68,120,0.04);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 17px;
}
.hero h1 {
  color: var(--color-primary);
  margin-bottom: 9px;
}
.hero p {
  color: var(--color-body);
  font-size: 1.08rem;
  max-width: 600px;
}
.hero .btn-primary {
  margin-top: 13px;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
footer {
  border-top: 1px solid var(--color-border);
  background: #fff;
  padding: 44px 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
  align-items: center;
}
.footer-nav a {
  color: var(--color-muted);
  font-size: .98rem;
  text-decoration: none;
  border-radius: 5px;
  padding: 4px 7px;
  transition: background 0.13s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-primary);
  background: var(--color-accent);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  color: var(--color-body);
  font-size: .99rem;
  align-items: flex-start;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 0px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

/* ========================================================================
   COOKIE CONSENT BANNER & MODAL
   ======================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(33,68,120,0.07);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 16px 30px;
  z-index: 2200;
  opacity: 1;
  transition: transform 0.35s, opacity 0.25s;
  font-size: 1rem;
}
.cookie-banner.hide {
  pointer-events: none;
  opacity: 0;
  transform: translateY(110%);
}
.cookie-banner p {
  flex: 1;
  color: var(--color-body);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-banner .btn-cookie {
  appearance: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 20px;
  font-family: var(--font-display);
  cursor: pointer;
  font-weight: 600;
  border: none;
  margin-left: 0;
  transition: background 0.14s, color 0.13s;
}
.cookie-banner .btn-cookie.secondary {
  background: var(--color-secondary);
}
.cookie-banner .btn-cookie.settings {
  background: #f6f6f8;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.cookie-banner .btn-cookie:hover, .cookie-banner .btn-cookie:focus {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner .btn-cookie.settings:hover, .cookie-banner .btn-cookie.settings:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33,68,120,0.13);
  z-index: 2300;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.open {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 6px 36px rgba(33,68,120,0.14);
  max-width: 420px;
  min-width: 305px;
  width: 88vw;
  padding: 36px 23px 29px 23px;
  display: flex;
  flex-direction: column;
  gap: 23px;
  z-index: 2310;
  opacity: 1;
  animation: fadeInModal 0.32s ease;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(.96) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h3 {
  color: var(--color-primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cookie-modal .toggle {
  appearance: none;
  background: #eaeaea;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .toggle:checked {
  background: var(--color-secondary);
}
.cookie-modal .toggle:before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1.5px 4px rgba(33,68,120,0.09);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.18s;
}
.cookie-modal .toggle:checked:before {
  left: 20px;
}
.cookie-modal .category-desc {
  color: var(--color-muted);
  font-size: .97rem;
  margin-left: 8px;
}
.cookie-modal .actions {
  display: flex;
  gap: 14px;
  margin-top: 7px;
  justify-content: flex-end;
}
.cookie-modal .btn-cookie {
  font-size: 1rem;
  padding: 8px 19px;
  border-radius: 999px;
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */
@media (max-width: 960px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .main-nav {
    padding-left: 4px;
    padding-right: 4px;
  }
  .feature-grid, .testimonial-row, .team-profiles, .card-container, .content-grid {
    gap: 18px;
  }
  .section {
    padding: 32px 8px;
    margin-bottom: 42px;
  }
  .hero {
    padding: 28px 0 16px 0;
  }
  .cookie-banner {
    padding: 14px 15px 11px 13px;
    font-size: .99rem;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .content-wrapper, .text-section {
    gap: 16px;
  }
  .feature-grid, .testimonial-row, .team-profiles, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 19px;
    align-items: flex-start;
  }
  .main-nav > a img {
    height: 32px;
  }
  .section {
    padding: 25px 5px;
    margin-bottom: 26px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 12px;
  }
  .footer-contact div {
    margin-bottom: 0px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.32rem;
  }
  h3 {
    font-size: 1.07rem;
  }
  .btn-primary,
  .cookie-banner .btn-cookie,
  .cookie-modal .btn-cookie {
    font-size: .98rem;
    padding: 10px 15px;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .hero h1 {
    font-size: 1.37rem;
  }
  .section {
    padding: 19px 2px;
  }
}

/* ========================================================================
   ELEMENT STYLES (COMPONENTS & EFFECTS)
   ======================================================================== */
.text-section {
  color: var(--color-body);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section h2,
.text-section h3 {
  color: var(--color-primary);
}
.text-section ul, .text-section ol {
  margin-bottom: 14px;
  margin-top: 3px;
}
.text-section ul li, .text-section ol li {
  color: var(--color-body);
  font-size: 1rem;
  margin-bottom: 4px;
  padding-left: 0.18em;
}
.text-section li:before {
  display: none;
}

/* FAQ/Definition List */
dl {
  margin-bottom: 20px;
}
dt {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
  margin-top: 11px;
}
dd {
  margin-left: 10px;
  color: var(--color-body);
}

ol {
  list-style: decimal inside;
}
ul {
  list-style: disc inside;
}

/* Map Placeholder Card on Contact Page */
.map-placeholder p {
  margin: 0;
  color: var(--color-body);
  font-size: 1rem;
}

/* REVIEW/TESTIMONIALS CONTRAST FIX */
.testimonial-card,
.testimonial-row .testimonial-card {
  background: var(--color-accent);
  color: var(--color-body);
}
.testimonial-card h3,
.testimonial-card p,
.testimonial-card .testimonial-footer {
  color: var(--color-body);
}

/* ========================================================================
   FORM ELEMENTS (FOR GENERAL FORMS/INPUTS)
   ======================================================================== */
input[type='text'],
input[type='email'],
input[type='number'],
input[type='tel'],
input[type='password'],
textarea, select {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 14px;
  width: 100%;
  background: #fff;
  color: var(--color-body);
  font-size: 1rem;
  transition: border-color 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  outline: none;
}

label {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 7px;
  color: var(--color-primary);
  font-weight: 500;
  display: block;
}

/* ========================================================================
   MICRO-INTERACTIONS, ANIMATION EFFECTS
   ======================================================================== */
.btn-primary, .btn-cookie {
  transition: background 0.17s, color 0.15s, transform 0.13s, box-shadow 0.12s;
}
.card, .feature-card, .testimonial-card {
  transition: box-shadow 0.16s, transform 0.15s;
}
.card:hover, .feature-card:hover, .testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.01);
}
@media (hover: none) {
 .card:hover, .feature-card:hover, .testimonial-card:hover {
   box-shadow: var(--shadow-card);
   transform: none;
 }
}

/* ========================================================================
   UTILITIES
   ======================================================================== */
.align-center { text-align: center; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 24px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 24px !important; }
.gap-2 { gap: 24px !important; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.w-full { width: 100%; }
.maxw-xs { max-width: 350px; }
.no-select { user-select: none; }

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

/* ========================================================================
   END OF CSS
   ======================================================================== */