/* ==========================================================================
   CSS RESET & BASE 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
}

body {
  min-height: 100vh;
  background: #F6F7FB;
  font-family: 'Rubik', Arial, sans-serif;
  color: #222;
  position: relative;
  font-size: 16px;
  line-height: 1.7;
}

/* Import Fonts (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Rubik:wght@400;500;700&display=swap');

/* ==========================================================================
   COLOR & TYPOGRAPHY VARIABLES
   ========================================================================== */
:root {
  --color-primary: #2541B2;
  --color-secondary: #23A9A1;
  --color-accent: #F6F7FB;
  --color-white: #fff;
  --color-black: #1F2227;
  --color-gray-100: #F6F7FB;
  --color-gray-200: #E7EAEE;
  --color-gray-300: #CFD8DC;
  --color-gray-400: #B0BEC5;
  --color-gray-600: #546E7A;
  --color-heading: #222;
  --color-paragraph: #39434B;
  --color-success: #3DBF7A;
  --color-error: #EF5350;
  --shadow-card: 0 2px 14px rgba(37,65,178,0.07);
  --shadow-hover: 0 4px 32px rgba(37,65,178,0.09);
  --radius: 18px;
  --radius-sm: 10px;
  --transition: all 0.25s cubic-bezier(.42,.05,.17,1.06);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Rubik', Arial, sans-serif;
}

/* ==========================================================================
   HEADER, NAVIGATION, CTA BUTTONS
   ========================================================================== */
header {
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(50,56,73,0.03);
  width: 100%;
  z-index: 30;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .container {
  padding: 18px 20px;
  gap: 16px;
}
.desktop-nav {
  display: flex;
  gap: 26px;
}
.desktop-nav a {
  color: var(--color-black);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  position: relative;
  padding: 3px 0;
  transition: color 0.18s;
}
.desktop-nav a:hover, .desktop-nav a:focus {
  color: var(--color-primary);
}
.cta-button {
  appearance: none;
  border: none;
  font-family: var(--font-display);
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 12px 30px;
  font-size: 18px;
  font-weight: bold;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  display: inline-block;
  margin-left: 24px;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.032);
}
header img[alt="Plasma Crest Kids"] {
  height: 48px;
  width: auto;
  margin-right: 18px;
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 2rem;
  padding: 10px 16px;
  position: fixed;
  top: 20px;
  right: 18px;
  z-index: 110;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37,65,178,0.07);
  transition: background var(--transition);
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-primary);
}
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  box-shadow: 0 6px 22px rgba(37, 65, 178, 0.12);
  transform: translateX(-105%);
  transition: transform 0.38s cubic-bezier(.71,.05,.48,.96);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 0;
  overscroll-behavior: contain;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 2px 32px 0 rgba(37,65,178,0.11);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  align-self: flex-end;
  margin: 16px 20px 0 0;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 28px 0 36px;
  flex: 1 1 auto;
}
.mobile-nav a {
  color: var(--color-black);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  padding: 12px 0;
  transition: color 0.17s, background 0.16s;
  border-radius: var(--radius-sm);
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--color-white);
  background: var(--color-primary);
}

/* Overlay Scroll Fix for Mobile Menu */
.mobile-menu {
  overflow-y: auto;
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    justify-content: flex-start;
    gap: 14px;
  }
}

/* ==========================================================================
   LAYOUT: MAIN SECTIONS, CONTAINERS
   ========================================================================== */
main {
  width: 100%;
  min-height: 70vh;
}
.section,
main section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--radius);
}
.hero {
  background: linear-gradient(100deg, #F6F7FB 65%, #E7EAEE 100%);
  padding: 38px 20px 48px 20px;
  border-radius: var(--radius);
  margin-bottom: 36px;
  box-shadow: 0 3px 22px rgba(37, 65, 178, .08);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--color-primary);
  margin-bottom: 18px;
}
.hero .subtitle,
.hero p {
  font-size: 1.2rem;
  color: var(--color-paragraph);
  margin-bottom: 28px;
  max-width: 650px;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
}
.content-wrapper,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 34px;
  margin-bottom: 20px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 30px;
}
.feature-grid > div {
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  border-radius: var(--radius-sm);
  min-width: 230px;
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover {
  box-shadow: 0 6px 30px 0 rgba(41, 128, 185, .13);
  transform: translateY(-3px) scale(1.022);
}
.feature-grid img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

/* ==========================================================================
   CARD, CARD-CONTAINER, TEXT-IMAGE-SECTION
   ========================================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  padding: 28px 22px;
  position: relative;
  min-width: 220px;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.017);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Testimonial card, reviews spacing and contrast */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-sm);
  color: #232425;
  margin-bottom: 20px;
  flex: 1 1 320px;
  position: relative;
  font-size: 1.05rem;
  flex-wrap: wrap;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.1rem;
  color: #232425;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
}
.star-rating {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-bottom: 8px;
}
.star-rating img {
  width: 22px;
  height: 22px;
}

/* Features */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-style: normal;
  margin-bottom: 18px;
  font-weight: 700;
}
h1 {font-size: 2.2rem; line-height: 1.18; margin-bottom: 22px;}
h2 {font-size: 1.5rem; letter-spacing: .01em; margin-bottom: 16px;}
h3 {font-size: 1.15rem; margin-bottom: 9px;}
.subtitle {font-family: var(--font-body); color: var(--color-gray-600); font-size: 1.1rem;}
p, ul, ol {
  font-family: var(--font-body);
  color: var(--color-paragraph);
  margin-bottom: 18px;
  font-size: 1.05rem;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.5;
}
ul li:last-child, ol li:last-child {margin-bottom:0;}
strong, b {
  color: var(--color-primary);
  font-weight: 700;
}
a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color .2s;
}
a:hover, a:focus {
  color: var(--color-secondary);
  outline: none;
}

/* ==========================================================================
   CONTACT DETAILS, ICONS
   ========================================================================== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-details img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 8px;
}
.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-social a {
  background: var(--color-accent);
  padding: 9px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition);
}
.footer-social a:hover {
  background: var(--color-secondary);
}
.footer-social img {
  width: 25px;
  height: 25px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: var(--color-white);
  box-shadow: 0 -3px 32px rgba(37, 65, 178, 0.05);
  margin-top: 50px;
  padding-top: 22px;
  font-size: 1rem;
}
footer section {
  padding: 36px 0 22px 0;
}
.footer-nav {
  display: flex;
  gap: 22px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  text-decoration: none;
  opacity: 0.92;
  transition: color .16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
}
.footer-contact {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.newsletter-signup {
  margin-top: 10px;
  color: var(--color-gray-600);
}

/* ==========================================================================
   BLOG & UTILITY
   ========================================================================== */
.blog-post-list {
  list-style: none;
  margin-bottom: 18px;
  font-family: var(--font-body);
}
.blog-post-list li {
  margin-bottom: 14px;
}
.blog-categories {
  margin-bottom: 22px;
  font-size: 1.01rem;
}
.blog-categories ul {
  display: flex;
  gap: 16px;
  padding-left: 0;
  list-style: none;
  margin: 0 0 4px 0;
}
.blog-categories ul li {
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 0.97rem;
  color: var(--color-secondary);
  margin-right: 8px;
  margin-bottom: 2px;
  font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile First)
   ========================================================================== */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 14px;
  }
  .section,
  main section {
    padding: 24px 7px;
    margin-bottom: 42px;
  }
  .hero {
    padding: 28px 7px 35px 7px;
    border-radius: var(--radius-sm);
    text-align: left;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper,
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav, .footer-social, .footer-contact {
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    text-align: left;
  }
  .newsletter-signup {
    margin: 0 0 16px 0;
  }
}

@media (max-width: 500px) {
  .hero h1 {
    font-size: 1.43rem;
  }
  h1 {font-size: 1.34rem;}
  h2 {font-size: 1.11rem;}
  h3 {font-size: 1.01rem;}
  .footer-nav a, .footer-contact, .footer-social, .newsletter-signup {
    font-size: 0.97rem;
  }
}

/* ==========================================================================
   MICRO-INTERACTIONS & ACCESSIBILITY
   ========================================================================== */
button:active, .cta-button:active {
  transform: scale(0.97);
}
:focus-visible {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ==========================================================================
   COOKIE CONSENT BANNER & MODAL
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: var(--color-white);
  box-shadow: 0 -4px 32px 0 rgba(37,65,178,0.06);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 230;
  animation: cookieSlideIn .45s cubic-bezier(.58,.01,.35,1.03);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  color: var(--color-paragraph);
  font-size: 1.02rem;
  margin-bottom: 0;
  text-align: center;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  margin-top: 3px;
}
.cookie-btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  box-shadow: 0 1.5px 10px 0 rgba(37,65,178,0.06);
}
.cookie-btn--accept {
  background: var(--color-primary);
  color: var(--color-white);
}
.cookie-btn--accept:hover, .cookie-btn--accept:focus {
  background: var(--color-secondary);
}
.cookie-btn--reject {
  background: var(--color-gray-200);
  color: var(--color-black);
}
.cookie-btn--reject:hover, .cookie-btn--reject:focus {
  background: #ECEEF3;
}
.cookie-btn--settings {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.cookie-btn--settings:hover, .cookie-btn--settings:focus {
  background: var(--color-gray-200);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%) scale(1);
  background: var(--color-white);
  padding: 34px 20px;
  border-radius: var(--radius);
  box-shadow: 0 12px 34px 0 rgba(37,65,178,0.14);
  z-index: 240;
  width: 350px;
  max-width: 88vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalIn .19s cubic-bezier(.36,.18,.36,1.17);
}
@keyframes cookieModalIn {
  from { transform: translate(-50%,60%) scale(0.88); opacity: 0; }
  to   { transform: translate(-50%,-52%) scale(1); opacity: 1; }
}
.cookie-modal__title {
  font-size: 1.22rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 0;
}
.cookie-modal__section {
  margin-bottom: 10px;
}
.cookie-modal__section label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-paragraph);
  margin-bottom: 3px;
  display: block;
}
.cookie-modal__checkbox {
  margin-right: 7px;
  accent-color: var(--color-primary);
}
.cookie-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.cookie-modal__close {
  position: absolute;
  top: 13px;
  right: 17px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--color-secondary);
  cursor: pointer;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: var(--color-error);
}
@media (max-width: 600px) {
  .cookie-modal {
    width: 98vw;
    padding: 22px 7px;
    font-size: 0.99rem;
  }
}

/* ==========================================================================
   MISCELLANEOUS & UTILITY CLASSES
   ========================================================================== */
.bg-accent { background: var(--color-accent); }
.bg-primary { background: var(--color-primary); color: var(--color-white); }
.center { text-align: center; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow-card); }
.display-flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.gap-20 { gap: 20px; }

/* Utility Margin */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Hide visually, but maintain accessibility */
.sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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