/* -----------------------------
   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;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  background: #F3F3F7;
  color: #12385A;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
a:active, a:focus {
  outline: none;
}
button {
  outline: none;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* ------------
   BRAND COLORS 
   ------------*/
:root {
  --primary: #12385A;
  --secondary: #FFFFFF;
  --accent: #C0861F;
  --accent-light: #F8E5C3;
  --gray-bg: #F3F3F7;
  --testi-bg: #fff;
  --testi-text: #134063;
}
/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Open+Sans:wght@400;600&display=swap');

/* --------------
  TYPOGRAPHY
  --------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
p, ul, ol {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #18446b;
  line-height: 1.7;
  margin-bottom: 12px;
}
strong {
  color: #12385A;
  font-weight: 600;
}

/* Typography scale for hierarchy */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* -----------------
  GENERAL LAYOUT
-------------------*/
.container {
  width: 100%;
  max-width: 1136px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--gray-bg);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(22,40,63,0.06);
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-top: 12px;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
}
/* Required flexbox patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(22,40,63,0.05);
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 260px;
  flex: 1 1 220px;
  transition: box-shadow 0.3s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(33,52,93,0.11);
}
.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;
}
@media (max-width:768px) {
  .text-image-section { flex-direction: column; gap: 20px; }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--testi-bg);
  color: var(--testi-text);
  gap: 20px;
  padding: 24px 24px 18px 24px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(18,56,90,0.07);
  min-width: 260px;
  margin-bottom: 20px;
  font-size: 1rem;
  transition: box-shadow 0.3s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(33,52,93,0.14);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Minimum spacing between content cards */
.card, .testimonial-card, .section, .feature-item {
  margin-bottom: 20px;
}

/* --------------
   HEADER & NAV
--------------*/
header {
  background: linear-gradient(90deg, #134063 0%, #29557B 100%);
  padding: 0 0 0 0;
  box-shadow: 0 2px 12px rgba(18,56,90,0.07);
  z-index: 50;
  position: relative;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1136px;
  margin: 0 auto;
  padding: 14px 20px;
}
header nav a img {
  height: 44px;
  width: auto;
  margin-right: 18px;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
header nav ul li {
  display: flex;
  align-items: center;
}
header nav ul li a {
  padding: 7px 16px;
  border-radius: 22px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
  transition: background 0.22s, color 0.22s;
}
header nav ul li a:hover,
header nav ul li a:focus {
  background: var(--accent);
  color: var(--primary);
}
header nav ul li .cta {
  color: var(--primary);
  background: var(--accent);
  padding: 7px 22px;
  border-radius: 22px;
  font-weight: bold;
  font-size: 1rem;
  margin-left: 6px;
  box-shadow: 0 2px 12px rgba(255, 190, 79, 0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
header nav ul li .cta:hover,
header nav ul li .cta:focus {
  background: #b77906;
  color: #fff;
  box-shadow: 0 4px 24px rgba(255, 190, 79, 0.15);
}
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.8rem;
  padding: 10px 14px;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 202;
  box-shadow: 0 2px 10px rgba(184, 129, 38, 0.13);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #b77906;
  color: #fff;
}

@media (max-width: 900px) {
  header nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE NAV OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(91deg, #123D62 40%, #29557B 100%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.4,1,.7,1);
  box-shadow: 0 2px 32px rgba(12,33,53,0.14);
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 22px 0 0;
  font-size: 2.2rem;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  padding: 6px 16px;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(184, 129, 38, 0.13);
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:active {
  background: #b77906;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  margin-top: 28px;
  padding: 0 34px;
}
.mobile-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  color: #fff;
  background: rgba(233, 211, 161, 0.03);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 600px) {
  .mobile-nav {
    padding: 0 16px;
  }
}

/* -------------------
   HERO & CTA BUTTONS
--------------------*/
section:first-of-type {
  background: linear-gradient(105deg, #134063 0%, #29557B 100%);
  color: #fff;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 6px 32px rgba(18,56,90,0.09);
  margin-bottom: 52px;
  min-height: 340px;
}
section:first-of-type .container > .content-wrapper {
  align-items: flex-start;
}
section:first-of-type h1, section:first-of-type p {
  color: #fff;
}
section:first-of-type .cta {
  margin-top: 30px;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  border-radius: 22px;
  font-size: 1.06rem;
  font-weight: 700;
  padding: 12px 28px;
  margin-top: 12px;
  box-shadow: 0 2px 18px rgba(198, 134, 31, 0.11);
  text-align: center;
  letter-spacing: 0.05em;
  outline: none;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s, transform 0.22s;
}
.cta.secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--accent);
  box-shadow: none;
}
.cta:hover, .cta:focus {
  background: #b77906;
  color: #fff;
  box-shadow: 0 4px 24px rgba(198,134,31,0.18);
  transform: translateY(-2px) scale(1.04);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--accent);
  color: #fff;
}

a.cta:active {
  background: #a06917;
  color: #fff;
}

/* ----------------------
   FEATURES & CUSTOM ICONS
------------------------*/
.content-wrapper > div, .content-wrapper > ul {
  flex: 1 1 220px;
}
.content-wrapper > div > img, .feature-item > img, ul li > img {
  height: 42px;
  width: 42px;
  margin-bottom: 16px;
  background: var(--accent-light);
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(198, 134, 31, 0.05);
}

/* --------------
   LISTS & ITEMS
---------------*/
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
ul li img, ol li img {
  margin-top: 2px;
}
section ul, section ol {
  padding-left: 0;
}

/* --------------
   BLOG CARDS
----------------*/
.content-wrapper > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}
.content-wrapper > nav a {
  background: #edf0fa;
  color: var(--primary);
  border-radius: 12px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.15s;
}
.content-wrapper > nav a.active, .content-wrapper > nav a:hover {
  background: var(--accent);
  color: #fff;
}
.content-wrapper > div > article {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(19,64,99,0.07);
  margin-bottom: 20px;
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.18s;
}
.content-wrapper > div > article:hover {
  box-shadow: 0 8px 32px rgba(33,52,93,0.11);
}
.content-wrapper > div > article h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}
.content-wrapper > div > article a {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 3px;
  transition: text-decoration 0.17s, color 0.16s;
}
.content-wrapper > div > article a:hover {
  color: #b77906;
  text-decoration: underline;
}

/* --------------------
   TESTIMONIAL SECTION
---------------------*/
section .testimonial-card p:first-child {
  font-style: italic;
  color: #134063;
  font-size: 1.11rem;
  margin-bottom: 8px;
}
section .testimonial-card p:last-child {
  font-family: 'Open Sans', sans-serif;
  color: #567393;
  font-weight: 600;
  font-size: 1rem;
}

/* VISUAL SEPARATORS */
h2:not(:first-child), h3:not(:first-child) {
  margin-top: 32px;
}

/* -----------------
   DETAILS ACCORDION (FAQ)
-------------------*/
details {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(19,64,99,0.05);
  margin-bottom: 16px;
  padding: 0 16px;
  font-size: 1rem;
}
details[open] summary {
  color: var(--accent);
}
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.07rem;
  padding: 14px 0;
  outline: none;
  transition: color 0.18s;
}
details > div {
  padding-bottom: 14px;
  color: #18446b;
  margin-left: 4px;
  font-size: 1rem;
}
details summary::-webkit-details-marker { display: none; }

/* input search FAQ */
input[type="search"] {
  background: #FFF;
  border: 1.5px solid #cfd8e9;
  border-radius: 12px;
  padding: 12px 18px;
  width: 100%;
  font-size: 1rem;
  margin-bottom: 28px;
  box-shadow: 0 2px 5px rgba(19,60,99,0.04);
  transition: border-color 0.2s;
}
input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
}

/* --------------------
   FOOTER
----------------------*/
footer {
  margin-top: 40px;
  padding: 38px 0 20px 0;
  background: #fff;
  border-top: 2px solid var(--accent-light);
  width: 100%;
  box-shadow: 0 -2px 10px rgba(18,56,90,0.03);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
footer nav a {
  color: var(--primary);
  font-weight: 500;
  opacity: 0.92;
  font-size: 1rem;
  padding: 6px 14px;
  transition: color 0.16s, opacity 0.16s;
  border-radius: 8px;
}
footer nav a:hover {
  color: var(--accent);
  opacity: 1;
  background: #f8e1b8;
}
footer .footer-info {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--primary);
  font-family: 'Open Sans', Arial, sans-serif;
  opacity: 0.8;
}
footer .footer-info img {
  height: 32px;
}

/* -------------------------
   RESPONSIVE DESIGN
---------------------------*/
@media (max-width: 1100px) {
  .container { max-width: 95vw; }
}
@media (max-width: 950px) {
  header nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 12px 8px 12px;
  }
}
@media (max-width: 820px) {
  section { padding: 34px 6vw; }
}
@media (max-width: 600px) {
  .section, section { padding: 20px 0; margin-bottom: 38px; border-radius: 0; }
  .container { padding: 0 7px; }
  .card, .testimonial-card { padding: 16px 11px 14px 11px; }
  h1, h2 { margin-bottom: 16px; }
  .content-wrapper { gap: 14px; }
  footer { padding: 34px 0 14px 0; }
}

/* -----------------------
   COOKIE CONSENT BANNER
------------------------*/
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(93deg, #134063 70%, #29557B 100%);
  color: #fff;
  z-index: 9900;
  padding: 20px 18px 24px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 -2px 28px rgba(19,56,90,0.09);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(.44,1,.75,1);
}
.cookie-consent-banner.hide {
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-consent-banner p {
  color: #fff;
  margin: 0;
  flex: 1 1 auto;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 18px;
}
.cookie-buttons button {
  background: #fff;
  color: #12385A;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  margin: 0 2px;
  box-shadow: 0 2px 10px rgba(17,34,53,0.07);
  transition: background 0.18s, color 0.18s, box-shadow 0.17s;
}
.cookie-buttons button:focus, .cookie-buttons button:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(198,134,31,0.17);
}
.cookie-buttons button.cookie-settings {
  background: var(--accent);
  color: #fff;
}
.cookie-buttons button.cookie-settings:focus, .cookie-buttons button.cookie-settings:hover {
  background: #b77906;
  color: #fff;
}
@media (max-width: 800px) {
  .cookie-consent-banner { flex-direction: column; gap: 18px; align-items: flex-start; }
  .cookie-buttons { margin-left: 0; }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9992;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,56,90, 0.78);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.26s cubic-bezier(.42,1,.66,1);
}
.cookie-modal-overlay.hide {
  pointer-events: none;
  opacity: 0;
}
.cookie-modal {
  background: #fff;
  color: #12385A;
  max-width: 420px;
  width: 95vw;
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(19,56,90,0.25);
  padding: 36px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Open Sans', Arial, sans-serif;
  position: relative;
  animation: slideModalAppear 0.5s cubic-bezier(.24,1,.48,1);
}
@keyframes slideModalAppear {
  0% { transform: translateY(50px) scale(0.96); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  color: #12385A;
  font-size: 1.4rem;
  margin-bottom: 6px;
  font-family: 'Merriweather', serif;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-category label {
  font-weight: 600;
  color: #18446b;
  font-size: 1rem;
}
.cookie-category input[type=checkbox],
.cookie-category input[type=radio] {
  accent-color: var(--accent);
  width: 22px;
  height: 22px;
  margin-right: 6px;
}
.cookie-category .essential {
  color: #909ab6;
  font-style: italic;
  font-size: 0.98rem;
  margin-left: 5px;
}
.cookie-modal .modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal .modal-buttons button {
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal .modal-buttons button.secondary {
  background: #eee;
  color: #18446b;
}
.cookie-modal .modal-buttons button:hover {
  background: #b77906;
  color: #fff;
}
.cookie-modal .modal-close {
  background: transparent;
  color: #18446b;
  font-size: 1.5rem;
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.13s;
  padding: 2px 6px;
  line-height: 1.1;
}
.cookie-modal .modal-close:focus,
.cookie-modal .modal-close:hover {
  background: #f8e1b8;
  color: #b77906;
}

/* ----------------------
   UTILITY CLASSES
------------------------*/
.text-center {
  text-align: center;
}
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.gap-8 { gap: 8px; }

/* Hide visually but keep accessible (used for accessibility) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(100%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

/* Micro-interaction subtle fade & pop-ins */
.fade-in {
  animation: fadeIn 0.82s cubic-bezier(.41,1,.53,1) 1;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* --------------
   TRANSITIONS
---------------*/
section, .card, .testimonial-card, .cta, details, .cookie-consent-banner, .mobile-menu, .mobile-nav a {
  transition: box-shadow 0.18s, background 0.18s, color 0.16s, transform 0.19s;
}

/* --------------
   ACCESSIBILITY
----------------*/
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* --------------
   MISC. FORMS
----------------*/
input, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccd0d6;
  padding: 10px 16px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(19,64,99,0.04);
  margin-bottom: 14px;
  transition: box-shadow 0.18s,border-color 0.16s;
}
input:focus, textarea:focus {
  box-shadow: 0 4px 14px #f8e1b8;
  border-color: var(--accent);
}

/* ------------------
   END OF STYLE.CSS
--------------------*/
