/* 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;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #1a2533;
  background: #fafbfc;
  min-height: 100vh;
}

*, *::before, *::after {
  box-sizing: inherit;
}

img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}

ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 16px;
  text-align: left;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* BRAND + TYPOGRAPHY */
:root {
  --color-primary: #075495;
  --color-secondary: #FFD43B;
  --color-accent: #ffffff;
  --color-bg: #fafbfc;
  --color-text-main: #1a2533;
  --color-card-bg: #ffffff;
  --color-card-shadow: rgba(7,84,149,0.09);
  --card-radius: 16px;
  --transition: 0.2s cubic-bezier(.4,0,.2,1);

  --fs-xs: 0.875rem;
  --fs-sm: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2rem;
  --fs-xxl: 2.75rem;
}

h1, h2, h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-primary);
  line-height: 1.1;
}
h1 {
  font-size: var(--fs-xxl);
  margin-bottom: 24px;
  text-transform: uppercase;
}
h2 {
  font-size: var(--fs-xl);
  margin-bottom: 20px;
  text-transform: uppercase;
}
h3 {
  font-size: var(--fs-lg);
  margin-bottom: 18px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-primary);
}
p, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--color-text-main);
  font-size: var(--fs-sm);
  line-height: 1.65;
}
strong {
  font-weight: 700;
}

/* UTILITY FLEX CONTAINERS */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 0 14px 0;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 12px var(--color-card-shadow);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:last-child { margin-bottom: 0; }

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: var(--color-card-bg);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 8px var(--color-card-shadow);
  margin-bottom: 20px;
  min-width: 230px;
  border-left: 6px solid var(--color-secondary);
}
.testimonial-card:last-child { margin-bottom: 0; }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.courses-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  padding: 14px 0;
}

/* HERO, MAIN, SECTIONS */
section {
  padding: 40px 0;
  margin-bottom: 60px;
  border-radius: 0 0 42px 42px;
  background: var(--color-bg);
  box-shadow: 0 2px 12px var(--color-card-shadow);
}
section:nth-of-type(even) {
  background: #eaf3f9;
  border-radius: 42px 0 42px 0;
}

/* BUTTONS & CTA */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: var(--fs-md);
  text-transform: uppercase;
  padding: 13px 36px;
  border-radius: 24px;
  border: none;
  background: var(--color-secondary);
  color: #29374b;
  box-shadow: 0 2px 8px var(--color-card-shadow);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  outline: none;
  cursor: pointer;
  margin-top: 6px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 6px 32px #0754951c;
}
.cta-btn.secondary {
  background: #29374b;
  color: #fff;
  border: 2px solid var(--color-secondary);
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: var(--color-secondary);
  color: #29374b;
}

/* NAVIGATION */
header {
  background: var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 16px rgba(7,84,149,0.06);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary);
  padding: 8px 18px;
  border-radius: 12px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: #29374b;
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #29374b;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1.8rem;
  margin-left: 12px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  z-index: 1002;
  outline: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 340px;
  height: 100vh;
  background: var(--color-card-bg);
  box-shadow: -4px 0 24px rgba(7,84,149,0.12);
  transform: translateX(100%);
  transition: transform 0.3s var(--transition);
  display: flex;
  flex-direction: column;
  z-index: 2000;
  padding: 32px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  display: block;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 32px;
  cursor: pointer;
  z-index: 2001;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: var(--fs-lg);
  color: var(--color-primary);
  font-weight: 600;
  padding: 16px 8px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #29374b;
}

/* FOOTER */
footer {
  background: #ecf2fa;
  color: #29374b;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -2px 16px rgba(7,84,149,0.04);
  margin-top: 80px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: center;
  padding: 34px 0 10px 0;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
  padding: 6px 16px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-secondary);
  color: #29374b;
}
.footer-contact {
  font-size: var(--fs-xs);
  color: #29374b;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 30px;
  padding-left: 4px;
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 4px;
  width: 15px;
  height: 15px;
}

/* PRICING TABLE */
.pricing-table {
  width: 100%;
  box-shadow: 0 2px 8px var(--color-card-shadow);
  border-radius: var(--card-radius);
  background: #fff;
  margin-bottom: 24px;
  overflow: hidden;
}
.pricing-table th {
  background: var(--color-primary);
  color: var(--color-accent);
  font-family: 'Montserrat', Arial;
  font-size: var(--fs-sm);
  font-weight: 700;
  border: none;
}
.pricing-table td {
  border-top: 1px solid #eaf3f9;
  font-family: 'Open Sans', Arial;
}
.pricing-table tr:nth-child(even) td {
  background: #f6f8fa;
}

/* TESTIMONIALS */
.testimonial-card {
  border-left: 6px solid var(--color-secondary);
  background: var(--color-card-bg);
  color: var(--color-text-main);
  box-shadow: 0 2px 8px var(--color-card-shadow);
  min-width: 220px;
  border-radius: var(--card-radius);
  padding: 20px 28px;
}
.testimonial-card p {
  font-size: var(--fs-md);
  font-weight: 400;
  margin-bottom: 12px;
  color: #333;
}
.testimonial-card .stars {
  color: var(--color-secondary);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
}
.testimonial-card strong {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}

/* LINKS & MICRO-INTERACTIONS */
a:not(.cta-btn):not(.footer-nav a):not(.main-nav a):not(.mobile-nav a) {
  color: var(--color-primary);
  text-decoration: underline dotted 2px;
  transition: color 0.15s;
}
a:not(.cta-btn):not(.footer-nav a):not(.main-nav a):not(.mobile-nav a):hover {
  color: #29374b;
  text-decoration: underline solid 2px;
}

/* LIST STYLES & ICONS */
ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 8px;
}
ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  margin-bottom: 10px;
  position: relative;
}
ul li img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
ul li:last-child { margin-bottom: 0; }
li::before {
  content: '';
  display: none;
}

/* GEOMETRIC/STRUCTURED DECORATIVE SHAPES */
section {
  position: relative;
  overflow: visible;
}
section:after {
  content: '';
  display: block;
  position: absolute;
  top: -24px;
  right: -24px;
  width: 54px;
  height: 54px;
  background: var(--color-secondary);
  border-radius: 12px 34px 2px 2px;
  transform: rotate(15deg);
  opacity: 0.12;
  z-index: 0;
}
section:nth-of-type(even):after {
  left: -24px;
  right: auto;
  border-radius: 2px 34px 12px 2px;
  transform: rotate(-6deg);
}

/* Responsive Geometric Shadow for Cards */
.card, .testimonial-card, .pricing-table {
  box-shadow: 0 2px 16px var(--color-card-shadow);
}

/* Extra geometric accents for buttons */
.cta-btn::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 12px;
  background: var(--color-primary);
  mask: url('../assets/icons/icon-chevron-right.svg') no-repeat center;
  -webkit-mask: url('../assets/icons/icon-chevron-right.svg') no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
  vertical-align: middle;
  transition: background 0.18s;
}
.cta-btn.secondary::after { background: var(--color-secondary); }
.cta-btn:hover::after { background: var(--color-secondary); }
.cta-btn.secondary:hover::after { background: var(--color-primary); }

/* Stars in testimonials */
.stars { font-family: 'Montserrat', 'Open Sans', Arial, sans-serif; }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -2px 20px 0 rgba(7,84,149,0.18);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  z-index: 3000;
  animation: cookieBannerSlideIn 0.34s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieBannerSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: var(--fs-sm);
  color: var(--color-primary);
  max-width: 420px;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: 18px;
  padding: 10px 26px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #013e71;
}
.cookie-btn.reject {
  background: #eee;
  color: #29374b;
}
.cookie-btn.reject:hover {
  background: #ccc;
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: #29374b;
}
.cookie-btn.settings:hover {
  background: #ffe062;
}
/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3100;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(7,84,149,0.19);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.24s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 4px 32px rgba(7,84,149,0.20);
  max-width: 96vw;
  width: 380px;
  padding: 40px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideDownModal 0.23s;
  position: relative;
}
@keyframes slideDownModal {
  from { transform: translateY(-64px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 12px;
  font-size: var(--fs-lg);
}
.cookie-modal label {
  font-size: var(--fs-sm);
  color: #29374b;
  font-weight: 600;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: #eaf3f9;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal .cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-modal .cookie-toggle::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.14s, background 0.14s;
}
.cookie-modal .cookie-toggle:checked::after {
  left: 18px;
  background: #29374b;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 22px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-primary);
  cursor: pointer;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* HIERARCHY & SPACING */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .content-grid, .courses-grid, .footer-nav {
  gap: 24px;
}
.card, .testimonial-card {
  margin-bottom: 20px;
}
.text-image-section {
  gap: 30px;
}
.testimonial-card {
  gap: 20px;
  padding: 20px;
}
.feature-item {
  gap: 15px;
}

/* GEOMETRIC FONT ACCENT */
h1, h2, h3, .cta-btn, .main-nav a, .footer-nav a, .mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* TABLET & DESKTOP RESPONSIVE */
@media (min-width: 769px) {
  .content-wrapper {
    
    gap: 48px;
    align-items: flex-start;
  }
  .courses-grid, .card-container, .content-grid {
    
    align-items: flex-start;
  }
  .testimonial-card {
    min-width: 320px;
    max-width: 500px;
  }
  .main-nav {
    display: flex;
    
    gap: 24px;
  }
}

/* MOBILE FIRST: NAV & SECTIONS */
@media (max-width: 950px) {
  .container {
    max-width: 99vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .section, section {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 768px) {
  .nav-container {
    gap: 14px;
    flex-wrap: wrap;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .cta-btn {
    font-size: var(--fs-sm);
    padding: 11px 22px;
  }
  .content-wrapper, .content-grid, .card-container, .text-image-section, .courses-grid, .footer-nav {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    min-width: unset;
    max-width: 100%;
  }
  section {
    padding: 22px 0;
    margin-bottom: 38px;
    border-radius: 18px;
  }
  .footer-contact {
    padding-bottom: 16px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    text-align: left;
    padding: 18px 8px;
    font-size: var(--fs-xs);
  }
  .cookie-banner p {
    max-width: 90vw;
  }
  .cookie-modal {
    padding: 18px 12px 16px 12px;
    width: 96vw;
  }
}
@media (max-width: 480px) {
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1rem; }
  .cta-btn { font-size: var(--fs-xs); padding: 9px 14px; }
}

/* ANIMATIONS & MICRO-INTERACTIONS */
.card, .testimonial-card, .pricing-table, .cta-btn, .mobile-menu, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.18s var(--transition), background 0.22s, border 0.18s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 24px #07549521;
}

/* ACCESSIBILITY ENHANCEMENTS (OUTLINE ON FOCUS) */
a:focus, .cta-btn:focus, .mobile-menu-toggle:focus, .mobile-nav a:focus, .cookie-btn:focus, .cookie-modal-close:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  box-shadow: 0 0 2px 2px #ffd43bc4;
}

/* MISC GEOMETRIC STRUCTURED INSPIRATION */
section > h2, section > h1 {
  border-bottom: 2px solid var(--color-secondary);
  display: inline-block;
  padding-bottom: 7px;
  margin-bottom: 22px;
  border-radius: 0 0 8px 8px;
}

/* Hide cookie modal/overlay and mobile menu when closed (to be added/removed with JS) */
.cookie-modal-overlay.hide,
.cookie-modal.hide,
.mobile-menu:not(.open) {
  display: none !important;
}

/* PRINT SUPPORT */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section, .section { box-shadow: none; background: #fff; }
}
