/* ==========================================================
   Batik Santoso — stylesheet
   Palette sampled directly from the supplied design:
   navy background      #0D1228
   gold accent          #FDD13C
   ========================================================== */

:root{
  --navy: #0d1228;
  --navy-deep: #090c1c;
  --gold: #fdd13c;
  --gold-soft: #e8c96a;
  --cream: #f5efe1;
  --white: #ffffff;
  --max-width: 1440px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul{ list-style:none; margin:0; padding:0; }

/* ---------------- Logo Gambar (Shared: Navbar & Footer) ---------------- */

.logo, .footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.logo:hover, .footer-logo:hover {
  opacity: 0.8;
}

/* Ukuran logo Navbar */
.logo img {
  height: 74px;
  width: auto;
}

/* Ukuran logo Footer */
.footer-logo img {
  height: 150px;
  width: auto;
  margin-bottom: 1rem;
}

/* ================= HERO ================= */

.hero{
  position: relative;
  width: 100%;
}

.navbar{
  position:absolute;
  top:0; left:0; right:0;
  z-index: 10;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding: 2.4rem 4.5vw 0;
}

.nav-links{ display:flex; gap: 2.6rem; padding-top: .45rem; }

.nav-links a{
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: .5px;
  transition: opacity .2s ease;
}

.nav-links a:hover{ opacity: .72; }

.hero-media{
  position:relative;
  width:100%;
  height: 705px; 
  overflow:hidden;
}

.hero-img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center 15%;
}

.hero-gradient{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(9,12,28,.55) 0%, rgba(9,12,28,0) 22%, rgba(9,12,28,0) 55%, rgba(9,12,28,.55) 78%, var(--navy) 100%),
    linear-gradient(90deg, rgba(9,12,28,.25) 0%, rgba(9,12,28,0) 30%);
}

.hero-title{
  position:absolute;
  left: 4.5vw;
  bottom: 6%;
  margin:0;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

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

.collection{
  position:relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.2rem 4.5vw 1rem;
  background-color: var(--navy);
  overflow: hidden; 
}

.collection-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}

.collection-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, var(--navy) 0%, rgba(13,18,40,.75) 10%, rgba(13,18,40,.75) 90%, var(--navy) 100%);
  z-index:0;
}

.tile-row,
.product-grid{
  position:relative;
  z-index:1;
}

.tile-row{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}

.tile{
  margin:0;
  border-radius: 22px;
  overflow:hidden;
  aspect-ratio: 1/1;
  background: #6b5c3f;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.tile img{
  width:100%;
  height:100%;
  object-fit: cover;
}

.tile-lg{ grid-column: span 1; }

/* ================= PRODUCT GRID ================= */

.product-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 2.6rem;
}

.product{
  margin:0;
  border-radius: 22px;
  overflow:hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  background:#d9d5ca;
}

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

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

footer{
  position:relative;
  background-color: var(--navy);
  padding: 5rem 4.5vw 3rem;
  text-align:center;
  overflow: hidden; 
}

.footer-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}

.footer-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, var(--navy) 0%, rgba(13,18,40,.7) 20%, rgba(13,18,40,.85) 100%);
  z-index:0;
}

.footer-inner{
  position:relative;
  z-index:1;
  max-width: 780px;
  margin: 0 auto;
}

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: #fdd13c;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: 0.2px;
  max-width: 950px;
  margin: 0 auto 3.5rem;
  opacity: 0.9;
}

.social-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 1.4rem;
  margin-bottom: 2.6rem;
}

.social-row a{
  display:inline-flex;
  width: 68px;
  height: 68px;
  transition: transform .2s ease;
}

.social-row img{
  width:100%;
  height:100%;
  object-fit:contain;
}

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

.copyright{
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  margin:0;
  letter-spacing: 0.5px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px){
  .navbar{ padding: 1.6rem 5vw 0; flex-direction:column; gap: 1rem; }
  .nav-links{ gap: 1.4rem; padding-top: 0; }
  
  /* Penyesuaian ukuran logo khusus HP */
  .logo img { height: 50px; }
  .footer-logo img { height: 95px; }

  .hero-media{ height: 550px; } 
  .hero-title{ font-size: clamp(1.5rem, 6vw, 2.2rem); bottom: 5%; letter-spacing: -0.3px; }

  .tile-row{ grid-template-columns: 1fr; }
  .product-grid{ grid-template-columns: repeat(2, 1fr); }

  .footer-tagline{ font-size: 1.1rem; line-height: 1.3; }
  .social-row a{ width: 56px; height: 56px; }
}

@media (max-width: 480px){
  .product-grid{ grid-template-columns: 1fr 1fr; gap: .9rem; }
  .tile-row{ gap: .9rem; }
  .collection{ padding: 2.2rem 5vw 1rem; }
}