/* ------------------------------------------------- */
/* 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, 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;
  background: transparent; box-sizing: border-box;
}
/* Set box-sizing */
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; border: 0; }
button, input, select, textarea { font: inherit; border: none; background: none; outline: none; }
table { border-collapse: collapse; border-spacing: 0; }

/* ------------------------------------------------- */
/* CSS VARIABLES (with Fallbacks) */
/* ------------------------------------------------- */
:root {
  --color-primary: #234159;
  --color-secondary: #8FBF4D;
  --color-accent: #F7EFF0;
  --color-link: #234159;
  --color-bg: #FFFDFC;
  --color-white: #fff;
  --color-black: #1d2329;
  --color-grey: #ececec;
  --color-warm: #FFE5D2;
  --color-warm-alt: #F6D19E;
  --color-warm-dark: #C46C37;
  --color-btn: #234159;
  --color-btn-hover: #8FBF4D;
  --color-btn-text: #fff;
  --color-shadow: rgba(60, 49, 42, 0.10);
  --radius-small: 10px;
  --radius-large: 24px;
  --radius-full: 999px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ------------------------------------------------- */
/* BASE TYPOGRAPHY & LAYOUT STYLES */
/* ------------------------------------------------- */
html {
  font-size: 100%;
  background: var(--color-bg);
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-primary);
  background: var(--color-bg);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.15;
}
h1 { font-size: 2.75rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }

p {
  margin-bottom: 18px;
  font-size: 1rem;
  color: var(--color-primary);
}
strong { color: var(--color-secondary); font-weight: 700; }

ul, ol {
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 12px;
  padding-left: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-primary);
}
a { color: var(--color-link); transition: color .2s; font-weight: 500; }
a:hover, a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
  outline: none;
}

/* ------------------------------------------------- */
/* CONTAINER & GLOBAL SPACING */
/* ------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.text-section {
  background: var(--color-accent);
  border-radius: var(--radius-large);
  padding: 32px 26px;
  box-shadow: 0 6px 30px var(--color-shadow);
  margin-bottom: 32px;
}
.text-section p, .text-section ul li, .text-section h3 {
  color: var(--color-primary);
}

/* Flex Containers (Mandatory Classes) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-large);
  box-shadow: 0 2.5px 12px var(--color-shadow);
  padding: 30px 28px;
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
}
.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-warm);
  border-radius: var(--radius-large);
  box-shadow: 0 2px 20px var(--color-shadow);
  margin-bottom: 20px;
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 580px;
  color: var(--color-black);
}
.testimonial-card p {
  color: var(--color-black);
  font-size: 1.08rem;
  margin-bottom: 3px;
}
.testimonial-card span {
  color: var(--color-primary);
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* List styling with icons */
ul li img {
  width: 28px; height: 28px; margin-right: 10px; vertical-align: middle; display: inline-block;
}
ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

/* ------------------------------------------------- */
/* HEADER, NAVIGATION & LOGO */
/* ------------------------------------------------- */
header {
  width: 100%;
  background: var(--color-accent);
  box-shadow: 0 3px 18px var(--color-shadow);
  position: sticky;
  top: 0; left: 0;
  z-index: 998;
  min-height: 68px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  gap: 0;
}

header img {
  height: 45px;
  width: auto;
}

.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-size: 1rem;
  color: var(--color-primary);
  padding: 6px 12px;
  border-radius: var(--radius-small);
  transition: background .18s, color .18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-white);
  background: var(--color-secondary);
}

.cta-button {
  display: inline-block;
  padding: 11px 36px;
  background: var(--color-btn);
  color: var(--color-btn-text);
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 18px var(--color-shadow);
  transition: background .22s, color .22s, transform .10s;
  letter-spacing: 0.03em;
  margin-left: 18px;
  cursor: pointer;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-btn-hover);
  color: var(--color-btn-text);
  transform: translateY(-2px) scale(1.025);
}

/* ------------------------------------------------- */
/* MOBILE MENU LAYOUT & ANIMATION */
/* ------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: 2rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 14px var(--color-shadow);
  cursor: pointer;
  position: absolute;
  right: 18px; top: 16px;
  z-index: 1005;
  transition: background .15s, color .15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-accent);
  box-shadow: 0 12px 36px var(--color-shadow);
  z-index: 1100;
  transform: translateX(-100vw);
  transition: transform .38s cubic-bezier(.7,.3,.37,1);
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: flex-start;
  padding: 40px 26px 32px 26px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  color: var(--color-primary);
  background: transparent;
  border: none;
  margin-bottom: 16px;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: background .1s;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  background: var(--color-white);
  padding: 16px 10px;
  border-radius: var(--radius-large);
  transition: background .19s, color .19s;
  margin-bottom: 4px;
  box-shadow: 0 2px 9px var(--color-shadow);
  letter-spacing: .01em;
}
.mobile-nav a:hover, .mobile-nav a:active, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* Hide main nav and show burger on mobile */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .cta-button { margin-left: 0; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 580px) {
  .mobile-menu { padding-left: 10px; padding-right: 10px; }
}

/* ------------------------------------------------- */
/* HERO & SECTIONS */
/* ------------------------------------------------- */
main section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
main h1, main h2 { color: var(--color-primary); }

/* Section backgrounds & Highlights */
section:nth-child(even) {
  background: var(--color-warm);
}
section:nth-child(odd) {
  background: var(--color-accent);
}
section {
  border-radius: 0 0 var(--radius-large) var(--radius-large);
  box-shadow: none;
}

/* Features, services, about blocks spacing */
main .content-wrapper {
  gap: 24px;
}

/* ------------------------------------------------- */
/* BUTTONS (including Cookie) */
/* ------------------------------------------------- */
button, input[type=submit] {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 11px 35px;
  border-radius: var(--radius-full);
  color: var(--color-btn-text);
  background: var(--color-primary);
  border: none;
  transition: background .20s, color .18s, box-shadow .15s;
  cursor: pointer;
  margin: 0 5px;
  box-shadow: 0 2px 16px var(--color-shadow);
}
button:hover, button:focus, input[type=submit]:hover, input[type=submit]:focus {
  background: var(--color-secondary);
}

/* ------------------------------------------------- */
/* TESTIMONIALS & CARDS */
/* ------------------------------------------------- */
.testimonial-card {
  transition: box-shadow .23s, transform .11s;
  cursor: pointer;
  border: 1.5px solid #FABD88;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 40px var(--color-shadow);
  transform: translateY(-5px) scale(1.02);
  border-color: var(--color-secondary);
}

.card {
  transition: box-shadow .17s, transform .12s;
}
.card:hover, .card:focus {
  box-shadow: 0 8.5px 34px var(--color-shadow);
  transform: scale(1.018);
  border-color: var(--color-secondary);
}

/* ------------------------------------------------- */
/* FOOTER */
/* ------------------------------------------------- */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0 0 24px 0;
  margin-top: 64px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px 18px 10px 18px;
}
.footer-links {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--color-white);
  font-weight: 500;
  border-radius: var(--radius-full);
  padding: 5px 14px;
  background: transparent;
  transition: background .16s, color .16s;
}
.footer-links a:hover, .footer-links a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.legal-information {
  flex: 1 1 250px;
  font-size: 0.98rem;
  color: var(--color-accent);
  margin: 7px 0 0 0;
  align-items: flex-end;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--color-accent);
  border-radius: 50%;
  transition: background .15s, transform .14s;
  border: 1.7px solid var(--color-secondary);
}
.footer-social a:hover {
  background: var(--color-secondary);
  border-color: var(--color-primary);
  transform: scale(1.08);
}
.footer-social img {
  width: 20px; height: 20px;
}

/* ------------------------------------------------- */
/* COOKIE CONSENT BANNER & MODAL */
/* ------------------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-warm);
  color: var(--color-primary);
  box-shadow: 0 -4px 20px var(--color-shadow);
  border-radius: var(--radius-large) var(--radius-large) 0 0;
  z-index: 1200;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  gap: 16px;
  font-size: 1.08rem;
  animation: cookieBannerIn .7s cubic-bezier(.76,.1,.26,1);
}
@keyframes cookieBannerIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner button {
  margin-left: 12px;
  padding: 10px 22px;
  box-shadow: 0 2px 13px var(--color-shadow);
  font-size: 1.03rem;
  font-family: var(--font-display);
}
.cookie-consent-banner .cookie-settings-btn {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  border: 1.6px solid var(--color-secondary);
  margin-left: 0;
  transition: background .14s, color .14s;
}
.cookie-consent-banner .cookie-settings-btn:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(35,65,89,0.22);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .2s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

.cookie-modal {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-large);
  box-shadow: 0 8px 48px var(--color-shadow);
  padding: 38px 34px 28px 34px;
  max-width: 420px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalIn .38s cubic-bezier(.75, .1, .25, 1);
  position: relative;
}
@keyframes modalIn {
  0% { transform: scale(.88); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.45rem; margin-bottom: 8px;
}
.cookie-modal label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 13px;
  font-size: 1.08rem;
  padding: 4px 0;
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--color-secondary);
  width: 18px; height: 18px;
}
.cookie-modal .cookie-modal-close {
  position: absolute; top: 15px; right: 18px;
  background: transparent;
  color: var(--color-primary);
  font-size: 1.7rem;
  border: none; cursor: pointer;
  border-radius: var(--radius-full);
  transition: background .12s;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus { background: var(--color-secondary); color: var(--color-white); }
.cookie-modal .cookie-modal-btns {
  display: flex; flex-direction: row; gap: 13px; margin-top: 20px;
}
.cookie-modal .cookie-category {
  font-size: 1.03rem;
  margin-bottom: 7px;
}

/* Cookie banner responsive */
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 12px;
    font-size: 0.98rem;
  }
  .cookie-consent-banner button { margin-left: 0; margin-right: 10px; margin-bottom: 8px; }
}

/* ------------------------------------------------- */
/* RESPONSIVE DESIGN */
/* ------------------------------------------------- */
@media (max-width: 980px) {
  .container {
    max-width: 97vw;
    padding: 0 9px;
  }
  header .container {
    padding: 14px 9px;
  }
  footer .container {
    padding: 25px 9px 10px 9px;
    gap: 18px;
  }
}
@media (max-width: 830px) {
  main h1 { font-size: 2.1rem; }
  main h2 { font-size: 1.38rem; }
}
@media (max-width: 768px) {
  .content-wrapper, .text-image-section, .content-grid, .card-container {
    flex-direction: column !important;
    align-items: stretch;
  }
  .text-image-section { flex-direction: column; gap: 24px; }
  .testimonials {
    flex-direction: column;
  }
  .testimonial-card {
    min-width: 180px;
    max-width: 100%;
    font-size: 0.98rem;
    padding: 16px 10px;
  }
  .card-container, .content-grid {
    gap: 14px;
  }
  .section { padding: 28px 5px; }
  main section { padding: 25px 0 0 0; }
}
@media (max-width: 580px) {
  .container, footer .container, header .container { padding: 0 2px; }
}

/* Extra section spacing for all content cards */
.content-wrapper > * {
  margin-bottom: 0;
}
.content-wrapper > .card, .content-wrapper > .testimonial-card {
  margin-bottom: 20px;
}

/* ------------------------------------------------- */
/* MISC SPACING, VISUAL HIERARCHY, INTERACTIONS */
/* ------------------------------------------------- */
.card, .testimonial-card, .text-section {
  box-shadow: 0 2px 24px var(--color-shadow);
}

.section, .card, .testimonial-card, .text-section {
  margin-bottom: 24px;
}

/* Prevent overlap: always margin between blocks */
section, .content-wrapper, .card, .testimonial-card, .feature-item, .text-image-section {
  margin-bottom: 20px;
}

/* Micro-interactions for links */
a:focus-visible {
  outline: 2.5px solid var(--color-secondary);
  border-radius: var(--radius-small);
}

/* Forms (if any) */
input, textarea {
  border-radius: var(--radius-small);
  border: 1.5px solid var(--color-grey);
  padding: 11px 13px;
  margin-bottom: 14px;
  width: 100%;
  font-size: 1rem;
  transition: border .17s, background .17s;
}
input:focus, textarea:focus {
  border:1.5px solid var(--color-secondary);
  background: #f9fff3;
}

/* ------------------------------------------------- */
/* FONT-FACE (webfonts loaded elsewhere) Fallbacks */
/* ------------------------------------------------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal; font-weight: 400; src: local('Montserrat');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal; font-weight: 400; src: local('Roboto');
}

/* ------------------------------------------------- */
/* ACCESSIBILITY & USABILITY */
/* ------------------------------------------------- */
::selection { background: var(--color-warm-alt); color: var(--color-primary); }
:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

/* ------------------------------------------------- */
/* HIDE UNNEEDED CLASSES ON MOBILE */
/* ------------------------------------------------- */
@media (max-width: 700px) {
  .footer-links { flex-direction: column; gap: 8px; }
}

/* END CSS */
