/* PT Ridho Jaya Perkasa - Corporate Website Styles - Improved */
:root {
  --navy: #0A2540;
  --navy-dark: #061A2E;
  --blue: #1E4D8C;
  --accent: #C0392B;
  --accent-hover: #A93226;
  --gray-light: #F4F6F8;
  --gray: #E8ECEF;
  --text: #1C2833;
  --text-light: #5D6D7E;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
  --radius: 8px;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--text); line-height: 1.65; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.logo img { height: 48px; width: auto; }
.nav-menu { display: flex; list-style: none; gap: 26px; }
.nav-menu a { color: var(--navy); font-weight: 500; font-size: 0.95rem; position: relative; padding: 6px 0; }
.nav-menu a:hover, .nav-menu a.active { color: var(--accent); }
.nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

/* Hero */
.hero { position: relative; height: 72vh; min-height: 520px; background: linear-gradient(rgba(10,37,64,0.68), rgba(10,37,64,0.48)), url('../images/hero.jpg') center/cover no-repeat; display: flex; align-items: center; color: var(--white); }
.hero-content { max-width: 720px; }
.hero h1 { font-size: 2.75rem; font-weight: 700; line-height: 1.18; margin-bottom: 18px; }
.hero p { font-size: 1.12rem; margin-bottom: 30px; opacity: 0.95; }
.btn { display: inline-block; padding: 14px 30px; background: var(--accent); color: var(--white); border-radius: var(--radius); font-weight: 600; border: none; cursor: pointer; transition: var(--transition); font-size: 1rem; }
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--white); margin-left: 14px; }
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* Sections */
section { padding: 84px 0; }
.section-title { text-align: center; margin-bottom: 52px; }
.section-title h2 { font-size: 2.15rem; color: var(--navy); margin-bottom: 14px; }
.section-title p { color: var(--text-light); max-width: 640px; margin: 0 auto; }
.bg-light { background: var(--gray-light); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); }
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(10, 37, 64, 0.13); }
.card-img { height: 190px; background-size: cover; background-position: center; }
.card-body { padding: 26px; }
.card h3 { color: var(--navy); margin-bottom: 12px; font-size: 1.22rem; }
.card p { color: var(--text-light); font-size: 0.96rem; }

/* Advantages */
.advantages { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; text-align: center; }
.advantage-item { padding: 24px; }
.advantage-item i { font-size: 2.4rem; color: var(--blue); margin-bottom: 18px; display: block; }
.advantage-item h3 { color: var(--navy); margin-bottom: 10px; }

/* Footer */
footer { background: var(--navy); color: var(--white); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-bottom: 42px; }
.footer-col h4 { margin-bottom: 18px; font-size: 1.12rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #BDC3C7; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; text-align: center; font-size: 0.9rem; color: #95A5A6; }

/* Form */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 500; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 13px 15px; border: 1px solid #D5D8DC; border-radius: var(--radius); font-family: inherit; font-size: 1rem; transition: border 0.2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 77, 140, 0.12); }
.form-group textarea { min-height: 130px; resize: vertical; }
.error { color: var(--accent); font-size: 0.85rem; margin-top: 5px; display: none; }
.success-message { background: #D5F5E3; color: #1E8449; padding: 18px; border-radius: var(--radius); margin-top: 18px; display: none; }

/* Back to top & WhatsApp */
.back-to-top { position: fixed; bottom: 30px; right: 30px; background: var(--accent); color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; border: none; cursor: pointer; }
.back-to-top.show { opacity: 1; visibility: visible; }
.whatsapp-float { position: fixed; bottom: 92px; right: 30px; background: #25D366; color: white; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4); z-index: 998; transition: var(--transition); }
.whatsapp-float:hover { transform: scale(1.08); color: white; }

/* Filter */
.filter-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn { padding: 9px 20px; background: var(--gray); border: none; border-radius: 22px; cursor: pointer; font-weight: 500; transition: var(--transition); }
.filter-btn.active, .filter-btn:hover { background: var(--navy); color: white; }
.product-item.hidden { display: none; }

/* FAQ */
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; padding: 18px 22px; text-align: left; font-weight: 600; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1.02rem; }
.faq-question:hover { background: var(--gray-light); }
.faq-answer { padding: 0 22px 18px; color: var(--text-light); display: none; }
.faq-item.active .faq-answer { display: block; }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 22px; gap: 14px; box-shadow: var(--shadow); display: none; }
  .nav-menu.active { display: flex; }
  .hero h1 { font-size: 2.05rem; }
  .hero { height: auto; padding: 90px 0; }
  .btn-outline { margin-left: 0; margin-top: 14px; display: block; text-align: center; }
  section { padding: 64px 0; }
  .about-grid, .vm-grid, .contact-grid { grid-template-columns: 1fr !important; gap: 28px; }
}
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
.fade-in { opacity: 0; transform: translateY(22px); animation: fadeInUp 0.65s ease forwards; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
