/* Cyber Grove Fitness – style.css
   Tech-Futuristic Aesthetic, Flexbox-only Layout
--------------------------------------------------
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;
}
html { font-size: 16px; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: #141C2A;
  color: #F5F6F8;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block; max-width: 100%; font-style: italic; height: auto;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font: inherit; outline: none; border: none; background: none; color: inherit;
}
:focus-visible { outline: 2px solid #55D28A; outline-offset: 2px; }

/* BRAND FONT FACES (for browser support) */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* TYPOGRAPHY --------------------------------------*/
body { font-size: 1rem; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; color: #55D28A; margin-bottom: 20px; }
h2 { font-size: 2rem; color: #F5F6F8; margin-bottom: 18px; }
h3 { font-size: 1.25rem; color: #55D28A; margin-bottom: 10px; }
h4 { font-size: 1.125rem; margin-bottom: 8px; }
p, li {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #F5F6F8;
}
.subheadline {
  font-size: 1.125rem;
  color: #A0AEC0;
  margin-bottom: 24px;
}
strong { color: #55D28A; font-weight: 700; }

/* LAYOUT & SPACING --------------------------------*/
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}

/* FLEXBOX PATTERNS -------------------------------*/
.card-container,
.card-grid,
.feature-grid,
.team-list,
.blog-list,
.guide-list,
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
  justify-content: flex-start;
}

.card, .blog-entry, .guide-item, .team-member {
  background: #1B3556;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(21,232,234,0.10), 0 0 0 2px rgba(85,210,138,0.07);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.2s;
  flex: 1 1 320px;
  min-width: 260px;
  padding: 28px 24px;
}
.card:hover, .blog-entry:hover, .guide-item:hover, .team-member:hover {
  box-shadow: 0 4px 24px 0 #55D28A44, 0 0 8px 2px #18ffd883;
  transform: translateY(-3px) scale(1.017);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #162943;
  border-radius: 12px;
  padding: 24px 18px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 300px;
  box-shadow: 0 8px 20px 0 rgba(85, 210, 138, 0.05);
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid #232668;
}
.feature-item:hover {
  border-color: #55D28A;
  box-shadow: 0 0 12px #55D28A99, 0 0 0 2px #55D28A55;
  transform: scale(1.025);
}
.feature-item img { width: 38px; height: 38px; margin-bottom: 4px; filter: drop-shadow(0 0 2px #18ffd8bb); }

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

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #F5F6F8;
  color: #222;
  border-radius: 16px;
  padding: 28px 30px 18px 30px;
  box-shadow: 0 0 0 2px #55D28A22, 0 0 24px #1B355644;
  transition: box-shadow 0.25s, transform 0.2s;
  min-width: 240px;
  max-width: 360px;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #222;
  font-size: 1.125rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  text-align: center;
}
.testimonial-author {
  font-size: 1rem;
  color: #1B3556;
  font-style: italic;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.testimonial-card:hover {
  box-shadow: 0 0 28px #55D28A99, 0 2px 16px #1B355655;
  transform: translateY(-2px) scale(1.014);
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.team-member {
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 340px;
}

.blog-list, .guide-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-entry, .guide-item {
  background: #192f4d;
  color: #F5F6F8;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 #0A171E44;
  margin-bottom: 20px;
  flex: 1 1 320px;
  min-width: 260px;
  padding: 26px 22px;
  border-left: 3px solid #55D28A;
  transition: border-color 0.2s;
}
.blog-entry:hover, .guide-item:hover {
  border-color: #1B64EB;
  box-shadow: 0 0 0 2px #18ffd888;
}

.contact-map-placeholder {
  background: #131929;
  border: 1.5px dashed #55D28A;
  border-radius: 11px;
  padding: 26px;
  text-align: center;
  color: #B7C3D9;
  font-size: 1rem;
  margin-top: 18px;
}

@media (max-width: 1020px) {
  .container { max-width: 95vw; padding: 0 12px; }
}
@media (max-width: 900px) {
  .feature-grid, .team-list, .testimonial-list, .blog-list, .guide-list { gap: 18px; }
}
@media (max-width: 768px) {
  .content-wrapper, .text-section {
    gap: 16px;
  }
  .feature-grid, .team-list, .testimonial-list, .blog-list, .guide-list {
    flex-direction: column;
    gap: 16px;
    justify-content: flex-start;
    align-items: stretch;
  }
  .card, .blog-entry, .guide-item, .team-member, .testimonial-card, .feature-item {
    min-width: 0;
    max-width: 100%;
    padding-left: 14px; padding-right: 14px;
  }
  .text-image-section { flex-direction: column; align-items: center; gap: 20px; }
  h1 {font-size: 2rem;}
  h2 {font-size: 1.4rem;}
}
@media (max-width: 480px) {
  .section { padding: 26px 4px; }
  .testimonial-card, .feature-item, .blog-entry, .guide-item { padding: 14px 8px; }
}

/* HEADER & NAVIGATION -----------------------------*/
header {
  width: 100%;
  background: linear-gradient(90deg, #162943 60%, #1B3556 100%);
  box-shadow: 0 2px 18px 0 #18ffd811, 0 1px 0 #2326683a;
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 15px;
  filter: drop-shadow(0 0 8px #55d28a86);
  transition: filter 0.25s;
}
header img:hover { filter: drop-shadow(0 0 12px #18ffd899); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  color: #F5F6F8;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:not(.cta-btn):hover { background: #233B67; color: #55D28A; }
.main-nav .cta-btn {
  background: #55D28A;
  color: #1B3556;
  padding: 8px 18px;
  border-radius: 26px;
  font-weight: 700;
  margin-left: 20px;
  box-shadow: 0 2px 12px 0 #18ffd822;
  transition: background 0.23s, color 0.2s, box-shadow 0.2s;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: #00B47E;
  color: #fff;
  box-shadow: 0 0 18px #55D28A70;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #55D28A;
  font-size: 2.1rem;
  border: none;
  border-radius: 7px;
  padding: 5px 13px;
  cursor: pointer;
  margin-left: 20px;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus { background: #222d41; color: #18ffd8; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* MOBILE MENU --------------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #151b28ee;
  box-shadow: 0 0 22px 12px #162943cc;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.6,0,0.2,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 32px;
  padding-left: 0px;
  opacity: 0.993;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  margin-left: 18px;
  margin-bottom: 18px;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #55D28A; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 36px;
  padding-top: 8px;
  width: 90vw;
}
.mobile-nav a {
  color: #F5F6F8;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 10px 0 10px 6px;
  border-radius: 7px;
  transition: background 0.19s, color 0.18s;
  margin-bottom: 5px;
  display: block;
}
.mobile-nav a:hover {
  color: #55D28A;
  background: #23266833;
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* HERO & CTA ---------------------------------------*/
.section:first-child, .hero, main > section:first-child {
  background: linear-gradient(120deg, #1B3556 70%, #162943 100%);
  border-bottom: 1.5px solid #233B67;
}
.cta-btn {
  display: inline-block;
  background: #55D28A;
  color: #1B3556;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.13rem;
  padding: 13px 34px;
  border-radius: 32px;
  letter-spacing: 0.012em;
  box-shadow: 0 4px 16px #18ffd822, 0 0 2px #1B355644;
  transition: background 0.19s, color 0.14s, transform 0.16s, box-shadow 0.2s;
  margin-top: 16px;
  border: 0;
  cursor: pointer;
  text-align: center;
  position: relative;
  text-shadow: 0 2px 8px #23266822;
}
.cta-btn:hover, .cta-btn:focus {
  background: #00B47E;
  color: #fff;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 0 24px #55D28A99;
}

/* LISTS -------------------------------------------*/
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 18px;
  color: #F5F6F8;
}
ul li, ol li {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.5;
  color: #F5F6F8;
}
ul li strong, ol li strong { color: #55D28A; }

/* FOOTER ------------------------------------------*/
footer {
  background: linear-gradient(120deg, #162943 90%, #55D28A 300%);
  color: #F5F6F8;
  padding-top: 32px;
  padding-bottom: 16px;
  border-top: 3px solid #1B3556;
}
.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #F5F6F8;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.18s;
  opacity: 0.92;
}
.footer-nav a:hover { color: #55D28A; opacity: 1; }
.footer-contact {
  color: #BBF7D0;
  font-size: 1rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
}
.footer-contact img {
  width: 16px; height: 16px; vertical-align: middle;
  margin-right: 6px;
  filter: drop-shadow(0 0 2px #18ffd8bb);
}
.footer-legal {
  margin-top: 16px;
  color: #B7C3D9;
  font-size: 0.96rem;
  text-align: center;
  letter-spacing: 0.01em;
}
@media (max-width: 980px) {
  .footer-wrapper { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 540px) {
  .footer-wrapper { gap: 10px; }
}

/* COOKIE CONSENT BANNER & MODAL -------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #232668;
  color: #F5F6F8;
  padding: 24px 16px 20px 16px;
  box-shadow: 0 -4px 20px #55D28A33;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  border-top: 2px solid #55D28A;
  transition: transform 0.28s;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 20px;
  padding: 8px 22px;
  margin: 0 6px 6px 0;
  cursor: pointer;
  box-shadow: 0 2px 5px #16294322;
  transition: background 0.16s, color 0.16s, box-shadow 0.18s;
}
.cookie-banner .accept {
  background: #55D28A;
  color: #1B3556;
}
.cookie-banner .reject {
  background: none;
  color: #F5F6F8;
  border: 2px solid #BB3536;
}
.cookie-banner .settings {
  background: none;
  color: #55D28A;
  border: 2px solid #55D28A;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #00B47E; color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #BB3536; color: #fff;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #55D28A; color: #232668;
}
.cookie-banner.hide { transform: translateY(140%); }

.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 1300;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(40,50,68,.82);
  justify-content: center;
  align-items: center;
  animation: appearFade 0.22s cubic-bezier(0.7,0,0.2,1);
}
.cookie-modal-overlay.open { display: flex; }
@keyframes appearFade {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #232668;
  color: #F5F6F8;
  border-radius: 18px;
  max-width: 420px;
  width: 96vw;
  box-shadow: 0 8px 40px #1B355655;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 24px 24px 24px;
  align-items: stretch;
  position: relative;
}
.cookie-modal h2 {
  color: #55D28A;
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.08rem;
  background: #192f4d;
  border-radius: 8px;
  padding: 12px 16px;
}
.cookie-category .toggle {
  margin-left: 14px;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-category .toggle[disabled] { opacity: 0.6; cursor: not-allowed; }
.cookie-modal .modal-btns {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}
.cookie-modal .close-modal {
  background: none;
  color: #F5F6F8;
  font-size: 1.6rem;
  border: none;
  position: absolute;
  top: 10px; right: 14px;
  cursor: pointer;
  opacity: 0.7;
  transition: color 0.18s, opacity 0.14s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #55D28A; opacity: 1;
}
/* TOGGLE SWITCH ----*/
.switch {
  position: relative; display: inline-block;
  width: 44px; height: 24px;
}
.switch input { display: none; }
.slider {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #344575;
  border-radius: 13px;
  transition: background .18s;
}
input:checked + .slider { background-color: #55D28A; }
.slider:before {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .17s;
}
input:checked + .slider:before {
  transform: translateX(18px);
}

/* SCROLLBAR --------------------------------------*/
::-webkit-scrollbar { width: 10px; background: #1B3556; }
::-webkit-scrollbar-thumb { background: #344575; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #55D28A; }

/* ANIMATIONS & MICRO-INTERACTIONS ---------------*/
.card, .feature-item, .testimonial-card, .cta-btn, .main-nav a, .cookie-banner button, .mobile-menu, .blog-entry, .guide-item {
  transition: box-shadow 0.22s, background 0.16s, color 0.15s, transform 0.18s, border 0.16s;
}
.cta-btn:active { transform: scale(0.97); }
.cookie-banner, .cookie-modal { animation: fadeInUp 0.38s; }
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* UTILITY CLASSES --------------------------------*/
.d-none { display: none !important; }
.d-block { display: block !important; }

/* Responsive adjustment for footer CTA and copyright */
@media (max-width:600px) {
  .footer-contact, .footer-nav {
    font-size: 0.97rem;
  }
  .footer-legal { font-size: 0.92rem; }
}

/* SPACING ENFORCEMENT ----------------------------*/
.section, .content-wrapper, .card, .feature-item, .testimonial-card, .team-member,
.blog-entry, .guide-item, .contact-map-placeholder {
  margin-bottom: 20px;
}
.card-container, .card-grid, .feature-grid, .team-list, .blog-list, .guide-list, .testimonial-list {
  gap: 20px;
}

/* FOCUS VISIBLE for accessibility ---------------*/
.cta-btn:focus, .main-nav a:focus, .mobile-nav a:focus, .cookie-banner button:focus, .cookie-modal .close-modal:focus {
  outline: 2.5px solid #18ffd8;
  outline-offset: 2px;
}

/* END OF STYLES -----------------------------------*/
