/* ============================================================
   LUKAS by Victory Arrow — Home page (index.html) styles
   ============================================================ */

.home-main { flex: 1; }

/* Shared section utilities */
.section-wrap {
  width: min(1240px, calc(100% - 80px));
  margin: 0 auto;
}

.sec-title {
  text-align: center;
  color: var(--green);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 900;
  margin-bottom: clamp(32px, 4vw, 56px);
}

/* ============================================================
   1. Hero
   ============================================================ */
/* Hero reconstructs the original banner from two pre-designed images:
   left = rider scene (text + divider blade baked in), right = bikes video.
   Flex basis matches the source images' width ratio (~1080:830) so the
   seam lands on the baked divider with minimal cropping. */
.home-hero {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: clamp(300px, 31vw, 520px);
  overflow: hidden;
  background: #e9eef0;
}

.hero-left  { flex: 0 0 56.5%; position: relative; z-index: 1; }
.hero-right { flex: 0 0 43.5%; position: relative; }

.hero-left-img,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* The divider blade is baked into hero-left.jpg. This mask traces the blade's
   two edges — x = 1086 - 0.5045y down to the step at y = 311, then
   x = 1086 - 0.5185(y - 311) — and cuts that wedge out of the photo, so the
   video running underneath shows through it as a bolt-shaped window.

   The wedge fades back to solid across the top and bottom ~11% of the frame:
   the TVC is a 2.25:1 picture letterboxed inside a 960x540 file, and that band
   is where its black bars land — bars showing through the window read as a bug,
   while the blade's own near-white art there blends with the gap.

   It is an inline SVG on purpose — a mask loaded from a separate file is
   treated as cross-origin over file://, which blanks the whole image when the
   site is opened straight off disk. mask-size/position mirror the image's own
   object-fit/object-position, or mask and photo drift apart. */
.hero-left-img {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1091' height='599' viewBox='0 0 1091 599'%3E%3ClinearGradient id='b' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='0' y2='599'%3E%3Cstop offset='.114' stop-color='%23fff'/%3E%3Cstop offset='.154' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.846' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.886' stop-color='%23fff'/%3E%3C/linearGradient%3E%3Cpath fill='%23fff' d='M0 0h1087L930 311h157L938 599H0z'/%3E%3Cpath fill='url(%23b)' d='M1086 0h5v311H929z'/%3E%3Cpath fill='url(%23b)' d='M1086 311h5v288H937z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1091' height='599' viewBox='0 0 1091 599'%3E%3ClinearGradient id='b' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='0' y2='599'%3E%3Cstop offset='.114' stop-color='%23fff'/%3E%3Cstop offset='.154' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.846' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.886' stop-color='%23fff'/%3E%3C/linearGradient%3E%3Cpath fill='%23fff' d='M0 0h1087L930 311h157L938 599H0z'/%3E%3Cpath fill='url(%23b)' d='M1086 0h5v311H929z'/%3E%3Cpath fill='url(%23b)' d='M1086 311h5v288H937z'/%3E%3C/svg%3E");
  -webkit-mask-size: cover;
          mask-size: cover;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}

/* Pinned to the right edge and 10vw wider than its own column: the window's
   left-most point sits ~8.1vw past the seam, so this always reaches under it. */
.hero-video {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(100% + 10vw);
}

/* Transparent full-cover click target — the poster already shows a play
   button, so this just makes the video area clickable. */
.hero-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.hero-play.is-hidden { display: none; }

/* ============================================================
   2. Products
   ============================================================ */
.home-products {
  padding: clamp(60px, 8vw, 100px) 0;
  background: #fff url("../assets/background_product.jpg") center / cover no-repeat;
}

.home-products .sec-title {
  font-size: clamp(34px, 4.5vw, 56px);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  max-width: 980px;
  margin-inline: auto;
}

.product-card {
  background: linear-gradient(175deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.04) 100%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  padding: 28px 28px 22px;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.product-img-wrap {
  flex: 1;
  position: relative;
  /* Break out of the card padding so the flipped detail image fills the frame edge-to-edge. */
  margin: -28px -28px 16px;
  min-height: 380px;
}

.product-img-wrap img {
  display: block;
  transition: opacity .25s ease;
}

/* Front: motorcycle, contained with breathing room. */
.product-flip-front .product-img {
  width: 100%;
  max-width: 460px;
  max-height: 340px;
  height: auto;
  object-fit: contain;
}

/* Back: detail graphic fills the whole face. */
.product-flip-back .product-flip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-img-wrap img.is-swapping {
  opacity: 0;
}

/* Flip card: motorcycle on the front, detail image + read-more on the back. */
.product-flip {
  position: absolute;
  inset: 0;
  perspective: 1500px;
}

.product-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .7s cubic-bezier(.45, .05, .25, 1);
  transform-style: preserve-3d;
}

.product-img-wrap:hover .product-flip-inner,
.product-flip-inner.is-flipped {
  transform: rotateY(180deg);
}

.product-flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.product-flip-front {
  padding: 28px;
}

.product-flip-back {
  transform: rotateY(180deg);
}

.flip-readmore {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 36px;
  /* Translucent by default; solid gold on hover. */
  background: rgba(197, 162, 74, .16);
  border: 1.5px solid rgba(197, 162, 74, .65);
  color: #fff;
  text-decoration: none;
  /* Parallelogram shape. */
  transform: skewX(-12deg);
  opacity: 0;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, opacity .3s ease .25s;
}

.flip-readmore-label {
  display: inline-block;
  /* Counter-skew so the text stays upright. */
  transform: skewX(12deg);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .5px;
}

/* Reveal once the card is flipped. */
.product-img-wrap:hover .flip-readmore,
.product-flip-inner.is-flipped .flip-readmore {
  opacity: 1;
}

/* Mouse over the button → solid gold. */
.flip-readmore:hover,
.flip-readmore:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: #14331f;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .product-flip-inner { transition: none; }
  .flip-readmore { transition: opacity .2s ease; }
}

.product-colors {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.18);
}

.color-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #999;
  text-transform: uppercase;
}

.swatches {
  display: flex;
  gap: 14px;
  align-items: center;
}

.sw {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  display: block;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform .15s ease, box-shadow .15s ease;
}

.sw:hover { transform: scale(1.12); }

.sw:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.sw.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--green), 0 1px 4px rgba(0,0,0,.25);
}

.sw-green { background: var(--green); }
.sw-black { background: #1a1a1a; }
.sw-gray  { background: #9a9a9a; }

/* ============================================================
   3. Features
   ============================================================ */
.home-features {
  padding: clamp(40px, 5vw, 70px) 0;
  background: #fafafa url('../assets/feature_bg.jpg') no-repeat right center;
  background-size: auto 100%;
  overflow: hidden;
}

.home-features .sec-title {
  position: relative;
  z-index: 2;
  transform: translateY(0);
  font-size: clamp(34px, 4.5vw, 56px);
}

.features-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}

.feat-menu {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: center;
  align-items: center;
  border-right: 1.5px solid rgba(2, 115, 71, 0.35);
  padding-right: 10px;
}

.feat-btn {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green);
  padding: 6px 4px;
  transition: color 0.2s;
  white-space: nowrap;
}

.feat-btn:hover { color: var(--gold); }

.feat-btn.active { color: var(--gold); }

.feat-panels { }

.feat-panel { display: none; }

.feat-panel.active {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}

.feat-main {
  flex: 1;
}

.feat-name {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  color: var(--green);
  letter-spacing: -1px;
  margin-bottom: 14px;
  line-height: 1;
}

.feat-desc {
  font-size: clamp(16px, 1.8vw, 20px);
  color: #c4ac64;
  line-height: 1.55;
}

.feat-img-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feat-img-col img {
  display: block;
  width: 115%;
  max-width: none;
  height: auto;
  max-height: clamp(280px, 34vw, 420px);
  object-fit: contain;
}

/* ============================================================
   4. About
   ============================================================ */
.home-about {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1920 / 1104;
  min-height: 560px;
  background: linear-gradient(135deg, #f5f3ee 0%, #e8ede5 100%);
  display: flex;
  align-items: flex-start;
}

.about-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 1;
}

.about-content {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 60px));
  margin: 0 auto;
  text-align: center;
  padding: clamp(32px, 4vw, 56px) 0 0;
}

.about-title {
  margin-bottom: 14px;
  font-size: clamp(34px, 4.5vw, 56px);
}

.about-collab {
  font-size: clamp(14px, 1.7vw, 17px);
  font-weight: 700;
  color: #c4ac64;
  margin-bottom: 10px;
  line-height: 1.6;
}

.about-desc {
  font-size: clamp(15px, 1.6vw, 17px);
  color: #c4ac64;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.about-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-weight: 800;
  font-size: 16px;
  padding: 15px 48px;
  transition: transform .2s, color .2s;
}

.about-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  border: 2px solid var(--green);
  transform: skewX(-12deg);
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.about-cta:hover {
  transform: translateY(-2px);
  color: #b3a560;
}

.about-cta:hover::before {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 12px 32px rgba(2,115,71,.32);
}

/* ============================================================
   5. Social
   ============================================================ */
.home-social {
  padding: clamp(56px, 7vw, 88px) 0;
  background: #fff;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 72px);
}

.social-icon {
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform .2s;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.social-icon:hover {
  transform: translateY(-3px);
}

/* ============================================================
   6. Contact
   ============================================================ */
/* Full-width split: left text aligned to the site container, right map
   bleeds all the way to the page edge. */
.home-contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: stretch;
  background: #f3f3f3;
  min-height: clamp(360px, 38vw, 480px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 64px);
  /* Align the text start with .section-wrap content (max 1240px, 40px gutter). */
  padding-left: max(40px, calc((100vw - 1240px) / 2));
}

.ci-title {
  color: var(--green);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  margin: 0 0 18px;
}

.ci-company {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900;
  color: #cab577;
  margin-bottom: 4px;
}

.ci-address {
  font-size: 16px;
  color: #cab577;
  line-height: 1.75;
  margin-bottom: 16px;
}

.ci-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
}

.ci-row a { color: inherit; }

.ci-ico {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-map {
  background: #e0e0e0;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .features-layout { grid-template-columns: 1fr; }
  .feat-menu {
    flex-direction: row;
    flex-wrap: wrap;
    align-self: auto;
    align-items: center;
    justify-content: center;
    gap: 4px 0;
    border-left: none;
    border-bottom: 1.5px solid rgba(2, 115, 71, 0.35);
    padding-left: 0;
    padding-bottom: 14px;
  }
  .feat-btn {
    writing-mode: horizontal-tb;
    transform: none;
    padding: 6px 14px;
  }
  .feat-panel.active { grid-template-columns: 1fr; }
  .feat-img-col img { width: 100%; }

  /* Contact stacks: text on top, map full width below. */
  .home-contact {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .contact-info { padding-left: clamp(32px, 4vw, 64px); }
  .contact-map { min-height: 340px; }
}

@media (max-width: 640px) {
  .section-wrap { width: calc(100% - 40px); }

  /* Hero stacks vertically: image on top, video below. */
  .home-hero {
    flex-direction: column;
    height: auto;
  }

  .hero-left,
  .hero-right {
    flex: 0 0 auto;
    width: 100%;
  }

  .hero-left-img,
  .hero-video {
    height: auto;
  }

  /* Stacked, so nothing overlaps: put the blade back and drop the video's
     left-hand overhang. */
  .hero-left-img {
    -webkit-mask-image: none;
            mask-image: none;
  }

  .hero-video {
    position: static;
    width: 100%;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .product-card { min-height: 380px; padding: 22px; }
  .product-img-wrap { margin: -22px -22px 14px; min-height: 300px; }
  .product-flip-front { padding: 22px; }

  .contact-map { min-height: 280px; }
  .contact-map iframe { min-height: 280px; }
}

@media (max-width: 400px) {
  .product-model { font-size: 44px; }
}
