/* ===================================
   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, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F5F3EF;
  color: #3C3632;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
}
ul, ol {
  margin-left: 2em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #3C3632;
  margin-bottom: 0.5em;
}
h1 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 32px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
p, li, dl, dt, dd {
  font-size: 1rem;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: #3C3632;
  margin-bottom: 0.75em;
}
a {
  color: #83653F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #3C3632;
  text-decoration: underline;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ===================================
   BRAND COLORS & RETRO COLOR PALETTE
=================================== */
:root {
  --primary: #3C3632;
  --secondary: #D2B48C;
  --accent: #F5F3EF;
  --retro-red: #B05C44;
  --retro-green: #B3A97F;
  --retro-blue: #75AABB;
  --retro-yellow: #E3C871;
  --retro-brown: #896E4F;
}

/* ===================================
   TYPOGRAPHY (RETRO/VINTAGE)
=================================== */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700&display=swap');

.subheadline {
  font-size: 1.25rem;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-weight: 400;
  color: var(--retro-brown);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

/* Vintage Pattern Background for Sections */
.section, section {
  background-repeat: repeat;
  background-size: 24px 24px;
  background-image: url('data:image/svg+xml,%3Csvg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Crect width="24" height="24" fill="%23F5F3EF"/%3E%3Ccircle cx="12" cy="12" r="1" fill="%23D2B48C"/%3E%3C/svg%3E');
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(60,54,50,0.05);
}
.hero {
  background: var(--accent);
  background-image: url('data:image/svg+xml,%3Csvg width="120" height="120" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cellipse cx="60" cy="60" rx="55" ry="55" fill="%23D2B48C" fill-opacity="0.11"/%3E%3C/svg%3E');
  margin-bottom: 48px;
  padding: 48px 0 56px 0;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 4px 22px rgba(60,54,50,0.06);
}

/* ===================================
   LAYOUT: CONTAINER & FLEX WRAPPERS
=================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* FLEX GRIDS & SECTION LAYOUTS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 24px;
  margin-bottom: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(140, 100, 50, 0.07);
  padding: 24px 20px 20px 20px;
  gap: 15px;
  min-width: 240px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  border: 2px solid var(--secondary);
  transition: box-shadow 0.18s;
}
.feature-item:hover {
  box-shadow: 0 6px 28px rgba(140, 100, 50, 0.16);
  border-color: var(--retro-red);
  background-color: #FFF9F5;
}

.card-container,
.card-grid,
.articles-list ul,
.categories-overview ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.card {
  background: #FFF;
  border-radius: 11px;
  box-shadow: 0 2px 10px rgba(60,54,50,0.07);
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.18s;
  position: relative;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(60,54,50,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;
  align-items: center;
  background: #FFFFFA;
  border-radius: 13px;
  border: 2px dashed var(--retro-brown);
  box-shadow: 0 2px 12px rgba(200,120,60,0.07);
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  transition: background 0.22s, border-color 0.2s;
  color: #332A24;
}
.testimonial-card:hover {
  border-color: var(--retro-yellow);
  background-color: #FFF7EA;
}
.testimonial-meta {
  margin-left: 12px;
  font-style: italic;
  font-size: 1rem;
  color: var(--primary);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-item {
  flex: 1 1 285px;
  background: #FFF;
  border-radius: 14px;
  border: 2px solid var(--secondary);
  box-shadow: 0 2px 10px rgba(60,54,50,0.08);
  padding: 26px 20px 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border-color 0.2s;
}
.service-item:hover {
  box-shadow: 0 6px 20px rgba(140, 100, 50, 0.13);
  border-color: var(--retro-blue);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.articles-list ul,
.categories-overview ul {
  list-style: disc inside;
  gap: 16px;
  margin-left: 16px;
}

.projects-list,
.articles-list {
  gap: 18px;
}

/* CTA SECTIONS */
.cta, .contact-cta {
  display: flex;
  background: var(--retro-green);
  background-image: url('data:image/svg+xml,%3Csvg width="120" height="120" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cellipse cx="60" cy="60" rx="50" ry="50" fill="%23E3C871" fill-opacity="0.13"/%3E%3C/svg%3E');
  border-radius: 26px;
  box-shadow: 0 3px 18px rgba(60,54,50,0.08);
  margin-bottom: 64px;
  padding: 40px 24px 36px 24px;
  align-items: center;
}

.cta-btn {
  background: var(--secondary);
  color: #3C3632;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 14px 36px;
  border-radius: 42px;
  border: 2px solid var(--primary);
  box-shadow: 0 3px 12px rgba(140, 100, 50,0.08);
  letter-spacing: 0.03em;
  margin-top: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  text-shadow: 0 2px 0 #eee7;
  transition: background .19s, color .18s, box-shadow .19s, border-color .18s;
  outline: none;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--retro-yellow);
  color: var(--primary);
  border-color: var(--retro-red);
  box-shadow: 0 7px 26px rgba(180, 140, 80, 0.19);
}

/* ============= HEADER & NAV ============= */
header {
  background: #FFF;
  box-shadow: 0 1px 16px rgba(60,54,50,0.07);
  padding: 0;
  border-radius: 0 0 30px 30px;
  margin-bottom: 30px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 20px 12px 20px;
}
.logo img {
  height: 54px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 24px;
}
.main-nav a {
  color: var(--primary);
  font-family: 'Source Sans Pro', Arial,sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  transition: color 0.22s;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--retro-red);
  border-bottom: 2px solid var(--retro-red);
}

.mobile-menu-toggle {
  background: var(--retro-yellow);
  border: none;
  color: var(--primary);
  font-size: 2.1rem;
  padding: 6px 16px;
  border-radius: 8px;
  margin-left: 18px;
  cursor: pointer;
  display: none;
  transition: background 0.2s;
  z-index: 1202;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
}

/* ===== MOBILE MENU overlay ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(60,54,50,0.96);
  box-shadow: 0 10px 60px rgba(60,54,32,0.15);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  transform: translateX(110vw);
  transition: transform 0.38s cubic-bezier(.68,.09,.35,1.33);
}
.mobile-menu.open {
  transform: translateX(0);
  transition: transform 0.44s cubic-bezier(.89,.09,.12,1.17);
}
.mobile-menu-close {
  background: none;
  color: #FFF;
  border: none;
  font-size: 2.5rem;
  margin: 20px 24px 12px 0;
  cursor: pointer;
  z-index: 1203;
  padding: 0 12px;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--retro-yellow);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  margin: 44px 0 0 34px;
}
.mobile-nav a {
  color: #FFF;
  font-family: 'Source Sans Pro', Arial,sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  padding: 14px 0;
  border-left: 5px solid transparent;
  width: 94vw;
  transition: color 0.19s, border-color 0.22s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-yellow);
  border-left: 5px solid var(--retro-yellow);
  background: rgba(249,244,221,0.08);
}

/* ============= FOOTER ============= */
footer {
  background: #3C3632;
  color: #F5F3EF;
  border-radius: 28px 28px 0 0;
  padding: 36px 0 16px 0;
  margin-top: 72px;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}
footer .container {
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-links a {
  color: #E3C871;
  font-size: 1rem;
  text-decoration: underline dotted;
  transition: color 0.16s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #FFF;
}
.footer-contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--accent);
}
.footer-contact-info p{color:var(--accent);}
.footer-contact-info img {
  width: 20px; height: 20px;
  vertical-align: middle;
  margin-right: 7px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-brand .brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.18rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  color: #D2B48C;
}
.footer-brand .brand-tagline {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  color: #FFF;
}

/* ===================== COOKIE CONSENT BANNER ================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #EFE4CE;
  box-shadow: 0 -2px 20px rgba(60,54,32,0.07);
  color: #3C3632;
  z-index: 1480;
  padding: 26px 20px 20px 20px;
  display: none;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  border-top: 4px solid var(--secondary);
  font-family: 'Source Sans Pro', Arial, sans-serif;
  animation: bannerIn .55s cubic-bezier(.41,1.21,.5,.92);
}
.cookie-consent-banner.active {
  display: flex;
}
.cookie-consent-text {
  color: #3C3632;
  font-size: 1.1rem;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.cookie-btn {
  padding: 11px 25px;
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, border 0.18s;
}
.cookie-btn.accept {
  background: var(--retro-green);
  color: var(--primary);
  border-color: var(--primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--retro-yellow);
  color: var(--retro-red);
  border-color: var(--retro-red);
}
.cookie-btn.reject {
  background: var(--retro-red);
  color: #FFF;
  border-color: var(--retro-red);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #C9442C;
  color: #FFF;
}
.cookie-btn.settings {
  background: #FFF9F5;
  color: var(--primary);
  border-color: var(--retro-brown);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #FFF;
  border-color: var(--retro-yellow);
  color: var(--retro-brown);
}

@keyframes bannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ========== COOKIE SETTINGS MODAL =========== */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1490;
  background: rgba(40,34,28,0.78);
  display: none;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn .35s cubic-bezier(.21,1.28,.38,.95);
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal-content {
  background: #F5F3EF;
  border-radius: 18px;
  padding: 38px 26px 27px 26px;
  min-width: 320px;
  max-width: 92vw;
  box-shadow: 0 8px 38px rgba(60,54,32,0.22);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal-header {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.33rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 11px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--retro-yellow);
  width: 21px;
  height: 21px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--primary);
}
.essential {
  color: var(--retro-brown);
  font-weight: 700;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 24px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.3rem;
  cursor: pointer;
  z-index: 1500;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--retro-red);
}

@keyframes cookieModalIn {
  from { transform: scale(.7) translateY(40px); opacity: 0; }
  to   { transform: scale(1)  translateY(0); opacity: 1; }
}

/* ========== FORMS & FIELDS =========== */
input, textarea, select {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 6px;
  border: 2px solid #D2B48C;
  margin-bottom: 10px;
  background: #FFF9F5;
  color: var(--primary);
  outline: none;
  transition: border-color 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--retro-yellow);
}
label {
  font-size: 1rem;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: var(--primary);
}

/* ========== UTILITY CLASSES =========== */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 28px; }
.mt-2 { margin-top: 16px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 32px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-accent { color: var(--retro-red); }
.bg-accent { background: var(--accent); }

/* Wave-style divider (vintage derived) */
.divider {
  width: 100%;
  height: 18px;
  background: url('data:image/svg+xml,%3Csvg width="120" height="18" viewBox="0 0 120 18" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 9C7.5 15 15 9 22.5 9C30 9 37.5 15 45 9C52.5 3 60 9 67.5 9C75 9 82.5 15 90 9C97.5 3 105 9 112.5 9C115.5 9 118.5 9 120 9" stroke='%23D2B48C' stroke-width='2' fill='none'/%3E%3C/svg%3E') repeat-x;
  margin: 0 auto 30px auto;
}

/* ===================== MEDIA QUERIES =================== */
@media (max-width: 1150px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .card-container, .card-grid, .content-grid {
    gap: 14px;
  }
  .feature-item, .service-item {
    padding-left: 12px; padding-right: 12px;
    min-width: 170px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  .footer-contact-info {
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
  }
  .footer-links {
    gap: 12px;
    font-size: 0.95rem;
    flex-wrap: wrap;
  }
  .about-preview, .services-preview, .testimonials-preview, .contact-cta, .cta, .hero, .terms-of-use, .privacy-policy, .gdpr-policy, .cookie-policy, .thank-you, .section {
    padding: 30px 10px;
    margin-bottom: 45px;
    border-radius: 13px;
  }
  .feature-grid, .service-list, .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .feature-item, .service-item {
    width: 100%;
    min-width: unset;
    padding: 18px 8px 13px 8px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    font-size: 0.96rem;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 11px 24px;
  }
  .hero {
    padding: 28px 0 38px 0;
    border-radius: 0 0 16px 16px;
  }
  header .container {
    flex-direction: row;
    gap: 6px;
    padding: 8px 8px;
  }
  .logo img {
    height: 38px;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .footer-brand .brand-tagline { font-size: 0.92rem; }
  .mobile-nav {
    font-size: 1.06rem;
    gap: 14px;
    margin-left: 8px;
  }
}

/* Extra spacing for last section and footer */
main > section:last-of-type {
  margin-bottom: 48px;
}

/* Hide section background pattern on cookie/modal overlays */
.cookie-modal, .cookie-consent-banner {
  background-image: none !important;
}

/* ================ RETRO-STYLE DECORATIVE SHADOWS/ACCENTS ================ */
.card, .feature-item, .testimonial-card, .service-item {
  border-radius: 13px;
  box-shadow: 0 4px 16px rgba(87, 67, 54, 0.07);
  position: relative;
  overflow: hidden;
}
.card::before, .feature-item::before, .testimonial-card::before, .service-item::before {
  content: "";
  position: absolute;
  top: -15px; left: 32px;
  height: 5px; width: 60px;
  background: var(--retro-yellow);
  opacity: 0.25;
  border-radius: 3px;
  z-index: 1;
  pointer-events: none;
  display: block;
}
.card::before { top: -8px; left: 24px; width: 38px; }
.testimonial-card::before { display: none; }

/* ============ SCROLLBAR THEMING (retro style) =========== */
::-webkit-scrollbar {
  width: 10px;
  background: #F5F3EF;
}
::-webkit-scrollbar-thumb {
  background: #D2B48C;
  border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B3A97F;
}

/* ========= CUSTOM RETRO RADIO/CHECKBOX (for cookies) ========= */
input[type="checkbox"] {
  accent-color: var(--retro-yellow);
}

/* ============= MICRO-INTERACTIONS (HOVER ANIMS) ============= */
.feature-item:hover img,
.service-item:hover img {
  transform: scale(1.08) rotate(-2deg);
  transition: transform 0.15s cubic-bezier(.69,.19,.3,1.01);
}
.cta-btn:active {
  transform: scale(0.97);
}
.card, .feature-item, .testimonial-card, .service-item {
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

/* ============= PRINT =========== */
@media print {
  header, footer, .main-nav, .mobile-menu, .mobile-menu-toggle, .cta-btn, .cookie-consent-banner, .cookie-modal {
    display: none !important;
  }
  .container, main, section, article {
    max-width: 100%!important;
    padding: 0!important;
    margin: 0!important;
    box-shadow: none!important;
  }
}
