/* ===================================================================
   SHARP LESSON - Vibrant Energetic CSS (Flexbox Only, Responsive, Interactive)
   =================================================================== */

/* ================= CSS Reset & Base =================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #f7f8fb;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #123E5A;
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #0cb8f5;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFD447;
  outline: none;
}
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}
li {
  margin-bottom: 0.5rem;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #0E2940;
  margin-bottom: 0.65em;
  line-height: 1.1;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.35rem;
  color: #123E5A;
}
strong {
  color: #0cb8f5;
  font-weight: 800;
}
.button, .cta-button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* ============ Layout Containers ============ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

/* ========== Section Spacing ========== */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 16px 0 rgba(18,62,90,0.04);
}
@media (max-width: 600px) {
  section, .section {
    padding: 28px 8px;
    margin-bottom: 34px;
    border-radius: 11px;
  }
}

/* ========== Main Nav ========== */
header {
  background: #123E5A;
  width: 100vw;
  box-shadow: 0 2px 12px 0 rgba(18,62,90,0.09);
  position: relative;
  z-index: 11;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.2rem 0.5rem 1.2rem;
}
.main-nav a img {
  height: 44px;
  min-width: 120px;
  margin-right: 14px;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 28px;
  margin: 0;
}
.main-nav ul li a {
  color: #FFD447;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1rem;
  padding: 5px 2px;
  letter-spacing: 0.04em;
  transition: color 0.18s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  color: #0cb8f5;
  background: none;
}

/* Mobile Nav Toggle */
.mobile-menu-toggle {
  display: none;
  background: #FFD447;
  color: #123E5A;
  font-size: 2.2rem;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 12px;
  z-index: 120;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:hover {
  background: #0cb8f5;
  color: #FFD447;
}

@media (max-width: 1024px) {
  .main-nav ul {
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .main-nav ul {
    gap: 14px;
  }
}
@media (max-width: 820px) {
  .main-nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ====== Mobile Menu Overlay ====== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #123E5A;
  z-index: 999;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.77,.2,.05,1);
  box-shadow: 8px 0 24px 0 rgba(18,62,90,0.28);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #FFD447;
  margin: 18px 22px 10px 0;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #0cb8f5;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 38px 32px 0 32px;
  width: 100%;
}
.mobile-nav a {
  color: #FFD447;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.21s, border-bottom 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #0cb8f5;
  border-bottom: 2.5px solid #FFD447;
}

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


/* ============= Hero ============= */
.hero {
  background: linear-gradient(98deg, #FFD447 0%, #0cb8f5 95%);
  color: #123E5A;
  margin-bottom: 60px;
  padding: 54px 0 54px 0;
  border-radius: 0 0 48px 48px;
  box-shadow: 0 7px 26px 0 rgba(12,184,245,0.08);
}
.hero .container {
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 700px;
  gap: 24px;
}
.hero h1 {
  font-size: 2.8rem;
  color: #123E5A;
  text-shadow: 0 3px 10px rgba(255,255,255,0.15);
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 28px;
}
@media (max-width: 600px) {
  .hero {
    padding: 32px 0 32px 0;
    border-radius: 0 0 19px 19px;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .hero .content-wrapper {
    padding: 0 2px;
  }
}


/* ========== FEATURES, SERVICES, CARDS ========== */
.features ul, .services ul, .features>ul, .services>ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 18px;
}
.features li, .services li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #E3E6EC;
  border-radius: 22px;
  box-shadow: 0 2px 12px 0 rgba(18,62,90,0.07);
  padding: 24px 20px 20px 20px;
  min-width: 240px;
  flex: 1 0 270px;
  margin-bottom: 0;
  position: relative;
  font-size: 1rem;
  transition: box-shadow 0.27s, transform 0.19s;
      flex-direction: column;
}
.features li img, .services li img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.features li:hover, .services li:hover {
  box-shadow: 0 6px 32px 0 rgba(12,184,245,0.13);
  transform: translateY(-4px) scale(1.03);
  z-index: 2;
}
.features li strong {
  color: #123E5A;
  font-size: 1.05rem;
}
.services li h3 {
  color: #0E2940;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.services li span {
  color: #0cb8f5;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  background: #FFD447;
  border-radius: 5px;
  padding: 3px 9px;
  margin-left: 12px;
}
@media (max-width: 900px) {
  .features ul, .services ul, .features>ul, .services>ul {
    gap: 20px;
  }
  .features li, .services li {
    padding: 14px 8px;
    min-width: 180px;
    flex-basis: 100%;
  }
}
@media (max-width: 600px) {
  .features ul, .services ul {
    flex-direction: column;
    gap: 16px;
  }
  .features li, .services li {
    min-width: unset;
    padding: 9px 7px;
  }
}

/* ============ Call-To-Action Button ============= */
.cta-button, .button {
  background: #FFD447;
  color: #123E5A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.22rem;
  border: none;
  border-radius: 100px;
  padding: 13px 38px;
  box-shadow: 0 3px 14px 0 rgba(237,159,9,0.08);
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background 0.19s, color 0.19s, transform 0.15s, box-shadow 0.2s;
  margin-top: 10px;
  display: inline-block;
  outline: none;
}
.cta-button:hover, .cta-button:focus,
.button:hover, .button:focus {
  background: #0cb8f5;
  color: #fff;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 28px 0 rgba(12,184,245,0.11);
}

/* ============ TESTIMONIAL CARDS ============= */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 30px 16px 26px;
  background: #F5FAFF;
  border-radius: 22px;
  box-shadow: 0 3px 18px 0 rgba(18,62,90,0.09);
  margin-bottom: 20px;
  font-size: 1.07rem;
  color: #123E5A;
  min-width: 230px;
  max-width: 580px;
  position: relative;
  z-index: 1;
}
.testimonial-card p {
  color: #123E5A;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
}
.testimonial-card span {
  color: #0cb8f5;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
}
@media (max-width: 850px) {
  .testimonial-card {
    padding: 16px 10px 13px 12px;
  }
}

/* =========== FOOTER =========== */
footer {
  background: #123E5A;
  color: #FFD447;
  border-radius: 42px 42px 0 0;
  box-shadow: 0 -6px 22px 0 rgba(18,62,90,0.12);
  padding: 36px 0 16px 0;
  margin-top: 50px;
  width: 100vw;
  position: relative;
}
footer .footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-bottom: 12px;
}
footer .footer-navigation a {
  color: #FFD447;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  font-size: 0.99rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.18s;
}
footer .footer-navigation a:hover, footer .footer-navigation a:focus {
  color: #0cb8f5;
}
footer .footer-contact {
  color: #fff;
  text-align: center;
  font-size: 0.97rem;
  margin-bottom: 8px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
footer .footer-contact a {
  color: #FFD447;
  text-decoration: underline;
  margin: 0 2px;
}
footer .footer-branding {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  flex-direction: column;
  gap: 6px;
}
footer .footer-branding img {
  width: 44px;
  margin-bottom: 3px;
}
footer .footer-branding span {
  color: #FFD447;
  font-size: 0.9rem;
  opacity: 0.86;
}
@media (max-width: 700px) {
  footer .footer-contact {
    flex-direction: column;
    gap: 0;
  }
  footer {
    border-radius: 16px 16px 0 0;
    padding: 26px 0 8px 0;
    margin-top: 30px;
  }
}


/* ========== Misc Layouts (MANDATORY FLEXBOX PATTERNS) ========= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(18,62,90,0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  min-width: 240px;
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 7px 32px 0 rgba(18,62,90,0.16);
  transform: scale(1.025) translateY(-3px);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 768px) {
  .content-grid, .card-container, .features ul, .services ul {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}


/* ============= Cookie Consent Banner & Modal ============= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #123E5A;
  color: #FFD447;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 19px 18px 19px 18px;
  font-size: 1rem;
  z-index: 1200;
  box-shadow: 0 -3px 20px rgba(18,62,90,0.12);
  animation: fadeInBanner 0.7s;
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: #FFD447;
  margin: 0 12px 0 0;
  font-size: 1.02rem;
}
.cookie-banner .cookie-btn {
  background: #FFD447;
  color: #123E5A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 8px 25px;
  border-radius: 26px;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 10px;
  margin-left: 0;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(255,212,71,0.13);
  transition: background 0.13s, color 0.13s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #0cb8f5;
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: #0cb8f5;
  color: #fff;
  border-radius: 26px;
  border: none;
  font-weight: 700;
  padding: 8px 20px;
  font-size: 1rem;
  text-transform: uppercase;
  margin-right: 0;
  box-shadow: 0 2px 10px 0 rgba(12,184,245,0.07);
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #FFD447;
  color: #123E5A;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    padding: 16px 3px 16px 3px;
    gap: 10px;
    font-size: 0.97rem;
  }
  .cookie-banner .cookie-btn, .cookie-banner .cookie-settings {
    padding: 8px 12px;
    font-size: 0.98rem;
    margin-right: 7px;
    margin-bottom: 3px;
  }
}

/* ---- Cookie Preferences Modal ---- */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  background: #fff;
  color: #123E5A;
  border-radius: 28px;
  box-shadow: 0 7px 33px 0 rgba(18,62,90,0.22);
  min-width: 320px;
  max-width: 90vw;
  min-height: 260px;
  padding: 36px 32px 32px 32px;
  z-index: 2001;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  animation: cookieModalIn 0.3s;
}
@keyframes cookieModalIn {
  from { transform: translate(-50%,-40%) scale(0.92); opacity: 0; }
  to { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.45rem;
  margin-bottom: 16px;
}
.cookie-modal ul {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #FFD447;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #0cb8f5;
  margin-left: 2px;
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 16px;
}
.cookie-modal button {
  background: #FFD447;
  color: #123E5A;
  border: none;
  border-radius: 19px;
  font-weight: 700;
  padding: 7px 19px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #0cb8f5;
  color: #fff;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 10px;
  background: transparent;
  border: none;
  color: #0cb8f5;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0.8;
  transition: color 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #FFD447;
  opacity: 1;
}

@media (max-width: 500px) {
  .cookie-modal {
    padding: 21px 8px 19px 8px;
    min-width: 0;
  }
  .cookie-modal h2 {
    font-size: 1rem;
  }
  .cookie-modal .modal-actions {
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
  }
}

/* =========== Misc: Typography Hierarchy =========== */
p, li, ul, ol {
  font-size: 1rem;
  line-height: 1.6;
}
@media (max-width: 500px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1rem; }
  p, li, ul, ol { font-size: 0.97rem; }
}

/* =========== Utility Classes =========== */
.mt-2 { margin-top: 12px; }
.mb-2 { margin-bottom: 12px; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
.text-center { text-align: center; }

/* Hide visually but not from screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =========== Focus Ring =========== */
a:focus, button:focus, .cta-button:focus, .mobile-menu-toggle:focus, .cookie-btn:focus, .cookie-settings:focus {
  outline: 2.5px solid #0cb8f5;
  outline-offset: 2px;
}

/* ================= Micro-interactions ================= */
.card, .features li, .services li, .testimonial-card, .cta-button, .mobile-menu, .cookie-btn, .cookie-settings, .cookie-modal, .cookie-modal button {
  transition: box-shadow 0.23s, transform 0.16s, background 0.2s, color 0.15s;
}

/* =========== Hide Scroll on Opened Mobile Menu =========== */
body.mobile-menu-open {
  overflow: hidden;
}

/* =========== Z-Index Layering =========== */
header { z-index: 1001; }
footer { z-index: 1000; }
.mobile-menu { z-index: 9999; }
.cookie-banner { z-index: 12000; }
.cookie-modal { z-index: 20001; }

/* ========== END: Sharp Lesson Vibrant Energetic CSS ========== */
