/* ====================
   CSS RESET & BASELINE
==================== */
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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F2F5F7;
  color: #183153;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ====================
      TYPOGRAPHY
==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #183153;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 500;
}
p, ul, ol {
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 1.3em;
}
strong, b {
  font-weight: 700;
}
a {
  color: #183153;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFC145;
  outline: none;
}

/* ====================
      LAYOUT & CONTAINER
==================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(24,49,83,0.05);
}
main > section:not(:last-child) {
  margin-bottom: 60px;
}
/* For Hero without heavy background */
.hero {
  background: #F2F5F7;
  padding: 60px 0 40px 0;
  display: flex;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
}

/* ====================
      HEADER & NAVIGATION
==================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(24,49,83,0.04);
  position: sticky;
  top: 0;
  z-index: 1010;
}
header .container {
  padding: 0 20px;
}
header .content-wrapper {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  min-height: 74px;
}
header img {
  max-height: 40px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #183153;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a:focus {
  background: #F2F5F7;
  color: #183153;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #183153;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 24px;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(24,49,83,0.08);
  letter-spacing: 0.03em;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.1s;
  text-align: center;
  margin-left: 16px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFC145;
  color: #183153;
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 4px 16px rgba(24,49,83,0.13);
}

/* ==============
  MOBILE NAVIGATION
================*/
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #183153;
  padding: 6px 14px;
  border-radius: 12px;
  margin-left: 18px;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 1012;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F2F5F7;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(24,49,83,0.96);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.86, 0, .07, 1);
  z-index: 1110;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  margin: 26px 32px 24px 0;
  font-size: 2rem;
  background: none;
  color: #fff;
  border: none;
  padding: 6px 18px;
  border-radius: 14px;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFC145;
  color: #183153;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 8px;
  margin: 0 0 0 36px;
}
.mobile-nav a {
  color: #fff;
  background: none;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 12px 0 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  border-radius: 0;
  width: 90%;
  transition: color 0.22s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFC145;
  background: none;
}
@media (max-width: 1024px) {
  nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (max-width: 1024px) {
  header .content-wrapper {
    gap: 8px;
  }
}
@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  nav {
    display: flex;
    flex-direction: row;
  }
}

/* ===================
     FLEX UTILITIES & MANDATORY PATTERNS
=================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(24,49,83,0.07);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  transition: box-shadow 0.21s, transform 0.21s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px rgba(24,49,83,0.10);
  transform: translateY(-2px) scale(1.012);
}
.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;
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(24,49,83,0.10);
  margin-bottom: 24px;
  transition: box-shadow 0.14s;
  border-left: 4px solid #FFC145;
}
.testimonial-card p {
  color: #183153;
  font-size: 1.08rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  margin-bottom: 8px;
}
.testimonial-signature {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1A2436;
  opacity: 0.8;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 20px 20px 16px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(24,49,83,0.04);
  transition: box-shadow 0.14s;
  min-width: 220px;
  max-width: 285px;
  flex: 1 1 220px;
}
.feature-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 20px rgba(24,49,83,0.13);
}

/* ===================
    SERVICE CARDS & LISTS
=================== */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-card {
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 240px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 1px 6px rgba(24,49,83,0.07);
  padding: 24px 18px 20px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.19s, transform 0.13s;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 4px 16px rgba(24,49,83,0.15);
  transform: translateY(-1px);
}
.service-card h3 {
  color: #183153;
  margin-bottom: 8px;
}
.service-card .price {
  margin-top: 12px;
  font-weight: 600;
  color: #183153;
  background: #F2F5F7;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 1rem;
}

/* ===================
    TEXT SECTION
=================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section ul, .text-section ol {
  margin-bottom: 16px;
}
.text-section li {
  padding-left: 0;
  margin-bottom: 5px;
}
.text-section h3 {
  margin-top: 16px;
  margin-bottom: 10px;
}

/* ===================
  MAP, SOCIAL LINKS, FOOTER
=================== */
.map {
  background: #F2F5F7;
  border-radius: 8px;
  padding: 24px;
  color: #183153;
  margin-top: 10px;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
}
.social-links a img {
  width: 24px;
  height: 24px;
  filter: grayscale(100%) brightness(0.7) contrast(1);
  transition: filter 0.2s;
}
.social-links a:hover img, .social-links a:focus img {
  filter: grayscale(0%) brightness(1) contrast(1.1);
}
footer {
  background: #fff;
  padding: 40px 0 24px 0;
  border-top: 1px solid #eee;
  margin-top: 60px;
}
footer .container {
  padding: 0 20px;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
}
footer nav {
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: #183153;
  font-size: 1rem;
  font-weight: 400;
  padding: 0;
  background: none;
}
footer .text-section {
  font-size: 0.95rem;
  color: #1A2436;
  opacity: 0.82;
}


/* ===================
   RESPONSIVE & MEDIA
=================== */
@media (max-width: 900px) {
  .feature-grid, .service-list, .card-container, .content-grid, .footer .content-wrapper {
    flex-wrap: wrap;
    gap: 18px;
  }
  .feature-item, .service-card {
    min-width: 180px;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .footer .content-wrapper {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 8px;
  }
  .content-wrapper, main > section > .container > .content-wrapper {
    gap: 20px;
    padding: 0;
  }
  .section {
    margin-bottom: 34px;
    padding: 18px 6px;
    border-radius: 13px;
  }
  .hero {
    padding: 38px 0 18px 0;
  }
  .text-image-section,
  .feature-grid,
  .service-list,
  .card-container,
  .content-grid,
  footer .content-wrapper {
    flex-direction: column;
    gap: 14px;
  }
  header .content-wrapper {
    flex-direction: row;
    gap: 10px;
    min-height: 60px;
  }
  h1 {
    font-size: 2rem;
    margin-bottom: 16px;
  }
  h2 {
    font-size: 1.45rem;
    margin-bottom: 14px;
  }
  .service-card,
  .feature-item {
    padding: 16px 6px 12px 10px;
    border-radius: 9px;
  }
  .testimonial-card {
    padding: 16px 9px 14px 13px;
    border-radius: 8px;
  }
  .cta-btn {
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 18px;
  }
  footer {
    padding: 20px 0 14px 0;
    margin-top: 24px;
  }
}
@media (max-width: 520px) {
  .container {
    padding: 0 2px;
  }
  .hero,
  .section {
    padding: 11px 2px;
  }
  .testimonial-card,
  .feature-item,
  .service-card {
    padding: 11px 4px 8px 6px;
  }
  .cta-btn {
    padding: 8px 11px;
  }
}
@media (max-width: 400px) {
  h1 {
    font-size: 1.17rem;
  }
  h2 {
    font-size: 1.02rem;
  }
}

/* ===================
    INTERACTIVE STATES
=================== */
button, .cta-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.11s;
}
button:active, .cta-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(24,49,83,0.08);
}
::-webkit-input-placeholder { color: #9CA3B2; }
::-moz-placeholder { color: #9CA3B2; }
:-ms-input-placeholder { color: #9CA3B2; }
::placeholder { color: #9CA3B2; }

/* ===================
   COOKIE CONSENT BANNER
=================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 -2px 28px rgba(24,49,83,0.09);
  padding: 22px 16px 18px 16px;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  transition: transform 0.34s;
}
.cookie-banner.closed {
  transform: translateY(100%);
}
.cookie-banner-content {
  font-size: 0.99rem;
  color: #183153;
  flex: 3 1 440px;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  flex: 1 0 auto;
}
.cookie-btn {
  background: #183153;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 17px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.14s;
}
.cookie-btn.accept {
  background: #183153;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #224175;
}
.cookie-btn.reject {
  background: #F2F5F7;
  color: #183153;
  border: 1px solid #DBE2EA;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #EBEDEF;
}
.cookie-btn.settings {
  background: #FFC145;
  color: #183153;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #ffdb7a;
  color: #183153;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 18px 6px 14px 9px;
  }
  .cookie-banner-actions {
    gap: 8px;
    justify-content: flex-start;
  }
}

/* ===================
  COOKIE SETTINGS MODAL
=================== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,49,83, 0.42);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2100;
  animation: fadeIn .36s cubic-bezier(.77,0,.18,1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(24,49,83,0.16);
  max-width: 390px;
  width: 94vw;
  padding: 34px 30px 18px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: slideup .44s cubic-bezier(.33,1,.68,1);
}
@keyframes slideup {
  from { transform: translateY(60px) scale(0.95); opacity:0; }
  to { transform: translateY(0) scale(1); opacity:1; }
}
.cookie-modal-header {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.23rem;
  color: #183153;
  font-weight: 700;
  margin-bottom: 8px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0 7px 0;
  border-bottom: 1px solid #EBF0F6;
  font-size: 1.02rem;
}
.cookie-modal-category .toggle {
  background: #F2F5F7;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  position: relative;
  outline: none;
}
.cookie-modal-category .toggle input {
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: absolute;
  left: 0; top: 0;
  margin: 0; padding: 0;
}
.cookie-modal-category .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #D1D7DE;
  transition: left 0.19s, background 0.22s;
}
.cookie-modal-category input:checked + .slider {
  left: 22px;
  background: #FFC145;
}
.cookie-modal-category .toggle[aria-disabled="true"] {
  opacity: 0.77;
  pointer-events: none;
}
.cookie-modal-footer {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal-close {
  background: none;
  color: #183153;
  border: none;
  font-size: 1.13rem;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 9px;
  align-self: flex-end;
  transition: background 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F2F5F7;
}
@media (max-width: 600px) {
  .cookie-modal {
    padding: 16px 6px 11px 9px;
    max-width: 96vw;
  }
}

/* ===================
          MISC
=================== */
::-webkit-scrollbar {
  width: 9px;
  background: #F2F5F7;
}
::-webkit-scrollbar-thumb {
  background: #E2E7ED;
  border-radius: 9px;
}

/* ===============
 FOCUS VISIBLE
================ */
a:focus-visible, button:focus-visible, .cta-btn:focus-visible, .cookie-btn:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible, .cookie-modal-close:focus-visible {
  outline: 2px solid #FFC145;
  outline-offset: 2px;
}

/* ===============
  BRAND ACCENTS
================ */
.accent {
  color: #FFC145 !important;
}

/* Hide visually only, for screen readers */
.visually-hidden {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  border: 0;
}
