/* ========================================
   Soto Machinery - Global Footer Styles
   Version: 1.1.0
   Usage: Upload to /wp-content/uploads/css/soto-footer.css
   Loaded via functions.php (site-wide)
   Changelog:
   - v1.1.0: Added full-width breakout for theme content containers
   ======================================== */

:root {
  --soto-footer-bg: #0f1f2e;
  --soto-footer-text: rgba(255,255,255,0.7);
  --soto-footer-heading: #ffffff;
  --soto-footer-border: rgba(255,255,255,0.1);
  --soto-footer-link: rgba(255,255,255,0.65);
  --soto-footer-hover: #ffffff;
  --soto-footer-accent: #0d7377;
  --soto-footer-radius: 8px;
  --soto-footer-transition: all 0.3s ease;
  --soto-footer-container: 1400px;
}

/* Footer Container
   Note: Uses full-viewport width trick to break out of theme content wrappers
   that may have padding or max-width constraints.
*/
.soto-footer {
  background: var(--soto-footer-bg);
  color: var(--soto-footer-text);
  padding: 60px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.7;
  /* Force full width even when inside a constrained parent container */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  left: 0;
  right: 0;
  box-sizing: border-box;
}

/* Clear any inherited padding that might affect full width */
.soto-footer * {
  box-sizing: border-box;
}

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

/* Footer Grid Layout */
.soto-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--soto-footer-border);
}

/* Column: Brand / Logo */
.soto-footer-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--soto-footer-heading);
  margin-bottom: 16px;
}

.soto-footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Social Icons */
.soto-footer-social {
  display: flex;
  gap: 12px;
}

.soto-footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--soto-footer-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--soto-footer-link);
  transition: var(--soto-footer-transition);
  text-decoration: none;
}

.soto-footer-social a:hover {
  background: var(--soto-footer-accent);
  color: var(--soto-footer-hover);
}

/* Column Headings */
.soto-footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--soto-footer-heading);
  margin-bottom: 20px;
}

/* Link Lists */
.soto-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.soto-footer-links li {
  margin-bottom: 10px;
}

.soto-footer-links a {
  font-size: 14px;
  color: var(--soto-footer-link);
  transition: var(--soto-footer-transition);
  text-decoration: none;
}

.soto-footer-links a:hover {
  color: var(--soto-footer-hover);
  padding-left: 4px;
}

/* Contact Column */
.soto-footer-contact p {
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.soto-footer-contact strong {
  color: var(--soto-footer-heading);
  min-width: 65px;
  flex-shrink: 0;
}

.soto-footer-contact a {
  color: var(--soto-footer-link);
  text-decoration: none;
  transition: var(--soto-footer-transition);
}

.soto-footer-contact a:hover {
  color: var(--soto-footer-hover);
}

/* Footer Bottom / Copyright */
.soto-footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 900px) {
  .soto-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .soto-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .soto-footer {
    padding: 40px 0 0;
  }
  
  .soto-footer-contact p {
    flex-direction: column;
    gap: 2px;
  }
  
  .soto-footer-contact strong {
    min-width: auto;
  }
}
