/* ===== CSS RESET & NORMALIZATION ===== */
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, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background-color: #E0E6F6;
  color: #1B2746;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  outline: none;
  background: none;
}

/* ===== CSS CUSTOM PROPERTIES (FALLBACKS WITH DEFAULTS) ===== */
:root {
  --color-primary: #1B2746;
  --color-secondary: #FFFFFF;
  --color-bg: #E0E6F6;
  --color-accent: #258066;
  --color-accent-hover: #237A5D;
  --shadow-card: 0 2px 12px rgba(27,39,70,0.07);
  --shadow-strong: 0 4px 20px rgba(27,39,70,0.13);
  --radius-card: 20px;
  --radius-btn: 12px;
  --transition: all 0.25s cubic-bezier(.4,.1,.2,1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ===== GLOBALS & TYPOGRAPHY ===== */
body {
  background: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-primary);
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-primary);
  margin-bottom: 20px;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
p, ul li, ol li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.subheadline {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--color-accent);
  margin-bottom: 30px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
strong {
  font-weight: bold;
}
blockquote {
  padding: 24px 32px;
  background: var(--color-secondary);
  border-left: 6px solid var(--color-accent);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  margin: 20px 0;
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 10px;
  }
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--color-secondary);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: 8px;
}
a img[alt="SveglRappi"] {
  height: 48px;
  margin-right: 26px;
}
.desktop-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.desktop-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  letter-spacing: 0.03em;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.desktop-nav a:hover, .desktop-nav a:focus {
  color: var(--color-accent);
}
.cta-button {
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--color-accent);
  color: var(--color-secondary);
  border-radius: var(--radius-btn);
  padding: 12px 32px;
  margin-left: 28px;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  box-shadow: var(--shadow-card);
  transition: background var(--transition), box-shadow var(--transition);
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-accent-hover);
  color: #fff;
  box-shadow: var(--shadow-strong);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-size: 2rem;
  border-radius: 10px;
  padding: 6px 14px;
  margin-left: 18px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 102;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-accent);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #1B2746F0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 30px;
  z-index: 110;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.4,.1,.2,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
  box-shadow: var(--shadow-strong);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.3rem;
  border: none;
  align-self: flex-end;
  margin-bottom: 38px;
  cursor: pointer;
  z-index: 120;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 10px;
  transition: background 0.22s, color 0.18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-accent);
  color: #fff;
}
@media (max-width: 1000px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1001px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ====== SECTIONS & FLEX LAYOUTS ====== */
.features-grid, .event-grid, .card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.features-grid, .event-grid {
  justify-content: flex-start;
  align-items: stretch;
}
.card-container, .blog-post-list, .course-listings, .event-benefits, .benefits-list, .address-list {
  gap: 20px;
}
.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(--color-secondary);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  min-width: 0;
  width: 100%;
  flex: 1 1 0px;
  border-left: 5px solid var(--color-accent);
}
.testimonial-card p {
  color: #22293E;
  margin-bottom: 0;
  font-size: 1.08rem;
  flex: 1;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--color-accent);
  font-weight: 500;
}
.card {
  background: var(--color-secondary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  margin-bottom: 20px;
  position: relative;
}
.feature-card, .event-card {
  background: var(--color-secondary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 24px 26px 24px;
  min-width: 250px;
  max-width: 340px;
  flex: 1 1 290px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 5px solid var(--color-accent);
}
.feature-card img, .event-card img {
  height: 48px;
  width: 48px;
  margin-bottom: 10px;
}
.feature-card h3, .event-card h3 {
  margin-bottom: 8px;
}
.newsletter-signup a.cta-link {
  margin-top: 14px;
  display: inline-block;
}
.instructor-bio {
  background: var(--color-secondary);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 24px 22px;
  margin-bottom: 20px;
  flex: 1 1 220px;
}
.statistics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 500;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 850px) {
  .features-grid, .event-grid, .card-container, .content-grid {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .features-grid, .event-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-card, .event-card, .instructor-bio {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* ===== BUTTONS & CTA LINKS ===== */
.cta-link {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1.08rem;
  border-bottom: 2.5px solid var(--color-accent);
  transition: color 0.2s, border-color 0.23s;
  margin-top: 14px;
  display: inline-block;
  letter-spacing: 1.5px;
}
.cta-link:hover,
.cta-link:focus {
  color: var(--color-accent-hover);
  border-bottom: 2.5px solid var(--color-accent-hover);
}

/* ===== BLOG & LISTS ===== */
.blog-post-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}
.blog-post-list li {
  background: var(--color-secondary);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.topic-categories {
  display: flex;
  gap: 12px;
  font-size: 1rem;
  color: var(--color-primary);
  opacity: 0.9;
  flex-wrap: wrap;
  margin: 18px 0 8px 0;
}
.trending-articles {
  margin-top: 6px;
  color: var(--color-accent);
  font-weight: 500;
  font-size: 1.01rem;
}
.course-listings, .event-benefits, .benefits-list, .address-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 0 0;
}
.course-listings li, .event-benefits li, .benefits-list li, .address-list li {
  padding-left: 0;
  font-size: 1.07rem;
  line-height: 1.5;
  color: var(--color-primary);
  background: none;
}

/* ====== FOOTER ====== */
footer {
  background: var(--color-primary);
  color: #fff;
  width: 100%;
  padding: 54px 0 26px 0;
  margin-top: 60px;
}
footer .container {
  gap: 34px;
  align-items: center;
  justify-content: center;
}
.footer-nav,
.legal-nav,
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  align-items: center;
}
.footer-nav a,
.legal-nav a {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.89;
  letter-spacing: 0.5px;
  transition: color 0.22s;
}
.footer-nav a:hover,
.legal-nav a:hover {
  color: var(--color-accent);
}
.footer-social a {
  display: flex;
  align-items: center;
}
.footer-social img {
  width: 27px;
  height: 27px;
  margin-right: 2px;
  filter: brightness(98%) saturate(1.5);
  transition: filter 0.21s;
}
.footer-social a:hover img {
  filter: brightness(140%) saturate(2) drop-shadow(0 2px 4px #21635142);
}
footer p {
  color: #fff;
  opacity: 0.77;
  font-size: 1rem;
  margin-top: 18px;
  letter-spacing: 0.3px;
}
@media (max-width: 900px) {
  footer .container {
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .footer-nav,
  .legal-nav,
  .footer-social {
    justify-content: flex-start;
  }
}

/* ====== COOKIE CONSENT BANNER ====== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #fff;
  color: var(--color-primary);
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 -4px 16px rgba(35,122,93,0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 34px 22px 28px;
  z-index: 5000;
  font-size: 1rem;
  transition: transform 0.45s cubic-bezier(.5,.12,.3,.96);
}
.cookie-banner.hide {
  transform: translateY(130%);
}
.cookie-banner-content {
  flex: 1;
  max-width: 600px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 9px 18px;
  margin: 0 0 0 0;
  border: none;
  color: #fff;
  background: var(--color-accent);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(35,122,93,0.11);
  transition: background 0.21s, color 0.19s;
}
.cookie-banner button.cookie-settings {
  background: #F3F7FE;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.cookie-banner button.cookie-settings:hover {
  background: var(--color-accent);
  color: #fff;
}
.cookie-banner button:focus {
  outline: 2px solid var(--color-primary);
}
.cookie-banner button:hover:not(.cookie-settings) {
  background: var(--color-accent-hover);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 8px 22px 12px;
    font-size: 0.97rem;
  }
  .cookie-banner-actions {
    flex-direction: column;
    gap: 9px;
  }
}

/* ====== COOKIE MODAL ====== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(27,39,70,0.63);
  z-index: 5100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.hide {
  pointer-events: none;
  opacity: 0;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
  min-width: 320px;
  max-width: 92vw;
  padding: 40px 30px 32px 30px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  background: none;
  color: var(--color-primary);
  font-size: 2.1rem;
  cursor: pointer;
}
.cookie-modal h2 {
  font-size: 1.43rem;
  margin-bottom: 16px;
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.cookie-category label {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
.cookie-toggle {
  accent-color: var(--color-accent);
  width: 19px; height: 19px;
}
.cookie-category .always-on {
  color: var(--color-accent);
  font-weight: 600;
  margin-left: 8px;
  font-size: 1.03rem;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 19px;
  flex-wrap: wrap;
}
.cookie-modal-actions button {
  font-family: var(--font-display);
  background: var(--color-accent);
  color: #fff;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1rem;
  margin: 0;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.18s, color 0.16s;
}
.cookie-modal-actions button:focus {
  outline: 2px solid var(--color-primary);
}
.cookie-modal-actions button:hover {
  background: var(--color-accent-hover);
}

@media (max-width: 520px) {
  .cookie-modal {
    min-width: 0;
    padding: 23px 7px 18px 12px;
  }
}

/* ====== RESPONSIVE TYPOGRAPHY ====== */
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.33rem;
  }
  h3 {
    font-size: 1.08rem;
  }
}

/* ====== MICRO-INTERACTIONS & TRANSITIONS ====== */
a, button, .cta-link, .cta-button {
  transition: color 0.14s, background 0.19s, border-color 0.17s, box-shadow var(--transition);
}
.card, .feature-card, .event-card, .instructor-bio, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.19s;
}
.card:hover, .feature-card:hover, .event-card:hover, .instructor-bio:hover, .testimonial-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px) scale(1.012);
  z-index: 3;
}

/* ====== GEOMETRIC ACCENTS (DECORATIVE) ====== */
/* Example geometric highlights for major sections (use only for backgrounds / non-content) */
.section {
  position: relative;
}
.section::before {
  content: "";
  display: block;
  position: absolute;
  left: -50px; top: -40px;
  width: 90px; height: 90px;
  background: linear-gradient(135deg, var(--color-accent) 20%, var(--color-secondary) 100%);
  opacity: 0.06;
  border-radius: 22% 78% 66% 34%;
  z-index: 0;
  pointer-events: none;
}
.content-wrapper {
  position: relative;
  z-index: 1;
}

/* ====== UTILITY CLASSES ====== */
.text-center {
  text-align: center;
}
.d-flex {
  display: flex;
}
.align-center {
  align-items: center;
}
.flex-col {
  flex-direction: column;
}
.gap-20 {
  gap: 20px;
}

/* ====== ACCESSIBILITY: FOCUS VISIBILITY ====== */
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2.5px;
}

/* ====== HIDE & SHOW HELPERS ====== */
.hide {
  display: none !important;
}

/* ====== END OF CSS ====== */