/*
Theme Name: EquipXchange
Description: Tema a medida para EquipXchange – maquinaria pesada y repuestos para Latinoamérica. Header y footer propios, pensado para construir las páginas con Elementor. Desarrollado por DNG Studio.
Author: DNG Studio
Author URI: https://dngstudio.co
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: equipxchange
*/

/* =========================================================
   Base
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--eqx-font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--eqx-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--eqx-font-head);
  line-height: 1.2;
  color: var(--eqx-ink);
}

a {
  color: var(--eqx-primary);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  word-wrap: normal !important;
}

.skip-link:focus {
  position: fixed !important;
  top: 8px;
  left: 8px;
  z-index: 100000;
  width: auto;
  height: auto;
  clip: auto;
  background: #fff;
  color: var(--eqx-ink);
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[id] {
  scroll-margin-top: calc(var(--eqx-header-h) + 16px);
}

/* Contenido normal (páginas sin Elementor) */
.eqx-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* Páginas construidas con Elementor: sin restricciones */
.elementor-page .eqx-content {
  max-width: none;
  padding: 0;
}

/* =========================================================
   EquipXchange design tokens (mismos colores del sitio)
   ========================================================= */
:root {
  --eqx-primary: #dd6b20;
  --eqx-primary-hover: #f37c29;
  --eqx-ink: #111111;
  --eqx-dark: #141414;
  --eqx-gray: #9e9d9d;
  --eqx-border: #e0e0e0;
  --eqx-cream: #e8e6e1;
  --eqx-offwhite: #faf9f7;
  --eqx-font-head: 'Rubik', sans-serif;
  --eqx-font-body: 'Source Sans Pro', sans-serif;
  --eqx-header-h: 78px;
}

/* =========================================================
   HEADER
   ========================================================= */
.eqx-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease;
}

.eqx-header.is-scrolled {
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
}

.eqx-header-inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--eqx-header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* --- logo --- */
.eqx-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.eqx-logo img {
  max-height: 52px;
  width: auto;
  display: block;
}

.eqx-logo-text {
  font-family: var(--eqx-font-head);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.5px;
  color: #fff;
  text-decoration: none;
}

.eqx-logo-text span {
  color: var(--eqx-primary);
}

/* --- nav --- */
.eqx-nav ul.eqx-menu {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eqx-nav a {
  font-family: var(--eqx-font-head);
  font-weight: 500;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.eqx-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--eqx-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.eqx-nav a:hover {
  color: var(--eqx-primary-hover);
}

.eqx-nav a:hover::after {
  transform: scaleX(1);
}

/* --- CTA --- */
.eqx-cta {
  font-family: var(--eqx-font-head);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff !important;
  background: var(--eqx-primary);
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 26px -10px rgba(221, 107, 32, 0.55);
  transition: background 0.25s ease, transform 0.25s ease;
}

.eqx-cta:hover {
  background: var(--eqx-primary-hover);
  transform: translateY(-2px);
}

/* --- burger --- */
.eqx-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.eqx-burger span {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.eqx-burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.eqx-burger.open span:nth-child(2) {
  opacity: 0;
}

.eqx-burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- mobile --- */
@media (max-width: 1024px) {
  .eqx-burger {
    display: flex;
  }

  .eqx-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.6);
    display: none;
  }

  .eqx-nav.open {
    display: block;
  }

  .eqx-nav ul.eqx-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
  }

  .eqx-nav a {
    display: block;
    padding: 14px 28px;
  }

  .eqx-nav a::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .eqx-cta {
    display: none;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.eqx-footer {
  background: #000;
  color: #c9c9c9;
  font-family: var(--eqx-font-body);
}

.eqx-footer .custom-logo-link {
  display: inline-block;
}

.eqx-footer .custom-logo {
  max-height: 60px;
  width: auto;
  display: block;
}

.eqx-footer-grid {
  max-width: 1290px;
  margin: 0 auto;
  padding: 70px 24px 50px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.eqx-footer .eqx-logo-text {
  color: #fff;
  font-size: 24px;
}

.eqx-footer-blurb {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--eqx-gray);
  max-width: 340px;
}

.eqx-footer h4 {
  font-family: var(--eqx-font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}

.eqx-footer h4::after {
  content: '';
  display: block;
  width: 34px;
  height: 3px;
  background: var(--eqx-primary);
  border-radius: 2px;
  margin-top: 10px;
}

.eqx-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eqx-footer ul li {
  margin-bottom: 10px;
}

.eqx-footer a {
  color: #c9c9c9;
  text-decoration: none;
  transition: color 0.25s ease;
}

.eqx-footer a:hover {
  color: var(--eqx-primary-hover);
}

.eqx-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.eqx-footer-bottom-inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--eqx-gray);
}

.eqx-footer-bottom a {
  color: var(--eqx-primary-hover);
  font-weight: 600;
}

@media (max-width: 900px) {
  .eqx-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 54px 24px 36px;
  }

  .eqx-footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }
}
