/* -----------------------------------
   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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F3EFE7;
  color: #1B325C;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  border: 0;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* -----------------------------------
   GLOBAL BRANDING & BASE
----------------------------------- */
:root {
  --color-primary: #1B325C;
  --color-secondary: #8EA0B5;
  --color-accent: #F3EFE7;
  --color-dark: #13203a;
  --color-light: #F3EFE7;
  --color-white: #fff;
  --color-shadow: rgba(27, 50, 92, 0.06);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Lato', Arial, Helvetica, sans-serif;
}

html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-accent);
  min-height: 100vh;
  font-size: 1rem;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; font-weight: 600; }
h4 { font-size: 1.1rem; margin-bottom: 12px; font-weight: 600; }
h5, h6 { margin-bottom: 8px; }
p, ul, ol, address {
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 18px;
  font-family: var(--font-body);
}
strong { font-weight: 700; }

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  box-shadow: 0 2px 10px var(--color-shadow);
  border-radius: 12px;
  padding: 28px 28px 24px 28px;
  transition: box-shadow 0.22s;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  min-width: 280px;
}
.card:hover {
  box-shadow: 0 6px 22px rgba(27,50,92,0.13);
}

.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;
  padding: 20px;
  background: var(--color-light);
  box-shadow: 0 2px 8px var(--color-shadow);
  border-left: 5px solid var(--color-secondary);
  border-radius: 8px;
  margin-bottom: 24px;
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--color-dark);
  margin: 0;
  font-style: italic;
  line-height: 1.6;
}
.testimonial-card div {
  color: var(--color-primary);
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 500;
}

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

/* -----------------------------------
   HEADER/NAVIGATION STYLES
----------------------------------- */
header {
  background: var(--color-white);
  box-shadow: 0 2px 12px var(--color-shadow);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1010;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  position: relative;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 36px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1rem;
  padding: 6px 2px 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.13s, border 0.18s;
  position: relative;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 6px var(--color-shadow);
  transition: background 0.18s, box-shadow 0.22s, color 0.14s;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(139,156,181,0.17);
}

/* -----------------------------------
   MOBILE NAVIGATION
----------------------------------- */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  color: var(--color-white);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  box-shadow: 0 4px 24px rgba(27,50,92,0.22);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 30px 32px 14px 0;
  background: none;
  color: var(--color-white);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-left: 32px;
  margin-top: 32px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--color-white);
  padding: 9px 0;
  font-family: var(--font-display);
  border-bottom: 1.5px solid transparent;
  transition: border 0.19s, color 0.19s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  border-bottom: 1.5px solid var(--color-secondary);
  color: var(--color-secondary);
}

/* Show hamburger menu and hide main nav on mobile */
@media (max-width: 960px) {
  header .container nav,
  header .container .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    color: var(--color-primary);
    font-size: 2rem;
    border: none;
    margin-right: 6px;
    cursor: pointer;
    z-index: 2020;
    transition: color 0.16s;
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus {
    color: var(--color-secondary);
  }
}

/* -----------------------------------
   MAIN CONTENT/SECTION STYLES
----------------------------------- */
main {
  padding-top: 38px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
section:last-of-type {
  margin-bottom: 0;
}

ul, ol {
  margin-left: 1.25em;
  list-style-position: inside;
  color: var(--color-primary);
  margin-bottom: 20px;
}
ul li, ol li {
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.7;
  padding-left: 0;
}
ul li img,
ol li img {
  height: 22px;
  width: 22px;
  margin-right: 10px;
  vertical-align: middle;
}

blockquote {
  font-size: 1.1rem;
  background: transparent;
  border-left: 4px solid var(--color-secondary);
  margin: 0 0 8px 0;
  padding: 0 0 0 12px;
}

/* -----------------------------------
   FOOTER
----------------------------------- */
footer {
  background: var(--color-primary);
  color: var(--color-light);
  width: 100%;
  margin-top: 48px;
  padding: 36px 0 20px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--color-secondary);
  font-size: 1rem;
  transition: color 0.14s, border 0.13s;
  padding-bottom: 1px;
  border-bottom: 1.5px solid transparent;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--color-white);
  border-bottom: 1.5px solid var(--color-white);
}
footer address {
  font-style: normal;
  font-size: 0.95rem;
  text-align: center;
  color: var(--color-accent);
}
.footer-branding {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-size: 1rem;
}

/* -----------------------------------
   COOKIE CONSENT BANNER & MODAL
----------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-dark);
  color: var(--color-light);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  z-index: 4000;
  box-shadow: 0 -4px 24px rgba(27,50,92,0.15);
  transition: transform 0.32s cubic-bezier(.8,-0.49,.38,1.3);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-text {
  flex: 1 1 380px;
  font-size: 1rem;
  color: var(--color-light);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  cursor: pointer;
  border-radius: 5px;
  padding: 9px 22px;
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  background: var(--color-secondary);
  color: var(--color-dark);
  font-weight: 600;
  box-shadow: 0 1px 6px var(--color-shadow);
  transition: background 0.16s, color 0.12s;
}
.cookie-banner button:active {
  background: var(--color-primary);
  color: var(--color-white);
}
.cookie-banner button.cookie-settings {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-banner button.cookie-settings:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
}

/* Cookie Modal Styles */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(27,50,92,0.33);
  z-index: 4050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-primary);
  padding: 32px 24px 26px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(27,50,92,0.20);
  max-width: 410px;
  width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  font-size: 1.22rem;
  margin-bottom: 4px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
}
.cookie-modal .cookie-category label {
  flex: 1;
  font-size: 1rem;
}
.cookie-modal .cookie-category input[type='checkbox'] {
  accent-color: var(--color-primary);
  width: 18px; height: 18px;
}
.cookie-modal .cookie-category input[disabled] {
  opacity: 0.45;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal button {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 7px 18px;
  border-radius: 5px;
  border: none;
  background: var(--color-secondary);
  color: var(--color-dark);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.11s;
}
.cookie-modal button:hover,
.cookie-modal button:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* -----------------------------------
   RESPONSIVE & FLEXBOX LAYOUTS
----------------------------------- */
@media (max-width: 1200px) {
  .container {
    padding: 0 14px;
  }
}
@media (max-width: 960px) {
  header .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .section, section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .container {
    max-width: 100vw;
    padding: 0 7px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .text-image-section { flex-direction: column; gap: 18px; }
  .card-container { gap: 12px; }
  .content-grid { gap: 10px; }
  .footer nav, footer .container { gap: 11px; }
}
@media (max-width: 540px) {
  html {
    font-size: 14px;
  }
  header img {
    height: 36px;
    margin-right: 16px;
  }
  .btn-primary, .cookie-banner button { padding: 10px 14px; font-size: 0.98rem; }
  .mobile-nav { margin-left: 16px; margin-top: 24px; }
  .cookie-banner { flex-direction: column; gap: 12px; align-items: flex-start; padding: 14px 7px; }
}

/* -----------------------------------
   MICRO-INTERACTIONS & ANIMATIONS
----------------------------------- */
.btn-primary, .cookie-banner button, .cookie-modal button {
  transition: background 0.2s, color 0.13s, box-shadow 0.18s, border 0.11s;
}

/* Interactive focus/hover states for accessibility */
a, button, .btn-primary, .cookie-banner button, .cookie-modal button {
  outline: none;
}
a:focus, .btn-primary:focus,
.cookie-banner button:focus, .cookie-modal button:focus {
  box-shadow: 0 0 0 2px var(--color-secondary), 0 2px 8px var(--color-shadow);
}

/* -----------------------------------
   FORMS (for potential future expansion)
----------------------------------- */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
  border-radius: 5px;
  padding: 9px 11px;
  margin-bottom: 14px;
  background: var(--color-light);
  transition: border 0.18s;
  box-shadow: 0 1px 3px rgba(27,50,92,0.07);
}
input:focus, select:focus, textarea:focus {
  border: 1.5px solid var(--color-primary);
  background: var(--color-accent);
}

label {
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 4px;
  color: var(--color-primary);
  font-weight: 600;
}

/* -----------------------------------
   VISUAL HIERARCHY / SHADOWS / BORDERS
----------------------------------- */
.card, .testimonial-card, .cookie-modal {
  box-shadow: 0 2px 8px var(--color-shadow);
  border-radius: 9px;
}

/* -----------------------------------
   ENSURE NO OVERLAPPING & MINIMUM SPACING
----------------------------------- */
.card,
.testimonial-card,
.section,
section,
.content-wrapper,
.content-grid,
.card-container,
.card-content,
.text-image-section,
.feature-item {
  margin-bottom: 20px;
}

/* Extra whitespace between main sections */
main section:not(:last-of-type) {
  margin-bottom: 60px;
}

/* Preventing any absolute positioning for content containers (except overlays/modals) */

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

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