/* --- 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 {
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: #fff;
  color: #133267;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: inherit;}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

:root {
  --primary: #133267;
  --secondary: #F0B71C;
  --accent: #FFFFFF;
  --gray-100: #f7f8fa;
  --gray-200: #e7e9ef;
  --gray-300: #c9ceda;
  --shadow-s: 0 2px 8px rgba(19,50,103,0.09);
  --shadow-m: 0 8px 24px rgba(19,50,103,0.11);
  --radius-s: 8px;
  --radius-m: 15px;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--accent);
  color: var(--primary);
  line-height: 1.7;
  min-height: 100vh;
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
h1 { font-size: 2.75rem; line-height: 1.1; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 700; }

@media (max-width: 880px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.05rem; }
}

b, strong { font-weight: 700; }

p, ul, ol, blockquote {
  font-size: 1rem;
  margin-bottom: 16px;
}

blockquote {
  border-left: 5px solid var(--secondary);
  padding-left: 14px;
  font-style: italic;
  color: #27466c;
  background: #fffbe6;
}

/*--- GLOBAL CONTAINER & WRAPPERS ---*/
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-right: 18px;
  padding-left: 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

/* =====================
   HEADER + NAVIGATION
====================== */
header {
  background: var(--primary);
  box-shadow: var(--shadow-s);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
}
header img {
  height: 44px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition);
}
nav a:hover, nav a:focus {
  color: var(--secondary);
}

.cta-button {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  border: none;
  border-radius: var(--radius-m);
  padding: 12px 34px;
  font-size: 1.08rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-s);
  letter-spacing: 0.03em;
}
.cta-button:hover,
.cta-button:focus {
  background: #ffd049;
  color: var(--primary);
  box-shadow: var(--shadow-m);
}

/*--- MOBILE NAVIGATION ---*/
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-size: 2.2rem;
  padding: 6px 11px;
  border-radius: 7px;
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 110;
  transition: background var(--transition);
  box-shadow: var(--shadow-s);
  cursor: pointer;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #ffe087;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(19,50,103,0.98);
  z-index: 1300;
  transform: translateX(-110%);
  transition: transform 350ms cubic-bezier(0.68,0,0.27,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 30px 0 18px 25px;
  background: none;
  color: var(--secondary);
  font-size: 2.1rem;
  border: none;
  cursor: pointer;
  z-index: 1400;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-left: 38px;
  margin-top: 19px;
}
.mobile-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: 0.03em;
  padding: 12px 0;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  width: fit-content;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width:900px) {
  header .container nav, header .container .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  .mobile-nav a {
    font-size: 1.08rem;
    padding: 10px 0;
  }
  .mobile-menu-close {
    margin-left: 14px;
  }
}

/* =====================
        HERO
======================= */
.hero {
  background: linear-gradient(120deg, var(--primary) 75%, var(--secondary) 110%);
  color: var(--accent);
  padding: 60px 0 50px 0;
  margin-bottom: 30px;
  position: relative;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 40px 32px;
  max-width: 600px;
  margin: 0 auto;
}
.hero h1,
.hero p {
  color: var(--accent);
}
.hero .cta-button {
  background: var(--accent);
  color: var(--primary);
  font-size: 1.13rem;
  font-weight: 900;
}
.hero .cta-button:hover {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width:700px){
  .hero .content-wrapper {
    padding: 28px 14px;
  }
}

/* ============================
     STRUCTURED FLEX GRIDS
============================= */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 26px 0 0 0;
}
.features-grid > div {
  background: var(--gray-100);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 26px 20px 22px 20px;
  flex: 1 1 210px;
  min-width: 220px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  border: 2.5px solid var(--primary);
  transition: transform var(--transition), box-shadow var(--transition);
}
.features-grid > div:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-m);
  z-index: 2;
}
.features-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
  filter: drop-shadow(0 3px 0 var(--secondary));
}
.features-grid h3 {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 7px;
}

@media (max-width:768px) {
  .features-grid {
    flex-direction: column;
    gap: 20px;
  }
  .features-grid > div {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--accent);
  box-shadow: var(--shadow-s);
  border-radius: var(--radius-m);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  padding: 27px 20px;
  border: 1.5px solid var(--gray-300);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-7px) scale(1.015);
  z-index: 2;
}

.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: 22px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #f8faff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  border: 1.5px solid var(--primary);
  position: relative;
  color: #173462;
  transition: box-shadow var(--transition), background var(--transition);
}
.testimonial-card img {
  width: 30px;
  height: 30px;
  align-self: flex-start;
}
.testimonial-card blockquote {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.testimonial-card b {
  color: var(--secondary);
  font-size: 1.04rem;
}
.testimonial-card:hover {
  background: #fffbe5;
  box-shadow: var(--shadow-m);
}

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

.text-section {
  margin-top: 15px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.text-section ul li {
  margin-bottom: 7px;
}

.faq-accordion h2 {
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0px;
  margin-top: 11px;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-accordion h2:hover {
  color: var(--secondary);
}
.faq-accordion p {
  padding-left: 10px;
  border-left: 3px solid var(--secondary);
  margin-bottom: 14px;
}

/* =====================
        MAP PLACEHOLDER
====================== */
.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  background: var(--gray-200);
  border-radius: var(--radius-m);
  margin: 20px 0 10px 0;
}
.map-placeholder img {
  width: 58px;
  height: 58px;
}

/* =====================
 FOOTER
====================== */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 45px 0 10px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.footer-logo img {
  height: 42px;
  margin-bottom: 6px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
footer nav a {
  color: var(--secondary);
  font-size: 0.96rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: color var(--transition);
}
footer nav a:hover {
  color: #ffd049;
}
.footer-contact {
  color: #e7e9ef;
  font-size: 0.97rem;
}
.footer-copy {
  color: #b3bedc;
  font-size: 0.9rem;
  margin-top: 7px;
}

/* =====================
      BUTTONS & LINKS
====================== */
button, input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
button:focus-visible, .cta-button:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2px;
}
input, textarea {
  border-radius: var(--radius-s);
  border: 1.5px solid var(--gray-300);
  padding: 10px 12px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}

/* =====================
  RESPONSIVE LAYOUTS
====================== */
@media (max-width: 990px) {
  .container {
    max-width: 99vw;
    padding-left: 7px; padding-right: 7px;
  }
}
@media (max-width: 700px) {
  .section {
    padding: 20px 6px;
    margin-bottom: 38px;
  }
  .footer-logo img {
    height: 38px;
  }
  footer {
    padding: 18px 0 7px 0;
    margin-top: 34px;
  }
  .map-placeholder {
    min-height: 110px;
  }
}

/* ===============
 COOKIE BANNER
================= */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 18px 16px 18px;
  z-index: 3000;
  box-shadow: 0 -4px 18px rgba(19,50,103,0.13);
  gap: 18px;
}
.cookie-consent-banner p {
  font-size: 1rem;
  color: var(--accent);
  margin: 0 24px 0 0;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.5;
  flex: 1 1 auto;
}
.cookie-buttons {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  background: var(--secondary);
  color: var(--primary);
  padding: 9px 23px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-m);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #ffd049;
  color: var(--primary);
}
.cookie-btn.cookie-settings {
  background: var(--gray-200);
  color: var(--primary);
}
.cookie-btn.cookie-settings:hover {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width: 650px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 8px 14px 8px;
    gap: 7px;
  }
  .cookie-buttons { gap: 8px; }
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0; right:0; bottom:0; top:0;
  background: rgba(19,50,103,0.78);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--transition);
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  padding: 44px 32px 34px 32px;
  max-width: 410px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal-content h3 {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.32rem;
  font-weight: 900;
  margin-bottom: 9px;
}
.cookie-modal-content ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
}
.cookie-category .switch {
  height: 26px; width: 46px;
  background: var(--gray-300);
  border-radius: 13px;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition);
  cursor: pointer;
}
.cookie-category .switch input {
  opacity: 0; width: 0; height: 0;
}
.cookie-category .slider {
  position: absolute;
  left: 3px; top: 3px;
  height: 20px; width: 20px;
  background: var(--gray-100);
  border-radius: 50%;
  transition: transform 200ms var(--transition), background var(--transition);
  box-shadow: var(--shadow-s);
}
.cookie-category input:checked + .slider {
  transform: translateX(20px);
  background: var(--secondary);
}
.cookie-category[aria-disabled="true"] {
  opacity: 0.65;
  pointer-events: none;
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 17px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.45rem;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .cookie-modal-content {
    padding: 22px 7px 20px 7px;
    max-width:97vw;
  }
}

/* ================
   MICRO-ANIMATIONS
================== */
.cta-button,
.card,
.features-grid > div,
.testimonial-card,
.cookie-consent-banner,
.cookie-btn,
.button,
.card:hover {
  transition: box-shadow var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.features-grid > div:hover,
.card:hover,
.testimonial-card:hover {
  box-shadow: 0 10px 30px 0 rgba(19,50,103,0.16), var(--shadow-m);
  transform: translateY(-6px) scale(1.02);
}

/* --- Clear focus on mouse but retain for keyboard --- */
:focus:not(:focus-visible) {
  outline: none;
}

/* ===============
 UTILITIES
================ */
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.gap-20 { gap: 20px; }

/* ==================
  GEOMETRIC DECOR
=================== */
.hero::before {
  content: "";
  position: absolute;
  left: 0%;
  top: 0;
  width: 170px;
  height: 170px;
  background:rgba(240,183,28,0.18);
  clip-path: polygon(45% 0, 100% 35%, 60% 100%, 0 65%);
  z-index: 1;
}
.hero .content-wrapper {
  position: relative;
  z-index: 2;
}
.features-grid > div::after {
  content: "";
  display: block;
  width: 41px;
  height: 6px;
  margin-top: 7px;
  background: var(--secondary);
  border-radius: 5px;
}
/* --- Geometric underlines for all h2's --- */
h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 6px;
  background: var(--secondary);
  border-radius: 7px;
  margin: 8px 0 5px 0;
}
h1::after { display: none; }

/* =========================
  MISCELLANEOUS / CLEANUP
 ========================= */

ul, ol {
  margin-bottom: 16px;
  padding-left: 20px;
  color: var(--primary);
}
li {
  margin-bottom: 7px;
  padding-left: 4px;
}
a {
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--secondary);
}

/* No ugly outlines on click, only on keyboard */
:focus { outline: none; }
:focus-visible { outline: 2.5px dashed var(--secondary); outline-offset: 2px; }

/* ================
 PRINT SUPPORT
================== */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal { display: none !important; }
  .container { max-width: 100vw; padding: 0; }
}
