/* ============================================================
   PowerPro Tools - Foreign Trade Website
   Industrial Power Tools B2B Showcase
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --navy: #0d2137;
  --navy-light: #1a3550;
  --blue: #1e5799;
  --blue-light: #3498db;
  --orange: #f47920;
  --orange-hover: #e06810;
  --orange-light: #fff5ed;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #adb5bd;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #343a40;
  --gray-800: #212529;
  --success: #2ecc71;
  --danger: #e74c3c;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --max-width: 1240px;
  --header-height: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 { line-height: 1.3; color: var(--gray-800); }
h1 { font-size: 2.8rem; font-weight: 800; }
h2 { font-size: 2.2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

.section-title {
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.section-label {
  display: inline-block;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}
.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-600);
  transition: all var(--transition);
}
.nav a:hover { background: var(--gray-100); color: var(--navy); }
.nav a.active { color: var(--orange); background: var(--orange-light); }

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  margin-left: 12px;
}
.nav-cta:hover {
  background: var(--orange-hover) !important;
  color: var(--white) !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: var(--gray-400);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
}
.footer-about p { font-size: 0.9rem; margin-bottom: 20px; line-height: 1.8; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-hover);
  box-shadow: 0 4px 16px rgba(244,121,32,0.35);
  transform: translateY(-1px);
}
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 40%, var(--blue) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(244,121,32,0.15), transparent);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(52,152,219,0.12), transparent);
  border-radius: 50%;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero-content h1 span { color: var(--orange); }
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-placeholder {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.hero-icon-group {
  display: flex;
  gap: 20px;
  color: rgba(255,255,255,0.4);
}
.hero-icon-group svg { width: 48px; height: 48px; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center;
  padding: 36px 24px;
  border-right: 1px solid var(--gray-200);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { color: var(--gray-500); font-size: 0.9rem; }

/* ============================================================
   SECTION SPACING
   ============================================================ */
.section { padding: 80px 0; }
.section-gray { background: var(--gray-50); }

/* ============================================================
   CATEGORY CARDS (Home)
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.cat-icon {
  width: 64px; height: 64px;
  background: var(--orange-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--orange);
}
.cat-icon svg { width: 32px; height: 32px; }
.cat-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.cat-card p { font-size: 0.9rem; color: var(--gray-500); }

/* ============================================================
   FEATURES GRID (Why Us)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card {
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; }

/* ============================================================
   PRODUCT GRID (Products Page)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-header h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.page-header p { color: rgba(255,255,255,0.7); font-size: 1.05rem; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.product-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.product-image {
  aspect-ratio: 4/3;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  position: relative;
  overflow: hidden;
}
.product-image svg { width: 80px; height: 80px; opacity: 0.5; }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--orange);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.product-body { padding: 24px; }
.product-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.product-body p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.product-spec {
  font-size: 0.78rem;
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--gray-600);
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gray-100);
  padding-top: 16px;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image-placeholder {
  aspect-ratio: 4/3;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
}
.about-image-placeholder svg { width: 100px; height: 100px; opacity: 0.4; }
.about-text h2 { margin-bottom: 16px; }
.about-text p { margin-bottom: 16px; color: var(--gray-600); line-height: 1.9; }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cert-card {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.cert-card:hover { border-color: var(--blue-light); }
.cert-icon {
  width: 56px; height: 56px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--white);
}
.cert-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.cert-card p { font-size: 0.82rem; color: var(--gray-500); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--gray-600); margin-bottom: 32px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-item-icon {
  width: 44px; height: 44px;
  background: var(--orange-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}
.contact-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-item p { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 0; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--gray-700);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  color: var(--gray-700);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244,121,32,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 28px; font-size: 1.05rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
  .hero-content h1 { font-size: 2.4rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 60px 0; }
  .hero { padding: 80px 0 60px; }
  .hero-content h1 { font-size: 2rem; }
  .categories-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .stats-bar .container { grid-template-columns: 1fr 1fr; }
  .certs-grid { grid-template-columns: 1fr; }

  /* Mobile Nav */
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }
  .nav.active { display: flex; }
  .nav a { padding: 12px 16px; width: 100%; }
  .nav-cta { margin-left: 0; text-align: center; }
  .mobile-toggle { display: flex; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PAGE HERO BREADCRUMB
   ============================================================ */
.breadcrumb { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }

/* ============================================================
   FLOATING CONTACT BUTTONS
   ============================================================ */
.floating-contact {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.floating-btn:active { transform: scale(0.95); }

.floating-whatsapp {
  background: #25D366;
  color: #fff;
}
.floating-email {
  background: var(--orange);
  color: #fff;
}
.floating-btn svg { width: 26px; height: 26px; }

.floating-tooltip {
  position: absolute;
  right: 68px;
  background: var(--gray-800);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.25s ease;
}
.floating-btn:hover .floating-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Pulse animation for WhatsApp */
.floating-whatsapp::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}

@media (max-width: 768px) {
  .floating-contact { bottom: 20px; right: 16px; gap: 12px; }
  .floating-btn { width: 50px; height: 50px; }
  .floating-btn svg { width: 23px; height: 23px; }
}
