/* ===================================================
   CSS RESET & NORMALIZE (Vintage Retro Adaptation)
=================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body, h1, h2, h3, h4, h5, h6, p, ol, ul, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
  outline: none;
  border: none;
  background: none;
}
button:focus, a:focus {
  outline: 2px dashed #f8b400;
  outline-offset: 2px;
}

/* ===================================================
   BRAND FONTS (Vintage-Retro Inspired)
=================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Montserrat:wght@600;900&display=swap');

:root {
  --primary: #25316D;
  --primary-dk: #171a3a;
  --secondary: #06AED5;
  --accent: #F6F7FB;
  --cream: #FDF6E3;
  --egg: #F8E8C1;
  --muted: #A98467;
  --retro-yellow: #F8B400;
  --retro-red: #DC493A;
  --retro-green: #7EB77F;
  --retro-blue: #4D7EA8;
  --retro-brown: #776355;
  --text-heading: #25316D;
  --text-default: #3A3532;
  --text-light: #fff;
  --shadow-retro: 0 4px 18px 0 rgba(68,42,17,0.12);
  --radius-standard: 14px;
  --border-retro: 2px solid var(--retro-brown);
  --transition: 0.24s cubic-bezier(.41,1,.73,1);
  --font-display: 'Montserrat', Impact, 'Arial Rounded MT Bold', sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
}

body {
  background: var(--cream);
  color: var(--text-default);
  font-size: 16px;
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
}

/* ===================================================
   TYPOGRAPHY (Retro/Vintage Style)
=================================================== */
h1, .hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--retro-red);
  font-weight: 900;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  text-shadow: 2px 4px 0 var(--egg), 0 2px 8px var(--retro-brown);
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
  font-weight: 700;
  text-shadow: 1px 2px 0 var(--egg);
}
h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--retro-blue);
  margin-bottom: 8px;
  font-weight: 600;
}
p, ul li, ol li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-default);
  margin-bottom: 10px;
}
strong {
  color: var(--retro-red);
  font-weight: 700;
}

/* Classic retro letterpress styles */
.hero h1, h1.brand {
  text-transform: uppercase;
  text-shadow:
    1px 2px 1px var(--retro-yellow),
    2px 4px 0 var(--retro-brown),
    0 3px 12px rgba(130,84,50,.18);
}
h1,h2,h3 {
  line-height: 1.22;
}

/* Blockquotes (if used in news/legal) */
blockquote {
  border-left: 4px solid var(--retro-yellow);
  margin: 30px 0;
  padding: 12px 22px;
  background: var(--egg);
  font-style: italic;
  color: var(--retro-brown);
}
.list--nostalgic, ul[role='list'], ol[role='list'] {
  padding-left: 1em;
  font-family: var(--font-body);
  font-size: 1.05em;
  color: var(--muted);
}

/* ===================================================
   MULTI-SECTION LAYOUT/SPACING
=================================================== */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius-standard);
  box-shadow: var(--shadow-retro);
}
section.hero {
  background: var(--retro-yellow);
  background-image: repeating-linear-gradient(135deg,rgba(252,240,158,0.18) 0 24px,transparent 24px 54px);
  padding-top: 48px;
  padding-bottom: 48px;
  border-top-right-radius: 70px;
  border-bottom-left-radius: 60px;
}

section.cta, .cta-section {
  background: var(--secondary);
  color: var(--text-light);
  text-align: center;
  border-radius: var(--radius-standard);
  box-shadow: var(--shadow-retro);
}

.about-home, .about-section, .team-section, .contact-info, .thank-you, .impact, .process, .benefits, .news, .updates, .exhibits, .case-studies, .highlights, .legal {
  background: var(--cream);
  border-radius: var(--radius-standard);
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: var(--shadow-retro);
}

/* ===================================================
   FLEXBOX CONTAINERS & RESPONSIVE LAYOUTS
=================================================== */
.card-container, .content-grid, .feature-grid, .feature-list, .features, .services, .testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  min-width: 280px;
  max-width: 390px;
  background: var(--accent);
  border-radius: var(--radius-standard);
  box-shadow: var(--shadow-retro);
  border: var(--border-retro);
  padding: 24px 28px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--egg);
  border-radius: 18px;
  padding: 20px 26px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px 0 rgba(120,92,52,0.12);
  border: 2px solid var(--retro-yellow);
  transition: box-shadow .23s;
}
.testimonial-card p {
  color: #40372a;
  font-style: italic;
}
.testimonial-card:hover {
  box-shadow: 0 6px 26px 0 rgba(180,122,46,0.16);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Patterned accent backgrounds */
.feature-list li, .feature-grid li, .services ul li {
  background: var(--accent);
  border-radius: 14px;
  border: 2.5px dashed var(--retro-green);
  box-shadow: 0 2px 8px 0 rgba(90,83,38,0.07);
  margin-bottom: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 180px;
  flex: 1 1 240px;
}
.feature-grid li, .feature-list li, .services ul li img {
  flex-shrink: 0;
  height: 52px;
  width: 52px;
  border-radius: 12px;
  box-shadow: 0 0 0 4px var(--cream);
  margin-right: 8px;
  background: var(--retro-yellow);
}
.feature-list li strong, .feature-grid li h3 {
  font-family: var(--font-display);
  color: var(--retro-blue);
  font-size: 1.18em;
}

/* Section grid overrides */
ul.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
ul.feature-grid li {
  flex: 1 1 230px;
  min-width: 210px;
  max-width: 340px;
}
ul.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  width: 100%;
}
.services ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 20px;
}

/* About stats */
.about-home ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}
.about-home ul li {
  background: var(--egg);
  border-radius: 10px;
  box-shadow: 0 1px 5px 0 rgba(140,90,27,0.05);
  font-size: 1.13em;
  color: var(--retro-brown);
  padding: 10px 16px;
  font-family: var(--font-body);
  font-weight: 700;
}

/* ===================================================
   BUTTONS & CTA
=================================================== */
.cta-primary, a.cta-primary, button.cta-primary {
  background: var(--retro-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.17em;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 40px;
  box-shadow: 0 0 0 4px var(--egg);
  border: 2.5px solid var(--retro-red);
  letter-spacing: 0.03em;
  margin-top: 32px;
  display: inline-block;
  transition: background var(--transition), color var(--transition), box-shadow .2s;
  cursor: pointer;
  position: relative;
  z-index: 10;
  text-shadow: 1px 1px 3px rgba(120,50,30,0.14);
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--retro-yellow);
  color: var(--retro-red);
  box-shadow: 0 4px 20px 0 rgba(240,180,30,.14);
  border-color: var(--retro-yellow);
}
button, input[type=submit], .btn {
  border-radius: 40px;
  background: var(--retro-blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1em;
  padding: 11px 24px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--retro-blue);
  transition: background .2s, color .2s, box-shadow .15s;
}
button:hover, .btn:hover, input[type=submit]:hover {
  background: var(--primary);
  color: var(--retro-yellow);
  border-color: var(--primary-dk);
}

/* ===================================================
   HEADER & NAVIGATION (Retro Styles)
=================================================== */
header {
  background: var(--primary);
  color: #fff;
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 1px 14px 0 rgba(38,49,109,0.13);
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
header nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 10px;
  transition: background .16s, color .16s;
  text-shadow: 1px 2px 0 var(--retro-yellow);
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--retro-yellow);
  color: var(--primary);
}
header .cta-primary {
  margin: 0 0 0 14px;
  font-size: 1.02em;
  background: var(--retro-yellow);
  color: var(--primary);
  border-color: var(--retro-brown);
}
header .cta-primary:hover,
header .cta-primary:focus {
  background: var(--retro-blue);
  color: #fff;
  border-color: var(--retro-blue);
}
header img {
  height: 54px;
  margin-right: 18px;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.4rem;
  color: var(--retro-yellow);
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 18px;
  z-index: 301;
  line-height: 1;
  transition: color .15s;
}
.mobile-menu-toggle:hover {
  color: var(--retro-red);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  z-index: 9999;
  box-shadow: 0 0 40px 0 rgba(20,11,3,0.65);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.5,1.42,.16,.99);
  padding: 0 0 0 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 30px 0 0;
  font-size: 2.1em;
  color: var(--retro-yellow);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .15s;
  z-index: 10001;
}
.mobile-menu-close:hover {
  color: var(--retro-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 36px 0 0 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.22em;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 2px dashed var(--retro-yellow);
  min-width: 200px;
  transition: background .18s, color .18s;
  border-radius: 0;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-yellow);
  background: rgba(246,247,251,0.1);
}

/* ===================================================
   FOOTER
=================================================== */
footer {
  background: var(--primary-dk);
  color: #fff;
  padding: 48px 0 0 0;
  font-size: 1em;
  letter-spacing: 0.01em;
  border-top: 6px solid var(--retro-yellow);
  box-shadow: 0 -2px 13px 0 rgba(33,24,6,0.09);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer nav a {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1em;
  opacity: 0.96;
  letter-spacing: 0.01em;
  padding: 4px 8px;
  transition: color .15s, background .14s;
  border-radius: 6px;
  margin: 0 2px 4px 2px;
}
footer nav a:hover, footer nav a:focus {
  color: var(--retro-yellow);
  background: rgba(250,232,140,0.08);
}
footer .legal-links {
  margin-top: 20px;
  font-size: 0.95em;
  opacity: 0.78;
  letter-spacing: 0.01em;
}
footer .copyright {
  text-align: center;
  color: var(--retro-yellow);
  opacity: 0.85;
  font-family: var(--font-body);
  margin-bottom: 12px;
}
footer a img {
  filter: grayscale(30%) drop-shadow(1px 2px 0 var(--retro-yellow));
  width: 34px;
  height: 34px;
  margin-top: 2px;
}
footer div > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98em;
  margin-bottom: 6px;
}

/* ===================================================
   COOKIE CONSENT BANNER
=================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--retro-yellow);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 36px;
  box-shadow: 0 -2px 20px 0 rgba(90,66,27,0.15);
  padding: 20px 28px;
  z-index: 10001;
  font-family: var(--font-body);
  font-size: 16px;
  border-top: 5px solid var(--retro-brown);
  transition: translateY 0.26s;
}
.cookie-banner__content {
  max-width: 620px;
}
.cookie-banner .cookie-btn {
  background: var(--retro-red);
  color: #fff;
  margin-left: 16px;
  border-radius: 32px;
  font-size: 1em;
  font-weight: 700;
  padding: 10px 27px;
  border: 2px solid var(--retro-brown);
  box-shadow: 0 2px 6px rgba(140,80,30,0.16);
  transition: background .18s, color .18s;
}
.cookie-banner .cookie-btn.secondary {
  background: var(--retro-blue);
  color: #fff;
  border: 2px solid var(--retro-blue);
  margin-left: 8px;
}
.cookie-banner .cookie-btn.settings {
  background: var(--cream);
  color: var(--retro-red);
  border: 2px solid var(--retro-yellow);
  margin-left: 8px;
}
.cookie-banner .cookie-btn:hover {
  background: var(--retro-yellow);
  color: var(--retro-red);
}
.cookie-banner .cookie-btn.settings:hover {
  background: var(--retro-red);
  color: #fff;
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -56%) scale(0.98);
  background: var(--cream);
  min-width: 330px;
  max-width: 98vw;
  width: 430px;
  padding: 38px 30px 32px 30px;
  border-radius: 18px;
  box-shadow: 0 14px 48px 0 rgba(90,66,27,0.25);
  z-index: 11010;
  border: 3px solid var(--retro-yellow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .21s, transform .24s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.25em;
  margin-bottom: 8px;
  color: var(--retro-blue);
}
.cookie-modal-category {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 1em;
  color: var(--retro-brown);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal-toggle {
  appearance: none;
  outline: none;
  cursor: pointer;
  width: 42px;
  height: 24px;
  border-radius: 24px;
  background: var(--retro-yellow);
  position: relative;
  vertical-align: middle;
  transition: background .17s;
  border: 2px solid var(--retro-brown);
}
.cookie-modal-toggle:checked {
  background: var(--retro-green);
}
.cookie-modal-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(38,49,109,0.21);
  transition: left .15s;
}
.cookie-modal-toggle:checked::after {
  left: 20px;
}
.cookie-modal .cookie-btn {
  margin-top: 12px;
  width: 100%;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  background: None;
  color: var(--retro-red);
  font-size: 1.6em;
  border: none;
  cursor: pointer;
}
.cookie-modal .close-modal:hover {
  color: var(--retro-blue);
}

/* Cookie Modal Overlay for accessibility */
.cookie-modal__overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(44,30,8,0.36);
  z-index: 11000;
  backdrop-filter: blur(1px);
  display: none;
}
.cookie-modal.open ~ .cookie-modal__overlay {
  display: block;
}

/* ===================================================
   RESPONSIVE DESIGN (Mobile First)
=================================================== */
@media (max-width: 1100px) {
  .container { max-width: 1002px; }
  .feature-grid li, .feature-list li, .services ul li {
    min-width: 140px;
    max-width: 290px;
  }
  header nav { gap: 8px; }
  footer .content-wrapper { gap: 12px; }
}
@media (max-width: 900px) {
  .container { max-width: 750px; }
  section, .section { padding: 34px 8px; }
  .feature-grid li, .feature-list li, .services ul li {
    min-width: 120px;
    max-width: 220px;
  }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.34rem; }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .container { max-width: 95vw; }
  .content-wrapper { padding: 0; }
  section, .section { margin-bottom: 36px; padding: 28px 4px; }
  .card-container, .content-grid, .feature-grid, .feature-list, .features, .services {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
  .card {
    min-width: 92vw;
    max-width: 96vw;
    padding: 16px 14px;
  }
  header .container {
    flex-direction: row;
    gap: 12px;
    align-items: center;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid li, .feature-list li, .services ul li {
    min-width: 88vw;
    max-width: 97vw;
    margin-left: auto;
    margin-right: auto;
  }
  .about-home ul { flex-direction: column; gap: 14px; }
  section.hero {
    padding-top: 32px;
    padding-bottom: 32px;
    border-radius: 20px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 16px 8px;
    font-size: 14px;
  }
  .cookie-banner .cookie-btn { margin: 12px 0 0 0; width: 100%; }
}
@media (max-width: 510px) {
  section, .section {
    padding: 14px 2px;
    margin-bottom: 22px;
  }
  h1, .hero h1 {
    font-size: 1.3em;
    margin-bottom: 8px;
  }
  h2 { font-size: 1.01em; }
  p, a, li { font-size: 0.95em; }
  .card { padding: 8px 4px; min-width: 98vw; }
  .mobile-nav { margin-left: 14px; gap: 19px; }
  .mobile-menu-close { margin-right: 10px; }
}

/* ===================================================
   RETRO MICRO-INTERACTIONS & TRANSITIONS
=================================================== */
.card, .feature-list li, .feature-grid li, .services ul li, .about-home ul li, .testimonial-card {
  transition: box-shadow .20s, transform .15s, border-color .2s;
}
.card:hover, .feature-list li:hover, .feature-grid li:hover, .testimonial-card:hover {
  border-color: var(--retro-red);
  transform: translateY(-5px) scale(1.017);
  box-shadow: 0 8px 28px 0 rgba(213,167,79,0.15);
}
a, button, .cta-primary, input[type=submit], .cookie-btn {
  transition: background .12s, color .18s, border-color .12s, box-shadow .15s;
}

/* Simple appearance patterns */
::-webkit-scrollbar {
  width: 10px;
  background: var(--egg);
}
::-webkit-scrollbar-thumb {
  background: var(--retro-yellow);
  border-radius: 8px;
}

/* ===================================================
   MISC: TABLES, FORMS, MAPS, ETC.
=================================================== */
table, th, td {
  border: 2px solid var(--retro-yellow);
  border-collapse: collapse;
}
th, td { padding: 8px 10px; }

form label {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
  display: block;
}
input[type=text], input[type=email], input[type=tel], textarea {
  border: 2px solid var(--retro-yellow);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1em;
  margin-bottom: 14px;
  background: var(--accent);
  color: var(--retro-brown);
  font-family: var(--font-body);
  transition: border .15s;
}
input[type=text]:focus, input[type=email]:focus, textarea:focus {
  border-color: var(--retro-blue);
}

/* Contacts section map */
.contact-info img[alt*='Mapa'] {
  border-radius: 14px;
  border: 2px solid var(--retro-yellow);
  box-shadow: 0 4px 18px 0 rgba(213,184,79,0.11);
  margin-top: 12px;
  max-width: 98vw;
}

/* Decorative Patterns/Stripes */
.highlights, .legal, .news, .updates {
  background: repeating-linear-gradient(135deg,rgba(236,223,117,0.12) 0 12px,transparent 12px 34px) var(--cream);
}

/* ==========================
   Z-Index layering
========================== */
header { z-index: 200; }
.mobile-menu { z-index: 9999; }
.cookie-banner { z-index: 10001; }
.cookie-modal, .cookie-modal__overlay { z-index: 11010; }

/* ====================
   Print Friendly
==================== */
@media print {
  header, footer, .cookie-banner { display: none !important; }
  body { background: #fff !important; color: #222 !important; }
  section, .section { box-shadow: none !important; }
}

/* =============================
   Hide elements for accessibility
============================= */
.sr-only {
  position: absolute !important;
  left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
