/* ========================================================
   NEON THREADS BALANCE VINTAGE RETRO THEME CSS
   Comprehensive mobile-first, flexbox-only, retro-inspired styling
   ======================================================== */

/* -------- 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,
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 {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.55;
  background: #FFF9F3;
  color: #1B1C27;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  position: relative;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
button, .btn, .btn-primary {
  font-family: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  background: none;
}
ul, ol {
  list-style: none;
}

/* ----------- RETRO COLOR PALETTE ----------- */
:root {
  --primary: #182548;
  --secondary: #2EC4B6;
  --accent: #FFD166;
  --off-white: #FFF9F3;
  --retro-orange: #F76B43;
  --retro-caramel: #B9957B;
  --retro-mint: #ABE2C1;
  --retro-dark: #1A1613;
  --retro-green: #556B2F;
  --retro-aqua: #60A3AB;
  --retro-pink: #F7B7A3;
}

/* ----------- TYPOGRAPHY RETRO ----------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.015em;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.12;
}
h1 { font-size: 2.4rem; color: var(--retro-orange); text-shadow: 0 2px 0 #fff3ea, 0 4px 12px rgba(136,69,43,0.08); }
h2 { font-size: 2rem; color: var(--accent); text-shadow: 0 1px 0 #fff9c4; }
h3 { font-size: 1.25rem; color: var(--secondary); }
p, li, address, .copyright, label, input, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--retro-dark);
  margin-bottom: 12px;
}
p {
  line-height: 1.65;
  margin-bottom: 16px;
}
strong { font-weight: bold; }
em, i { font-style: italic; }

/* ----------- VINTAGE PATTERNS/BACKGROUND ----------- */
body {
  background-color: var(--off-white);
  background-image: repeating-linear-gradient(135deg, rgba(255,209,102,0.03) 0px, rgba(255,209,102,0.03) 8px, transparent 8px, transparent 28px);
}

header, footer {
  background: var(--primary);
  color: var(--accent);
  border-bottom: 6px solid var(--accent);
  position: relative;
}
footer {
  border-top: 6px solid var(--accent);
  border-bottom: none;
}

/* --------- CONTAINER/SECTIONS --------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(255,246,226,0.68);
  border-radius: 32px 8px 24px 8px;
  box-shadow: 0 4px 24px 0 rgba(65, 33, 10, 0.06);
}

/* ---------------- NAVIGATION --------------- */
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 18px 0;
  flex-wrap: wrap;
}
nav {
  display: flex;
  gap: 24px;
}
nav a {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  padding: 8px 4px;
  border-radius: 6px;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
header img {
  height: 56px;
  width: auto;
  margin-right: 12px;
  border-radius: 16px 32px 32px 8px;
  box-shadow: 0 4px 16px 0 rgba(255,173,102,0.07);
  background: #fff;
}


/* ------------- BUTTONS -------------- */
.btn-primary, a.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  border-radius: 16px 24px 8px 24px;
  box-shadow: 0 4px 12px rgba(32,32,32,0.07);
  letter-spacing: 0.08em;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 13px 32px;
  margin-top: 12px;
  margin-bottom: 4px;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
}
.btn-primary:hover, .btn-primary:focus, a.btn-primary:hover, a.btn-primary:focus {
  background: var(--secondary);
  color: var(--off-white);
  box-shadow: 0 6px 32px 0 rgba(45,153,145,0.17);
}
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  border-radius: 19px 10px 24px 10px;
  font-size: 2rem;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1100;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.3s;
  box-shadow: 0 2px 16px 0 rgba(32,32,32,0.12);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--off-white);
}
.mobile-menu-close {
  background: var(--accent);
  color: var(--primary);
  font-size: 2.2rem;
  border-radius: 24px 24px 6px 24px;
  align-self: flex-end;
  margin-top: 12px;
  margin-bottom: 30px;
  width: 48px;
  height: 48px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--off-white);
}


/* ----------- FEATURES GRID ------------ */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 12px;
  margin-bottom: 16px;
  row-gap: 28px;
}
.feature {
  background: #FFF6E2;
  border-radius: 24px 24px 24px 8px;
  box-shadow: 0 3px 16px 0 rgba(90, 55, 30, 0.07);
  padding: 22px 24px 24px 24px;
  flex: 1;
  min-width: 260px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  margin-bottom: 20px;
  border: 2px solid var(--accent);
  transition: box-shadow 0.16s, transform 0.18s;
}
.feature:hover {
  box-shadow: 0 6px 38px 0 rgba(247, 107, 67, 0.09);
  transform: scale(1.025);
}
.feature img {
  width: 44px;
  height: 44px;
  margin-bottom: 7px;
  filter: drop-shadow(0 2px 2px #fff7e2);
}
.feature h3 {
  font-size: 1.11rem;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  color: var(--retro-orange);
  margin-bottom: 7px;
  margin-top: 2px;
}

/* ----------- TESTIMONIALS ---------- */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  min-width: 240px;
  max-width: 350px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 24px 8px 24px 24px;
  box-shadow: 0 4px 14px 0 rgba(24,37,72,0.11);
  position: relative;
  font-size: 1.02rem;
  margin-bottom: 20px;
  border: 2px solid var(--secondary);
  transition: box-shadow 0.18s, transform 0.18s;
  z-index: 2;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 7px;
  font-style: italic;
  line-height: 1.5;
}
.testimonial-details {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.testimonial-card img {
  width: 63px;
  height: auto;
  align-self: flex-end;
  margin-top: 4px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px 0 rgba(241, 47, 0, 0.08);
  transform: scale(1.028) rotate(-1.5deg);
}

/* --------- CTA & CARDS --------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fcf4e4;
  border-radius: 24px 24px 10px 18px;
  box-shadow: 0 6px 22px 0 rgba(170, 102, 60, 0.08);
  border: 2px solid #ffd166a0;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

/* ----- FLEX CONTENT GRID & ALIGNMENTS ------ */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ----------- ADDRESS & FOOTER ----------- */
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 30px 0 20px 0;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--accent);
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 1.02rem;
  margin-bottom: 4px;
  letter-spacing: 0.06em;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
}
address {
  font-style: normal;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
address img {
  display: inline-block;
  height: 1.1em;
  margin-right: 6px;
}
.copyright {
  margin-top: 6px;
  color: #FFF6E2;
  font-size: 0.98rem;
}

/* ----------- LISTS & TEXT SECTIONS ----------- */
.text-section {
  background: #FFF6E2;
  border-radius: 14px 32px 14px 14px;
  border: 2px dashed #FFD16660;
  padding: 24px 18px;
  margin: 24px 0;
  box-shadow: 0 2px 10px 0 rgba(255,209,102,0.11);
}
.text-section ul {
  list-style-type: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}
.text-section li {
  font-size: 1rem;
  margin-bottom: 7px;
}
.text-section h2, .text-section h3 {
  margin-top: 10px;
}

/* ----------- GENERAL SPACING RULES ----------- */
section {
  margin-bottom: 60px;
  padding: 40px 0px;
}
section .container { padding-left: 0; padding-right: 0; }
@media(max-width: 600px) {
  section {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ----------- RESPONSIVE ADJUSTMENTS ----------- */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  nav { gap: 13px; }
  .features-grid { justify-content: flex-start; gap: 16px; }
  .footer-nav { gap: 11px; }
}
@media (max-width: 768px) {
  /* Layout stacks vertical on smaller screens */
  header .container, .content-wrapper, .footer-nav, .features-grid, .testimonials, .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
  }
  nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
  }
  .features-grid, .testimonials, .card-container, .content-grid { justify-content: flex-start; }
  .feature, .testimonial-card, .card {
    max-width: 100%;
    min-width: 0;
  }
}

/* ----------- MOBILE MENU ----------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--primary);
  color: var(--accent);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 30px 24px 10px 24px;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.55,0,0.1,1);
  box-shadow: -8px 0 44px 0 rgba(24,37,72,0.38);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu .mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 17px;
}
.mobile-nav a {
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  padding: 18px 0 9px 0;
  border-bottom: 1px solid var(--accent);
  transition: background 0.19s, color 0.19s;
  border-radius: 0 10px 10px 0;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle { display: none; }
}

/* ----------- COOKIE CONSENT BANNER ----------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--retro-caramel);
  color: var(--retro-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1800;
  padding: 24px 18px 22px 18px;
  box-shadow: 0 -8px 32px 0 rgba(106, 73, 24, 0.17);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  gap: 17px;
  transition: transform 0.38s cubic-bezier(0.55,0,0.1,1), opacity 0.26s;
}
.cookie-banner.hide {
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-btns {
  display: flex;
  gap: 18px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  background: var(--accent);
  color: var(--primary);
  font-weight: 900;
  font-size: 1.06rem;
  border-radius: 21px 17px 12px 21px;
  padding: 10px 22px;
  margin: 0 6px;
  box-shadow: 0 2px 10px 0 rgba(32,32,32,0.07);
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--secondary);
  color: var(--off-white);
}

/* ----------- COOKIE MODAL ----------- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,37,72,0.65);
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.29s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff9f3;
  border-radius: 24px 24px 10px 18px;
  box-shadow: 0 8px 44px 0 rgba(170, 102, 60, 0.11);
  min-width: 310px;
  max-width: 98vw;
  padding: 38px 26px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--retro-dark);
  position: relative;
}
.cookie-modal-title {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 7px;
}
.cookie-modal-section {
  margin-bottom: 14px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 6px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.06rem;
}
.cookie-modal-category input[type='checkbox'] {
  width: 21px;
  height: 21px;
  accent-color: var(--secondary);
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  align-items: center;
}
.cookie-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: var(--primary);
  font-size: 1.7rem;
  border-radius: 13px;
  width: 44px; height: 44px;
  text-align: center;
  line-height: 44px;
  border: none;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-close:hover, .cookie-close:focus {
  background: var(--secondary);
  color: var(--off-white);
}

/* ----------- FORMS & INPUT STYLES (if any used) ----------- */
input, textarea, select {
  border: 2px solid var(--accent);
  border-radius: 12px 24px 8px 12px;
  padding: 9px 14px;
  font-size: 1rem;
  outline: none;
  background: #fffce9;
  margin-bottom: 8px;
  transition: border-color 0.19s, box-shadow 0.17s;
  font-family: 'Open Sans', Arial, sans-serif;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  box-shadow: 0 4px 13px 0 rgba(46,196,182,0.07);
}
label {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 0.99rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

/* ------ RETRO MICRO-INTERACTIONS & DECORATIVE ------ */
h1, h2, h3, h4, h5, h6 {
  /* Slight text shadow or outline for retro feel */
  text-shadow: 0 2px 0 #fff4da, 0 4px 28px rgba(255, 209, 102, 0.18);
}
.feature:before, .testimonial-card:before {
  content: '';
  display: block;
  position: absolute;
  top: -12px;
  left: -12px;
  width: 32px;
  height: 32px;
  background: repeating-linear-gradient(-45deg, var(--accent), var(--accent) 7px, transparent 7px, transparent 14px);
  opacity: 0.19;
  border-radius: 9px 28px 16px 28px;
  z-index: 0;
}
.feature:after, .testimonial-card:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -16px;
  right: -14px;
  width: 22px;
  height: 22px;
  background: var(--retro-mint);
  opacity: 0.12;
  border-radius: 21px 8px;
  z-index: 0;
}

/* ------- GENERAL ANIMATIONS ------ */
.btn-primary, .cookie-banner button, .cookie-close, .mobile-menu-toggle {
  transition: box-shadow 0.22s, background 0.22s, color 0.15s;
}
section, .feature, .testimonial-card, .card, .cookie-banner, .cookie-modal-content {
  transition: box-shadow 0.23s, transform 0.19s, background 0.19s;
}

/* --------- MISC --------- */
::-webkit-scrollbar {
  width: 0.7em;
  background: #ffe7c5;
  border-radius: 70px;
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 70px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* ------ OVERRIDES FOR COLOR CONTRAST (TESTIMONIALS) ------ */
.testimonial-card, .testimonial-card p, .testimonial-details {
  background: var(--accent);
  color: var(--primary);
}

/* ------ Z-INDEX LAYERING ------ */
header { z-index: 100; }
.mobile-menu { z-index: 1200; }
.cookie-banner { z-index: 1800; }
.cookie-modal-overlay { z-index: 2001; }

/* ----------- NO GRID PROPERTIES ARE USED ----------- */
/* ----------- FLEXBOX ONLY LAYOUTS ----------- */
