/* === CSS RESET & NORMALIZE === */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F4F7FA;
  color: #232A36;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: none;
  background: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #D3A13E;
  outline-offset: 2px;
}

/* === VARIABLE & BRAND COLORS === */
:root {
  --primary: #16436A;
  --secondary: #E8E8EB;
  --accent: #BE8D37;
  --accent-light: #D3A13E;
  --gradient-1: linear-gradient(90deg, #16436A 0%, #4479BD 100%);
  --gradient-2: linear-gradient(90deg, #16436A 0%, #E8E8EB 100%);
  --bg-grey: #F4F7FA;
  --text-dark: #232A36;
  --text-light: #F5F6F8;
  --shadow: 0 2px 12px rgba(22,67,106,0.09);
  --shadow-md: 0 4px 24px rgba(22,67,106, .13);
  --radius: 16px;
}

/* === TYPOGRAPHY === */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 24px;
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 10px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
}
p, li {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.subheadline {
  font-size: 1.1rem;
  color: #325b87;
  margin-bottom: 28px;
  max-width: 540px;
}
address {
  font-style: normal;
  color: var(--primary);
  background: var(--secondary);
  padding: 12px 18px;
  border-radius: 12px;
  margin: 16px 0 0 0;
  display: inline-block;
}
strong {
  color: var(--primary);
  font-weight: 700;
}

/* === GENERAL CONTAINERS & SPACING === */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(22, 67, 106, .05);
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 15px 20px;
  gap: 24px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover {
  background: var(--secondary);
  color: var(--accent);
}
header img {
  height: 40px;
  width: auto;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-1);
  border-radius: 24px;
  padding: 12px 30px;
  font-size: 1.1rem;
  box-shadow: 0 2px 16px rgba(22,67,106,0.10);
  border: none;
  transition: background 0.3s, transform 0.15s, box-shadow 0.25s;
  cursor: pointer;
  outline: none;
  margin-left: 8px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent-light);
  color: var(--primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(190,141,55,0.16);
}

/* === HERO SECTION === */
.hero {
  display: flex;
  align-items: center;
  min-height: 340px;
  background: linear-gradient(105deg, #16436A 0%, #E8E8EB 100%);
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  margin-bottom: 48px;
  box-shadow: 0 12px 32px rgba(22,67,106,0.08);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  padding: 64px 0;
  color: var(--text-light);
}
.hero h1 {
  color: #fff;
  font-weight: 800;
  font-size: 2.8rem;
  margin-bottom: 18px;
  max-width: 680px;
}
.hero .subheadline {
  color: #f9fafb;
}
.hero .cta-btn {
  margin-top: 36px;
}

/* === FEATURE GRID AND ITEMS === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
  margin-bottom: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 240px;
  flex: 1 1 230px;
  padding: 28px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.25s, transform 0.22s;
}
.feature-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
}
.feature-item:hover {
  box-shadow: 0 6px 34px rgba(22,67,106,0.11);
  transform: translateY(-2px) scale(1.025);
}
.feature-item h3 {
  margin-bottom: 10px;
}

/* === LISTS === */
ul, ol {
  margin-bottom: 18px;
  margin-left: 24px;
}
ul li, ol li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 18px;
  font-size: 1rem;
}
ul li:before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 10px;
}

/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin: 20px 0 20px 0;
  border-left: 6px solid var(--primary);
}
.testimonial-card p {
  color: #253042;
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1.12rem;
  margin-bottom: 2px;
}
.testimonial-card img {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 2px;
}
.testimonial-card div:last-child {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* === CARD CONTAINER (USED IF NEEDED) === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--secondary);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 30px 22px;
}

/* === CONTENT GRID === */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* === TEXT IMAGE SECTION === */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.text-image-section .text {
  flex: 3;
}
.text-image-section .image {
  flex: 2;
}

/* === CONTACT DETAILS === */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--secondary);
  padding: 14px 20px;
  border-radius: 10px;
  color: #204161;
  font-size: 1rem;
  min-width: 220px;
}
.contact-details img {
  width: 23px;
  height: 23px;
}

/* === FOOTER === */
footer {
  background: #f9fbfd;
  border-top: 1.5px solid #e7eaf1;
  padding: 48px 0 24px 0;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 48px;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
footer nav a {
  font-size: 1rem;
  color: #3a4657;
  padding: 3px 0;
  transition: color 0.16s;
}
footer nav a:hover {
  color: var(--accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 1rem;
  margin-top: 14px;
  color: #325b87;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 9px;
}
footer img {
  width: 48px;
  height: auto;
  margin-bottom: 18px;
}

/* === MOBILE MENU & HAMBURGER === */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 23px;
  right: 23px;
  z-index: 101;
  background: var(--primary);
  color: #fff;
  font-size: 2.1rem;
  padding: 7px 17px 11px 17px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(22,67,106,0.11);
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
  color: #fff;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100svh;
  background: rgba(22, 67, 106, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: transform 0.3s cubic-bezier(.67,.01,.31,.99), opacity 0.22s;
  transform: translateX(100%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0%);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #fff;
  margin: 24px 26px 0 0;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent-light);
}
.mobile-nav {
  width: 100%;
  padding: 44px 30px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 16px 0 12px 0;
  border-radius: 13px;
  transition: background 0.18s, color 0.17s;
}
.mobile-nav a:hover {
  background: var(--accent);
  color: #fff;
}

/* === COOKIE CONSENT & MODAL === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 2000;
  background: #fff;
  color: #253042;
  box-shadow: 0 -4px 24px rgba(22,67,106,0.11);
  border-radius: 22px 22px 0 0;
  padding: 26px 16px 16px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  justify-content: space-between;
  font-size: 1rem;
  transition: transform 0.5s cubic-bezier(.67,.01,.31,.99);
  transform: translateY(0%);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-banner-message {
  flex: 3 1 230px;
  margin-bottom: 13px;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-btn {
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 13px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  background: var(--primary);
  color: #fff;
  margin-right: 0;
  transition: background .19s, color 0.12s, box-shadow .19s;
  box-shadow: 0 2px 6px rgba(22,67,106,0.08);
  cursor: pointer;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent-light);
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 2100;
  left: 0; top: 0;
  width: 100vw;
  height: 100svh;
  background: rgba(22, 67, 106, 0.77);
  align-items: center;
  justify-content: center;
  transition: opacity 0.27s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  padding: 38px 28px 28px 28px;
  max-width: 420px;
  width: 92vw;
  color: #253042;
  box-shadow: 0 5px 32px rgba(22,67,106,0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}
.cookie-modal .toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
}
/* Toggle switch */
.cookie-modal .switch {
  position: relative;
  width: 42px;
  height: 22px;
  display: inline-block;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cfd8e3;
  border-radius: 13px;
  transition: background 0.2s;
}
.cookie-modal .switch input:checked + .slider {
  background-color: var(--primary);
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(20px);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 17px; right: 24px;
  background: none;
  border: none;
  color: #c7cdd7;
  font-size: 1.9rem;
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--accent);
}
.cookie-modal .cookie-modal-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: flex-end;
}

/* === UTILITY CLASSES === */
.bg-gradient {
  background: var(--gradient-1);
  color: #fff;
}
.shadow {
  box-shadow: var(--shadow-md)!important;
}
.radius {
  border-radius: var(--radius);
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-accent {
  color: var(--accent)!important;
}
.text-primary {
  color: var(--primary)!important;
}
.mt-32 { margin-top: 32px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* === RESPONSIVE MEDIA QUERIES === */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
    padding: 0 14px;
  }
  header .container {
    flex-direction: row;
    gap: 11px;
    padding: 17px 14px 13px 14px;
  }
  .feature-item {
    min-width: 175px;
    padding: 22px 10px;
  }
  .footer-contact {
    font-size: 0.96rem;
  }
}
@media (max-width: 920px) {
  .feature-grid { gap: 16px; }
  .footer-contact { font-size: 0.88rem; }
  .testimonial-card { padding: 14px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container {
    max-width: 100vw;
    padding: 0 10px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 10px 11px 10px;
  }
  nav {
    display: none !important;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 10px 22px;
  }
  .hero .content-wrapper {
    padding: 48px 0;
  }
  .hero h1 { font-size: 2.1rem; }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item {
    min-width: 0; width: 100%;
    max-width: unset;
    padding: 19px 12px;
  }
  .content-grid { gap: 14px; }
  .testimonial-card { padding: 12px; }
  .contact-details {
    flex-direction: column;
    gap: 14px;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 38px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  footer .container {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
    padding: 0 10px;
  }
}
@media (max-width: 600px) {
  html { font-size: 14px; }
  h1, .h1 { font-size: 1.75rem; }
  h2, .h2 { font-size: 1.3rem; }
  header img, footer img { height: 29px; width: auto; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-banner .cookie-btn-group { width: 100%; justify-content: flex-start; }
}
@media (max-width: 420px) {
  .cookie-modal { padding: 22px 7px 16px 7px; }
  .footer-contact { font-size: 0.83rem; }
}

/* === SHOW/HIDE FOR MOBILE === */
@media (max-width: 980px) {
  .mobile-menu-toggle {
    display: block;
  }
}

/* === SMOOTH TRANSITIONS === */
.section, .feature-item, .testimonial-card, .card, .cta-btn {
  transition: box-shadow 0.17s, transform 0.19s;
}

/* === ANIMATIONS === */
@keyframes slideInMenu {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutMenu {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* Custom micro-hover for all buttons and links */
button:active, .cta-btn:active, a:active {
  transform: scale(0.97);
  box-shadow: 0 2px 7px rgba(22,67,106,0.17);
}

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