/* ===== KABY ELECTRONICS — style.css ===== */
:root {
  --primary: #0d47a1;
  --primary-dark: #0a3578;
  --primary-light: #1976d2;
  --accent: #ff6d00;
  --accent-dark: #e65100;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 71, 161, 0.12);
  --shadow-lg: 0 20px 50px rgba(13, 71, 161, 0.2);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--primary); text-decoration: none; }
.logo-icon { width: 42px; height: 42px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-weight: 500; color: var(--dark-2); font-size: 0.95rem; transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--primary); }
.nav-cta { background: var(--primary); color: #fff !important; padding: 10px 20px; border-radius: 50px; font-weight: 600; transition: background 0.2s; }
.nav-cta:hover { background: var(--primary-dark); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.hamburger span { width: 26px; height: 3px; background: var(--dark); border-radius: 3px; transition: 0.3s; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 60%, var(--primary) 100%); color: #fff; padding: 100px 0 90px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; top: -30%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255, 109, 0, 0.25), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-badge { display: inline-block; background: rgba(255, 109, 0, 0.2); color: #ffab40; padding: 6px 16px; border-radius: 50px; font-weight: 600; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 20px; }
.hero h1 { font-size: 3.1rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: #ffab40; }
.hero p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 32px; max-width: 540px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 30px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; transition: all 0.25s; border: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(255, 109, 0, 0.4); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.4); }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.stat h3 { font-size: 1.8rem; font-weight: 800; color: #ffab40; }
.stat p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); margin: 0; }
.hero-card { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 20px; padding: 35px; position: relative; z-index: 2; }
.hero-card h4 { font-size: 1.2rem; margin-bottom: 18px; color: #fff; }
.hero-card ul { display: flex; flex-direction: column; gap: 12px; }
.hero-card li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.hero-card li i { color: #ffab40; }

/* ===== SECTIONS ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-tag { color: var(--accent); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.section-head h2 { font-size: 2.4rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.section-head p { color: var(--gray); font-size: 1.05rem; }

/* ===== CATEGORIES ===== */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; text-align: center; transition: all 0.3s; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.cat-icon { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 16px; background: linear-gradient(135deg, rgba(13, 71, 161, 0.1), rgba(25, 118, 210, 0.15)); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: var(--primary); }
.cat-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.cat-card p { color: var(--gray); font-size: 0.9rem; }

/* ===== PRODUCT CARDS ===== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.product-img { height: 180px; background: linear-gradient(135deg, var(--dark-2), var(--dark)); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--primary-light); position: relative; }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; }
.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.product-body .cat { color: var(--gray); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.product-body p { font-size: 0.88rem; color: var(--gray); margin-bottom: 14px; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.price small { font-size: 0.7rem; color: var(--gray); font-weight: 400; }
.btn-sm { padding: 9px 18px; font-size: 0.8rem; background: var(--dark); color: #fff; border-radius: 50px; font-weight: 600; border: none; cursor: pointer; transition: 0.2s; }
.btn-sm:hover { background: var(--primary); }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: all 0.3s; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.feature-icon { width: 54px; height: 54px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 20px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--gray); font-size: 0.92rem; }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: all 0.3s; }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.service-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.service-card h3 i { color: var(--accent); }
.service-card p { color: var(--gray); font-size: 0.92rem; }

/* ===== WHY / STEPS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { color: var(--gray); font-size: 0.88rem; }

/* ===== OFFER ===== */
.offer-box { background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%); border-radius: 24px; padding: 60px; color: #fff; text-align: center; position: relative; overflow: hidden; }
.offer-box::before { content: ''; position: absolute; top: -50%; left: -20%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255, 109, 0, 0.2), transparent 60%); }
.offer-box h2 { font-size: 2.2rem; margin-bottom: 16px; }
.offer-box p { max-width: 600px; margin: 0 auto 32px; color: rgba(255, 255, 255, 0.85); }
.offer-timer { display: inline-flex; gap: 20px; margin-bottom: 30px; }
.offer-timer div { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; padding: 14px 22px; text-align: center; }
.offer-timer span { display: block; font-size: 1.6rem; font-weight: 800; }
.offer-timer small { font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.testimonial .stars { color: #ffb300; margin-bottom: 16px; font-size: 0.9rem; }
.testimonial p { color: var(--dark-2); font-size: 0.95rem; font-style: italic; margin-bottom: 16px; }
.testimonial .author { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.testimonial .author h4 { font-size: 0.9rem; }
.testimonial .author span { font-size: 0.78rem; color: var(--gray); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.faq-q { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; }
.faq-q i { color: var(--primary); transition: transform 0.3s; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding: 0 24px; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }
.faq-a p { color: var(--gray); font-size: 0.92rem; }

/* ===== CTA ===== */
.cta { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; text-align: center; padding: 80px 0; }
.cta h2 { font-size: 2.2rem; margin-bottom: 16px; }
.cta p { max-width: 600px; margin: 0 auto 32px; color: rgba(255, 255, 255, 0.9); }
.cta .btn { background: #fff; color: var(--primary); }
.cta .btn:hover { background: transparent; color: #fff; border: 2px solid #fff; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255, 255, 255, 0.8); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; }
.footer-contact i { color: var(--accent); margin-top: 3px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; transition: 0.2s; color: #fff; }
.footer-social a:hover { background: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 24px; text-align: center; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }

/* ===== PAGE HEADER (inner pages) ===== */
.page-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%); color: #fff; padding: 70px 0; text-align: center; }
.page-hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, 0.8); max-width: 600px; margin: 0 auto; }
.breadcrumb { margin-top: 14px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }
.breadcrumb a { color: #ffab40; }

/* ===== CONTACT / FORMS ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 10px; }
.contact-info > p { color: var(--gray); margin-bottom: 30px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .ci-icon { width: 50px; height: 50px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-item p { color: var(--gray); font-size: 0.9rem; }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.contact-form h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 0.95rem; font-family: inherit; transition: border-color 0.2s; background: var(--light); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--gray); margin-top: 10px; }

/* ===== MAP ===== */
.map-box { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); margin-top: 50px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .categories-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid, .services-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2.2rem; }
  .nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: #fff; flex-direction: column; justify-content: center; align-items: center; gap: 24px; transition: right 0.3s; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
  .nav.open { right: 0; }
  .hamburger { display: flex; }
  .categories-grid, .products-grid, .features-grid, .services-grid, .testimonials-grid, .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .offer-box { padding: 40px 24px; }
  .product-img { height: 150px; }
}
