/* 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 {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
  background: #F9F6EF;
}
body {
  color: #143247;
  background: #EBE3D5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #143247;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B86D29;
}
:focus {
  outline: 2px dashed #143247;
  outline-offset: 2px;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* VINTAGE RETRO TYPOGRAPHY ------------------------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700|Roboto:400,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #143247;
  letter-spacing: 0.05em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  text-shadow: 0 2px 0 #F5B04126;
  font-weight: 700;
  font-style: italic;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 20px;
  font-weight: 700;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
  font-weight: 700;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 700;
}
p, li, label, th, td {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #143247;
}
strong {
  font-weight: bold;
}
blockquote {
  font-style: italic;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #edeae0;
  border-left: 4px solid #F5B041;
  margin: 16px 0;
  padding: 14px 20px;
  color: #143247;
  border-radius: 6px;
}

/* LAYOUT STRUCTURE -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 900px;
  padding: 0;
}
main {
  padding-bottom: 50px;
}

/* SECTION SPACING & VINTAGE EFFECTS -------------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #f5eedc;
  border-radius: 18px;
  box-shadow: 0 4px 36px 0 #b86d2930, 0 1.5px 6px #fffbed80;
  position: relative;
  border: 2px solid #E6D2B4;
}
.hero {
  background: #143247;
  border-bottom: 8px double #F5B041;
  color: #fff;
  padding: 48px 0 32px 0;
  margin-bottom: 48px;
  box-shadow: 0 6px 28px #14324715;
}
.hero h1,
.hero p,
.hero .cta-button {
  color: #fff;
}
.hero .cta-button {
  background: #F5B041;
  color: #143247;
}

/* NAVIGATION ------------------------------------------------------------- */
header {
  background: #F5B041;
  border-bottom: 4px solid #B86D29;
  box-shadow: 0 3px 12px rgba(20,50,71,0.04);
  padding: 0;
  z-index: 101;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  justify-content: flex-start;
}
header img {
  height: 42px;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-right: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #143247;
  background: transparent;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.14s, color 0.12s;
  letter-spacing: 0.02em;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #143247;
  color: #F5B041;
}
.cta-button {
  background: #143247;
  color: #F5B041;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  box-shadow: 1px 3px 32px #14324724;
  padding: 12px 26px;
  margin-left: 24px;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
  text-shadow: 0 2px #F5B04132;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: #F5B041;
  color: #143247;
  box-shadow: 0 4px 18px #14324733;
}

/* MOBILE NAVIGATION ------------------------------------------------------ */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: #143247;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.16s;
  z-index: 103;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #eadfcb;
  color: #B86D29;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #F5B041;
  box-shadow: 0 2px 16px #14324750;
  z-index: 1050;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.23s ease;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: #143247;
  font-size: 2.5rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  padding: 20px 22px 0 0;
  cursor: pointer;
  transition: background 0.11s, color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #B86D29;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin: 36px 0 0 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #143247;
  font-size: 1.35rem;
  padding: 10px 0;
  letter-spacing: 0.02em;
  border-bottom: 1px dotted #B86D29;
  transition: color 0.1s, background 0.1s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #fff;
  background: #B86D29;
}

/* HERO & VINTAGE PATTERNS ------------------------------------------------- */
.hero {
  background: repeating-linear-gradient(135deg, #143247, #143247 26px, #B86D29 28px, #143247 40px);
  border-bottom: 8px double #F5B041;
  color: #fff;
  box-shadow: 0 6px 36px #b86d2930, 0 1.5px 6px #fffbed80;
  margin-bottom: 0;
}
.hero h1 {
  color: #fff;
  text-shadow: 0 3px 0 #F5B04130;
  font-size: 2.25rem;
}
.hero p {
  color: #fff;
}

/* FEATURE GRID & CARD STYLES --------------------------------------------- */
.feature-grid, .advantages-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.feature-grid > div, .advantages-grid > div {
  background: #F5E3B1;
  border-radius: 16px;
  box-shadow: 0 3px 16px #B86D2941;
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 250px;
  padding: 24px 18px 15px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  border: 1.5px solid #B86D29;
  margin-bottom: 20px;
  position: relative;
}
.feature-grid img, .advantages-grid img {
  height: 42px;
  width: 42px;
  filter: sepia(0.7) hue-rotate(25deg);
  margin-bottom: 6px;
}
.feature-grid h3, .advantages-grid h3 {
  font-family: 'MontSerrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: #B86D29;
  margin-bottom: 0.2em;
}

/* TABLES (Vintage Style) ------------------------------------------------- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 25px 0 30px 0;
  background: #fff8eb;
  border-radius: 13px;
  box-shadow: 0 1.5px 9px #B86D2935;
  overflow: hidden;
  font-family: 'Montserrat', Arial, sans-serif;
}
thead tr {
  background: #F5B041;
}
th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1.5px solid #E6D2B4;
}
th {
  font-size: 1.1rem;
  color: #143247;
}
tbody tr:nth-child(odd) {
  background: #FAF5E8;
}
tbody tr:hover {
  background: #edd6a5;
  transition: background 0.15s;
}

/* CARD CONTAINERS & FLEX SPACING ------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff6e5;
  border-radius: 14px;
  box-shadow: 0 3px 19px #B86D2930;
  border: 1.5px solid #E6D2B4;
  padding: 28px 22px;
  min-width: 260px;
  flex: 1 1 260px;
}
.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;
}

/* TESTIMONIALS ------------------------------------------------------------ */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff8eb;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 2.5px 15px #B86D2931;
  border: 2px solid #B86D29;
  color: #143247;
  min-width: 200px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card blockquote {
  color: #143247;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}
.testimonial-card p {
  font-size: 1rem;
  margin: 0;
}

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

/* FOOTER ------------------------------------------------------------------ */
footer {
  background: #143247;
  color: #fff;
  padding: 22px 0 30px 0;
  border-top: 4px double #F5B041;
  font-size: 1rem;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
footer img {
  height: 54px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #F5B041;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  margin-bottom: 2px;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.98rem;
  color: #fff;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  display: inline-block;
  vertical-align: middle;
  filter: sepia(0.8) hue-rotate(22deg);
  margin-right: 4px;
}

/* MISC/UTILITY ------------------------------------------------------------ */
.filter-bar {
  background: #bee6dc;
  color: #143247;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 10px;
  padding: 11px 17px;
  margin: 18px 0 26px 0;
  box-shadow: 0 1px 5px #b86d2920;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.profile-summaries, .analysis-summaries, .performance-diagrams, .explanatory-notes,
.tooltip-explanations, .interactive-widgets, .partner-network, .next-steps, .privacy-summary, .gdpr-summary, .cookie-consent-explained, .terms-of-use-summary, .full-policy-text, .full-gdpr-text, .full-terms-text {
  margin-top: 18px;
  margin-bottom: 22px;
}

.analysis-summaries ul, .profile-summaries ul, .trend-charts ul, .performance-diagrams ul, .advantages-grid ul, .partner-network ul {
  margin-left: 12px;
}

.map-embed {
  background: #f7f4eb;
  border-radius: 10px;
  border: 1px dotted #b86d29;
  margin-top: 12px;
  padding: 14px 18px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff6e5;
  border-radius: 10px;
  border-left: 5px solid #F5B041;
  padding: 18px 18px 9px 20px;
  margin-bottom: 19px;
}
.contact-details img {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  display: inline-block;
  vertical-align: middle;
  filter: sepia(0.7) hue-rotate(23deg);
}

/* Cookie Consent Banner + Modal -------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #F5B041;
  color: #143247;
  border-top: 4px solid #B86D29;
  padding: 18px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  z-index: 1060;
  font-family: 'Roboto', Arial, sans-serif;
  box-shadow: 0 -4px 20px #BAA44430;
  gap: 14px;
  transition: transform 0.32s, opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__message {
  flex: 1 1 0;
  font-size: 1rem;
  margin-right: 14px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #143247;
  color: #F5B041;
  border: none;
  border-radius: 7px;
  padding: 8px 17px;
  font-size: 1rem;
  margin-left: 0;
  box-shadow: 0 1.5px 9px #14324716;
  cursor: pointer;
  transition: background 0.15s, color 0.13s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #B86D29;
  color: #fff;
}
.cookie-btn.secondary {
  background: #fff8eb;
  color: #143247;
  border: 1.5px solid #B86D29;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #B86D29;
  color: #fff;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  z-index: 1070;
  left: 50%;
  top: 50%;
  transform: translate(-50%,60vh) scale(0.98);
  opacity: 0;
  background: #fff8eb;
  color: #143247;
  border: 4px solid #F5B041;
  border-radius: 18px;
  padding: 36px 28px 28px;
  width: 96vw;
  max-width: 420px;
  box-shadow: 0 8px 36px #B86D2945;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.26s, opacity 0.18s;
  pointer-events: none;
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2 {
  font-size: 1.2rem;
  color: #B86D29;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.cookie-setting {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
}
.cookie-setting input[type=checkbox] {
  accent-color: #F5B041;
  width: 19px;
  height: 19px;
}
.cookie-btn.close {
  background: transparent;
  color: #B86D29;
  border: none;
  align-self: flex-end;
  font-size: 2rem;
  padding: 0 11px 0 0;
}
.cookie-btn.close:hover, .cookie-btn.close:focus {
  color: #143247;
}

/* RETRO DECORATIVE LINES/PATTERNS ------------------------------------------ */
.section {
  background: repeating-linear-gradient( 45deg, #f5eedc, #f5eedc 28px, #E6D2B4 30px, #f5eedc 36px );
}

hr {
  margin: 32px 0;
  border: 0;
  border-top: 2.5px dotted #B86D29;
  opacity: 0.38;
}

/* RESPONSIVE DESIGN ------------------------------------------------------- */
@media (max-width: 1080px){
  .container {
    max-width: 98vw;
    padding: 0 9px;
  }
}
@media (max-width: 930px){
  .feature-grid, .advantages-grid {
    gap: 14px;
  }
}
@media (max-width: 820px){
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .footer-nav {
    flex-direction: row;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding: 0 5vw;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 54px;
    padding-right: 6px;
  }
  .main-nav {
    display: none;
  }
  .main-nav a {
    font-size: 1.1rem;
  }
  .cta-button {
    margin-left: 0;
    margin-right: 0;
    font-size: 1rem;
    padding: 10px 14px;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 2vw;
  }
  .feature-grid, .advantages-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .footer-contact {
    font-size: 0.98rem;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.3rem;
  }
  h2 {
    font-size: 1.05rem;
  }
  .cta-button, table th, table td {
    font-size: 1rem;
  }
  .section, .hero {
    padding: 20px 7px;
    border-radius: 9px;
  }
  .feature-grid > div, .advantages-grid > div {
    min-width: 120px;
    max-width: 100%;
    padding: 16px 10px;
    font-size: 0.96rem;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    padding: 13px 7px;
  }
  .footer-contact {
    font-size: 0.93rem;
  }
  .cookie-modal {
    padding: 16px 4vw 18px;
    border-radius: 12px;
    font-size: 0.98rem;
  }
}
@media (max-width: 440px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    font-size: 0.94rem;
    padding: 10px 5px;
  }
  .cookie-banner__actions {
    width: 100%;
    flex-direction: column;
    gap: 7px;
  }
}

/* HOVER/MICRO INTERACTIONS ------------------------------------------------- */
.card, .feature-grid > div, .advantages-grid > div {
  transition: box-shadow 0.16s, transform 0.16s, border-color 0.16s;
}
.card:hover, .feature-grid > div:hover, .advantages-grid > div:hover {
  box-shadow: 0 5px 30px #B86D2955;
  border-color: #143247;
  transform: translateY(-2px) scale(1.012);
  z-index: 2;
}
table tbody tr:hover {
  box-shadow: 0 2px 13px #B86D2912;
}
.cta-button:active, .cta-button:focus {
  background: #B86D29;
  color: #fff;
}

/* Z-INDEX LAYERING (mobile menu, modals, banner) -------------------------- */
.mobile-menu, .cookie-modal, .cookie-banner {
  z-index: 1060;
}
header, .main-nav, .mobile-menu-toggle {
  z-index: 101;
}

/* MINIMUM SPACING FOR CONTENT CARDS & SECTIONS ---------------------------- */
.card, .testimonial-card, .feature-grid > div, .section {
  margin-bottom: 20px;
}

/* CODE END --------------------------------------------------------------- */
