/* 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; }
*, *:before, *:after { box-sizing: inherit; }
img, video { max-width: 100%; display: block; height: auto; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }
a { text-decoration: none; color: inherit; }

/* BRAND VARIABLES */
:root {
  --color-primary: #253858;
  --color-secondary: #5AC8FA;
  --color-accent: #F2F3F7;
  --color-white: #fff;
  --color-dark: #1a2235;
  --text-dark: #222b45;
  --text-medium: #38425a;
  --text-light: #8991ae;
  --gradient-main: linear-gradient(90deg, #253858 0%, #5AC8FA 100%);
  --shadow-card: 0 4px 24px 0 rgba(37, 56, 88, 0.10);
  --shadow-strong: 0 8px 32px 0 rgba(37, 56, 88, 0.13);
  --radius: 18px;
  --radius-btn: 8px;
  --fs-display: 2.25rem;
  --fs-h1: 2rem;
  --fs-h2: 1.5rem;
  --fs-h3: 1.17rem;
  --fs-body: 1rem;
  --fs-small: 0.93rem;
  --transition-main: all 0.24s cubic-bezier(.5,.2,.5,1);
  --header-height: 74px;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--color-accent);
  font-size: var(--fs-body);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-display); margin-bottom: 20px; }
h2 { font-size: var(--fs-h1); margin-bottom: 20px; }
h3 { font-size: var(--fs-h2); margin-bottom: 14px; }

p, li, span, td {
  color: var(--text-medium);
  font-size: var(--fs-body);
}
strong { color: var(--color-primary); font-weight: 700; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

main > section {
  margin-bottom: 60px;
}

/* HEADER & NAVIGATION */
header {
  background: var(--gradient-main);
  box-shadow: 0 2px 16px 0 rgba(37,56,88,0.04);
  position: relative;
  z-index: 100;
}
header .container {
  min-height: var(--header-height);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
header img { height: 46px; }
header nav {
  display: flex;
  gap: 20px;
}
header nav a {
  color: var(--color-white);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 6px 8px;
  border-radius: var(--radius-btn);
  transition: background 0.13s;
}
header nav a:hover, header nav a:focus {
  background: rgba(90,200,250,0.13);
}
.cta-primary {
  background: var(--color-secondary);
  color: var(--color-white) !important;
  padding: 12px 28px;
  font-size: 1.07rem;
  border: none;
  border-radius: var(--radius-btn);
  font-weight: 700;
  box-shadow: none;
  transition: var(--transition-main), box-shadow 0.09s;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.01em;
}
.cta-primary:hover, .cta-primary:focus {
  background: #1287c5;
  box-shadow: 0 6px 18px 0 rgba(90,200,250,0.13);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 18px;
  z-index: 201;
  width: 44px;
  height: 44px;
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(90,200,250,0.08);
  transition: background 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #1287c5;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(37,56,88, 0.92);
  transform: translateX(100%);
  transition: var(--transition-main);
  z-index: 2003;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: initial;
  opacity: 1;
}
.mobile-menu-close {
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  margin: 28px 32px 12px 0;
  cursor: pointer;
  transition: background 0.13s;
  align-self: flex-end;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #1287c5;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: flex-end;
  width: 90vw;
  max-width: 380px;
  margin: 36px 24px 0 0;
}
.mobile-nav a {
  color: var(--color-white);
  background: none;
  font-size: 1.07rem;
  font-weight: 600;
  padding: 16px 12px;
  border-radius: var(--radius-btn);
  transition: background 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(90,200,250, 0.14);
}

/* HIDE/SHOW NAV (Responsive) */
@media (max-width: 1024px) {
  header .container nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* HERO & GRADIENT SECTIONS */
section:first-child, section.hero, .hero-section {
  background: linear-gradient(94deg, var(--color-accent) 40%, #ecf6fc 100%);
  border-bottom: 2px solid #e8eefc;
  padding-bottom: 70px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.text-section ul {
  margin-top: 8px;
  margin-bottom: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.text-section ul li {
  list-style: disc inside;
}

/* FLEXBOX UTILITY CLASSES ----------- */
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.feature_grid, .service_overview_list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.feature_grid > div {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 20px 22px 20px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.feature_grid > div:hover {
  box-shadow: var(--shadow-strong);
}
.feature_grid img {
  width: 38px;
  height: 38px;
}
.service_overview_list {
  flex-direction: row;
  gap: 36px;
  align-items: flex-start;
}
.service_overview_list ul {
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.service_overview_list li {
  list-style: disc inside;
  color: var(--text-dark);
}

/* Cards & Cards Containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--shadow-card);
  padding: 24px 26px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px) scale(1.01);
}

.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-white);
  border-radius: var(--radius);
  padding: 20px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  max-width: 500px;
  color: var(--text-dark);
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card p {
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.66;
}
.testimonial-card span {
  color: var(--color-secondary);
  font-size: var(--fs-small);
  font-weight: 600;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px) scale(1.01);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/********* TABLES & PRICING *********/
.pricing_table {
  width: 100%;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
.pricing_table th, .pricing_table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #e9eaf1;
  font-size: 1rem;
}
.pricing_table th {
  background: var(--color-secondary);
  color: var(--color-white);
  font-weight: 700;
}
.pricing_table tr:last-child td {
  border-bottom: none;
}

/******* FAQ *********/
.faq_accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 18px 26px;
  transition: box-shadow 0.13s, transform 0.13s;
}
.faq-item h3 {
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 1.04rem;
}
.faq-item:hover, .faq-item:focus-within {
  box-shadow: var(--shadow-strong);
  transform: scale(1.01);
}

/**** FOOTER ****/
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 45px 0 16px 0;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
footer > .container > div, footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: #e5f1fa;
  font-size: var(--fs-small);
  margin-bottom: 2px;
  transition: color 0.14s;
}
footer nav a:hover { color: var(--color-secondary); }
footer p, footer span { color: #dbe6f5; }
footer img { height: 38px; margin-bottom: 7px; }
footer p img { vertical-align:middle; margin-right:7px; height:22px; }


/***** COOKIE CONSENT BANNER *****/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-white);
  box-shadow: 0 -3px 18px 0 rgba(37,56,88,0.17);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 10vw 22px 7vw;
  z-index: 9999;
  transition: transform 0.18s, opacity 0.15s;
  font-size: var(--fs-body);
}
.cookie-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-btn);
  padding: 9px 22px;
  font-weight: 600;
  transition: background 0.16s, color 0.13s;
  margin: 0 3px;
}
.cookie-banner .accept {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: #1287c5;
}
.cookie-banner .reject {
  background: #eeeef3;
  color: var(--color-primary);
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #dde7f2;
}
.cookie-banner .settings {
  background: none;
  color: var(--color-secondary);
  text-decoration: underline;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  color: #1287c5;
  background: none;
}

/***** COOKIE MODAL (PREFERENCES) *****/
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(37,56,88,0.22);
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal .modal-content {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 4px 32px 0 rgba(37,56,88,0.14);
  padding: 40px 30px 32px 30px;
  min-width: 320px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 22px; right: 26px;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal .close-modal:hover { background: #1287c5; }
.cookie-modal h2 { margin-bottom: 10px; font-size: 1.23rem; }
.cookie-modal .pref-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-modal .cookie-category label {
  font-weight: 500;
  color: var(--color-primary);
  min-width: 135px;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 22px; height: 22px;
}
.cookie-modal .essential {
  opacity: 0.67;
  pointer-events: none;
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 16px;
}
.cookie-modal .modal-actions button {
  font-size: 1rem;
  border-radius: var(--radius-btn);
  padding: 7px 22px;
  font-weight: 600;
  border: none;
  background: var(--color-secondary);
  color: #fff;
  transition: background 0.14s;
}
.cookie-modal .modal-actions button:hover { background: #1287c5; }
.cookie-modal .modal-actions .cancel {
  background: #e3e8f6;
  color: var(--color-primary);
}
.cookie-modal .modal-actions .cancel:hover {
  background: #dae3f7;
}

/**** MEDIA QUERIES - MOBILE FIRST ****/
@media (max-width: 1024px) {
  .container { padding-left: 7vw; padding-right: 7vw; }
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  body { font-size: 0.99rem; }
  main > section, .section { margin-bottom: 42px; padding: 28px 7vw; }
  .feature_grid, .service_overview_list, .content-grid, .card-container { flex-direction: column; gap: 20px; }
  .testimonial-card { padding: 16px 18px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.23rem; }
}
@media (max-width: 600px) {
  .container { padding-left: 5vw; padding-right: 5vw; }
}
/* FLEX DIRECTION FOR TEXT-IMAGE SECTIONS */
@media (max-width: 868px) {
  .text-image-section { flex-direction: column; }
}

/* Extra spacing for last section before footer */
main > section:last-child { margin-bottom: 0; }

/* Interactive transitions */
button, .cta-primary, .feature_grid > div, .testimonial-card, .faq-item, .mobile-menu, .mobile-menu-close, .cookie-banner, .cookie-banner button, .cookie-modal .modal-actions button, .card {
  transition: var(--transition-main), box-shadow 0.16s, background 0.13s, color 0.13s;
}

/* MICRO INTERACTIONS */
a, .cta-primary, button {
  outline: none;
}
.cta-primary:active, .mobile-menu-toggle:active { transform: scale(0.97); }
.card:active, .feature_grid > div:active, .testimonial-card:active { transform: scale(0.985); }

/**** Visually distinguish table paragraphs/lists ****/
.content-wrapper ul, .content-wrapper ol {
  margin-bottom: 0;
  margin-top: 12px;
  padding-left: 22px;
}
.content-wrapper li { list-style: disc inside; margin-bottom: 6px; color: var(--text-medium); }
.content-wrapper:last-child { margin-bottom: 0; }

/* MISC / UTILITIES */
.mission-statement {
  background: #ecf6fc;
  border-left: 4px solid var(--color-secondary);
  border-radius: 8px;
  padding: 13px 18px;
  margin: 12px 0 0 0;
  color: var(--color-primary);
  font-size: 1.01rem;
}
.service_comparison {
  background: #edf5fb;
  border-radius: 10px;
  padding: 18px 23px;
  margin-top: 12px;
  box-shadow: 0 2px 6px 0 rgba(37,56,88,0.047);
}
.service_comparison h3 { margin-bottom: 8px; color: var(--color-primary); }

/**** ACCESSIBILITY: Focus outline ****/
a:focus, button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/**** Hide visually only ****/
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
