/* 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F6F6F6;
  color: #17242D;
}
a {
  color: #05386B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #379683;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* FONT IMPORTS & BASE TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

:root {
  --primary: #05386B;
  --secondary: #379683;
  --accent: #F6F6F6;
  --neutral: #F6F6F6;
  --black: #06121E;
  --white: #fff;
  --radius: 20px;
  --shadow: 0 4px 16px 0 rgba(5,56,107,0.08);
  --transition: .25s cubic-bezier(.65,.01,.39,.98);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Verdana, Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--accent);
  color: var(--primary);
  min-height: 100vh;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 16px;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.subheadline {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 28px;
}

/* LAYOUT */
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: none;
}

.content-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* FLEXBOX - Structure */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--shadow);
  padding: 32px 24px;
  min-width: 260px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(5,56,107,0.15);
  transform: translateY(-4px) scale(1.015);
  z-index: 2;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}
.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: var(--neutral);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(5,56,107,0.07);
  margin-bottom: 20px;
  flex-wrap: wrap;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(5,56,107,0.10);
  transform: scale(1.012);
  z-index: 2;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  min-width: 210px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 24px 0 rgba(5,56,107,0.11);
  transform: translateY(-3px) scale(1.008);
  z-index: 2;
}

/***********************************
 *  NAVIGATION & HEADER            *
 ***********************************/
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 16px 0 rgba(53, 113, 132, 0.08);
  z-index: 1010;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  max-width: 1120px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 12px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-family: var(--font-display);
}
nav a {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 10px;
  color: var(--primary);
  transition: background var(--transition), color var(--transition);
}
nav a:hover, nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
.cta-button {
  background: var(--primary);
  color: var(--white);
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 11px 28px;
  box-shadow: 0 3px 15px 0 rgba(5,56,107,0.08);
  border: none;
  cursor: pointer;
  margin-left: 12px;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  outline: none;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 6px 32px 0 rgba(53,150,131,0.17);
  transform: scale(1.027);
}

/***********************************
 *   MOBILE NAVIGATION             *
 ***********************************/
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 16px;
  z-index: 1101;
  transition: color var(--transition);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--primary);
  color: var(--white);
  transform: translateX(-104vw);
  transition: transform 0.33s cubic-bezier(.5,1.7,.9,.9);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 36px 24px 24px 24px;
  gap: 28px;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 10px 70px 0 rgba(5,56,107,0.21);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: var(--white);
  align-self: flex-end;
  margin-bottom: 20px;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}
.mobile-nav a {
  font-size: 1.35rem;
  color: var(--white);
  padding: 13px 15px;
  background: transparent;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--black);
}
@media (max-width: 1100px) {
  header .container {
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 920px) {
  nav {
    gap: 6px;
  }
}
@media (max-width: 900px) {
  nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Hide and Show main navigation for mobile/desktop */
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  nav, .cta-button {
    display: flex;
  }
}

/***********************************
 *     GENERAL CONTENT STYLES      *
 ***********************************/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 8px;
}
.feature-grid > div {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 22px 26px 22px;
  min-width: 220px;
  flex: 1 1 240px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 10px 30px 0 rgba(53,150,131,0.19);
  transform: translateY(-5px) scale(1.018);
  z-index: 2;
}
.feature-grid img {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 2px 5px 0 rgba(187,187,187,0.09);
  margin-bottom: 5px;
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 20px;
}
.faq-list > div {
  flex: 1 1 260px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 27px 19px 16px 19px;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 20px;
}
.faq-list > div:hover, .faq-list > div:focus-within {
  box-shadow: 0 8px 24px 0 rgba(5,56,107,0.11);
  transform: scale(1.012);
  z-index: 2;
}
.text-section p {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.09rem;
  margin-bottom: 15px;
}
.text-section img {
  height: 18px;
  width: 18px;
}
.star-rating {
  display: flex;
  gap: 4px;
  align-items: center;
}
.star-rating img {
  width: 24px;
  height: 24px;
}

/***********************************
 * BUTTONS & LINKS                *
 ***********************************/
button {
  font-family: var(--font-display);
  cursor: pointer;
}
button:active {
  filter: brightness(0.951);
}

/***********************************
 * FOOTER                         *
 ***********************************/
footer {
  background: var(--primary);
  color: var(--white);
  padding: 44px 0 24px 0;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}
footer nav a {
  color: var(--white);
  background: transparent;
  padding: 2px 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  transition: background var(--transition), color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  background: var(--secondary);
  color: var(--black);
}
footer img {
  height: 42px;
  width: auto;
  margin-bottom: 10px;
}
footer p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 8px;
}
footer a {
  color: var(--secondary);
}
@media (max-width: 740px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
}

/***********************************
 * COOKIE CONSENT BANNER           *
 ***********************************/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 -2px 24px 0 rgba(5,56,107,0.09);
  z-index: 2200;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px;
  gap: 18px;
  font-size: 1rem;
  animation: cookieSlideUp .38s ease;
}
@keyframes cookieSlideUp {
  0% { transform: translateY(110%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  flex: 2 1 300px;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
}
.cookie-actions {
  flex: 1 1 160px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-btn {
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 11px 18px;
  background: var(--secondary);
  color: var(--black);
  margin: 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: none;
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--black);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--white);
  box-shadow: 0 3px 16px 0 rgba(53,150,131,0.10);
}

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 8px;
    font-size: 0.95rem;
  }
  .cookie-actions {
    justify-content: flex-start;
  }
}

/* COOKIE CONSENT MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(6,18,30,0.33);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.26s;
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-content {
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 10px 48px 0 rgba(5,56,107,0.15);
  min-width: 320px;
  max-width: 95vw;
  padding: 42px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 27px;
  position: relative;
  animation: cookieModalBounce .34s;
}
@keyframes cookieModalBounce {
  0% { transform: scale(.93) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--secondary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-weight: 700;
  font-size: 1.08rem;
}
.cookie-switch {
  width: 40px;
  height: 22px;
  border-radius: 12px;
  background: #e3e3e3;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  margin-left: 8px;
}
.cookie-switch input {
  display: none;
}
.cookie-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  transition: left var(--transition), background var(--transition);
}
.cookie-switch input:checked + .cookie-slider {
  left: 20px;
  background: var(--secondary);
}
.cookie-category.disabled {
  opacity: .70;
  pointer-events: none;
}

/***********************************
 *  RESPONSIVE FLEX PATTERNS       *
 ***********************************/
@media (max-width: 980px) {
  .feature-grid, .card-container, .content-grid, .faq-list {
    flex-direction: column;
  }
  .feature-grid > div, .card, .feature-item, .faq-list > div {
    min-width: unset;
    max-width: unset;
    width: 100%;
    margin-bottom: 20px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  .feature-grid, .card-container, .content-grid, .faq-list {
    gap: 18px;
  }
  .content-wrapper {
    padding: 0;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

/***********************************
 *  TYPOGRAPHY RESPONSIVE SCALE   *
 ***********************************/
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.09rem;
  }
  .cta-button {
    font-size: 0.95rem;
    padding: 10px 16px;
  }
  .cookie-modal-content {
    padding: 27px 8px 18px 8px;
  }
}

/***********************************
 *  OTHER PAGE-SPECIFIC STYLES    *
 ***********************************/
li {
  margin-bottom: 8px;
  font-size: 1.05rem;
}
ul {
  padding-left: 0;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

blockquote {
  border-left: 4px solid var(--secondary);
  padding-left: 18px;
  margin: 18px 0;
  color: var(--primary);
  font-style: italic;
}

/* Geometric Decorative Elements */
.feature-grid > div::before, .card::before, .testimonial-card::before, .faq-list > div::before {
  content: '';
  display: none;
}

/***********************************
 *  ACCESSIBILITY & CONTRAST       *
 ***********************************/
.testimonial-card {
  background: var(--accent);
  color: #192220;
  border-left: 7px solid var(--secondary);
}
.testimonial-card p, .testimonial-card strong {
  color: #161A1C;
}
.testimonial-card strong {
  font-weight: 800;
  letter-spacing: 1.1px;
}

/* Success Message Page */
.thank-you-message {
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 700;
}

/***********************************
 *  FORM & INPUT STYLE            *
 ***********************************/
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #bbb;
  padding: 10px 13px;
  background: var(--white);
  margin-bottom: 12px;
  transition: border var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  border: 1px solid var(--secondary);
  outline: none;
  box-shadow: 0 3px 12px rgba(53,150,131,0.10);
}
label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

/***********************************
 *  MICRO-INTERACTIONS            *
 ***********************************/
.card, .testimonial-card, .feature-item, .feature-grid > div {
  transition: box-shadow var(--transition), transform var(--transition), border var(--transition);
}

/***********************************
 *  UTILITIES                     *
 ***********************************/
.hide {
  display: none !important;
}

/***********************************
 * GEOMETRIC STRUCTURED EFFECTS   *
 ***********************************/
.feature-grid > div, .card, .faq-list > div, .feature-item {
  border-bottom: 7px solid var(--secondary);
  border-radius: 0 0 var(--radius) var(--radius);
}

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