/* RESET & BASE STYLES -------------------------------------------------- */
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, main,
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.5;
  background: #F5F5F0;
  color: #1A3C54;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

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

/* CSS VARIABLES FOR BRAND -------------------------------------------------- */
:root {
  --primary: #1A3C54;
  --secondary: #F5F5F0;
  --accent: #A86A1C;
  --accent-bright: #C98725;
  --bg-gradient: linear-gradient(117deg, #F5F5F0 0%, #DEE9F7 50%, #F5F5F0 100%);
  --heading-font: 'Montserrat', Arial, Helvetica, sans-serif;
  --body-font: 'Open Sans', Arial, Helvetica, sans-serif;
  --shadow-main: 0 4px 16px rgba(26,60,84,0.10);
  --shadow-card: 0 2px 8px rgba(26,60,84,0.08);
  --radius: 14px;
  --transition: 0.23s cubic-bezier(.46, .03, .52, .96);
}

/* CONTAINERS & SECTIONS ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 900px) {
  .container { max-width: 100%; }
}
@media (max-width: 480px) {
  .section { padding: 32px 8px; margin-bottom: 36px; }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}


/* TYPOGRAPHY --------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.01em;
}
h1 {
  font-size: 2.7rem;
  line-height: 1.14;
  margin-bottom: 10px;
}
h2 {
  font-size: 2rem;
  margin: 0 0 12px 0;
  line-height: 1.18;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
p, li, ul, ol, blockquote {
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.7;
  color: #27384a;
}
p {
  margin-bottom: 10px;
}
strong { font-weight: 700; }
a:hover, a:focus { color: var(--accent-bright); }

/* NAVIGATION --------------------------------------------------------------- */
header {
  background: #fff;
  box-shadow: var(--shadow-main);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo, .logo-footer { display: flex; align-items: center; }
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  color: var(--primary);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
nav a:hover, nav a:focus {
  background: var(--accent);
  color: #fff;
}

/* Header CTA */
.cta.primary, .cta.secondary {
  display: inline-block;
  font-family: var(--heading-font);
  font-weight: 700;
  border-radius: var(--radius);
  padding: 10px 28px;
  font-size: 1.13rem;
  box-shadow: var(--shadow-main);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  margin-left: 18px;
}
.cta.primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--accent);
  border-color: var(--accent-bright);
  color: #fff;
}
.cta.secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--accent);
  margin-left: 0;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* HERO, CARDS & FEATURE LISTS ---------------------------------------------- */
section {
  background: var(--bg-gradient);
  border-radius: var(--radius);
  margin-bottom: 60px;
  box-shadow: var(--shadow-card);
  position: relative;
}
section > .container {
  padding-top: 24px;
  padding-bottom: 24px;
}

ul, ol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: 0;
  margin-bottom: 0;
}
li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.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;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
  max-width: 700px;
  color: #222;
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.09rem;
  color: #23272d;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 10px;
  }
  .card { padding: 20px 12px; }
}

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

/* Buttons, Links, Micro-interactions --------------------------------------- */
button, .cta,
.mobile-menu-toggle, .mobile-menu-close {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform .18s cubic-bezier(.46,.03,.52,.96);
}
button:active, .cta:active {
  transform: scale(0.98);
}

/* ICONS IN LISTS ----------------------------------------------------------- */
ul li > img, ol li > img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-right: 5px;
  filter: grayscale(0.09) brightness(0.85);
}
@media (max-width: 600px) {
  ul li > img, ol li > img { width: 22px; height: 22px; }
}

/* FOOTER ------------------------------------------------------------------- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
footer .container {
  padding-top: 44px;
  padding-bottom: 36px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}
footer nav {
  gap: 16px;
}
footer nav a {
  color: #fff;
  opacity: .9;
  font-size: 0.99rem;
  border-radius: 10px;
  padding: 6px 8px;
  font-family: var(--heading-font);
}
footer nav a:hover, footer nav a:focus {
  background: var(--accent);
  color: #fff;
}
footer .logo-footer {
  min-width: 48px;
}
footer .text-section {
  font-size: 0.99rem;
  text-align: left;
  color: #f1f1f1;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
footer .text-section a img {
  width: 30px;
  height: 30px;
  margin-right: 7px;
  display: inline-block;
  filter: contrast(1.22) brightness(1.01);
  transition: filter .2s;
}
footer .text-section a:hover img { filter: brightness(1.20) sepia(1) hue-rotate(-18deg) saturate(1.6); }
@media (max-width: 900px) {
  footer .content-wrapper { flex-direction: column; gap: 18px; align-items: flex-start; }
  footer .logo-footer { margin-bottom: 8px; }
}

/* MOBILE MENU -------------------------------------------------------------- */
.mobile-menu-toggle {
  background: #fff;
  color: var(--primary);
  font-size: 2.1rem;
  display: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  margin-left: 8px;
  z-index: 401;
  position: relative;
  border: 2px solid #e5e5e5;
  line-height: 1;
}
@media (max-width: 1024px) {
  header nav, header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,60,84, 0.96);
  z-index: 401;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.36,0,.66,-0.56);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #fff;
  font-size: 2.5em;
  margin: 22px 26px 12px 0;
  padding: 8px 18px 8px 8px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  z-index: 999;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover { background: var(--accent); color: #fff; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
  padding-left: 38px;
  margin-top: 8px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.22rem;
  font-family: var(--heading-font);
  font-weight: 700;
  border-radius: var(--radius);
  padding: 14px 10px 14px 0;
  width: auto;
  opacity: 0.97;
  outline: none;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 400px) {
  .mobile-nav { padding-left: 16px; gap: 13px; }
}

/* Hide mobile menu by default on desktop */
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* MAIN LAYOUT & FLEX REQUIREMENTS ------------------------------------------ */
.features, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}


/* CRITICAL SPACING - Universal Gaps ---------------------------------------- */
section, .card-container, .content-grid, .testimonial-card, .feature-item,
.card, .content-wrapper {
  /* Gaps ensured per component above, no overlap guaranteed */
}

/* RESPONSIVE FLEX ADJUSTMENTS ---------------------------------------------- */
@media (max-width: 900px) {
  .card-container, .content-grid, .features, .card-grid { gap: 16px; }
}
@media (max-width: 768px) {
  .content-wrapper, .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-grid, .features, .card-container, .card-grid {
    flex-direction: column;
    gap: 14px;
  }
  section { margin-bottom: 38px; }
}

/* SPACING - Add bottom margin to sections */
section:last-child { margin-bottom: 0; }

/* TABLES, BLOCKQUOTES ------------------------------------------------------ */
table { border-collapse: collapse; min-width: 320px; margin: 24px 0; }
th, td { padding: 8px 14px; border: 1px solid #e5e7ee; }
blockquote {
  font-size: 1.1em;
  border-left: 4px solid var(--accent);
  padding-left: 17px;
  color: #1A3C54;
  margin: 0 0 7px 0;
  font-family: var(--body-font);
  font-style: italic;
}

/* FORMS (if needed) -------------------------------------------------------- */
input, textarea {
  font-family: var(--body-font);
  font-size: 1rem;
  border: 1.8px solid #CED5E2;
  border-radius: var(--radius);
  padding: 9px 13px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(26,60,84, 0.03);
  width: 100%;
  transition: border var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #BED1DF66;
  outline: none;
}
label { font-size: 1rem; font-weight: 600; color: var(--primary); }

/* COOKIE CONSENT BANNER ---------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 501;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -4px 22px rgba(26,60,84,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1rem;
}
.cookie-banner__actions {
  display: flex;
  gap: 15px;
}
.cookie-banner button, .cookie-banner .cta {
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--primary);
  transition: background var(--transition), color var(--transition), border var(--transition);
}
.cookie-banner button.accept {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cookie-banner button.reject {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
}
.cookie-banner button.settings {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}
.cookie-banner button.accept:hover,
.cookie-banner button.accept:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cookie-banner button.reject:hover,
.cookie-banner button.reject:focus {
  background: #fff4e5;
  color: var(--accent-bright);
  border-color: var(--accent-bright);
}
.cookie-banner button.settings:hover,
.cookie-banner button.settings:focus {
  background: var(--primary);
  color: #fff;
}
@media (max-width:700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 10px 24px 10px;
    font-size: 0.96rem;
  }
  .cookie-banner__actions {
    gap: 11px;
  }
}

/* COOKIE PREFERENCES MODAL ------------------------------------------------- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,60,84,0.53);
  z-index: 701;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s cubic-bezier(.46,.03,.52,.96);
}
.cookie-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.cookie-modal__content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(26,60,84,0.16);
  padding: 38px 30px 28px 30px;
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 21px;
}
.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.cookie-modal__header h3 {
  font-size: 1.3rem;
}
.cookie-modal__close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal__close:hover {
  background: var(--accent);
  color: #fff;
}
.cookie-modal__list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-switch-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.06rem;
}
.cookie-switch-row .switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.cookie-switch-row .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-switch-row .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #eee;
  border-radius: 22px;
  transition: background var(--transition);
}
.cookie-switch-row .slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 2px; bottom: 2px;
  background-color: var(--primary);
  border-radius: 50%;
  transition: .19s;
}
.cookie-switch-row .switch input:checked + .slider { background: var(--accent-bright); }
.cookie-switch-row .switch input:checked + .slider:before { transform: translateX(16px); background: var(--accent); }
/* Essential cookies - always enabled */
.cookie-switch-row.disabled { color: #c2bfa7; opacity: .77; }
.cookie-switch-row.disabled .slider { background: #d6dac7 !important; }
.cookie-switch-row.disabled .slider:before { background: #aaaaaa !important; }

.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 19px;
  justify-content: flex-end;
}
.cookie-modal__actions button {
  padding: 8px 19px;
  border-radius: var(--radius);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
  transition: background var(--transition), color var(--transition), border var(--transition);
}
.cookie-modal__actions button.save {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cookie-modal__actions button.save:hover,
.cookie-modal__actions button.save:focus {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cookie-modal__actions button.cancel:hover {
  background: #e5ebee;
}
@media (max-width: 480px) {
  .cookie-modal__content { padding: 21px 6vw 17px 6vw; }
  .cookie-modal__header { flex-direction: column; gap: 5px; }
}

/* MISCELLANEOUS ------------------------------------------------------------ */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .card { font-size: 0.96em; }
}

/* SCROLLBAR MODERN -------------------------------------------------------- */
::-webkit-scrollbar { width: 11px; background: #f6fafc; }
::-webkit-scrollbar-thumb { border-radius: 8px; background: #dadfe8; }

/* PRINT OPTIMIZATION ------------------------------------------------------ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section, .container { box-shadow: none !important; border-radius: 0 !important; }
}
