/* -----------------------------
   CSS RESET & BASIC 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FEFDF7;
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* -----------------------------
   FONT IMPORTS
------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

/* -----------------------------
   BRAND COLORS & CUSTOM PROPERTIES
------------------------------ */
:root {
  --color-primary: #345995;
  --color-secondary: #18A999;
  --color-accent: #FEFDF7;
  --color-yellow: #FFE04B;
  --color-orange: #FFB653;
  --color-red: #FF668D;
  --color-blue: #345995;
  --color-teal: #18A999;
  --color-grey: #F3F4F8;
  --color-shadow: rgba(52, 89, 149, 0.08);
  --color-shadow-bold: rgba(52, 89, 149, 0.18);
  --border-radius: 18px;
  --box-shadow: 0 4px 24px var(--color-shadow);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* -----------------------------
   LAYOUT & GENERAL STRUCTURE
------------------------------ */
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-accent);
  color: #262626;
}
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========== HEADER =========== */
header {
  background: #fff;
  box-shadow: 0 3px 12px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 140;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 20px;
  max-width: 100%;
}
header img {
  height: 44px;
}
header nav {
  display: flex;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 10px;
  border-radius: 10px;
  transition: background .18s, color .18s;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  background: none;
}
header nav a:hover, header nav a:focus {
  background: var(--color-yellow);
  color: var(--color-blue);
}

/* CTA Button */
.cta-button {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  background: var(--color-secondary);
  color: #fff;
  padding: 10px 28px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--color-shadow);
  border: none;
  outline: none;
  transition: transform .13s, box-shadow .3s, background .18s;
  cursor: pointer;
  margin-left: 8px;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}
.cta-button:after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-yellow);
  opacity: 0;
  transition: opacity .2s;
  z-index: 1;
  border-radius: var(--border-radius);
}
.cta-button:hover:after, .cta-button:focus:after {
  opacity: 0.08;
}
.cta-button:hover, .cta-button:focus {
  transform: translateY(-2px) scale(1.03) rotate(-2deg);
  background: var(--color-blue);
  color: #fff;
  box-shadow: 0 6px 20px var(--color-shadow-bold);
}

/* =========== MOBILE MENU =========== */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-yellow);
  color: var(--color-blue);
  border: none;
  border-radius: 50%;
  font-size: 30px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  margin-left: 8px;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background .15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-orange);
  color: var(--color-primary);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,56,94,0.93);
  color: #fff;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.6, .2, .25, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-yellow);
  color: var(--color-blue);
  font-size: 32px;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: 18px 18px 0 0;
  box-shadow: 0 4px 12px var(--color-shadow);
  cursor: pointer;
  transition: background .18s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-red);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  margin-top: 32px;
  gap: 16px;
}
.mobile-nav a {
  font-size: 24px;
  font-family: var(--font-display);
  color: #fff;
  padding: 16px 0;
  width: 80%;
  text-align: center;
  border-radius: 12px;
  transition: background .2s, color .2s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-yellow);
  color: var(--color-blue);
}

@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}
@media (max-width: 1023px) {
  header nav, header .cta-button {
    display: none !important;
  }
}

/* =========== MAIN & FLEX SECTIONS =========== */
main {
  margin-top: 0;
  background: var(--color-accent);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* =========== GRID & CARD FLEX LAYOUTS =========== */
.card-container, .content-grid, .features, .card-grid, .grid-services {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background: #fff;
  transition: box-shadow .18s, transform .21s;
  padding: 32px;
  min-width: 260px;
  flex: 1 1 320px;
  max-width: calc(50% - 14px);
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px var(--color-shadow-bold);
  transform: translateY(-4px) scale(1.04) rotate(-2deg);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* Services Listing */
.grid-services {
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.grid-services > div {
  background: #fff;
  box-shadow: 0 3px 16px var(--color-shadow);
  border-radius: var(--border-radius);
  padding: 28px 18px 22px 18px;
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 320px;
  max-width: calc(33% - 18px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 3px solid var(--color-yellow);
  position: relative;
  z-index: 1;
  transition: box-shadow .17s, transform .16s, border-color .16s;
  overflow: hidden;
}
.grid-services > div:hover, .grid-services > div:focus-within {
  box-shadow: 0 8px 32px var(--color-shadow-bold);
  border-color: var(--color-secondary);
  transform: scale(1.03) rotate(-1.5deg);
}
.grid-services h3 {
  font-family: var(--font-display);
  color: var(--color-blue);
  font-size: 20px;
  line-height: 1.3;
}
.grid-services span {
  font-weight: 700;
  color: var(--color-red);
  font-size: 16px;
}
.grid-services a {
  align-self: flex-start;
  margin-top: 6px;
  background: var(--color-yellow);
  color: var(--color-blue);
  padding: 6px 18px;
  border-radius: 11px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  transition: background .2s, color .2s, box-shadow .18s;
}
.grid-services a:hover, .grid-services a:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 22px var(--color-shadow-bold);
}

/* --------- TESTIMONIAL CARDS ---------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 34px 16px 26px;
  margin-bottom: 20px;
  background: #fffce7;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--color-shadow);
  position: relative;
  min-height: 96px;
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 18px;
  color: #222;
  margin-bottom: 6px;
  quotes: "\201C" "\201D";
}
.testimonial-card blockquote::before {
  content: '“';
  color: var(--color-yellow);
  font-size: 40px;
  margin-right: 6px;
  vertical-align: top;
}
.testimonial-card span {
  font-size: 16px;
  color: var(--color-blue);
  font-weight: 600;
  font-family: var(--font-display);
}

/* ---------- FEATURE LIST ---------- */
ul {
  margin: 0 0 12px 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  color: var(--color-primary);
  font-family: var(--font-body);
  background: transparent;
  font-weight: 500;
}
ul li img {
  height: 28px;
  width: 28px;
  background: var(--color-yellow);
  border-radius: 50%;
  box-shadow: 0 2px 6px var(--color-shadow);
  padding: 5px;
}

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

/* FAQ and Other Lists */
.text-section ul li {
  color: var(--color-secondary);
}
.text-section ul li strong {
  color: var(--color-primary);
}
.text-section ul {
  margin-bottom: 20px;
}
/* Links in help sections */
.text-section a {
  color: var(--color-red);
  font-weight: 700;
  text-decoration: underline;
  font-family: var(--font-display);
  transition: color .18s;
}
.text-section a:hover, .text-section a:focus {
  color: var(--color-blue);
}

/* ----- MAP PLACEHOLDER ----- */
.map-placeholder {
  border: 2px dashed var(--color-yellow);
  border-radius: 14px;
  padding: 32px 0;
  text-align: center;
  color: var(--color-primary);
  font-size: 16px;
  margin-top: 16px;
  background: #fff;
}

/* -----------------------------
   TYPOGRAPHY
------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.13;
}
h1 {
  color: var(--color-primary);
  font-size: 38px;
  margin-bottom: 8px;
  letter-spacing: .01em;
}
h2 {
  color: var(--color-secondary);
  font-size: 28px;
  margin-bottom: 4px;
  font-weight: 900;
}
h3 {
  color: var(--color-blue);
  font-size: 22px;
  margin-bottom: 2px;
}
h4, h5, h6 {
  color: var(--color-red);
  font-size: 19px;
}
p, .text-section p, .content-wrapper p {
  font-family: var(--font-body);
  color: #222;
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 8px;
}
strong {
  color: var(--color-secondary);
  font-weight: 700;
}

/* -----------------------------
   FOOTER
------------------------------ */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 40px 0 28px 0;
  font-size: 16px;
  min-height: 100px;
  box-shadow: 0 -3px 8px var(--color-shadow);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--color-yellow);
  font-family: var(--font-display);
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-yellow);
  color: var(--color-blue);
}
footer p {
  margin: 0;
  color: #fff;
}

/* -----------------------------
   COOKIE CONSENT BANNER & MODAL
------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fffceb;
  color: #262626;
  border-top: 3.5px solid var(--color-yellow);
  box-shadow: 0 -6px 18px var(--color-shadow);
  padding: 18px 30px 18px 20px;
  z-index: 4000;
  display: flex;
  align-items: flex-start;
  gap: 26px;
  flex-wrap: wrap;
  min-height: 76px;
  animation: slideUp .8s cubic-bezier(.45,1,.35,1);
  font-size: 17px;
}
@keyframes slideUp {
  from { transform: translateY(90px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border: none;
  padding: 8px 26px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 16px;
  cursor: pointer;
  transition: background .17s, box-shadow .2s, color .14s;
  font-weight: 700;
  margin-top: 0;
}
.cookie-banner .accept {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 1px 5px var(--color-shadow);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--color-blue);
}
.cookie-banner .reject {
  background: var(--color-red);
  color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #e12345;
}
.cookie-banner .settings {
  background: #fff;
  color: var(--color-blue);
  border: 2px solid var(--color-yellow);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--color-yellow);
  color: var(--color-primary);
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(52,89,149,0.16);
  z-index: 4050;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .23s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  max-width: 420px;
  width: 92vw;
  box-shadow: 0 8px 36px var(--color-shadow-bold);
  padding: 32px 30px 27px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: popIn .24s cubic-bezier(.32,1.53,0.37,.77);
}
@keyframes popIn {
  from { transform: scale(.75); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 26px;
  color: var(--color-primary);
  font-weight: 900;
}
.cookie-modal .cookie-category {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-grey);
}
.cookie-modal .cookie-category:last-child {
  border: none;
}
.cookie-modal label {
  font-weight: 700;
  color: var(--color-blue);
  font-family: var(--font-display);
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 24px;
  height: 24px;
}
.cookie-modal .modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 30px;
  border: none;
  background: none;
  color: var(--color-secondary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: background .16s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: var(--color-grey);
}

/* -----------------------------
   RESPONSIVE STYLES
------------------------------ */
@media (max-width: 950px) {
  .container {
    max-width: 900px;
  }
  .grid-services > div, .card {
    max-width: 100%;
    min-width: 220px;
  }
  .content-wrapper {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  header .container {
    padding: 10px 10px;
    gap: 11px;
  }
  h1 {
    font-size: 28px;
    margin-bottom: 7px;
  }
  h2 {
    font-size: 21px;
    margin-bottom: 2px;
  }
  h3 {
    font-size: 17px;
    margin-bottom: 1px;
  }
  .cta-button {
    font-size: 16px;
    padding: 12px 18px;
    border-radius: 12px;
    min-width: 160px;
  }
  .section {
    margin-bottom: 40px;
    padding: 28px 7px;
  }
  .content-wrapper {
    gap: 9px;
  }
  .testimonial-card {
    padding: 14px 8px 11px 12px;
    min-height: 70px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .grid-services {
    gap: 14px;
  }
  .grid-services > div {
    padding: 19px 10px;
    max-width: 100%;
    min-width: 0;
  }
  .card {
    padding: 18px 7px;
    min-width: 0;
  }
  .footer .container {
    gap: 11px;
  }
}
@media (max-width: 480px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 10px 6px;
  }
  ul li img {
    height: 21px;
    width: 21px;
  }
  .grid-services > div {
    padding: 14px 4px 11px 4px;
  }
  .cookie-modal {
    padding: 18px 6px;
    max-width: 99vw;
  }
}

/* =========== ANIMATIONS & MICRO-INTERACTIONS =========== */
.card, .grid-services > div, .testimonial-card, .cta-button, .cookie-banner, .mobile-menu {
  transition: box-shadow .22s, transform .18s, background .16s, border-color .16s, color .2s;
}

.cta-button {
  animation: floatCta 2.6s infinite cubic-bezier(.5,0,.5,1) alternate;
}
@keyframes floatCta {
  0% { box-shadow: 0 2px 8px var(--color-shadow); }
  100% { box-shadow: 0 8px 18px var(--color-shadow-bold); }
}

.card, .grid-services > div {
  animation: cardPopIn .6s cubic-bezier(.25,1.26,.4,.99);
}
@keyframes cardPopIn {
  0% { opacity: 0; transform: translateY(40px) scale(.95); }
  80% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.testimonial-card {
  animation: cardFadeIn .8s cubic-bezier(.42,0,.58,1);
}
@keyframes cardFadeIn {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.mobile-menu.open {
  animation: mobileSlideIn .35s cubic-bezier(.6, .2, .25, 1);
}
@keyframes mobileSlideIn {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

/* Hide scrollbars on mobile menu */
.mobile-menu {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

/* =========== UTILITY CLASSES FOR SPACING =========== */
.mt-8 { margin-top: 8px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* =========== ADDITIONAL: FOCUS VISIBLE =========== */
:focus-visible {
  outline: 2.5px solid var(--color-yellow);
  outline-offset: 2.5px;
  z-index: 5;
}

/* =========== PRINT =========== */
@media print {
  header, footer, .cookie-banner, .cookie-modal, .mobile-menu {
    display: none !important;
  }
  body {
    background: #fff;
    color: #222;
  }
}
section {
  padding: 15px;
}