/* --- 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, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; font: inherit; padding: 0; cursor: pointer; }

/* --- ROOT VARIABLES (RETRO COLOR PALETTE, RETRO ACCENTS) --- */
:root {
  --color-primary: #B71570;
  --color-primary-dark: #871050;
  --color-secondary: #23343B;
  --color-accent: #F8EEDB;
  --color-accent-dark: #E7D4B0;
  --color-bg: #F8EEDB;
  --color-bg-section: #f0e5cf;
  --color-white: #FFF;
  --color-black: #171717;
  --color-grey: #786B5A;
  --color-shadow: rgba(35,52,59,0.08);
  --color-input-bg: #F8EEDB;
  --color-retro-blue: #6A8CA0;
  --color-retro-yellow: #E9B24C;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;

  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-round: 50px;
  --shadow-card: 0 4px 24px var(--color-shadow);
  --shadow-sm: 0 2px 6px rgba(35,52,59,0.04);
}

/* --- BASE TYPOGRAPHY & VINTAGE EFFECTS --- */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-secondary);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  text-shadow: 0 2px 0 var(--color-accent-dark), 0 1px 4px #c1bca2;
  letter-spacing: 0.015em;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }

p, li, ul, ol, blockquote {
  font-family: var(--font-body);
  color: var(--color-grey);
  font-size: 1rem;
  margin-bottom: 12px;
}
strong {
  color: var(--color-secondary);
  font-weight: 600;
  font-family: var(--font-display);
}
blockquote {
  border-left: 5px solid var(--color-retro-yellow);
  padding-left: 16px;
  margin: 24px 0;
  font-style: italic;
  background: var(--color-accent);
  border-radius: var(--border-radius-sm);
}

ul, ol {
  margin-left: 28px;
}
ul li, ol li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 15px;
}
ul li::before {
  content: '';
  display: inline-block;
  background: var(--color-retro-blue);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: .67em;
}
ol li::before {
  display: none;
}
a {
  color: var(--color-primary);
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* --- LAYOUT AND SPACING --- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}
.content-wrapper {
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
  align-items: stretch;
}
.card {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
  border: 2px solid var(--color-retro-yellow);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(35,52,59,0.14);
  transform: translateY(-5px) scale(1.03);
}
.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;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 7px solid var(--color-primary);
  color: var(--color-secondary);
}
.testimonial-card p {
  color: var(--color-black);
  font-weight: 500;
  font-size: 1.08rem;
}
.testimonial-card strong {
  color: var(--color-primary);
  font-weight: 700;
  margin-left: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.ratings {
  margin: 34px 0 10px 0;
  font-family: var(--font-display);
  color: var(--color-primary);
  background: var(--color-accent);
  padding: 14px 20px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  display: inline-block;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

/* --- HEADER/NAVIGATION --- */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 0;
  z-index: 22;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header nav {
  display: flex;
  gap: 24px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-secondary);
  background: none;
  padding: 4px 12px 4px 0;
  position: relative;
  transition: color 0.22s;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-primary);
}
header a.cta {
  margin-left: 8px;
}

header img {
  max-height: 46px;
  width: auto;
  margin-right: 20px;
}

/* --- CTA BUTTONS / LINKS --- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 38px;
  background: var(--color-primary);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: var(--border-radius-round);
  box-shadow: var(--shadow-card);
  border: 2px solid var(--color-primary-dark);
  transition: background 0.22s, color 0.18s, transform 0.17s;
  margin-top: 12px;
  cursor: pointer;
}
.cta.primary {
  background: var(--color-primary);
  border-color: var(--color-primary-dark);
  color: var(--color-accent);
}
.cta.primary:hover,
.cta.primary:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.02);
}
.cta.secondary {
  background: var(--color-retro-yellow);
  color: var(--color-secondary);
  border: 2px solid var(--color-retro-yellow);
}
.cta.secondary:hover,
.cta.secondary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* --- FOOTER --- */
footer {
  background: var(--color-secondary);
  color: var(--color-accent);
  padding: 48px 0 30px 0;
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
footer img {
  max-height: 40px;
  margin-right: 18px;
}
footer nav {
  display: flex;
  gap: 14px;
}
footer nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  opacity: .90;
  transition: color .17s;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--color-retro-yellow);
}
footer p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--color-accent-dark);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 2.2rem;
  color: var(--color-secondary);
  background: var(--color-retro-yellow);
  border-radius: 50%;
  margin-left: 14px;
  transition: background 0.22s, color 0.22s;
  position: relative;
  z-index: 45;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.37s cubic-bezier(0.82,0,0.27,1);
  box-shadow: 0 4px 56px rgba(35,35,41,0.2);
  padding-top: 16px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--color-primary);
  background: var(--color-accent);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: 0 0 18px 20px;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-retro-yellow);
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-left: 30px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.27rem;
  font-family: var(--font-display);
  font-weight: 700;
  background: none;
  padding: 11px 0 11px 0;
  border-bottom: 1px solid var(--color-retro-blue);
  width: fit-content;
  outline: none;
  transition: color 0.21s, background 0.19s;
  border-radius: var(--border-radius-sm);
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* Hide main nav and show burger on mobile */
@media (max-width: 900px) {
  header nav,
  header a.cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  header nav,
  header a.cta.primary {
    display: inline-flex;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  z-index: 1500;
  background: var(--color-bg-section);
  box-shadow: 0 -6px 38px rgba(90,70,59,0.08);
  border-top: 2px solid var(--color-primary);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 24px 20px;
  font-size: 1rem;
  line-height: 1.6;
  font-family: var(--font-body);
  animation: cb-slideup 0.6s cubic-bezier(0.68,0.02,0.56,1.03);
}
@keyframes cb-slideup {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  flex: 1 1 auto;
  max-width: 730px;
  color: var(--color-secondary);
}
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 24px;
  border-radius: var(--border-radius-round);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  background: var(--color-retro-blue);
  color: var(--color-white);
  transition: background 0.17s, color 0.17s, border 0.16s;
}
.cookie-btn.accept {
  background: var(--color-primary);
  border-color: var(--color-primary-dark);
  color: var(--color-accent);
}
.cookie-btn.accept:hover { background: var(--color-secondary); color: var(--color-accent);} 
.cookie-btn.reject {
  background: var(--color-retro-yellow);
  color: var(--color-secondary);
  border-color: var(--color-retro-yellow);
}
.cookie-btn.reject:hover { background: var(--color-primary); color: var(--color-accent);  }
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-retro-blue);
}
.cookie-btn.settings:hover { background: var(--color-retro-blue); color: var(--color-white); }

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 2500;
  background: rgba(35,52,59,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cb-overlay-fade 0.38s;
}
@keyframes cb-overlay-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 34px 30px 28px 30px;
  max-width: 98vw;
  width: 430px;
  box-shadow: 0 8px 60px rgba(35,52,59,0.18);
  font-family: var(--font-body);
  color: var(--color-secondary);
  position: relative;
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.42rem;
  margin-bottom: 20px;
  font-family: var(--font-display);
  text-align: left;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 1.5rem;
  background: var(--color-accent);
  color: var(--color-secondary);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: var(--color-retro-yellow);
  color: var(--color-primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 13px 0 13px 5px;
  border-bottom: 1px solid var(--color-accent-dark);
}
.cookie-modal .cookie-category:last-child{
  border-bottom: none;
}
.cookie-switch {
  appearance: none;
  width: 46px;
  height: 24px;
  background: var(--color-retro-blue);
  border-radius: 14px;
  position: relative;
  outline: none;
  transition: background 0.18s;
  border: none;
}
.cookie-switch:checked { background: var(--color-primary); }
.cookie-switch:disabled {
  background: var(--color-accent-dark);
  opacity: .6;
  cursor: not-allowed;
}
.cookie-switch::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 4px rgba(35,52,59,0.06);
  transition: transform 0.19s;
}
.cookie-switch:checked::after { transform: translateX(22px); }

.cookie-modal .cookie-label {
  font-size: 1.02rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--color-secondary);
}

.cookie-modal .cookie-caption {
  color: var(--color-grey);
  font-size: 0.95rem;
  margin-bottom: 7px;
  margin-top: -2px;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}
@media (max-width: 768px) {
  .container { padding: 0 7vw; }
  .section { margin-bottom: 36px; padding: 28px 5vw; }
  .content-grid, .card-container, .content-wrapper, .text-section {
    gap: 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .card {
    padding: 20px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    font-size: 1rem;
  }
  .ratings {
    font-size: 1rem;
    padding: 10px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  header .container {
    gap: 7px;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 16px 7px 20px 7px;
    font-size: 0.96rem;
  }
  .cookie-banner__actions, .cookie-modal-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cookie-modal {
    padding: 20px 8px 16px 8px;
    width: 97vw;
  }
}

/* --- RETRO-NOSTALGIC DECORATIVE TOUCHES --- */
.section, .card, .testimonial-card, .ratings, .cookie-banner, .cookie-modal {
  box-shadow: 0 4px 24px var(--color-shadow), 0 0px 0px 0 #fff inset;
}
.section {
  border: 2px dashed var(--color-retro-blue);
  background: repeating-linear-gradient(135deg, var(--color-bg-section), var(--color-bg-section) 18px, var(--color-accent) 18px, var(--color-accent) 36px);
  background-size: 40px 40px;
}
.card {
  border: 2px solid var(--color-retro-yellow);
  background: var(--color-accent);
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: -8px; left: -8px;
  width: 100%; height: 100%;
  border: 2px dotted var(--color-primary);
  border-radius: var(--border-radius);
  z-index: 0;
  pointer-events: none;
}

/* subtle shadow for retro depth */
.card, .section, .cookie-banner, .testimonial-card {
  box-shadow: 0 8px 20px 0 rgba(35,52,59,0.09), 0 1px 3px 0 rgba(183,21,112,0.03);
}

table {
  border: 2px solid var(--color-retro-blue);
  width: 100%;
  background: var(--color-accent);
  margin-bottom: 30px;
  border-radius: var(--border-radius-sm);
}
td, th {
  border: 1px solid var(--color-retro-yellow);
  padding: 10px 14px;
}

a:focus, button:focus, .cta:focus {
  outline: 3px dotted var(--color-retro-yellow);
  outline-offset: 2px;
}

/* --- UTILITY CLASSES for FLEX LAYOUTS --- */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.wrap {
  flex-wrap: wrap;
}
.gap-20 { gap: 20px; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* --- PAGE-SPECIFIC ADJUSTMENTS FOR HTML MATCH --- */
.content-wrapper > ul, .content-wrapper > ol {
  margin-left: 4px;
  margin-bottom: 14px;
}
.content-wrapper > a.cta {
  align-self: flex-start;
}
.text-section > ul, .text-section > ol {
  margin-left: 8px;
}
.text-section > div {
  margin-bottom: 6px;
}

/* --- MISCELLANEOUS --- */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-bg-section);
}
::-webkit-scrollbar-thumb {
  background: var(--color-retro-blue);
  border-radius: 12px;
}


/* --- RETRO FONT DECORATION - For headings and mark effects --- */
h1, h2, h3 {
  position: relative;
}
h1::after, h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--color-primary);
  margin-top: 6px;
  border-radius: 2px;
  opacity: 0.19;
}
h2::after { width: 38px; }

mark {
  background: var(--color-retro-yellow);
  color: var(--color-primary);
  padding: 0 4px;
  border-radius: 4px;
}
section {
  padding: 15px;
}
/* --- END --- */
