/* ===== 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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body { line-height: 1; }
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== VINTAGE RETRO VARIABLES ===== */
:root {
  --color-primary: #283E54;
  --color-secondary: #67C9E0;
  --color-accent: #F1F8FB;
  --color-vintage-cream: #FBF2D5;
  --color-vintage-burnt: #C16E26;
  --color-vintage-mustard: #F8C444;
  --color-vintage-mint: #B8D8BE;
  --color-vintage-tan: #E9CBA7;
  --color-dark: #211B15;
  --color-light: #FFFFFF;
  --shadow-small: 0 2px 7px rgba(30,24,5,0.08);
  --shadow-card: 0 4px 24px 0 rgba(54, 41, 19, 0.15);
  --border-radius: 14px;
  --font-display: 'Roboto Slab', serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@500;700&family=Open+Sans:wght@400;600&display=swap');

body {
  font-family: var(--font-body);
  background: var(--color-vintage-cream);
  color: var(--color-dark);
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

main {
  background: var(--color-vintage-cream);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.13;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 54px;
  height: 5px;
  background: var(--color-vintage-burnt);
  border-radius: 5px;
  margin-top: 7px;
  opacity: 0.4;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}
h4 {
  font-size: 1rem;
  font-weight: 700;
}
p,
.text-section ul, .text-section ol {
  font-size: 1.05rem;
  color: var(--color-dark);
  margin-bottom: 18px;
}
ul {
  padding-left: 18px;
}
li {
  margin-bottom: 7px;
}
strong, b {
  font-weight: 700;
}
em, i {
  font-style: italic;
  color: var(--color-vintage-burnt);
}

/* ===== SECTIONS & LAYOUT ===== */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features-grid, .testimonials-list, .category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.features-grid > div,
.card {
  background: var(--color-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
  min-width: 260px;
  margin-bottom: 20px;
  position: relative;
  border: 2px solid var(--color-vintage-tan);
  flex: 1 1 260px;
  max-width: 350px;
  transition: box-shadow 0.25s, transform 0.22s;
}
.features-grid > div:hover,
.card:hover {
  box-shadow: 0 8px 44px 0 rgba(193, 110, 38, 0.13);
  transform: translateY(-4px) scale(1.012);
  border-color: var(--color-vintage-burnt);
}

.category-filters {
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--color-vintage-mint);
  color: var(--color-dark);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-small);
  min-width: 230px;
  max-width: 360px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  border: 2px solid var(--color-vintage-tan);
  transition: border 0.22s;
}
.testimonial-card p {
  font-size: 1.07rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.testimonial-card strong {
  font-size: 1rem;
  color: var(--color-vintage-burnt);
  letter-spacing: 0.01em;
}
.testimonial-card:hover {
  border-color: var(--color-vintage-mustard);
}

/* White background with dark readable text for extra legibility */
.testimonials-list .testimonial-card {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-vintage-tan);
}
.testimonials-list .testimonial-card strong {
  color: var(--color-vintage-burnt);
}


/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
  font-family: var(--font-body);
  font-weight: bold;
  border-radius: 32px;
  padding: 12px 32px;
  font-size: 1.10rem;
  margin-right: 8px;
  margin-top: 6px;
  display: inline-block;
  letter-spacing: 0.03em;
  cursor: pointer;
  outline: none;
  border: none;
  box-shadow: var(--shadow-small);
  transition: background 0.19s, color 0.19s, box-shadow 0.23s, transform 0.21s;
}
.btn-primary {
  background: var(--color-vintage-burnt);
  color: var(--color-light);
  border: 2px solid var(--color-vintage-burnt);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-vintage-mustard);
  color: var(--color-primary);
  box-shadow: 0 4px 18px 0 rgba(241,200,44,0.11);
  transform: translateY(-2px) scale(1.04);
}
.btn-secondary {
  background: var(--color-vintage-cream);
  color: var(--color-vintage-burnt);
  border: 2.5px solid var(--color-vintage-burnt);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-vintage-burnt);
  color: var(--color-light);
  border-color: var(--color-vintage-mustard);
  box-shadow: 0 4px 18px 0 rgba(241,200,44,0.11);
  transform: translateY(-2px) scale(1.04);
}

a.btn-primary, a.btn-secondary {
  text-align: center;
  text-decoration: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 12px;
  margin-right: 4px;
  margin-left: 4px;
  font-size: 0.92rem;
  border-radius: 99px;
  background: var(--color-vintage-mint);
  color: var(--color-primary);
  border: 1.2px solid var(--color-vintage-burnt);
  font-family: var(--font-body);
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* ===== HEADER/NAVIGATION ===== */
header {
  background: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 1px 12px 0 rgba(51,29,6,0.07);
}
.logo img {
  width: 148px;
  height: auto;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
}
.main-nav a {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-vintage-mustard);
  background: rgba(241,200,44,0.08);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-vintage-mustard);
  color: var(--color-primary);
  border: none;
  border-radius: 45px;
  padding: 10px 14px;
  font-size: 1.7rem;
  margin-left: 10px;
  box-shadow: var(--shadow-small);
  cursor: pointer;
  transition: background 0.20s, color 0.19s, transform 0.17s;
}
.mobile-menu-toggle:hover {
  background: var(--color-vintage-burnt);
  color: var(--color-light);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-vintage-cream);
  color: var(--color-dark);
  z-index: 150;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.62, .13, .19, .95);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px 28px 0 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 23px;
  font-size: 2.2rem;
  background: var(--color-vintage-burnt);
  color: var(--color-light);
  border: 0;
  border-radius: 55px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: var(--shadow-small);
  transition: background 0.18s, color 0.15s;
  z-index: 3;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-vintage-mustard);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 76px;
  gap: 18px;
}
.mobile-nav a {
  padding: 17px 0;
  font-size: 1.35rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  border-bottom: 1.2px dashed var(--color-vintage-tan);
  transition: color 0.18s;
  min-width: 80vw;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-vintage-burnt);
}

/* ===== FOOTER STYLES ===== */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 38px 0 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 50px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 9px;
}
.footer-nav a {
  color: var(--color-vintage-mustard);
  font-size: 1.03rem;
  font-family: var(--font-body);
  transition: color 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.footer-contact span {
  display: flex;
  align-items: center;
  font-size: 0.99rem;
  font-family: var(--font-body);
  gap: 7px;
}
.footer-contact img {
  width: 20px;
  height: 20px;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.97rem;
}
.footer-branding img {
  width: 40px;
  height: 40px;
}

/* ===== PATTERNS & RETRO ELEMENTS ===== */
section, .section {
  background-image: repeating-linear-gradient(135deg, #fffbe6 0 8px, transparent 8px 14px);
  border-radius: 0 0 25px 25px;
  box-shadow: 0 3px 32px 0 rgba(193,110,38,0.055);
}
.features-grid > div::before {
  content: '';
  display: block;
  height: 5px;
  width: 52px;
  background: var(--color-vintage-mustard);
  border-radius: 7px;
  margin-bottom: 18px;
  opacity: 0.15;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1300;
  background: var(--color-vintage-mustard);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 20px;
  font-size: 1.02rem;
  box-shadow: 0 -2px 22px 0 rgba(193,110,38,0.11);
  font-family: var(--font-body);
  animation: cookiePopIn 0.68s cubic-bezier(.52,0,.2,1.4);
}
@keyframes cookiePopIn {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner .actions {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  border-radius: 18px;
  border: none;
  padding: 9px 22px;
  font-size: 0.99rem;
  margin-left: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s, color .12s;
  box-shadow: var(--shadow-small);
}
.cookie-banner .accept {
  background: var(--color-vintage-burnt);
  color: var(--color-light);
}
.cookie-banner .accept:hover {
  background: var(--color-vintage-mint);
  color: var(--color-primary);
}
.cookie-banner .reject {
  background: var(--color-vintage-cream);
  color: var(--color-vintage-burnt);
  border: 1.5px solid var(--color-vintage-burnt);
}
.cookie-banner .reject:hover {
  background: var(--color-vintage-burnt);
  color: var(--color-light);
}
.cookie-banner .settings {
  background: transparent;
  color: var(--color-primary);
  text-decoration: underline;
  border: 0;
}
.cookie-banner .settings:hover {
  color: var(--color-vintage-burnt);
}

/* Cookie preferences modal */
.cookie-modal {
  position: fixed;
  z-index: 2000;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: var(--color-accent);
  border-radius: 14px;
  box-shadow: 0 6px 48px 0 rgba(40,62,84,0.11);
  max-width: 380px;
  width: 88vw;
  padding: 32px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: modalPopIn .37s cubic-bezier(.62,.19,.41,1.3);
}
@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.92) translate(-50%,-60%); }
  to   { opacity: 1; transform: scale(1) translate(-50%,-50%); }
}
.cookie-modal h3 {
  margin-bottom: 9px;
  color: var(--color-primary);
  font-size: 1.23rem;
}
.cookie-modal ul {
  padding-left: 0;
  margin-bottom: 17px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cookie-modal li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
}
.cookie-modal label {
  font-size: 1rem;
  color: var(--color-dark);
  font-weight: 500;
}
.cookie-modal .toggle {
  width: 38px;
  height: 22px;
  border-radius: 17px;
  background: var(--color-vintage-mint);
  position: relative;
  transition: background 0.18s;
  display: inline-block;
}
.cookie-modal .toggle[data-active="true"] {
  background: var(--color-vintage-burnt);
}
.cookie-modal .toggle-knob {
  width: 18px;
  height: 18px;
  background: var(--color-light);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.18s;
}
.cookie-modal .toggle[data-active="true"] .toggle-knob {
  left: 18px;
}
.cookie-modal .actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .save {
  background: var(--color-vintage-burnt);
  color: var(--color-light);
}
.cookie-modal .cancel {
  background: var(--color-vintage-cream);
  color: var(--color-vintage-burnt);
  border: 1.5px solid var(--color-vintage-burnt);
}

/* Overlay for modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.18);
  z-index: 1990;
  animation: overlayFadeIn .33s;
}
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== ICONS ===== */
img[alt*="icon"], .content-wrapper img[alt*="icon"] {
  filter: sepia(0.24) hue-rotate(-20deg) brightness(0.93) contrast(1.06);
  margin-right: 7px;
  margin-bottom: -3px;
}

/* ===== LINKS ===== */
a {
  color: var(--color-vintage-burnt);
  transition: color 0.18s;
}
a:hover, a:focus {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ===== SPACING & WHITE SPACE RULES ===== */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .features-grid, .testimonials-list, .content-grid {
  gap: 24px;
}
.card, .testimonial-card, .feature-item, .text-section {
  margin-bottom: 20px;
}
.content-wrapper {
  gap: 24px;
  margin-bottom: 12px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1080px) {
  .container { max-width: 94vw; }
}
@media (max-width: 992px) {
  .features-grid > div, .card, .testimonial-card {
    min-width: 210px;
    max-width: 100%;
  }
  .footer-contact { flex-direction: column; gap: 8px; }
  .footer-branding { flex-direction: column; gap: 7px; }
}
@media (max-width: 850px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.55rem; }
  .features-grid { gap: 18px; }
  .main-nav a { font-size: 0.92rem; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .features-grid, .testimonials-list, .content-grid, .footer-contact {
    flex-direction: column;
    gap: 20px;
  }
  .category-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .container {
    padding: 0 9px;
  }
  .content-wrapper { gap: 18px; }
  .footer-nav { gap: 11px; flex-wrap: wrap; }
}
@media (max-width: 500px) {
  h1 { font-size: 1.27rem; }
  h2 { font-size: 1.02rem; }
  .features-grid > div, .card, .testimonial-card {
    min-width: 0;
    max-width: 100%;
    padding: 13px 7px;
  }
  .section, section {
    padding: 18px 2px;
  }
  .btn-primary, .btn-secondary {
    font-size: 1rem;
    padding: 8px 11px;
  }
  .footer-branding { flex-direction: column; gap: 4px; }
}

/* ===== UTILITY CLASSES ===== */
.hide { display: none !important; }
.text-center { text-align: center !important; }
.mt-2 { margin-top: 16px !important; }
.mt-4 { margin-top: 32px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 32px !important; }

/* ===== TRANSITIONS / MICRo-INTERACTIONS ===== */
section, .card, .testimonial-card {
  transition: box-shadow .22s, background .26s, border .22s;
}
h1, h2, h3 {
  transition: color .23s;
}

/* ===== SCROLLBAR STYLE (retro look) ===== */
::-webkit-scrollbar {
  background: var(--color-vintage-cream);
  width: 12px;
  border-radius: 15px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-vintage-tan);
  border-radius: 12px;
  border: 3px solid var(--color-vintage-cream);
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2.5px solid var(--color-vintage-burnt);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-overlay { display: none !important; }
  section, .section { background: #fff; box-shadow: none; }
}
