/* ================== 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FAFAFA;
  color: #222;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  padding-left: 20px;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #31536A;
  outline-offset: 2px;
}

/* =============== BRAND VARIABLES =============== */
:root {
  --primary: #31536A;
  --secondary: #E9C46A;
  --accent: #FAFAFA;
  --danger: #DB504A;
  --body: #252829;
  --white: #fff;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ================ TYPOGRAPHY =================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.01em;
  line-height: 1.1;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

p, ul, li, span, label, a, input, select, button {
  font-family: var(--font-body);
}
p {
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: var(--body);
}
strong {
  font-weight: 700;
  color: var(--primary);
}
ul li {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* =========== CONTAINER & SECTIONS ============== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(31,60,85,0.07);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Flex spacing and special flex containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(49,83,106, 0.11);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 24px;
  min-width: 260px;
  transition: box-shadow 0.25s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(49,83,106, 0.17);
  transform: translateY(-6px) scale(1.025);
}
.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;
  margin-bottom: 20px;
  background: var(--accent);
  border-left: 8px solid var(--secondary);
  box-shadow: 0 2px 12px rgba(31,83,106,0.07);
  border-radius: 18px;
  flex-direction: column;
  position: relative;
}
.testimonial-card p {
  color: #1a2533;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.testimonial-card span {
  font-size: 0.99rem;
  color: #3A5251;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin: 20px 0;
}
.icon-row img {
  width: 32px; height: 32px;
  margin-right: 8px;
  filter: drop-shadow(0 1px 0 #31536A11);
}
.icon-row span {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary);
  margin-right: 16px;
  font-size: 1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.contact-details img {
  width: 22px; height: 22px; vertical-align: middle; margin-right: 8px;
}

/************ HEADER & NAVIGATION ************/
header {
  background: var(--primary);
  box-shadow: 0 4px 18px rgba(49,83,106, 0.08);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
header a img {
  height: 44px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  transition: color 0.2s, background 0.2s;
  position: relative;
  padding: 8px 11px;
  border-radius: 8px;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cta-button {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.09rem;
  letter-spacing: 0.01em;
  padding: 10px 28px;
  border-radius: 48px;
  margin-left: 34px;
  box-shadow: 0 5px 22px rgba(233, 196, 106, 0.17);
  transition: background 0.17s, color 0.17s, box-shadow 0.23s, transform 0.13s;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 9px 32px rgba(49,83,106,0.15);
  transform: translateY(-3px) scale(1.02);
}
.cta-link {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.cta-link:hover, .cta-link:focus {
  color: var(--secondary);
  text-decoration-color: var(--primary);
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.0rem;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  padding: 8px 16px;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s, box-shadow 0.12s;
  margin-left: 18px;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  box-shadow: 0 0 0 2px var(--primary) inset;
}

/************ MOBILE MENU ************/
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  z-index: 2500;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.7,.3,0,1);
  box-shadow: 16px 0 32px rgba(49,83,106, 0.28);
  padding: 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  border: none;
  color: var(--primary);
  font-size: 2rem;
  align-self: flex-end;
  border-radius: 10px;
  padding: 6px 16px;
  margin-bottom: 20px;
  margin-top: 6px;
  cursor: pointer;
  transition: background 0.16s;
}
.mobile-menu-close:hover {
  background: var(--primary);
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: flex-start;
  margin-top: 20px;
}
.mobile-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  padding: 13px 10px;
  width: 100%;
  border-radius: 7px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/********** COOKIES CONSENT BANNER BOTTOM **********/
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  color: var(--accent);
  padding: 18px 24px;
  box-shadow: 0 -6px 32px rgba(49,83,106,0.12);
  font-size: 1rem;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, bottom 0.4s;
}
.cookie-consent-banner.active {
  opacity: 1;
  pointer-events: auto;
  bottom: 0;
}
.cookie-consent-text {
  flex: 1 1 70%;
  font-size: 1.03rem;
  margin-right: 18px;
}
.cookie-consent-actions {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 800;
  border-radius: 10px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 2px 10px #E9C46A55;
}
.cookie-btn.reject {
  background: var(--danger);
  color: var(--white);
}
.cookie-btn.reject:hover {
  background: #ba3730;
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.settings:hover {
  background: var(--secondary);
}

/*********** COOKIE MODAL ***********/
.cookie-modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 4000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44, 60, 75, 0.58);
  transition: opacity 0.4s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--accent);
  border-radius: 22px;
  padding: 32px 22px;
  box-shadow: 0 18px 48px rgba(49,83,106, 0.22);
  max-width: 400px;
  width: 90vw;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  animation: modal-in 0.4s cubic-bezier(.42,.13,.09,.94);
}
@keyframes modal-in {
  0% { transform: scale(0.97) translateY(48px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.32rem;
  color: var(--primary);
  margin-bottom: 10px;
  text-align: center;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e9e9e9;
  font-size: 1rem;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-toggle {
  width: 48px; height: 26px;
  background: #ddd;
  border-radius: 18px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-toggle[data-checked='true'] {
  background: var(--secondary);
}
.cookie-toggle-inner {
  position: absolute;
  left: 3px; top: 3px;
  width: 20px; height: 20px;
  background: var(--primary);
  border-radius: 50%;
  transition: left 0.18s, background 0.18s;
}
.cookie-toggle[data-checked='true'] .cookie-toggle-inner {
  left: 25px;
  background: var(--primary);
}
.cookie-toggle[aria-disabled='true'], 
.cookie-toggle[aria-disabled='true'] .cookie-toggle-inner {
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-close-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  position: absolute;
  top: 19px; right: 32px;
  cursor: pointer;
}

/********* MAIN CONTENT *********/
main {
  margin-bottom: 80px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 22px;
  background: var(--accent);
  box-shadow: 0 4px 18px rgba(49,83,106,.07);
}
section h2 {
  margin-top: 0;
}

/********** FOOTER ************/
footer {
  background: var(--primary);
  color: var(--accent);
  font-size: 1rem;
  padding-top: 38px;
  position: relative;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 18px;
}
.footer-top > * {
  flex: 1 1 180px;
}
.footer-top a img {
  height: 40px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border-radius: 7px;
  padding: 6px 0;
  transition: color 0.12s, background 0.12s;
}
.footer-nav a:hover {
  color: var(--primary);
  background: var(--secondary);
}
.footer-contact p {
  color: var(--accent);
  font-size: 0.97rem;
  margin-bottom: 0;
}
.footer-social {
  display: flex;
  gap: 13px;
  align-items: center;
}
.footer-social img {
  width: 36px; height: 36px;
  border-radius: 8px;
  transition: filter 0.13s, transform 0.13s;
}
.footer-social img:hover {
  filter: brightness(1.25) drop-shadow(0 2px 8px var(--secondary));
  transform: scale(1.09) rotate(-7deg);
}
.footer-bottom {
  border-top: 1px solid #E9C46A22;
  padding: 14px 0 8px 0;
  text-align: center;
  color: var(--secondary);
  font-size: 0.96rem;
}

/*********** UTILITY / GENERAL ************/
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.row-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.flex-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hidden {
  display: none !important;
}
@media (min-width: 768px) {
  .flex-row-md {
    flex-direction: row !important;
  }
}

/********* MEDIA QUERIES & RESPONSIVE ***********/
@media (max-width: 1024px) {
  .container {
    max-width: 920px;
  }
  .footer-bottom {
    font-size: 0.85rem;
  }
}
@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    gap: 20px;
  }
  header .container {
    flex-wrap: wrap;
    gap: 10px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.45rem;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .footer-top {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  section, .section {
    padding: 28px 7px;
    margin-bottom: 34px;
    border-radius: 13px;
  }
  .card {
    padding: 19px 10px;
    min-width: 180px;
    border-radius: 11px;
  }
  .content-wrapper {
    gap: 10px;
  }
  .testimonial-card {
    padding: 14px 10px;
    border-left-width: 6px;
    border-radius: 10px;
  }
  .contact-details {
    gap: 8px;
  }
  .icon-row {
    gap: 14px;
  }
  .icon-row img {
    width: 26px;
    height: 26px;
  }
}
@media (max-width: 480px) {
  .container {
    max-width: 100vw;
    padding: 0 3vw;
  }
  .footer-contact p {
    font-size: 0.86rem;
  }
  .footer-nav a {
    font-size: 0.98rem;
  }
  .cookie-modal {
    padding: 16px 6px;
    border-radius: 10px;
  }
  .cookie-modal h3 {
    font-size: 1.07rem;
  }
}
/* ================ ACCESSIBILITY ================ */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
  }
}
