/* ========================================
   Soto Machinery - Homepage Styles
   Version: 2.0.0
   Note: Footer styles are in global soto-footer.css
   ======================================== */

/* CSS Variables */
:root {
  --soto-primary: #0d7377;
  --soto-secondary: #145374;
  --soto-accent: #f5a623;
  --soto-text: #2d3748;
  --soto-text-light: #5a6b7d;
  --soto-bg: #f7f9fc;
  --soto-white: #ffffff;
  --soto-border: #e8edf2;
  --soto-radius: 8px;
  --soto-shadow: 0 4px 20px rgba(0,0,0,0.08);
  --soto-shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --soto-transition: all 0.3s ease;
  --soto-container: 1400px;
}

/* Base Reset */
.soto-homepage * { box-sizing: border-box; }
.soto-homepage { margin: 0; padding: 0; }
.soto-homepage {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--soto-text);
  line-height: 1.7;
  background: var(--soto-white);
}

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

/* ========================================
   Hero Section
   ======================================== */
.soto-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--soto-secondary) 0%, var(--soto-primary) 100%);
  overflow: hidden;
}

.soto-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://www.soto-epmachinery.com/wp-content/uploads/2026/09/hero-banner-1.webp') center/cover no-repeat;
  opacity: 0.4;
  z-index: 0;
}

.soto-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(15,52,73,0.78) 0%, rgba(8,88,92,0.72) 100%);
  z-index: 0;
}

.soto-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.soto-hero-text {
  color: var(--soto-white);
  max-width: 620px;
}

.soto-hero-image {
  position: relative;
  z-index: 1;
  text-align: center;
}

.soto-hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 3px solid rgba(255,255,255,0.2);
}

.soto-hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--soto-white);
}

.soto-hero h1 {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--soto-white);
}

.soto-hero-desc {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 32px;
}

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

.soto-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--soto-radius);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--soto-transition);
  text-decoration: none;
}

.soto-btn-primary {
  background: var(--soto-accent);
  color: var(--soto-text);
}

.soto-btn-primary:hover {
  background: #ffb83d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.4);
}

.soto-btn-outline {
  background: transparent;
  color: var(--soto-white);
  border: 2px solid rgba(255,255,255,0.5);
}

.soto-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--soto-white);
}

.soto-hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.soto-stat-item {
  text-align: left;
}

.soto-stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--soto-white);
  line-height: 1.2;
  margin-bottom: 4px;
}

.soto-stat-label {
  font-size: 14px;
  opacity: 0.85;
}

/* ========================================
   Trust Bar
   ======================================== */
.soto-trust-bar {
  background: var(--soto-white);
  border-bottom: 1px solid var(--soto-border);
  padding: 24px 0;
}

.soto-trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.soto-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.soto-trust-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--soto-primary), var(--soto-secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.soto-trust-text strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--soto-text);
  margin-bottom: 2px;
}

.soto-trust-text span {
  font-size: 13px;
  color: var(--soto-text-light);
}

/* ========================================
   Section Base
   ======================================== */
.soto-section {
  padding: 80px 0;
}

.soto-section-gray {
  background: var(--soto-bg);
}

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

.soto-section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--soto-primary);
  background: rgba(13,115,119,0.1);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.soto-section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--soto-text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.soto-section-header p {
  font-size: 17px;
  color: var(--soto-text-light);
  line-height: 1.7;
}

/* ========================================
   Product Categories
   ======================================== */
.soto-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.soto-category-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--soto-white);
  box-shadow: var(--soto-shadow);
  transition: var(--soto-transition);
  border: 1px solid var(--soto-border);
  text-decoration: none;
  color: inherit;
  display: block;
}

.soto-category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--soto-shadow-hover);
}

.soto-category-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.soto-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.soto-category-card:hover .soto-category-image img {
  transform: scale(1.05);
}

.soto-category-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.soto-category-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--soto-accent);
  color: var(--soto-text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}

.soto-category-content {
  padding: 28px;
}

.soto-category-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--soto-text);
  margin-bottom: 12px;
}

.soto-category-content p {
  font-size: 15px;
  color: var(--soto-text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.soto-category-products {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.soto-category-products li {
  font-size: 14px;
  color: var(--soto-text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.soto-category-products li::before {
  content: '\2713';
  color: var(--soto-primary);
  font-weight: 700;
  font-size: 12px;
}

.soto-category-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--soto-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--soto-transition);
}

.soto-category-link:hover {
  gap: 10px;
}

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

.soto-product-card {
  background: var(--soto-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--soto-shadow);
  transition: var(--soto-transition);
  border: 1px solid var(--soto-border);
  text-decoration: none;
  color: inherit;
  display: block;
}

.soto-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--soto-shadow-hover);
}

.soto-product-image {
  height: 200px;
  overflow: hidden;
  background: var(--soto-bg);
}

.soto-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.soto-product-card:hover .soto-product-image img {
  transform: scale(1.05);
}

.soto-product-body {
  padding: 20px;
}

.soto-product-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--soto-primary);
  background: rgba(13,115,119,0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.soto-product-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--soto-text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.soto-product-body p {
  font-size: 13px;
  color: var(--soto-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.soto-product-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--soto-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--soto-transition);
}

.soto-product-link:hover {
  gap: 10px;
}

/* ========================================
   Why Choose Us / Features
   ======================================== */
.soto-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.soto-feature-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--soto-white);
  border-radius: 12px;
  box-shadow: var(--soto-shadow);
  transition: var(--soto-transition);
  border: 1px solid var(--soto-border);
}

.soto-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--soto-shadow-hover);
}

.soto-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--soto-primary), var(--soto-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--soto-white);
}

.soto-feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--soto-text);
  margin-bottom: 10px;
}

.soto-feature-card p {
  font-size: 14px;
  color: var(--soto-text-light);
  line-height: 1.7;
}

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

.soto-industry-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
  display: block;
  text-decoration: none;
  color: inherit;
}

.soto-industry-card img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.soto-industry-card:hover img {
  transform: scale(1.05);
}

.soto-industry-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
}

.soto-industry-overlay {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: var(--soto-white);
}

.soto-industry-overlay h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.soto-industry-overlay span {
  font-size: 13px;
  opacity: 0.85;
}

/* ========================================
   Case Studies
   ======================================== */
.soto-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.soto-case-card {
  background: var(--soto-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--soto-shadow);
  transition: var(--soto-transition);
  border: 1px solid var(--soto-border);
  text-decoration: none;
  color: inherit;
  display: block;
}

.soto-case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--soto-shadow-hover);
}

.soto-case-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.soto-case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.soto-case-card:hover .soto-case-image img {
  transform: scale(1.05);
}

.soto-case-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--soto-accent);
  color: var(--soto-text);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.soto-case-body {
  padding: 24px;
}

.soto-case-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--soto-text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.soto-case-body p {
  font-size: 14px;
  color: var(--soto-text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.soto-case-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.soto-case-meta-item {
  text-align: center;
  flex: 1;
  padding: 10px;
  background: var(--soto-bg);
  border-radius: 6px;
}

.soto-case-meta-item strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--soto-primary);
  line-height: 1.2;
}

.soto-case-meta-item span {
  font-size: 11px;
  color: var(--soto-text-light);
}

/* ========================================
   FAQ Section
   ======================================== */
.soto-faq {
  max-width: 800px;
  margin: 0 auto;
}

.soto-faq-item {
  background: var(--soto-white);
  border: 1px solid var(--soto-border);
  border-radius: var(--soto-radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--soto-transition);
}

.soto-faq-item:hover {
  border-color: var(--soto-primary);
}

.soto-faq-item.active {
  border-color: var(--soto-primary);
  box-shadow: 0 2px 12px rgba(13,115,119,0.1);
}

.soto-faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--soto-text);
  user-select: none;
}

.soto-faq-icon {
  font-size: 22px;
  color: var(--soto-primary);
  transition: transform 0.3s ease;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 16px;
}

.soto-faq-item.active .soto-faq-icon {
  transform: rotate(45deg);
}

.soto-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}

.soto-faq-item.active .soto-faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

.soto-faq-answer-inner {
  font-size: 15px;
  color: var(--soto-text-light);
  line-height: 1.7;
}

/* ========================================
   Blog Section — matches soto-recent-posts shortcode output
   Shortcode outputs: .bh-blog-card, .bh-blog-img, .bh-blog-body, .bh-blog-date, .bh-blog-link
   ======================================== */
.soto-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.soto-blog-grid-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}

.soto-blog-grid .bh-blog-card {
  background: var(--soto-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--soto-shadow);
  transition: var(--soto-transition);
  border: 1px solid var(--soto-border);
  display: block;
}

.soto-blog-grid .bh-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--soto-shadow-hover);
}

.soto-blog-grid .bh-blog-img {
  overflow: hidden;
  display: block;
  background: var(--soto-bg);
}

.soto-blog-grid .bh-blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.soto-blog-grid .bh-blog-card:hover .bh-blog-img img {
  transform: scale(1.05);
}

.soto-blog-grid .bh-blog-body {
  padding: 22px;
}

.soto-blog-grid .bh-blog-date {
  font-size: 12px;
  color: var(--soto-text-light);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.soto-blog-grid .bh-blog-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--soto-text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.soto-blog-grid .bh-blog-body h3 a {
  color: inherit;
  text-decoration: none;
  transition: var(--soto-transition);
}

.soto-blog-grid .bh-blog-body h3 a:hover {
  color: var(--soto-primary);
}

.soto-blog-grid .bh-blog-body p {
  font-size: 14px;
  color: var(--soto-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.soto-blog-grid .bh-blog-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--soto-primary);
  text-decoration: none;
  display: inline-block;
  transition: var(--soto-transition);
}

.soto-blog-grid .bh-blog-link:hover {
  gap: 10px;
}

/* ========================================
   CTA / Contact Form Section
   ======================================== */
.soto-cta-section {
  background: linear-gradient(135deg, var(--soto-secondary) 0%, var(--soto-primary) 100%);
  color: var(--soto-white);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.soto-cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://www.soto-epmachinery.com/wp-content/uploads/2026/09/hero-banner-1.webp') center/cover no-repeat;
  opacity: 0.1;
}

.soto-cta-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.soto-cta-text h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--soto-white);
  line-height: 1.3;
}

.soto-cta-text p {
  font-size: 17px;
  opacity: 0.92;
  margin-bottom: 28px;
  line-height: 1.7;
}

.soto-cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.soto-cta-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
}

.soto-cta-contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.soto-cta-contact-item a {
  color: var(--soto-white);
  text-decoration: none;
  font-weight: 500;
}

.soto-cta-contact-item a:hover {
  text-decoration: underline;
}

.soto-cta-form-wrap {
  background: var(--soto-white);
  border-radius: 12px;
  padding: 32px;
  color: var(--soto-text);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.soto-cta-form-wrap h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--soto-text);
}

.soto-cta-form-wrap p {
  font-size: 14px;
  color: var(--soto-text-light);
  margin-bottom: 20px;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1100px) {
  .soto-products {
    grid-template-columns: repeat(2, 1fr);
  }
  .soto-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .soto-blog-grid,
  .soto-blog-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .soto-categories,
  .soto-cases,
  .soto-blog-grid,
  .soto-blog-grid-4,
  .soto-cta-content {
    grid-template-columns: 1fr !important;
  }

  .soto-industries {
    grid-template-columns: repeat(2, 1fr);
  }

  .soto-trust-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .soto-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 0;
  }

  .soto-hero-text {
    max-width: 100%;
  }

  .soto-hero-image {
    display: none;
  }

  .soto-hero h1 {
    font-size: 38px;
  }

  .soto-section {
    padding: 60px 0;
  }

  .soto-section-header h2 {
    font-size: 30px;
  }
}

@media (max-width: 600px) {
  .soto-products,
  .soto-features,
  .soto-industries,
  .soto-trust-inner {
    grid-template-columns: 1fr;
  }

  .soto-hero {
    min-height: auto;
  }

  .soto-hero-inner {
    padding: 60px 0;
  }

  .soto-hero h1 {
    font-size: 30px;
  }

  .soto-hero-desc {
    font-size: 16px;
  }

  .soto-hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .soto-section-header h2 {
    font-size: 26px;
  }

  .soto-category-products {
    grid-template-columns: 1fr;
  }

  .soto-cta-form-wrap {
    padding: 24px;
  }
}
