/* ====================== CSS RESET & BASE ====================== */
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, main, 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #FDFCDC;
  color: #3C2A21;
  -webkit-font-smoothing: antialiased;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: #22577A;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #3C2A21;
}
img {
  max-width: 100%;
  display: block;
}
*:focus {
  outline: 2px solid #22577A;
  outline-offset: 1px;
}

/* ====================== VINTAGE RETRO TYPOGRAPHY ====================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Open+Sans:400,700&display=swap');

:root {
  --primary: #22577A;
  --secondary: #80C482;
  --accent: #FDFCDC;
  --vintage-red: #C44536;
  --vintage-mustard: #FFBC42;
  --vintage-brown: #8B6F39;
  --vintage-cream: #FFF6E0;
  --vintage-shadow: 0 4px 20px rgba(34,39,42,0.07);
  --display-font: 'Montserrat', Arial, sans-serif;
  --body-font: 'Open Sans', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  letter-spacing: 1px;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 1px 1px 0 var(--accent);
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }

p, ul, ol, blockquote, address {
  font-family: var(--body-font);
  color: #3C2A21;
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
blockquote {
  background: var(--vintage-cream);
  border-left: 6px solid var(--vintage-mustard);
  font-style: italic;
  padding: 24px 32px;
  border-radius: 16px;
  margin: 28px 0 28px 0;
  color: var(--vintage-brown);
  box-shadow: 0 2px 12px rgba(255,188,66,0.05);
}
strong, b {
  font-weight: 700;
}

/* ====================== LAYOUT STRUCTURE & SPACING ====================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 28px;
  box-shadow: var(--vintage-shadow);
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* ====================== HEADER & NAVIGATION ====================== */
header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(34, 39, 42, 0.09);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 0;
  justify-content: flex-start;
}
.main-nav a {
  color: var(--vintage-cream);
  font-family: var(--display-font);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 19px;
  transition: background 0.15s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--vintage-mustard);
  color: var(--primary);
}
.main-nav img {
  height: 44px;
  width: auto;
  margin-right: 4px;
}

/* ====================== MOBILE BURGER NAVIGATION ====================== */
.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 1301;
  background: var(--vintage-mustard);
  color: var(--primary);
  border: 0;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 2rem;
  margin-left: auto;
  margin-right: 10px;
  cursor: pointer;
  box-shadow: 0 2px 9px rgba(255,188,66,0.12);
  transition: background 0.16s;
}
.mobile-menu-toggle:active,.mobile-menu-toggle:focus {
  background: var(--vintage-red);
  color: #FFF;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--vintage-brown);
  z-index: 1300;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.76,0,.24,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--vintage-mustard);
  border: none;
  font-size: 2.5rem;
  align-self: flex-end;
  margin: 22px 32px 16px 0;
  cursor: pointer;
  transition: color 0.19s;
}
.mobile-menu-close:active, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: 40px;
}
.mobile-nav a {
  color: var(--vintage-mustard);
  font-family: var(--display-font);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 12px 38px;
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 8px;
  transition: background 0.17s, color 0.20s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--vintage-mustard);
  color: var(--vintage-brown);
}

@media (max-width: 990px) {
  .main-nav {
    gap: 20px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ====================== HERO SECTION ====================== */
.hero {
  background: repeating-linear-gradient(135deg, var(--vintage-cream), var(--accent) 35%, var(--vintage-mustard) 70%, var(--accent) 100%);
  box-shadow: 0 8px 24px rgba(255,188,66,0.07);
  border-radius: 0 0 48px 48px;
  margin-bottom: 48px;
  position: relative;
}
.hero .container {
  padding-top: 44px;
  padding-bottom: 44px;
}
.hero .content-wrapper {
  align-items: flex-start;
  text-align: left;
  gap: 24px;
}
.hero h1 {
  font-size: 2.6rem;
  color: var(--primary);
  text-shadow: 2px 4px 0 var(--accent);
}
.hero p {
  font-size: 1.1rem;
  color: var(--vintage-brown);
}

/* ====================== BUTTONS & CTAs ====================== */
.cta-btn {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--display-font);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 16px 38px;
  border-radius: 32px;
  border: none;
  transition: background 0.21s, color 0.18s, box-shadow 0.22s;
  box-shadow: 0 8px 24px rgba(128,196,130,0.13);
  cursor: pointer;
  margin-top: 8px;
  text-align: center;
  min-width: 200px;
  display: inline-block;
  text-shadow: 1px 1px 0 var(--accent);
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--vintage-mustard);
  color: var(--vintage-brown);
  box-shadow: 0 4px 16px rgba(255,188,66,0.21);
}

/* ====================== FEATURES / SERVICE CARDS ====================== */
.features, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.feature-grid {
  margin-top: 22px;
  gap: 36px;
}
.feature-grid li {
  flex: 1 1 240px;
  background: var(--vintage-cream);
  border-radius: 24px;
  padding: 32px 24px 22px 24px;
  box-shadow: 0 2px 14px rgba(128,196,130,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 340px;
  transition: transform 0.17s, box-shadow 0.19s;
  border: 2px solid var(--accent);
  position: relative;
}
.feature-grid li:hover {
  transform: translateY(-6px) scale(1.03) rotate(-1deg);
  box-shadow: 0 12px 32px rgba(34,87,122,0.08);
  border-color: var(--vintage-mustard);
}
.feature-grid img {
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  filter: drop-shadow(1px 2px 0 var(--vintage-brown));
}
.feature-grid h3 {
  font-size: 1.18rem;
  margin-bottom: 5px;
  color: var(--primary);
}
.feature-grid p {
  font-size: 1rem;
  color: var(--vintage-brown);
  margin-bottom: 0;
}

/* ====================== SERVICE LIST SECTION ====================== */
.services-list ul, .benefits ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 14px;
}
.services-list li {
  background: var(--vintage-cream);
  border-radius: 20px;
  padding: 27px 20px;
  box-shadow: 0 1px 12px rgba(34,87,122,0.05);
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border 0.16s;
  border: 2px solid var(--accent);
  position: relative;
}
.services-list li:hover {
  box-shadow: 0 3px 18px rgba(255,188,66,0.10);
  border-color: var(--vintage-mustard);
}
.services-list h3 {
  font-family: var(--display-font);
  font-size: 1.1rem;
  color: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.services-list h3 span {
  color: var(--vintage-red);
  background: var(--vintage-mustard);
  padding: 0 8px;
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 700;
}

.benefits ul li {
  padding-left: 18px;
  position: relative;
}
.benefits ul li:before {
  content: '\2022';
  color: var(--vintage-red);
  font-weight: bold;
  display: inline-block;
  width: 1.5em;
  margin-left: -1.5em;
  font-size: 1.5em;
  position: absolute;
  left: 0;
  top: 0;
}

/* ====================== ARTICLES PAGE ====================== */
.articles-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 12px 0;
  justify-content: space-between;
}
.articles-teasers article {
  background: var(--vintage-cream);
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(34,87,122,0.05);
  padding: 24px 20px 20px 24px;
  flex: 1 1 290px;
  max-width: 355px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  border: 1.5px solid var(--accent);
  transition: border 0.16s, box-shadow 0.18s, transform 0.19s;
}
.articles-teasers article:hover {
  border-color: var(--vintage-mustard);
  box-shadow: 0 5px 20px rgba(255,188,66,0.12);
  transform: translateY(-5px) scale(1.02);
}
.articles-teasers h3 {
  color: var(--primary);
  font-size: 1.08rem;
}
.articles-teasers a {
  font-family: var(--display-font);
  color: var(--vintage-red);
  background: none;
  font-size: 1rem;
  padding: 0;
  border-bottom: 2px dashed var(--vintage-red);
  border-radius: 0;
  transition: color 0.2s, border 0.18s;
  margin-top: 8px;
  align-self: flex-start;
}
.articles-teasers a:hover, .articles-teasers a:focus {
  color: var(--vintage-brown);
  border-bottom: 2px solid var(--vintage-brown);
}
.articles-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.articles-filter span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
.articles-filter a {
  background: var(--secondary);
  color: var(--primary);
  padding: 5px 19px;
  border-radius: 13px;
  font-family: var(--display-font);
  font-size: 0.99rem;
  font-weight: 600;
  transition: background 0.16s, color 0.14s;
}
.articles-filter a:hover, .articles-filter a:focus {
  background: var(--vintage-mustard);
  color: var(--vintage-brown);
}

/* ====================== TESTIMONIALS ====================== */
.testimonials {
  margin-bottom: 44px;
}
.testimonials .content-wrapper {
  gap: 28px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 20px 28px;
  margin-bottom: 20px;
  background: #FFF6E0;
  border-left: 7px solid var(--secondary);
  border-radius: 17px;
  box-shadow: 0 2px 16px rgba(34,87,122,0.09);
  max-width: 680px;
  color: #333;
  font-size: 1.08rem;
  position: relative;
  font-family: var(--body-font);
  transition: border 0.19s, box-shadow 0.23s;
}
.testimonial-card:hover {
  border-left: 7px solid var(--vintage-mustard);
  box-shadow: 0 5px 34px rgba(255,188,66,0.10);
}
.testimonial-card p {
  color: #2d180e;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-author {
  color: var(--primary);
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-highlights ul {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-left: 14px;
}
.testimonial-highlights ul li {
  padding-left: 18px;
  position: relative;
  color: var(--vintage-brown);
  font-size: 1rem;
}
.testimonial-highlights ul li:before {
  content: '\2605';
  color: var(--vintage-mustard);
  font-size: 1.2em;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 2px;
}

/* ====================== CONTACT PAGE ====================== */
.contact-details {
  background: var(--accent);
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 2px 10px rgba(255,188,66,0.06);
  margin-bottom: 8px;
  font-family: var(--body-font);
  color: #32423F;
}
.contact-details h2 {
  color: var(--vintage-brown);
}
.contact-details address {
  font-style: normal;
  color: var(--primary);
  margin-bottom: 10px;
}

/* ====================== FOOTER ====================== */
footer {
  background: var(--primary);
  color: var(--vintage-cream);
  padding: 36px 0 0 0;
  border-top-left-radius: 38px;
  border-top-right-radius: 38px;
  box-shadow: 0 -2px 18px rgba(34,87,122,0.08);
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--vintage-mustard);
  font-family: var(--display-font);
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255,188,66,0.07);
  transition: background 0.16s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--vintage-mustard);
  color: var(--primary);
}
.footer-info {
  text-align: center;
  margin: 10px 0 6px 0;
  font-size: 0.98rem;
  color: var(--vintage-cream);
}
.footer-info address {
  font-style: normal;
  color: var(--vintage-brown);
  font-size: 0.98rem;
  display: block;
}

/* ====================== COOKIE CONSENT BANNER ====================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  background: #FFF6E0;
  color: #3C2A21;
  box-shadow: 0 -4px 38px rgba(34,87,122,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 24px;
  font-family: var(--body-font);
  z-index: 2000;
  border-top: 3px solid var(--vintage-mustard);
  opacity: 1;
  transition: transform 0.23s cubic-bezier(.78,0,.22,1), opacity 0.22s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-message {
  flex: 1 1 0%;
  font-size: 1rem;
  color: #3C2A21;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
}
.cookie-btn,.cookie-settings-btn {
  font-family: var(--display-font);
  border: none;
  border-radius: 22px;
  padding: 9px 30px;
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.12s;
  box-shadow: 0 2px 11px rgba(255,188,66,0.09);
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.reject {
  background: var(--vintage-red);
  color: #FFF6E0;
}
.cookie-settings-btn {
  background: var(--vintage-mustard);
  color: var(--primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus { background: var(--vintage-mustard); color: var(--primary); }
.cookie-btn.reject:hover, .cookie-btn.reject:focus { background: #753124; }
.cookie-settings-btn:hover, .cookie-settings-btn:focus { background: var(--secondary); color: var(--primary); }

.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width:100vw; height:100vh;
  background: rgba(60,42,33, 0.62);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.23s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #FFF6E0;
  border-radius: 25px;
  padding: 36px 44px 32px 44px;
  box-shadow: 0 8px 32px rgba(34,87,122,0.14);
  max-width: 420px;
  min-width: 288px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-family: var(--body-font);
  color: #3C2A21;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.4rem;
  font-family: var(--display-font);
  color: var(--primary);
  margin-bottom: 8px;
}
.cookie-modal-close {
  position: absolute;
  right: 22px; top: 18px;
  background: none;
  border: none;
  color: var(--vintage-red);
  font-size: 1.6rem;
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 12px 0 8px 0;
}
.cookie-category {
  background: var(--vintage-cream);
  padding: 14px 16px;
  border-radius: 13px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 8px rgba(34,87,122,0.05);
  font-size: 1rem;
}
.cookie-category label,.cookie-category span {
  font-family: var(--body-font);
  color: #3C2A21;
  font-size: 1rem;
}
.cookie-toggle {
  accent-color: var(--secondary);
  width: 32px;
  height: 18px;
}
.cookie-btn-group {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 13px;
}

/* ====================== FLEXBOX SPACING UTILS ====================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--vintage-cream);
  border-radius: 18px;
  box-shadow: 0 1px 10px rgba(255,188,66,0.07);
  text-align: left;
  padding: 18px 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.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;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ====================== MEDIA QUERIES: RESPONSIVE RULES ====================== */
@media (max-width: 1190px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 24px;
  }
  .articles-teasers {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .text-section {
    gap: 22px;
  }
  .hero .container, .section {
    padding-left: 8px;
    padding-right: 8px;
  }
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .feature-grid li {
    max-width: 99vw;
    min-width: 0;
  }
  .articles-teasers {
    flex-direction: column;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .section {
    margin-bottom: 36px;
    padding: 24px 9px;
    border-radius: 18px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.21rem; }
  .container { padding: 0 4px; }
  .footer-nav {
    gap: 8px;
    font-size: 0.93rem;
  }
  .cookie-modal-content {
    padding: 24px 12px 18px 12px;
    min-width: 0;
    width: 95vw;
    max-width: 98vw;
  }
}

/* ====================== MICRO-INTERACTIONS, ANIMATIONS ====================== */
.cta-btn, .cookie-btn, .cookie-settings-btn {
  transition: background 0.18s, color 0.15s, box-shadow 0.18s;
}
.feature-grid li, .services-list li, .card, .articles-teasers article {
  transition: box-shadow 0.18s, transform 0.17s, border 0.14s;
}
.mobile-menu,
.cookie-banner,
.cookie-modal {
  will-change: transform, opacity;
}

/* ====================== MISC RETRO ELEMENTS ====================== */
/* Retro pattern on hero (as subtle SVG background) */
.hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 260px; height: 200px;
  background: url('data:image/svg+xml;utf8,<svg fill="%23FFBC42" opacity="0.13" viewBox="0 0 40 30" width="240" height="180" xmlns="http://www.w3.org/2000/svg"><circle cx="5" cy="5" r="4" /><circle cx="25" cy="15" r="4" /><circle cx="15" cy="25" r="4" /><circle cx="35" cy="10" r="2" /></svg>') right top no-repeat;
  pointer-events: none;
  z-index: 1;
}

@media (max-width:680px) {
  .hero::after { display:none; }
}

/* Section pattern borders or top ribbons */
.section h2 {
  position: relative;
  padding-left: 32px;
}
.section h2::before {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 5px;
  background: var(--vintage-mustard);
  border-radius: 10px;
  transform: translateY(-50%) rotate(-7deg);
}

/* Decorative dots for retro look on cards */
.card::before, .feature-grid li::before {
  content: '';
  display: block;
  position: absolute;
  right: 22px;
  top: 16px;
  width: 10px;
  height: 10px;
  background: var(--vintage-red);
  border-radius: 50%;
  opacity: 0.11;
  z-index: 2;
}

/* ====================== END ====================== */
