/* ============ 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.5;
  background: #F8FAFC;
  color: #1D2D44;
}
ul, ol {
  padding-left: 1.2em;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .18s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}
button, .button-primary, .button-secondary {
  cursor: pointer;
}

/* ============ FONTS ============ */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap');

html {
  font-size: 16px;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #1D2D44;
  background: #F8FAFC;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #1D2D44;
  letter-spacing: .01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.25;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol, address, span, li {
  font-size: 1rem;
  line-height: 1.7;
  color: #32425C;
}
strong {
  font-weight: 700;
}

/* ============ LAYOUT CONTAINERS & SPACING ============ */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(29,45,68,0.04);
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 40px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ============ HEADER & NAVIGATION ============ */
header {
  background: #fff;
  box-shadow: 0 1px 10px rgba(29,45,68,0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 301;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.logo img {
  height: 38px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: #1D2D44;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 0;
  transition: color 0.17s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #6C8AA2;
}
.button-primary {
  background: #1D2D44;
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 7px;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(29,45,68,0.06);
  transition: background 0.18s, box-shadow 0.18s;
  display: inline-block;
  text-align: center;
  margin-left: 20px;
}
.button-primary:hover, .button-primary:focus {
  background: #274472;
  box-shadow: 0 5px 22px 0 rgba(29,45,68, .13);
  color: #fff;
}
.button-secondary {
  background: #F7C400;
  color: #1D2D44;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 7px;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(29,45,68,0.05);
  margin: 24px 0 0 0;
  transition: background 0.19s, color 0.19s, box-shadow 0.18s;
  display: inline-block;
  text-align: center;
}
.button-secondary:hover, .button-secondary:focus {
  background: #1D2D44;
  color: #F7C400;
  box-shadow: 0 5px 22px 0 rgba(246,196,0, .11);
}
/* Burger/Toggle for mobile nav */
.mobile-menu-toggle {
  background: #1D2D44;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 600;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #6C8AA2;
  color: #fff;
}
/* ========== MOBILE NAVIGATION ========= */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(29,45,68, 0.92);
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.66,0,0.25,1);
  z-index: 999;
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  margin: 24px 24px 10px 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #F7C400;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 10px;
  width: 100%;
  padding-left: 40px;
  gap: 20px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  padding: 14px 0;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  transition: color 0.17s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #F7C400;
}
@media (max-width: 1024px) {
  .main-nav, .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ============ HERO SECTION ============ */
.hero {
  background: #1D2D44;
  color: #fff;
  padding: 70px 0 68px 0;
  margin-bottom: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 6px 30px rgba(29,45,68,.08);
}
.hero .container {
  justify-content: center;
  align-items: center;
  gap: 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 30px;
}
.hero h1, .hero h2, .hero h3 {
  color: #fff;
}
.hero p {
  color: #f1f3f7;
  font-size: 1.12rem;
  margin-bottom: 12px;
}
.hero .button-primary {
  background: #F7C400;
  color: #1D2D44;
  box-shadow: 0 3px 18px 0 rgba(247,196,0,0.14);
  margin-top: 8px;
}
.hero .button-primary:hover {
  background: #ffc801;
  color: #1D2D44;
}
@media (max-width: 768px) {
  .hero {
    padding: 36px 0 38px 0;
    border-radius: 0 0 10px 10px;
  }
  .hero .content-wrapper {
    gap: 18px;
  }
}

/* ============ FEATURE GRID, CARD CONTAINER ============ */
.feature-grid, .card-container, .content-grid, .services-list, .testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 18px;
  justify-content: flex-start;
}
.feature-grid > div, .services-list > div {
  background: #FAFBFD;
  border-radius: 10px;
  padding: 28px 20px 22px 20px;
  min-width: 230px;
  flex: 1 1 230px;
  box-shadow: 0 2px 10px 0 rgba(50,66,92,.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.17s;
}
.feature-grid > div:hover, .services-list > div:hover {
  box-shadow: 0 8px 32px 0 rgba(29,45,68,.07);
  transform: translateY(-2px) scale(1.02);
}
.feature-grid img {
  height: 38px;
  width: 38px;
}
.feature-grid h3, .services-list h3 {
  font-size: 1.15rem;
  color: #1D2D44;
  margin-bottom: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 992px) {
  .feature-grid > div, .services-list > div {
    flex: 1 1 100%;
    min-width: 80vw;
  }
  .feature-grid, .card-container, .content-grid, .services-list, .testimonial-cards {
    gap: 18px;
  }
}
@media (max-width: 700px) {
  .feature-grid > div, .services-list > div {
    padding: 20px 12px 14px 12px;
  }
}

/* ============== TESTIMONIAL CARDS ============== */
.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  margin-top: 18px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 30px 20px 30px;
  background: #F5F8FB;
  border-radius: 10px;
  min-width: 245px;
  flex: 1 1 240px;
  box-shadow: 0 2px 10px 0 rgba(29,45,68, .05);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.17s, transform 0.14s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 25px 0 rgba(29,45,68, .10);
  transform: translateY(-2px);
}
.testimonial-card p {
  color: #1D2D44;
  font-size: 1.047rem;
  line-height: 1.6;
}
.testimonial-card span {
  color: #6C8AA2;
  font-size: .98rem;
}
.rating-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1D2D44;
  font-size: 1.05rem;
  margin-top: 8px;
  font-weight: 600;
}
.rating-summary img {
  width: 23px;
  height: 23px;
  margin-right: 3px;
}

/* ============= SECTION CTA (CALL TO ACTION) ============= */
.cta {
  background: #6C8AA2;
  color: #fff;
  border-radius: 12px;
  margin-bottom: 60px;
  padding: 44px 20px;
  text-align: center;
  box-shadow: 0 2px 18px 0 rgba(108,138,162,0.07);
}
.cta h2, .cta h1 {
  color: #fff;
}
.cta .button-primary {
  background: #F7C400;
  color: #1D2D44;
  margin-top: 22px;
  margin-left: 0;
  box-shadow: 0 4px 16px 0 rgba(247,196,0,0.13);
}
.cta .button-primary:hover {
  background: #ffc801;
  color: #1D2D44;
}
@media (max-width: 700px) {
  .cta {
    padding: 24px 8px;
  }
}

/* =========== FOOTER =========== */
footer {
  background: #1D2D44;
  color: #fff;
  padding: 40px 0 30px 0;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -2px 12px 0 rgba(29,45,68,0.08);
  margin-top: 40px;
  letter-spacing: 0.01em;
}
footer .container {
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-direction: column;
}
.footer-nav a {
  color: #dbe9f6;
  font-size: .95rem;
  font-family: 'Roboto', sans-serif;
  margin-bottom: 6px;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F7C400;
}
address {
  font-style: normal;
  line-height: 1.7;
  color: #CCD6EA;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
  font-size: .97rem;
}
address img {
  width: 15px;
  height: 15px;
  margin-right: 7px;
  vertical-align: middle;
  display: inline-block;
}
address a {
  color: #F7C400;
  text-decoration: underline;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #dbe9f6;
  font-size: 1.07rem;
  font-family: 'Montserrat', sans-serif;
  margin-top: 12px;
}
.footer-brand img {
  width: 32px;
  height: 32px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
}
@media (max-width: 650px) {
  footer {
    padding: 16px 0 14px 0;
    border-radius: 8px 8px 0 0;
  }
  .footer-brand img {
    width: 22px;
    height: 22px;
  }
  .footer-brand {
    font-size: .95rem;
  }
}

/* =========== TEXT AND IMAGE SECTION =========== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* =========== CARD PATTERNS & FLEX LAYOUTS =========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(29,45,68,.04);
  padding: 24px 16px;
  flex: 1 1 245px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 8px 26px 0 rgba(29,45,68,.08);
  transform: translateY(-2px) scale(1.021);
}
/* More general content grid */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

/* ========== BUTTONS & LINKS ========== */
.button-primary, .button-secondary {
  transition: background 0.18s, color 0.18s, box-shadow 0.11s, transform .10s;
  user-select: none;
}
.button-primary:active, .button-secondary:active {
  transform: translateY(1px) scale(0.98);
}
.button-primary:focus, .button-secondary:focus {
  outline: 2px solid #F7C400;
  outline-offset: 2px;
}
a {
  transition: color 0.16s;
}
a:focus-visible {
  outline: 2px solid #F7C400;
  outline-offset: 2px;
}

/* ============ COOKIE CONSENT BANNER ============ */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1103;
  background: #fff;
  color: #1D2D44;
  box-shadow: 0 -2px 18px rgba(29,45,68,0.18);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  gap: 20px;
  min-height: 80px;
  font-size: 1.05rem;
  animation: slideUpCookie 0.6s cubic-bezier(0.62,0,0.23,1);
}
.cookie-consent-banner.fadeOut {
  animation: fadeDownCookie .43s linear forwards;
}
@keyframes slideUpCookie {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeDownCookie {
  from { opacity: 1; }
  to { opacity: 0; }
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  gap: 14px;
}
.cookie-consent-banner button {
  padding: 10px 23px;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: background 0.17s, color 0.17s, box-shadow 0.14s;
  margin: 0 2px;
}
.cookie-accept {
  background: #1D2D44;
  color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #274472;
  color: #fff;
}
.cookie-reject {
  background: #6C8AA2;
  color: #fff;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #F7C400;
  color: #1D2D44;
}
.cookie-settings {
  background: #F7C400;
  color: #1D2D44;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #1D2D44;
  color: #F7C400;
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 17px 8px;
    font-size: 0.99rem;
  }
  .cookie-consent-banner .cookie-btns {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1200;
  background: rgba(29,45,68,0.54);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: #1D2D44;
  border-radius: 12px;
  box-shadow: 0 6px 36px rgba(29,45,68,0.21);
  padding: 34px 32px 22px 32px;
  width: 95vw;
  max-width: 400px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: scaleFadeIn .3s cubic-bezier(0.63,.01,0.18,1.16);
  position: relative;
}
@keyframes scaleFadeIn {
  from { opacity: 0; transform: scale(.91); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-cat label {
  font-size: 1rem;
  color: #1D2D44;
  font-weight: 500;
}
.cookie-cat input[type='checkbox'] {
  accent-color: #6C8AA2;
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-cat.essential label {
  font-weight: 700;
  color: #1D2D44;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 11px;
  margin-top: 12px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 1.28rem;
  color: #6C8AA2;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal .close-modal:focus, .cookie-modal .close-modal:hover {
  color: #F7C400;
}


/* =========== MEDIA/RESPONSIVE =========== */
@media (max-width:990px) {
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.45rem;
  }
  .footer-brand {
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.14rem;
  }
  h3 {
    font-size: 1rem;
  }
  .feature-grid, .card-container, .content-grid, .services-list, .testimonial-cards {
    gap: 14px;
  }
  .hero .container {
    padding: 0 0;
  }
}
@media (max-width:500px) {
  .testimonial-card,
  .feature-grid > div,
  .services-list > div,
  .card {
    padding: 15px 7px 10px 10px;
    font-size: .92rem;
  }
}

/* =========== FORM ELEMENTS =========== */
input, textarea, select {
  padding: 10px 13px;
  border: 1px solid #B9C9DA;
  border-radius: 5px;
  font-size: 1rem;
  margin-bottom: 10px;
  background: #FAFBFD;
  transition: border 0.16s, box-shadow 0.14s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: #6C8AA2;
  box-shadow: 0 2px 10px 0 rgba(108,138,162,0.06);
  outline: none;
}
label {
  font-weight: 500;
  color: #233860;
}

/* =========== UTILITY CLASSES =========== */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.hide {
  display: none !important;
}
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.mb-20 { margin-bottom: 20px !important; }
.mt-32 { margin-top: 32px !important; }

/* Hide outline on mouse, show on keyboard */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #F7C400;
  outline-offset: 2px;
}


/* =========== SCROLLBARS (subtle, but visible) =========== */
::-webkit-scrollbar {
  width: 10px;
  background: #F8FAFC;
}
::-webkit-scrollbar-thumb {
  background: #dbe9f6;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6C8AA2;
}

/* =========== TRANSITIONS =========== */
*, *::before, *::after {
  box-sizing: inherit;
  transition-property: color, background, box-shadow, border, transform;
  transition-duration: 0.13s;
  transition-timing-function: cubic-bezier(.6,0,.42,1);
}

/* =========== PRINT =========== */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu {
    display: none !important;
  }
}
