/* ==========================================
   Warsonco Robotics - Main Stylesheet
   ========================================== */

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

:root {
  --primary: #e63312;
  --primary-dark: #c0250e;
  --secondary: #1a1a2e;
  --accent: #f5a623;
  --text: #2d2d2d;
  --text-light: #666;
  --border: #e0e0e0;
  --bg-light: #f8f8f8;
  --white: #ffffff;
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Roboto Slab', serif;
  --radius: 6px;
  --shadow: 0 2px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--secondary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

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

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

ul { list-style: none; }

address { font-style: normal; }

/* ==========================================
   Layout
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.bg-light { background-color: var(--bg-light); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col.equal { align-items: start; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  background: rgba(230, 51, 18, 0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
  color: var(--secondary);
}

.section-desc { color: var(--text-light); font-size: 1.05rem; }

.section-cta { text-align: center; margin-top: 40px; }

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--bg-light);
  color: var(--primary-dark);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: var(--white);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ==========================================
   Header / Navigation
   ========================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 70px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--secondary);
  flex-shrink: 0;
}
.logo:hover { color: var(--primary); }

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}
.logo-sub {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 400;
}

.nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-link:hover { background: var(--bg-light); color: var(--primary); }

.nav-dropdown { position: relative; }
.nav-dropdown .arrow { font-size: 0.6rem; margin-left: 3px; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu a:hover { background: var(--bg-light); color: var(--primary); }

.header-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.phone-link {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.phone-link:hover { color: var(--primary); }

.header-quote { display: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  transition: all var(--transition);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(230,51,18,0.15) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(245,166,35,0.08) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 80px 0;
}

.hero-tag {
  display: inline-block;
  background: rgba(230, 51, 18, 0.2);
  color: #ff8870;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(230,51,18,0.3);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================
   Stats
   ========================================== */
.stats {
  background: var(--secondary);
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================
   Image Placeholders (for demo)
   ========================================== */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  min-height: 280px;
  text-align: center;
  padding: 20px;
}

.about-img { background: linear-gradient(135deg, #1a1a2e, #0f3460); min-height: 380px; }
.product-img { min-height: 200px; }
.product-img.cobot { background: linear-gradient(135deg, #1a1a2e, #e63312); }
.product-img.delta { background: linear-gradient(135deg, #0f3460, #16213e); }
.product-img.packer { background: linear-gradient(135deg, #1a5276, #154360); }
.product-img.vision { background: linear-gradient(135deg, #1a1a2e, #2e4057); }
.image-placeholder.large { min-height: 400px; background: linear-gradient(135deg, #1a1a2e, #0f3460); }

/* ==========================================
   About Section
   ========================================== */
.check-list { margin: 20px 0; }
.check-list li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--text-light);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================
   Products Grid
   ========================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-img-wrap { overflow: hidden; }

.product-card-body { padding: 20px; }
.product-card-body h3 { margin-bottom: 8px; font-size: 1.05rem; }
.product-card-body p { font-size: 0.88rem; margin-bottom: 12px; }

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.product-tags li {
  background: var(--bg-light);
  color: var(--text-light);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* Products Page */
.products-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.product-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-detail-body { padding: 28px; }
.product-detail-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.product-desc { font-size: 0.95rem; margin-bottom: 16px; }

.feature-list { margin: 16px 0 24px; }
.feature-list li {
  padding: 5px 0 5px 24px;
  position: relative;
  color: var(--text-light);
  font-size: 0.9rem;
}
.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.product-category { padding: 60px 0; }
.product-category:nth-child(even) { background: var(--bg-light); }

/* ==========================================
   Values
   ========================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.value-item {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.value-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}
.value-item h3 { margin-bottom: 10px; font-size: 1.05rem; }
.value-item p { font-size: 0.88rem; }

/* ==========================================
   Mission Cards
   ========================================== */
.mission-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}
.mission-icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.mission-card h3 { margin-bottom: 12px; }

/* ==========================================
   Advantages
   ========================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-item {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  background: var(--white);
}
.advantage-item h4 { margin-bottom: 8px; color: var(--secondary); }
.advantage-item p { font-size: 0.88rem; margin: 0; }

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #c0250e 100%);
  padding: 80px 0;
}

.cta-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta-inner h2 { color: var(--white); margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ==========================================
   Page Hero (inner pages)
   ========================================== */
.page-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  padding: 70px 0 50px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 16px; }

.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }

/* ==========================================
   Contact Page
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { margin-bottom: 32px; }

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.info-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.info-item h4 { margin-bottom: 4px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); }
.info-item p { margin: 0; }
.info-item a { color: var(--text); }
.info-item a:hover { color: var(--primary); }

.contact-form-wrap {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form-wrap h3 { margin-bottom: 24px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}
.required { color: var(--primary); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-error {
  background: #fff0ee;
  color: var(--primary);
  border: 1px solid rgba(230,51,18,0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.success-icon {
  width: 60px;
  height: 60px;
  background: #e8f8ed;
  color: #27ae60;
  border-radius: 50%;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.form-success h3 { margin-bottom: 12px; }
.form-success p { margin-bottom: 24px; }

/* ==========================================
   Error Page
   ========================================== */
.error-page { padding: 120px 0; text-align: center; }
.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: -20px;
}
.error-page h2 { margin-bottom: 12px; }
.error-page p { margin-bottom: 28px; }

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 10px; }
.footer-established { font-size: 0.8rem !important; color: rgba(255,255,255,0.4) !important; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 9px;
}
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--white); }

.footer-col address p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 10px;
}
.footer-col address a {
  color: rgba(255,255,255,0.6);
}
.footer-col address a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); margin: 0; }

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .header-contact .phone-link { display: none; }
  .header-quote { display: inline-block; }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px 24px;
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 999;
    margin-left: 0;
  }
  .nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { padding: 12px 16px; }
  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--primary);
    margin: 6px 0 6px 20px;
    border-radius: 0;
    display: none;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }

  .menu-toggle { display: flex; }

  .section { padding: 60px 0; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .col-image { order: -1; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .hero { min-height: 500px; }
  .hero-content { padding: 60px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}

@media (max-width: 520px) {
  .products-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-form-wrap { padding: 24px 20px; }
}
