/* ============================================
   BASARAN FORKLIFT — Premium Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a2e;
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol { list-style: none; }

/* ---------- Design Tokens ---------- */
:root {
  --primary: #0f2744;
  --primary-light: #1a3a5c;
  --secondary: #e8600a;
  --secondary-light: #ff7b2e;
  --accent: #f0a500;
  --text-dark: #1a1a2e;
  --text-medium: #4a4a6a;
  --text-light: #7a7a9a;
  --bg-white: #ffffff;
  --bg-light: #f7f8fc;
  --bg-dark: #0b1d34;
  --border: #e4e7f0;
  --shadow-xs: 0 1px 3px rgba(15, 39, 68, 0.06);
  --shadow-sm: 0 4px 12px rgba(15, 39, 68, 0.08);
  --shadow-md: 0 8px 30px rgba(15, 39, 68, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 39, 68, 0.15);
  --shadow-hover: 0 12px 40px rgba(15, 39, 68, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section Spacing ---------- */
.section {
  padding: 80px 0;
}

.section-alt {
  padding: 80px 0;
  background: var(--bg-light);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 4px;
  margin: 16px auto 0;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 0;
  position: relative;
  z-index: 1001;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar a:hover { color: var(--secondary-light); }

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---------- Header / Navigation ---------- */
.main-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition), background var(--transition);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  letter-spacing: 0.01em;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--secondary);
  background: rgba(232, 96, 10, 0.06);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: #fff;
  box-shadow: 0 4px 15px rgba(232, 96, 10, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 96, 10, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--primary);
  padding: 8px;
  line-height: 1;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 29, 52, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-container {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-white);
  z-index: 2001;
  transition: right var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}

.mobile-nav-container.active {
  right: 0;
}

.close-menu {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 20px;
  color: var(--text-medium);
  transition: color var(--transition);
}

.close-menu:hover { color: var(--secondary); }

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}

.mobile-nav-list a {
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
  transition: color var(--transition);
}

.mobile-nav-list a:hover { color: var(--secondary); }

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,29,52,0.88) 0%, rgba(15,39,68,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 96, 10, 0.15);
  border: 1px solid rgba(232, 96, 10, 0.3);
  color: var(--secondary-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Page Header (Inner Pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 0 50px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card-body {
  padding: 24px;
}

.service-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.service-card-body p {
  font-size: 0.92rem;
  color: var(--text-medium);
  line-height: 1.65;
}

/* ---------- Content Layout ---------- */
.content-section {
  padding: 70px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.content-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.content-text p {
  font-size: 0.98rem;
  color: var(--text-medium);
  margin-bottom: 16px;
  line-height: 1.8;
  text-align: justify;
}

.content-text ul {
  margin: 16px 0;
}

.content-text ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.6;
}

.content-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
}

.content-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Photo Gallery (Masonry) ---------- */
.gallery-section {
  padding: 50px 0;
}

.gallery-grid {
  columns: 4;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.gallery-item:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(232,96,10,0.2);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-card p,
.contact-card a {
  font-size: 0.9rem;
  color: var(--text-medium);
}

.contact-card a:hover { color: var(--secondary); }

.contact-form {
  background: var(--bg-light);
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(232, 96, 10, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---------- Footer ---------- */
.main-footer {
  background: var(--bg-white);
  color: var(--text-medium);
  padding: 60px 0 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  color: var(--text-medium);
}

.footer-about img {
  height: 40px;
  width: auto;
  filter: none;
}

.footer-col-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-medium);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--text-medium);
}

.footer-contact i {
  color: var(--secondary);
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}

.footer-contact a {
  color: var(--text-medium);
}

.footer-contact a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.82rem;
  color: var(--text-light);
}

.footer-bottom a {
  color: var(--text-medium);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--secondary);
}

/* ---------- Scroll Animations ----------
   .will-reveal is added via JS only for elements below the fold.
   Elements already in view on load are never hidden.
-------------------------------------------*/
.reveal { /* marker class only, no default hidden state */ }

.reveal.will-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 992px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .header-cta .btn-outline { display: none; }

  .content-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .gallery-grid { columns: 3; }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 50px 0; }

  .hero { min-height: 420px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .page-hero { padding: 40px 0 35px; }
  .page-hero h1 { font-size: 1.5rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 20px 12px; }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-number { font-size: 1.5rem; }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card-img { height: 180px; }

  .gallery-grid { columns: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }

  .top-bar { font-size: 0.75rem; }
  .top-bar .container { justify-content: center; }
  .top-bar-right { gap: 12px; }

  /* Contact page two-column → single on mobile */
  .contact-grid-main,
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .section-title { font-size: 1.5rem; }
}
