/* ============================================================
   Spotless Crest – vintage_retro CSS Theme
   Author: Professional CSS/UI Team
   ------------------------------------------------------------
   - CSS Reset and Normalize
   - Font, Color, and Typography (Retro/Vintage)
   - Consistent Brand Spacing, Flexbox Patterns Only
   - Responsive (Mobile-first)
   - Interactive UI: Mobile Menu & Cookie Consent
   - Color contrast for testimonials
   ============================================================ */

/* RESET/NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, svg {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  background: #f4f2ee;
  color: #312B23;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  position: relative;
}

/* ============================================================
   VINTAGE RETRO BRAND VARIABLES (using fallback for CSS vars)
   ============================================================ */
:root {
  --primary: #284067;
  --secondary: #7AB48C;
  --accent: #F4F7FB;
  --vintage-yellow: #F5D375;
  --vintage-orange: #EB7D47;
  --vintage-red: #BF2431;
  --vintage-blue: #5079A3;
  --vintage-bg: #f4f2ee;
  --vintage-dark: #312B23;
  --border: #e3dacb;
  --shadow: 0 4px 24px rgba(44,32,14,0.10);
  --radius: 12px;
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Georgia', 'serif';
}

/* ============================================================
   TYPOGRAPHY (RETRO/VINTAGE)
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 #fff7e1, 0 1px 8px rgba(44,32,14,0.05);
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 20px;
  line-height: 1.14;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  position: relative;
  line-height: 1.18;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}
p, ul, ol, li {
  font-family: var(--font-body);
  color: var(--vintage-dark);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
strong {
  font-weight: 700;
}

.text-section ul {
  padding-left: 20px;
  list-style: disc inside;
  margin-bottom: 10px;
}
.text-section ul li {
  margin-bottom: 10px;
}

/* Decorative Underlines and Patterns on Headings */
h2:after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--vintage-yellow);
  border-radius: 2px;
  margin-top: 8px;
}

/* ============================================================
   CONTAINERS & SPACING
   ============================================================ */

.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(251,246,232,0.73);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-wrapper {
  margin: 0 auto;
  max-width: 900px;
  padding: 20px 0;
}

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

.features-grid, .service-list, .blog-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.features-grid > div, .service-list > div, .blog-posts > div {
  flex: 1 1 260px;
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 240px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

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

.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;
}

.contact-details, .contact-details-short {
  background: #fffbe8;
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 1.06rem;
}

.map-placeholder {
  background: repeating-linear-gradient(
  45deg, #f0e6cd, #f0e6cd 8px, #efd798 8px, #efd798 16px);
  color: var(--primary);
  border: 2px dashed #bca97e;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 20px;
  text-align: center;
  margin-top: 18px;
}

.newsletter-section {
  background: #EEE4CD;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 32px 20px;
}

/* ============================================================
   HEADER & NAVIGATION (DESKTOP)
   ============================================================ */
header {
  background: #F4F3E9;
  box-shadow: 0 2px 10px rgba(44,32,14,0.06);
  border-bottom: 5px solid var(--vintage-yellow);
}
nav > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 72px;
  padding: 10px 0;
}
nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 24px;
}
nav ul li a {
  font-family: var(--font-display);
  font-size: 1.07rem;
  letter-spacing: 0.06em;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 7px;
  transition: background 0.16s, color 0.16s;
}
nav ul li a:hover, nav ul li a:focus {
  background: var(--vintage-yellow);
  color: var(--vintage-red);
}
header .button {
  margin-left: 32px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 8px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--vintage-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.10rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 7px;
  padding: 12px 34px;
  margin: 14px 6px 8px 0;
  border: none;
  box-shadow: 0 2px 8px rgba(44,32,14,0.11);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.19s;
}
.button:hover, .button:focus {
  background: var(--vintage-yellow);
  color: var(--vintage-dark);
  box-shadow: 0 6px 24px rgba(44,32,14,0.18),0 0 0 2px var(--primary) inset;
}
.button.primary {
  background: var(--primary);
  color: #fff;
}
.button.primary:hover, .button.primary:focus {
  background: var(--vintage-orange);
  color: #fff;
}

/* Price Tag */
.price {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--vintage-blue);
  background: #fffdfa;
  padding: 5px 13px;
  border-radius: 5px;
  border: 2px solid var(--vintage-yellow);
  box-shadow: 0 2px 6px 0 rgba(229,180,50,0.07);
  font-size: 1rem;
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  background: repeating-linear-gradient(135deg, #f5ead7 0 30px, #ebe0c9 30px 56px);
  padding: 64px 0 48px 0;
  margin-bottom: 0;
  border-bottom: 5px solid var(--vintage-yellow);
  box-shadow: 0 8px 32px rgba(242,215,128,0.10);
}
.hero h1 {
  color: var(--vintage-red);
  font-size: 2.6rem;
  text-shadow: 0 5px 0 #fff59e, 0 6px 32px rgba(228, 168, 50, 0.15);
}
.hero p {
  font-size: 1.18rem;
  color: var(--primary);
}
.hero .button {
  margin-top: 28px;
}

/* ============================================================
   TESTIMONIALS & CARDS
   ============================================================ */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fffbe8;
  border-radius: var(--radius);
  border: 2px solid var(--vintage-yellow);
  box-shadow: 0 2px 22px rgba(204,138,33,0.11);
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 420px;
  color: #332716;
}
.testimonial-card p {
  font-size: 1.06rem;
  color: #332716;
  margin-bottom: 9px;
}
.testimonial-card span {
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #F4F3E9;
  border-top: 5px solid var(--vintage-yellow);
  margin-top: 60px;
  padding: 32px 0 18px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
footer img {
  height: 36px;
  width: auto;
}
footer nav {
  font-size: 1rem;
  font-family: var(--font-body);
}
footer nav a {
  margin: 0 10px;
  color: var(--primary);
  transition: color 0.13s;
}
footer nav a:hover {
  color: var(--vintage-red);
}
footer p {
  color: var(--vintage-dark);
  font-size: 0.98rem;
  opacity: 0.85;
}

/* ============================================================
   MOBILE NAVIGATION - BURGER MENU
   ============================================================ */
.mobile-menu-toggle {
  position: fixed;
  top: 20px;
  right: 22px;
  z-index: 1101;
  background: var(--vintage-yellow);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 7px;
  padding: 10px 18px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 18px rgba(44, 32, 14, 0.16);
  display: none;
  transition: background 0.18s, box-shadow 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--vintage-orange);
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fbf9ec;
  box-shadow: 2px 0 34px 0 rgba(84,65,24,0.15);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.61,-0.39,.85,1.23);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 20px 0 28px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: var(--vintage-yellow);
  color: var(--primary);
  border: none;
  border-radius: 7px;
  padding: 6px 16px;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(44,32,14,0.09);
  transition: background 0.14s;
  z-index: 2200;
}
.mobile-menu-close:hover {
  background: var(--vintage-orange);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.2rem;
  padding: 12px 6px;
  border-radius: 5px;
  background: transparent;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--vintage-red);
  background: var(--vintage-yellow);
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #FFFBE8;
  border-top: 3px solid var(--vintage-yellow);
  box-shadow: 0 -2px 22px rgba(44,32,14,0.07);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 18px 12px;
  gap: 16px;
  font-size: 1rem;
  animation: cookieSlideIn 0.5s cubic-bezier(.55,.06,.68,1.12);
}
@keyframes cookieSlideIn {
  from {transform: translateY(120px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner .cookie-message {
  flex: 3 1 180px;
  color: var(--primary);
  font-family: var(--font-body);
  padding-right: 16px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-banner .button {
  font-size: 0.97rem;
  padding: 8px 22px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(44,32,14,0.07);
  margin: 0;
}
.cookie-banner .button-settings {
  background: var(--vintage-orange);
  color: #fff;
}
.cookie-banner .button-settings:hover {
  background: var(--primary);
  color: #fff;
}

/* Cookie MODAL */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 4000;
  inset: 0;
  background: rgba(44,32,14,0.25);
  display: none;
  align-items: center;
  justify-content: center;
  animation: cookieBackdrop 0.35s;
}
.cookie-modal-backdrop.open {
  display: flex;
}
@keyframes cookieBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #FFFBE8;
  border-radius: var(--radius);
  border: 2.5px solid var(--vintage-yellow);
  max-width: 410px;
  width: 97vw;
  box-shadow: 0 8px 38px rgba(242,185,61,0.15);
  padding: 40px 20px 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalIn 0.33s cubic-bezier(.43,.73,.54,1.08);
}
@keyframes modalIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.45rem;
  text-shadow: none;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 1.09rem;
  color: var(--vintage-dark);
  flex: 1;
}
.cookie-category input[type=checkbox]:not(:disabled) {
  accent-color: var(--primary);
  width: 19px;
  height: 19px;
}
.cookie-category input:disabled {
  opacity: 0.28;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 17px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions .button {
  padding: 9px 24px;
  font-size: 1rem;
}
.cookie-modal .button-close {
  position: absolute;
  top: 22px; right: 24px;
  background: var(--vintage-yellow);
  color: var(--primary);
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    width: 100%;
    padding: 0 8px;
  }
  nav ul {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .features-grid > div, .service-list > div, .blog-posts > div, .testimonial-card {
    min-width: 200px;
    flex: 1 1 290px;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 44px 0 16px 0;
  }
  .container {
    padding: 0 4vw;
  }
  .section {
    margin-bottom: 34px;
    padding: 26px 7px;
  }
  .content-wrapper {
    padding: 12px 0;
  }
  h1 {
    font-size: 1.68rem;
  }
  h2 {
    font-size: 1.18rem;
    margin-bottom: 12px;
  }
  .features-grid, .service-list, .blog-posts {
    flex-direction: column;
    gap: 18px;
  }
  .testimonials {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .footer .container, footer .container {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .newsletter-section {
    padding: 20px 5px;
  }
  .map-placeholder {
    padding: 10px;
    font-size: 0.99rem;
  }
  header nav > .container {
    flex-direction: row;
    align-items: flex-start;
  }
  nav ul,
  header .button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 460px) {
  .container {
    padding: 0 2vw;
  }
  .testimonial-card,
  .features-grid > div,
  .service-list > div {
    padding: 12px;
    min-width: unset;
  }
}

@media (max-width: 400px) {
  h1 { font-size: 1.11rem; }
  h2 { font-size: 1.0rem; }
  .testimonial-card, .card, .newsletter-section {
    padding: 8px;
  }
}

/* Hide mobile menu overlay on desktop */
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  nav ul, header .button {
    display: flex !important;
  }
}

/* ============================================================
   MICRO-ANIMATIONS & INTERACTIONS
   ============================================================ */
.button, nav ul li a, .mobile-menu-toggle, .mobile-nav a {
  transition: background 0.16s, color 0.13s, box-shadow 0.14s;
}
.features-grid > div:hover {
  box-shadow: 0 6px 32px rgba(44,32,14,0.17);
  border-color: var(--vintage-orange);
  transform: translateY(-2px) scale(1.015);
  transition: box-shadow 0.17s, border-color 0.13s, transform 0.19s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 40px rgba(204,138,33,0.17);
  border-color: var(--vintage-orange);
  transition: box-shadow 0.19s, border-color 0.14s;
}

/* Cards slight pop on hover */
.card:hover {
  box-shadow: 0 8px 32px rgba(28,19,11,0.13);
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.007);
  transition: box-shadow 0.15s, border-color 0.12s, transform 0.13s;
}

/* ============================================================
   RETRO VISUAL ELEMENTS: Patterns, Borders etc
   ============================================================ */
.section, .card, .testimonial-card, .features-grid > div, .service-list > div {
  border-width: 2px;
  border-style: solid;
  border-image: repeating-linear-gradient(90deg,#F5D375 30%,#EB7D47 80%,#F5D375 100%) 1;
}
.card, .testimonial-card, .features-grid > div, .service-list > div {
  box-shadow: var(--shadow);
}

/* Decorative stripes for retro accent */
.section::before {
  content: '';
  display: block;
  width: 80px;
  height: 6px;
  background: repeating-linear-gradient(90deg,#EB7D47 0 20px,#F5D375 20px 40px);
  border-radius: 2px 20px 20px 2px;
  margin-bottom: 18px;
  opacity: 0.07;
}

/* Retro accent dots on cards */
.features-grid > div::after, .service-list > div::after {
  content: '';
  position: absolute;
  left: 80%; top: 0%;
  width: 22px; height: 22px;
  background: radial-gradient(circle, #F5D375 70%, #EB7D47 100%);
  border-radius: 50%;
  opacity: 0.11;
  pointer-events: none;
}

/* ============================================================
   MISC
   ============================================================ */
::-webkit-scrollbar {
  width: 10px; background: #e9e2ca;
}
::-webkit-scrollbar-thumb {
  border-radius: 6px; background: #e6c87c;
}

::selection { background: #F5D375; color: var(--vintage-dark); }

/* Extra utilities */
.text-center {text-align: center;}
.align-left {text-align: left;}
.align-right {text-align: right;}

/* End of CSS */
