/* VacParts Direct - Main Stylesheet */
/* Brand: Industrial Blue #003366 | Accent Orange #FF6600 */

:root {
  --primary: #003366;
  --primary-light: #004a8f;
  --primary-dark: #001f3f;
  --accent: #FF6600;
  --accent-light: #ff8533;
  --accent-dark: #cc5200;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f1f3;
  --gray-200: #e0e2e6;
  --gray-300: #c4c8cf;
  --gray-600: #5f6b7a;
  --gray-800: #2a3038;
  --gray-900: #1a1d23;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 42px; height: 42px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: var(--white);
  flex-shrink: 0;
}
.logo-text { color: var(--white); font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.logo-text span { color: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  padding: 8px 16px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; transition: all 0.2s;
}
.nav a:hover, .nav a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.nav a.active { background: rgba(255,255,255,0.15); }
.menu-toggle {
  display: none; background: none; border: none;
  color: var(--white); font-size: 28px; cursor: pointer; padding: 4px 8px; line-height: 1;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white); padding: 80px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; background: var(--accent);
}
.hero h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: clamp(15px, 2vw, 18px); opacity: 0.9; max-width: 600px; margin: 0 auto 32px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: var(--radius);
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: all 0.2s; cursor: pointer; border: none; text-align: center;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-sm { padding: 8px 20px; font-size: 14px; }

/* ===== SECTIONS ===== */
.section { padding: clamp(40px, 8vw, 80px) 24px; }
.section-gray { background: var(--gray-50); }
.container { max-width: var(--max-width); margin: 0 auto; }
.section-title { font-size: clamp(22px, 4vw, 32px); font-weight: 700; color: var(--primary); margin-bottom: 12px; text-align: center; }
.section-subtitle { font-size: clamp(14px, 1.8vw, 16px); color: var(--gray-600); text-align: center; margin-bottom: 48px; }

/* ===== FEATURES ===== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 24px; }
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow); border-top: 3px solid var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 52px; height: 52px; background: var(--gray-50); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.feature-card h3 { font-size: clamp(16px, 2vw, 18px); color: var(--primary); margin-bottom: 8px; }
.feature-card p { color: var(--gray-600); font-size: clamp(13px, 1.5vw, 14px); }

/* ===== PRODUCT CARDS ===== */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.product-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img { height: 200px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-body { padding: 24px; }
.product-body h3 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.product-body p { color: var(--gray-600); font-size: 14px; margin-bottom: 16px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.product-price { font-size: 20px; font-weight: 700; color: var(--accent); }
.product-badge { background: var(--primary); color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-image {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-radius: var(--radius-lg); height: 400px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 72px; overflow: hidden;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text h3 { font-size: clamp(20px, 3vw, 24px); color: var(--primary); margin-bottom: 16px; }
.about-text p { color: var(--gray-600); margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.stat-item { text-align: center; padding: 16px; background: var(--gray-50); border-radius: var(--radius); }
.stat-num { font-size: clamp(22px, 3vw, 28px); font-weight: 800; color: var(--accent); }
.stat-label { font-size: clamp(11px, 1.5vw, 13px); color: var(--gray-600); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: clamp(20px, 3vw, 24px); color: var(--primary); margin-bottom: 16px; }
.contact-item { display: flex; gap: 12px; margin-bottom: 20px; }
.contact-icon {
  width: 44px; height: 44px; background: var(--gray-50); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.contact-item strong { display: block; color: var(--gray-800); margin-bottom: 2px; }
.contact-item span { color: var(--gray-600); font-size: 14px; }
.contact-form { background: var(--white); padding: clamp(20px, 4vw, 32px); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); font-size: 15px; font-family: inherit;
  transition: border-color 0.2s; -webkit-appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,102,0,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-question {
  width: 100%; padding: 20px 24px; background: none; border: none;
  font-size: clamp(15px, 2vw, 16px); font-weight: 600; color: var(--primary);
  text-align: left; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; gap: 12px;
}
.faq-question::after {
  content: '+'; font-size: 22px; color: var(--accent);
  font-weight: 400; transition: transform 0.2s; flex-shrink: 0;
}
.faq-item.open .faq-question::after { content: '\2212'; }
.faq-answer { padding: 0 24px 20px; color: var(--gray-600); font-size: 15px; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ===== CTA ===== */
.cta {
  background: var(--accent); color: var(--white); text-align: center;
  padding: clamp(40px, 8vw, 64px) 24px;
}
.cta h2 { font-size: clamp(22px, 4vw, 32px); font-weight: 700; margin-bottom: 12px; }
.cta p { font-size: clamp(14px, 1.8vw, 16px); opacity: 0.9; margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta .btn { background: var(--white); color: var(--accent); }
.cta .btn:hover { background: var(--gray-50); }

/* ===== FLOATING WHATSAPP ===== */
.floating-contact {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.floating-contact-btn {
  width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.3s; position: relative; cursor: pointer; border: none;
}
.floating-contact-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.floating-contact-btn svg { width: 28px; height: 28px; fill: currentColor; }
.floating-contact-btn .pulse {
  position: absolute; width: 100%; height: 100%; border-radius: 50%;
  background: var(--whatsapp); opacity: 0.6;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}
.floating-contact-label {
  background: var(--gray-800); color: var(--white); padding: 10px 18px;
  border-radius: 20px; font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px);
  transition: all 0.3s; pointer-events: none;
}
.floating-contact:hover .floating-contact-label { opacity: 1; transform: translateY(0); }

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
}
.footer-grid {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px; margin-bottom: 32px;
}
.footer-col h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer-col a {
  display: block; color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 14px; margin-bottom: 8px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-width); margin: 0 auto; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 13px;
}

/* ============================================= */
/* === RESPONSIVE: TABLET (769px - 1024px) ====== */
/* ============================================= */
@media (max-width: 1024px) {
  .header-inner { padding: 0 20px; }
  .nav a { padding: 8px 12px; font-size: 14px; }
  .about-grid, .contact-grid { gap: 32px; }
  .about-image { height: 320px; font-size: 56px; }
  .product-img { height: 180px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================= */
/* === RESPONSIVE: MOBILE (< 768px) ============ */
/* ============================================= */
@media (max-width: 768px) {
  .header-inner { height: 60px; padding: 0 16px; }
  .logo-text { font-size: 17px; }
  .logo-icon { width: 36px; height: 36px; font-size: 16px; }
  .menu-toggle { display: block; }

  .nav {
    display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    background: var(--primary); flex-direction: column; padding: 16px; z-index: 999;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 17px; border-radius: var(--radius); }

  .hero { padding: 48px 16px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; }

  .section { padding: 40px 16px; }
  .section-title { font-size: 22px; }
  .section-subtitle { margin-bottom: 32px; }

  .features { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .product-img { height: 220px; }
  .product-body { padding: 16px; }
  .product-body h3 { font-size: 16px; }
  .product-price { font-size: 18px; }

  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-image { height: 220px; font-size: 48px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-item { padding: 12px 8px; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 20px; }

  .faq-question { padding: 16px 20px; }
  .faq-answer { padding: 0 20px 16px; }

  .cta { padding: 40px 16px; }
  .footer { padding: 32px 16px 20px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .floating-contact { bottom: 16px; right: 16px; }
  .floating-contact-btn { width: 52px; height: 52px; }
  .floating-contact-btn svg { width: 24px; height: 24px; }
}

/* ============================================= */
/* === RESPONSIVE: SMALL PHONE (< 480px) ======== */
/* ============================================= */
@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; }
  .hero { padding: 40px 14px; }
  .section { padding: 32px 14px; }
  .section-title { font-size: 20px; }
  .features { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .product-img { height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .floating-contact { bottom: 12px; right: 12px; }
  .floating-contact-btn { width: 48px; height: 48px; }
  .floating-contact-btn svg { width: 22px; height: 22px; }
  .floating-contact-label { font-size: 12px; padding: 8px 14px; }
}
