/* ==== 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, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0; padding: 0; border: 0;
  font: inherit; vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 100%; /* 16px base */
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *:before, *:after { box-sizing: inherit; }

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F6F2E8;
  color: #2D2926;
  min-height: 100vh;
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
  background: repeating-linear-gradient(45deg, #FFECC7 0 40px, #F6F2E8 40px 80px);
}

img { max-width: 100%; display: block; }
a { color: #17583F; text-decoration: none; transition: color .18s; }
a:hover, a:active { color: #A6511E; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Impact', 'Futura', 'Arial Black', Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: #245C37;
  margin-bottom: 18px;
  line-height: 1.1;
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; letter-spacing: 0.06em; }
h4, h5, h6 { font-size: 1.1rem; }

p, ul, ol { color: #3F3220; margin-bottom: 12px; }
ul, ol { padding-left: 22px; }

strong { color: #1A4732; }
address { font-style: normal; font-size: 1rem; }

hr {
  border: none;
  border-top: 2px dashed #AA8358;
  margin: 32px 0;
}

/* ==== VINTAGE COLORS ==== */
:root {
  --retro-green: #245C37;
  --retro-dark: #0A1F19;
  --retro-cream: #FFECC7;
  --retro-accent: #ECECEC;
  --retro-brown: #A6511E;
  --retro-orange: #ED9748;
  --retro-yellow: #FFD34E;
  --retro-border: #AA8358;
}

/* ==== CONTAINER LAYOUTS ==== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px; padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF7E0;
  border-radius: 22px;
  box-shadow: 0 4px 24px 0 rgba(98,69,17,0.045);
  border: 1.5px solid var(--retro-border);
}

/* ==== FLEX LAYOUTS ==== */
.feature-grid,
.service-list,
.service-cards,
.testimonial-list,
.testimonials-slider,
.card-container,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.feature-item, .service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFF5DF;
  border-radius: 14px;
  border: 1.2px solid #C5B48B;
  padding: 28px 22px 24px 22px;
  box-shadow: 0 2px 10px 0 rgba(98,69,17,0.045);
  margin-bottom: 20px;
  min-width: 230px; max-width: 325px;
  flex: 1 1 270px;
  position: relative;
  transition: box-shadow .20s, transform .22s;
}

.feature-item img, .service-card img {
  width: 46px; height: 46px;
  margin-bottom: 6px;
  filter: sepia(35%) hue-rotate(-10deg) brightness(1.1) saturate(1.1);
}

.feature-item:hover, .service-card:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: 0 8px 26px 0 rgba(166,81,30,0.10), 0 2px 20px 0 rgba(36,92,55,0.12);
  border-color: var(--retro-green);
}

.text-section {
  background: #FFF;
  border-radius: 13px;
  padding: 24px 24px 18px;
  margin-bottom: 18px;
  border-left: 8px solid #ED9748;
  box-shadow: 0 1px 6px 0 rgba(164,63,3,0.05);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.card-container, .service-cards, .service-list {
  gap: 24px;
  margin-bottom: 16px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* ==== BUTTONS ==== */
.button, a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: none;
  background: var(--retro-orange);
  color: var(--retro-dark);
  font-size: 1.1rem;
  font-family: 'Montserrat', 'Impact', sans-serif;
  font-weight: 700;
  padding: 13px 36px;
  border-radius: 32px;
  text-transform: uppercase;
  letter-spacing: 0.085em;
  cursor: pointer;
  box-shadow: 0 3px 14px 0 rgba(245,196,99,0.18);
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background .18s, color .20s, box-shadow .21s, transform .22s;
}
.button.primary {
  background: var(--retro-green);
  color: #fff;
  box-shadow: 0 5px 15px 0 rgba(36,92,55,0.13);
}
.button.secondary {
  background: var(--retro-yellow);
  color: var(--retro-dark);
  border: 1.3px solid var(--retro-green);
}
.button:hover,
.button:focus {
  background: var(--retro-brown);
  color: #fff;
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 7px 22px 0 rgba(164,81,30,0.18), 0 2px 9px 0 rgba(25,88,66,.1);
  outline: none;
}
.button.primary:hover {
  background: #177247;
}
.button.secondary:hover {
  background: #FFD886;
  color: var(--retro-green);
}

/* ==== MAIN NAVIGATION ==== */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  background: var(--retro-green);
  padding: 18px 22px;
  border-top: 7px solid var(--retro-brown);
  border-bottom: 2px solid #846876;
  font-family: 'Montserrat', 'Impact', Arial, sans-serif;
  font-size: 1.12rem;
}
.main-nav a {
  color: #FFECC7;
  font-weight: 700;
  padding: 2px 14px;
  border-radius: 9px;
  transition: background .13s, color .13s;
}
.main-nav a.button.primary {
  margin-left: auto;
  margin-right: 0;
  background: var(--retro-yellow);
  color: var(--retro-green);
  font-size: 1rem;
  box-shadow: none;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--retro-brown);
  color: #fff;
  outline: none;
}

header {
  background: #FCF6E9;
  position: sticky; top: 0; z-index: 98;
}

header img {
  max-width: 52px; max-height: 52px;
  margin-right: 10px;
  mix-blend-mode: multiply;
}

/* ==== FOOTER ==== */
footer {
  background: var(--retro-dark);
  color: #FFECC7;
  padding: 36px 0 18px 0;
  margin-top: 52px;
  border-top: 7px solid var(--retro-brown);
  font-family: 'Roboto', Arial, sans-serif;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: var(--retro-yellow);
  font-weight: 700;
  font-size: 1.08rem;
  margin: 0 2px;
  transition: color .14s;
}
.footer-nav a:hover {
  color: var(--retro-brown);
}
footer .text-section {
  background: transparent;
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
  color: #FFECC7;
  text-align: center;
  font-size: 1.07rem;
}
footer address {
  margin-top: 7px;
  color: #EDD6B5;
  font-size: 0.97rem;
}

/* ==== TESTIMONIAL CARD ==== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #FFF8EA;
  color: #222;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(166,81,30,0.055);
  border: 1.5px solid #C5B48B;
  min-width: 275px; max-width: 410px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .16s, transform .16s;
  font-size: 1.08rem;
}
.testimonial-card strong {
  color: #177247;
}
.testimonial-card .star-rating {
  display: flex; gap: 3px; margin-top: 7px;
}
.testimonial-card .star-rating img {
  width: 18px; height: 18px; filter: grayscale(10%) sepia(16%) hue-rotate(-22deg) brightness(1.18) drop-shadow(0 1px 0 #DFAC3A);
}
.testimonial-card:hover {
  box-shadow: 0 10px 34px 0 rgba(164,81,30,0.16), 0 1px 9px 0 rgba(27,75,50,0.15);
  border-color: var(--retro-brown);
  transform: scale(1.026) translateY(-2px);
}

.testimonial-list, .testimonials-slider {
  gap: 24px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1200px) {
  .container { max-width: 99vw; }
  .main-nav { gap: 12px; }
}
@media (max-width: 992px) {
  .container { max-width: 97vw; }
}
@media (max-width: 820px) {
  .feature-item, .service-card, .testimonial-card {
    flex: 1 1 95vw;
    max-width: 100%;
  }
  .main-nav { flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 780px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
    border-radius: 13px;
  }
  .main-nav {
    font-size: 0.99rem;
    padding: 10px 10px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.23rem; }
  .feature-item, .service-card, .testimonial-card {
    min-width: 98vw;
    padding: 18px 10px 16px 14px;
    font-size: 1rem;
    gap: 10px;
    margin-bottom: 16px;
  }
  .content-wrapper { gap: 15px; }
  .main-nav a.button.primary {
    font-size: 0.93rem;
    padding: 7px 17px;
  }
}

@media (max-width: 768px) {
  .feature-grid, .service-list, .service-cards,
  .testimonial-list, .testimonials-slider,
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .content-grid { gap: 14px; }
  .text-image-section { flex-direction: column; align-items: center; gap: 16px; }
  .main-nav { flex-direction: column; gap: 3px; align-items: flex-start; }
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 17px;
  background: var(--retro-yellow);
  color: var(--retro-green);
  border: none;
  border-radius: 50%;
  font-size: 2.24rem;
  width: 50px; height: 50px;
  align-items: center; justify-content: center;
  z-index: 101;
  transition: background .16s;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(122,101,38,0.07);
}
.mobile-menu-toggle:focus { outline: 2px solid var(--retro-green); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 350px; max-width: 98vw;
  height: 100vh;
  background: #FFF7E0;
  box-shadow: 7px 0 25px 0 rgba(36,92,55,0.19);
  z-index: 998;
  padding: 0 0 0 0;
  display: flex; flex-direction: column;
  transform: translateX(-105%);
  transition: transform 0.32s cubic-bezier(.32,.78,.36,1.08);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--retro-brown);
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 18px 16px 0 0;
  cursor: pointer;
  transition: color .11s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--retro-green);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 26px 0 26px;
  font-family: 'Montserrat', Impact, sans-serif;
  font-weight: 700;
  font-size: 1.16em;
}
.mobile-nav a {
  color: var(--retro-dark);
  padding: 7px 0 7px 5px;
  border-radius: 5px;
  margin: 0 0 0 2px;
  transition: background .13s, color .11s;
  background: transparent;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-brown);
}

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle { display: none !important; }
  .main-nav { display: flex; }
}


/* ==== COOKIE CONSENT BANNER ==== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #FCF6E9;
  border-top: 3.5px solid var(--retro-brown);
  box-shadow: 0 -2px 18px 0 rgba(37,92,55,0.09);
  padding: 20px 16px 18px 18px;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.04rem;
  letter-spacing: 0.008em;
  animation: banner-in .61s cubic-bezier(.44,1.28,.58,1) both;
}
@keyframes banner-in {
  0% { transform: translateY(65px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner span {
  flex: 3 1 280px;
  color: #463322;
}
.cookie-consent-banner .cookie-buttons {
  display: flex; gap: 13px;
}
.cookie-consent-banner button {
  font-family: 'Montserrat', Impact, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  padding: 9px 19px;
  margin: 0;
  cursor: pointer;
  background: var(--retro-brown);
  color: #fff;
  transition: background .16s, color .13s, transform .17s;
  box-shadow: 0 2px 6px rgba(166,81,30,0.14);
}
.cookie-consent-banner button:hover {
  background: var(--retro-green);
}
.cookie-consent-banner .cookie-settings-btn {
  background: var(--retro-yellow);
  color: var(--retro-dark);
  border: 1.4px solid var(--retro-green);
  margin-left: 3px;
}
.cookie-consent-banner .cookie-settings-btn:hover {
  background: var(--retro-orange);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(38,31,22,0.22);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .23s cubic-bezier(.32,1.13,.55,1.005) both;
}
@keyframes fadeIn {
  0% { opacity: 0 } 100% { opacity: 1; }
}
.cookie-modal {
  background: #FFECC7;
  border-radius: 26px;
  border: 2.6px solid var(--retro-brown);
  box-shadow: 0 5px 28px 0 rgba(166,81,30,0.15);
  max-width: 95vw;
  min-width: 320px;
  padding: 34px 34px 26px 34px;
  z-index: 2600;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: var(--retro-green);
  margin-bottom: 13px;
  margin-top: 0;
  letter-spacing: 0.03em;
  font-family: 'Montserrat', Impact, sans-serif;
}
.cookie-modal label {
  font-size: 1.07rem;
  color: var(--retro-dark);
  margin-left: 9px;
  vertical-align: middle;
}
.cookie-modal .cookie-category {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 15px;
}
.cookie-modal .cookie-switch {
  display: inline-block;
}
.cookie-modal .cookie-switch input[type=checkbox] {
  appearance: none;
  width: 38px; height: 19px;
  background: #efd1a2;
  border-radius: 10px;
  position: relative;
  outline: none;
  box-shadow: 0 1px 4px #d2ae87;
  cursor: pointer;
  margin: 0 4px 0 0;
  transition: background .14s;
}
.cookie-modal .cookie-switch input[type=checkbox]:checked {
  background: var(--retro-green);
}
.cookie-modal .cookie-switch input[type=checkbox]:before {
  content: '';
  display: block;
  width: 15px; height: 15px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 2px;
  transition: left .18s;
  box-shadow: 0 1px 3px #b99e73;
}
.cookie-modal .cookie-switch input[type=checkbox]:checked:before {
  left: 21px;
}
.cookie-modal .cookie-action-btns {
  display: flex; gap: 16px; margin-top: 18px;
}
.cookie-modal button {
  font-family: 'Montserrat', Impact, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  border: none;
  border-radius: 22px;
  padding: 9px 17px;
  margin: 0 0 0 5px;
  cursor: pointer;
  background: var(--retro-green);
  color: #fff;
  box-shadow: 0 2px 6px rgba(36,92,55,0.09);
  transition: background .14s, color .11s, transform .12s;
}
.cookie-modal button:hover {
  background: var(--retro-brown);
  color: #fff;
}
.cookie-modal .close-modal {
  position: absolute; right: 18px; top: 18px; background: none; color: var(--retro-brown); font-size: 2rem; border: none; cursor: pointer;
}
.cookie-modal .close-modal:hover { color: var(--retro-green); }

@media (max-width: 650px) {
  .cookie-modal {
    padding: 20px 8vw 20px 8vw;
    min-width: 210px;
  }
}
@media (max-width: 490px) {
  .cookie-consent-banner {
    flex-direction: column; gap: 9px;
    padding: 14px 7px 8px 7px;
    font-size: 0.95rem;
  }
  .cookie-modal {
    padding: 10vw 2vw;
    font-size: 0.97rem;
  }
}

/* ==== MISC VINTAGE STYLES ==== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

::-webkit-input-placeholder { color: #AA8358; }
::-moz-placeholder { color: #AA8358; }
:-ms-input-placeholder { color: #AA8358; }
::placeholder { color: #AA8358; }

/* Retro pattern border for cards and CTA */
.section.cta, .cta-section {
  border-width: 4px;
  border-style: double;
  border-color: var(--retro-brown) var(--retro-yellow) var(--retro-brown) var(--retro-yellow);
  background: repeating-linear-gradient(135deg, #FFECC7, #FFECC7 46px, #FFF7E0 46px, #FFF7E0 92px);
}

/* Custom scrollbar for vintage touch */
::-webkit-scrollbar {
  height: 12px;
  width: 10px;
  background: #F3D9AD;
  border-radius: 24px;
}
::-webkit-scrollbar-thumb {
  background: #B6803D;
  border-radius: 24px;
}

/* Micro-interactions */
.card:active,
.feature-item:active, .service-card:active, .testimonial-card:active{
  transform: scale(0.98);
  filter: brightness(0.98);
}

/* ==== ENSURE NO OVERLAP OR ABSOLUTE FOR CONTENT ==== */
.card, .feature-item, .service-card, .testimonial-card, .text-section {
  margin-bottom: 20px;
  z-index: 1;
}

/* ==== Print Styles for Retro Invoices etc. ==== */
@media print {
  body { background: #fff !important; }
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal, .mobile-menu-toggle { display: none !important; }
  .section, .feature-item, .service-card, .testimonial-card { background: #fff !important; border: 1px solid #C5B48B !important; box-shadow: none !important; }
}
