/* -------------------------------
   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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.6;
  min-height: 100vh;
  background: #F7FAFC;
  color: #133654;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  outline: none;
}
a { color: inherit; text-decoration: none; transition: color 0.18s; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #133654;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.375rem; margin-bottom: 16px; }
h4 { font-size: 1.125rem; margin-bottom: 14px; }
p { font-size: 1rem; margin-bottom: 14px; }
strong, b { font-weight: 700; }

/* -------------------------------
   BRAND COLORS & UTILS
------------------------------- */
:root {
  --primary-blue: #133654;
  --secondary-blue: #7DD3FC;
  --accent-blue: #E1F2FB;
  --gray-900: #1E293B;
  --gray-700: #334155;
  --gray-500: #64748B;
  --gray-300: #E5E7EB;
  --gray-100: #F3F4F6;
  --white: #fff;
  --error-red: #EA394B;
  --success-green: #2EA97A;
  --shadow-md: 0 2px 8px rgba(20,44,66,0.10), 0 1.5px 3px rgba(19,54,84,0.06);
  --shadow-lg: 0 6px 24px rgba(20,44,66,0.12);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: 0.2s cubic-bezier(.37,.14,.57,.96);
}

/* -------------------------------
   MAIN LAYOUT CONTAINERS & SECTIONS
------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* -------------------------------
   CARD PATTERNS / FLEX-ONLY
------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--accent-blue);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 380px;
  flex: 1 1 320px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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;
}

/* -------------------------------
   TESTIMONIALS / FEATURE CARDS
------------------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent-blue);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  flex-direction: row;
  color: var(--gray-900);
  min-width: 0;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.testimonial-card p {
  font-size: 1.05rem;
  color: var(--gray-900);
  font-style: italic;
  flex: 1 1 auto;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 1rem;
  min-width: 140px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent-blue);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

/* -------------------------------
   NAVIGATION BAR - DESKTOP & MOBILE
------------------------------- */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 1.5px 6px rgba(19,54,84,0.10);
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 64px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 18px 0;
  width: 100%;
}
.main-nav a {
  color: var(--primary-blue);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.main-nav a.cta.primary {
  background: var(--primary-blue);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  margin-left: 10px;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary-blue);
  color: var(--primary-blue);
}
.main-nav a.cta.primary:hover, .main-nav a.cta.primary:focus {
  background: var(--secondary-blue);
  color: var(--primary-blue);
  box-shadow: var(--shadow-lg);
}
.main-nav img {
  height: 34px;
}

/* Hide mobile toggle by default; show at <= 1024px */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary-blue);
  color: var(--primary-blue);
  font-size: 2rem;
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 12px;
  cursor: pointer;
  z-index: 101;
  border: none;
  transition: box-shadow var(--transition);
  box-shadow: var(--shadow-md);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--primary-blue);
  color: var(--white);
  outline: none;
}

/* --------------------------------
   MOBILE MENU STYLES
-------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(19, 54, 84, 0.93);
  transform: translateX(-100vw);
  transition: transform 0.27s cubic-bezier(.4,.16,.54,.99);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 64px;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--secondary-blue);
  color: var(--primary-blue);
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: none;
  position: absolute;
  top: 16px;
  right: 24px;
  z-index: 210;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--white);
  color: var(--primary-blue);
}
.mobile-nav {
  width: 90vw;
  max-width: 378px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  margin-top: 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  background: var(--white);
  color: var(--primary-blue);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 2px;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary-blue);
  color: var(--primary-blue);
  box-shadow: var(--shadow-lg);
  outline: none;
}

/* Hide main nav on mobile, show burger */
@media (max-width: 1024px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu{
    display: none !important;
  }
  .mobile-menu-toggle{
    display: none !important;
  }
}

/* --------------------------------
   HERO/LIST & UI ELEMENTS
-------------------------------- */
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--gray-700);
  margin-bottom: 12px;
  line-height: 1.5;
  font-weight: 400;
}
ul li img {
  height: 22px;
  width: 22px;
}

.text-section p, .text-section ul {
  margin-bottom: 12px;
}
.text-section ul li {
  margin-bottom: 8px;
}

/* Accent links */
a.cta, .cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-blue);
  color: var(--white) !important;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  min-width: 160px;
  margin: 10px 0 0 0;
  letter-spacing: 0.015em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
  text-decoration: none;
}
a.cta.primary:hover, a.cta.primary:focus, a.cta:hover, a.cta:focus {
  background: var(--secondary-blue);
  color: var(--primary-blue) !important;
  transform: translateY(-3px) scale(1.035);
  box-shadow: var(--shadow-lg);
}

/* Accent links in content */
.content-wrapper a:not(.cta) {
  color: var(--secondary-blue);
  text-decoration: underline;
  font-weight: 500;
  transition: color var(--transition);
}
.content-wrapper a:not(.cta):hover, .content-wrapper a:not(.cta):focus {
  color: var(--primary-blue);
}

/* Input/Text Fields (if any in contact forms) */
input[type="text"], input[type="email"], textarea {
  background: var(--accent-blue);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border var(--transition), background var(--transition);
  width: 100%;
  box-sizing: border-box;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--primary-blue);
  background: #fff;
}

/* -------------------------------
   FOOTER
------------------------------- */
footer {
  background: var(--primary-blue);
  color: var(--white);
  padding: 34px 0 0 0;
  width: 100%;
  font-size: 1rem;
}
footer .container {
  width: 100%;
  padding-bottom: 12px;
}
footer .content-wrapper {
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}
footer img {
  height: 36px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 8px 0;
}
footer nav a {
  color: var(--secondary-blue);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  transition: background var(--transition), color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: var(--primary-blue);
  background: var(--secondary-blue);
}
footer address {
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--accent-blue);
  margin-bottom: 12px;
  line-height: 1.6;
}
footer address img {
  height: 18px;
  width: 18px;
  vertical-align: middle;
  margin-right: 6px;
  margin-top: -2px;
  display: inline;
}
footer p {
  color: var(--gray-100);
  font-size: 0.98rem;
}

/* -------------------------------
   COOKIE CONSENT BANNER & MODAL
------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--primary-blue);
  color: var(--white);
  z-index: 10000;
  box-shadow: 0 -2px 12px rgba(19,54,84,0.14);
  padding: 22px 16px 18px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  transition: transform var(--transition), opacity var(--transition);
}
.cookie-banner .cookie-message {
  flex: 1 1 320px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex: 0 0 auto;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  border: none;
  background: var(--secondary-blue);
  color: var(--primary-blue);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-md);
}
.cookie-banner button.accept {
  background: var(--success-green);
  color: var(--white);
}
.cookie-banner button.reject {
  background: var(--error-red);
  color: var(--white);
}
.cookie-banner button:focus,
.cookie-banner button:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow-lg);
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-modal-overlay {
  background: rgba(19, 54, 84, 0.94);
  position: fixed;
  z-index: 20001;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity var(--transition);
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background-color: var(--white);
  color: var(--primary-blue);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 34px 24px 24px 24px;
  min-width: 340px;
  max-width: 95vw;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--gray-700);
  flex: 1;
  cursor: pointer;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
}
.cookie-category .cookie-essential {
  font-weight: 600;
  color: var(--primary-blue);
}
.cookie-modal .btn-row {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--secondary-blue);
  color: var(--primary-blue);
  border-radius: var(--radius-md);
  width: 38px; height: 38px;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-modal .close-cookie-modal:hover, .cookie-modal .close-cookie-modal:focus {
  background: var(--primary-blue);
  color: var(--white);
}

/* -------------------------------
   RESPONSIVE & FLEX DIRECTIONS
------------------------------- */
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    padding: 0 4px;
    gap: 14px;
  }
  .section {
    padding: 24px 6px;
    margin-bottom: 36px;
  }
  .testimonial-card, .feature-item, .card {
    padding: 14px 10px;
  }
  .card-container, .content-grid {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .card {
    min-width: 96%;
    max-width: 100%;
    flex: 1 1 100%;
  }
  footer .content-wrapper, footer nav {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 20px 6px;
    font-size: 0.96rem;
  }
  .cookie-modal {
    min-width: 0;
    width: 96vw;
    padding: 16px 7vw 16px 7vw;
  }
}

/* Additional minor adaptive tweaks */
@media (max-width: 428px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.15rem; }
  .cookie-modal { width: 99vw; padding: 10vw 3vw; }
}

/* -------------------------------
   MICRO-INTERACTIONS/ANIMATION
------------------------------- */
.card, .testimonial-card, .feature-item {
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:active, .testimonial-card:active, .feature-item:active {
  transform: translateY(1.5px) scale(0.996);
}
.cta.primary:active, .cta:active {
  transform: scale(0.98);
}
.mobile-nav a:active {
  transform: scale(0.975);
}

/* -------------------------------
   MISC STYLES
------------------------------- */
::-webkit-scrollbar {
  width: 13px;
  background: var(--accent-blue);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-blue);
}

/* Selection Color */
::selection {
  color: var(--white);
  background: var(--secondary-blue);
}

/* Hide visually for always-enabled essential cookies */
input[type=checkbox][disabled], input[type=checkbox][aria-disabled="true"] {
  filter: grayscale(0.6) opacity(0.5);
  pointer-events: none;
}

/* Error & success messages (if any) */
.alert-error {
  background: #faebeb;
  color: var(--error-red);
  border-radius: var(--radius-md);
  padding: 12px 18px;
}
.alert-success {
  background: #e6f6ee;
  color: var(--success-green);
  border-radius: var(--radius-md);
  padding: 12px 18px;
}

/* -------------------------------
   PRINT ADJUSTMENTS
------------------------------- */
@media print {
  header, footer, .cookie-banner, .cookie-modal-overlay, .mobile-menu { display: none !important; }
  .section { box-shadow: none; background: #fff; }
}
