/* =============================
   SERENEMASTERY CYBER: STYLE.CSS
   Vibrant, energetic, flexbox-only responsive design
   ============================= */

/* ======== RESET & NORMALIZE ======== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #F9FBFF;
  color: #24243f;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #152849;
  text-transform: uppercase;
  letter-spacing: 1px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; }

p, ul, ol {
  font-size: 1.125rem;
  color: #222240;
  margin-bottom: 16px;
}
ul, ol { padding-left: 1.2em; }
strong, b { color: #0da4ff; font-weight: 700; }
a { color: #096ae0; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #ff3e8e; }

img { max-width: 100%; display: block; border-radius: 8px; }
hr { border: none; height: 1px; background: #e0e3eb; margin: 24px 0; }

/* ======== COLORS (VIBRANT) ======== */
:root {
  --brand-primary: #224466;
  --brand-secondary: #333333;
  --brand-accent: #E6EAF0;
  --electric-cyan: #0da4ff;
  --electric-violet: #6c47ff;
  --electric-pink: #ff3e8e;
  --electric-lime: #b8fc2d;
  --electric-orange: #ff9500;
  --light-bg: #f9fbff;
  --section-bg: #f2f7ff;
  --white: #fff;
  --focus-ring: #30e0ff;
  --shadow-vibrant: 0 4px 24px 0 rgba(13,164,255,0.11), 0 2px 8px 0 rgba(255,62,142,0.08);
}

/* ======== CONTAINER & LAYOUT ======== */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px; /* vertical spacing via section */
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* ======== SECTION SPACING ======== */
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section {
    padding: 28px 0 32px 0;
    margin-bottom: 38px;
  }
  .section {
    padding: 22px 8px;
    margin-bottom: 38px;
  }
}

/* ======== HEADER & NAVIGATION BAR ======== */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(34,68,102,0.07);
  z-index: 80;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}
.logo { display: flex; align-items: center; height: 54px; }
.logo img { height: 44px; width: auto; }

.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--brand-primary);
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 2.5px solid transparent;
  transition: border, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--electric-pink);
  border-bottom: 2.5px solid var(--electric-cyan);
}
.btn.btn-primary {
  margin-left: 16px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--electric-violet);
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 10px;
  margin-left: 12px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--focus-ring);
}

/* ======== MOBILE NAV OVERLAY ======== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(22,35,58,0.96);
  backdrop-filter: blur(2.5px);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.43,.17,.31,1), opacity 0.2s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  margin: 24px 28px 8px 0;
  padding: 4px 12px 2px 12px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.18s;
}
.mobile-menu-close:focus { outline: 2px solid var(--electric-cyan); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  padding: 30px 36px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.15rem;
  color: #fff;
  padding: 10px 0 8px 0;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: color 0.14s, border-color 0.14s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--electric-lime);
  border-bottom: 2px solid var(--electric-cyan);
}

/* Hide nav for mobile, show burger */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .btn.btn-primary { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (max-width: 570px) {
  .mobile-nav {
    padding: 16px 12px 12px 12px;
    gap: 18px;
  }
  .mobile-menu-close { margin: 16px 16px 4px 0; }
}

/* Desktop: hide mobile overlay */
@media (min-width: 961px) {
  .mobile-menu { display: none !important; }
}

/* ======== FLEX LAYOUT HELPERS ======== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-vibrant);
  margin-bottom: 20px;
  padding: 28px 28px 22px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 30px 0 rgba(13,164,255,0.14), 0 2px 12px 0 rgba(255,62,142,0.10);
  transform: translateY(-4px) scale(1.025);
}
.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) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ======== BUTTONS & INTERACTIONS ======== */
.btn {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 13px 32px;
  border-radius: 45px;
  outline: none;
  border: none;
  cursor: pointer;
  min-width: 180px;
  margin-top: 16px;
  margin-bottom: 8px;
  box-shadow: 0 2px 7px 0 rgba(13,164,255,0.15);
  transition: background 0.17s, color 0.17s, box-shadow 0.18s, transform 0.16s;
}
.btn-primary {
  background: linear-gradient(90deg, var(--electric-cyan) 0%, var(--brand-primary) 100%);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--electric-pink) 0%, var(--electric-violet) 100%);
  color: #fff;
  box-shadow: 0 6px 26px 0 rgba(255,62,142,0.16);
  transform: translateY(-1px) scale(1.035);
}
.btn[disabled] {
  background: #b9c6d6;
  color: #626e7c;
  cursor: not-allowed;
}

/* ======== FEATURES GRID (INDEX) ======== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.feature-item {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-vibrant);
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 18px 24px 18px;
  margin-bottom: 20px;
  border-left: 4px solid var(--electric-cyan);
  transition: border 0.18s, box-shadow 0.18s, transform 0.17s;
}
.feature-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 2px rgba(13,164,255,0.14));
}
.feature-item h3 {
  font-size: 1.18rem;
  font-family: 'Oswald', Arial, sans-serif;
  color: var(--electric-violet);
}
.feature-item p { font-size: 1.06rem; }
.feature-item strong {
  color: var(--electric-orange);
  font-weight: 800;
}
.feature-item:hover, .feature-item:focus-within {
  border-left: 4px solid var(--electric-pink);
  box-shadow: 0 8px 28px 0 rgba(13,164,255,0.14),0 3px 9px 0 rgba(255,62,142,0.11);
  transform: translateY(-2px) scale(1.02);
}
@media (max-width: 1000px) {
  .feature-grid { justify-content: center; }
}
@media (max-width: 768px) {
  .feature-grid { flex-direction: column; gap: 18px; }
  .feature-item, .feature-item:last-child { max-width: 100%; width: 100%; }
}

/* ======== TESTIMONIASL ======== */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 22px 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px 0 rgba(34,68,102,0.09);
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 370px;
  margin-bottom: 20px;
  border-top: 3px solid var(--electric-cyan);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.16s;
  position: relative;
}
.testimonial-card:hover, .testimonial-card:focus-within { 
  box-shadow: 0 8px 28px 0 rgba(13,164,255,0.19),0 3px 9px 0 rgba(255,62,142,0.14);
  border-top: 3px solid var(--electric-pink);
  transform: translateY(-2px) scale(1.02);
}
.testimonial-star-rating {
  color: var(--electric-orange);
  font-size: 1.2em;
  font-weight: bold;
  letter-spacing: 2px;
}
.testimonial-card p {
  font-size: 1.17rem;
  color: #0e2144;
}
.testimonial-author {
  font-size: 1.02rem;
  color: var(--electric-cyan);
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 700;
  margin-top: auto;
}
@media (max-width: 900px) {
  .testimonials { flex-direction: column; gap: 18px; }
  .testimonial-card { min-width: 120px; max-width: 100%; }
}

/* Ensures text is dark on light bg for accessibility */
.testimonial-card, .testimonial-card p, .testimonial-author { color: #1c2130; background: #fff; }

/* ======== CALLOUTS & CTAS ======== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  max-width: 800px;
}
.text-section h1, .text-section h2, .text-section h3 {
  color: var(--electric-violet);
  margin-bottom: 8px;
  font-weight: 800;
}
.text-section ul {
  margin-left: 12px;
  margin-bottom: 12px;
  color: #222240;
  font-size: 1.11rem;
}
.text-section ul li {
  margin-bottom: 10px;
  padding-left: 0.35em;
}

/* ======== BLOG ARTICLE LIST ======== */
article {
  margin-bottom: 32px;
  padding: 20px 0 18px 0;
  border-bottom: 1.5px solid #ecf0f8;
}
article:last-child { border-bottom: none; }
article h3 {
  font-size: 1.13rem;
  margin-bottom: 4px;
  color: var(--electric-pink);
}
article h3 a {
  color: var(--electric-violet);
  transition: color 0.13s;
}
article h3 a:hover, article h3 a:focus { color: var(--electric-pink); }
article p { font-size: 1.06rem; }

/* ======== FOOTER ======== */
footer {
  background: var(--brand-primary);
  color: #fff;
  padding: 36px 0 17px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 8px;
}
.footer-nav a {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--electric-lime);
  text-decoration: underline;
}
.footer-address, .footer-email, .footer-hours {
  font-size: 1.03rem;
  color: #e6eaf0;
  margin-bottom: 3px;
}
.footer-email a { color: var(--electric-cyan); }
.footer-copyright {
  font-size: 0.99rem;
  color: #aac9ee;
  margin-top: 10px;
}
@media (max-width: 576px) {
  footer .container { gap: 7px; padding: 0 4px; }
  .footer-nav { gap: 10px; }
}

/* ======== COOKIES CONSENT BANNER ======== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg, var(--electric-cyan) 0%, var(--brand-primary) 100%);
  color: #fff;
  padding: 28px 20px 22px 20px;
  box-shadow: 0 -6px 28px 0 rgba(34,68,102,0.11);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 1.13rem;
  animation: cookieSlideUp 0.7s cubic-bezier(.55,.14,.37,.92);
}
@keyframes cookieSlideUp {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  justify-content: center;
}
.cookie-banner .btn {
  min-width: 150px;
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0;
  box-shadow: 0 2px 5px 0 rgba(13,164,255,0.09);
}
.cookie-banner .btn-accept {
  background: var(--electric-lime);
  color: #213b1b;
}
.cookie-banner .btn-accept:hover, .cookie-banner .btn-accept:focus {
  background: var(--electric-orange);
  color: #fff;
}
.cookie-banner .btn-settings {
  background: #fff;
  color: var(--brand-primary);
  border: 1.5px solid var(--electric-cyan);
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: var(--electric-cyan);
  color: #fff;
}
.cookie-banner .btn-reject {
  background: var(--electric-pink);
  color: #fff;
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus {
  background: #ff2a00;
  color: #fff;
}

@media (max-width: 578px) {
  .cookie-banner {
    font-size: 0.98rem;
    padding: 15px 7px 14px 7px;
    gap: 12px;
  }
  .cookie-banner .cookie-btns { gap: 10px; }
}

/* ======= COOKIE MODAL ======= */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1300;
  left: 0;top: 0;bottom: 0;right: 0;
  background: rgba(8,16,30,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 34px 0 rgba(13,164,255,0.14);
  min-width: 340px;
  max-width: 97vw;
  min-height: 290px;
  padding: 32px 36px 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookieModalPop .5s cubic-bezier(.62,-0.13,.57,1.1);
}
@keyframes cookieModalPop {
  0% {transform: scale(0.82) translateY(28px);opacity:0;}
  100% {transform: scale(1) translateY(0);opacity:1;}
}
.cookie-modal h3 {
  font-size: 1.25rem;
  color: var(--brand-primary);
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
}
.cookie-category-label {
  font-size: 1.06rem;
  color: #3d4769;
}
.cookie-category-toggle {
  width: 42px;
  height: 22px;
  border-radius: 22px;
  background: #e6ecfe;
  border: 1.5px solid #d0e4fa;
  position: relative;
  cursor: pointer;
  transition: background 0.2s, border 0.14s;
}
.cookie-category-toggle input[type=checkbox] {
  width: 0; height: 0; opacity: 0; pointer-events: none;
}
.cookie-category-toggle .toggle-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: var(--electric-cyan);
  border-radius: 50%;
  transition: left 0.18s, background 0.18s;
}
.cookie-category-toggle input[type=checkbox]:checked + .toggle-slider {
  left: 20px;
  background: var(--electric-pink);
}
.cookie-category-toggle[aria-disabled='true'] {
  background: #f4f7fd;
  border: 1.5px solid #dddddd;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 10px;
}
.cookie-modal .btn {
  min-width: 120px;
  font-size: 1.02rem;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
  border-radius: 50%;
  padding: 5px 10px 4px 10px;
}
.cookie-modal-close:focus { outline: 2px solid var(--electric-cyan); }

@media (max-width: 480px) {
  .cookie-modal {
    padding: 16px 5px 12px 12px;
    min-width: 90vw;
    gap: 11px;
  }
}

/* ======== FORMS (BASICS) ======== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 13px;
  border: 1.5px solid #c6d6eb;
  border-radius: 7px;
  transition: border 0.14s, box-shadow 0.14s;
  background: #fff;
  color: #25304b;
  margin-bottom: 14px;
  width: 100%;
  outline: none;
  box-shadow: 0 1px 2px 0 rgba(34,68,102,0.045);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--electric-cyan);
  box-shadow: 0 0 2px 2px var(--electric-cyan, #0da4ff33);
}
label { display: block; margin-bottom: 7px; font-weight: 600; }

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 768px) {
  .container { padding: 0 9px; }
  .text-section { gap: 12px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.28rem; }
  h3 { font-size: 1.08rem; }
  .btn { min-width: 120px; font-size: 0.99rem; }
  .card, .feature-item, .testimonial-card { padding: 15px 10px 13px 14px; }
}

@media (max-width: 480px) {
  .container { padding: 0 3px; }
  section, .section { padding: 10px 2px; }
  .btn { padding: 10px 12px; font-size: 0.93rem; }
}

/* ======== MICRO-INTERACTIONS ======== */
.btn, .feature-item, .card, .testimonial-card, article, .mobile-menu, .cookie-banner, .cookie-modal {
  transition-property: box-shadow, border, color, background, transform, opacity;
  transition-duration: 0.16s, 0.18s, 0.17s, 0.17s, 0.16s, 0.14s;
  transition-timing-function: cubic-bezier(.43,.17,.31,1);
}
a, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: color 0.16s, border 0.15s;
}

/* ======== VISUAL HIERARCHY & WHITE SPACE ======== */
.content-wrapper > * { margin-bottom: 18px; }
.content-wrapper > *:last-child { margin-bottom: 0; }
.section > *, section > * { margin-bottom: 20px; }
.section > *:last-child, section > *:last-child { margin-bottom: 0; }
.card-container > *, .content-grid > * { margin-bottom: 0; }

/* FORCE NO OVERLAPS (SPACING) */
.card, .feature-item, .testimonial-card, .section, section { box-sizing: border-box; }

/* ======== UTILITY ======== */
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

/* ======== PRINT ========== */
@media print {
  header, nav, footer, .cookie-banner { display: none !important; }
  section, .section, main { box-shadow: none !important; background: #fff !important; color: #000 !important; }
}

/* FONTS: Oswald & Roboto */
@import url('https://fonts.googleapis.com/css?family=Oswald:400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
