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

:root {
  --primary: #0a3d62;
  --primary-light: #1e6091;
  --accent: #e74c3c;
  --accent-dark: #c0392b;
  --dark: #1a1a2e;
  --gray: #6b7280;
  --light-gray: #f3f4f6;
  --bg: #ffffff;
  --text: #1f2937;
  --border: #e5e7eb;
  --success: #10b981;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-width: 1200px;
  --header-h: 70px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

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

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

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; color: var(--primary); }
.logo:hover { color: var(--primary); }
.logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 800;
}
.logo .logo-text { letter-spacing: -0.5px; }
.logo .logo-text span { color: var(--accent); }

.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--text); }
.main-nav a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 8px 20px; border-radius: var(--radius); font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); color: #fff !important; }

.mobile-toggle { display: none; font-size: 24px; background: none; border: none; cursor: pointer; color: var(--text); }

/* ===== Hero ===== */
.hero {
  margin-top: var(--header-h);
  background: linear-gradient(135deg, #0a3d62 0%, #1e6091 50%, #2980b9 100%);
  color: #fff;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M0 0h60M0 15h60M0 30h60M0 45h60M0 60M15 0v60M30 0v60M45 0v60" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
}

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: var(--radius);
  font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }

/* ===== Stats Bar ===== */
.stats-bar {
  display: flex; justify-content: center; gap: 60px;
  padding: 40px 0; background: var(--light-gray);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number { font-size: 36px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 14px; color: var(--gray); margin-top: 4px; }

/* ===== Section ===== */
.section { padding: 70px 0; }
.section.alt { background: var(--light-gray); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.section-title p { color: var(--gray); font-size: 16px; }

/* ===== Product Grid ===== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
  border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .img-wrap { width: 100%; height: 200px; overflow: hidden; background: var(--light-gray); }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .img-wrap img { transform: scale(1.08); }
.product-card .card-body { padding: 16px; }
.product-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--dark); }
.product-card p { font-size: 13px; color: var(--gray); }
.product-card .card-link {
  display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600;
  color: var(--accent);
}

/* ===== Advantages ===== */
.advantage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.advantage-item { text-align: center; padding: 30px 20px; }
.advantage-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 28px;
}
.advantage-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--dark); }
.advantage-item p { font-size: 14px; color: var(--gray); }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; padding: 60px 0; text-align: center;
}
.cta-banner h2 { font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.cta-banner p { font-size: 16px; opacity: 0.9; margin-bottom: 28px; }
.cta-banner .btn { background: #fff; color: var(--accent); border-color: #fff; }
.cta-banner .btn:hover { background: var(--light-gray); }

/* ===== Footer ===== */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,0.7);
  padding: 50px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col p, .footer-col a, .footer-col li { font-size: 14px; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: #fff; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; }

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 99;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); cursor: pointer;
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

/* ===== WhatsApp Tooltip ===== */
.whatsapp-tooltip {
  position: fixed; bottom: 90px; right: 24px; z-index: 99;
  background: #fff; padding: 12px 16px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-width: 260px; font-size: 14px;
  opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.whatsapp-tooltip.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.whatsapp-tooltip strong { color: var(--dark); }
.whatsapp-tooltip .tooltip-close { position: absolute; top: 4px; right: 8px; cursor: pointer; color: var(--gray); font-size: 18px; }

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; padding: 50px 0; text-align: center; margin-top: var(--header-h);
}
.page-header h1 { font-size: 32px; font-weight: 700; }
.page-header p { font-size: 16px; opacity: 0.85; margin-top: 8px; }

/* ===== Product Detail Page ===== */
.product-detail { padding: 60px 0; }
.breadcrumb { font-size: 14px; color: var(--gray); margin-bottom: 24px; }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }

.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.product-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.product-info h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; color: var(--dark); }
.product-info .product-desc { font-size: 15px; color: var(--gray); margin-bottom: 24px; line-height: 1.8; }
.product-info h3 { font-size: 18px; font-weight: 600; margin: 24px 0 12px; color: var(--dark); }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.spec-table th, .spec-table td { padding: 10px 16px; border: 1px solid var(--border); font-size: 14px; text-align: left; }
.spec-table th { background: var(--light-gray); font-weight: 600; color: var(--dark); }
.spec-table tr:nth-child(even) { background: #fafbfc; }

.feature-list { list-style: none; margin-bottom: 24px; }
.feature-list li { padding: 6px 0 6px 24px; position: relative; font-size: 14px; color: var(--text); }
.feature-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

.product-cta-box {
  background: var(--light-gray); border-radius: var(--radius); padding: 24px; margin-top: 24px;
}
.product-cta-box h3 { margin-top: 0; }
.product-cta-box .btn { margin-top: 12px; }

/* ===== About Page ===== */
.about-content { max-width: 800px; margin: 0 auto; padding: 60px 0; }
.about-content h2 { font-size: 24px; font-weight: 600; margin: 32px 0 16px; color: var(--dark); }
.about-content p { font-size: 15px; color: var(--text); margin-bottom: 16px; line-height: 1.8; }
.about-content ul { margin-bottom: 16px; padding-left: 20px; }
.about-content ul li { margin-bottom: 8px; font-size: 15px; }

/* ===== Contact Page ===== */
.contact-page { padding: 60px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info h2 { font-size: 22px; font-weight: 600; margin-bottom: 24px; color: var(--dark); }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-item .icon { font-size: 24px; }
.contact-info-item .info-label { font-size: 13px; color: var(--gray); }
.contact-info-item .info-value { font-size: 15px; font-weight: 500; color: var(--dark); }

/* ===== Forms ===== */
.inquiry-form { background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.inquiry-form h2 { font-size: 22px; font-weight: 600; margin-bottom: 8px; color: var(--dark); }
.inquiry-form .form-subtitle { color: var(--gray); font-size: 14px; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--dark); }
.form-group label .required { color: var(--accent); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary-light);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  background: #ecfdf5; border: 1px solid #10b981; border-radius: var(--radius);
  padding: 20px; margin-bottom: 20px; color: #065f46; display: none;
}
.form-success.show { display: block; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--header-h); left: 0; right: 0; background: #fff;
    padding: 20px; gap: 16px; box-shadow: var(--shadow-lg);
  }
  .stats-bar { gap: 30px; }
  .stat-number { font-size: 28px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 60px; }
  .hero h1 { font-size: 24px; }
  .section { padding: 50px 0; }
}
