/* ==========================================================
   HASGARAGE — style.css
   Depends on: Bootstrap 5.3, Google Fonts (Saira Condensed + Inter)
   ========================================================== */

/* ----------------------------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------------------------- */
:root {
  --ink: #04060a; /* near-black base */
  --blue: #050b93; /* signature racing blue */
  --white: #ffffff;
  --surface: #0a0e1c;
  --surface-2: #0d1226;
  --blue-bright: #2a39e8; /* lifted blue for accents / hover */
  --line: rgba(255, 255, 255, 0.1);
  --line-blue: rgba(64, 82, 255, 0.4);
  --muted: #9aa2c2;
  --dots: radial-gradient(rgba(255, 255, 255, 0.06) 1.3px, transparent 1.5px);
}

/* ----------------------------------------------------------
   2. GLOBAL RESET & BASE
   ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--white);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

::selection {
  background: var(--blue-bright);
  color: #fff;
}

*:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}

/* ----------------------------------------------------------
   3. TYPOGRAPHY UTILITIES
   ---------------------------------------------------------- */

/* Wordmark — mirrors the italic-condensed logo */
.wordmark {
  font-family: "Saira Condensed", sans-serif;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;
}
.wordmark .has {
  color: var(--blue-bright);
}
.wordmark .garage {
  color: var(--white);
}
.nav-mark {
  font-size: 1.65rem;
}
.foot-mark {
  font-size: 2rem;
}

/* Display headings */
.display {
  font-family: "Saira Condensed", sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.blue-text {
  color: var(--blue-bright);
}

/* Eyebrow — skewed speed-tab, the page's signature element */
.eyebrow {
  display: inline-block;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: #dfe3ff;
  background: var(--blue);
  padding: 0.34rem 0.85rem;
  transform: skewX(-12deg);
  margin-bottom: 1.1rem;
  box-shadow: 0 0 0 1px var(--line-blue);
}
.eyebrow > span {
  display: inline-block;
  transform: skewX(12deg);
}

/* ----------------------------------------------------------
   4. NAVBAR
   ---------------------------------------------------------- */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.navbar .nav-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.navbar .nav-link:hover {
  color: #000;
}

.shop-pill {
  font-family: "Saira Condensed", sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  border: 1px solid var(--line-blue);
  padding: 0.45rem 1.1rem;
  transform: skewX(-10deg);
  transition: 0.2s;
  display: inline-block;
  text-decoration: none;
}
.shop-pill span {
  display: inline-block;
  transform: skewX(10deg);
}
.shop-pill:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.navbar-toggler {
  border-color: var(--line);
}

/* ----------------------------------------------------------
   5. HERO
   ---------------------------------------------------------- */
.hero {
  position: relative;
  padding: 9rem 0 6rem;
  background: var(--ink);
  overflow: hidden;
}

/* Halftone dot texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--dots);
  background-size: 24px 24px;
  opacity: 0.9;
}

/* Skewed blue speed slab */
.hero::after {
  content: "";
  position: absolute;
  top: -15%;
  right: -18%;
  width: 60%;
  height: 130%;
  background: linear-gradient(135deg, var(--blue) 0%, #03064f 100%);
  transform: skewX(-12deg);
  opacity: 0.85;
  filter: saturate(1.1);
  box-shadow: -30px 0 80px rgba(5, 11, 147, 0.45);
}

.hero .container {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  margin: 0 0 1.4rem;
}
.hero p.lead {
  color: #cdd2e6;
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-strip {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  font-family: "Saira Condensed", sans-serif;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.86rem;
  color: #aeb4d4;
}
.hero-strip i {
  color: var(--blue-bright);
  font-style: normal;
  margin-right: 0.4rem;
}

/* ----------------------------------------------------------
   6. BUTTONS
   ---------------------------------------------------------- */
.btn-blue {
  display: inline-block;
  text-decoration: none;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 0.85rem 1.7rem;
  transform: skewX(-10deg);
  transition: 0.2s;
  cursor: pointer;
}
.btn-blue span {
  display: inline-block;
  transform: skewX(10deg);
}
.btn-blue:hover {
  background: var(--blue-bright);
  color: #fff;
  transform: skewX(-10deg) translateY(-2px);
}

.btn-ghost {
  display: inline-block;
  text-decoration: none;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent;
  color: #fff;
  border: 1px solid var(--line);
  padding: 0.85rem 1.7rem;
  transform: skewX(-10deg);
  transition: 0.2s;
  cursor: pointer;
}
.btn-ghost span {
  display: inline-block;
  transform: skewX(10deg);
}
.btn-ghost:hover {
  border-color: var(--blue-bright);
  background: rgba(42, 57, 232, 0.12);
  color: #fff;
}

/* ----------------------------------------------------------
   7. SECTIONS — base + variants
   ---------------------------------------------------------- */
.section {
  position: relative;
  padding: 5.5rem 0;
}
.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Products section — white background */
.section--light {
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid #e7e9f2;
  border-bottom: 1px solid #e7e9f2;
}
.section--light .section-title {
  color: var(--ink);
}
.section--light .section-sub {
  color: #5b6177;
}
.section--light .eyebrow {
  background: var(--blue);
  color: #dfe3ff;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0 0 0.6rem;
}
.section-sub {
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   8. PROFILE CARDS
   ---------------------------------------------------------- */
.profile-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-bright);
  padding: 1.4rem 1.5rem;
  height: 100%;
}
.profile-card h6 {
  font-family: "Saira Condensed", sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0 0 0.35rem;
}
.profile-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ----------------------------------------------------------
   9. PRODUCT CARDS
   ---------------------------------------------------------- */
.product-card {
  background: #fff;
  border: 1px solid #e7e9f2;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: 0.22s;
}
.product-card:hover {
  border-color: var(--line-blue);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(5, 11, 147, 0.12);
}

.product-photo {
  position: relative;
  background: linear-gradient(180deg, #eef0f8, #e2e5f1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e7e9f2;
  overflow: hidden;
}
.product-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(5, 11, 147, 0.07) 1.3px,
    transparent 1.5px
  );
  background-size: 18px 18px;
  opacity: 0.5;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  color: #fff;
  background: var(--blue);
  padding: 0.3rem 1.4rem 0.3rem 0.8rem;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.product-bottle {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 96px;
}

.product-body {
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-body h3 {
  font-family: "Saira Condensed", sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 1.4rem;
  margin: 0 0 0.45rem;
  color: var(--ink);
}
.product-fn {
  color: #5b6177;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1.1rem;
  flex: 1;
}

/* Buy icons row */
.buy-block {
  margin-top: auto;
}
.buy-label {
  display: block;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  color: #8089a3;
  margin-bottom: 0.65rem;
}
.buy-icons {
  display: flex;
  gap: 0.55rem;
}
.buy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 11px;
  border: 1px solid #e7e9f2;
  background: #fff;
  text-decoration: none;
  transition: 0.18s;
}
.buy-icon img {
  height: 100%;
  object-fit: contain;
  display: block;
}
.buy-icon:hover {
  border-color: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(5, 11, 147, 0.16);
}

/* ----------------------------------------------------------
   10. STORE CARDS (See More Products)
   ---------------------------------------------------------- */
.store-card {
  display: block;
  text-decoration: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 1.8rem 1.5rem;
  height: 100%;
  transition: 0.22s;
  position: relative;
  overflow: hidden;
}
.store-card::after {
  content: "";
  position: absolute;
  right: -30%;
  top: -50%;
  width: 60%;
  height: 200%;
  background: var(--blue);
  transform: skewX(-14deg);
  opacity: 0;
  transition: 0.25s;
}
.store-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-blue);
}
.store-card:hover::after {
  opacity: 0.12;
}

.store-card .s-label {
  position: relative;
  z-index: 1;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-size: 0.78rem;
}
.store-card .s-name {
  position: relative;
  z-index: 1;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.9rem;
  color: #fff;
  line-height: 1;
  margin: 0.3rem 0 0.6rem;
}
.store-card .s-go {
  position: relative;
  z-index: 1;
  color: var(--blue-bright);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ----------------------------------------------------------
   11. FOOTER
   ---------------------------------------------------------- */
footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  color: #cfd3e6;
  text-decoration: none;
  transition: 0.2s;
  transform: skewX(-8deg);
}
.social-link svg {
  transform: skewX(8deg);
}
.social-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.foot-note {
  color: var(--muted);
  font-size: 0.84rem;
}
.foot-divider {
  border-color: var(--line);
  margin: 2.2rem 0 1.2rem;
}

/* ----------------------------------------------------------
   12. SCROLL REVEAL ANIMATION
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
