/*
Theme Name: CANDO SONIC Stable
Theme URI: https://www.candosonic.com
Author: AI Assistant
Version: 1.0.0
Description: Clean, stable version of CANDO SONIC theme for ultrasonic equipment manufacturer.
License: GNU General Public License v2 or later
Text Domain: cando-sonic-stable
*/

/* ========================================
   CSS Variables & Reset
   ======================================== */

:root {
  --primary-color: #0066CC;
  --primary-hover: #0052A3;
  --secondary-color: #FF6600;
  --dark-color: #1a1a1a;
  --text-color: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --bg-light: #f8f9fa;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }

p { margin-bottom: 1rem; color: var(--text-light); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

a { text-decoration: none; color: var(--primary-color); transition: all 0.3s ease; }
a:hover { color: var(--primary-hover); }

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

.btn {
  display: inline-block;
  padding: 12px 32px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover { background-color: var(--primary-hover); transform: translateY(-2px); }

section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }

.grid { display: grid; gap: 30px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.card-image img { width: 100%; height: 250px; object-fit: cover; }
.card-content { padding: 25px; }
.card-content h3 { font-size: 1.25rem; margin-bottom: 10px; }

/* Top Bar */
.top-bar { background-color: var(--dark-color); color: white; padding: 10px 0; font-size: 14px; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-right a { color: white; margin-left: 20px; opacity: 0.9; }
.top-bar-right a:hover { opacity: 1; color: var(--primary-color); }

/* Header */
.site-header { background-color: white; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.header-main { padding: 20px 0; }
.header-main .container { display: flex; justify-content: space-between; align-items: center; }
.site-branding { display: flex; align-items: center; gap: 20px; }
.site-logo { font-size: 3rem; font-weight: 900; letter-spacing: 2px; text-decoration: none; }
.site-logo .can { color: var(--dark-color); }
.site-logo .do { color: var(--primary-color); }
.company-tagline { font-size: 13px; font-weight: 700; color: var(--text-color); }
.company-subtitle { font-size: 11px; color: var(--text-light); }
.header-contact { font-size: 14px; text-align: right; }
.header-contact-item { margin-bottom: 8px; }
.search-btn {
  background-color: var(--primary-color);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 18px;
}
.search-btn:hover { background-color: var(--primary-hover); }

/* Navigation */
.main-navigation { background: linear-gradient(to right, #1a1a1a, #000000); }
.primary-menu { display: flex; list-style: none; justify-content: space-between; margin: 0; padding: 0; }
.primary-menu li a {
  display: block;
  padding: 18px 28px;
  color: white;
  font-weight: 600;
  transition: background 0.3s ease;
}
.primary-menu li a:hover,
.primary-menu li.current_page_item a { background-color: var(--primary-color); }
.menu-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 15px; }

@media (max-width: 991px) {
  .menu-toggle { display: block; }
  .primary-menu { display: none; flex-direction: column; width: 100%; }
  .primary-menu.active { display: flex; }
  .primary-menu li a { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .header-contact, .company-info { display: none; }
}

/* Hero Slider */
.hero-slider { position: relative; height: 600px; overflow: hidden; background: black; }
.hero-slide { height: 600px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6)); }
.hero-content { position: relative; z-index: 2; text-align: center; color: white; max-width: 900px; padding: 0 20px; }
.hero-content h1 { font-size: 3.5rem; font-weight: 800; color: white; margin-bottom: 20px; }
.hero-content p { font-size: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 35px; }
.slider-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: white;
  width: 55px; height: 55px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
}
.slider-prev { left: 30px; }
.slider-next { right: 30px; }
.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 10; }
.slider-dot { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; }
.slider-dot.active { background: var(--primary-color); width: 32px; border-radius: 8px; }

/* Product Categories */
.product-categories { background: linear-gradient(to bottom, var(--bg-light), white); }
.category-card { text-align: center; padding: 40px 30px; background: white; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); border: 1px solid var(--border-color); transition: transform 0.3s ease; }
.category-card:hover { transform: translateY(-10px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.category-icon { width: 80px; height: 80px; margin: 0 auto 25px; background: #e3f2fd; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--primary-color); }

/* About Section */
.about-section { background: var(--bg-light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { border-radius: 20px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.about-image img { width: 100%; }
.about-content h2 { font-size: 2.5rem; margin-bottom: 20px; }
.about-content .lead { font-size: 1.125rem; color: var(--primary-color); font-weight: 700; margin-bottom: 20px; }

/* Contact Section */
.contact-section { background: linear-gradient(135deg, #1a1a1a, #2d3436); color: white; }
.contact-form { background: white; color: #333; padding: 40px; border-radius: 20px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; }
.form-control {
  width: 100%; padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: 10px; font-size: 15px;
}
.form-control:focus { outline: none; border-color: var(--primary-color); }
textarea.form-control { resize: vertical; min-height: 150px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.info-icon { width: 60px; height: 60px; background: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; flex-shrink: 0; }
.info-content h4 { color: white; margin-bottom: 5px; }
.info-content p { color: rgba(255,255,255,0.85); margin: 0; }

/* Floating Toolbar */
.floating-toolbar { position: fixed; right: 30px; bottom: 30px; z-index: 999; display: flex; flex-direction: column; gap: 15px; }
.floating-btn {
  width: 58px; height: 58px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 22px;
  cursor: pointer; border: none; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease; text-decoration: none;
}
.floating-btn:hover { transform: scale(1.15); }
.call { background: #25D366; }
.email { background: #EA4335; }
.whatsapp { background: #128C7E; }
.top-btn { background: #374151; }

/* Footer */
.site-footer { background-color: var(--dark-color); color: white; padding-top: 70px; }
.footer-main { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 50px; }
.footer-logo { font-size: 2rem; font-weight: 900; margin-bottom: 20px; display: block; }
.footer-logo .do { color: var(--primary-color); }
.footer-about p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.8; }
.social-links { display: flex; gap: 12px; }
.social-link { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; }
.footer-column h4 { color: white; font-size: 1.1rem; margin-bottom: 25px; }
.footer-links li a { color: rgba(255,255,255,0.7); font-size: 14px; display: block; padding: 5px 0; transition: padding 0.3s ease; }
.footer-links li a:hover { color: white; padding-left: 8px; }
.footer-contact-item { display: flex; gap: 15px; margin-bottom: 18px; }
.footer-contact-item i { color: var(--primary-color); font-size: 20px; }
.footer-contact-item p { color: rgba(255,255,255,0.7); font-size: 14px; margin: 0; }
.footer-contact-item a { color: rgba(255,255,255,0.7); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 25px 0; display: flex; justify-content: space-between; align-items: center; }
.footer-copyright { color: rgba(255,255,255,0.6); font-size: 14px; }

@media (max-width: 991px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .hero-slider, .hero-slide { height: 500px; }
  .hero-content h1 { font-size: 2rem; }
  section { padding: 60px 0; }
  .footer-main { grid-template-columns: 1fr; }
}
