/* --- 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: inherit;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
input, button, textarea, select { font: inherit; }

/* --- VINTAGE RETRO COLOR PALETTE (MIXED BRAND & RETRO) --- */
:root {
  --brand-primary: #21205e;
  --brand-secondary: #F4A300;
  --brand-accent: #F6F8FB;
  --retro-orange: #ec8357;
  --retro-blue: #6eb3c7;
  --retro-green: #a9c178;
  --retro-yellow: #ffe36e;
  --retro-bg: #F9F5F1;
  --retro-paper: #F6E9CE;
  --retro-brown: #884C24;
  --retro-ink: #3A2C1A;
  --retro-red: #E85757;
  --transition-fast: 0.18s cubic-bezier(.6,0,.68,.71);
  --transition: 0.35s cubic-bezier(.52,.08,.3,1);
  --shadow-vintage: 0 3px 18px 2px rgba(136,76,36,0.13);
  --card-radius: 18px;
  --button-radius: 24px;
}

/* --- FONTS (RETRO + BRAND) --- */
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:700,400|Open+Sans:400,600,700&display=swap');
body {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  background: var(--retro-bg);
  color: var(--retro-ink);
  font-size: 16px;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: var(--brand-primary);
}
h1 { font-size: 2.7rem; margin-bottom: 18px; letter-spacing: 0.03em; }
h2 { font-size: 2rem;   margin-bottom: 15px; letter-spacing: 0.015em; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.17rem; margin-bottom: 10px; }

p, li, ul, blockquote, address, small {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

blockquote {
  font-family: 'Roboto Slab', serif;
  font-style: italic;
  color: var(--retro-brown);
  background: var(--retro-paper);
  border-left: 7px solid var(--brand-secondary);
  padding: 18px 26px;
  margin: 36px 0;
  border-radius: var(--card-radius);
  box-shadow: 0 2px 8px 1px rgba(180,130,64,0.08);
}
blockquote small {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  font-style: normal;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

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

.section,
.hero, 
.testimonials, 
.contact-summary, 
.contact-info, 
.text-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-paper);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-vintage);
  position: relative;
}

.section:last-child, .hero:last-child, .testimonials:last-child, .contact-summary:last-child {
  margin-bottom: 0;
}

/* --- HERO --- */
.hero {
  background: linear-gradient(90deg, var(--retro-yellow) 0 40%,  var(--retro-orange) 90% 100%);
  color: var(--retro-ink);
  text-align: left;
  padding-top: 52px;
  padding-bottom: 52px;
  margin-bottom: 48px;
  box-shadow: 0 6px 18px 2px rgba(55,30,30,0.09);
  border-radius: var(--card-radius);
}
.hero h1, .hero h2, .hero p {
  color: var(--retro-brown);
}
.hero a.cta.primary {
  margin-top: 20px;
}

/* ---- MAIN NAVIGATION HEADER ---- */
header {
  background: var(--retro-bg);
  box-shadow: 0 3px 18px 2px rgba(136,76,36,.07);
  margin-bottom: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 82px;
  position: relative;
}
.logo {
  height: 50px;
  width: auto;
  margin-right: 34px;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-left: 14px;
}
.main-nav a {
  font-family: 'Roboto Slab', serif;
  color: var(--brand-primary);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  position: relative;
  padding: 6px 2px;
  transition: color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-secondary);
}
.cta.primary {
  background: var(--brand-secondary);
  color: #312200;
  font-weight: 700;
  font-family: 'Roboto Slab', serif;
  padding: 11px 32px;
  border-radius: var(--button-radius);
  font-size: 1.02rem;
  border: none;
  box-shadow: 0 2px 10px 1px rgba(240,160,30,.10);
  cursor: pointer;
  margin-left: 22px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cta.primary:hover,.cta.primary:focus {
  background: var(--retro-orange);
  color: #fff;
  box-shadow: 0 2px 19px 2px rgba(236,131,87,0.31);
}

button, .mobile-menu-toggle, .mobile-menu-close {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 2.2rem;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-toggle {
  display: none;
  margin-left: 24px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--brand-secondary);
}

/* --- MOBILE NAVIGATION MENU (BURGER) --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--retro-paper);
  box-shadow: 0 0 100px 30px rgba(100,80,55,0.10);
  z-index: 9999;
  flex-direction: column;
  padding-top: 38px;
  transform: translateX(-105%);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 0 32px 0 0;
  font-size: 2.4rem;
  background: none;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
  transition: color var(--transition-fast);
  z-index: 10002;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--retro-red);
}
.mobile-nav {
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  padding: 0 48px;
  justify-content: flex-start;
}
.mobile-nav a {
  font-family: 'Roboto Slab', serif;
  font-size: 1.3rem;
  padding: 10px 0;
  color: var(--brand-primary);
  width: 100%;
  border-bottom: 1px solid #eee;
  transition: color var(--transition);
  font-weight: 700;
}
.mobile-nav a:active, .mobile-nav a:hover {
  color: var(--brand-secondary);
}

/* --- FEATURE GRID & CARD --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.feature {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 300px;
  background: var(--retro-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-vintage);
  padding: 26px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 2.5px solid var(--retro-yellow);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover, .feature:focus-within {
  transform: translateY(-4px) scale(1.02) rotate(-.7deg);
  box-shadow: 0 8px 36px 4px rgba(180,123,38,0.14);
  border-color: var(--retro-orange);
}
.feature img {
  width: 48px;
  height: 48px;
  filter: sepia(0.5) hue-rotate(-7deg) brightness(0.95);
  margin-bottom: 10px;
}

/* --- TEAM & EXPERTISE --- */
.team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 24px 0;
}
.team-member {
  background: var(--retro-bg);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 9px 2px rgba(166,116,62,0.08);
  padding: 18px 20px;
  min-width: 180px;
  flex: 1 1 180px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 8px solid var(--brand-primary);
  transition: border-color var(--transition);
}
.team-member:hover, .team-member:focus-within {
  border-left: 8px solid var(--retro-orange);
}

.expertise-overview, .certifications-overview, .facility-overview, .tech-highlights, .selected-publications {
  background: var(--retro-paper);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 8px 1px rgba(166,116,52,.08);
  margin: 28px 0;
  padding: 16px 20px;
}

.logo-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  margin: 22px 0 28px 0;
}
.logo-bar img {
  width: 64px;
  height: 64px;
  filter: sepia(0.7) hue-rotate(-8deg) brightness(0.96);
}

.tech-icons {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  margin-bottom: 10px;
}
.tech-icons img {
  width: 36px;
  height: 36px;
  opacity: 0.85;
}

/* --- CARD CONTAINER (for future pages/cards) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--retro-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-vintage);
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 10px 25px 6px rgba(180,123,38,0.18);
  transform: translateY(-5px) scale(1.02);
}

/* --- CONTENT GRID --- */
.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 --- */
.testimonials .content-wrapper {
  gap: 22px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fffbe7;
  color: #321e01;
  min-width: 240px;
  margin-bottom: 20px;
  border-radius: var(--card-radius);
  box-shadow: 0 3px 18px 2px rgba(244,163,0,0.17);
  border-left: 7px solid var(--retro-orange);
  font-size: 1.07rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  border-left: 7px solid var(--brand-primary);
  box-shadow: 0 6px 32px 4px rgba(33,32,94,0.15);
}
.testimonial-card p {
  color: #282212;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: var(--retro-brown);
  font-size: 0.98rem;
  font-family: 'Roboto Slab', serif;
}

/* --- EVENT CALENDAR --- */
.event-calendar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.event-calendar ul {
  min-width: 240px;
  flex: 1 1 60%;
}
.event-highlights {
  flex: 1 1 220px;
  background: var(--retro-paper);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 8px 1px rgba(200,120,40,0.08);
  padding: 14px 18px;
}

/* --- WORKSHOP & SPEAKERS LISTS --- */
.workshop-list, .speakers-list {
  margin: 14px 0 18px 0;
  background: var(--retro-paper);
  border-radius: var(--card-radius);
  padding: 12px 18px;
  box-shadow: 0 2px 4px 0.5px rgba(180,123,38,0.08);
}
.speakers-list ul, .workshop-list ul {
  margin-left: 20px;
}

/* --- CONTACT PAGE --- */
.contact-info .container,
.contact-summary .container {
  flex-direction: column;
}
.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 24px;
  margin-top: 10px;
}
.contact-details-list p {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.03rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--brand-primary);
}
.contact-details-list img {
  width: 26px;
  height: 26px;
  opacity: 0.71;
}
.location-map {
  background: var(--retro-bg);
  border-radius: var(--card-radius);
  box-shadow: 0 1px 6px 1px rgba(100,100,90,0.04);
  padding: 14px 18px;
  color: var(--retro-brown);
  font-size: 1.02rem;
  margin-bottom: 18px;
}

/* --- PUBLICATIONS --- */
.publications-list {
  margin-bottom: 28px;
}
.publications-list li {
  margin-bottom: 18px;
  padding: 14px 0 8px 0;
  border-left: 5px solid var(--brand-secondary);
  padding-left: 15px;
  background: none;
  font-size: 1rem;
  line-height: 1.4;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

.selected-publications ul {
  margin-left: 15px;
}

/* --- FOOTER --- */
footer {
  background: var(--brand-primary);
  color: #fffbe5;
  padding: 32px 0 24px 0;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
  margin-bottom: 16px;
}
.footer-nav a {
  color: var(--brand-secondary);
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  font-weight: 700;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fffbe7;
  text-decoration: underline;
}
.footer-contact {
  font-size: 0.97rem;
  color: #dadada;
}
.footer-contact a { color: var(--retro-yellow); }
.footer-contact small {
  display: block;
  color: #e0c68f;
  margin-top: 8px;
}

/* --- SPACING AND FLEXBOX LAYOUTS (MANDATORY PATTERNS, OVERRIDES) --- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --- BUTTONS, LINKS & INTERACTION --- */
button, .cta, .cta.primary {
  outline: none;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
button:active, .cta.primary:active {
  transform: scale(0.98);
}
a:focus,
button:focus,
.cta.primary:focus {
  outline: 2px dashed var(--brand-primary);
  outline-offset: 3px;
}

/* --- TABLES --- */
table {
  border-collapse: collapse;
  width: 100%;
  background: var(--retro-paper);
  margin-bottom: 24px;
  font-size: 1rem;
}
th, td {
  border: 1px solid #efd36a;
  padding: 10px;
  text-align: left;
}
th {
  background: var(--retro-yellow);
  color: var(--brand-primary);
}

/* --- MODALS/OVERLAYS: COOKIE BANNER & COOKIE PREFERENCES --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--brand-primary);
  color: #fffbe7;
  z-index: 12000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -3px 22px 4px rgba(30,22,0,0.12);
  padding: 24px 20px;
  gap: 24px;
  font-size: 1.07rem;
  min-height: 72px;
  animation: cookieBannerPopin 0.7s cubic-bezier(.59,.07,.45,.94);
}
@keyframes cookieBannerPopin {
  0% { transform: translateY(100%); opacity: 0.1; }
  85% { transform: translateY(-8%); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
}
.cookie-banner button,
.cookie-banner .cookie-settings-btn {
  border: none;
  background: var(--brand-secondary);
  color: #231709;
  font-family: 'Roboto Slab', serif;
  font-size: 1.04rem;
  padding: 10px 22px;
  border-radius: var(--button-radius);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  font-weight: 700;
}
.cookie-banner button.reject {
  background: var(--retro-orange);
  color: #fffbe7;
}
.cookie-banner button:hover, .cookie-banner button:focus, .cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--brand-primary);
  color: var(--retro-yellow);
}

/* COOKIES SETTINGS MODAL DIALOG */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 13000;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,21,2,0.41);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieBackdropShow 0.38s cubic-bezier(.32,.6,.48,.97);
}
@keyframes cookieBackdropShow {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--retro-bg);
  color: var(--retro-ink);
  padding: 36px 34px 24px 34px;
  border-radius: 22px;
  box-shadow: 0 6px 35px 5px rgba(55,30,30,0.11);
  width: 98vw;
  max-width: 420px;
  animation: cookieModalPop 0.33s cubic-bezier(.53,.23,.62,1.09);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
@keyframes cookieModalPop {
  0% { transform: scale(0.88) translateY(18px); opacity: 0.2; }
  70% { transform: scale(1.03) translateY(-6px); opacity: 0.97; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  color: var(--brand-primary);
  font-family: 'Roboto Slab', serif;
}
.cookie-prefs-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-prefs-list .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}
.cookie-prefs-list .cookie-category input[type="checkbox"] {
  width: 20px; height: 20px; accent-color: var(--brand-primary);
}
.cookie-prefs-list .cookie-category.essential label {
  color: var(--retro-brown);
  font-weight: 700;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 18px;
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 2.1rem;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--retro-red);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  border-radius: var(--button-radius);
  font-family: 'Roboto Slab', serif;
}

/* --- UTILITIES --- */
.hide { display: none !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }

/* --- TYPOGRAPHY SCALE --- */
h1 { font-size: 2.7rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p, li, blockquote, .footer-contact, .testimonial-card p {
  font-size: 1.07rem;
}
small, .footer-contact small {
  font-size: 0.93rem;
}

/* --- RESPONSIVE DESIGN (MOBILE FIRST) --- */
@media (max-width: 1200px) {
  .container { padding: 0 16px; }
}
@media (max-width: 1024px) {
  .container { max-width: 96vw; }
  .feature-grid { gap: 16px; }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .feature-grid, .content-grid, .team-profiles { gap: 12px; }
}
@media (max-width: 868px) {
  header .container { flex-direction: column; gap: 8px; height: auto; }
  .main-nav, .cta.primary { margin-left: 0; }
}
@media (max-width: 768px) {
  /* --- MOBILE NAVIGATION --- */
  .main-nav, .cta.primary { display: none; }
  .mobile-menu-toggle { display: block; }
  .container { padding: 0 10px; }
  .section, .hero, .testimonials, .contact-summary, .contact-info, .text-section {
    padding: 28px 7px;
    margin-bottom: 38px;
  }
  .feature-grid, .team-profiles {
    flex-direction: column;
    gap: 18px;
  }
  .feature, .team-member {
    min-width: 100%;
    max-width: 98vw;
    width: 100%;
  }
  .event-calendar { flex-direction: column; gap: 18px; }
  .text-image-section { flex-direction: column; gap: 22px; }
  .card-container, .content-grid { flex-direction: column; gap: 18px; }
}
@media (max-width: 580px) {
  header .container { padding: 0 5px; }
  .logo { height: 38px; }
  .footer-nav { flex-direction: column; gap: 8px; align-items: flex-start; }
  footer { padding: 18px 0 13px 0; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 15px; padding: 12px 7px; font-size: 1rem; }
  .cookie-banner .cookie-buttons { gap: 11px; }
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.card, .feature, .team-member, .testimonial-card {
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
a, .cta.primary, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: color var(--transition), background var(--transition); 
}

/* --- END OF STYLE.CSS --- */
