/* RESET & BASELINE */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(110deg, #ececec 0%, #f7fbfd 100%);
  min-height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: #23272A;
  background: linear-gradient(120deg, #e9f1fa 0%, #ececec 100%);
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #2E86AB;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #0A4A66;
  text-decoration: underline;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: #23272A;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #23272A;
}
h3 {
  font-size: 1.375rem;
  color: #0A4A66;
}
h4 {
  font-size: 1.125rem;
  color: #23272A;
}
p, li, span {
  font-size: 1rem;
  color: #23272A;
}
ul, ol {
  margin-left: 22px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

/* CONTAINER UTILITIES */
.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HEADER & NAVIGATION */
header {
  background: linear-gradient(100deg, #f7fbfd 40%, #e7e9ed 100%);
  box-shadow: 0 3px 24px 0 rgba(34,39,42, 0.06);
  position: relative;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 32px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: #23272A;
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  letter-spacing: 0.02em;
  font-size: 1.125rem;
  padding: 8px 4px;
  position: relative;
  transition: color 0.2s;
}
header nav a:hover,
header nav a:focus {
  color: #2E86AB;
}
header .btn-primary {
  margin-left: 18px;
}
/* Hide burger toggle on desktop */
.mobile-menu-toggle {
  display: none;
}

/* MAIN SECTION / GLOBAL SECTION STYLING */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: linear-gradient(104deg, #f7fbfd 82%, #e0f1fd 100%);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(34,39,42,0.03);
}
section:last-child {
  margin-bottom: 0;
}

/* CARDS, TESTIMONIALS, FEATURES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(34,39,42,0.08);
  margin-bottom: 20px;
  padding: 24px;
  min-width: 260px;
  flex: 1 1 260px;
  position: relative;
  transition: box-shadow 0.23s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 32px rgba(34,39,42,0.14);
}
.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: #f9fafd;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(34,39,42, 0.03);
  margin-bottom: 20px;
  flex-direction: column;
  max-width: 540px;
}
.testimonial-card p {
  color: #23272A;
  font-weight: 500;
  font-size: 1.125rem;
  margin-bottom: 8px;
  line-height: 1.6;
}
.testimonial-card span {
  color: #0A4A66;
  font-size: 1rem;
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  margin-top: 4px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* BUTTONS */
.btn,
button,
input[type="submit"] {
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 12px;
  border: none;
  outline: none;
  padding: 14px 32px;
  margin: 8px 0;
  cursor: pointer;
  background: linear-gradient(98deg, #2E86AB 0%, #0A4A66 100%);
  color: #fff;
  box-shadow: 0 3px 12px rgba(46,134,171, 0.10);
  transition: background 0.21s, box-shadow 0.21s, transform 0.12s;
  position: relative;
  z-index: 1;
  letter-spacing: 0.06em;
}
.btn-primary:hover,
.btn-primary:focus,
.btn:hover,
button:hover:not(.mobile-menu-close),
button:focus:not(.mobile-menu-close) {
  background: linear-gradient(100deg, #0A4A66 0%, #2E86AB 100%);
  box-shadow: 0 6px 32px rgba(46,134,171, 0.22);
  color: #fff;
  transform: translateY(-2px) scale(1.025);
}
.btn-secondary,
button.btn-secondary {
  background: #ECECEC;
  color: #2E86AB;
  border: 1.5px solid #2E86AB;
  transition: border 0.15s, background 0.18s, color 0.18s;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #2E86AB;
  color: #fff;
  border: 1.5px solid #2E86AB;
}

/* FORMS (only if form fields are present, future-proof) */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid #ECECEC;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 16px;
  transition: border 0.17s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: #2E86AB;
  outline: none;
}

/* FOOTER */
footer {
  width: 100%;
  background: linear-gradient(90deg, #eaf4fb 60%, #ececec 100%);
  box-shadow: 0 -3px 18px rgba(34,39,42, 0.04);
  padding: 24px 0 8px 0;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
footer nav a {
  color: #0A4A66;
  font-size: 1rem;
  transition: color 0.18s;
}
footer nav a:hover {
  color: #2E86AB;
}
footer p {
  color: #23272A;
  font-size: 1rem;
}

/* SPACING HELPERS (MANDATORY) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* MOBILE MENU (BURGER NAV) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #0A4A66;
  font-size: 2.2rem;
  z-index: 999;
  padding: 10px 12px;
  margin-left: auto;
  cursor: pointer;
  transition: background 0.17s;
}
.mobile-menu-toggle:focus {
  background: #e6f0f7;
  border-radius: 6px;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(36, 68, 96, 0.97);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.67,.11,.51,.95);
  z-index: 1200;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 22px 18px 10px 0;
  margin-right: 4px;
  align-self: flex-end;
  cursor: pointer;
  transition: background 0.13s;
}
.mobile-menu-close:focus {
  background: #174158;
  border-radius: 6px;
}
.mobile-nav {
  width: 100%;
  padding: 32px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.mobile-nav a {
  display: block;
  color: #fff;
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-size: 1.45rem;
  padding: 16px 32px;
  border-radius: 6px;
  width: 100%;
  transition: background 0.13s, color 0.19s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #0A4A66;
  color: #f1f6fa;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1050px) {
  .container {
    max-width: 100%;
  }
  header .container,
  footer .container {
    flex-direction: row;
    gap: 12px;
  }
}
@media (max-width: 899px) {
  .container {
    padding: 0 5vw;
  }
  section {
    padding: 30px 10px;
    margin-bottom: 48px;
  }
  .section {
    padding: 30px 10px;
    margin-bottom: 48px;
  }
  .card-container, .content-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  header .container,
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  header nav {
    display: none;
  }
  header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  section, .section {
    padding: 18px 2vw;
    margin-bottom: 36px;
    border-radius: 10px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  .testimonial-card {
    padding: 14px;
    gap: 10px;
    font-size: 1rem;
    max-width: 99vw;
  }
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
  .footer nav {
    gap: 9px;
  }
}
@media (max-width: 520px) {
  .container {
    padding: 0 1vw;
  }
  section, .section {
    padding: 12px 0;
    margin-bottom: 24px;
    border-radius: 0;
  }
  h1 {
    font-size: 1.32rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  .testimonial-card {
    font-size: 0.91rem;
  }
}

/* Z-INDEX - ensure nav modals are always on top */
header,
.mobile-menu,
.cookie-banner,
#cookie-modal {
  z-index: 1000;
}

/* ANIMATIONS & MICRO-INTERACTIONS */
.btn,
button,
a {
  transition: background 0.2s, color 0.2s, box-shadow 0.15s, transform 0.13s;
}
.card,
.testimonial-card {
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover,
.card:focus-within {
  transform: translateY(-6px) scale(1.02);
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, #23272A 54%, #2E86AB 93%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 18px 5vw 16px 5vw;
  font-size: 1rem;
  box-shadow: 0 -3px 32px rgba(34,39,42,0.13);
  z-index: 1999;
  animation: cookie-banner-slideup 0.58s cubic-bezier(.7,.02,.56,.89);
}
@keyframes cookie-banner-slideup {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  flex: 1 1 0;
  color: #fff;
  font-size: 1rem;
  margin-right: 28px;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner .btn,
.cookie-banner .btn-primary {
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 8px;
}
.cookie-banner .btn-secondary {
  background: #fff;
  color: #23272A;
  border: 1.2px solid #2E86AB;
}
.cookie-banner .btn-secondary:hover {
  background: #2E86AB;
  color: #fff;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 3vw 15px 3vw;
  }
  .cookie-banner-message {
    margin-right: 0;
    margin-bottom: 7px;
  }
  .cookie-banner-actions {
    gap: 9px;
  }
}

/* COOKIE MODAL */
#cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(34, 39, 42, 0.91);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.42s cubic-bezier(.54,.13,.43,.89);
}
#cookie-modal.open {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity:1; }
}
#cookie-modal .cookie-modal-window {
  background: #fff;
  border-radius: 19px;
  max-width: 390px;
  width: 94vw;
  box-shadow: 0 6px 70px rgba(34,39,42,0.29);
  padding: 32px 18px 24px 18px;
  color: #23272A;
  font-size: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: modalSlideIn 0.42s cubic-bezier(.53,.12,.44,.97);
}
@keyframes modalSlideIn {
  from { transform: scale(0.97) translateY(80px); opacity: 0; } to { opacity:1; transform: scale(1) translateY(0); }
}
.cookie-modal-header {
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 9px;
  color: #0A4A66;
}
.cookie-modal-close {
  position: absolute;
  right: 6px;
  top: 8px;
  color: #0A4A66;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 6px;
  padding: 3px 10px 1px 10px;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #e8f2fb;
}
.cookie-modal-content ul {
  margin: 0 0 14px 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #e9eef2;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category span {
  font-family: 'Roboto', Arial, sans-serif;
  color: #23272A;
}
.cookie-category .cookie-switch {
  margin-left: 9px;
  min-width: 36px;
}
.cookie-switch input[type="checkbox"] {
  width: 0;
  height: 0;
  opacity: 0;
}
.cookie-switch {
  display: inline-block;
  width: 38px;
  height: 22px;
  background: #ececec;
  border-radius: 15px;
  position: relative;
  transition: background 0.21s;
}
.cookie-switch input[type="checkbox"]:checked + .cookie-slider {
  background: #2E86AB;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 3.5px;
  left: 3.5px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  transition: 0.18s;
  box-shadow: 0 2px 9px rgba(46,134,171,0.16);
}
.cookie-switch input[type="checkbox"]:checked + .cookie-slider {
  left: 19px;
  background: #fff;
}
.cookie-category.essential .cookie-switch {
  opacity: 0.33;
  pointer-events: none;
}
.cookie-modal-actions {
  margin-top: 17px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-modal-actions .btn {
  font-size: 1rem;
  padding: 7px 16px;
  border-radius: 7px;
}

/* OVERRIDES FOR SPECIAL / UTILITY CASES */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.text-section h2 {
  font-size: 1.1rem;
  margin-bottom: 3px;
  color: #0A4A66;
}
.text-section p,
.text-section a {
  font-size: 1rem;
}
.text-section a {
  color: #2E86AB;
}
.text-section a:hover {
  text-decoration: underline;
}

/* SCROLLBAR (MODERN CHROME/EDGE/FIREFOX) */
::-webkit-scrollbar {
  width: 8px;
  background: #ececec;
}
::-webkit-scrollbar-thumb {
  background: #2E86AB;
  border-radius: 8px;
}

/* ACCESSIBILITY FOCUS */
a:focus, button:focus, input:focus, .btn:focus, .btn-primary:focus {
  outline: 2px solid #0A4A66;
  outline-offset: 1.5px;
}

/* ERROR/PARAMETER CHECK: NO GRID OR ABSOLUTE LAYOUTS FOR CONTENT */
/* All containers use only flexbox! */

/* PRINT STYLE - keep simple readable */
@media print {
  * { background: #fff !important; color: #23272A !important; box-shadow: none !important; }
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section, .section { box-shadow: none !important; padding: 0 !important; }
}
