/* --- CSS RESET & NORMALIZE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background-color: #FBF5EC;
  color: #322B20;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  outline: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.20s cubic-bezier(.19,1,.22,1);
}
figure { margin: 0; }

/* --- VINTAGE RETRO THEME VARIABLES (FALLBACKS FOR OLDER BROWSERS) --- */
:root {
  --vintage-primary: #344E41;
  --vintage-secondary: #A3B18A;
  --vintage-accent: #FAFAF8;
  --vintage-bg: #FBF5EC;
  --vintage-cream: #F6EEE3;
  --vintage-brown: #BC6C25;
  --vintage-coral: #E07A5F;
  --vintage-blue: #62737A;
  --vintage-sage: #DDD7C0;
  --shadow: 0 4px 16px rgba(52, 78, 65, 0.10);
}

/* --- TYPOGRAPHY (RETRO/VINTAGE) --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  letter-spacing: 0.01em;
  color: #344E41;
}
h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-shadow: 1px 2px 0 #DDD7C0;
  letter-spacing: 0.03em;
}
h2 {
  font-size: 2.0rem;
  margin-bottom: 16px;
  font-weight: 600;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 11px;
  font-weight: 600;
}
p, ul, ol {
  font-size: 1rem;
  color: #322B20;
}
strong {
  color: #BC6C25;
  font-weight: 600;
}

body, p, .text-section {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
}

.text-section {
  margin-bottom: 20px;
}

ul, ol {
  margin-left: 18px;
  margin-bottom: 10px;
}
li {
  margin-bottom: 6px;
}

/* --- RETRO VISUAL ACCENTS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--vintage-cream);
  border-radius: 18px;
  box-shadow: 0 3px 14px rgba(188, 108, 37, 0.10);
  border: 2px solid #E8DAB2;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.feature-grid, .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.feature, .service {
  background: #F6EEE3;
  border: 1.5px dashed #A3B18A;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(52, 78, 65, 0.08);
  padding: 24px 18px;
  flex: 1 1 240px;
  max-width: 330px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .2s;
}
.feature img, .service img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}
.feature:hover, .service:hover {
  box-shadow: 0 6px 18px rgba(52, 78, 65, 0.14);
  transform: translateY(-2px) scale(1.03);
}

.price {
  font-size: 1.15rem;
  color: #BC6C25;
  font-weight: bold;
  margin-top: 4px;
}

/* --- CTA BUTTONS --- */
.cta-primary {
  background: #BC6C25;
  color: #FFF9F1;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 25px;
  border: none;
  padding: 14px 36px;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 14px rgba(188, 108, 37, 0.09);
  cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .15s;
  margin: 8px 0;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #A3B18A;
  color: #344E41;
  box-shadow: 0 10px 26px rgba(163, 177, 138, 0.18);
  transform: translateY(-2px) scale(1.04);
}

/* --- HEADER/NAVBAR --- */
header {
  background: #F6EEE3 url('../assets/vintage-pattern.png') repeat;
  border-bottom: 3px solid #E8DAB2;
  box-shadow: 0 2px 8px rgba(52, 78, 65, 0.05);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
.logo img {
  height: 44px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #344E41;
  font-size: 1.05rem;
  font-weight: 600;
  text-shadow: 1px 1px 0 #FFF1E8;
  padding: 5px 0;
  transition: color .18s;
  position: relative;
}
.main-nav a:after {
  content: "";
  display: block;
  height: 2.5px;
  width: 0%;
  background: #BC6C25;
  border-radius: 2px;
  transition: width 0.18s cubic-bezier(.84,0,.14,1);
  position: absolute;
  left: 0;
  bottom: -2px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #BC6C25;
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 80%;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  background: #344E41;
  color: #FAFAF8;
  border: none;
  border-radius: 10px;
  font-size: 2.0rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(52, 78, 65, 0.08);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1010;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #F6EEE3;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 32px;
  transform: translateX(-100vw);
  transition: transform 0.3s cubic-bezier(.4,1,.86,1);
  box-shadow: 0 3px 32px rgba(52, 78, 65, 0.21);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #BC6C25;
  color: #FFF9F1;
  font-size: 2rem;
  border: none;
  border-radius: 9px;
  padding: 2px 16px;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(52, 78, 65, 0.11);
  transition: background .17s;
}
.mobile-menu-close:hover { background: #A3B18A; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #344E41;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1.5px dashed #A3B18A;
  transition: color .18s, background .16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #E8DAB2;
  color: #BC6C25;
}

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

/* --- CARDS, GRIDS, GENERAL SPACING --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FAFAF8;
  border-radius: 16px;
  border: 2px solid #A3B18A;
  box-shadow: 0 3px 16px rgba(163, 177, 138, 0.13);
  padding: 24px 18px;
  margin-bottom: 20px;
  flex: 1 1 250px;
  min-width: 200px;
  position: relative;
  transition: box-shadow .18s, transform .18s;
}
.card:hover {
  box-shadow: 0 8px 20px rgba(188, 108, 37, 0.14);
  transform: translateY(-2px) scale(1.034);
}

.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: #FFF9F1;
  border: 2px solid #A3B18A;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(163, 177, 138, 0.15);
  padding: 20px;
  margin-bottom: 20px;
  flex: 1 1 340px;
  min-width: 230px;
  max-width: 700px;
  color: #322B20;
}
.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  color: #344E41;
  margin-right: 12px;
  flex: 2 2 0;
}
.testimonial-card span {
  font-size: 0.96rem;
  color: #BC6C25;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.service-list {
  padding-left: 0;
  list-style: none;
}
.service-list li {
  margin-bottom: 13px;
  border-left: 5px solid #BC6C25;
  background: #FFF9F1;
  border-radius: 7px;
  padding: 9px 17px 7px 18px;
  box-shadow: 0 1px 3px rgba(163, 177, 138, 0.12);
}

/* --- FOOTER --- */
footer {
  background: #DDD7C0;
  border-top: 3px solid #E8DAB2;
  padding: 32px 0 0 0;
  box-shadow: 0 -2px 10px rgba(52, 78, 65, 0.04);
}
footer .container {
  padding-bottom: 8px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo img {
  height: 46px;
  margin-bottom: 16px;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a, .footer-legal a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #62737A;
  transition: color .17s;
}
.footer-nav a:hover, .footer-legal a:hover {
  color: #BC6C25;
}
.footer-contact {
  min-width: 200px;
  font-size: 0.97rem;
  color: #344E41;
  font-family: 'Open Sans', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer strong {
  color: #344E41;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFF9F1;
  color: #344E41;
  font-family: 'Open Sans', Arial, sans-serif;
  border-top: 2.5px solid #A3B18A;
  box-shadow: 0 -2px 20px rgba(163, 177, 138, 0.13);
  padding: 22px 16px 30px 16px;
  z-index: 1300;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  animation: slideInUp 0.7s cubic-bezier(.24,.91,.52,.99);
}
.cookie-banner p { font-size: 1.01rem; max-width: 520px; }
.cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}
.cookie-btn {
  background: #BC6C25;
  color: #FFF5EB;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.07rem;
  border-radius: 10px;
  padding: 8px 24px;
  border: none;
  cursor: pointer;
  transition: background .16s, box-shadow .16s;
  box-shadow: 0 1px 6px rgba(163, 177, 138, 0.17);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #A3B18A;
  color: #344E41;
}
.cookie-btn.secondary {
  background: #F6EEE3;
  color: #BC6C25;
  border: 1.2px solid #A3B18A;
  font-weight: bold;
}
.cookie-btn.secondary:hover {
  background: #DDD7C0;
  color: #344E41;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(52, 78, 65, 0.29);
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .33s cubic-bezier(.33,.34,.41,.98);
}
.cookie-modal {
  background: #FFF9F1;
  border: 2.5px solid #A3B18A;
  border-radius: 14px;
  box-shadow: 0 6px 40px rgba(52, 78, 65, 0.19);
  width: 90vw;
  max-width: 410px;
  padding: 34px 27px 28px 27px;
  z-index: 1410;
  display: flex;
  flex-direction: column;
  gap: 21px;
  animation: slideDown 0.38s cubic-bezier(.7,1.12,.43,1.01);
}
.cookie-modal h3 {
  font-size: 1.23rem;
  color: #344E41;
  margin-bottom: 10px;
  text-align: left;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}
.cookie-category label {
  font-size: 1rem;
  color: #344E41;
}
.toggle-switch {
  position: relative;
  width: 37px;
  height: 22px;
}
.toggle-switch input[type="checkbox"] {
  width: 37px; height: 22px;
  opacity: 0; position: absolute; left: 0; top: 0;
  cursor: pointer;
}
.toggle-slider {
  background: #A3B18A;
  border-radius: 22px;
  position: absolute; left: 0; top: 0;
  width: 37px; height: 22px;
  transition: background .18s;
}
.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
  background: #BC6C25;
}
.toggle-slider:after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 3.5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #FBF5EC;
  transition: transform .21s;
}
.toggle-switch input[type="checkbox"]:checked + .toggle-slider:after {
  transform: translateX(15px);
}
.cookie-modal .cookie-actions {
  margin-top: 10px;
  justify-content: flex-end;
}

/* Animations */
@keyframes slideInUp {
  0% { transform: translateY(80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes slideDown {
  0% { transform: translateY(-60px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* --- RETRO BADGES / PATTERN ACCENTS --- */
.feature-grid .feature, .service-grid .service {
  background-image: repeating-linear-gradient(-45deg, #FFF9F1 0 12px, transparent 13px 25px);
  background-size: 100% 32px;
  border: 2px dotted #BC6C25;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1150px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .content-wrapper,
  .footer .content-wrapper {
    flex-direction: column;
    align-items: stretch !important;
    gap: 18px;
  }
  .footer-nav, .footer-legal { flex-direction: row; gap: 16px; }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 24px 8px;
  }
  .feature-grid, .service-grid, .card-container, .content-grid {
    gap: 13px;
  }
  .feature, .service, .testimonial-card, .card {
    min-width: 90vw;
    max-width: 98vw;
    padding: 16px 10px;
  }
  .testimonial-card { gap: 13px; }
  .footer .content-wrapper {
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav, .footer-legal { flex-direction: column; gap: 8px; }
}
@media (max-width: 600px) {
  .container { padding-left: 5px; padding-right: 5px; }
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.25rem; }
  .feature, .service, .testimonial-card, .card {
    font-size: 0.97rem;
    min-width: 97vw;
    max-width: 99vw;
    border-radius: 8px;
  }
  .cta-primary { font-size: 0.98rem; padding: 10px 20px; border-radius: 17px; }
}
@media (max-width: 490px) {
  header, footer, .section, .navbar, .container { padding-left: 2px; padding-right: 2px; }
  .cookie-modal { max-width: 99vw; padding: 20px 7px; }
}

/* --- VISUAL MICRO-INTERACTIONS --- */
a, button, .cta-primary, .cookie-btn { transition: all 0.16s cubic-bezier(.35,1.22,.67,.99); }
.card, .feature, .service, .testimonial-card {
  transition: box-shadow .17s cubic-bezier(.37,1.12,.71,1.07), transform .17s cubic-bezier(.37,1.12,.71,1.07);
}

/* --- RETRO/NOSTALGIC ELEMENTS --- */
.feature img, .service img {
  filter: sepia(0.22) hue-rotate(-10deg) saturate(0.78);
}
h1, h2, h3, .cta-primary, .feature, .service, .cookie-banner, .cookie-modal {
  text-shadow: 0 1px 0 #FFF9F1;
}
.section {
  /* retro subtle paper fade */
  background-image: repeating-linear-gradient(135deg, #F6EEE3 0 4px, #F9F6F0 5px 12px);
}
h1::before {
  content: '\2605';
  font-size: 1.1em;
  color: #E07A5F;
  vertical-align: middle;
  margin-right: 5px;
}
h1::after {
  content: '\2726';
  font-size: 1.1em;
  color: #A3B18A;
  vertical-align: middle;
  margin-left: 5px;
}

/* --- SCROLLBAR RETRO STYLE --- */
::-webkit-scrollbar { width: 9px; background: #E8DAB2; }
::-webkit-scrollbar-thumb { background: #A3B18A; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #BC6C25; }

/* --- FORM ELEMENTS (for possible contact forms) --- */
input, textarea {
  border: 1.5px solid #A3B18A;
  border-radius: 6px;
  background: #FFF9F1;
  padding: 9px 13px;
  font-size: 1rem;
  margin-bottom: 14px;
  box-shadow: 0 1.5px 6px rgba(52, 78, 65, 0.07);
  transition: border-color .16s;
}
input:focus, textarea:focus {
  border-color: #BC6C25;
  background: #FBF5EC;
}

/* --- SPECIAL: Spacings for flex layouts --- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { 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; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 19px; }
}

/* --- MISC: Utility/Help Classes --- */
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mt-32 { margin-top: 32px; }
.hide { display: none!important; }

/* --- ACCESSIBILITY --- */
:focus {
  outline: 2.5px solid #62737A;
  outline-offset: 2px;
}

/* --- PRINT --- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
}
