/* ========================================
   RM70 — Rumah Tujuh Puluh
   Premium Company Profile Stylesheet
   ======================================== */

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0a;
  --bg-alt: #0f0f0f;
  --bg-card: #141414;
  --gold: #C9A84C;
  --gold-light: #D4B95E;
  --gold-dark: #A8893A;
  --white: #F5F0E8;
  --gray: #8A8578;
  --gray-light: #B0A99E;
  --border: rgba(201,168,76,0.15);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

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

a { color: var(--gold); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--gold-light); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 4px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.35s var(--ease); cursor: pointer; border: none;
  text-decoration: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0a0a;
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #0a0a0a; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.25); }
.btn-outline {
  background: transparent; color: var(--gold);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 12px; }

/* --- NAVBAR --- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 18px 0; transition: all 0.4s var(--ease);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(10,10,10,0.92); backdrop-filter: blur(20px);
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { height: 36px; width: auto; }
.nav-logo-text {
  font-family: var(--font-heading); font-size: 22px; font-weight: 600;
  color: var(--gold); letter-spacing: 0.05em;
}
.nav-links {
  display: flex; list-style: none; gap: 32px;
}
.nav-links a {
  color: var(--gray-light); font-size: 13px; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.3s var(--ease); text-decoration: none;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--gold);
  margin: 5px 0; transition: all 0.3s var(--ease);
}

/* --- HERO --- */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.7) 50%, rgba(10,10,10,0.95) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 24px; max-width: 800px; }
.hero-logo-wrap { margin-bottom: 32px; }
.hero-logo {
  width: 120px; height: 120px; margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(201,168,76,0.3));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-title {
  font-family: var(--font-heading); font-size: clamp(40px, 6vw, 72px);
  font-weight: 600; color: var(--white); letter-spacing: 0.04em;
  line-height: 1.1; margin-bottom: 16px;
}
.hero-divider {
  width: 60px; height: 1px; margin: 24px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px); color: var(--gray-light);
  font-weight: 300; line-height: 1.8; margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2;
}
.hero-scroll span { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray); }
.hero-scroll-line { width: 1px; height: 40px; background: var(--gold); opacity: 0.4; animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%, 100% { opacity: 0.2; transform: scaleY(0.5); } 50% { opacity: 0.6; transform: scaleY(1); } }

/* --- SECTIONS --- */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-heading); font-size: clamp(30px, 4vw, 48px);
  font-weight: 600; color: var(--white); line-height: 1.2;
}
.section-desc { color: var(--gray-light); font-size: 16px; max-width: 560px; margin: 16px auto 0; }

/* --- ABOUT --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-text p { color: var(--gray-light); margin-bottom: 20px; font-size: 15px; }
.about-note { font-size: 13px; color: var(--gray); font-style: italic; border-left: 2px solid var(--border); padding-left: 16px; }
.about-values { display: flex; flex-direction: column; gap: 28px; }
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px; color: var(--gold);
}
.value-item h4 { font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.value-item p { font-size: 14px; color: var(--gray); }

/* --- SERVICES --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 36px 28px;
  transition: all 0.4s var(--ease);
}
.service-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.service-number {
  font-family: var(--font-heading); font-size: 36px; font-weight: 700;
  color: var(--gold); opacity: 0.3; margin-bottom: 16px; line-height: 1;
}
.service-card h3 {
  font-family: var(--font-heading); font-size: 22px; font-weight: 600;
  color: var(--white); margin-bottom: 12px;
}
.service-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* --- PROCESS --- */
.process-grid { max-width: 700px; margin: 0 auto; position: relative; }
.process-step { display: flex; gap: 32px; position: relative; padding-bottom: 48px; }
.process-step:last-child { padding-bottom: 0; }
.process-step:last-child .process-line { display: none; }
.process-dot {
  flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--gold); background: var(--bg);
  position: relative; top: 6px; z-index: 1;
}
.process-line {
  position: absolute; left: 7px; top: 22px; bottom: 0;
  width: 1px; background: var(--border);
}
.process-label {
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px; display: block;
}
.process-content h3 {
  font-family: var(--font-heading); font-size: 26px; font-weight: 600;
  color: var(--white); margin-bottom: 12px;
}
.process-content p { font-size: 15px; color: var(--gray-light); }

/* --- FAQ --- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 16px; font-weight: 400;
  color: var(--white); text-align: left; transition: color 0.3s var(--ease);
}
.faq-question:hover { color: var(--gold); }
.faq-icon { color: var(--gold); transition: transform 0.3s var(--ease); flex-shrink: 0; margin-left: 16px; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 24px; }
.faq-answer p { font-size: 14px; color: var(--gray-light); line-height: 1.8; }

/* --- CONTACT --- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 40px 28px; text-align: center;
  transition: all 0.4s var(--ease);
}
.contact-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.contact-icon { color: var(--gold); margin-bottom: 20px; }
.contact-card h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--gray); margin-bottom: 20px; }
.contact-card .btn { width: 100%; }
.contact-note { font-size: 13px; color: var(--gray); font-style: italic; }

/* --- FOOTER --- */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--border); }
.footer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { height: 40px; width: auto; }
.footer-brand-name { font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--gold); }
.footer-tagline { display: none; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--gray); letter-spacing: 0.04em; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 13px; color: var(--gray); }

/* --- REVEAL ANIMATION --- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; width: 100%;
    background: rgba(10,10,10,0.97); backdrop-filter: blur(20px);
    padding: 24px; gap: 20px; border-bottom: 1px solid var(--border);
  }
  .nav-cta.active {
    display: flex; position: absolute; top: calc(100% + 200px);
    left: 0; width: 100%; padding: 0 24px 24px;
    background: rgba(10,10,10,0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
  .services-grid { grid-template-columns: 1fr; }
  .hero-logo { width: 90px; height: 90px; }
  .section { padding: 72px 0; }
  .footer-top { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .footer-tagline { display: block; font-size: 13px; color: var(--gray); margin-top: 4px; }
  .footer-brand { flex-direction: column; gap: 8px; }
}
