/*
Theme Name: Importador Mexico
Theme URI: https://importadormexico.com/
Author: Importador Mexico
Description: WordPress theme for a Mexico customs clearance agency serving Chinese clients.
Version: 1.0.0
Text Domain: importadormexico
*/

:root {
  --ink: #17202a;
  --muted: #5d6978;
  --line: #dce3ea;
  --paper: #f7f9fb;
  --white: #ffffff;
  --brand: #0f6b5f;
  --brand-dark: #0b4f47;
  --accent: #c89536;
  --accent-soft: #fff4da;
  --danger: #b84035;
  --shadow: 0 18px 48px rgba(20, 32, 44, 0.12);
  --radius: 8px;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 227, 234, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: grid;
  gap: 2px;
}

.brand strong {
  color: var(--brand-dark);
  font-size: 20px;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}

.button.secondary {
  background: var(--white);
  color: var(--brand-dark);
  border-color: rgba(15, 107, 95, 0.25);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(10, 45, 50, 0.88), rgba(10, 45, 50, 0.58) 46%, rgba(10, 45, 50, 0.18)),
    url("assets/port-operations.svg") center / cover no-repeat;
  color: var(--white);
}

.hero-inner {
  display: grid;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 660px;
  margin: 0 auto;
  padding: 82px 0 96px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  color: #ffe4a8;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 40px));
  margin: -62px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 3;
}

.metric {
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--brand-dark);
  font-size: 30px;
  line-height: 1.1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--paper);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-bottom: 42px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 18px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.highlight {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline strong {
  color: var(--brand);
}

.dept-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dept-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.process {
  counter-reset: step;
}

.process .card {
  position: relative;
  padding-top: 54px;
}

.process .card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 22px;
  left: 28px;
  color: var(--accent);
  font-weight: 900;
}

.cta-band {
  padding: 76px 0;
  background: var(--brand-dark);
  color: var(--white);
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-content h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

.cta-content p {
  margin: 12px 0 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(100%, 420px);
}

.site-footer {
  padding: 42px 0;
  background: #101820;
  color: rgba(255, 255, 255, 0.74);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  font-size: 14px;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .hero-inner {
    min-height: 600px;
  }

  .hero-metrics,
  .grid-2,
  .grid-3,
  .grid-4,
  .split,
  .dept-list {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cta-content,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav,
  .container,
  .hero-inner {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 68px 0;
  }

  .hero p {
    font-size: 17px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
