/* ===================== CSS RESET & NORMALIZATION ===================== */
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 {
  scroll-behavior: smooth;
  background: #FCFDFE;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #FCFDFE;
  color: #174974;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

ul, ol {
  list-style: none;
}

a {
  color: #174974;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.77,0,.18,1);
}
a:focus {
  outline: 2px solid #F7B801;
  outline-offset: 2px;
}
a:hover, a:active {
  color: #43B5D8;
}

/* ===================== VARIABLES ===================== */
:root {
  --primary: #174974;
  --secondary: #43B5D8;
  --accent: #FCFDFE;
  --danger: #E02E5C;
  --success: #51CDA3;
  --warning: #F7B801;
  --heading: 'Montserrat', Arial, sans-serif;
  --body: 'Roboto', Arial, sans-serif;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-lg: 0 6px 32px 0 rgba(67,181,216,0.13), 0 1.5px 5px 0 rgba(23,73,116,0.11);
  --shadow-md: 0 2.5px 10px 0 rgba(67,181,216,0.10), 0 1px 4px 0 rgba(23,73,116,0.09);
  --shadow-sm: 0 .5px 2px 0 rgba(23,73,116,0.11);
  --transition-fast: 0.18s cubic-bezier(.5,1,.89,1);
}

/* ===================== BASE LAYOUT CONTAINERS ===================== */
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1150px;
  padding-right: 22px;
  padding-left: 22px;
}
.content-wrapper {
  width: 100%;
}

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

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.16;
}
h4, h5, h6 {
  font-size: 1.1rem;
}

p, ul, ol, li, address, blockquote {
  font-family: var(--body);
  color: #18435B;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 8px;
}
strong {
  color: var(--primary);
  font-weight: bold;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

ul, ol {
  padding-left: 18px;
  margin-bottom: 14px;
}

ul li, ol li {
  margin-bottom: 10px;
  list-style-position: inside;
  position: relative;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary) 70%, var(--primary) 100%);
  margin-right: 12px;
  vertical-align: middle;
}

blockquote {
  padding: 18px 26px;
  border-left: 6px solid var(--secondary);
  background: #F6FAFD;
  font-family: var(--body);
  font-size: 1.15rem;
  color: #14334D;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
}

/* ===================== HEADER & NAVIGATION ===================== */
header {
  background: #ffffff;
  box-shadow: 0 1px 16px rgba(23,73,116,0.09);
  position: relative;
  z-index: 11;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 18px;
  position: relative;
}
.logo img {
  max-height: 46px;
  width: auto;
  transition: filter .2s;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-family: var(--heading);
  font-weight: 700;
}
.main-nav a {
  padding: 8px 0 6px 0;
  font-size: 1rem;
  border-bottom: 2.5px solid transparent;
  color: var(--primary);
  transition: 
    color var(--transition-fast),
    border-bottom var(--transition-fast);
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--secondary);
  border-bottom: 2.5px solid var(--secondary);
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: #fff !important;
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 14px 36px;
  margin-left: 18px;
  transition: background 0.18s cubic-bezier(.8,.24,.3,1), transform 0.15s;
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
  text-shadow: 0 1px 6px rgba(23,73,116,0.11);
  outline: none;
}
.cta-primary:active {
  background: var(--primary);
  color: #fff;
}
.cta-primary:hover, .cta-primary:focus {
  background: #22C8F8;
  transform: scale(1.045);
}

/* Burger icon */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--secondary);
  cursor: pointer;
  z-index: 102;
  padding: 8px;
  transition: color var(--transition-fast);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--danger);
  position: absolute;
  top: 22px;
  right: 26px;
  cursor: pointer;
  z-index: 202;
  transition: color var(--transition-fast);
}
.mobile-menu-close:focus {
  outline: 2px solid var(--danger);
}

/* ===================== MOBILE NAV ===================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 0 40px rgba(23,73,116,0.13);
  transform: translateX(100vw);
  transition: transform 0.33s cubic-bezier(.77,0,.18,1);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  opacity: 0.99;
  padding-top: 38px;
}
.mobile-menu.open {
  transform: translateX(0);
  transition: transform 0.37s cubic-bezier(.53,1.37,.28,1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 45px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--primary);
  padding: 17px 34px 17px 34px;
  border-radius: var(--radius-md);
  transition: background 0.15s, color 0.15s;
  margin-left: 8px;
  margin-right: 8px;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #F2FAFD;
  color: var(--secondary);
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 18px;
  }
  .cta-primary {
    padding: 12px 26px;
    font-size: 1rem;
  }
}
@media (max-width: 930px) {
  .main-nav {
    gap: 12px;
    font-size: .94rem;
  }
  .container {
    max-width: 800px;
  }
  .header .container {
    min-height: 60px;
  }
}
@media (max-width: 850px) {
  .main-nav {
    display: none;
  }
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }
}
@media (min-width: 851px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===================== HERO SECTION ===================== */
section:first-of-type {
  background: linear-gradient(102deg, #F6FAFD 65%, #EBF8FB 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 6px 16px -8px rgba(67,181,216,0.09);
  margin-bottom: 54px;
  min-height: 320px;
  display: flex;
  align-items: center;
}
section:first-of-type h1 {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 16px;
}
section:first-of-type p {
  font-size: 1.12rem;
  margin-bottom: 24px;
}

/* ===================== GRID & FLEXBOX PATTERNS ===================== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 24px;
}
.features-grid > div {
  flex: 1 1 230px;
  min-width: 205px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow 0.16s, transform 0.14s;
  border: 2px solid transparent;
}
.features-grid > div:hover, .features-grid > div:focus-within{
  box-shadow: 0 8px 29px 0 rgba(67,181,216,0.15),0 1.5px 5px 0 rgba(23,73,116,0.13);
  transform: translateY(-2px) scale(1.025);
  border-color: var(--secondary);
}
.features-grid h3 {
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 5px;
}
.features-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 24px 18px;
  transition: box-shadow 0.17s, transform 0.14s;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px) scale(1.018);
}

.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: 17px;
  padding: 20px 28px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  max-width: 670px;
  border-left: 6px solid var(--secondary);
  transition: filter 0.17s, box-shadow 0.13s;
}
.testimonial-card:hover {
  filter: brightness(1.03) contrast(1.01);
  box-shadow: 0 10px 38px 0 rgba(67,181,216,0.14),0 2px 8px 0 rgba(23,73,116,0.12);
}
.testimonial-card blockquote {
  font-size: 1.12rem;
  color: #0A2452;
  margin-bottom: 8px;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
}
.testimonial-card footer {
  font-size: 1rem;
  color: #18567c;
  font-weight: 700;
  font-family: var(--heading);
}

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

.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 16px;
}
.team-member {
  flex: 1 1 260px;
  min-width: 225px;
  background: #FCFDFE;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.team-member h3 {
  color: var(--secondary);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 20px;
}
.faq-item {
  background: #f7fafb;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
}
.faq-item h3 {
  font-size: 1.08rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.faq-contact-prompt {
  margin-top: 18px;
  background: #E8F8FD;
  border-radius: var(--radius-md);
  padding: 20px 23px;
  font-size: 1.08rem;
  font-weight: 600;
}
.faq-contact-prompt a {
  color: var(--secondary);
  font-weight: 700;
}
.faq-contact-prompt a:hover {
  text-decoration: underline;
}

.progression-chart {
  margin-top: 21px;
  padding: 19px 24px;
  background: #F6FAFD;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
}

.map-snippet {
  background: #E7F7FB;
  border-radius: var(--radius-md);
  padding: 13px 18px;
  margin: 22px 0 8px 0;
}

/* ============ CARD & SECTION RESPONSIVE ============ */
@media (max-width: 950px) {
  .features-grid, .team-bios, .card-container, .content-grid {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 768px) {

  section, .section {
    padding: 32px 7px;
    margin-bottom: 38px;
  }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .features-grid, .card-container, .team-bios, .content-grid {
    flex-direction: column;
    gap: 24px;
  }
  .testimonial-card {
    padding: 15px 10px;
    max-width: 99vw;
  }
  .main-nav,
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div, .team-member, .card {
    min-width: 0;
    width: 100%;
    padding: 19px 9px;
  }
  section:first-of-type {
    min-height: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-bottom: 32px;
    padding: 19px 7px;
  }
}

/* ===================== FOOTER ===================== */
footer {
  background: #174974;
  color: #fff;
  padding: 38px 0 0 0;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
  padding-bottom: 21px;
}
footer nav.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--heading);
  font-size: 1rem;
  margin-top: 11px;
}
footer nav.footer-nav a {
  color: #FCFDFE;
  opacity: 0.96;
  letter-spacing: 0.04em;
  font-weight: 700;
  transition: color 0.16s;
}
footer nav.footer-nav a:hover,footer nav.footer-nav a:focus {
  color: var(--secondary);
}
footer address {
  color: #DBF2FA;
  font-style: normal;
  font-size: .98rem;
  margin-top: 8px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
footer img {
  margin-bottom: 10px;
  max-height: 44px;
}

@media(max-width:800px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

/* ===================== FORMS & INPUTS (if present) ===================== */
input, select, textarea, button {
  font-family: var(--body);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  outline: none;
}
button {
  cursor: pointer;
  border: none;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
  0% { opacity:0; transform: translateY(40px); }
  100% { opacity:1; transform: translateY(0); }
}
@keyframes cookieSlideUp {
  0% { transform: translateY(150%); opacity:0;}
  100% { transform: translateY(0); opacity:1;}
}
@keyframes menuSlideIn {
  from { transform: translateX(100vw); }
  to { transform: translateX(0); }
}

@media (max-width:430px) {
  .container {
    padding: 0 1vw;
  }
  section, .section {
    padding: 17px 0;
  }
  .main-nav {
    gap: 3px;
  }
}

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  z-index: 99991;
  background: #fff;
  box-shadow: 0 -3px 22px 0 rgba(23,73,116,0.15);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 23px 20px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  animation: cookieSlideUp 0.7s cubic-bezier(.6,1.3,.5,1) 0s 1;
}
.cookie-banner p {
  font-size: 1.06rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-left: 24px;
}
.cookie-banner button {
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: #fff;
  font-weight: 800;
  font-family: var(--heading);
  border: none;
  padding: 10px 23px;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: background 0.18s, color 0.18s, filter 0.13s;
}
.cookie-banner button:focus {
  outline: 2px solid var(--warning);
}
.cookie-banner .reject {
  background: var(--danger);
}
.cookie-banner .settings {
  background: #fff;
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
  box-shadow: none;
}
.cookie-banner .settings:focus,
.cookie-banner .settings:hover {
  background: var(--secondary);
  color: #fff;
  border: 1.5px solid var(--secondary);
}
.cookie-banner .reject:hover {
  background: #C52850;
}
.cookie-banner .accept:hover {
  background: #22C8F8;
}

@media (max-width: 570px) {
  .cookie-banner {
    flex-direction: column;
    text-align: left;
    gap: 18px;
    padding: 16px 8px;
  }
  .cookie-banner .cookie-buttons {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 11px;
  }
}

.cookie-modal-backdrop {
  position: fixed;
  z-index: 99992;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(23,73,116,0.32);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.28s;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 95vw;
  width: 420px;
  padding: 38px 28px;
  box-shadow: 0 6px 42px 0 rgba(67,181,216,0.17), 0 1.5px 5px 0 rgba(23,73,116,0.13);
  animation: fadeInUp .35s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 21px;
}
.cookie-modal h3 {
  font-size: 1.23rem;
  color: var(--primary);
}
.cookie-category {
  margin-bottom: 14px;
  padding: 10px 0 15px 0;
  border-bottom: 1px solid #e7eaf3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.03rem;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-switch {
  width: 42px;
  height: 25px;
  background: #D4F2FC;
  border-radius: 20px;
  position: relative;
  transition: background 0.22s cubic-bezier(.82,0,.1,1);
  cursor: pointer;
  margin-left: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.cookie-switch input {
  display: none;
}
.cookie-switch span {
  position: absolute;
  left: 3px; top: 3px;
  background: #fff;
  width: 18px; height: 18px;
  border-radius: 50%;
  box-shadow: 0 2px 4px 0 rgba(67,181,216,.13);
  transition: left 0.22s cubic-bezier(.82,0,.1,1), background 0.18s;
}
.cookie-switch input:checked + span {
  left: 21px;
  background: var(--secondary);
}

.cookie-modal-actions {
  display: flex;
  gap: 11px;
  margin-top: 14px;
}
.cookie-modal button {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-family: var(--heading);
  border: none;
  font-size: 1rem;
  background: var(--secondary);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: background 0.18s;
}
.cookie-modal button.close {
  background: #eee;
  color: var(--primary);
  border: 1.5px solid #dedede;
}
.cookie-modal button.close:hover {
  background: var(--danger);
  color: #fff;
}
.cookie-modal button.save:hover {
  background: var(--success);
}

/* ========== SPACING, FLEX GAP ENFORCEMENT, MINIMUM MARGINS ========== */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: #FCFDFE;
}
.card-container, .features-grid, .content-grid, .team-bios {
  gap: 24px;
}
.card, .testimonial-card, .team-member, .faq-item {
  margin-bottom: 20px;
}
.text-image-section {
  gap: 30px;
  align-items: center;
}
.feature-item {
  gap: 15px;
}

/* ========== CUSTOM SCROLLBAR (ENERGETIC TOUCH) ========== */
::-webkit-scrollbar {
  width: 9px;
  background: #F6FAFD;
}
::-webkit-scrollbar-thumb {
  background: #43B5D8;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #22C8F8;
}

/* ===================== ENERGETIC ACCENTS AND BOLDNESS ===================== */
section h2 {
  color: #13A2CE;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(91deg, #174974 52%, #13A2CE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mark {
  background: var(--warning);
  border-radius: 5px;
  color: #fff;
  padding:2px 7px;
  font-weight: 700;
}

.cta-primary {
  box-shadow: 0 0 0 0 #fff,0 4.5px 18px 0 rgba(67,181,216,0.18);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.17rem;
  line-height: 1.1;
  margin-top: 9px;
}

/* ===================== MISC ===================== */
address img, .contact-details img {
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: auto;
  margin-right: 8px;
}
.contact-details p, .contact-details a {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 9px;
}

@media (max-width:450px){
  .testimonial-card, .team-member, .faq-item, .features-grid>div, .card {
    padding: 13px 6px;
  }
}

/* ================== ENSURE CONSISTENCY IN COLOR CONTRAST ================== */
.testimonial-card, .faq-item, .card, .team-member {
  color: #174974;
  background: #fff;
}
.testimonial-card blockquote, .testimonial-card footer {
  color: #0A2452;
}

/* ============== SELECT TEXT AND BOLD LINKS FOR HIGH ENERGY ============== */
::selection {
  background: #43B5D8;
  color: #fff;
}

/* ================= FOCUS STYLES ================= */
:focus-visible {
  outline: 2.5px solid var(--warning);
  outline-offset: 2px;
}

/* Ensures NO grid or multi-column CSS is used */
/* All layouts use only display: flex, flex-wrap and gap */