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

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

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

/* =====================================
   LANDING PAGE
===================================== */
.landing {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0px 20px 20px;
}

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

.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;
  background: var(--brand);
  color: #fff;
  font-family: "Knockout", sans-serif;
  text-transform: uppercase;
  font-size: 35px;
  padding: 12px 12px;
  letter-spacing: 1.5px;
  transition: background var(--transition), transform var(--transition);
  border-radius: 0;
  width: 200px; /* fixed width */
  height: 60px; /* fixed height */
}

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

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


  .landing .content {
    max-width: 95%;
    margin: 0 auto;
  }

  /* Headline */
  .landing h1 {
    font-size: clamp(50px, 14vw, 100px);   /* dynamic scaling */
    line-height: 1.1;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
  }

  .landing h2 {
    font-size: clamp(30px, 8vw, 60px);
    -webkit-text-stroke: 0.8px #fff;
    margin: 1rem 0 2rem;
    letter-spacing: 1px;
  }

  .landing p {
    font-size: clamp(10px, 2vw, 10px);
    line-height: 1.5;
    margin-bottom: 2rem;
    color: #f3f3f3;
  }

  /* CTA buttons stacked vertically */
  .cta {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }

  .btn {
    font-size: clamp(20px, 6vw, 28px);
    padding: 10px 18px;
    width: 90%;
    max-width: 320px;
    background: var(--brand);
    letter-spacing: 1px;
  }

  .btn:hover {
    transform: translateY(-1px);
  }
}

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

  .landing h1 {
    font-size: 70px;
    letter-spacing: 0.5px;
  }

  .landing h2 {
    font-size: 45px;
    margin: 0.8rem 0 1.6rem;
  }

  .landing p {
    font-size: 15px;
    margin-bottom: 1.5rem;
  }

  .btn {
    font-size: 24px;
    height: 48px;
    padding: 10px;
  }
}
