/* RESET & BASE TYPOGRAPHY */
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;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: #f6efe5;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #f6efe5;
  color: #2e2d27;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
  position: relative;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: #27496d;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #d55800;
  outline: none;
}
strong, b {
  font-weight: 700;
}

/* =============== VINTAGE RETRO COLOR PALETTE =============== */
:root {
  --primary: #27496d;
  --secondary: #f6efe5;
  --retro-blue: #27496d;
  --retro-cream: #f6efe5;
  --retro-orange: #fca17d;
  --retro-yellow: #ffe066;
  --retro-mint: #bdfff6;
  --retro-green: #15635a;
  --accent: #f26419;
  --retro-brown: #704c2c;
  --white: #fff;
  --black: #2e2d27;
}

/* =============== TYPOGRAPHY =============== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.03em;
  color: #2e2d27;
  text-shadow: 1px 1px 0 #ffe066, 2px 2px 2px #bdfff622;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 10px;
}
p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #3b3226;
  margin-bottom: 16px;
}
.section ul, .section ol {
  padding-left: 24px;
}

/* Vintage Pattern Backgrounds for Title Sections */
.section > .container > .content-wrapper.text-section h1,
.section > .container > .content-wrapper.text-section h2 {
  padding: 8px 24px;
  border-radius: 24px 48px 24px 48px/40px 18px 40px 18px;
  background: repeating-linear-gradient(135deg, #ffe066 0 14px, #f6efe5 14px 28px);
  box-shadow: 2px 4px 0 #fca17d22;
  display: inline-block;
  margin-bottom: 24px;
}

/* Accent pattern underline for .feature-grid h3 */
.feature-grid h3 {
  position: relative;
  padding-bottom: 4px;
}
.feature-grid h3::after {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 3px;
  margin-top: 3px;
  background: linear-gradient(to right, #fca17d 0%, #ffe066 100%);
}

/* =============== LAYOUT =============== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: 32px 60px 32px 60px/40px 18px 40px 32px;
  box-shadow: 0 2px 14px 0 #a879541c;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 26px 8px;
    margin-bottom: 30px;
    border-radius: 18px 24px 18px 32px/18px 10px 18px 20px;
  }
  .content-wrapper {
    gap: 10px;
  }
  .text-section h1, .text-section h2 {
    font-size: 2rem;
    padding: 6px 10px;
  }
}

/* FLEXBOX LAYOUT PATTERNS*/
.card-container, .project-list, .feature-grid, .content-grid, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.card, .project-list > div, .feature-grid > li {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 270px;
  background: #fffefc;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 #a8795420;
  padding: 24px 20px 20px 20px;
  border: 2px solid #ffe066;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover, .feature-grid > li:hover, .project-list > div:hover {
  transform: translateY(-5px) scale(1.02) rotate(-0.3deg);
  box-shadow: 0 6px 32px 0 #704c2c22;
  z-index: 2;
}
.feature-grid {
  padding-top: 12px;
  gap: 30px;
}
.feature-grid > li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-direction: row;
  background: #fff6e6;
  border-color: #fca17d;
}
.project-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}
.project-list > div {
  flex: 1 1 280px;
  min-width: 230px;
}
.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: 16px;
  padding: 28px 24px 24px 24px;
  background: #ffeecf;
  border-radius: 22px;
  box-shadow: 0 2px 14px 0 #704c2c13;
  border: 1.5px solid #fca17d;
  margin-bottom: 20px;
  max-width: 420px;
  color: #2e2d27;
  font-size: 1.04rem;
}
.testimonial-card p {
  margin-bottom: 8px;
  color: #42352e;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  font-style: italic;
}
.testimonial-card strong {
  color: #2e2d27;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1rem;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 900px) {
  .card-container, .feature-grid, .project-list, .testimonial-slider, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .project-list > div, .feature-grid > li, .card {
    min-width: 0;
    max-width: 100%;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 20px;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 0.98rem;
}
@media (max-width: 768px) {
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =============== BUTTONS & CTAs =============== */
.cta-btn, button, .mobile-menu-toggle, .mobile-menu-close {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  font-weight: bold;
  font-size: 1.09rem;
  border-radius: 20px 40px 20px 40px/18px 10px 18px 20px;
  background: var(--accent, #f26419);
  color: var(--retro-cream);
  border: 0;
  box-shadow: 0px 2px 0px #ffe066, 0 4px 16px -6px #704c2c22;
  cursor: pointer;
  padding: 12px 32px;
  margin: 8px 0 0 0;
  outline: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.17s, color 0.17s, transform 0.19s, box-shadow 0.22s;
}
.cta-btn:hover, button:hover, .mobile-menu-toggle:hover, .mobile-menu-close:hover {
  background: #d55800;
  color: #ffe066;
  transform: translateY(-3px) scale(1.022) rotate(-1.5deg);
  box-shadow: 0 6px 24px -2px #fca17d66;
}
.cta-btn:focus { outline: 2px solid #27496d; background: #ffbd39; color: #2e2d27; }
.cta-btn:active { background: #a7551b; color: #ffe066; }

/* Link button style for nav/footer */
.footer-nav a, .mobile-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  border-radius: 12px 18px 12px 18px/10px 10px 12px 10px;
  font-weight: 600;
  padding: 5px 16px;
  transition: background 0.15s, color 0.15s;
}
.footer-nav a:hover, .mobile-nav a:hover {
  background: #ffe066;
  color: #2e2d27;
}

/* =============== HEADER & MAIN NAVIGATION =============== */
header {
  background: var(--retro-blue);
  box-shadow: 0 2px 16px 0 #2e2d2730;
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 14px 0 10px 0;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #ffe066;
  font-size: 1.07rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 7px 14px;
  border-radius: 14px 26px 12px 18px/10px 8px 10px 10px;
  transition: background 0.15s, color 0.15s;
}
.main-nav > a:hover {
  background: #fca17d;
  color: #2e2d27;
}
.main-nav img {
  display: block;
  height: 38px;
  margin-right: 18px;
}
.main-nav .cta-btn {
  margin-left: auto;
  background: #ffbd39;
  color: #2e2d27;
  box-shadow: 0 2px 0px #ffe066, 0 4px 16px -6px #704c2c22;
  font-size: 1.08rem;
}
.main-nav .cta-btn:hover {
  background: #27496d;
  color: #ffe066;
}

/* =============== MOBILE NAVIGATION =============== */
.mobile-menu-toggle {
  display: none;
  background: #ffe066;
  color: #2e2d27;
  border-radius: 40px 16px 40px 16px/18px 30px 16px 30px;
  font-size: 2.1rem;
  padding: 6px 20px 6px 16px;
  margin: 7px 12px 7px auto;
  border: 0;
  box-shadow: 0 2px 10px 0 #27496d20;
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 150;
  line-height: 1;
}
.mobile-menu-close {
  background: #ffbd39;
  color: #2e2d27;
  border-radius: 30px 14px 30px 14px/18px 30px 14px 22px;
  font-size: 2.4rem;
  border: none;
  box-shadow: 0 2px 8px 0 #fca17d20;
  cursor: pointer;
  margin: 18px 24px 4px auto;
  display: block;
  transition: background 0.15s, color 0.18s, transform 0.17s;
}
.mobile-menu-close:hover {
  background: #fca17d;
  color: #fff;
  transform: rotate(-8deg) scale(1.12);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 2000;
  background: #f9fafc;
  box-shadow: -3px 0 32px 0 #a8795440;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.95,.05,.5,1.2);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 32px;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-nav {
  margin: 42px 18px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #27496d;
  font-weight: 700;
  background: transparent;
  padding: 9px 18px;
  border-radius: 12px 24px 12px 22px/12px 10px 8px 30px;
}
.mobile-nav a:hover { background: #ffe066; color: #d55800; }

@media (max-width: 1150px) {
  .main-nav { gap: 12px; }
  .main-nav .cta-btn { margin-left: 12px; }
}
@media (max-width: 1024px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  .main-nav { gap: 8px; }
  .main-nav .cta-btn { margin-left: 6px; }
}
@media (max-width: 880px) {
  .main-nav > a:not(:first-child):not(.cta-btn) { font-size: .99rem; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .mobile-menu { display: flex; }
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu.open { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* =============== CARDS, CONTACT, MAPS =============== */
.contact-info {
  background: #fff6e6;
  border-radius: 12px 24px 22px 36px;
  padding: 18px 24px;
  box-shadow: 0 4px 18px 0 #27496d12;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #2e2d27;
  font-size: 1rem;
}
.contact-info h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 6px;
}
.contact-info img {
  height: 19px;
  width: auto;
  vertical-align: middle;
  margin-right: 7px;
  display: inline-block;
}
.map-section {
  margin: 10px 0 0 0;
}

/* =============== FOOTER =============== */
footer {
  background: #f9e6c9;
  padding: 38px 0 26px 0;
  box-shadow: 0 -3px 38px -11px #704c2c22;
  border-top: 4px dotted #ffe066;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
  gap: 34px;
  justify-content: space-between;
}
footer .content-wrapper > div img {
  height: 40px;
  margin-bottom: 10px;
}
footer .cta-btn {
  background: #27496d;
  color: #ffe066;
  margin-bottom: 6px;
}
footer .cta-btn:hover { background: #fca17d; color: #27496d; }

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  footer { padding: 24px 0 12px 0; }
  footer .content-wrapper { gap: 8px; }
  footer .content-wrapper > div img { height: 30px; }
}

/* =============== COOKIE CONSENT BANNER =============== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 3000;
  background: #27496d;
  color: #fff6e6;
  box-shadow: 0 -3px 24px 0 #704c2c32;
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 1rem;
  animation: slideUp 0.54s cubic-bezier(.92,.05,.52,1.1);
}
@keyframes slideUp { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 14px 30px 14px 16px/12px 12px 10px 20px;
  border: none;
  box-shadow: 0 1.5px 6px 0 #ffe06644;
  background: #ffbd39;
  color: #2e2d27;
  margin-left: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.13s, color 0.11s, transform 0.12s;
}
.cookie-banner button.accept {
  background: #15635a;
  color: #ffe066;
}
.cookie-banner button.reject {
  background: #f26419;
  color: #fff;
}
.cookie-banner button.settings {
  background: #ffe066;
  color: #27496d;
}
.cookie-banner button:hover {
  background: #fca17d;
  color: #2e2d27;
  transform: scale(1.06) rotate(-2deg);
}

@media (max-width: 800px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* Cookie modal popup */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 4000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39,73,109,0.22);
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.28s cubic-bezier(.92,.05,.52,1.1);
}
#cookie-modal.open {
  display: flex;
}
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal__window {
  background: #fff6e6;
  color: #2e2d27;
  border-radius: 26px 42px 22px 34px/20px 12px 18px 20px;
  box-shadow: 0 4px 42px 0 #704c2c33;
  min-width: 322px;
  max-width: 92vw;
  padding: 34px 34px 30px 34px;
  position: relative;
  animation: slideDownModal 0.24s cubic-bezier(.92,.05,.52,1.1);
}
@keyframes slideDownModal { from { transform: translateY(-100px); opacity: 0.1;} to { transform: none; opacity: 1; } }
.cookie-modal__window h2 {
  font-size: 1.28rem;
  margin-bottom: 16px;
}
.cookie-modal__categories {
  margin: 18px 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-modal__category label {
  font-family: 'Roboto', Arial, sans-serif;
  color: #2e2d27;
  font-size: 1.04rem;
  font-weight: 500;
}
.cookie-modal__category input[type="checkbox"] {
  accent-color: #ffe066;
  width: 19px;
  height: 19px;
}
.cookie-modal__category.essential label {
  color: #82713f;
  font-weight: 700;
}
.cookie-modal__actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-modal__close {
  position: absolute;
  top: 8px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 2.1rem;
  color: #ffbd39;
  cursor: pointer;
  z-index: 2;
  transition: color 0.12s, transform 0.13s;
}
.cookie-modal__close:hover { color: #704c2c; transform: scale(1.08) rotate(4deg); }

/* =============== ANIMATIONS / MICRO-INTERACTIONS =============== */
.cta-btn, button, .card, .feature-grid > li, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.15s, background 0.13s, color 0.13s;
}
.testimonial-card:hover, .card:hover {
  box-shadow: 0 10px 32px 0 #fca17d33;
  background: #fff9df;
  transform: scale(1.03) rotate(-1deg);
}

/* Decorative corner dots for vintage accent */
.section::before {
  content: '';
  display: block;
  position: absolute;
  left: 16px;
  top: 17px;
  width: 18px;
  height: 18px;
  background: #ffe066;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fca17d44;
  opacity: 0.34;
  z-index: 0;
}
.section::after {
  content: '';
  display: block;
  position: absolute;
  right: 16px;
  bottom: 17px;
  width: 18px;
  height: 18px;
  background: #fca17d;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #ffe06644;
  opacity: 0.34;
  z-index: 0;
}

@media (max-width: 600px) {
  .section::before, .section::after { display: none; }
}

/* =============== FORM ELEMENTS & TABLES (if needed) =============== */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 14px 24px 14px 16px/12px 12px 10px 20px;
  border: 1.7px solid #ffe066;
  background: #fffdf8;
  color: #2e2d27;
  box-sizing: border-box;
  transition: border 0.16s;
  margin-bottom: 22px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #fca17d;
  background: #fffbe2;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  color: #704c2c;
  font-weight: 600;
}

/* =============== HELPER CLASSES =============== */
.mt-32 { margin-top: 32px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-48 { margin-bottom: 48px !important; }
.mb-24 { margin-bottom: 24px !important; }
.pt-24 { padding-top: 24px !important; }
.pb-24 { padding-bottom: 24px !important; }
.text-center { text-align: center !important; }


/* =============== SCROLLBARS (Vintage style) =============== */
::-webkit-scrollbar {
  width: 10px;
  background: #ffe066;
}
::-webkit-scrollbar-thumb {
  background: #fca17d;
  border-radius: 12px;
  border: 2px solid #ffe066;
}
::-webkit-scrollbar-thumb:hover {
  background: #ffbd39;
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #fca17d #ffe066;
}

/* ================= END STENDPROFI VINTAGE RETRO CSS ================ */
