/* =============================================
   RNP FORKLIFT - Main Stylesheet
   Theme: Blue & White Premium
============================================= */

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

:root {
  --blue-dark:   #0a2463;
  --blue-main:   #1565c0;
  --blue-light:  #1e88e5;
  --blue-pale:   #e3f2fd;
  --blue-accent: #42a5f5;
  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-500:    #64748b;
  --gray-700:    #334155;
  --gray-900:    #0f172a;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(21,101,192,.15);
  --shadow-lg:   0 8px 32px rgba(21,101,192,.2);
  --radius:      12px;
  --transition:  .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--gray-900); background: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }

/* --- Headings --- */
.section-header { text-align: center; margin-bottom: 52px; }
.section-label { display: inline-block; background: var(--blue-pale); color: var(--blue-main); font-size: .78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 6px 18px; border-radius: 50px; margin-bottom: 14px; }
.section-title { font-family: 'Poppins', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--blue-dark); line-height: 1.2; margin-bottom: 14px; }
.section-sub { color: var(--gray-500); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }
.section-divider { width: 60px; height: 4px; background: linear-gradient(90deg, var(--blue-main), var(--blue-accent)); border-radius: 4px; margin: 16px auto 0; }

/* =============================================
   TOPBAR
============================================= */
.topbar { background: var(--blue-dark); color: rgba(255,255,255,.85); font-size: .8rem; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.85); transition: color var(--transition); }
.topbar a:hover { color: var(--white); }
.topbar i { margin-right: 5px; }
.wa-topbar { background: #25d366; color: white !important; padding: 4px 12px; border-radius: 50px; font-weight: 600; }
.wa-topbar:hover { background: #1ebe5a !important; }

/* =============================================
   NAVBAR
============================================= */
.navbar { background: var(--white); position: sticky; top: 0; z-index: 999; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition); }
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 52px; height: 52px; object-fit: contain; }
.brand-name { display: block; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--blue-dark); line-height: 1; }
.brand-tagline { display: block; font-size: .7rem; color: var(--gray-500); }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a { padding: 8px 14px; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--gray-700); transition: all var(--transition); }
.nav-menu a:hover, .nav-menu a.active { color: var(--blue-main); background: var(--blue-pale); }
.btn-nav { background: var(--blue-main) !important; color: var(--white) !important; padding: 9px 20px !important; font-weight: 600 !important; }
.btn-nav:hover { background: var(--blue-dark) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 26px; height: 2.5px; background: var(--blue-dark); border-radius: 4px; transition: all var(--transition); display: block; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* =============================================
   HERO
============================================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-main) 50%, var(--blue-light) 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: url('../images/hero.jpg') center/cover no-repeat; opacity: .18; }
.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-shapes span { position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); }
.hero-shapes span:nth-child(1) { width: 500px; height: 500px; top: -150px; right: -100px; }
.hero-shapes span:nth-child(2) { width: 300px; height: 300px; bottom: -50px; left: -80px; }
.hero-shapes span:nth-child(3) { width: 200px; height: 200px; top: 30%; right: 20%; }

.hero-content { position: relative; z-index: 2; max-width: 680px; color: var(--white); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.25); color: white; font-size: .82rem; font-weight: 600; padding: 8px 18px; border-radius: 50px; margin-bottom: 24px; animation: fadeInDown .8s ease; }
.hero h1 { font-family: 'Poppins', sans-serif; font-size: clamp(2.2rem,5vw,3.8rem); font-weight: 900; line-height: 1.15; margin-bottom: 20px; animation: fadeInUp .8s .2s both; }
.hero h1 span { color: var(--blue-accent); }
.hero p { font-size: 1.1rem; opacity: .9; margin-bottom: 36px; line-height: 1.7; animation: fadeInUp .8s .4s both; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp .8s .6s both; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--blue-dark); padding: 14px 28px; border-radius: var(--radius); font-weight: 700; font-size: .95rem; transition: all var(--transition); box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--white); padding: 13px 28px; border-radius: var(--radius); font-weight: 700; font-size: .95rem; border: 2px solid rgba(255,255,255,.6); transition: all var(--transition); }
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: white; }

.hero-stats { position: relative; z-index: 2; display: flex; gap: 40px; margin-top: 60px; animation: fadeInUp .8s .8s both; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 800; color: white; }
.hero-stat span { font-size: .82rem; color: rgba(255,255,255,.75); }

/* =============================================
   SERVICES CARDS (Home)
============================================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.service-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 32px 28px; transition: all var(--transition); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blue-main), var(--blue-accent)); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-pale); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 64px; height: 64px; background: var(--blue-pale); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.6rem; color: var(--blue-main); transition: all var(--transition); }
.service-card:hover .service-icon { background: var(--blue-main); color: white; transform: scale(1.1); }
.service-card h3 { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--blue-dark); }
.service-card p { color: var(--gray-500); font-size: .92rem; line-height: 1.6; }

/* =============================================
   PRODUCTS CARD
============================================= */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: all var(--transition); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img { position: relative; height: 200px; overflow: hidden; background: var(--gray-100); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--blue-main); color: white; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; }
.product-body { padding: 20px; }
.product-type { font-size: .75rem; font-weight: 600; color: var(--blue-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.product-body h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; color: var(--gray-900); }
.product-body p { font-size: .88rem; color: var(--gray-500); margin-bottom: 16px; line-height: 1.5; }
.product-meta { display: flex; justify-content: space-between; align-items: center; }
.product-cap { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--gray-500); }
.product-cap i { color: var(--blue-main); }
.btn-wa { display: inline-flex; align-items: center; gap: 6px; background: #25d366; color: white; padding: 8px 16px; border-radius: 8px; font-size: .82rem; font-weight: 600; transition: all var(--transition); }
.btn-wa:hover { background: #1ebe5a; transform: scale(1.03); }

/* =============================================
   WHY CHOOSE US
============================================= */
.why-us { background: linear-gradient(135deg, var(--blue-dark), var(--blue-main)); color: white; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 32px; }
.why-item { text-align: center; padding: 32px 20px; background: rgba(255,255,255,.08); border-radius: var(--radius); border: 1px solid rgba(255,255,255,.15); transition: all var(--transition); }
.why-item:hover { background: rgba(255,255,255,.15); transform: translateY(-4px); }
.why-icon { font-size: 2.5rem; margin-bottom: 16px; }
.why-item h3 { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.why-item p { font-size: .88rem; opacity: .8; line-height: 1.6; }

/* =============================================
   CTA SECTION
============================================= */
.cta-section { background: var(--blue-pale); padding: 70px 0; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-box h2 { font-family: 'Poppins', sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--blue-dark); max-width: 560px; }
.cta-box p { color: var(--gray-500); margin-top: 8px; }
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }
.btn-blue { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-main); color: white; padding: 14px 28px; border-radius: var(--radius); font-weight: 700; transition: all var(--transition); }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-green { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: white; padding: 14px 28px; border-radius: var(--radius); font-weight: 700; transition: all var(--transition); }
.btn-green:hover { background: #1ebe5a; transform: translateY(-2px); }

/* =============================================
   GALLERY
============================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,36,99,.7) 0%, transparent 60%); opacity: 0; transition: opacity var(--transition); display: flex; align-items: flex-end; padding: 16px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: white; font-size: .9rem; font-weight: 600; }

/* =============================================
   CONTACT FORM
============================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }
.contact-info-card { background: linear-gradient(135deg, var(--blue-dark), var(--blue-main)); color: white; border-radius: var(--radius); padding: 40px; }
.contact-info-card h3 { font-family: 'Poppins', sans-serif; font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.contact-info-card p { opacity: .8; font-size: .9rem; margin-bottom: 32px; }
.info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.info-icon { width: 44px; height: 44px; background: rgba(255,255,255,.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.info-text strong { display: block; font-size: .82rem; opacity: .7; margin-bottom: 2px; }
.info-text a, .info-text span { color: white; font-size: .95rem; }

.contact-form { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-200); border-radius: 8px; font-size: .92rem; font-family: inherit; color: var(--gray-900); transition: border-color var(--transition); outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--blue-main); box-shadow: 0 0 0 3px rgba(21,101,192,.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit { width: 100%; background: var(--blue-main); color: white; border: none; padding: 14px; border-radius: var(--radius); font-size: 1rem; font-weight: 700; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-submit:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* =============================================
   PAGE HERO (inner pages)
============================================= */
.page-hero { background: linear-gradient(135deg, var(--blue-dark), var(--blue-main)); color: white; padding: 70px 0 60px; }
.page-hero h1 { font-family: 'Poppins', sans-serif; font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; }
.page-hero p { opacity: .85; font-size: 1rem; max-width: 540px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; opacity: .7; margin-bottom: 16px; }
.breadcrumb a { color: white; }
.breadcrumb i { font-size: .65rem; }

/* =============================================
   FOOTER
============================================= */
.footer { background: var(--gray-900); color: rgba(255,255,255,.75); }
.footer-top { padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo { width: 44px; height: 44px; object-fit: contain; }
.footer-brand strong { display: block; font-size: 1rem; color: white; font-family: 'Poppins', sans-serif; }
.footer-brand small { display: block; font-size: .72rem; opacity: .6; }
.footer-desc { font-size: .88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; background: rgba(255,255,255,.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: all var(--transition); }
.footer-social a:hover { background: var(--blue-main); color: white; }

.footer-title { font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 700; color: white; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.65); transition: color var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--blue-accent); }
.footer-links i { font-size: .65rem; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; font-size: .88rem; }
.footer-contact i { color: var(--blue-accent); margin-top: 2px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-contact a:hover { color: white; }
.footer-contact span { color: rgba(255,255,255,.65); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .82rem; }
.footer-bottom a { color: var(--blue-accent); }

/* =============================================
   FLOATING ELEMENTS
============================================= */
.wa-float { position: fixed; bottom: 28px; right: 28px; width: 58px; height: 58px; background: #25d366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 4px 20px rgba(37,211,102,.4); z-index: 9999; transition: all var(--transition); animation: pulse 2.5s infinite; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); }
.wa-tooltip { position: absolute; right: 70px; background: var(--gray-900); color: white; font-size: .8rem; padding: 6px 12px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.wa-float:hover .wa-tooltip { opacity: 1; }

.back-to-top { position: fixed; bottom: 100px; right: 30px; width: 44px; height: 44px; background: var(--blue-main); color: white; border: none; border-radius: 10px; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(10px); transition: all var(--transition); z-index: 999; box-shadow: var(--shadow-md); pointer-events: none; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--blue-dark); }

/* =============================================
   ALERT MESSAGES
============================================= */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-size: .9rem; font-weight: 500; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error { background: #fce4ec; color: #c62828; border: 1px solid #f48fb1; }

/* =============================================
   ANIMATIONS
============================================= */
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse { 0%,100% { box-shadow:0 4px 20px rgba(37,211,102,.4); } 50% { box-shadow:0 4px 30px rgba(37,211,102,.7); } }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar .container { justify-content: center; }
  .topbar-right { display: none; }

  .hamburger { display: flex; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 16px; box-shadow: var(--shadow-md); gap: 4px; }
  .nav-menu.open { display: flex; }
  .nav-menu a { display: block; padding: 10px 14px; }

  .hero { min-height: auto; padding: 80px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 24px; }
  .section-title { font-size: 1.7rem; }
  .cta-box { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}
