/* === CSS RESET & ROOT VARIABLES === */
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, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5; background: #fff; color: #353238;
}
ol, ul { list-style: none; }
a { background: transparent; color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border: 0; }
b, strong { font-weight: bold; }
input, button, textarea, select { font-family: inherit; font-size: inherit; }
button { background: none; border: none; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; }

:root {
  --brand-primary: #A3142D;
  --brand-secondary: #353238;
  --brand-accent: #F5F2EC;
  --white: #fff;
  --shadow-light: 0 2px 12px rgba(40,30,40,.08);
  --shadow-hover: 0 4px 20px rgba(163,20,45, 0.07);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.2s cubic-bezier(.55,.09,.68,.53);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  --h1-size: 2.25rem;
  --h2-size: 1.5rem;
  --h3-size: 1.125rem;
  --text-size: 1rem;
  --text-sm: 0.9375rem;
  --gap-section: 60px;
  --gap-card: 24px;
  --gap-inner: 20px;
  --gap-feature: 15px;
}

/* == TYPOGRAPHY == */
body {
  font-family: var(--font-body);
  font-size: var(--text-size);
  color: var(--brand-secondary);
  background: var(--white);
}
h1 {
  font-family: var(--font-display);
  font-size: var(--h1-size);
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--brand-secondary);
  line-height: 1.2;
}
h3 {
  font-family: var(--font-display);
  font-size: var(--h3-size);
  font-weight: 600;
  margin-bottom: 10px;
}
p, li {
  font-size: var(--text-size);
  margin-bottom: 16px;
  color: var(--brand-secondary);
  line-height: 1.7;
}
strong { color: var(--brand-primary); font-weight: 600; }
ul, ol { margin-left: 1.2em; }
ul li, ol li { margin-bottom: 8px; }
a { color: var(--brand-primary); transition: color .18s; }
a:hover, a:focus { color: #840e20; text-decoration: underline; }

/* === LAYOUT & CONTAINERS === */
.container {
  width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px;
}
.content-wrapper {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start;
}

.section {
  margin-bottom: var(--gap-section);
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
}

/* === HEADER & NAVIGATION === */
header {
  background: var(--white);
  border-bottom: 1px solid #EEEDEE;
  box-shadow: 0 2px 8px rgba(163,20,45,.04);
}
header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px;
}
header img {
  height: 40px; width: auto;
}
header nav {
  display: flex; gap: 20px; flex-wrap: wrap;
}
header nav a {
  font-family: var(--font-display);
  color: var(--brand-secondary);
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 0;
  position: relative;
  transition: color var(--transition);
}
header nav a:hover, header nav a:focus {
  color: var(--brand-primary);
}
.cta-btn {
  font-family: var(--font-display);
  padding: 10px 26px;
  background: var(--brand-primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(163,20,45,0.09);
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #8e1026;
  color: var(--white);
  box-shadow: 0 6px 18px rgba(163,20,45,0.13);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px; right: 22px;
  width: 44px; height: 44px;
  background: var(--brand-primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 2rem;
  z-index: 1002;
  align-items: center; justify-content: center;
  transition: background var(--transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #8e1026;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: var(--brand-accent);
  z-index: 1100;
  padding: 32px 24px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.43,.13,.25,.93);
  opacity: 0; pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1; pointer-events: auto;
  box-shadow: 0 6px 48px rgba(49, 22, 28, 0.12);
}
.mobile-menu-close {
  align-self: flex-end;
  width: 42px; height: 42px;
  background: var(--brand-primary);
  color: var(--white);
  font-size: 2rem;
  border-radius: 50%;
  margin-bottom: 18px;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #8e1026;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brand-secondary);
  font-weight: 600;
  padding: 14px 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  min-width: 150px;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-primary);
  background: var(--white);
}

@media (max-width: 1100px) {
  header nav { gap: 14px; }
}
@media (max-width: 900px) {
  header .container { gap: 8px; }
}
@media (max-width: 768px) {
  header nav, header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* === HERO SECTION === */
.hero {
  background: var(--brand-accent);
  border-radius: var(--radius);
  padding: 56px 0 50px 0;
  margin-bottom: var(--gap-section);
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 720px;
  margin: 0 auto;
}
.hero h1 { color: var(--brand-primary); margin-bottom: 18px; }
.hero p { font-size: 1.18rem; color: var(--brand-secondary); margin-bottom: 28px; }

@media (max-width: 700px) {
  .hero { padding: 32px 0 30px 0; }
  .hero .content-wrapper { padding: 0; }
}

/* === CARDS & FLEX GRIDS === */
.feature-grid, .card-container,
.content-grid, .features,
.certifications, .presenters, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-card);
  align-items: flex-start;
  margin-bottom: 8px;
}

.feature-grid {
  gap: var(--gap-card);
  margin-top: 16px;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 32px 20px 22px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 290px;
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 15px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature:hover, .feature:focus-within {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.015);
}
.feature img {
  width: 38px; height: 38px; margin-bottom: 8px;
}
.feature h3 { color: var(--brand-primary); margin-bottom: 6px; font-size: 1.11rem; }
.feature p { font-size: var(--text-sm); }

.card-container {
  gap: var(--gap-card); margin-bottom: 30px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 30px 22px;
  min-width: 250px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
  position: relative;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-hover);
  transform: scale(1.012);
}

/* Override default gap or margin for various flex layouts */
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .feature-grid, .content-grid, .card-container {
    flex-direction: column; gap: 20px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--brand-accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(163,20,45,.08);
  font-size: 1.04rem;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 24px rgba(163,20,45,.11);
  transform: scale(1.008);
}
.testimonial-card p {
  color: var(--brand-secondary);
  font-size: 1.09rem;
  font-style: italic;
  margin-bottom: 4px;
}
.testimonial-card strong {
  color: var(--brand-primary);
  font-size: 1.02rem;
}
.testimonial-card div { color: #6f6a72; font-size: 0.98rem; }

/* === FAQS === */
.faq-list {
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.faq-item {
  background: var(--brand-accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 8px rgba(53,50,56,0.04);
  padding: 20px 18px;
  transition: box-shadow var(--transition);
}
.faq-item h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--brand-primary); }

/* === TEAM MEMBERS === */
.team-member {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-light);
  padding: 22px 18px 14px 18px;
  margin-bottom: 18px;
  min-width: 250px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-member:hover, .team-member:focus-within {
  box-shadow: 0 6px 18px rgba(53,50,56,.09);
  transform: scale(1.008);
}
.team-member h3 { color: var(--brand-primary); margin-bottom: 6px; }

/* === BENEFITS, CERTIFICATIONS, PRESENTERS === */
.benefits, .certifications, .presenters {
  gap: var(--gap-inner);
  margin-top: 12px;
  align-items: center;
}
.certifications img, .presenters img {
  width: 28px; height: 28px; margin-bottom: -4px; margin-right: 8px;
}

/* === FOOTER === */
footer {
  background: var(--brand-accent);
  padding: 48px 0 30px 0;
  border-top: 1px solid #e1e1e1;
}
footer .container {
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
footer img { height: 32px; width: auto; margin-bottom: 8px; }
footer nav { display: flex; flex-direction: column; gap: 12px; }
footer nav a {
  color: var(--brand-secondary);
  font-size: 1rem;
  font-family: var(--font-display);
  margin-bottom: 2px;
  transition: color var(--transition);
}
footer nav a:hover, footer nav a:focus { color: var(--brand-primary); }
.footer-contact p {
  font-size: 0.97rem; color: #6f6a72; margin-bottom: 7px;
}
@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 14px; align-items: flex-start; }
}

/* === CONTACT SECTION === */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.contact-details strong { color: var(--brand-primary); }
.map-location img { border-radius: var(--radius-sm); box-shadow: 0 2px 14px rgba(163,20,45,0.07); max-width: 250px; }

/* === BUTTONS === */
button, .cta-btn {
  outline: none;
  border: none;
}
button:focus, .cta-btn:focus { outline: 2px solid var(--brand-primary); }

/* === MICRO-INTERACTIONS & ANIMATIONS === */
a, .cta-btn, button, .card, .faq-item, .feature, .team-member, .testimonial-card {
  transition: box-shadow var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}

/* === RESPONSIVE TYPOGRAPHY & SPACING === */
@media (max-width: 1170px) {
  .container { max-width: 96vw; padding-left: 4vw; padding-right: 4vw; }
}
@media (max-width: 700px) {
  :root {
    --gap-section: 32px;
    --gap-card: 14px;
    --gap-inner: 12px;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.12rem; }
  h3 { font-size: 1rem; }
  .section { padding: 27px 8px; }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: var(--brand-secondary);
  color: var(--white);
  padding: 18px 22px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 20px rgba(53,50,56,0.07);
  animation: cookieIn 0.35s cubic-bezier(.42,.15,.7,1.12);
}
@keyframes cookieIn {
  0% { transform: translateY(100%); opacity: 0; }
  90% { transform: translateY(-8px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 11px;
  text-align: center;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  background: var(--brand-accent);
  color: var(--brand-primary);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 4px rgba(242,224,226,0.10);
}
.cookie-btn.accept {
  background: var(--brand-primary);
  color: var(--white);
}
.cookie-btn.reject {
  background: #EEEDEE;
  color: var(--brand-secondary);
}
.cookie-btn.settings {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(0.95);
  box-shadow: 0 2px 10px rgba(163,20,45,.08);
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 1300;
  min-width: 320px; max-width: 96vw;
  background: var(--white);
  color: var(--brand-secondary);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(53,50,56,0.14);
  padding: 32px 26px 24px 26px;
  display: flex; flex-direction: column; gap: 18px;
  animation: cookieModalIn 0.35s cubic-bezier(.5,.11,.6,1.14);
}
@keyframes cookieModalIn {
  0% { transform: translate(-50%,60%) scale(.93); opacity: 0; }
  80% { transform: translate(-50%,-4%) scale(1.03); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}
.cookie-modal__title {
  font-size: 1.2rem;
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 700;
}
.cookie-modal__section {
  display: flex; flex-direction: column;
  gap: 8px;
}
.cookie-modal__category {
  display: flex; align-items: center;
  gap: 10px;
}
.cookie-modal__category label {
  font-size: 1rem;
  color: var(--brand-secondary);
}
.cookie-modal__category input[type="checkbox"]:disabled + label {
  color: #c0bfc3; cursor: not-allowed;
}
.cookie-modal__actions {
  display: flex; gap: 12px; align-items: center; margin-top: 8px;
}
.cookie-modal__close {
  position: absolute; top: 18px; right: 20px;
  background: var(--brand-accent);
  color: var(--brand-primary);
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.25rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #EEEDEE;
  color: #8e1026;
}

@media (max-width: 450px) {
  .cookie-modal {
    padding: 19px 7px 11px 11px;
    min-width: 200px;
  }
}

/* === UTILITY CLASSES === */
.mt-2x { margin-top: 32px; }
.mb-2x { margin-bottom: 32px; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.align-center { align-items: center; }
.gap-20 { gap: 20px; }

/* === ACCESSIBILITY: FOCUS VISIBLE === */
*:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }

/* === HIDE WHEN NOT VISIBLE FOR ACCESSIBILITY === */
[hidden], .hidden { display: none !important; }

/* === PRINT STYLES === */
@media print {
  header, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
  body { color: #111 !important; background: #fff !important; }
}
