/* ============================================
   Pipe Plug Factory - Industrial B2B Website
   High-Pressure Inflatable Pipe Plugging Airbags
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --color-primary: #1a1a1a;
    --color-secondary: #2d2d2d;
    --color-accent: #c9a227;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f5;
    --color-bg-dark: #1a1a1a;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #888888;
    --color-border: #e0e0e0;
    --color-white: #ffffff;
    --color-whatsapp: #25D366;
    --font-primary: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --container-max: 1200px;
    --container-padding: 24px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-primary); color: var(--color-text); line-height: 1.6; background-color: var(--color-bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; color: var(--color-primary); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }

p { margin-bottom: 1rem; color: var(--color-text-light); }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { margin-bottom: 0.75rem; position: relative; display: inline-block; }
.section-title h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--color-accent); margin: 0.75rem auto 0; }
.section-title p { max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }
.section { padding: 80px 0; }
.section-alt { background-color: var(--color-bg-alt); }
.section-dark { background-color: var(--color-bg-dark); color: var(--color-white); }
.section-dark h2, .section-dark h3 { color: var(--color-white); }
.section-dark p { color: #b0b0b0; }

.btn { display: inline-block; padding: 14px 32px; font-size: 1rem; font-weight: 600; text-align: center; border: none; cursor: pointer; transition: all var(--transition-normal); border-radius: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.btn-primary { background-color: var(--color-accent); color: var(--color-primary); }
.btn-primary:hover { background-color: #b8941f; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background-color: var(--color-primary); color: var(--color-white); }
.btn-secondary:hover { background-color: var(--color-secondary); transform: translateY(-2px); }
.btn-outline { background-color: transparent; color: var(--color-white); border: 2px solid var(--color-white); }
.btn-outline:hover { background-color: var(--color-white); color: var(--color-primary); }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background-color: var(--color-white); box-shadow: var(--shadow-sm); transition: box-shadow var(--transition-normal); }
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--color-primary); display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 36px; height: 36px; background: var(--color-primary); color: var(--color-white); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; border-radius: 2px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--color-text); position: relative; padding: 4px 0; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-accent); transition: width var(--transition-normal); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--color-primary); }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--color-primary); transition: all var(--transition-normal); }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); color: var(--color-white); padding-top: 72px; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23333" width="100" height="100"/><circle fill="%232a2a2a" cx="50" cy="50" r="40"/></svg>'); background-size: 60px; opacity: 0.3; }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge { display: inline-block; padding: 6px 16px; background: rgba(201, 162, 39, 0.15); color: var(--color-accent); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; border: 1px solid rgba(201, 162, 39, 0.3); border-radius: 2px; }
.hero h1 { color: var(--color-white); margin-bottom: 1.5rem; line-height: 1.2; }
.hero h1 span { color: var(--color-accent); }
.hero p { font-size: 1.15rem; color: #b0b0b0; margin-bottom: 2rem; max-width: 540px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card { background: var(--color-white); padding: 32px; border: 1px solid var(--color-border); transition: all var(--transition-normal); }
.feature-card:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-4px); }
.feature-icon { width: 56px; height: 56px; background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.25rem; font-weight: 700; color: var(--color-accent); }
.feature-card h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.feature-card p { font-size: 0.95rem; margin-bottom: 0; }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.product-card { background: var(--color-white); border: 1px solid var(--color-border); overflow: hidden; transition: all var(--transition-normal); }
.product-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.product-image { position: relative; aspect-ratio: 4/3; background: var(--color-bg-alt); overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-normal); }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badge { position: absolute; top: 16px; left: 16px; padding: 4px 12px; background: var(--color-accent); color: var(--color-primary); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.product-info { padding: 24px; }
.product-info h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.product-info p { font-size: 0.9rem; margin-bottom: 1rem; }
.product-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.product-price { font-weight: 700; color: var(--color-accent); font-size: 1.05rem; }
.product-link { font-size: 0.875rem; font-weight: 600; color: var(--color-primary); display: flex; align-items: center; gap: 4px; }
.product-link:hover { color: var(--color-accent); }

/* Product category tabs */
.product-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 2.5rem; flex-wrap: wrap; }
.product-tab { padding: 12px 28px; font-size: 0.95rem; font-weight: 600; border: 2px solid var(--color-border); background: var(--color-white); cursor: pointer; transition: all var(--transition-fast); border-radius: 2px; }
.product-tab.active { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.product-tab:hover:not(.active) { border-color: var(--color-accent); }

/* Specs Table */
.specs-table-wrapper { overflow-x: auto; background: var(--color-white); border: 1px solid var(--color-border); }
.specs-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.specs-table th, .specs-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--color-border); }
.specs-table th { background: var(--color-primary); color: var(--color-white); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; white-space: nowrap; }
.specs-table tr:hover td { background: var(--color-bg-alt); }
.specs-table td { font-size: 0.9rem; }

/* Cases */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.case-card { position: relative; overflow: hidden; background: var(--color-white); border: 1px solid var(--color-border); }
.case-image { aspect-ratio: 16/10; background: var(--color-bg-alt); overflow: hidden; }
.case-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-normal); }
.case-card:hover .case-image img { transform: scale(1.05); }
.case-content { padding: 24px; }
.case-meta { display: flex; gap: 16px; margin-bottom: 0.75rem; font-size: 0.85rem; color: var(--color-text-muted); }
.case-content h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.case-content p { font-size: 0.9rem; margin-bottom: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; aspect-ratio: 4/3; background: var(--color-bg-alt); overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { margin-bottom: 1.25rem; }
.about-features { margin-top: 2rem; }
.about-feature-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 1.25rem; }
.about-feature-icon { width: 48px; height: 48px; background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-accent); font-size: 1.25rem; font-weight: 700; }
.about-feature-text h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.about-feature-text p { font-size: 0.9rem; margin-bottom: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { margin-bottom: 2rem; }
.contact-details { margin-bottom: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 1.5rem; }
.contact-item-icon { width: 48px; height: 48px; background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-accent); font-size: 1.25rem; }
.contact-item-text h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.contact-item-text p { font-size: 0.9rem; margin-bottom: 0; }
.contact-form-wrapper { background: var(--color-white); padding: 40px; border: 1px solid var(--color-border); }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.9rem; color: var(--color-text); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); font-family: inherit; font-size: 0.95rem; color: var(--color-text); background: var(--color-bg); transition: border-color var(--transition-fast); border-radius: 2px; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--color-accent); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; padding: 16px; font-size: 1rem; }
.form-note { margin-top: 1rem; font-size: 0.8rem; color: var(--color-text-muted); text-align: center; }

/* Social links in contact */
.social-links-row { display: flex; gap: 12px; margin-top: 1.5rem; flex-wrap: wrap; }
.social-link-item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--color-bg-alt); border: 1px solid var(--color-border); font-size: 0.85rem; font-weight: 500; transition: all var(--transition-fast); }
.social-link-item:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }

/* WhatsApp Float Button */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 9999; width: 56px; height: 56px; background: var(--color-whatsapp); color: var(--color-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); transition: all var(--transition-normal); cursor: pointer; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }

/* Footer */
.footer { background: var(--color-primary); color: #b0b0b0; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: var(--color-white); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-title { color: var(--color-white); font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { font-size: 0.9rem; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--color-accent); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 8px; }

/* Social icons in footer */
.social-icons { display: flex; gap: 12px; margin-top: 1rem; }
.social-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--color-white); transition: all var(--transition-fast); border-radius: 2px; }
.social-icon:hover { background: var(--color-accent); color: var(--color-primary); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 0.85rem; margin-bottom: 0; }

/* Breadcrumb */
.breadcrumb { background: var(--color-bg-alt); padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.breadcrumb-inner { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-separator { color: var(--color-text-muted); }
.breadcrumb-current { color: var(--color-primary); font-weight: 500; }

/* Page Header */
.page-header { background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); color: var(--color-white); padding: 140px 0 80px; text-align: center; }
.page-header h1 { color: var(--color-white); margin-bottom: 0.75rem; }
.page-header p { color: #b0b0b0; max-width: 600px; margin: 0 auto; }

/* Image Placeholder */
.img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%); display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); font-size: 0.8rem; text-align: center; padding: 20px; }
.img-placeholder svg { width: 40px; height: 40px; margin-bottom: 8px; opacity: 0.4; }

/* CTA */
.cta-section { text-align: center; padding: 100px 0; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { max-width: 600px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }

/* Responsive */
@media (max-width: 1024px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero::before { width: 100%; opacity: 0.15; }
}

@media (max-width: 768px) {
    .nav { position: fixed; top: 72px; left: 0; right: 0; background: var(--color-white); flex-direction: column; padding: 24px; gap: 16px; box-shadow: var(--shadow-lg); transform: translateY(-150%); transition: transform var(--transition-normal); z-index: 999; }
    .nav.active { transform: translateY(0); }
    .mobile-menu-toggle { display: flex; }
    .section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .cases-grid { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 24px; }
    .product-tabs { gap: 6px; }
    .product-tab { padding: 10px 18px; font-size: 0.85rem; }
    .whatsapp-float { width: 48px; height: 48px; bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
    :root { --container-padding: 16px; }
    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: 1rem; }
    .btn { padding: 12px 24px; font-size: 0.9rem; }
    .feature-card { padding: 24px; }
    .logo { font-size: 1.1rem; }
    .logo-icon { width: 32px; height: 32px; font-size: 1rem; }
}
