/* 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;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff7ef;
  color: #242013;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #29516d;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #a24936;
  outline: none;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font: inherit;
  outline: none;
  border: none;
  background: none;
}

/* VINTAGE RETRO PALETTE */
:root {
  --primary: #28537a;
  --secondary: #7ad2e0;
  --accent: #f0f6fb;
  --retro-brown: #795548;
  --retro-beige: #f9e7c6;
  --retro-yellow: #ebbe5d;
  --retro-orange: #ca7c34;
  --retro-red: #a24936;
  --retro-blue: #438fa3;
  --text-dark: #242013;
  --text-light: #fff7ef;
  --card-bg: #fffaf1;
  --shadow: 0 4px 16px rgba(101, 62, 36, 0.07);
}

/* VINTAGE RETRO FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--retro-brown);
}
h1 { font-size: 2.8rem; margin-bottom: 20px; line-height: 1.1; }
h2 { font-size: 2rem; margin-bottom: 20px;  line-height: 1.1; border-bottom: 2px dashed var(--retro-yellow); padding-bottom: 10px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }
h4 { font-size: 1.25rem; margin-bottom: 12px; }
p, li, dd {
  font-size: 1.08rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text-dark);
  margin-bottom: 12px;
}
strong {
  color: var(--retro-red);
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
}


/* MAIN CONTAINERS & SECTIONS */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--card-bg);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--retro-beige);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px;
  min-width: 260px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 2px solid var(--retro-yellow);
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 32px rgba(122,210,224,0.10);
}

.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(--retro-yellow);
  border-radius: 18px;
  margin-bottom: 20px;
  border-left: 6px solid var(--retro-orange);
  box-shadow: 0 2px 8px rgba(202,124,52,0.07);
}
.testimonial-card p {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text-dark);
  font-size: 1.16rem;
  font-weight: 700;
}
.testimonial-card cite {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.02rem;
  font-style: normal;
  color: var(--retro-brown);
  margin-left: 5px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  margin-top: 14px;
  margin-bottom: 14px;
}

/* MAIN NAVIGATION */
header {
  background: var(--retro-yellow);
  box-shadow: 0 6px 22px rgba(122,210,224,0.09);
  padding: 0 0 0 0;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  max-width: 1180px;
  margin: 0 auto;
}
header nav img {
  height: 50px;
  mix-blend-mode: multiply;
}
header nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--retro-brown);
  padding: 6px 0;
  position: relative;
  border-bottom: 2px dashed transparent;
  transition: color 0.16s, border-bottom 0.23s;
}
header nav ul li a:hover, header nav ul li a:focus {
  border-bottom: 2px dashed var(--retro-red);
  color: var(--retro-red);
}
header .cta-btn {
  background: var(--retro-red);
  padding: 12px 26px;
  color: var(--text-light);
  border-radius: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 4px 16px rgba(162,73,54,0.11);
  letter-spacing: 0.05em;
  margin-left: 38px;
  transition: background 0.22s, transform 0.13s, box-shadow 0.2s;
  border: 2px solid var(--retro-brown);
}
header .cta-btn:hover, header .cta-btn:focus {
  background: var(--retro-orange);
  color: var(--retro-brown);
  transform: translateY(-2px) scale(1.025);
}

header .mobile-menu-toggle {
  display: none;
  background: var(--retro-blue);
  color: var(--text-light);
  border: none;
  font-size: 2.1rem;
  padding: 10px 15px;
  border-radius: 10px;
  margin-left: 20px;
  z-index: 1201;
  transition: background 0.2s, color 0.18s;
}
header .mobile-menu-toggle:focus, header .mobile-menu-toggle:hover {
  background: var(--retro-yellow);
  color: var(--retro-blue);
}

/* MOBILE NAVIGATION OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(120deg, var(--retro-yellow) 88%, var(--retro-beige) 100%);
  box-shadow: 0 10px 64px rgba(122,210,224,0.11);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.68,0.14,0.26,1.11), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: var(--retro-red);
  font-size: 2.1rem;
  margin: 28px 30px 8px 0;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: background 0.15s, border 0.15s;
  z-index: 2001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-beige);
  border: 2px solid var(--retro-orange);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 95vw;
  align-items: center;
  margin-top: 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.4rem;
  color: var(--retro-brown);
  font-weight: 700;
  padding: 12px 0;
  transition: color 0.2s, background 0.15s;
  border-bottom: 2px dashed transparent;
  width: 100%;
  text-align: center;
  border-radius: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-red);
  background: var(--accent);
  border-bottom: 2px dashed var(--retro-red);
}


/* FOOTER */
footer {
  background: var(--retro-blue);
  color: var(--text-light);
  font-family: 'Roboto', Arial, sans-serif;
  padding: 54px 0 0 0;
  margin-top: 60px;
}
footer section {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0 20px 40px 20px;
  margin-bottom: 0;
}
footer .container {
  max-width: 1100px;
}
footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 12px;
}
footer nav ul li a {
  color: var(--retro-yellow);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  border-bottom: 2px dashed transparent;
  transition: color 0.14s, border-bottom 0.14s;
}
footer nav ul li a:hover, footer nav ul li a:focus {
  color: var(--retro-orange);
  border-bottom: 2px dashed var(--retro-orange);
}
footer .text-section {
  margin-top: 6px;
  color: var(--text-light);
  font-size: 1rem;
}
footer strong {
  color: var(--retro-yellow);
}

/* BUTTONS */
.cta-btn,
button, .button, input[type="submit"], input[type="button"] {
  background: var(--retro-blue);
  color: var(--text-light);
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  padding: 12px 32px;
  border: 2px solid var(--retro-brown);
  box-shadow: 0 3px 12px rgba(43,41,39,0.06);
  cursor: pointer;
  margin-top: 18px;
  margin-bottom: 10px;
  transition: background 0.19s, color 0.14s, border 0.18s, transform 0.12s, box-shadow 0.19s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus,
button:hover, button:focus,
.button:hover, .button:focus,
input[type="submit"]:hover, input[type="submit"]:focus,
input[type="button"]:hover, input[type="button"]:focus {
  background: var(--retro-orange);
  color: var(--retro-brown);
  border: 2px solid var(--retro-red);
  transform: translateY(-2px) scale(1.025);
}

/* TABLES */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin: 28px 0 12px 0;
  overflow: hidden;
}
thead th {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--retro-beige);
  color: var(--retro-brown);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 14px 8px;
  border-bottom: 2px solid var(--retro-yellow);
}
tbody td {
  font-size: 1.04rem;
  padding: 12px 8px;
  border-bottom: 1px dashed var(--retro-yellow);
}
tr:last-child td {
  border-bottom: none;
}

/* DL and FAQ Styles */
dl {
  margin-bottom: 28px;
}
dl dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.08rem;
  color: var(--retro-orange);
  margin-top: 16px;
}
dl dd {
  font-size: 1.02rem;
  color: var(--text-dark);
  margin-left: 14px;
  margin-bottom: 8px;
}

/* RETRO DECORATIVE PATTERNS */
.section:before {
  content: '';
  display: block;
  width: 56px;
  height: 7px;
  border-radius: 4px 10px 8px 12px;
  background: repeating-linear-gradient(90deg, var(--retro-yellow), var(--retro-orange) 50%, var(--retro-yellow) 100%);
  margin-bottom: 24px;
}

.section:nth-child(even):before {
  background: repeating-linear-gradient(90deg, var(--retro-blue), var(--retro-yellow) 40%, var(--retro-red) 70%, var(--retro-blue) 100%);
}

/* ICONS & ILLUSTRATIONS */
ul li > img {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  display: inline-block;
  vertical-align: middle;
  filter: sepia(45%) saturate(1.4) hue-rotate(-10deg);
}

/* COLORFUL BORDERS FOR ACCENT */
.card, .testimonial-card, .feature-item, .content-wrapper, .text-section {
  border-radius: 16px;
}


/* SPACING FOR ALL FLEX ITEMS */
.content-wrapper > * + * {
  margin-top: 16px;
}

.section + .section {
  margin-top: 32px;
}

/* FOR CASE STUDY/REFERENCE UL */
ul, ol {
  margin-left: 0px;
  margin-bottom: 24px;
  padding-left: 0;
}
ul li, ol li {
  margin-bottom: 18px;
  line-height: 1.65;
}

/* GENERAL FORMATTING */
main {
  min-height: 60vh;
  margin-top: 0;
  margin-bottom: 0;
}

/* RESPONSIVE FLEXBOX BREAKPOINTS */
@media (max-width: 1100px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 900px) {
  header nav ul {
    gap: 18px;
  }
  .container {
    max-width: 97vw;
  }
}

@media (max-width: 768px) {
  .content-grid,
  .card-container,
  .text-image-section {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }
  .content-wrapper {
    gap: 16px;
  }
  section {
    padding: 30px 10px;
  }
  .card {
    min-width: 94vw;
    flex-basis: 100%;
    margin-bottom: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 18px 10px;
    margin-bottom: 16px;
  }
  header nav ul,
  header nav .cta-btn {
    display: none;
  }
  header .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.34rem; }
  .container { padding-left: 4vw; padding-right: 4vw; }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--retro-brown);
  color: var(--retro-yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 24px 16px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.04rem;
  z-index: 2200;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.62,0,0.29,1.02), opacity 0.19s;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}
.cookie-banner button, .cookie-banner .button {
  padding: 10px 20px;
  font-size: 1.08rem;
  border-radius: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  margin: 0;
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border: 2px solid var(--retro-orange);
  transition: background 0.18s, color 0.14s, border 0.15s, transform 0.14s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--retro-red);
  color: var(--retro-beige);
  border: 2px solid var(--retro-red);
}
.cookie-banner .cookie-settings-btn {
  background: var(--retro-blue);
  color: var(--text-light);
  border: 2px solid var(--retro-brown);
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--retro-beige);
  color: var(--retro-red);
  border: 2px solid var(--retro-orange);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(101,62,36,0.65);
  z-index: 2210;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--retro-beige);
  padding: 36px 30px 16px 30px;
  border-radius: 28px;
  width: 94vw;
  max-width: 420px;
  box-shadow: 0 4px 36px rgba(101,62,36,0.14);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h3 {
  color: var(--retro-orange);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
}
.cookie-modal .cookie-switch {
  width: 32px;
  height: 18px;
  background: var(--retro-yellow);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .cookie-switch-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  background: var(--retro-red);
  border-radius: 50%;
  transition: left 0.23s, background 0.21s;
}
.cookie-modal .cookie-switch input:checked + .cookie-switch-slider {
  left: 16px;
  background: var(--retro-blue);
}
.cookie-modal label {
  font-size: 1.04rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--retro-brown);
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 20px;
  top: 18px;
  background: none;
  border: none;
  color: var(--retro-red);
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.18s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: var(--retro-orange);
  color: var(--retro-beige);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  justify-content: flex-end;
}

/* ACCESSIBILITY & FOCUS STATES */
a, button, .cta-btn, .cookie-banner button, .mobile-menu-close, .mobile-menu-toggle {
  outline: none !important;
}
a:focus-visible, button:focus-visible,
.cta-btn:focus-visible, .cookie-banner button:focus-visible, .mobile-menu-close:focus-visible, .mobile-menu-toggle:focus-visible {
  box-shadow: 0 0 0 3px var(--retro-yellow), 0 0 0 6px var(--retro-brown);
  border-radius: 6px;
}

/* ANIMATIONS */
@keyframes retroPulse {
  0% { box-shadow: var(--shadow); }
  50% { box-shadow: 0 6px 22px 2px var(--retro-yellow); }
  100% { box-shadow: var(--shadow); }
}
.cta-btn:hover, .cta-btn:focus {
  animation: retroPulse 0.6s;
}

/* PRINT STYLES */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .section, .card, main { box-shadow: none !important; border: none !important; background: #fff !important; }
  body { color: #000 !important; background: #fff !important; }
}
