/* ================== CSS RESET & BASE ================== */
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: #F7F8FD;
  color: #17346B;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}
a {
  color: #17346B;
  text-decoration: none;
  transition: color 0.2s;
}
img, picture, video {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}
* {
  box-sizing: border-box;
}

/* ================== TYPOGRAPHY ================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800;700;600;500&family=Open+Sans:wght@400;600&display=swap');

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #17346B;
  margin-bottom: 24px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
p, ul, ol, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #17346B;
}
ul, ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
strong, b {
  font-weight: 700;
}
em, i {
  font-style: italic;
}

/* ================== BRAND COLORS ================== */
:root {
  --primary: #17346B;
  --secondary: #F5C948;
  --accent: #FFFFFF;
  --text: #17346B;
  --grey-bg: #F7F8FD;
}

/* ================== LAYOUT & CONTAINER ================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(23,52,107,0.12);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 10px;
    margin-bottom: 36px;
  }
}

/* ================== HEADER & NAVIGATION ================== */
header {
  background: var(--primary);
  color: var(--accent);
  width: 100%;
  box-shadow: 0 4px 12px rgba(23,52,107,0.11);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 20px;
}
.header-wrapper img {
  height: 42px;
  width: auto;
  margin-right: 24px;
}

.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
  border-radius: 8px;
  padding: 6px 14px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  outline: none;
}
.btn.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--secondary);
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(245,201,72,0.18);
  transition: background 0.2s, color 0.2s, transform 0.16s;
  display: inline-block;
}
.btn.btn-primary:hover, .btn.btn-primary:focus {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-2px) scale(1.04);
}

/* Hamburger for mobile */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 17px;
  right: 20px;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(23,52,107,0.15);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--primary);
}
@media (max-width: 1023px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .header-wrapper {
    padding-right: 60px;
  }
}

/* Mobile menu overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--primary);
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 307px;
  max-width: 100vw;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.7,.1,.25,1);
  z-index: 1200;
  box-shadow: -8px 0 18px rgba(23,52,107,0.19);
  padding: 32px 24px 24px 32px;
  gap: 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  color: var(--primary);
  font-size: 1.5rem;
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 20px;
  box-shadow: 0 2px 7px rgba(245,201,72,0.11);
  transition: background 0.1s, color 0.1s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: var(--secondary);
}
.mobile-nav {
  margin-top: 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  border-radius: 6px;
  padding: 11px 8px;
  background: none;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ================== HERO ================== */
.hero {
  background: var(--primary);
  color: var(--accent);
  padding: 56px 0 64px 0;
  margin-bottom: 0;
  border-radius: 0 0 32px 32px;
}
.hero .content-wrapper {
  color: var(--accent);
  align-items: flex-start;
  gap: 28px;
  max-width: 720px;
}
.hero h1, .hero h2, .hero h3 {
  color: var(--accent);
}
.hero .btn-primary {
  margin-top: 12px;
  border-radius: 40px;
  font-size: 1.085rem;
}
@media (max-width: 768px) {
  .hero {
    padding: 32px 0 36px 0;
    border-radius: 0 0 20px 20px;
  }
  .hero .content-wrapper {
    gap: 18px;
  }
}

/* ================== COMMON GRIDS/FLEX SECTIONS ================== */
.features-grid, .services-grid, .blog-list, .workshops-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div, .services-grid > div, .blog-list > div, .workshops-list > div {
  background: var(--grey-bg);
  border-radius: 15px;
  box-shadow: 0 2px 16px rgba(23,52,107,0.07);
  padding: 24px 20px;
  min-width: 230px;
  flex: 1 1 310px;
  max-width: 355px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.22s, transform 0.19s;
}
.features-grid > div:hover, .services-grid > div:hover, .blog-list > div:hover, .workshops-list > div:hover {
  box-shadow: 0 8px 32px rgba(23,52,107,0.15);
  transform: translateY(-3px) scale(1.022);
}
.features-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  background: var(--secondary);
  border-radius: 10px;
  padding: 4px;
}
.price {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 1.13rem;
  font-weight: 800;
  background: var(--secondary);
  padding: 4px 14px;
  border-radius: 12px;
  align-self: flex-start;
  margin-top: 10px;
}

@media (max-width: 1023px) {
  .features-grid, .services-grid, .blog-list, .workshops-list {
    gap: 16px;
  }
  .features-grid > div, .services-grid > div, .blog-list > div, .workshops-list > div {
    flex: 1 1 95%;
    max-width: 99%;
  }
}
@media (max-width: 600px) {
  .features-grid, .services-grid, .blog-list, .workshops-list {
    flex-direction: column;
    gap: 15px;
  }
  .features-grid > div, .services-grid > div, .blog-list > div, .workshops-list > div {
    min-width: 0;
    padding: 16px 10px;
  }
}

/* Content grid for .content-grid class, matching requirements */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* ================== CARDS ================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--accent);
  box-shadow: 0 2px 12px rgba(23,52,107,0.10);
  overflow: hidden;
  min-width: 220px;
  flex: 1 1 320px;
  transition: box-shadow 0.21s, transform 0.16s;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 24px 20px;
}
.card:hover {
  box-shadow: 0 8px 22px rgba(23,52,107,0.13);
  transform: translateY(-2px) scale(1.018);
}

/* ================== TEXT-IMAGE SECTION ================== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* ================== TESTIMONIALS ================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffef6;
  border: 2px solid var(--secondary);
  border-radius: 16px;
  box-shadow: 0 3px 16px rgba(23,52,107,0.07);
  margin-bottom: 24px;
  max-width: 720px;
  font-style: italic;
  transition: box-shadow 0.18s, border-color 0.2s;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #1a2358;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-left: auto;
}
.testimonial-card:hover {
  box-shadow: 0 8px 34px rgba(23,52,107,0.16);
  border-color: #FFC60A;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 10px;
  }
}

/* ================== CALL TO ACTION ================== */
.cta {
  padding: 40px 18px;
  background: var(--secondary);
  border-radius: 22px;
  box-shadow: 0 2px 10px rgba(245,201,72,0.17);
  margin-bottom: 44px;
}
.cta .content-wrapper {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}
.cta p {
  font-size: 1.28rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
}
@media (max-width: 768px) {
  .cta {
    padding: 22px 6px;
    border-radius: 16px;
  }
}

/* ================== FOOTER ================== */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 32px 0 20px 0;
  border-radius: 24px 24px 0 0;
  margin-top: 56px;
}
.footer-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 38px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-wrapper > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-wrapper img {
  width: 40px;
  height: auto;
  margin-bottom: 10px;
}
.footer-wrapper span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--secondary);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
footer p {
  color: #fffed0;
  margin-bottom: 0;
  font-size: 0.98rem;
}
@media (max-width: 880px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  footer {
    border-radius: 15px 15px 0 0;
  }
}

/* ================== BLOG LINKS ================== */
.blog-link {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.17s;
}
.blog-link:hover, .blog-link:focus {
  color: var(--primary);
  text-decoration: underline;
}

/* ================== ALERT & MODAL ================== */
.alert {
  background: #fffbe3;
  border-left: 5px solid var(--secondary);
  padding: 17px 18px;
  border-radius: 10px;
  font-size: 0.99rem;
  font-style: italic;
  margin-top: 14px;
  color: #153173;
}

/* ================== UTILS & MISC ================== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 600px) {
  .feature-item {
    gap: 8px;
  }
}

.service-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
}
.service-list li {
  background: var(--grey-bg);
  border-radius: 15px;
  box-shadow: 0 2px 16px rgba(23,52,107,0.07);
  padding: 24px 20px;
  min-width: 230px;
  flex: 1 1 310px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.19s;
}
.service-list li:hover {
  box-shadow: 0 8px 32px rgba(23,52,107,0.13);
  transform: translateY(-2px) scale(1.018);
}

@media (max-width: 900px) {
  .service-list {
    gap: 12px;
  }
  .service-list li {
    flex: 1 1 90%;
    padding: 16px 10px;
  }
}

/* === Cookie Consent Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #17346B;
  color: #fffbe8;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 2000;
  padding: 22px 16px 18px 16px;
  box-shadow: 0 -5px 18px rgba(23,52,107,0.11);
  font-size: 1rem;
  transition: transform 0.25s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner__text {
  flex: 1 1 320px;
  max-width: 720px;
  padding-right: 10px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  padding: 9px 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
  margin-right: 0;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #ffd130;
}
.cookie-btn.reject {
  background: #fffbe8;
  color: var(--primary);
  border: 1.7px solid var(--secondary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.settings {
  background: #415fa5;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    padding: 16px 6px 14px 6px;
  }
  .cookie-banner__text {
    padding-right: 0;
  }
  .cookie-banner__actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
}

/* === Cookie Modal === */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,52,107,0.38);
  z-index: 2200;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: 20px;
  min-width: 320px;
  max-width: 420px;
  padding: 36px 30px 24px 30px;
  box-shadow: 0 12px 70px rgba(23,52,107,0.22);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: cookieModalShow 0.4s cubic-bezier(.77,.03,.19,1.01);
  position: relative;
}
@keyframes cookieModalShow {
  from { opacity: 0; transform: translateY(60px) scale(0.95); }
  to   { opacity: 1; transform: none; }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.26rem;
  color: var(--primary);
  font-weight: 800;
}
.cookie-modal-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 18px;
}
.cookie-modal__item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-toggle {
  appearance: none;
  width: 34px;
  height: 17px;
  border-radius: 24px;
  background: #e3e8f4;
  border: 1.3px solid #c7cbdf;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.18s;
}
.cookie-toggle:checked {
  background: var(--secondary);
  border: 1.3px solid var(--secondary);
}
.cookie-toggle::before {
  content: '';
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 1.5px;
  top: 1.1px;
  transition: left 0.16s;
}
.cookie-toggle:checked::before {
  left: 17px;
  background: var(--accent);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  right: 20px;
  top: 12px;
  border: none;
  background: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.1s, color 0.1s;
  padding: 3px 8px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--secondary);
  background: #f7f8fd;
}
@media (max-width: 540px) {
  .cookie-modal {
    min-width: 0;
    max-width: 98vw;
    padding: 18px 8px 14px 8px;
  }
}

/* ================== MEDIA QUERIES ================== */
@media (max-width: 992px) {
  .container, .footer-wrapper, .header-wrapper {
    max-width: 98vw;
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}

/* === Micro Interactions === */
.btn, .cookie-btn {
  transition: background 0.17s, color 0.17s, transform 0.16s;
}
.btn:active, .cookie-btn:active {
  transform: scale(0.96);
}

/* === Accessibility Classes === */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* === Hide visually === */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* === High contrast for testimonials text === */
.testimonial-card p, .testimonial-card span {
  color: #133168;
}

/* ================== END ================== */
