/* ════════════════════════════════════════
   CV. Fadiera Indonesia — style.css
   ════════════════════════════════════════ */

:root {
  --gold:  #c49060;
  --gold2: #d4a070;
  --dark:  #2c1a0e;
  --bark:  #1a0e06;
  --cream: #f7f2eb;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ══════════ NAVBAR ══════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s ease, box-shadow .4s ease;
}
#navbar.scrolled {
  background: rgba(26, 14, 6, .93);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  color: #fff; font-size: .95rem; line-height: 1;
}
.nav-sub {
  font-size: .58rem; letter-spacing: .22em;
  color: rgba(196,144,96,.7); text-transform: uppercase; margin-top: 1px;
}
.nav-link {
  color: rgba(255,255,255,.75);
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; position: relative; transition: color .3s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .3s;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

/* ══════════ MOBILE MENU ══════════ */
#mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(26,14,6,.97);
  flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem; color: rgba(255,255,255,.7); text-decoration: none;
  transition: color .3s;
}
#mobile-menu a:hover { color: var(--gold); }
.mob-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: #fff; font-size: 1.8rem; background: none; border: none; cursor: pointer;
}

/* ══════════ HERO ══════════ */
#hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
  filter: brightness(.45) saturate(.8);
}
#hero:hover .hero-bg-img { transform: scale(1.08); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,14,6,.4) 0%, rgba(26,14,6,.65) 60%, rgba(26,14,6,.9) 100%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: .1;
  background: repeating-linear-gradient(-20deg, transparent, transparent 3px,
    rgba(196,144,96,.2) 3px, rgba(196,144,96,.2) 4px);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; padding: 0 1.5rem;
}
.hero-logo-wrap {
  width: 90px; height: 90px;
  border: 1px solid rgba(196,144,96,.45);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem;
  animation: rotateRing 25s linear infinite;
}
@keyframes rotateRing { to { transform: rotate(360deg); } }
.hero-logo-img {
  width: 50px; height: 50px; object-fit: contain;
  filter: brightness(0) invert(1);
  transform: rotate(0deg); /* counter-rotate so image stays upright */
  animation: counterRotate 25s linear infinite;
}
@keyframes counterRotate { to { transform: rotate(-360deg); } }
.hero-eyebrow {
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 9vw, 7rem); font-weight: 300;
  color: #fff; line-height: 1; margin-bottom: .4rem;
}
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.9rem);
  color: rgba(196,144,96,.9); margin-bottom: 1rem;
}
.hero-tagline {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 2.8rem;
}
.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.scroll-indicator span { font-size: .6rem; letter-spacing: .22em; color: rgba(255,255,255,.35); text-transform: uppercase; }
.scroll-line { width: 1px; height: 52px; background: linear-gradient(to bottom, var(--gold), transparent); }
@keyframes scrollBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(9px)} }

/* ══════════ BUTTONS ══════════ */
.btn-primary {
  display: inline-block; padding: .9rem 2.8rem;
  border: 1px solid var(--gold); color: var(--gold);
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; transition: all .3s;
}
.btn-primary:hover { background: var(--gold); color: var(--dark); }

/* ══════════ COMMON SECTION ══════════ */
section { scroll-margin-top: 70px; }
.section-label {
  font-size: .7rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 400;
  line-height: 1.1; color: var(--dark);
}
.divider { width: 60px; height: 1px; background: var(--gold); margin: 1.5rem 0; }
.divider-center { margin: 1.5rem auto; }
.body-text { color: #555; line-height: 1.85; font-size: .93rem; }

/* ══════════ ABOUT ══════════ */
.stat-card {
  border: 1px solid rgba(196,144,96,.22); padding: 1.8rem 1.2rem;
  text-align: center; background: #fff; transition: all .3s;
}
.stat-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(196,144,96,.1); }
.stat-number { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 300; color: var(--gold); line-height: 1; }
.stat-label { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: #999; margin-top: .4rem; }

.about-img-wrap { border: 1px solid rgba(196,144,96,.2); overflow: hidden; }
.about-img-wrap img { width: 100%; display: block; }

.vm-strip {
  display: grid; grid-template-columns: 1fr 1px 1fr; gap: 3rem;
  border: 1px solid rgba(196,144,96,.2); padding: 2.5rem; background: #fff;
  align-items: start;
}
@media(max-width:768px) { .vm-strip { grid-template-columns: 1fr; } .vm-divider { display: none; } }
.vm-divider { background: rgba(196,144,96,.2); }
.vm-label { font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.vm-text { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-style: italic; color: var(--dark); line-height: 1.6; }
.vm-list { list-style: none; padding: 0; }
.vm-list li { font-size: .88rem; color: #555; padding: .4rem 0; padding-left: 1.2rem; position: relative; }
.vm-list li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }

/* ══════════ PRODUCTS ══════════ */
.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;      /* both columns same height */
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(196,144,96,.12);
}
.product-row:last-child { border-bottom: none; padding-bottom: 0; }
.product-row-rev { direction: rtl; }
.product-row-rev > * { direction: ltr; }
@media(max-width:768px) { .product-row, .product-row-rev { grid-template-columns: 1fr; direction: ltr; } }
.product-images {
  display: flex;
  gap: 16px;
  width: 100%;
  align-items: stretch;
}
.prod-img-main,
.prod-img-sub {
  border-radius: 20px;
  overflow: hidden;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(196, 144, 96, 0.18);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  cursor: pointer;
  background: #111;
}

/* Bigger main image */
.prod-img-main {
  flex: 2;
  aspect-ratio: 16 / 10;
}

/* Smaller side images */
.prod-img-sub {
  flex: 1;
  aspect-ratio: 1 / 1;
}

/* Hover effects */
.prod-img-main:hover,
.prod-img-sub:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 12px 32px rgba(0,0,0,.18),
    0 2px 8px rgba(196,144,96,.18);
  border-color: rgba(196,144,96,.45);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .prod-images {
    flex-direction: column;
  }
  .prod-img-main,
  .prod-img-sub {
    width: 100%;
  }
  .prod-img-main {
    aspect-ratio: 16 / 9;
  }
  .prod-img-sub {
    aspect-ratio: 16 / 9;
  }
}
.product-images:hover .prod-img-main,
.product-images:hover .prod-img-sub { transform: scale(1.025); }
.product-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.prod-badge {
  font-size: .65rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(196,144,96,.3); display: inline-block;
  padding: .25rem .9rem; margin-bottom: 1rem;
}
.prod-title {
  font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; color: #fff;
  margin-bottom: .8rem; line-height: 1.1;
}
.prod-desc { color: rgba(255,255,255,.55); font-size: .9rem; line-height: 1.75; margin-bottom: 1.4rem; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: .5rem 0; font-size: .82rem; border-bottom: 1px solid rgba(196,144,96,.1); }
.spec-table td:first-child { color: rgba(255,255,255,.38); }
.spec-table td:last-child { color: var(--gold); text-align: right; font-weight: 500; }

/* ══════════ WHY US ══════════ */
.feature-item { display: flex; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(196,144,96,.12); }
.feature-num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: rgba(196,144,96,.2); line-height: 1; flex-shrink: 0; width: 3rem; }
.feature-h { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--dark); margin-bottom: .35rem; }
.feature-p { font-size: .87rem; color: #666; line-height: 1.75; }

.collab-box { background: var(--dark); padding: 2rem; }
.collab-label { font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.collab-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: #fff; margin-bottom: .6rem; }
.collab-desc { font-size: .85rem; color: rgba(255,255,255,.45); line-height: 1.7; }

/* ══════════ GALLERY ══════════ */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.5rem; }
.gf-btn {
  padding: .4rem 1.2rem; border: 1px solid rgba(196,144,96,.3); background: transparent;
  color: #888; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  cursor: pointer; transition: all .25s; font-family: 'DM Sans', sans-serif;
}
.gf-btn:hover { border-color: var(--gold); color: var(--gold); }
.gf-btn.active { background: var(--gold); border-color: var(--gold); color: var(--dark); }

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
@media(max-width:900px) { .gallery-masonry { grid-template-columns: repeat(2,1fr); } }
@media(max-width:560px) { .gallery-masonry { grid-template-columns: 1fr; } }

.g-item {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3; background: #111;
  transition: opacity .3s, transform .3s;
}
.g-item.hidden { display: none; }
.g-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s ease;
}
.g-item:hover img { transform: scale(1.07); }
.g-overlay {
  position: absolute; inset: 0;
  background: rgba(44,26,14,0);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem;
  transition: background .3s;
}
.g-item:hover .g-overlay { background: rgba(44,26,14,.45); }
.g-zoom { color: #fff; font-size: 1.8rem; opacity: 0; transition: opacity .3s; }
.g-cap { color: rgba(255,255,255,.9); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; opacity: 0; transition: opacity .3s; }
.g-item:hover .g-zoom, .g-item:hover .g-cap { opacity: 1; }
.g-vcap {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(26,14,6,.75); padding: .5rem 1rem;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}

/* ══════════ LEGALITY ══════════ */
.doc-card {
  border: 1px solid rgba(196,144,96,.18); padding: 2rem;
  background: rgba(255,255,255,.03); transition: all .3s;
}
.doc-card:hover { border-color: var(--gold); background: rgba(196,144,96,.06); }
.doc-badge {
  display: inline-block; padding: .28rem .9rem;
  border: 1px solid var(--gold); color: var(--gold);
  font-size: .65rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 1rem;
}
.doc-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: #fff; margin-bottom: .55rem; }
.doc-desc { font-size: .84rem; color: rgba(255,255,255,.48); line-height: 1.7; margin-bottom: .8rem; }
.doc-meta { font-size: .72rem; color: rgba(255,255,255,.25); letter-spacing: .1em; }

.legal-doc-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
}
@media(max-width:900px) { .legal-doc-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:560px) { .legal-doc-grid { grid-template-columns: repeat(2,1fr); } }

.legal-doc-card {
  cursor: pointer; overflow: hidden; border: 1px solid rgba(196,144,96,.2);
  background: rgba(255,255,255,.04); transition: all .3s;
}
.legal-doc-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.legal-doc-card img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; object-position: top; transition: transform .5s; }
.legal-doc-card:hover img { transform: scale(1.04); }
.legal-doc-label { padding: .6rem .8rem; font-size: .68rem; color: rgba(255,255,255,.45); letter-spacing: .08em; line-height: 1.4; text-align: center; }

/* ══════════ CONTACT ══════════ */
.contact-item { display: flex; gap: 1.2rem; align-items: flex-start; margin-bottom: 1.8rem; }
.contact-icon {
  width: 42px; height: 42px; border: 1px solid rgba(196,144,96,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; color: var(--gold);
}
.contact-label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #aaa; margin-bottom: .3rem; }
.contact-val { font-size: .92rem; color: var(--dark); line-height: 1.6; }
.contact-link { font-size: .92rem; color: var(--dark); text-decoration: none; transition: color .3s; }
.contact-link:hover { color: var(--gold); }

.inquiry-box { background: var(--dark); padding: 2.5rem; }
.inq-label { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; display: block; }
.inq-field { margin-bottom: 1.2rem; }
.inq-field label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.38); display: block; margin-bottom: .5rem; }
.inq-field input,
.inq-field select,
.inq-field textarea {
  width: 100%; background: rgba(255,255,255,.06);
  border: 1px solid rgba(196,144,96,.2); color: #fff;
  padding: .82rem 1rem; font-size: .9rem; outline: none;
  font-family: 'DM Sans', sans-serif; transition: border-color .3s;
  appearance: none;
}
.inq-field input:focus,
.inq-field select:focus,
.inq-field textarea:focus { border-color: rgba(196,144,96,.6); }
.inq-field textarea { resize: vertical; }
.inq-field select option { background: #2c1a0e; color: #fff; }
.inq-btn {
  width: 100%; background: var(--gold); color: var(--dark);
  border: none; padding: 1rem; font-size: .8rem; letter-spacing: .2em;
  text-transform: uppercase; cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-weight: 500; transition: background .3s; margin-bottom: .8rem;
}
.inq-btn:hover { background: var(--gold2); }
.inq-note { font-size: .75rem; color: rgba(255,255,255,.25); text-align: center; }
.inq-note a { color: var(--gold); text-decoration: none; }

/* ══════════ FOOTER ══════════ */
footer { background: var(--bark); padding: 3rem 0 2rem; }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; color: var(--gold); line-height: 1; margin-bottom: .2rem; }
.footer-sub { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(196,144,96,.45); margin-bottom: .8rem; }
.footer-desc { font-size: .82rem; color: rgba(255,255,255,.3); line-height: 1.7; }
.footer-col-title { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { font-size: .84rem; color: rgba(255,255,255,.35); text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: var(--gold); }
.footer-email { display: block; margin-top: .8rem; color: var(--gold); font-size: .85rem; text-decoration: none; }
.footer-email:hover { color: var(--gold2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07); margin-top: 2rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  font-size: .76rem; color: rgba(255,255,255,.25);
}

/* ══════════ LIGHTBOX ══════════ */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.93); align-items: center; justify-content: center;
  cursor: pointer;
}
#lightbox.open { display: flex; }
#lightbox-inner { position: relative; max-width: 92vw; max-height: 92vh; cursor: default; }
#lightbox-img { max-width: 100%; max-height: 85vh; object-fit: contain; display: block; }
#lightbox-cap { color: rgba(255,255,255,.5); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: .8rem 0 0; }
#lightbox-close {
  position: absolute; top: -2.5rem; right: 0;
  color: rgba(255,255,255,.6); font-size: 1.5rem;
  background: none; border: none; cursor: pointer;
  transition: color .3s;
}
#lightbox-close:hover { color: var(--gold); }

/* ══════════ ANIMATIONS ══════════ */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: .1s; }
.stagger-2 { transition-delay: .2s; }
.stagger-3 { transition-delay: .3s; }
.stagger-4 { transition-delay: .4s; }

/* ── Title override for longer brand name ── */
.nav-brand { font-size: 1rem; letter-spacing: .04em; }
.hero-title { font-size: clamp(2.8rem, 7vw, 6rem); }