/* ===== HERO (NOX-style) ===== */
.hero { position: relative; }

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

/* Default (desktop) show landscape */
.hero__media [data-src="desktop"] { display: block; }
.hero__media [data-src="mobile"] { display: none; }

/* base stays same; these are enhancements */
.hero__wrap { border-radius: 9px; overflow: hidden; }

/* Buttons row */
.hero__actions {
    display: flex; 
    gap: 12px;
    position: absolute !important;
    left: 6vw;
    bottom: 4.5vw;
    pointer-events: auto;
}

.btn--hero {
    color: #fff;
    border-radius: 5px;
    letter-spacing: 0px;
    padding: 16px 32px;
    font-size: 32px;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.4), 3px 3px 3px rgba(0,0,0,0.3), 4px 4px 4px rgba(0,0,0,0.2), 5px 5px 5px rgba(0,0,0,0.1);
}

.btn--hero#shop {
    border: #fff;
    border-style: solid;
    border-width: 3px;
}

.btn-hero#technology {
    border: none;
}

a#shop::after {
    content: "Shop Now";
    vertical-align: middle;
}

a#technology::after {
    content: "See Technology >";
    vertical-align: middle;
}

@media (max-width: 1200px){    
    .btn--hero {
        padding: 12px 24px;
        font-size: 24px;
    }
}

/* Tablet/Desktop: adjust buttons */
@media (max-width: 900px){    
    .btn--hero {
        padding: 9px 18px;
        font-size: 18px;
    }
}

@media (max-width: 700px){
    .hero__actions { 
        bottom: 12.5vw; 
        left: 10.5vw; 
        flex-direction: row; 
    }
    
    .btn--hero {
        text-shadow: none;
        padding:  9px 20px 10px;
        font-size: 24px;
    }

    #shop.btn--hero {
        border: none;
        background: #fff;
        color: #000;
    }

    a#technology {
        background-color: #000;
        color: #fff;
    }

    a#technology::after {
        content: "See Technology";
    }
    
    .hero__media [data-src="desktop"] { display: none; }
    .hero__media [data-src="mobile"] { display: block; }
    .hero__inner { padding-top: 54px; padding-bottom: 22px; }
}
@media (max-width: 600px){
    .btn--hero {
        padding: 5px 15px 6px;
        font-size: 18px;
    }
}
@media (max-width: 500px){
    .hero__actions { 
        bottom: 11.5vw; 
        left: 11vw; 
        flex-direction: row; }

    .btn--hero {
        padding: 2px 11.5px 3.5px;
        font-size: 14px;
    }
}
























/* SHOP NOW */

/* Product Card */
.card{border:1px solid var(--ui-border); border-radius:12px; overflow:hidden; background:#fff; transition:box-shadow .15s ease, transform .15s ease}
.card:hover{box-shadow:var(--shadow-soft); transform:translateY(-2px)}
.card__media{aspect-ratio: 4/5; background:var(--ui-bg); position:relative}
.card__body{padding:14px}
.card__title{font-weight:600}
.card__meta{display:flex; justify-content:space-between; align-items:center; margin-top:6px}



.hero__inner {
  width: min(var(--container), 92%);
  margin-inline: auto;
  padding: calc(clamp(80px, 12vw, 160px)/1.5) 0 calc(clamp(70px, 10vw, 120px)/2);
  text-align: center;
}

.section--shop-now {
  background: #fff;
  color: #000;
  padding-top: 48px;
}

/* ===== Shop Now: card max-height and bottom-crop image ===== */
.section--shop-now .card {
  max-height: 90vh;          /* cap at 90% of viewport height */
  display: flex;
  flex-direction: column;
}

.section--shop-now .card__media {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;          /* ensures excess image is cropped */
  position: relative;
}

.section--shop-now .card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* crop image when taller */
  object-position: top;      /* anchor to the TOP so bottom is cropped */
}

.card__body {
  flex: 0 0 auto;            /* text keeps natural height */
  padding: 14px;
}

.section--shop-now .grid a {
  display: block;
  height: 100%;
}


/* ===== Players Gallery ===== */


.hero__title {
    color: #fff;
    font-size: 5rem;
    font-weight: 500;
    line-height: 5rem;
    letter-spacing: -3.8px;
    color: #fff;
    padding: 0 0 1%;
}

.hero__pretitle {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.2rem;
    letter-spacing: 0px !important;
    color: #fff;
    padding: 0 0 1%;
}

.hero__sub {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.2rem;
    letter-spacing: 0px !important;
    color: #fff;
    padding: 0 0 1%;
}

.gallery{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.gallery .hero{grid-column:1/-1; aspect-ratio:4/5; background:var(--ui-bg); border-radius:12px}

.section--gallery {
  background: #fff;
  color: #000;
  padding-top: 56px;
  padding-bottom: 56px;
}
.gallery__title { text-align: center; margin: 0 0 6px; }
.gallery__subtitle { text-align: center; color: #aeb4bf; margin: 0 0 18px; }

/* Grid masonry-lite dengan CSS Grid */
.gallery__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: stretch;
}


/* Mobile tweaks */
@media (max-width: 700px) {
  .gallery__grid { gap: 8px; }

    .hero__title {
        font-size: 3.5rem;
        line-height: 4rem;
    }
}

/* ===== Simple 3-up Gallery ===== */
.section--gallery-simple {
  background: #fff;
  color: #000;
  padding-top: 48px;
}

/* ===== Players Gallery (exact layout like screenshot) ===== */
.section--gallery-simple .gallery3{
  display:grid;
  gap:3px;                               /* tiny seams */
  grid-template-columns:repeat(3,1fr);   /* keep 3-up even on mobile */
}
@media (max-width:799px){
  .section--gallery-simple .gallery3{ grid-template-columns:repeat(3,1fr); }
}

.section--gallery-simple .gallery3 figure{
  margin:0;
  border-radius:0;
  overflow:hidden;
  display:block;
}

.section--gallery-simple .gallery3 img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Crop anchors to match positions in the reference */
.section--gallery-simple .gallery3 .crop-left   img{ object-position:left  center; }
.section--gallery-simple .gallery3 .crop-center img{ object-position:center center; }
.section--gallery-simple .gallery3 .crop-right  img{ object-position:right center; }




.gallery3 {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(3, 1fr);     /* 3 kolom sama lebar */
}

/* kartu gambar */
.gallery3 figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: none;
  background: #0f0f10;
}

/* gambar mengikuti proporsi aslinya (tinggi auto) */
.gallery3 img {
  display: block;
  width: 100%;
  height: auto;   /* ini yang bikin “kebawahnya mengikuti” */
}

/* responsif */
@media (max-width: 1199px) {
  .gallery3 { grid-template-columns: repeat(2, 1fr); }  /* 2 kolom */
}
@media (max-width: 799px) {
  .gallery3 { grid-template-columns: 1fr; }             /* 1 kolom */
}


/* Gallery 3-up fix 4:3 */
.gallery3 figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: none;
  background: #0f0f10;
  display: flex;
}

.gallery3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* isi penuh tanpa distorsi */
  display: block;
}







/* Optional: slightly boost the small caption under the title on larger screens */
@media (min-width: 1024px){
  #players .small {
    font-size: clamp(20px, 1.2vw, 18px);
    line-height: 1.5;
    margin-bottom: 32px !important;
  }

  #players .medium {
    font-size: clamp(24px, 1.2vw, 18px);
    line-height: 1.5;
  }

  /* === Players Gallery title: scale up on laptops/desktops === */
  #players .h2{
    /* Bigger, fluid heading that grows with viewport width */
    font-weight: 700;
    font-size: 48px; /* ~34px on small screens → up to 64px on wide */
    line-height: 1.08;
    letter-spacing: -1px;
    text-wrap: balance; /* nicer multi-line wrapping (supported on modern browsers) */
    margin-bottom: 16px !important;
  }
}










/* ===== FAQ (Accessible accordion) ===== */
.section.faq { padding-block: 4rem; }
.faq .h2 { margin-bottom: .25rem; }
.faq .muted { color: white(0,0,0,.55); margin-bottom: 1.5rem; display:block; }

/* .faq__list { max-width: 75vw; margin-inline: auto; } */
.faq__item { border-bottom: 1px solid rgba(0,0,0,.12); padding-block: 1rem; }
.faq__item:first-child { border-top: 1px solid rgba(0,0,0,.12); }
.faq__q { cursor: pointer; font-weight: 500 !important; line-height: 1.4; list-style: none; position: relative; padding-right: 2rem; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: '+'; position: absolute; right: 0; top: 0; font-weight: 700; }
.faq__item[open] .faq__q::after { content: '–'; }
.faq__a { margin-top: .75rem; color: rgba(0,0,0,.8); }
.faq__a p { margin: 0 0 1rem 0; }
@media (prefers-color-scheme: dark) {
  .faq__item { border-color: rgba(255,255,255,.16); }
  .faq__a { color: rgba(255,255,255,.85); }
  .faq .muted { color: rgba(255,255,255,.6); }
}

.faq__list p {
  color: white !important;
}

.faq__q {
  color: white;
}


#faq h2 {
  color: white;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .faq__item[open] .faq__a { animation: none; }
  .faq__a { max-height: none; opacity: 1; }
}


/* ===== FAQ animation (scale-down dropdown) ===== */
/* Use CSS Grid row trick + transform to create a smooth "scale down" reveal */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;    /* collapsed */
  transition: grid-template-rows 260ms ease, opacity 260ms ease, transform 260ms ease;
  overflow: hidden;           /* ensure no spill while collapsed */
  opacity: 0;
  transform: scaleY(0.96);
  transform-origin: top;
  margin-top: 0;
}
.faq__a > * { overflow: hidden; }  /* the inner content collapses cleanly */

.faq__item[open] .faq__a {
  grid-template-rows: 1fr;    /* expanded */
  opacity: 1;
  transform: scaleY(1);
  margin-top: .75rem;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .faq__a {
    transition: none !important;
    grid-template-rows: 1fr !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* JS-enhanced FAQ overrides: inline height/opacity/transform will take precedence */
.faq__a { will-change: height, opacity, transform; }

/* ===== PADL FAQ (light, animated, mobile-friendly) ===== */

/* Container */
#faq.faq--padl {
    background: #fff !important;        /* wins over old dark block */
    color: #111 !important;
    padding: clamp(48px, 9vw, 96px) 0;
}
#faq.faq--padl .container {
    width: min(var(--container), 900px);
    margin-inline: auto;
}

/* Heading */
#faq.faq--padl .faq__head {
    margin: 0 0 16px;
    text-align: left;
}
#faq.faq--padl .faq__head .h2 {
    font: 700 clamp(24px, 3.4vw, 36px) / 1.15 var(--font-display);
    letter-spacing: -0.02em;
    color: #111 !important;
    margin: 0;
}

#faq.faq--padl .faq__head {
    margin-bottom: 30px;
    text-align: center;
}
#faq.faq--padl .faq__head .h2 {
    font-size: clamp(18px, 4.4vw, 32px);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* List + items */
#faq.faq--padl .faq__list {
    border-top: 1px solid rgba(0,0,0,.08);
    border-top: 0;
    display: grid;
    gap: 8px;
}
#faq.faq--padl .faq__item {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
}

/* Summary (question) */
#faq.faq--padl .faq__q {
    list-style: none;
    cursor: pointer;
    display: block;
    position: relative;
    margin: 0;
    padding-right: 22px;
    font: 700 clamp(16px, 2.2vw, 20px) / 1.45 var(--font-display);
    color: #111 !important;
    -webkit-tap-highlight-color: transparent;
}
#faq.faq--padl .faq__q::-webkit-details-marker {
    display: none;
}
/* Chevron */
#faq.faq--padl .faq__q::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0.25em;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .7;
    transition: transform .22s ease, opacity .22s ease;
}
#faq.faq--padl .faq__item[open] > .faq__q::after {
    transform: rotate(-135deg);
    opacity: 1;
}

/* Keyboard focus */
#faq.faq--padl .faq__q:focus-visible {
    outline: 2px solid var(--accent-black);
    outline-offset: 4px;
    border-radius: 6px;
}

/* Answer (animated reveal) */
#faq.faq--padl .faq__a {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    opacity: .85;
    transform: translateY(-2px);
    margin-top: 0;
    transition:
        grid-template-rows .26s ease,
        opacity .26s ease,
        transform .26s ease;
}
#faq.faq--padl .faq__item[open] .faq__a {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: none;
    margin-top: 8px;
}
#faq.faq--padl .faq__a > * {
    overflow: hidden;
}
#faq.faq--padl .faq__a p {
    margin: 0;
    color: #6b7280 !important;
    font: 400 var(--fs-base) / 1.7 var(--font-body);
}

/* Neutralize old dark overrides within FAQ only */
#faq.faq--padl h2 {
    color: inherit !important;
}
#faq.faq--padl .faq__list p {
    color: inherit;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    #faq.faq--padl .faq__a {
        transition: none !important;
        grid-template-rows: 1fr !important;
        opacity: 1 !important;
        transform: none !important;
        margin-top: 8px !important;
    }
}

/* Anchor offset for sticky header */
#faq { 
    scroll-margin-top: 88px; 
}

/* ===== Mobile tweaks ===== */
@media (max-width: 900px) {

    #faq.faq--padl {
        padding: 28px 0 44px;
    }

    #faq.faq--padl .container {
        width: 100%;
        padding: 0 var(--gutter);
    }

    /* Title centered + compact */
    #faq.faq--padl .faq__head {
        margin-bottom: 20px;
        text-align: center;
    }
    #faq.faq--padl .faq__head .h2 {
        font-size: clamp(18px, 4.4vw, 22px);
        line-height: 1.25;
        letter-spacing: -0.02em;
    }

    /* Cardy items with spacing */
    #faq.faq--padl .faq__list {
        border-top: 0;
        display: grid;
        gap: 8px;
    }
    #faq.faq--padl .faq__item {
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 12px;
        padding: 14px 16px;
        background: #fff;
    }

    /* Larger touch target + chevron */
    #faq.faq--padl .faq__q {
        padding-right: 28px;
        font: 700 16px / 1.35 var(--font-display);
    }
    #faq.faq--padl .faq__q::after {
        right: 4px;
        top: .55em;
        width: 12px;
        height: 12px;
        border-width: 2px;
        opacity: .85;
    }

    /* Readable body */
    #faq.faq--padl .faq__a {
        margin-top: 6px;
    }
    #faq.faq--padl .faq__a p {
        font-size: 14px;
        line-height: 1.6;
    }
}