/********************************************
 PHASE 1 – GLOBAL + NAVIGATION + LANDING (UPDATED)
********************************************/

/* ---------- FONTS ---------- */
@font-face {
  font-family: "Knockout";
  src: url("../font/Knockout-HTF48-Featherweight.otf") format("opentype");
}
@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 ;
}

/* ---------- ROOT VARIABLES ---------- */
:root {
  --brand: #ed1a3b;
  --brand-dark: #b91c1c;
  --text: #fff;
  --muted: #9ca3af;
  --bg-gradient: linear-gradient(180deg, #330000, #1a0000 60%, #000);
  --line: #202226;
  --transition: 0.25s ease-in-out;
  --offwhite: #f9f9f9;
  --text-dark: #1a1a1a;
}

/* ---------- GLOBAL RESET ---------- */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  background: var(--bg-gradient);
  color: var(--text);
  scroll-behavior: smooth;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { text-decoration: none; color: inherit; transition: opacity var(--transition); }
a:hover { opacity: 0.85; }
ul { list-style: none; margin: 0; padding: 0; }
.main {
  padding-top: 2rem; /* slightly more than nav height to prevent overlap */
  padding-bottom: 3rem;
  min-height: 100vh;
}

/* ---------- FLASH MESSAGES ---------- */
.message {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 600;
  margin: 12px auto;         /* centers the box horizontally */
  max-width: 600px;          /* limits width */
  width: 100%;               /* allows responsiveness */
  text-align: center;
}
.message.error   { background: #2a1013; color: #ffd2d7; border-color: #44151b; }
.message.success { background: #102a14; color: #c6f7d0; border-color: #1c3b22; }

/* =====================================
   FLASH MESSAGES – MOBILE RESPONSIVE
===================================== */
@media only screen and (max-width: 63.9375rem) {

  .message {
    max-width: 90%;               /* fits within smaller viewports */
    padding: 10px 14px;           /* reduce padding slightly */
    font-size: 0.95rem;           /* slightly smaller text */
    border-radius: 6px;
    margin: 10px auto;
    word-wrap: break-word;        /* prevent overflow on long text */
    box-sizing: border-box;
    text-decoration: bolder;
  }

  .message.error,
  .message.success {
    line-height: 1.4;
  }
}

/* Extra small phones (≤ 480px) */
@media only screen and (max-width: 30rem) {
  .message {
    max-width: 95%;
    font-size: 0.9rem;
    padding: 8px 12px;
    margin: 8px auto;
  }
}

/* =====================================
   NAVIGATION – DESKTOP ONLY
===================================== */
#cs-navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Slimmer container */
#cs-navigation .cs-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.5rem;
  padding: 0 3rem;
}

/* Logo – resized and centred */
#cs-navigation .cs-logo {
  display: flex;
  align-items: center;
  height: 100%;
}
#cs-navigation .cs-logo img {
  height: 3.6rem;
  width: auto;
  object-fit: contain;
}

/* Nav Menu */
#cs-navigation .cs-ul {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

#cs-navigation .cs-li-link {
  font-family: "Knockout", sans-serif;
  text-transform: uppercase;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: #fff;
  position: relative;
  transition: color var(--transition);
}

#cs-navigation .cs-li-link::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width var(--transition);
}

#cs-navigation .cs-li-link:hover::before{
  width: 100%;
}

.cs-li-link.cs-active {
  width: 100%;
  color: #fff; 
}

.cs-li-link.cs-active::before {
  width: 100%;
  background: #ED1A3B; /* Force red underline */
}

/* Nav Button */
.cs-button-solid {
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 0px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.2rem;
  transition: background var(--transition), transform var(--transition);
}
.cs-button-solid:hover,
.cs-button-solid:focus,
.cs-button-solid:active {
  background: var(--brand-dark);
  color: #fff;               /* keep text white */
  transform: translateY(-1px);
}

@media (min-width: 769px) {
  #cs-navigation .cs-toggle {
    display: none !important;
  }
}

/* =====================================
   NAVIGATION – MOBILE (Updated)
===================================== */
@media only screen and (max-width: 480px) {

  /* Fixed header bar */
  #cs-navigation {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 1.25rem;
    background: #000;  /* changed to black */
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
  }

  /* Container row */
  #cs-navigation .cs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.75rem; /* slimmer */
  }

  /* Logo smaller and balanced */
  #cs-navigation .cs-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 2.5rem;
  }

  #cs-navigation .cs-logo img {
    height: 2.25rem; /* reduced size */
    width: auto;
    object-fit: contain;
  }

  /* Hamburger toggle */
  #cs-navigation .cs-toggle {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 9999;
  }

  #cs-navigation .cs-box {
    position: relative;
    width: 22px;
    height: 16px;
  }

  #cs-navigation .cs-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff; /* white for contrast on black */
    border-radius: 2px;
    transition: all 0.4s ease;
  }

  #cs-navigation .cs-line1 { top: 0; }
  #cs-navigation .cs-line2 { top: 7px; }
  #cs-navigation .cs-line3 { bottom: 0; }

  /* Animate hamburger → X */
  #cs-navigation.cs-active .cs-line1 {
    transform: rotate(45deg);
    top: 7px;
  }
  #cs-navigation.cs-active .cs-line2 {
    opacity: 0;
  }
  #cs-navigation.cs-active .cs-line3 {
    transform: rotate(-45deg);
    bottom: 7px;
  }

  /* Drawer menu */
  #cs-navigation .cs-ul-wrapper {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    background: #000;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  #cs-navigation.cs-active .cs-ul-wrapper {
    transform: scaleY(1);
    opacity: 1;
  }

  /* Menu list */
  #cs-navigation .cs-ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 2rem 0;
    list-style: none;
    margin: 0;
  }

  /* Menu links */
  #cs-navigation .cs-li-link {
    font-family: "Knockout", sans-serif;
    font-size: 1.4rem;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.04em;
    position: relative;
    transition: color 0.3s;
  }

  #cs-navigation .cs-li-link:hover {
    color: var(--brand);
  }

  /* Hide button in header (still used in drawer if desired) */
  #cs-navigation .cs-button-solid {
    display: none;
  }

  
}

/********************************************
 PHASE 2 – HOME + PREVIEW (UPDATED)
********************************************/

/* ---------- LAYOUT ---------- */
.home-list {
  margin-top: 6rem; /* allow for fixed nav */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

/* ---------- MENU LAYOUT ---------- */
#lh-home {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 2rem 2rem;
  width: 100%;
  max-width: 1600px;
}

.lh-menu {
  display: grid;
  grid-template-columns: 1fr;
  width: 28%;
  min-width: 320px;
  text-align: left;
}

.lh-menu li {
  background: none;
  border: none;
  padding: 1rem 0;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.lh-link {
  display: inline-block;
  font-family: "Knockout", sans-serif;
  font-size: 4.25rem;
  text-shadow: 0 0 8px rgba(0,0,0,0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px #fff;
  transition: color 0.4s ease, -webkit-text-stroke 0.4s ease, transform 0.3s ease;
  font-weight: 100;
}

.lh-link:hover {
  color: var(--text);
  -webkit-text-stroke: 1px var(--text);
  transform: translateX(6px);
}

      /* Modal overlay */
.tutorial-modal {
  display: block; /* default visible, hide after dismiss */
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}

/* Modal box */
.tutorial-content {
  background: #1a1a1a;
  color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  text-align: left;
}

/* Close button */
.tutorial-close {
  float: right;
  font-size: 2rem;
  cursor: pointer;
}

.tutorial-options {
  display: flex;
  align-items: center;   /* centers checkbox + text vertically */
  gap: 0.5rem;           /* spacing between them */
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: #ddd;
  margin-top: 20px;
}

.tutorial-options input[type="checkbox"] {
  margin: 0;             /* remove default offset */
  width: 18px;           /* optional: make checkbox a bit larger */
  height: 18px;
  cursor: pointer;
}

.tutorial-options label {
  cursor: pointer;       /* clicking text toggles checkbox */
  padding-top: 2px;    /* aligns text with checkbox */
}

/* ---------- PREVIEW STAGE ---------- */
/* Keep preview area flexible */
.home-preview {
  flex: 1;
  max-width: 900px;   /* limit width instead of height */
  margin: 0 auto;
  aspect-ratio: 16/9; /* keeps video proportional */
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  border-radius: 0;
}

/* Video fits inside without cropping */
.slideshow-media video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* instead of cover */
  background: #000;    /* letterbox effect */
  border-radius: 0; /* sharp edges */
}

.preview-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

/* Overlay backgrounds */
.slideshow-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* ---------- PREVIEW TEXT ---------- */
.home-info {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translateY(-50%);
  width: 40%;
  color: #fff;
  pointer-events: none;
}

.preview-text {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.preview-desc {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #f3f3f3;
}

/* ---------- INTERACTION LOGIC ---------- */
.lh-menu li.bg-intake:hover ~ .home-preview .slideshow-bg.intake,
.lh-menu li.bg-intake:hover ~ .home-info .preview-text.intake {
  opacity: 1;
}

.lh-menu li.bg-mealplan:hover ~ .home-preview .slideshow-bg.mealplan,
.lh-menu li.bg-mealplan:hover ~ .home-info .preview-text.mealplan {
  opacity: 1;
}

.lh-menu li.bg-checkin:hover ~ .home-preview .slideshow-bg.checkin,
.lh-menu li.bg-checkin:hover ~ .home-info .preview-text.checkin {
  opacity: 1;
}

.lh-menu li.bg-journal:hover ~ .home-preview .slideshow-bg.journal,
.lh-menu li.bg-journal:hover ~ .home-info .preview-text.journal {
  opacity: 1;
}

/* ---------- FOOTER ACCENT ---------- */
.foot-accent {
  width: 100%;
  height: 10px;
  background: var(--brand);
  margin-top: 4rem;
  border-radius: 0;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.lh-menu li,
.home-preview,
.home-info {
  animation: fadeInUp 0.8s ease both;
}


/* =====================================
   HOME PAGE – MOBILE RESPONSIVE
===================================== */
@media only screen and (max-width: 63.9375rem) {

  /* Layout stacks vertically */
  #lh-home {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    gap: 2rem;
  }

  .lh-menu {
    width: 100%;
    min-width: unset;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .lh-menu li {
    padding: 0.5rem 0;
  }

  .lh-link {
    font-size: clamp(2rem, 10vw, 3.5rem);
    -webkit-text-stroke: 0.8px #fff;
    letter-spacing: 0.5px;
    text-shadow: none;
    transition: color 0.3s ease, transform 0.3s ease;
  }

  .lh-link:hover {
    transform: translateY(-2px);
  }

  /* Preview section below menu */
  .home-preview {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
  }

  .slideshow-media video {
    width: 100%;
    height: auto;
    max-height: 60vh;
  }

  /* Preview text overlay */
  .home-info {
    position: static;
    width: 90%;
    text-align: center;
    margin: 1.25rem auto 0;
    transform: none;
  }

  .preview-desc {
    font-size: clamp(1rem, 4vw, 1.1rem);
    line-height: 1.5;
  }

  /* Tutorial modal adjustments */
  .tutorial-content {
    width: 90%;
    max-width: 400px;
    padding: 1.5rem;
    margin: 20% auto;
    font-size: 0.95rem;
  }

  .tutorial-close {
    font-size: 1.5rem;
  }

  .tutorial-options {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.9rem;
  }

  /* Footer accent */
  .foot-accent {
    margin-top: 2rem;
    height: 8px;
  }
}

/* =====================================
   SMALL MOBILE FIX (≤ 480px)
===================================== */
@media only screen and (max-width: 30rem) {

  #lh-home {
    padding: 1rem 0.75rem;
    gap: 1.5rem;
  }

  .lh-link {
    font-size: 3rem;
    -webkit-text-stroke: 0.6px #fff;
  }

  .preview-desc {
    font-size: 0.95rem;
  }

  .tutorial-content {
    width: 92%;
    margin: 25% auto;
    padding: 1.25rem;
  }

  .tutorial-options label {
    font-size: 0.85rem;
  }

  .foot-accent {
    height: 6px;
  }

  html, body {
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
}


/************** ONBOARDING RESPONSES **************/
.page-wrapper {
  max-width: 1100px;
  margin: 60px auto 200px;
  padding: 0 30px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
}

.page-title1 {
  font-family: "Knockout", sans-serif;
  font-size: 70px;
  color: white;
  letter-spacing: 1px;
  padding-top: 55px;
  text-align: center;
  text-transform: uppercase;
}

.response-header {
  text-align: center;
  margin-bottom: 30px;
}

.client-name {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.questionnaire-title {
  color: #aaa;
  font-size: 16px;
  margin-top: 4px;
}

/* Alert for no responses */
.alert-message {
  text-align: center;
  padding: 20px;
  background: #111;
  border: 1px solid #333;
  color: #bbb;
  font-weight: 500;
  border-radius: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .4);
}

/* Response Card */
.response-card {
  background: #0f0f0f;
  border: 1px solid #222;
  box-shadow: 0 4px 16px rgba(0,0,0,.6);
  border-radius: 0; /* sharp corners */
  padding: 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.response-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.6);
}

/* Table styling */
.response-table {
  width: 100%;
  border-collapse: collapse;
  color: #eee;
  font-size: 16px;
  margin-top: 10px;
}

.response-table th {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  background-color: #1a1a1a;
  border-bottom: 2px solid var(--brand);
  padding: 16px 18px;
  text-align: left;
}

.response-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #555555;
  
}

.response-table tr:hover {
  background-color: rgba(237, 26, 59, 0.05);
}

.question {
  width: 45%;
  font-weight: 600;
  color: #fff;
}

.answer {
  color: #ccc;
}

.answer-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.answer-list li {
  padding: 4px 0;
  border-left: 3px solid var(--brand);
  padding-left: 10px;
  margin-bottom: 4px;
  color: #ddd;
}

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 42px;
  }
  .response-table th, .response-table td {
    padding: 12px;
    font-size: 14px;
  }
  .question {
    width: 100%;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .page-title1 {
    font-size: 50px;
  }

  .client-name {
    font-size: 30px;
  }

  .response-table th, .response-table td {
    padding: 12px;
    font-size: 14px;
  }
  .question {
    width: 100%;
  }
}

/************** FORGOT PASSWORD **************/
.container.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #330000, #1a0000 60%, #000);
  color: #fff;
  font-family: "Montserrat", sans-serif;
}

.users.form.content {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--line);
  padding: 40px 32px;
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.45);
  border-radius: 0;
  text-align: center;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  justify-content: center;
}

/************** RESET PASSWORD **************/
.container.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #330000, #1a0000 60%, #000);
  color: #fff;
  font-family: "Montserrat", sans-serif;
}

.users.form.content {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--line);
  padding: 40px 32px;
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.45);
  border-radius: 0;
  text-align: center;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  justify-content: center;
}

/* Header & legend */
legend {
  font-family: "Knockout", sans-serif;
  font-size: 60px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.instruction {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
}

/* Form input */
.form-forgot-password input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
  font-size: 1rem;
  border-radius: 0;
  transition: border var(--transition), background var(--transition);
}

.form-forgot-password input[type="email"]:focus {
  outline: none;
  border-color: var(--brand);
  background: #151515;
}

/* Submit button */
.button-primary {
  background: var(--brand);
  color: #fff;
  border: none;
  width: 100%;
  padding: 12px 36px;
  font-family: "Knockout", sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 0;
  transition: background var(--transition), transform var(--transition);
  margin-top: 10px;
}

.button-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

/* Divider */
.hr-between-buttons {
  border: none;
  border-top: 1px solid #333;
  margin: 2rem 0;
}

/* Outline button */
.button-outline {
  display: inline-block;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: none;
  padding: 10px 28px;
  font-family: "Knockout", sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0;
  transition: all var(--transition);
}

.button-outline:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  color: #fff;
}

/* Alignment fix */
.text-center {
  text-align: center;
}

