
/* =========================================
   NUTTIN® WEBSITE — MASTER STYLESHEET
   Desktop / Tablet / Mobile
========================================= */

/* GOOGLE FONT */
:root {
  --black: #000000;
  --dark: #171717;
  --white: #ffffff;
  --cream: #f4f2ed;
  --turquoise: #8be278;
  --gray: #999999;
  --font-main: 'Space Mono', monospace;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-main);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* =========================================
   ANNOUNCEMENT
========================================= */

.announcement {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 12px 15px;
  font-size: 11px;
  letter-spacing: 3px;
}

/* =========================================
   HEADER
========================================= */

.site-header {
  position: relative;
  z-index: 20;
  width: 100%;
  min-height: 85px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 25px;
  padding: 18px 5%;
  background: var(--cream);
  color: var(--black);
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.site-header nav a {
  display: inline-block;
  padding: 7px 9px;
  border-radius: 4px;
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background .25s ease, color .25s ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a:active {
  background: var(--turquoise);
  color: var(--black);
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

/* =========================================
   HERO / CAMPAIGN SLIDER
========================================= */

.hero {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
}

.hero-slider {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(420px, 72vh, 760px);
  overflow: hidden;
  background: var(--black);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity .8s ease;
}

.hero-slide.active {
  opacity: 1;
}

/* Slider arrows */

.slider-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(244,242,237,.92);
  color: var(--black);
  font-size: 22px;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.slider-arrow:hover {
  background: var(--turquoise);
  transform: translateY(-50%) scale(1.08);
}

.slider-prev {
  left: 24px;
}

.slider-next {
  right: 24px;
}

/* Slide counter */

.slider-counter {
  position: absolute;
  z-index: 5;
  right: 25px;
  bottom: 20px;
  padding: 10px 14px;
  background: var(--cream);
  color: var(--black);
  font-size: 11px;
  letter-spacing: 2px;
}

/* Hero text */

.hero-overlay {
  position: relative;
  z-index: 2;
  padding: 35px 20px 45px;
  text-align: center;
  color: var(--white);
}

.hero-overlay p {
  margin-bottom: 25px;
  font-size: 11px;
  letter-spacing: 4px;
}

.hero-overlay h1 {
  margin: 0;
  padding: 0;
  font-size: clamp(60px, 11vw, 150px);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -8px;
}

.hero-overlay span {
  display: block;
  margin-top: 25px;
  font-size: 11px;
  letter-spacing: 3px;
}

.hero-index {
  position: relative;
  z-index: 2;
  padding: 12px 20px 18px;
  color: var(--white);
  text-align: center;
  font-size: 10px;
  letter-spacing: 3px;
}

/* =========================================
   BLURRED LOOKBOOK BACKGROUND
   (Jika elemen ini digunakan di HTML)
========================================= */

.hero-blur-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  overflow: hidden;
}

.hero-blur-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px);
  opacity: .65;
  transform: scale(1.12);
}

/* =========================================
   MOVING MARQUEE
========================================= */

.nuttin-marquee {
  width: 100%;
  overflow: hidden;
  padding: 19px 0;
  white-space: nowrap;
  background: var(--cream);
  color: var(--black);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: nuttin-marquee 24s linear infinite;
  will-change: transform;
}

.marquee-track span {
  flex-shrink: 0;
  padding-right: 35px;
  color: var(--black);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
}

@keyframes nuttin-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================================
   SHOP / COLLECTION
========================================= */

.shop-section {
  width: 100%;
  padding: 75px 38px;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}

.section-heading p {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 14px;
  letter-spacing: 1px;
}

.section-heading h2 {
  color: var(--white);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.section-heading > a {
  flex-shrink: 0;
  color: var(--turquoise);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: opacity .25s ease;
}

.section-heading > a:hover {
  opacity: .65;
}

/* Product grid */

.product-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.product-card {
  display: block;
  min-width: 0;
  color: var(--white);
  cursor: pointer;
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111111;
}

.product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .45s ease, transform .7s ease;
}

.product-image .product-main {
  opacity: 1;
}

.product-image .product-hover {
  opacity: 0;
}

.product-card:hover .product-main {
  opacity: 0;
}

.product-card:hover .product-hover {
  opacity: 1;
  transform: scale(1.035);
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  color: var(--white);
  font-size: 12px;
  letter-spacing: 1px;
  transition: color .25s ease;
}

.product-card:hover .product-info {
  color: var(--turquoise);
}

/* =========================================
   CAMPAIGN / LOOKBOOK
========================================= */

.campaign-section {
  width: 100%;
  padding: 75px 38px;
  background: var(--black);
  color: var(--white);
}

.campaign-section .section-heading {
  margin-bottom: 28px;
}

.campaign-section .section-heading span {
  font-size: 11px;
  letter-spacing: 2px;
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.campaign-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #111111;
  transition: opacity .35s ease;
}

.campaign-grid img:hover {
  opacity: .8;
}

/* =========================================
   ABOUT
========================================= */

.about-section {
  width: 100%;
  padding: 110px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
  color: var(--white);
}

.about-section > p {
  margin-bottom: 25px;
  font-size: 12px;
  letter-spacing: 4px;
}

.about-section h2 {
  margin-bottom: 25px;
  font-size: clamp(35px, 7vw, 85px);
  line-height: .98;
  letter-spacing: -4px;
}

.about-section span {
  max-width: 550px;
  font-size: 13px;
  line-height: 1.9;
  color: #cccccc;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  min-height: 400px;
  width: 100%;
  padding: 70px 25px 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  overflow: hidden;
  text-align: center;
  background: var(--black);
  color: var(--white);
}

.footer-logo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  width: 80%;
  max-width: 850px;
  max-height: 190px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  color: var(--white);
  font-size: 12px;
  letter-spacing: 2px;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: color .25s ease;
}

.footer-links a:hover {
  color: var(--turquoise);
}

.site-footer p {
  margin: 0;
  color: var(--white);
  font-size: 11px;
  letter-spacing: 3px;
  line-height: 1.8;
}

/* =========================================
   SCROLL REVEAL
========================================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

  .site-header {
    padding: 16px 3%;
    gap: 12px;
  }

  .site-header nav {
    gap: 8px;
  }

  .site-header nav a {
    font-size: 10px;
    padding: 7px 5px;
  }

  .logo img {
    width: 120px;
  }

  .hero-slider {
    height: 58vh;
    min-height: 380px;
  }

  .shop-section,
  .campaign-section {
    padding: 60px 25px;
  }

  .campaign-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-section {
    padding: 85px 25px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  /* Header */

  .site-header {
    min-height: auto;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding: 15px 12px;
  }

  .logo {
    grid-row: 1;
  }

  .logo img {
    width: 125px;
    max-height: 55px;
  }

  .nav-left {
    grid-row: 2;
  }

  .nav-right {
    grid-row: 3;
  }

  .site-header nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
  }

  .site-header nav a {
    padding: 7px 8px;
    font-size: 9px;
    letter-spacing: .5px;
  }

  .announcement {
    padding: 10px;
    font-size: 9px;
    letter-spacing: 2px;
  }

  /* Hero */

  .hero-slider {
    height: 55vh;
    min-height: 300px;
    max-height: 520px;
  }

  .hero-slide {
    object-fit: contain;
  }

  .slider-arrow {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }

  .slider-counter {
    right: 10px;
    bottom: 10px;
    padding: 7px 10px;
    font-size: 9px;
  }

  .hero-overlay {
    padding: 28px 15px 32px;
  }

  .hero-overlay p {
    margin-bottom: 18px;
    font-size: 9px;
    letter-spacing: 3px;
  }

  .hero-overlay h1 {
    font-size: clamp(48px, 13vw, 75px);
    letter-spacing: -4px;
  }

  .hero-overlay span {
    margin-top: 20px;
    font-size: 9px;
    letter-spacing: 2px;
  }

  .hero-index {
    padding: 10px 15px 15px;
    font-size: 9px;
  }

  /* Marquee */

  .nuttin-marquee {
    padding: 15px 0;
  }

  .marquee-track span {
    font-size: 12px;
    letter-spacing: 1.5px;
    padding-right: 25px;
  }

  /* Shop */

  .shop-section {
    padding: 48px 16px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
  }

  .section-heading p {
    font-size: 11px;
  }

  .section-heading h2 {
    font-size: clamp(23px, 7vw, 32px);
  }

  .section-heading > a {
    font-size: 12px;
  }

  .product-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-info {
    padding-top: 10px;
    font-size: 9px;
    letter-spacing: .5px;
  }

  /* Lookbook */

  .campaign-section {
    padding: 48px 16px;
  }

  .campaign-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .campaign-grid img {
    aspect-ratio: 3 / 4;
  }

  /* About */

  .about-section {
    padding: 75px 20px;
  }

  .about-section > p {
    margin-bottom: 18px;
    font-size: 10px;
  }

  .about-section h2 {
    font-size: clamp(34px, 9vw, 52px);
    letter-spacing: -2px;
    margin-bottom: 20px;
  }

  .about-section span {
    font-size: 11px;
    line-height: 1.8;
  }

  /* Footer */

  .site-footer {
    min-height: 300px;
    padding: 55px 18px 30px;
    gap: 20px;
  }

  .footer-logo img {
    width: 90%;
    max-height: 110px;
  }

  .footer-links {
    gap: 13px;
  }

  .footer-links a {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .site-footer p {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

  .site-header nav a {
    font-size: 8px;
    padding: 6px 5px;
  }

  .logo img {
    width: 110px;
  }

  .hero-slider {
    min-height: 260px;
  }

  .product-info {
    font-size: 8px;
  }

  .footer-links {
    gap: 10px;
  }
}

/* =========================================
   ACCESSIBILITY / MOTION
========================================= */

@media (hover: none) {
  .product-image .product-hover {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .hero-slide,
  .reveal,
  .product-image img {
    transition: none;
  }
}
