/* =========================
    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 {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: #F5F7FA;
  color: #272e3f;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}
a {
  color: #364F6B;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #F9A826;
  outline-offset: 2px;
}
a:hover {
  color: #F9A826;
}

/* ===============
  BRAND FONTS
=============== */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  color: #364F6B;
  margin-bottom: 16px;
}

h1 { font-size: 2.25rem; line-height: 1.15; margin-top: 0; }
h2 { font-size: 1.5rem;  margin-top: 32px; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

@media (min-width:600px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem;  }
  h3 { font-size: 1.35rem; }
}

p, li, blockquote {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #272e3f;
  margin-bottom: 16px;
}

blockquote {
  font-style: italic;
}

strong {
  font-weight: 600;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 8px 0 rgba(54, 79, 107, 0.06);
}

@media (min-width: 1024px) {
  .section {
    padding: 64px 0 64px 0;
  }
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(54, 79, 107, 0.05);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  transition: box-shadow 0.25s;
  flex: 1 1 250px;
  min-width: 260px;
}
.card:hover {
  box-shadow: 0 4px 36px 6px rgba(54, 79, 107, 0.11);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px 20px 24px;
  background: #F5F7FA;
  border-radius: 14px;
  box-shadow: 0 1px 6px 0 rgba(54, 79, 107, 0.08);
  margin-bottom: 20px;
  max-width: 600px;
}
.testimonial-card blockquote {
  color: #364F6B;
  font-size: 1.06rem;
  margin-bottom: 0;
}
.testimonial-name {
  color: #272e3f;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

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

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 rgba(54, 79, 107, 0.04);
  flex: 1 1 220px;
  min-width: 220px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.22s;
}
.feature-grid li img {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}
.feature-grid li:hover {
  box-shadow: 0 4px 24px 8px rgba(54, 79, 107, 0.10);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 16px;
}
.service-list li {
  background: #F5F7FA;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 6px 0 rgba(54, 79, 107, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1.11rem;
}
.service-price {
  color: #F9A826;
  font-weight: 700;
  margin-left: 4px;
  font-size: 1.03rem;
}

footer {
  background: #fff;
  padding: 32px 0 0 0;
  border-top: 1px solid #E3E8EE;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.97rem;
  align-items: center;
  justify-content: center;
  color: #364F6B;
}
.footer-nav a {
  color: #364F6B;
  opacity: 0.84;
  padding: 2px 6px;
  transition: color 0.2s, opacity 0.2s;
}
.footer-nav a:hover {
  color: #F9A826;
  opacity: 1;
}
footer p {
  font-size: 0.98rem;
  color: #767b7f;
  text-align: center;
  margin-bottom: 10px;
}

/* ===============
   HERO SECTION
=============== */
.hero {
  background: linear-gradient(100deg, #F5F7FA 65%, #e7ecf2 100%);
  padding: 48px 0 32px 0;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: #364F6B;
  margin-bottom: 10px;
}
.subheadline {
  color: #616A7F;
  font-size: 1.18rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  margin-bottom: 18px;
  font-weight: 500;
}


/* ===============
  CTA BUTTONS
=============== */
.cta-btn {
  background: #F9A826;
  color: #fff;
  border: none;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 999px;
  padding: 12px 36px;
  box-shadow: 0 2px 10px 0 rgba(249, 168, 38, 0.06);
  transition: background 0.2s, box-shadow 0.22s, transform 0.18s;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  margin-top: 8px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #DB8700;
  box-shadow: 0 4px 24px 0 rgba(249, 168, 38, 0.12);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* ===============
   MAIN NAVIGATION
=============== */
header {
  background: #FFFFFF;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 16px 0 rgba(54, 79, 107, 0.05);
}
.main-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 16px 20px;
  max-width: 1140px;
  margin: 0 auto;
}
.main-nav img {
  max-height: 36px;
  margin-right: 14px;
}
.main-nav ul {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
.main-nav li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.main-nav li a {
  color: #364F6B;
  padding: 6px 12px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav li a:hover, .main-nav li a:focus {
  background: #F5F7FA;
  color: #F9A826;
}
.main-nav .cta-btn {
  margin-left: 30px;
  padding: 8px 20px;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .main-nav ul { gap: 12px; }
  .main-nav .cta-btn { margin-left: 10px; }
}

@media (max-width: 768px) {
  .main-nav ul {
    display: none;
  }
  .main-nav .cta-btn {
    display: none;
  }
}

/* ===============
   MOBILE BURGER MENU
=============== */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  line-height: 1;
  color: #364F6B;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 18px;
  margin-left: auto;
  z-index: 120;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F5F7FA;
  color: #F9A826;
  border-radius: 10px;
}
@media (min-width: 769px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(245,247,250,0.97);
  box-shadow: 0 8px 32px rgba(54,79,107,0.11);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.45,.09,.77,1.00), opacity 0.22s;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 28px 0 0;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #364F6B;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  border-radius: 10px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F5F7FA;
  color: #F9A826;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 38px auto 0 auto;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  color: #364F6B;
  background: none;
  border-radius: 8px;
  padding: 14px 40px;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #F9A826;
  color: #fff;
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* ===============
   RESPONSIVE FLEX
=============== */
@media (max-width: 768px) {
  .card-container, .feature-grid, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .features .content-wrapper,
  .services .content-wrapper,
  .section .content-wrapper {
    gap: 16px;
  }
  .testimonial-card {
    max-width: 100%;
    font-size: 1rem;
  }
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .hero { border-radius: 0 0 24px 24px; }
}

@media (min-width: 769px) {
  .feature-grid { flex-direction: row; }
  .card-container { flex-direction: row; }
  .content-grid { flex-direction: row; }
  .text-image-section { flex-direction: row; }
}


/* ===============
   LEGAL SECTION
=============== */
.legal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 8px 0 rgba(54, 79, 107, 0.05);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.legal .text-section {
  margin-bottom: 0;
}

/* ===============
  CTA SECTION
=============== */
.cta {
  background: #364F6B;
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 14px 0 rgba(54, 79, 107, 0.10);
  margin-bottom: 54px;
  padding: 40px 18px;
}
.cta h2, .cta p { color: #fff; }
.cta .cta-btn { background: #F9A826; color: #fff; margin-top: 14px; }
.cta .cta-btn:hover { background: #DB8700; color: #fff; }

@media (min-width: 600px) {
  .cta {
    padding: 60px 0 60px 0;
    margin-bottom: 70px;
  }
}

/* ===============
  MISC UTILITIES
=============== */
.map-block {
  background: #F5F7FA;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 1px 4px 0 rgba(54, 79, 107, 0.03);
}

hr {
  border: 0;
  border-top: 1px solid #E3E8EE;
  margin: 40px 0;
}

/* ===============
   COOKIE BANNER
=============== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 20000;
  background: #fff;
  box-shadow: 0 -1px 8px 0 rgba(54, 79, 107, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 6vw 16px 6vw;
  gap: 30px;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.22s, transform 0.38s;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
@media (min-width: 540px) {
  .cookie-consent-banner {
    flex-direction: row;
    gap: 40px;
    padding: 20px 8vw 22px 8vw;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    align-items: center;
  }
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-consent-banner p {
  color: #364F6B;
  margin: 0;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.cookie-accept-btn, .cookie-reject-btn, .cookie-settings-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 26px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.cookie-accept-btn {
  background: #F9A826;
  color: #fff;
}
.cookie-accept-btn:hover, .cookie-accept-btn:focus {
  background: #DB8700;
  color: #fff;
  transform: translateY(-1.5px) scale(1.04);
}
.cookie-reject-btn {
  background: #E3E8EE;
  color: #364F6B;
}
.cookie-reject-btn:hover, .cookie-reject-btn:focus {
  background: #c3cedb;
  color: #364F6B;
}
.cookie-settings-btn {
  background: none;
  color: #364F6B;
  border: 2px solid #F9A826;
  padding: 8px 18px;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #F5F7FA;
  color: #F9A826;
  border-color: #DB8700;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(36,46,61, 0.26);
  z-index: 21000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 450px;
  width: 96vw;
  padding: 32px 20px 24px 20px;
  box-shadow: 0 8px 36px 0 rgba(54, 79, 107, 0.13);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: pop-in-modal 0.34s cubic-bezier(.35,.82,.95,1.17);
  z-index: 21010;
}
@keyframes pop-in-modal {
  0%   { transform: scale(0.93) translateY(20px); opacity: 0; }
  95% { transform: scale(1.03) translateY(-2px); opacity: 1; }
  100% { transform: scale(1.0) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  color: #364F6B;
  border: none;
  font-size: 1.72rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F5F7FA;
  color: #F9A826;
}
.cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 0;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
}
.cookie-category label {
  flex: 1 1 auto;
  color: #364F6B;
  font-size: 1rem;
  font-weight: 600;
}
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  background: #E3E8EE;
  border-radius: 24px;
  top: 0; left: 0; bottom: 0; right: 0;
  transition: background 0.18s;
}
.cookie-toggle input:checked + .cookie-slider {
  background: #F9A826;
}
.cookie-slider:before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
  box-shadow: 0 2px 8px rgba(54,79,107,0.05);
}
.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(20px);
}
.cookie-category .cookie-locked {
  color: #7d8087;
  font-size: 1rem;
  margin-left: 10px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 18px;
  justify-content: flex-end;
}
@media (max-width: 480px) {
  .cookie-modal { padding: 20px 8px; }
  .cookie-modal-close { top: 10px; right: 8px; }
}

/* ===============
   FORM & LINKS
=============== */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  border-radius: 8px;
  border: 1px solid #E3E8EE;
  padding: 10px 12px;
  font-size: 1rem;
  background: #fff;
  margin-bottom: 12px;
  transition: border 0.21s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border: 1.5px solid #F9A826;
}

button {
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

/* ===============
   MEDIA QUERIES
=============== */
@media (max-width: 600px) {
  .section, .legal {
    padding: 32px 6px;
    margin-bottom: 42px;
    border-radius: 12px;
  }
  .cta {
    border-radius: 16px;
    padding: 32px 6px;
  }
  .feature-grid li, .card {
    padding: 20px 10px;
    min-width: 175px;
    border-radius: 8px;
  }
}

/* ==========================
   MICRO-INTERACTIONS & UI
========================== */
section, .section {
  transition: box-shadow 0.23s, background 0.19s;
}
.feature-grid li, .card, .testimonial-card {
  transition: box-shadow 0.21s, transform 0.17s;
}
.feature-grid li:hover, .testimonial-card:hover, .card:hover {
  transform: translateY(-2px) scale(1.015);
}
.cta-btn, .cookie-accept-btn, .cookie-reject-btn, .cookie-settings-btn {
  transition: color 0.19s, background 0.22s, box-shadow 0.19s, transform 0.13s;
}

/* =============================
   ACCESSIBILITY IMPROVEMENTS
============================= */
:focus-visible {
  outline: 2.5px solid #F9A826;
  outline-offset: 1.5px;
}

/* ========== END OF CSS ========== */
