/* --- 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFFFFF;
  color: #16455C;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input[type="button"], input[type="submit"] {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
*
{
  box-sizing: border-box;
}

/* --- BRAND FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --primary: #16455C;
  --primary-dark: #1D5C77;
  --secondary: #FFFFFF;
  --secondary-light: #F1F1F1;
  --accent: #F3A000;
  --accent-light: #F6B93B;
  --body-text: #16455C;
  --error: #E24F41;
  --border-radius: 18px;
  --shadow: 0 4px 20px 0 rgba(29, 92, 119, 0.09);
  --input-bg: #F1F1F1;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: var(--secondary);
  color: var(--body-text);
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  line-height: 1.13;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.32rem;
}
h4, h5 {
  font-size: 1.1rem;
}

p, li, span, input, label, dt, dd {
  font-family: 'Open Sans', 'Arial', sans-serif;
  font-size: 1rem;
  color: var(--body-text);
  line-height: 1.6;
}
strong, b {
  font-weight: bold;
}

.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1250px;
  padding-left: 22px;
  padding-right: 22px;
}
@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/**** HEADER & NAVIGATION ****/
header {
  background: var(--secondary);
  box-shadow: var(--shadow);
  z-index: 20;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 80px;
  gap: 24px;
}
header a img {
  height: 48px;
  width: auto;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-left: 24px;
}
header nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-dark);
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .18s, color .18s;
}
header nav a:hover, header nav a:focus {
  background: var(--accent-light);
  color: var(--secondary);
}
.cta-button {
  background: var(--accent);
  color: var(--secondary);
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  border-radius: 12px;
  padding: 13px 36px;
  margin-left: auto;
  margin-right: 14px;
  box-shadow: 0 8px 24px 0 rgba(246,185,59,0.10);
  transition: background .18s, transform .18s, box-shadow .18s;
  border: none;
  display: inline-block;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary-dark);
  color: var(--accent-light);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 12px 38px 0 rgba(22,69,92,0.13);
}

.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--secondary);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  border-radius: 50%;
  border: none;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  z-index: 1002;
  transition: background .18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary-dark);
  color: var(--accent-light);
}

/* Hide nav in desktop if needed on mobile */
@media (max-width: 992px) {
  header nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--secondary);
  box-shadow: 0 0 0 100vw rgba(29,92,119,0.08);
  z-index: 1020;
  transform: translateX(-100%);
  transition: transform .36s cubic-bezier(0.6,0,0.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 0 40px rgba(22,69,92,0.16);
}
.mobile-menu-close {
  background: none;
  color: var(--primary);
  font-size: 2.1rem;
  padding: 18px 20px 10px 18px;
  border: none;
  align-self: flex-end;
  margin-bottom: 10px;
  transition: color .17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-left: 32px;
  margin-top: 20px;
}
.mobile-nav a {
  color: var(--primary-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  padding: 12px 4px 12px 14px;
  border-radius: 10px;
  margin-right: 24px;
  transition: background .18s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent-light);
  color: var(--secondary);
}

@media (min-width: 993px) {
  .mobile-menu,
  .mobile-menu.open {
    display: none !important;
  }
}

/* --- MAIN LAYOUT & SECTION SPACING --- */
main {
  min-height: 70vh;
  background: var(--secondary);
  margin-bottom: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--border-radius);
  background: #fff;
  box-shadow: var(--shadow);
}
@media (max-width: 600px) {
  section {
    padding: 26px 7px;
    margin-bottom: 34px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}
@media (min-width: 768px) {
  .content-wrapper {
    gap: 32px;
  }
}

/**** FLEX CONTAINERS ****/
/* Mandatory spacing as per requirements */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--secondary-light);
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 240px;
  max-width: 385px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--secondary-light);
  box-shadow: 0 6px 32px 0 rgba(22,69,92,0.10);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 240px;
  flex: 1 1 320px;
  max-width: 520px;
}
.testimonial-card p {
  flex: 1 1 auto;
  color: #222E3A;
  font-size: 1.03rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0;
}
.testimonial-card span {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--primary-dark);
  opacity: 0.75;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--secondary-light);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

/**** CARD, LIST, AND ICON STYLES ****/
.content-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-left: 0;
}
.content-wrapper ul li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 13px 0 13px 3px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-dark);
  background: transparent;
}
.content-wrapper ul li img {
  height: 30px;
  width: 30px;
  background: var(--accent-light);
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 2px 10px rgba(246,185,59,0.08);
  margin-right: 9px;
}
.category-tabs, .category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.category-tabs span, .category-filters span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.07rem;
}
.category-tabs span:not(:last-child):after,
.category-filters span:not(:last-child):after {
  content: '|';
  color: #B8C7CE;
  margin-left: 8px;
  margin-right: 8px;
}

/**** FORMS & NEWSLETTER CTA ****/
form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 10px;
}
input[type="email"] {
  padding: 13px 18px;
  border-radius: 10px;
  border: 2px solid #DAE1E5;
  background: var(--input-bg);
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  margin-right: 12px;
  transition: border .18s;
}
input[type="email"]:focus {
  outline: none;
  border: 2px solid var(--primary-dark);
}
button[type="submit"] {
  background: var(--accent);
  color: var(--secondary);
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  border-radius: 10px;
  padding: 13px 24px;
  transition: background .18s, transform .18s;
  border: none;
}
button[type="submit"]:hover, button[type="submit"]:focus {
  background: var(--primary-dark);
  color: var(--accent-light);
}

/**** DL/DT/DD FAQ LISTS ****/
dt {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  color: var(--primary);
  margin-top: 20px;
  font-size: 1.1rem;
}
dd {
  margin-left: 0;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #1b2b32;
}

/**** FOOTER ****/
footer {
  background: var(--primary);
  color: var(--secondary);
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  padding: 36px 0 24px 0;
  margin-top: 36px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 20px 0 rgba(22,69,92,0.06);
}
footer .container {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
footer a img {
  height: 40px;
  margin-right: 18px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
footer nav a {
  color: var(--accent-light);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  transition: color .2s;
  font-size: 0.99rem;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
}
footer p {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #D6E0E8;
  margin-top: 8px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  footer nav {
    margin-bottom: 8px;
  }
}

/**** SPACING FOR TEXT SECTIONS ****/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/**** SPECIAL ELEMENTS ****/
ol {
  margin-left: 21px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
ol li {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 1rem;
}

/**** PROMO BADGES, PRICES & SPANS ****/
span {
  color: var(--accent);
  font-weight: bold;
}
.card span, .feature-item span, ul li span {
  color: var(--accent);
  font-weight: bold;
}

/**** THANK YOU PAGE HIGHLIGHT ****/
section .cta-button {
  margin-top: 18px;
}

/**** COOKIE CONSENT BANNER ****/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  background: var(--primary-dark);
  color: var(--secondary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 30px 22px 30px;
  z-index: 1050;
  box-shadow: 0 -8px 24px 0 rgba(22, 69, 92, 0.11);
  border-radius: 17px 17px 0 0;
  animation: slideup 0.42s cubic-bezier(0.57,0,0.28,1);
}
@keyframes slideup {
  from {transform: translateY(150px); opacity:0;}
  to {transform: translateY(0); opacity:1;}
}
.cookie-banner p {
  color: var(--secondary);
  font-size: 0.98rem;
  margin-right: 18px;
  flex: 1 1 300px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-banner button {
  background: var(--accent);
  color: var(--secondary);
  padding: 8px 22px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: background .18s, color .18s;
  border: none;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--secondary);
  color: var(--primary-dark);
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  color: var(--accent-light);
  border: 2px solid var(--accent-light);
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--accent-light);
  color: var(--primary-dark);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 12px 16px 12px;
  }
  .cookie-banner .cookie-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/**** COOKIE MODAL POPUP ****/
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(20, 35, 50, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  transition: background 0.22s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .modal-content {
  background: var(--secondary);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 38px 28px 30px 28px;
  min-width: 320px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  animation: fadeinmodal .22s cubic-bezier(0.57,0,0.28,1);
  position: relative;
}
@keyframes fadeinmodal {
  from {transform: scale(0.9); opacity:0;}
  to {transform: scale(1); opacity:1;}
}
.cookie-modal .modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 7px;
}
.cookie-modal .modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--primary);
  cursor: pointer;
  opacity: 0.72;
  transition: color .16s, opacity .18s;
}
.cookie-modal .modal-close-btn:hover, .cookie-modal .modal-close-btn:focus {
  color: var(--accent);
  opacity: 1;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--secondary-light);
  border-radius: 8px;
  padding: 13px 20px;
  margin-bottom: 12px;
}
.cookie-modal .category-title {
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
}
.cookie-modal .category-desc {
  font-size: 0.94rem;
  color: #3d4762;
  margin-top: 3px;
}
.cookie-modal .category-switch {
  margin-left: 12px;
}
.cookie-modal .cookie-modal-cta {
  margin-top: 21px;
  display: flex;
  gap: 13px;
  flex-direction: row;
  justify-content: flex-end;
}
.cookie-modal .cookie-accept-btn, .cookie-modal .cookie-reject-btn {
  background: var(--accent);
  color: var(--secondary);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  padding: 8px 22px;
  font-weight: 700;
  font-size: 0.99rem;
  border: none;
  transition: background .18s, color .18s;
}
.cookie-modal .cookie-reject-btn {
  background: var(--secondary-light);
  color: var(--primary-dark);
  border: 2px solid var(--accent);
}
.cookie-modal .cookie-accept-btn:hover, .cookie-modal .cookie-reject-btn:hover {
  background: var(--primary-dark);
  color: var(--accent-light);
}
/* Switch toggle styles for cookie modal */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}
.toggle-switch input {
  display: none;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  border-radius: 24px;
  background: #F1F1F1;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  transition: background 0.18s;
  box-shadow: 0 1px 3px rgba(29,92,119,0.11);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
}
.toggle-slider:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}
.toggle-slider[aria-disabled="true"] {
  background: #B8C7CE !important;
  opacity: 0.55;
}

/**** RESPONSIVE DESIGN ****/
@media (max-width: 1100px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 28px;
  }
}
@media (max-width: 768px) {
  main, section, .container {
    padding-left: 0;
    padding-right: 0;
  }
  section {
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 24px;
  }
  .content-wrapper {
    gap: 18px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.125rem; }
  h3 { font-size: 1rem; }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }
  .card {
    min-width: 0;
    padding: 17px 10px;
  }
}

/**** HOVER, TRANSITION & FOCUS STATES ****/
a, button, .cta-button {
  transition: background .16s, color .13s, box-shadow .18s, transform .18s;
}
a:focus, button:focus, .cta-button:focus {
  outline: 2.5px solid var(--accent-light);
  outline-offset: 1.5px;
}

/**** UTILITIES ****/
.hide-desktop {
  display: none !important;
}
@media (max-width: 992px) {
  .hide-desktop { display: unset !important; }
  .hide-mobile { display: none !important; }
}

/**** GEOMETRIC BOLD DECORATIONS ****/
section {
  position: relative;
  overflow: visible;
}
section::before {
  content: '';
  display: block;
  position: absolute;
  left: -44px;
  top: 34px;
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  opacity: 0.06;
  border-radius: 18px 40px 28px 12px;
  z-index: 1;
  pointer-events: none;
}
section::after {
  content: '';
  display: block;
  position: absolute;
  right: -40px;
  bottom: -20px;
  width: 50px;
  height: 38px;
  background: var(--primary);
  opacity: 0.04;
  border-radius: 16px 25px 8px 30px;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 800px) {
  section::before, section::after {
    display: none;
  }
}

/**** Z-INDEX LAYERING ****/
header, .mobile-menu, .mobile-menu-close, .cookie-banner, .cookie-modal {
  z-index: 1030 !important;
}

/**** FOCUS-visible POLYFILL ****/
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2.5px solid var(--accent-light);
  outline-offset: 2.3px;
}

/*********** END OF CSS ***********/
