/* ==========================================================
   Sparkle Learn Cyber - style.css
   PRO MODERN CORPORATE CSS (FLEXBOX ONLY, NO GRIDS)
   Brand palette: #203354 (primary), #24BFA3 (secondary), #F2F5FA (accent)
   Display font: Montserrat, Body font: Roboto
   ========================================================== */

/* --- CSS RESET & NORMALIZATION --- */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}
:focus {
  outline: 2px solid #24BFA3;
  outline-offset: 2px;
}

/* --- ROOT VARIABLES --- */
:root {
  --clr-primary: #203354;
  --clr-secondary: #24BFA3;
  --clr-accent: #F2F5FA;
  --clr-text: #1A212D;
  --clr-link: #203354;
  --clr-link-hover: #24BFA3;
  --clr-bg: #FFFFFF;
  --clr-footer-bg: #1A212D;
  --clr-footer-text: #F2F5FA;
  --clr-muted: #64718B;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 24px;
  --shadow-xs: 0 1px 3px rgba(32,51,84,0.05);
  --shadow-m: 0 2px 8px rgba(32,51,84,0.12);
  --shadow-lg: 0 8px 20px rgba(32,51,84,0.17);

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* --- BASE BODY TYPO --- */
body {
  color: var(--clr-text);
  background: var(--clr-bg);
  font-size: 16px;
  line-height: 1.7;
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 600; }
h4 { font-size: 1rem; margin-bottom: 10px; }
p, li, blockquote { color: var(--clr-text); font-size: 1rem; }
strong { font-weight: 600; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}

/* --- GENERAL LAYOUTS --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 900px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--clr-bg);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-xs);
}

@media (max-width: 768px) {
  .section { padding: 28px 8px; margin-bottom: 36px; }
  .content-wrapper { max-width: 100%; }
}

/* --- HEADER --- */
header {
  width: 100%;
  background: var(--clr-bg);
  border-bottom: 1px solid #e7ebf3;
  position: sticky;
  top: 0;
  z-index: 1010;
}
.logo {
  margin-right: 30px;
  display: flex;
  align-items: center;
  height: 65px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  min-height: 72px;
}
.desktop-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-right: 20px;
}
.desktop-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--clr-primary);
  transition: color 0.18s;
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: var(--radius-s);
  letter-spacing: 0.01em;
}
.desktop-nav a:hover, .desktop-nav a:focus {
  color: var(--clr-secondary);
  background: #ecf3f7;
}
.cta-btn {
  background: var(--clr-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: var(--radius-m);
  margin-left: 20px;
  transition: background 0.14s, box-shadow 0.19s;
  box-shadow: var(--shadow-xs);
  display: inline-block;
  border: none;
  cursor: pointer;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #20a891;
  box-shadow: 0 4px 18px rgba(36,191,163,0.17);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: var(--clr-bg);
  color: var(--clr-primary);
  border-radius: var(--radius-s);
  font-size: 2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  margin-left: 16px;
  transition: background 0.12s, color 0.12s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #e6eff3;
  color: var(--clr-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,51,84,0.96);
  z-index: 1050;
  transform: translateX(-100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: transform 0.44s cubic-bezier(.68, -.55, .27, 1.55);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 4px 32px rgba(32,51,84,0.21);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  margin: 22px 20px 12px 20px;
  align-self: flex-end;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 32px 32px 32px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.16s, background 0.13s;
  letter-spacing: 0.01em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--clr-secondary);
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* --- MAIN & SECTIONS --- */
main {
  flex: 1 0 auto;
  padding-top: 28px;
  margin-bottom: 0;
  min-height: 400px;
}

/* --- FLEXBOX LAYOUTS and COMPONENTS --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 10px;
}
.feature {
  background: var(--clr-accent);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  border-radius: var(--radius-m);
  padding: 24px 22px 20px 22px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.16s, transform 0.18s;
}
.feature:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-4px) scale(1.018);
}
.feature img {
  width: 40px;
  margin-bottom: 18px;
  filter: grayscale(18%);
}
.feature h3 {
  font-size: 1.13rem;
  margin-bottom: 5px;
  color: var(--clr-primary);
}
.feature p {
  color: var(--clr-muted);
}

/* Content grid patterns */
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.card {
  position: relative;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  background: var(--clr-bg);
  padding: 22px;
  min-width: 200px;
  margin-bottom: 20px;
  transition: box-shadow 0.14s, transform 0.12s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px) scale(1.012);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.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;
}
@media (max-width: 768px) {
  .features-grid, .content-grid, .text-image-section, .card-container, .card-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- TEXT & LISTS --- */
ul, ol {
  padding-left: 21px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
  color: var(--clr-muted);
  font-size: 1rem;
  position: relative;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 100%;
  background: var(--clr-secondary);
  margin-right: 10px;
  vertical-align: middle;
}
ul ul {
  margin-bottom: 0;
}
.text-section {
  margin-bottom: 18px;
}
.text-section h3 {
  margin-top: 16px;
  margin-bottom: 7px;
  color: var(--clr-primary);
}

/* --- SPECIAL COMPONENTS --- */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 4px;
}
.service-item {
  background: var(--clr-accent);
  border-radius: var(--radius-m);
  padding: 22px 18px 20px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 320px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.18s, transform 0.13s;
  position: relative;
}
.service-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px) scale(1.015);
}
.service-item .price {
  color: var(--clr-secondary);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-top: 9px;
}

/* --- BLOG COMPONENTS --- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin: 20px 0 22px;
}
.blog-filters span {
  color: var(--clr-muted);
  font-weight: 600;
  font-size: 1rem;
}
.blog-filters a {
  background: #eaf5f2;
  color: var(--clr-primary);
  font-size: 1rem;
  font-family: var(--font-display);
  padding: 4px 14px;
  border-radius: var(--radius-s);
  margin-right: 2px;
  transition: color 0.13s, background 0.15s;
  font-weight: 500;
}
.blog-filters a:hover, .blog-filters a:focus {
  background: var(--clr-secondary);
  color: #fff;
}
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-list article {
  flex: 1 1 300px;
  min-width: 220px;
  background: var(--clr-accent);
  border-radius: var(--radius-m);
  padding: 22px 18px 20px 18px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-list h3 {
  margin-bottom: 7px;
}
.blog-list a {
  color: var(--clr-secondary);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.13s, text-decoration 0.12s;
}
.blog-list a:hover, .blog-list a:focus {
  color: var(--clr-primary);
  text-decoration: underline;
}

.newsletter-signup {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* --- TESTIMONIALS --- */
.testimonials-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 30px 0 20px;
}
.testimonial-card {
  background: #F7FAFE;
  color: var(--clr-text);
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius-m);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 260px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.14s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-m);
  transform: scale(1.015);
}
.testimonial-card p {
  color: var(--clr-primary);
  font-size: 1.07rem;
  font-style: italic;
  margin-bottom: 7px;
  flex: 1;
}
.testimonial-card span {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--clr-muted);
}

.client-logos {
  display: flex;
  align-items: center;
  gap: 42px;
  margin-top: 14px;
  margin-bottom: 8px;
}
.client-logos img {
  height: 44px;
  filter: grayscale(73%) opacity(0.78);
  transition: filter 0.19s;
}
.client-logos img:hover { filter: grayscale(15%) opacity(1); }
@media (max-width: 768px) {
  .testimonials-wrapper {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    min-width: 0;
    width: 100%;
  }
  .client-logos {
    flex-direction: row;
    gap: 20px;
  }
}

/* --- CALL TO ACTION --- */
.cta-btn {
  box-shadow: var(--shadow-xs);
  text-align: center;
  min-width: 175px;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.cta-btn:active {
  background: #1d9c83;
  transform: scale(0.98);
}

/* --- FORMS (Newsletter stub, future proof) --- */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 14px;
  border-radius: var(--radius-s);
  border: 1.5px solid #e1e7f1;
  background: #fafdff;
  margin-bottom: 18px;
  color: var(--clr-primary);
  width: 100%;
  max-width: 450px;
  transition: border-color 0.12s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--clr-secondary);
}
label {
  font-family: var(--font-display);
  color: var(--clr-primary);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* --- FOOTER --- */
footer {
  background: var(--clr-footer-bg);
  color: var(--clr-footer-text);
  margin-top: 50px;
  padding: 0;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 45px 20px 28px 20px;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}
.footer-logo img {
  height: 54px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 170px;
}
.footer-nav a {
  color: var(--clr-footer-text);
  font-size: 1rem;
  font-family: var(--font-display);
  padding: 2px 0;
  transition: color 0.13s, text-decoration 0.11s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--clr-secondary);
  text-decoration: underline;
}
.footer-contact p {
  font-size: 0.97rem;
  color: #D9E2F3;
  margin-bottom: 6px;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 11px;
}
.footer-social a img {
  filter: grayscale(60%) brightness(1.06);
  transition: filter 0.18s;
  height: 30px;
}
.footer-social a:hover img {
  filter: grayscale(0%) brightness(1.18);
}
@media (max-width: 900px) {
  .footer-container { flex-direction: column; gap: 22px; align-items: flex-start; }
  .footer-nav { flex-direction: row; gap: 22px; margin: 8px 0; }
}
@media (max-width: 540px) {
  .footer-container {
    padding: 29px 10px 16px 10px;
    gap: 12px;
  }
  .footer-logo img { height: 44px; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #F2F5FA;
  color: var(--clr-primary);
  box-shadow: 0 -2px 18px rgba(32,51,84,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 22px 5vw 18px 5vw;
  z-index: 2000;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.37s, transform 0.37s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-consent-banner p {
  font-size: 1rem;
  color: var(--clr-primary);
  margin: 0;
}
.cookie-buttons {
  display: flex;
  gap: 13px;
}
.cookie-btn {
  padding: 8px 18px;
  border-radius: var(--radius-s);
  background: var(--clr-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.97rem;
  box-shadow: var(--shadow-xs);
  transition: background 0.13s, box-shadow 0.13s;
}
.cookie-btn.secondary {
  background: transparent;
  color: var(--clr-primary);
  border: 1.5px solid var(--clr-secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #20a891;
  color: #fff;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: var(--clr-accent);
  color: var(--clr-secondary);
}

@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 14px 20px 14px;
  }
  .cookie-buttons { width: 100%; gap: 9px; }
}

/* --- COOKIE CATEGORY MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2010;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,51,84,0.54);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lg);
  max-width: 410px;
  width: 95vw;
  padding: 32px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h3 {
  color: var(--clr-primary);
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--clr-text);
}
.cookie-category label {
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--clr-secondary);
  width: 18px;
  height: 18px;
}
.cookie-category .category-essential {
  color: var(--clr-muted);
  font-size: 0.97rem;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 500px) {
  .cookie-modal {
    max-width: 97vw;
    padding: 21px 8px 20px 8px;
  }
  .cookie-modal-actions { gap: 8px; }
}

/* --- ANIMATIONS / UTILITIES --- */
.fade-in {
  animation: fadeIn 0.35s cubic-bezier(.4,0,.2,1) 1;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.slide-in {
  animation: slideInX 0.43s cubic-bezier(.7,0,.2,1.2) 1;
}
@keyframes slideInX {
  from { transform: translateX(-100vw); } to { transform: translateX(0); }
}

/* --- SPACING HELPERS --- */
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mt-32 { margin-top: 32px; }

/* --- MISC. --- */
::-webkit-scrollbar {
  width: 7px;
  background: #EEEEF3;
}
::-webkit-scrollbar-thumb {
  background: #b3bed5;
  border-radius: 9px;
}

/* Hide when printing */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
}
