/* ============================================================
   NUTRA FORCE NUTRITION
   Layout / styling modelled on the Muscle Booster reference build
   ============================================================ */

:root {
  --red: #DD2121;
  --black: #000000;
  --grey-card: #F3F3F3;
  --grey-text: #5E5E5E;
  --white: #ffffff;
  --slider-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* easeOutQuad */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  background: var(--white);
  color: #000;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn-black {
  display: inline-block;
  background: var(--black);
  color: #fff;
  border: 0;
  border-radius: 5px;
  padding: 10px 22px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-black:hover { opacity: .85; }
.btn-black.block { display: block; width: 100%; text-align: center; }

/* ===================== HEADER ===================== */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .5px;
  border-radius: 6px;
  transform: skewX(-8deg);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-line { font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.logo-sub { font-size: 10px; font-weight: 500; letter-spacing: 4.5px; color: var(--grey-text); }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: var(--grey-text);
  padding: 8px 0;
  display: block;
  position: relative;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: #000; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .25s;
}
.main-nav a:hover::after { width: 100%; }

.header-tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.icon-btn {
  background: none; border: 0; cursor: pointer;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #000;
  transition: background .2s, color .2s;
}
.icon-btn svg { fill: currentColor; }
.icon-btn:hover { background: #000; color: #fff; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.menu-toggle span { width: 24px; height: 2px; background: #000; display: block; }

/* search drawer */
.search-bar { display: none; border-top: 1px solid #eee; background: #fafafa; }
.search-bar.show { display: block; }
.search-inner { max-width: 1400px; margin: 0 auto; padding: 14px 30px; display: flex; gap: 10px; }
.search-inner select, .search-inner input {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px 12px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  background: #fff;
}
.search-inner input { flex: 1; min-width: 0; }

/* ===================== HERO SLIDER ===================== */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0b0b12;
}
.slider-viewport { width: 100%; overflow: hidden; }
.slider-track {
  display: flex;
  width: 100%;
  will-change: transform;
}
.slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  aspect-ratio: 16 / 5;          /* 1920x600, like the reference slider */
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

/* --- slide 1: full-bleed product-range banner --- */
.slide-banner > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% center;
}
.slide-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .72) 32%, rgba(0, 0, 0, .12) 62%, rgba(0, 0, 0, 0) 100%);
}

/* --- slides 2-4: copy left, bottle right --- */
.slide-mass    { background: linear-gradient(100deg, #100e0c 0%, #2e1409 48%, #8d2a0d 100%); }
.slide-whey    { background: linear-gradient(100deg, #140707 0%, #430a0a 52%, #b02015 100%); }
.slide-isolate { background: linear-gradient(100deg, #0d0d0d 0%, #262626 55%, #0f0f0f 100%); }

.slide-copy {
  position: relative;
  z-index: 2;
  width: 56%;
  padding: 0 clamp(20px, 6vw, 90px);
}
.slide-banner .slide-copy { width: 60%; }

.slide-kicker {
  font-size: clamp(9px, 1.05vw, 13px);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: clamp(6px, 1vw, 14px);
}
.slide-title {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(22px, 4.4vw, 62px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.slide-title em { font-style: normal; color: var(--red); }
.slide-sub {
  font-size: clamp(10px, 1.15vw, 15px);
  color: rgba(255, 255, 255, .8);
  margin-top: clamp(6px, 1.1vw, 16px);
  max-width: 34em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide-cta {
  display: inline-block;
  margin-top: clamp(10px, 1.6vw, 24px);
  background: var(--red);
  color: #fff;
  border-radius: 5px;
  padding: clamp(7px, .9vw, 12px) clamp(14px, 1.9vw, 26px);
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 600;
  letter-spacing: 1px;
  transition: background .2s;
}
.slide:hover .slide-cta { background: #b81a1a; }

.slide-art {
  position: absolute;
  z-index: 1;
  right: clamp(12px, 5vw, 90px);
  top: 6%;
  bottom: 6%;
  width: 40%;
  display: flex;                 /* flex, not grid: the bottle must shrink-wrap, not stretch */
  align-items: center;
  justify-content: center;
}
.slide-art::before {
  content: "";
  position: absolute;
  width: min(74%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(221, 33, 33, .28);
  filter: blur(6px);
}
.slide-art img {
  position: relative;
  height: 100%;
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 22px 30px rgba(0, 0, 0, .55);
  -webkit-mask-image: linear-gradient(#000 93%, transparent 100%);
  mask-image: linear-gradient(#000 93%, transparent 100%);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity .4s;
  z-index: 5;
}
.slider-arrow.prev { left: 15px; }
.slider-arrow.next { right: 15px; }
.slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:focus-visible { opacity: 1; outline: 2px solid #fff; }

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(10px, 2vw, 20px);
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.slider-dots button {
  width: 22px; height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: background .25s;
}
.slider-dots button.active { background: var(--red); }

/* ===================== TRUST STRIP ===================== */
.trust-strip { background: #000; color: #fff; }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; border-right: 1px solid rgba(255, 255, 255, .18); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.trust-item span { font-size: 12px; font-weight: 300; color: rgba(255, 255, 255, .7); }

/* ===================== SECTIONS ===================== */
.section-title {
  font-family: "Poppins", sans-serif;
  font-size: 25px;
  font-weight: 600;
  color: #000;
  text-align: left;
  margin: 0 0 22px;
}

.products { padding: 46px 0 20px; }

.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 5px;
  padding: 8px 18px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-text);
  cursor: pointer;
  transition: all .2s;
}
.filter:hover { border-color: #000; color: #000; }
.filter.active { background: var(--red); border-color: var(--red); color: #fff; }

/* product grid — 3 across, 35px gap */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

/* red plate behind a light card */
.product-card {
  background: var(--red);
  box-shadow: 2px 2px 20px 0 rgba(0, 0, 0, .5);
  margin-bottom: 7px;
  display: flex;
  flex-direction: column;
}
.product-inner {
  background: var(--grey-card);
  border-radius: 20px;
  padding-bottom: 2em;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-thumb { overflow: hidden; border-radius: 20px 20px 0 0; }
.product-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  transition: transform 2.6s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.08); }

.product-name {
  font-family: "Roboto Slab", serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
  padding: 14px 1em 0;
}
.product-size {
  font-size: 12px;
  color: var(--grey-text);
  padding: 4px 1em 0;
  letter-spacing: .3px;
}
.product-price {
  font-family: "Poppins", sans-serif;
  color: #000;
  font-size: 15px;
  padding: 6px 1em 0;
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: auto;            /* pins the price to the bottom of uneven cards */
}
.product-price del { color: #8a8a8a; font-size: 13px; }
.product-price ins { text-decoration: none; font-weight: 500; }
.product-price .ask { font-size: 13px; color: var(--grey-text); }

/* ===================== ABOUT ===================== */
.about { padding: 50px 0 10px; }
.about-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.about-inner p { font-size: 15px; color: #3a3a3a; margin-bottom: 12px; max-width: 640px; }
.about-points { display: grid; gap: 12px; }
.about-points li {
  background: var(--grey-card);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
}
.about-points strong { font-size: 14px; }
.about-points span { font-size: 13px; color: var(--grey-text); }

/* ===================== INSTAGRAM ===================== */
.instagram { padding: 50px 0 60px; }
.insta-slider { position: relative; }

/* sliding strip — 3 tiles per view, same tile size as the product grid */
.insta-track {
  display: flex;
  gap: 35px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.insta-track::-webkit-scrollbar { display: none; }
.insta-track a {
  flex: 0 0 calc((100% - 70px) / 3);   /* 3 across minus 2 gaps */
  scroll-snap-align: start;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  position: relative;
}
.insta-track img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .6s; }
.insta-track a:hover img { transform: scale(1.1); }

.insta-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s, background .2s;
  z-index: 5;
}
.insta-arrow.prev { left: -10px; }
.insta-arrow.next { right: -10px; }
.insta-arrow:hover { background: var(--red); }
.insta-slider:hover .insta-arrow { opacity: 1; }
.insta-arrow:focus-visible { opacity: 1; outline: 2px solid #000; }

/* ===================== FOOTER ===================== */
.site-footer {
  background: #000 url("images/web/footer-bg.jpg") bottom right / cover no-repeat;
  color: #fff;
  padding: 56px 0 0;
  margin-top: 20px;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 40px; }
.footer-col { min-width: 0; }                     /* long email must not widen the column */
.footer-col li, .footer-col a { overflow-wrap: anywhere; }
.footer-col h4 {
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col li { font-size: 14px; font-weight: 300; color: rgba(255, 255, 255, .75); margin-bottom: 7px; }
.footer-col a { color: rgba(255, 255, 255, .75); transition: color .3s; }
.footer-col a:hover { color: #fff; }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, .15);
  text-align: center;
  padding: 18px 20px;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, .8);
}

/* ===================== MODAL / TOAST ===================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
.modal.show { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  width: 100%;
  max-width: 400px;
  position: relative;
}
.modal-box h3 { font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.modal-box label { display: block; font-size: 13px; margin-bottom: 5px; }
.modal-box label span { color: var(--red); }
.modal-box input[type="text"], .modal-box input[type="password"] {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}
.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 13px; }
.check { display: flex; align-items: center; gap: 6px; margin: 0; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #888; }
.modal-foot { margin-top: 14px; font-size: 13px; }
.modal-foot a { color: var(--red); }

.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translate(-50%, 24px);
  background: #000;
  color: #fff;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all .3s;
  z-index: 600;
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===================== RESPONSIVE ===================== */

/* ---- laptops / small desktops ---- */
@media (max-width: 1100px) {
  .header-inner { padding: 12px 20px; gap: 14px; }
  .main-nav ul { gap: 18px; }
  .main-nav a { font-size: 14px; }
}

/* ---- tablets ---- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
  .insta-track { gap: 25px; }
  .insta-track a { flex-basis: calc((100% - 25px) / 2); }   /* 2 per view */
  .about-inner { grid-template-columns: 1fr; gap: 26px; }

  /* the 16:5 strip gets too short to hold copy — give it more height */
  .slide { aspect-ratio: 16 / 7; }
  .slide-copy { width: 58%; }
  .slide-art { width: 42%; top: 8%; bottom: 8%; }
}

/* ---- large phones / small tablets ---- */
@media (max-width: 860px) {
  /* compact bar: hamburger left · logo centred · search right */
  .header-inner { padding: 10px 14px; flex-wrap: wrap; gap: 0; }
  .menu-toggle { display: flex; order: 1; min-width: 44px; align-items: flex-start; }
  .logo { order: 2; margin: 0 auto; gap: 8px; }
  .header-tools { order: 3; min-width: 44px; justify-content: flex-end; gap: 4px; }
  #searchToggle { display: none; }        /* search bar is always visible on mobile */

  .main-nav {
    order: 4;
    flex: 0 0 100%;
    display: none;
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 8px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 11px 0; border-bottom: 1px solid #f2f2f2; }

  /* single rounded search control: icon + input + category, no visible split */
  .search-bar { display: block; border-top: 0; background: #fff; }
  .search-inner {
    margin: 0 14px 10px;
    padding: 0 12px;
    gap: 0;
    flex-wrap: nowrap;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
  }
  .search-inner input {
    order: 1;                 /* icon + input first, category last */
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 0;
    outline: none;
    padding: 11px 8px 11px 26px;
    font-size: 16px;          /* stops iOS zooming in on focus */
    background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5Zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14Z'/%3E%3C/svg%3E") no-repeat left center / 16px 16px;
  }
  .search-inner input::placeholder { color: #8a8a8a; }
  .search-inner select {
    order: 2;                 /* sits at the right edge of the same box */
    flex: 0 0 auto;
    width: auto;
    max-width: 34%;
    margin-left: auto;
    border: 0;
    border-radius: 0;
    outline: none;
    padding: 11px 0;
    background: transparent;
    color: var(--grey-text);
    font-size: 14px;
    text-align: right;
    text-align-last: right;
    text-overflow: ellipsis;
    -webkit-appearance: none;
    appearance: none;
  }
  #searchGo { display: none; }            /* Enter key / category change runs the search */
}

/* ---- phones: stack the hero, one product per row ---- */
@media (max-width: 700px) {
  .slider-arrow { display: none; }        /* swipe instead, as on the reference site */

  .slide {
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .slide-copy {
    width: 100%;
    padding: 30px 22px 14px;
    order: 1;
  }
  .slide-title { font-size: clamp(27px, 8.4vw, 40px); }
  .slide-kicker { font-size: 10px; letter-spacing: 1.6px; }
  .slide-sub { font-size: 12.5px; margin: 8px auto 0; -webkit-line-clamp: 3; }
  .slide-cta { margin-top: 16px; padding: 10px 22px; font-size: 12px; }

  .slide-art {
    position: relative;
    order: 2;
    right: auto; top: auto; bottom: auto;
    width: 100%;
    height: 262px;
    margin-bottom: 34px;      /* clears the dots */
  }
  .slide-art::before { width: 215px; }
  .slide-art img { border-radius: 12px; }

  /* the banner slide keeps its photo, with the copy stacked over the top of it */
  .slide-banner { display: block; aspect-ratio: 4 / 5; max-height: 78vh; }
  .slide-banner > img { object-position: 58% 78%; }
  .slide-banner::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .7) 34%, rgba(0, 0, 0, .18) 62%, rgba(0, 0, 0, .55) 100%);
  }
  .slide-banner .slide-copy { width: 100%; padding: 34px 22px 0; }

  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item strong { font-size: 13px; }
  .trust-item span { font-size: 11px; }
}

@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; gap: 28px; }
  .insta-track a { flex-basis: 100%; }                      /* 1 per view, swipe to scroll */
  .insta-arrow { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
  .section-title { font-size: 21px; }
  .logo-mark { width: 34px; height: 34px; font-size: 14px; border-radius: 5px; }
  .logo-line { font-size: 13px; }
  .logo-sub { font-size: 8px; letter-spacing: 3px; }
  .products { padding: 34px 0 10px; }
  .about { padding: 34px 0 0; }
  .instagram { padding: 36px 0 44px; }

  /* filters stay on one swipeable line instead of stacking */
  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -20px 20px;
    padding: 0 20px 4px;
    scrollbar-width: none;
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; white-space: nowrap; }
}

/* ---- small phones ---- */
@media (max-width: 480px) {
  /* two columns can't hold the email address without hyphen-breaking it */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 380px) {
  .slide-art { height: 195px; }
  .header-tools { gap: 0; }
}

/* ---- landscape phones: don't let the hero eat the screen ---- */
@media (max-width: 900px) and (orientation: landscape) {
  .slide-banner { aspect-ratio: 16 / 7; max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
