/* =================== CSS RESET & NORMALIZATION =================== */
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 {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background: #F9F7F1;
  color: #20304A;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after {
  box-sizing: inherit;
}
a {
  color: #406964;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #BD8D3A;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =================== VINTAGE RETRO PALETTE =================== */
:root {
  --clr-primary: #20304A; /* brand primary */
  --clr-secondary: #49A078; /* brand green */
  --clr-accent: #F5F5F5; /* neutral accent */
  --clr-vintage1: #FFE7B2;
  --clr-vintage2: #F9C784;
  --clr-vintage3: #A47963;
  --clr-vintage4: #E8A87C;
  --clr-vintage5: #BD8D3A;
  --clr-vintage6: #7B4B27;
  --clr-text-main: #20304A;
  --clr-text-light: #fffbe7;
  --clr-coral: #E27D60;
  --clr-bg-testimonial: #ffeedd;
}

/* =================== TYPOGRAPHY =================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  color: var(--clr-vintage5);
  margin-bottom: 20px;
  text-shadow: 1px 4px 0 #ffeedd44, 0 1px 0 #fff7e2;
}
h2 {
  font-size: 2rem;
  color: var(--clr-secondary);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 900;
  text-shadow: 1px 2px 0 #ffeedd44;
}
h3 {
  font-size: 1.35rem;
  color: var(--clr-primary);
  margin-bottom: 13px;
  font-weight: 700;
}
h4, h5, h6 {
  font-weight: 700;
  color: var(--clr-primary);
}
p, li {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--clr-primary);
  margin-bottom: 0.8em;
}
strong {
  font-weight: 700;
}

/* Typography scale for vintage style */
@media (min-width: 580px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.5rem; }
}
@media (min-width: 900px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.7rem; }
  h3 { font-size: 1.7rem; }
}

/* =================== CONTAINER/LAYOUT =================== */
.container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Ensure a distinctive vintage section look */
section {
  background: #fffbe7;
  border-radius: 18px;
  box-shadow: 0 2.5px 16px 0 #A4796330;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-bottom: 7px dotted #BD8D3A;
  position: relative;
}
main section:last-child {
  margin-bottom: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.card-container, .feature-grid, .service-list, .service-grid, .post-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card, .service-card, .feature-item {
  margin-bottom: 20px;
  position: relative;
}
.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;
  background: var(--clr-bg-testimonial);
  color: var(--clr-text-main);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px 0 #BD8D3A20;
  font-style: italic;
  border: 2px solid #BD8D3A;
  margin-bottom: 24px;
} 

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

/* Card pattern for .service-card etc. */
.service-card, .feature-grid > div, .service-highlight, .service-highlight-cards > div {
  background: #fff8e2;
  border-radius: 13px;
  border: 1.5px solid #E8A87C;
  box-shadow: 0 2.5px 10px 0 #E8A87C22;
  padding: 26px 20px;
  position: relative;
  min-width: 240px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.service-card:hover, 
.feature-grid > div:hover, .service-highlight-cards > div:hover {
  box-shadow: 0 8px 32px 0 #BD8D3A33;
  transform: translateY(-3px) scale(1.025);
  z-index: 2;
}

/* =============== HEADERS, NAVIGATION, CTAs =============== */
header {
  background: #BD8D3A url('data:image/svg+xml;utf8,<svg fill="none" viewBox="0 0 1200 100" xmlns="http://www.w3.org/2000/svg"><path fill="#ffeedd" fill-opacity="0.3" d="M0 100L1200 0V100H0Z"/></svg>') bottom center repeat-x;
  padding: 0;
  border-bottom: 6px solid #A47963;
  box-shadow: 0 2px 15px 0 #E8A87C08;
  min-height: 66px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  min-height: 66px;
}
header img {
  height: 44px;
  width: auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
}
nav a {
  font-weight: 700;
  font-size: 1rem;
  color: #fffbe7;
  padding: 4px 9px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
}
nav a:hover, nav a:focus {
  background: #E8A87C;
  color: #20304A;
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #49A078;
  color: #fffbe7;
  border: none;
  font-size: 1.1rem;
  padding: 12px 32px;
  border-radius: 24px 8px 20px 8px/18px 24px 8px 22px;
  box-shadow: 0 3px 14px 0 #20304A22;
  font-weight: 900;
  letter-spacing: 0.03em;
  margin-left: 18px;
  transition: background 0.18s, box-shadow 0.19s, color 0.15s, transform 0.13s;
  text-transform: uppercase;
  border: 2px solid #20304A;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.cta-btn:hover, .cta-btn:focus {
  background: #20304A;
  color: #FFE7B2;
  box-shadow: 0 8px 30px 0 #49A07828,0 1px 0 #ffeedd;
  transform: translateY(-2px) scale(1.03);
}

/* ============ MOBILE BURGER MENU ============ */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #fffbe7;
  margin-left: 16px;
  cursor: pointer;
  z-index: 20;
  transition: color 0.15s;
  border-radius: 7px;
  height: 44px;
  width: 44px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #F9C784;
  background: #20304A11;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFD69Cee;
  box-shadow: 0 7px 38px 0 #A4796344;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.7,.14,.45,1.01), opacity 0.18s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #BD8D3A;
  align-self: flex-end;
  margin: 17px 25px 12px 0;
  cursor: pointer;
  transition: color 0.14s, background 0.13s;
  border-radius: 7px;
  height: 42px;
  width: 42px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fffbe7;
  background: #A4796386;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 20px;
  padding: 18px 40px;
}
.mobile-nav a {
  font-size: 1.34rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #7B4B27;
  font-weight: 800;
  background: none;
  letter-spacing: 0.04em;
  padding: 8px 0;
  border-bottom: 2px dashed #E8A87C66;
  transition: color 0.16s, background 0.16s;
  border-radius: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #E27D60;
  background: #FFE7B266;
}

@media (min-width: 930px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}
@media (max-width: 929px) {
  nav { display: none; }
  .cta-btn { display: none; }
}

/* ========== MAIN CONTENT LAYOUT =========== */
.value-list, .feature-list, .service-steps {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  color: #7B4B27;
  margin-bottom: 18px;
}
.value-list li, .feature-list li, .service-steps li {
  margin-bottom: 8px;
  padding-left: 0.7em;
  position: relative;
}
.value-list li:before, .feature-list li:before {
  content: '\2605';
  color: #E8A87C;
  margin-right: 8px;
  font-size: 1.2em;
  position: absolute;
  left: -1.3em;
}
.service-steps li:before {
  content: '';
}
ol.service-steps {
  list-style-type: decimal;
}
.certification-badges, .client-logos, .benefit-icons, .social-links {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin: 12px 0 0 0;
}
.certification-badges img, .client-logos img, .benefit-icons img {
  background: #fffbe7;
  border: 2px dashed #F9C784;
  padding: 7px 12px;
  border-radius: 16px;
}
.social-links a img {
  width: 36px; height: 36px; background: #F9C784; padding: 6px; border-radius: 10px; transition: background 0.14s }
.social-links a:hover img { background: #A47963; }

.service-highlight {
  background: #FFE7B2;
  border: 2px solid #E8A87C;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #7B4B27;
  padding: 20px 18px;
  border-radius: 10px;
  font-size: 1.08rem;
}
.service-highlight-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.service-highlight-cards > div {
  flex: 1 1 210px;
  background: #fff8e2;
  border-radius: 10px;
  padding: 15px 15px 12px 19px;
  border: 1.2px solid #F9C784;
  box-shadow: 0 2px 8px #E8A87C16;
  font-weight: 700;
  color: #A47963;
  margin-bottom: 20px;
}

.added-value, .guarantees, .difference-points, .success-statistics {
  background: #FBEEDB;
  border-left: 6px solid #BD8D3A;
  padding: 20px 18px;
  margin-top: 18px;
  font-size: 1.06rem;
  color: #A47963;
  border-radius: 7px;
}

.blog-categories {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 1rem;
  margin: 15px 0;
}
.blog-categories a {
  color: #BD8D3A;
  background: #ffeedd;
  padding: 2px 8px;
  border-radius: 7px;
  font-weight: 700;
  transition: background 0.14s, color 0.13s;
}
.blog-categories a:hover, .blog-categories a:focus {
  color: #fffbe7;
  background: #BD8D3A;
}
input[type='text'] {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 15px;
  border: 2px solid #E8A87C;
  border-radius: 7px;
  background: #fffbe7;
  margin-bottom: 16px;
  width: 100%;
  max-width: 350px;
}

/* Blog post previews */
.post-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.post-previews article {
  background: #FFFAEC;
  border-radius: 11px;
  border: 1.2px solid #BD8D3A44;
  box-shadow: 0 1.5px 8px #BD8D3A11;
  padding: 18px 16px;
  flex: 1 1 260px;
  min-width: 225px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.post-previews article h3 {
  margin-bottom: 0;
  color: #49A078;
  font-size: 1.13rem;
}
.post-previews article a {
  color: #20304A;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 7px;
  align-self: flex-end;
  border-bottom: 2.2px dotted #E8A87C;
  transition: color 0.13s, border-color 0.13s;
}
.post-previews article a:hover,
.post-previews article a:focus {
  color: #E27D60;
  border-color: #E27D60;
}

/****** FAQ ITEMS (NO GRID) ******/
.faq-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 16px;
}
.faq-items h3 {
  font-size: 1.09rem;
  margin-bottom: 4px;
  color: #49A078;
  font-weight: 800;
}
.faq-items p {
  margin-bottom: 0;
  color: #20304A;
}

/************* CONTACT & MAP LOCATION *************/
.contact-details {
  flex: 1 1 280px;
  margin-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FFF3E5;
  border-radius: 8px;
  padding: 19px 15px 15px 15px;
  border-left: 7px solid #BD8D3A;
}
.contact-details img {
  vertical-align: middle;
  margin-right: 7px;
  height: 20px;
}
.map-location {
  flex: 2 1 320px;
  background: #FFE7B2;
  border-radius: 8px;
  border: 1.2px solid #A4796333;
  padding: 16px 13px 13px 21px;
}

/*********** FOOTER ***********/
footer {
  background: #20304A;
  border-top: 6px solid #A47963;
  padding: 26px 0 8px 0;
  font-family: 'Roboto', Arial, sans-serif;
  color: #FFE7B2;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 0 18px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 1.04rem;
  min-width: 135px;
}
.footer-menu a {
  color: #FFE7B2;
  transition: color 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus { color: #F9C784; }
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
}
.contact-info img:first-child {
  margin-bottom: 9px;
  width: 55px; height: auto;
}
.contact-info p img {
  height: 19px; width: 19px; margin-right: 6px;
  vertical-align: middle;
}

/**************** RESPONSIVE DESIGN ****************/
@media (max-width: 1090px) {
  .container { max-width: 98vw; }
  section { padding: 32px 7px; }
}
@media (max-width: 820px) {
  .card-container, .feature-grid, .service-list, .service-grid, .post-previews {
      flex-direction: column;
      gap: 18px;
  }
  .footer-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 17px;
    margin-bottom: 14px;
  }
  footer .container {
    flex-direction: column;
    gap: 21px;
  }
}
@media (max-width: 768px) {
  section {
    padding: 24px 3px 28px 3px;
    margin-bottom: 41px;
  }
  .content-wrapper {
    gap: 21px;
  }
  .container { padding: 0 6px; }
  .content-grid,
  .card-container,
  .feature-grid,
  .service-list,
  .post-previews,
  .testimonial-card,
  .service-highlight-cards {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/**************** VINTAGE RETRO DETAILS ****************/
/* Classic retro patterns in backgrounds */
section {
  /* polka dots pattern overlay for vintage feel */
  background-image: repeating-radial-gradient(circle at 9px 7px, #ffeedd40 0 2px, transparent 2px 25px);
}
.service-card, .feature-grid > div, .testimonial-card, .service-highlight-cards > div {
  /* faded paper effect */
  background-image: linear-gradient(120deg, #fffbe7 90%, #ffeedd 100%);
}
.footer-menu, .contact-info {
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0.03em;
}

/**************** BUTTONS, FORMS, INTERACTIONS ****************/
button, input[type='button'], input[type='submit'] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 7px;
  border: 2px solid #BD8D3A;
  background: #FFE7B2;
  color: #20304A;
  padding: 10px 24px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 8px #F9C78422;
  transition: background 0.18s, color 0.17s, border-color 0.13s;
}
button:hover, button:focus,
input[type='button']:hover, input[type='submit']:hover {
  background: #E8A87C;
  color: #fffbe7;
  border-color: #A47963;
}

/************* COOKIE BANNER & POPUP *************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #F9C784;
  color: #7B4B27;
  box-shadow: 0 -2px 30px #7B4B2716;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 15px 15px 15px;
  gap: 18px;
  z-index: 900;
  font-size: 1rem;
  border-top: 7px dotted #BD8D3A;
  animation: banner-drop-in 0.5s;
}
@keyframes banner-drop-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 6px;
}
.cookie-banner button {
  font-size: 1rem;
  border-radius: 10px;
  border: 2px solid #7B4B27;
  background: #fffbe7;
  color: #7B4B27;
  font-weight: 700;
  min-width: 110px;
  padding: 9px 13px;
  transition: background 0.15s, color 0.12s;
}
.cookie-banner button.accept {
  background: #49A078;
  color: #fffbe7;
  border-color: #20304A;
}
.cookie-banner button.reject {
  background: #E27D60;
  color: #fffbe7;
  border-color: #A47963;
}
.cookie-banner button.settings {
  background: #FFE7B2;
  color: #7B4B27;
  border-color: #7B4B27;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  opacity: 0.88;
  filter: brightness(1.06);
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #20304A99;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  pointer-events: auto;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
 from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-inner {
  background: #fffbe7;
  border-radius: 21px;
  padding: 36px 32px;
  box-shadow: 0 8px 80px #7B4B2740;
  color: #20304A;
  max-width: 370px;
  width: 95vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1.08rem;
}
.cookie-modal-inner h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #BD8D3A;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.cookie-modal-inner .cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.03rem;
  margin-bottom: 11px;
}
.cookie-modal-inner .cookie-switch {
  width: 42px; height: 23px; display: inline-block; position: relative; background: #FFE7B2; border-radius: 13px; border: 1.2px solid #A47963; vertical-align: middle;}
.cookie-modal-inner .cookie-switch input {
  opacity: 0; width: 0; height: 0; position: absolute;
}
.cookie-modal-inner .cookie-switch span {
  position: absolute; left: 1.5px; top: 1.5px; width: 20px; height: 20px; background: #49A078; border-radius: 50%; transition: left 0.2s, background 0.14s;
}
.cookie-modal-inner .cookie-switch input:checked + span { left: 19.5px; background: #20304A; }
.cookie-modal-inner .cookie-actions {
  display: flex; flex-direction: row; gap: 16px; margin-top: 15px;
}
.cookie-modal-inner .close-modal {
  position: absolute; top: 15px; right: 19px; background: none; border: none; font-size: 1.6rem; color: #BD8D3A; cursor: pointer; transition: color 0.15s;
}
.cookie-modal-inner .close-modal:hover { color: #E27D60; }

/****************** MICRO-INTERACTIONS, HOVER EFFECTS *******************/
.card, .service-card, .feature-grid > div, .post-previews article, .service-highlight-cards > div {
  transition: box-shadow 0.18s, transform 0.16s, border 0.16s;
  will-change: box-shadow, transform;
}
.card:hover, .service-card:hover, .feature-grid > div:hover, .post-previews article:hover {
  box-shadow: 0 12px 40px 0 #BD8D3A44, 0 1.5px 8px #FFE7B2;
  transform: translateY(-5px) scale(1.035);
  border: 1.7px solid #BD8D3A;
  z-index: 2;
}
.testimonial-card:hover {
  box-shadow: 0 13px 40px 0 #FFE7B233, 0 1.5px 8px #BD8D3A;
  transform: translateY(-6px) scale(1.03);
  border-color: #A47963;
  background: #fffbe7;
}

/***** MISC RETRO/NOSTALGIC DECORATIVE EFFECTS *****/
h1, h2, .cta-btn {
  text-shadow: 1.5px 2px 0 #FFE7B233, 2px 4px 0 #FFE7B207;
}
section > h2 {
  border-bottom: 5px double #E8A87C;
  padding-bottom: 9px;
  margin-bottom: 26px;
  display: inline-block;
}

/* ============= UTILITY CLASSES ======== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  border: 0; overflow: hidden;
  clip: rect(0 0 0 0);
  word-wrap: normal !important;
}

/******************** PRINT FRIENDLINESS ********************/
@media print {
  header, nav, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; color: #222; }
  section { background: #fff; box-shadow: none; border-bottom: none; }
}
