/* =============================================
   RemowCly — Main Stylesheet
   Tema: Monokrom Hitam & Putih, Minimalis Elegan
   ============================================= */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:    #0a0a0a;
  --white:    #ffffff;
  --gray-100: #f7f7f7;
  --gray-200: #ebebeb;
  --gray-400: #999999;
  --gray-600: #555555;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --radius: 2px;
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* === CONTAINER === */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === TYPOGRAPHY === */
.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.section-label.light { color: var(--gray-400); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.section-title.light { color: var(--white); }

.body-text {
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.8;
  max-width: 480px;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
}

.btn-black {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-black:hover {
  background: transparent;
  color: var(--black);
}

.btn-white {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--gray-200);
}
.navbar.scrolled .nav-logo,
.navbar.scrolled .nav-link { color: var(--black); }

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--white);
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--white); }
.navbar.scrolled .nav-link:hover { color: var(--black); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}
.navbar.scrolled .nav-toggle span { background: var(--black); }

/* === HERO === */
.hero {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.03) 100%);
}

/* Hero dengan gambar: layout 2 kolom */
.hero.has-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
}
.hero.has-image .hero-content {
  padding: 140px 60px 80px;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero.has-image .hero-deco { display: none; }

.hero-image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.3) 0%, transparent 40%);
  pointer-events: none;
}

.hero-deco {
  position: absolute;
  top: 50%; right: 8%;
  transform: translateY(-50%);
  width: clamp(180px, 25vw, 320px);
  height: clamp(180px, 25vw, 320px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.hero-deco::before {
  content: '';
  position: absolute;
  top: 20px; left: 20px; right: 20px; bottom: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
}

.hero-sub {
  font-size: 15px;
  color: var(--gray-400);
  margin-bottom: 48px;
  font-weight: 300;
}

/* === SECTIONS === */
.section {
  padding: 100px 0;
}
.section-dark {
  background: var(--black);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-title { color: var(--white); }

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  display: flex;
  justify-content: center;
}

/* About box tanpa foto */
.about-box {
  width: 340px;
  height: 420px;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.about-box::before {
  content: '';
  position: absolute;
  top: 16px; left: 16px; right: -16px; bottom: -16px;
  border: 1px solid var(--gray-200);
  z-index: -1;
}
.about-box span {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 8px;
  color: var(--gray-200);
}

/* About box dengan foto */
.about-box.has-photo {
  border: none;
  overflow: visible;
  background: transparent;
}
.about-box.has-photo::before {
  border-color: var(--gray-200);
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}
.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
}
.stat span {
  font-size: 12px;
  color: var(--gray-400);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* === PRODUCT GRID === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.product-card {
  background: var(--black);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.product-card:hover .product-img-placeholder,
.product-card:hover .product-img img {
  transform: scale(1.03);
}

.product-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #111;
  position: relative;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #161616, #0e0e0e);
  transition: transform 0.5s ease;
}
.product-img-placeholder span {
  font-family: var(--font-serif);
  font-size: 40px;
  letter-spacing: 6px;
  color: rgba(255,255,255,0.08);
}

.badge-sold {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--white);
  color: var(--black);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
}

.product-info {
  padding: 20px;
  border-top: 1px solid #1a1a1a;
}
.product-cat {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.product-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 8px;
}
.product-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
}
.product-size {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.empty-state {
  color: var(--gray-400);
  grid-column: 1/-1;
  text-align: center;
  padding: 60px;
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--gray-600);
}
.contact-icon {
  width: 32px;
  font-size: 16px;
  color: var(--black);
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--black);
  outline: none;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--black);
}
.form-group textarea { resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }

/* === CONTACT MAP === */
.contact-map-wrap {
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.contact-map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}
.map-placeholder {
  width: 100%;
  min-height: 420px;
  background: var(--gray-100);
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gray-400);
  font-size: 13px;
  line-height: 1.7;
}

/* === WHATSAPP BUTTON === */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 28px;
  background: var(--black);
  color: var(--white);
  border: 1.5px solid var(--black);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}
.btn-wa:hover {
  background: transparent;
  color: var(--black);
}

/* === CONTACT (override old form styles) === */
.contact-form { display: none; }

.alert-success {
  padding: 14px 18px;
  background: #f0fff4;
  border: 1px solid #b2dfca;
  color: #1a6640;
  font-size: 14px;
  border-radius: var(--radius);
  margin-bottom: 4px;
}
.alert-error {
  padding: 14px 18px;
  background: #fff5f5;
  border: 1px solid #ffd0d0;
  color: #c53030;
  font-size: 14px;
  border-radius: var(--radius);
  margin-bottom: 4px;
}

/* === FOOTER === */
.footer {
  background: var(--black);
  text-align: center;
  padding: 60px 24px 40px;
  border-top: 1px solid #1a1a1a;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: 6px;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-tag {
  font-size: 12px;
  color: var(--gray-400);
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.footer-copy {
  font-size: 12px;
  color: #333;
}

/* === ADMIN SHARED === */
.admin-body {
  font-family: var(--font-sans);
  background: var(--gray-100);
  min-height: 100vh;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
  }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-link { color: var(--black); font-size: 13px; }
  .navbar.scrolled .nav-logo { color: var(--black); }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { display: none; }
  .contact-map-wrap { min-height: 280px; }
  .contact-map-wrap iframe { min-height: 280px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-title { font-size: clamp(3rem, 10vw, 5rem); }
  .hero-deco { display: none; }

  /* Hero dengan gambar — mobile: stack vertikal */
  .hero.has-image {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .hero.has-image .hero-content {
    padding: 120px 24px 60px;
    order: 2;
  }
  .hero-image-wrap {
    order: 1;
    min-height: 55vw;
    max-height: 380px;
  }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 20px; flex-wrap: wrap; }
}
