/********************************************
 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("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 700;
}

/* ---------- 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;
}

/* ---------- 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; }

/* ---------- FLASH MESSAGES ---------- */
.message {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 600;
  margin-bottom: 12px;
}
.message.error   { background: #2a1013; color: #ffd2d7; border-color: #44151b; }
.message.success { background: #102a14; color: #c6f7d0; border-color: #1c3b22; }

/* =====================================
   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,
#cs-navigation .cs-li-link.cs-active::before {
  width: 100%;
}

/* Nav Button */
.cs-button-solid {
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  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);
}

/* Remove unused hamburger styles */
.cs-toggle,
.cs-line,
.cs-ul-wrapper { display: none !important; }

/* =====================================
   LANDING PAGE
===================================== */
.landing {
  min-height: 100vh;
  background: var(--bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
}

.landing .content {
  max-width: 900px;
  margin: auto;
}

.landing h1 {
  font-family: "Knockout", sans-serif;
  font-size: 160px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0;
}

.landing h2 {
  font-family: "Knockout", sans-serif;
  font-size: 80px;
  color: transparent;
  -webkit-text-stroke: 1px #fff;
  margin: 20px 0 40px;
  letter-spacing: 1.5px;
}

.landing p {
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 50px;
}

/* CTA Buttons */
.cta {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #fff;
  background: var(--brand);
  color: #fff;
  font-family: "Knockout", sans-serif;
  text-transform: uppercase;
  font-size: 28px;
  padding: 12px 36px;
  letter-spacing: 1.5px;
  transition: background var(--transition), transform var(--transition);
  border-radius: 0;
}

.btn:hover,
.btn:focus,
.btn:active {
  background: var(--brand-dark);
  color: #fff;               /* ensure hover text stays white */
  transform: translateY(-2px);
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }


/********************************************
 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: 4rem;
  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;
}

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

/* ---------- PREVIEW STAGE ---------- */
.home-preview {
  position: relative;
  flex: 1;
  height: 600px;
  overflow: hidden;
  border-radius: 0; /* sharp edges */
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

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

/* Video background */
.slideshow-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  border-radius: 0; /* sharp edges */
}

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

.slideshow-bg.intake   { background: rgba(237, 26, 59, 0.25); }
.slideshow-bg.mealplan { background: rgba(255, 165, 0, 0.2); }
.slideshow-bg.checkin  { background: rgba(255, 255, 255, 0.1); }
.slideshow-bg.journal  { background: rgba(255, 255, 0, 0.15); }

/* ---------- 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;
  font-weight: 500;
}

/* ---------- 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;
}

/********************************************
 PHASE 3 – FINAL LOGIN & REGISTER
********************************************/

/************** LOGIN **************/
#login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg-gradient);
  color: #fff;
  font-family: "Montserrat", sans-serif;
}

.login-container {
  width: 100%;
  max-width: 450px;
  padding: 16px;
}

.login-card {
  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;
}

.login-header h1 {
  font-family: "Knockout", sans-serif;
  letter-spacing: 1px;
  font-size: 60px;
  color: var(--brand);
  margin: 0 0 2px 0;
  text-align: center;
}

.login-header .sub {
  text-align: center;
  font-size: 20px;
  color: #fff;
  margin-bottom: 15px;
}

/* Form */
fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

label {
  display: block;
  text-align: left;
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 4px;
}

input[type="email"],
input[type="password"],
input[type="text"],


input:focus {
  outline: none;
  border-color: var(--brand);
  background: #151515;
}

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

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

/* Links */
.link {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition: opacity var(--transition);
}

.link:hover {
  opacity: 0.8;
}

.divider {
  border: none;
  border-top: 1px solid #333;
  margin: 2rem 0;
}

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

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

/* Alternate link layout */
.alt-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

/************** REGISTER **************/
#register {
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(237,26,59,0.12), transparent),
              linear-gradient(180deg, #000, #060606 60%, #000);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  display: grid;
  place-items: stretch;
}

.grid {
  display: grid;
  grid-template-columns: 40% 60%;
  height: 100vh;
}

/* Left panel */
.brand-pane {
  background: linear-gradient(rgba(237,26,59,0.12));
  border-right: 1px solid #1b1b1b;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.brand-inner .badge {
  font-family: "Knockout", sans-serif;
  color: #fff;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.brand-inner h1 {
  font-family: "Knockout", sans-serif;
  font-size: 58px;
  color: var(--brand);
  margin: 0.5rem 0 1rem;
}

.brand-inner p {
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

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

.highlights li {
  color: #ccc;
  border-left: 3px solid var(--brand);
  padding-left: 10px;
  margin-bottom: 0.75rem;
}

/* Decorative stripe */
.brand-pane .stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--brand);
}

/* Right form panel */
.form-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.form-pane .card {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #222;
  padding: 3rem 3.5rem;
  width: 700px;
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.45);
  border-radius: 0;
}

/* Card header */
.card-head h2 {
  font-family: "Knockout", sans-serif;
  text-transform: uppercase;
  font-size: 50px;
  color: var(--brand);
  margin: 0 0 8px;
}

.card-head .sub {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}

.card-head .sub a {
  color: var(--brand);
  text-decoration: none;
  transition: opacity var(--transition);
}
.card-head .sub a:hover { opacity: 0.8; }

/* Form fields */
.field, .row, .col {
  width: 100%;
}

.row {
  display: flex;
  gap: 1rem;
}

.col {
  flex: 1;
}

input, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  border-radius: 0;
  transition: border var(--transition), background var(--transition);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  background: #151515;
}

/* Register button */
.btn {
  background: var(--brand);
  color: #fff;
  border: none;
  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);
  width: 100%;
}

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

/* Table styling (for onboarding summary views) */
.response-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #111;
  color: #eee;
  font-size: 16px;
  margin-top: 30px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
}

.response-table th,
.response-table td {
  padding: 20px;
  border-bottom: 1px solid #333;
  vertical-align: top;
}

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

.response-table tr:hover { background-color: #222; }

.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: #ccc;
}
