/* ══════════════════════════════════════════════════
   INCOM – Industrial Component Co.
   Modern Responsive CSS  |  style.css
   ══════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --primary:        #c0392b;
  --primary-dark:   #96281b;
  --primary-light:  #e74c3c;
  --accent:         #8B7355;
  --accent-light:   #a89068;
  --dark:           #1a1a2e;
  --dark-2:         #16213e;
  --light:          #f8f9fa;
  --light-2:        #eef0f3;
  --text:           #2c2c2c;
  --text-muted:     #6c757d;
  --border:         #e0e0e0;
  --white:          #ffffff;
  --font-body:      'Inter', system-ui, sans-serif;
  --font-heading:   'Poppins', system-ui, sans-serif;
  --radius:         12px;
  --radius-lg:      20px;
  --shadow:         0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover:   0 8px 40px rgba(0,0,0,0.15);
  --transition:     all 0.3s ease;
}

/* ── Base ── */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ── Top Bar ── */
.top-bar {
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  padding: 6px 0;
}
.top-bar a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.top-bar a:hover { color: var(--white); }

/* ── Navbar ── */
#mainNav {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  padding: 12px 0;
  transition: var(--transition);
  z-index: 1000;
}
#mainNav.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 25px rgba(0,0,0,0.12);
}
.nav-logo {
  height: 44px;
  object-fit: contain;
  transition: var(--transition);
}
#mainNav.scrolled .nav-logo { height: 36px; }

.navbar-nav .nav-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--text) !important;
  padding: 6px 4px !important;
  margin: 0 12px;
  letter-spacing: 0.3px;
  position: relative;
  background: none !important;
  border-radius: 0;
  transition: color 0.25s ease;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* ── Hero Eyebrow ── */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow-line {
  flex: 0 0 36px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 2px;
}
.eyebrow-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

/* ── Buttons ── */
.btn-primary-custom {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  border-radius: 50px;
  padding: 12px 28px;
  letter-spacing: 0.4px;
  transition: var(--transition);
}
.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,57,43,0.35);
}

.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.75);
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary) !important;
  transform: translateY(-2px);
}

.btn-outline-product {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 20px;
  transition: var(--transition);
}
.btn-outline-product:hover {
  background: var(--primary);
  color: var(--white);
}

/* ── Badges ── */
.badge-accent {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 50px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.badge-accent.light {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.3);
}

/* ── Section Tags ── */
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-tag.light { color: rgba(255,255,255,0.75); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Section Spacing ── */
.section-light {
  padding: 80px 0;
  background: var(--light);
}
.section-dark {
  padding: 80px 0;
  background: var(--dark);
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: url('../img/ban1.jpg') no-repeat center center / cover;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(26,26,46,0.88) 0%,
    rgba(192,57,43,0.55) 60%,
    rgba(26,26,46,0.3) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 60px;
}
.min-vh-75 { min-height: 75vh; }

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.brand-highlight {
  color: #ff6b6b;
  font-style: italic;
}
.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.88);
  max-width: 600px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  font-size: 22px;
  animation: bounce 1.8s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── Stats Strip ── */
.stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.stat-item {
  padding: 16px 10px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}
.stat-item p {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 0;
}

/* ── Feature Cards ── */
.feature-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}
.feature-icon {
  width: 54px;
  height: 54px;
  background: rgba(192,57,43,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 20px;
}
.feature-card h5 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.feature-card p { color: var(--text-muted); font-size: 14px; margin: 0; }
.feature-img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

/* ── Product Cards ── */
.product-card {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.product-img-wrap {
  position: relative;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 24px;
}
.product-img-wrap img {
  max-height: 170px;
  object-fit: contain;
  transition: var(--transition);
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}
.product-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}
.product-body {
  padding: 24px;
}
.product-body h5 {
  color: var(--white);
  font-size: 17px;
  margin-bottom: 10px;
}
.product-body p {
  color: rgba(255,255,255,0.65);
  font-size: 13.5px;
  margin-bottom: 18px;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 70px 20px;
  color: var(--white);
}
.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
}
.cta-section p { font-size: 16px; opacity: 0.9; }

/* ── Footer ── */
.main-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  border-top: 3px solid var(--primary);
}
.footer-link {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.footer-link:hover { color: var(--white); }

/* ── Page Hero (Contact) ── */
.page-hero {
  position: relative;
  background: url('../img/bgpattern.png') repeat, var(--dark-2);
  padding: 70px 0 50px;
  overflow: hidden;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.92), rgba(192,57,43,0.45));
  z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.page-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
}

/* ── Contact Info Cards ── */
.contact-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}
.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: var(--transition);
}
.contact-info-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.ci-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: rgba(192,57,43,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
}
.contact-info-card h6 {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--dark);
  margin-bottom: 4px;
}
.contact-info-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}
.contact-info-card a {
  color: var(--primary);
  font-weight: 500;
}
.contact-info-card a:hover { color: var(--primary-dark); }

/* ── Map ── */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 2px solid var(--border);
}
#map_canvas,
.map-wrapper iframe {
  width: 100%;
  height: 420px;
  display: block;
}

/* ── Navbar Toggler ── */
.navbar-toggler {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
}
.navbar-toggler:focus { box-shadow: none; outline: none; }

/* ── Responsive Tweaks ── */
@media (max-width: 991px) {
  .hero-section { min-height: 80vh; }

  /* Mobile dropdown menu */
  #navContent {
    background: var(--white);
    border-top: 3px solid var(--primary);
    padding: 8px 0 12px;
    margin-top: 10px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  /* Override underline style — use full-row highlight on mobile */
  #navContent .navbar-nav .nav-link {
    margin: 2px 8px;
    padding: 10px 14px !important;
    border-radius: 8px;
    font-size: 15px;
  }
  #navContent .navbar-nav .nav-link::after {
    display: none;
  }
  #navContent .navbar-nav .nav-link:hover,
  #navContent .navbar-nav .nav-link.active {
    background: rgba(192, 57, 43, 0.08) !important;
    color: var(--primary) !important;
    border-left: 3px solid var(--primary);
    padding-left: 11px !important;
  }
}

@media (max-width: 767px) {
  .hero-title { font-size: 2.2rem; }
  .hero-content { padding: 60px 0 40px; }
  .section-light, .section-dark { padding: 55px 0; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  #map_canvas { height: 300px; }
  .contact-info-card { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .stats-strip .row { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── Smooth scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
