/* ===========================================================
   CSS RESET & BASE STYLES
   =========================================================== */
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 {
  scroll-behavior: smooth;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  background: #F6F5F3;
  color: #212A37;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}
ul, ol {
  padding-left: 24px;
}
a {
  color: #B1805B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #212A37;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===========================================================
   VINTAGE RETRO BRAND STYLES
   =========================================================== */
:root {
  --color-primary: #212A37;
  --color-secondary: #B1805B;
  --color-accent: #F6F5F3;
  --color-dark: #212A37;
  --color-light: #FFF9EB;
  --color-cream: #F6F5F3;
  --color-card: #FFFDF7;
  --color-border: #DECFB0;
  --color-shadow: rgba(177,128,91,0.15);
  --color-focus: #D5AF5B;
  --color-retro-red: #A32C2C;
  --color-retro-green: #637B47;
  --color-retro-blue: #718CA1;
  --color-retro-yellow: #FFDF86;
}

@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'), url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
}
@font-face {
  font-family: 'Source Sans Pro';
  src: local('Source Sans Pro'), url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700&display=swap');
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', sans-serif;
  color: var(--color-primary);
  text-shadow: 0 2px 0 var(--color-retro-yellow), 0 4px 7px rgba(33,42,55,0.09);
  font-weight: 700;
}
h1 { font-size: 2.5rem; letter-spacing: -1px; margin-bottom: 12px; }
h2 { font-size: 1.75rem; margin-bottom: 8px; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
h4, h5, h6 { font-size: 1rem; }
p, li, ul, ol, span, div { font-family: 'Source Sans Pro', Arial, sans-serif; }
strong {
  font-weight: 700;
  color: var(--color-secondary);
}
body {
  background: repeating-linear-gradient(135deg, #FAF6EC 0, #FFF9EB 32px, #FAF6EC 64px);
}

/* ===========================================================
   HEADER / NAVIGATION STYLES
   =========================================================== */
header {
  background: var(--color-light);
  border-bottom: 3px double var(--color-border);
  box-shadow: 0 5px 18px -7px var(--color-shadow);
  z-index: 200;
  position: relative;
}
header .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 20px 12px;
}
.logo img {
  height: 54px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 0.06em;
  padding: 5px 0;
  border-radius: 2px;
  background: none;
  transition: color 0.2s, box-shadow 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-primary);
  text-shadow: 0 2px rgba(255,223,134, 0.5);
  box-shadow: 0 2px 0 0 var(--color-retro-yellow);
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 24px;
  padding: 9px 26px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  box-shadow: 0 2px 20px -7px var(--color-shadow);
  transition: background .18s, color .18s, transform .17s;
  border: 2px solid var(--color-primary);
  outline: none;
  margin-left: 18px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-retro-yellow);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.03);
  border-color: var(--color-secondary);
}
.cta-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: var(--color-retro-red);
  background: none;
  padding: 0 6px;
  border-bottom: 2px dotted var(--color-retro-red);
  transition: color .18s, border-bottom .16s;
  cursor: pointer;
}
.cta-link:hover, .cta-link:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}

/* ===============
   MOBILE NAVIGATION
   =============== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-retro-red);
  color: #fff;
  font-size: 2rem;
  border: none;
  padding: 8px 18px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.18s, color 0.17s, box-shadow .18s;
  box-shadow: 0 2px 10px -2px var(--color-shadow);
  z-index: 201;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-focus);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background: var(--color-primary);
  color: #fff;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 205;
  padding: 0;
  min-width: 230px;
  min-height: 100vh;
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(0.84, 0.11, 0.11, 0.99), opacity 0.18s;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2.3rem;
  margin: 18px 18px 10px 0;
  cursor: pointer;
  line-height: 1;
  transition: background .16s, color .16s, transform .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-retro-yellow);
  color: var(--color-primary);
  transform: scale(1.1);
  outline: 2px solid var(--color-retro-yellow);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 24px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: #fff;
  background: none;
  padding: 14px 30px;
  width: 100%;
  border-radius: 2px;
  transition: background 0.2s, color 0.18s;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-retro-yellow);
  outline: none;
}
@media (max-width: 1020px) {
  header .container {
    flex-wrap: wrap;
    gap: 12px;
  }
}
@media (max-width: 862px) {
  .main-nav {
    display: none;
  }
  .cta-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 540px) {
  .logo img { height: 38px; }
  header .container { padding: 9px 10px 6px; }
  .mobile-menu-toggle { padding: 5px 8px; font-size: 1.7rem; }
}

/* ==============================================================
   SECTION, CARD & FLEXBOX LAYOUTS (MANDATORY FLEX SPACING & GAPS)
   ============================================================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-card);
  border-radius: 14px;
  box-shadow: 0 4px 20px -7px var(--color-shadow);
  border: 2px solid var(--color-border);
  position: relative;
  transition: transform 0.17s, box-shadow 0.18s, background 0.18s;
}
.card:hover, .card:focus-within {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 30px -7px var(--color-shadow);
  background: var(--color-retro-yellow);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFFDF7;
  border-radius: 17px;
  border: 2px dashed var(--color-retro-blue);
  margin-bottom: 20px;
  box-shadow: 0 4px 16px -8px var(--color-shadow);
  position: relative;
  max-width: 510px;
  font-size: 1.08rem;
  color: var(--color-dark);
}
.testimonial-card p {
  margin-bottom: 6px;
  color: var(--color-dark);
  font-style: italic;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}
.testimonial-card span {
  color: var(--color-secondary);
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  margin-left: auto;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-cream);
  padding: 28px 24px 20px 24px;
  border-radius: 14px;
  border: 2px solid var(--color-retro-yellow);
  min-width: 220px;
  min-height: 230px;
  transition: box-shadow 0.18s, transform 0.18s, background 0.17s;
}
.feature-item:hover, .feature-item:focus-within {
  background: var(--color-light);
  box-shadow: 0 7px 25px -10px var(--color-shadow);
  transform: scale(1.025) rotate(-1deg);
}
.feature-item img { width: 48px; height: 48px; filter: sepia(.14) contrast(1.2); }
.feature-item h3 { font-size: 1.19rem; font-weight: 700; }

@media (max-width: 860px) {
  .content-grid { flex-direction: column; gap: 22px; }
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
  .card-container { gap: 14px; }
  .testimonial-card { max-width: 99vw; }
}

/* ===============
   HOME: HERO SECTION & CTA BANNER
   =============== */
.hero {
  padding-top: 64px;
  padding-bottom: 44px;
  background: repeating-linear-gradient(135deg, #F6F5F3 0, #FFDF86 42px, #F6F5F3 84px);
  border-bottom: 5px double var(--color-retro-yellow);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  max-width: 670px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.7rem;
  color: var(--color-secondary);
  text-shadow: 0px 1.5px #FFDF86, 0 10px 26px #B1805B33;
  margin-bottom: 12px;
  line-height: 1.13;
  letter-spacing: -1px;
}
.hero p {
  font-size: 1.19rem;
  color: var(--color-primary);
  margin-bottom: 18px;
}
.cta-banner {
  background: var(--color-retro-blue);
  padding: 42px 20px 44px 20px;
  border-radius: 18px;
  box-shadow: 0 7px 30px -14px var(--color-shadow);
}
.cta-banner h2 {
  color: #fff;
  font-size: 2rem;
  text-shadow: 0 2px 8px rgba(33,42,55,0.15);
}
.cta-banner p { color: #fff; }
.cta-banner .cta-primary {
  background: #fff;
  color: var(--color-secondary);
  border-color: #fff;
  margin-top: 20px;
}
.cta-banner .cta-primary:hover, .cta-banner .cta-primary:focus {
  background: var(--color-secondary);
  color: #fff;
}

@media (max-width: 540px) {
  .hero h1 { font-size: 1.4rem; }
  .hero { padding: 30px 0 28px 0; }
  .cta-banner { padding: 24px 8px 28px 8px; }
}

/* ===============
   FEATURES/ABOUT/SERVICES
   =============== */
.features {
  background: var(--color-card);
  padding: 40px 20px 50px 20px;
  border-radius: 14px;
  margin-bottom: 60px;
  box-shadow: 0 4px 32px -15px var(--color-shadow);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-start;
}
@media (max-width: 780px) {
  .feature-grid { flex-direction: column; gap: 18px; }
  .feature-item { min-width: unset; width: 100%; }
}

.services-preview .service-list,
.service-list ul, .categories-list, .faq-list, .blog-teasers {
  padding-left: 0;
  margin-bottom: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.services-preview .service-list li,
.service-list ul li, .categories-list li, .faq-list li, .blog-teasers li {
  background: #FFFDF7;
  border-left: 6px solid var(--color-retro-yellow);
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 1.08rem;
  box-shadow: 0 2.5px 18px -7px var(--color-shadow);
}
.services-preview .service-list li strong,
.service-list ul li strong { color: var(--color-retro-green); }

/* ===============
   TESTIMONIALS
   =============== */
.testimonial-highlight {
  background: repeating-linear-gradient(112deg, #FFDF86 0, #FFFDF7 80px, #FFDF86 160px);
  border-radius: 17px;
  box-shadow: 0 5px 16px -8px var(--color-shadow);
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 20px;
  flex-direction: row;
}
@media (max-width: 860px) {
  .testimonial-slider { flex-direction: column; gap: 16px; }
}

/* ===============
   FOOTER
   =============== */
footer {
  background: var(--color-primary);
  color: #fff;
  margin-top: 50px;
  border-top: 5px double var(--color-retro-yellow);
  box-shadow: 0 -10px 36px -8px var(--color-shadow);
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1rem;
}
footer .container {
  gap: 22px;
  padding: 36px 20px 18px 20px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 27px;
}
.footer-top .logo img { height: 33px; }
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.footer-nav a {
  color: #FFDF86;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.83;
  letter-spacing: 0.01em;
  transition: color 0.18s, opacity 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  opacity: 1;
}
.footer-bottom {
  margin-top: 14px;
  color: #FFD48C;
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (max-width: 700px) {
  .footer-top { flex-direction: column; gap: 11px; }
}

/* ===========================================================
   LEGAL TEXT & GENERIC FORMATTING
   =========================================================== */
.legal-text {
  background: #FFFAF1;
  border-radius: 12px;
  padding: 38px 19px 34px 19px;
  margin-bottom: 42px;
  color: var(--color-primary);
  font-size: 1.08rem;
  line-height: 1.65;
  box-shadow: 0 3.5px 13px -8px var(--color-shadow);
}
.legal-text h1, .legal-text h2 {
  color: var(--color-retro-red);
  text-shadow: 0 3px 0 #FFDF86;
}
.legal-text ul li {
  background: none;
  border: none;
  padding: 0 0 0 16px;
  box-shadow: none;
}

/* ===========================================================
   RESPONSIVE DESIGN (MOBILE-FIRST / TABLET / DESKTOP)
   =========================================================== */
@media (max-width: 630px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.1rem; }
  .section, section { padding: 20px 4px; margin-bottom: 30px; }
  .feature-item, .services-preview .service-list li,
  .service-list ul li, .categories-list li, .faq-list li, .blog-teasers li {
    font-size: 0.97rem;
    padding: 10px 8px;
  }
  .card, .testimonial-card { padding: 10px; }
  .container { padding: 0 7px; }
  .footer-bottom { font-size: 0.83rem; }
  .testimonial-highlight,
  .features { padding: 18px 3px 26px 3px; margin-bottom: 26px; }
}

/* ===========================================================
   ANIMATIONS & MICRO-INTERACTIONS
   =========================================================== */
a, button, .cta-primary, .cta-link, .feature-item, .card {
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-focus);
  background: #FFFBE2;
}

/* ===========================================================
   COOKIE CONSENT BANNER
   =========================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 2500;
  background: var(--color-retro-yellow);
  color: var(--color-dark);
  box-shadow: 0 -4px 24px 0 var(--color-shadow);
  padding: 20px 20px 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.05rem;
  border-top: 3px solid var(--color-secondary);
  animation: cookieSlideUp 0.5s cubic-bezier(0.7,0.21,0.23,1.1);
}
@keyframes cookieSlideUp {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 7px 22px;
  border-radius: 22px;
  border: 2px solid var(--color-secondary);
  cursor: pointer;
  margin-right: 0;
  background: #fff;
  color: var(--color-secondary);
  box-shadow: 0 2px 12px -6px var(--color-shadow);
  transition: background 0.15s, color 0.17s, border-color 0.17s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-retro-yellow);
  color: var(--color-primary);
  border-color: var(--color-dark);
  outline: none;
}
.cookie-banner .cookie-settings-btn {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-primary);
}
.cookie-banner .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--color-retro-red);
  color: #fff;
  border-color: var(--color-retro-red);
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 2600;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(33,42,55,0.51);
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: cookieModalAppear 0.35s cubic-bezier(.7,0.38,0.13,1.09);
}
.cookie-modal.active {
  display: flex;
}
@keyframes cookieModalAppear {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #FFFDF7;
  color: var(--color-primary);
  border-radius: 16px;
  padding: 32px 26px;
  min-width: 320px;
  min-height: 260px;
  box-shadow: 0 7px 40px -15px var(--color-shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieContentIn .34s cubic-bezier(.7,0.8,.22,1);
}
@keyframes cookieContentIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}
.cookie-modal-content h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-retro-red);
  font-size: 1.22rem;
  margin-bottom: 8px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 22px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 0 0 0;
}
.cookie-category label {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  cursor: pointer;
}
.cookie-category input[type="checkbox"]:disabled + label {
  opacity: 0.54;
}
.cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  color: var(--color-retro-red);
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
  padding: 3px;
  border-radius: 18px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-secondary);
  outline: 1px solid var(--color-retro-yellow);
}

@media (max-width: 500px) {
  .cookie-modal-content { padding: 18px 6px; min-width: unset; }
}

/* ===========================================================
   UTILS / GENERICS / ETC.
   =========================================================== */
.section { margin-bottom: 60px; padding: 40px 20px; }
/* Already included above in section styles for DRYness. */

/* Misc utility for visually hidden (for a11y) */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Visual retro touches (corners, small lines, etc) */
.feature-item, .card, .testimonial-card, .legal-text, .cookie-modal-content {
  border-radius: 14px 18px 17px 13px;
  border-style: solid;
  border-width: 2px;
  border-color: var(--color-border);
}

/* Small underline pattern for retro sections */
.section > h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: var(--color-retro-yellow);
  border-radius: 3px 3px 8px 8px;
  margin: 13px 0 0 0;
}

/* ===========================================================
   END OF CSS FILE
   =========================================================== */
