/* --------------------------------------------
   HelioCrest Fitness – Futuristic Tech Style
   Responsive CSS for All Pages (Flexbox Only)
--------------------------------------------- */
/* ==== CSS RESET & NORMALIZE ==== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite,
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,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  font: inherit;
  box-sizing: border-box;
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: #151F2D;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background-color: #151F2D;
  color: #F4F7FB;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg, video {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
input, button, textarea, select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* ==== BRAND COLORS AND VARIABLES ==== */
:root {
  --primary: #204370;
  --secondary: #F5B348;
  --accent: #FFFFFF;
  --bg-dark: #151F2D;
  --bg-gradient: linear-gradient(120deg, #222c3e 0%, #326149 100%);
  --neon-blue: #47E4D7;
  --neon-yellow: #FFD633;
  --gray-800: #203158;
  --gray-900: #151F2D;
  --white: #FFFFFF;
  --futuristic-shadow: 0 6px 32px 0 rgba(18,31,57,0.16), 0 1.5px 5px 0 rgba(66,196,255,0.13);
}

/* ==== TYPOGRAPHY ==== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
}
h3 {
  font-size: 1.5rem;
  font-weight: 700;
}
h4 {
  font-size: 1.25rem;
}
p, ul, ol, table, blockquote {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #F4F7FB;
}
strong, b {
  font-weight: 700;
}

/* ==== LAYOUT CONTAINERS ==== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
/* Spacing for section and wrappers */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==== FLEX PRESETS ==== */
.card-container, .feature-grid, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .feature-grid > div {
  background: #203158;
  border-radius: 18px;
  box-shadow: var(--futuristic-shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* neon border accent */
  border: 2px solid transparent;
  transition: border 0.3s, box-shadow 0.3s;
}
.card:hover, .feature-grid > div:hover {
  border: 2px solid var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue), 0 6px 32px 0 rgba(18,31,57,0.21);
}

.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;
}

.testimonial-card {
  background: var(--accent);
  color: #14182d;
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(80,230,245,0.13), 0 1.5px 5px 0 rgba(66,196,255,0.10);
  transition: box-shadow 0.3s;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.testimonial-card:hover {
  box-shadow: 0 0 16px var(--neon-yellow), 0 6px 32px 0 rgba(80,230,245,0.21);
}
.testimonial-card blockquote {
  color: #151F2D;
  font-style: italic;
  margin-bottom: 4px;
}
.testimonial-card span {
  font-size: 1rem;
  color: #204370;
}

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

/* ==== HERO SECTION ==== */
.hero {
  background: linear-gradient(100deg, #204370 0%, #274e88 80%, #F5B348 100%);
  color: #fff;
  position: relative;
  padding-top: 56px;
  padding-bottom: 56px;
  margin-bottom: 60px;
  box-shadow: 0 6px 32px 0 rgba(18,31,57,0.21);
}
.hero h1 {
  color: var(--accent);
  text-shadow: 0 2px 20px var(--neon-yellow);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
}
.hero .cta-button {
  font-size: 1.1rem;
  margin-top: 18px;
}

/* ==== CALL TO ACTION SECTIONS ==== */
.cta-section {
  background: linear-gradient(90deg, #204370 60%, #F5B348 100%);
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 32px 0 rgba(80,230,245,0.15);
  margin-bottom: 60px;
  padding: 36px 20px;
  display: flex;
  align-items: center;
}
.cta-section h2, .cta-section p {
  color: #fff;
}

/* ==== NAVIGATION ==== */
header {
  background: #151F2D;
  border-bottom: 2px solid #204370;
  box-shadow: 0px 4px 24px rgba(18,31,57,0.13);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 24px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  position: relative;
  padding: 6px 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #F4F7FB;
  border-radius: 8px;
  transition: color 0.2s, background 0.21s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--primary);
  color: var(--secondary);
}
.cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: linear-gradient(90deg, #204370 0%, #47E4D7 100%);
  color: #fff;
  border-radius: 32px;
  padding: 12px 28px;
  box-shadow: 0 2px 14px rgba(66,196,255,0.09);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  border: 2px solid transparent;
  transition: background 0.25s, border 0.22s, box-shadow 0.22s;
  cursor: pointer;
  margin-left: 16px;
  outline: none;
}
.cta-button:hover,
.cta-button:focus {
  background: linear-gradient(90deg, #204370 10%, #F5B348 90%);
  color: var(--primary);
  border: 2px solid var(--secondary);
  box-shadow: 0 0 10px var(--neon-yellow), 0 2px 18px 0 rgba(66,196,255,0.17);
}
.cta-button.secondary {
  background: none;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  box-shadow: none;
}
.cta-button.secondary:hover,
.cta-button.secondary:focus {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--primary);
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 18px;
  font-size: 2rem;
  color: var(--secondary);
  background: none;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.2s;
  z-index: 33;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #232E43;
}
/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  max-width: 97vw;
  background: #151F2D;
  box-shadow: 0 0 32px 0 rgba(80,230,245,0.20);
  z-index: 1000;
  transform: translateX(110vw);
  transition: transform 0.4s cubic-bezier(0.71,0.42,0.23,0.93);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 36px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--secondary);
  background: none;
  position: absolute;
  right: 20px;
  top: 18px;
  z-index: 1001;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #222c3e;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  margin-top: 32px;
  padding-left: 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--secondary);
  padding: 12px 0;
  width: 100%;
  border-radius: 6px;
  transition: background 0.22s, color 0.21s;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--accent);
  background: #232e43;
}

/* ==== FOOTER ==== */
footer {
  background: #0F1421;
  color: var(--accent);
  padding: 32px 0 18px 0;
  margin-top: 40px;
  border-top: 2px solid var(--primary);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--secondary);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.16s;
}
.footer-nav a:hover {
  background: #204370;
  color: var(--accent);
}
footer .text-section p,
footer address,
footer span {
  color: #cccccc;
  font-size: 0.97rem;
}
footer a {
  text-decoration: underline;
  color: #FFD633;
}
footer a:hover {
  text-decoration: none;
  color: var(--accent);
}

/* ==== TABLE (for price table) ==== */
table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 32px;
  background: #203158;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(80,230,245,0.10);
}
table th, table td {
  padding: 14px 10px;
  border-bottom: 1px solid #274e88;
  text-align: left;
  color: #fff;
}
table th {
  background: #204370;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #FFD633;
  font-weight: 700;
  font-size: 1.1rem;
}
table tr:last-child td {
  border-bottom: none;
}

/* ==== UTILITY & INTERFACE ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 16px;
}
.feature-grid > div {
  flex: 1 1 260px;
  min-width: 230px;
  max-width: 350px;
  background: #203158;
  align-items: flex-start;
  text-align: left;
  box-shadow: var(--futuristic-shadow);
  border-radius: 16px;
  padding: 28px 18px 26px 18px;
  border: 2px solid transparent;
  transition: border 0.3s, box-shadow 0.3s;
}
.feature-grid > div:hover {
  border: 2px solid var(--neon-yellow);
  box-shadow: 0 0 18px var(--neon-yellow), 0 2px 18px rgba(18,31,57,0.13);
}
.feature-grid img {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 7px #47E4D7);
}
.feature-grid h3 {
  font-size: 1.13rem;
  color: var(--secondary);
  margin-bottom: 7px;
}
.feature-grid p {
  font-size: 1rem;
  color: #d2e7ff;
}

/* Lists */
ul, ol {
  padding-left: 22px;
  margin-bottom: 20px;
}
ul li, ol li {
  padding-left: 0;
  position: relative;
  margin-bottom: 10px;
  color: #e4efff;
}
ul li strong {
  color: var(--neon-yellow);
}
ul li:before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--neon-blue);
  border-radius: 50%;
  margin-right: 10px;
  margin-bottom: 1.5px;
}

/* ==== INTERACTIVE, HOVER & TRANSITIONS ==== */
a, .cta-button, .main-nav a, .footer-nav a {
  transition: background 0.25s, color 0.22s, border 0.22s, box-shadow 0.18s, filter 0.18s;
}
section, .section {
  transition: box-shadow 0.32s;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-consent-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 1500;
  width: 98vw;
  max-width: 700px;
  background: #232E43;
  color: #fff;
  box-shadow: 0 6px 32px 0 rgba(80,230,245,0.16);
  border-radius: 18px 18px 0px 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 22px 34px;
  opacity: 0.98;
  font-size: 1.01rem;
  animation: cookie-slide-up 0.7s cubic-bezier(.21,.68,.23,1) both;
}
@keyframes cookie-slide-up {
  0% {
    transform: translateX(-50%) translateY(120%);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.98;
  }
}
.cookie-consent-banner p {
  flex: 1 1 270px;
  color: #eee;
  margin: 0;
  padding-right: 6px;
}
.cookie-buttons {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-btn {
  padding: 10px 18px;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  background: var(--primary);
  color: var(--accent);
  font-size: 1rem;
  transition: background 0.22s, color 0.19s, box-shadow 0.18s;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(66,196,255,0.09);
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.settings {
  background: none;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.cookie-btn.reject {
  background: none;
  color: #fff;
  border: 2px solid #204370;
}
.cookie-btn.accept:hover {
  background: #FFD633;
  color: #14182d;
  box-shadow: 0 0 14px #FFD63333;
}
.cookie-btn.settings:hover {
  background: var(--primary);
  color: var(--accent);
}
.cookie-btn.reject:hover {
  background: #232e43;
}

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(20, 24, 45, 0.85);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-backdrop-fadein 0.5s both;
}
@keyframes cookie-backdrop-fadein {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal {
  background: #1a2646;
  color: #fff;
  border-radius: 18px;
  padding: 34px 24px 28px 28px;
  min-width: 300px;
  max-width: 380px;
  box-shadow: 0 10px 40px #20437055;
  z-index: 1601;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  animation: cookie-modal-zoom 0.5s cubic-bezier(.19,.68,.33,1.35) both;
}
@keyframes cookie-modal-zoom {
  from { transform: scale(0.7); opacity:0;}
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  color: var(--secondary);
  font-size: 1.18rem;
  margin-bottom: 3px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
}
.cookie-category input[type="checkbox"] {
  width: 19px; height: 19px;
  accent-color: var(--secondary);
}
.cookie-category label {
  color: #fff;
}
.cookie-category.essential label {
  font-weight: 700;
  color: #FFD633;
}
.cookie-modal .modal-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 13px;
  margin-top: 10px;
}

.cookie-modal .close {
  position: absolute;
  right: 10px; top: 10px;
  background: none;
  color: var(--secondary);
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  width: 34px; height: 34px;
}
.cookie-modal .close:hover,
.cookie-modal .close:focus {
  background: #232E43;
}

/* ==== RESPONSIVE DESIGN: MOBILE-FIRST ==== */
@media (max-width:1170px) {
  .main-nav { gap: 14px; }
  .footer-nav { gap: 10px; }
  .feature-grid { gap: 16px; }
}
@media (max-width: 900px) {
  .container { padding: 0 10px; }
  .footer-nav { flex-wrap: wrap; }
}
@media (max-width: 780px) {
  .main-nav { font-size: 0.96rem; gap: 10px; }
  .feature-grid > div { min-width: 170px; padding: 20px 9px 18px 9px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.16rem; }
  .cta-button { padding: 9px 16px; font-size: 0.98rem; }
}
@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 20px; }
  .hero { padding-top: 36px; padding-bottom: 36px; }
}
@media (max-width: 768px) {
  .feature-grid, .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card, .feature-grid > div {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .container {
    padding: 0 5vw;
  }
  .testimonial-card { flex-direction: column; gap: 12px; }
  .cta-section { padding: 22px 10px; border-radius: 14px; }
  .section, section { padding: 28px 8px; }
}
@media (max-width: 650px) {
  header .container {
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .main-nav, .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .logo { max-width: 120px; }
}
@media (max-width: 440px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.05rem; }
  .cta-section, .hero {
    padding-top: 17px;
    padding-bottom: 17px;
    border-radius: 8px;
  }
  .cookie-consent-banner { padding: 12px 8px 12px 8px; font-size: 0.94rem; }
  .footer-nav { flex-direction: column; gap: 7px; }
}

/* ==== ANIMATION UTILITIES ==== */
.fade-in { animation: fadein 0.7s cubic-bezier(.19,.68,.33,1.25) both; }
@keyframes fadein {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.slide-in-left { animation: slideinleft 0.6s cubic-bezier(.19,.68,.53,1.1) both; }
@keyframes slideinleft {
  from { opacity: 0; transform: translateX(-8vw); }
  to { opacity: 1; transform: translateX(0); }
}
/* ==== GENERAL ACCESSIBILITY ==== */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
::-webkit-input-placeholder { color: #bbb; }
::-moz-placeholder { color: #bbb; }
:-ms-input-placeholder { color: #bbb; }
::placeholder { color: #bbb; }

/* ==== CUSTOM SCROLLBAR ==== */
body::-webkit-scrollbar {
  width: 9px;
}
body::-webkit-scrollbar-thumb {
  background: linear-gradient(160deg, #204370 0%, #47E4D7 100%);
  border-radius: 9px;
}
body::-webkit-scrollbar-track {
  background: #151F2D;
}

/* ==== END ==== */
