/*
Theme Name: Hamjing Logistics
Theme URI: https://hamjing.com/
Author: Hamjing Logistics
Description: A clean B2B freight forwarding theme for Hamjing Logistics, built for global importers shipping from China.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: hamjing-logistics
*/

:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #152029;
  background: #f6f8f9;
  --ink: #152029;
  --muted: #5a6872;
  --line: #dbe4e8;
  --surface: #ffffff;
  --surface-soft: #eef6f7;
  --green: #48c985;
  --green-deep: #17845d;
  --blue: #2f9fd6;
  --blue-deep: #126893;
  --navy: #102837;
  --shadow: 0 24px 70px rgba(18, 52, 70, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
}

body,
button,
input,
select {
  font: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 72px;
  padding: 10px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 228, 232, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 150px;
  height: 50px;
}

.brand img,
.footer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 34px);
  color: #42505a;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover {
  color: var(--blue-deep);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  font-weight: 800;
}

.header-cta {
  padding: 0 18px;
  color: #ffffff;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: clamp(460px, 58vh, 560px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(246, 248, 249, 0.98) 0%, rgba(246, 248, 249, 0.9) 46%, rgba(246, 248, 249, 0.24) 82%),
    linear-gradient(0deg, rgba(246, 248, 249, 1) 0%, rgba(246, 248, 249, 0) 20%);
}

.hero-content {
  width: min(560px, calc(100% - 40px));
  margin-left: clamp(20px, 6vw, 92px);
  padding-top: 10px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 540px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(2.25rem, 3.65vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 2.8vw, 2.95rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 520px;
  margin-bottom: 22px;
  color: #33434d;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.button {
  border: 1px solid transparent;
  padding: 0 22px;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-deep), var(--blue-deep));
  box-shadow: 0 12px 30px rgba(18, 104, 147, 0.18);
}

.button.secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
  margin: 0;
  border: 1px solid rgba(219, 228, 232, 0.9);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.trust-strip div {
  padding: 18px 20px;
}

.trust-strip div + div {
  border-left: 1px solid var(--line);
}

.trust-strip dt {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 850;
}

.trust-strip dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: clamp(44px, 5.2vw, 74px) clamp(20px, 4vw, 64px);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(300px, 0.7fr);
  column-gap: clamp(28px, 5vw, 72px);
  row-gap: 8px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto 30px;
}

.section-intro > .eyebrow,
.section-intro > h2 {
  grid-column: 1;
}

.section-intro > p {
  grid-column: 2;
  grid-row: 2;
  max-width: 520px;
  margin-bottom: 0;
}

.section-intro.compact {
  display: block;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-intro.compact h2 {
  font-size: clamp(2rem, 3vw, 3.05rem);
}

.service-finder {
  background: var(--surface);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card {
  min-height: 0;
  padding: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 159, 214, 0.4);
  box-shadow: var(--shadow);
}

.service-card.featured {
  background:
    linear-gradient(135deg, rgba(72, 201, 133, 0.12), rgba(47, 159, 214, 0.12)),
    #ffffff;
  border-color: rgba(47, 159, 214, 0.34);
}

.service-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 20px;
  overflow: hidden;
  background: var(--surface-soft);
}

.service-image a {
  display: block;
  height: 100%;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 38px;
  margin: 0 24px 18px;
  padding: 0 14px;
  border-radius: 4px;
  color: #ffffff;
  background: var(--navy);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.service-card p {
  min-height: 56px;
  margin: 0 24px 16px;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 0 24px;
  padding: 0;
  color: #33434d;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}

.service-card h3 {
  margin-left: 24px;
  margin-right: 24px;
}

.service-card li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.routes {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: #f3f8f9;
}

.routes > * {
  max-width: 1180px;
}

.route-copy {
  justify-self: end;
  max-width: 520px;
}

.lane-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lane-list a {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 750;
}

.lane-list a::after {
  color: var(--blue-deep);
  content: "→";
}

.seo-section {
  background: #ffffff;
}

.seo-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.seo-grid article,
.faq-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.seo-grid h3,
.faq-grid h3 {
  margin-bottom: 12px;
}

.seo-grid p,
.faq-grid p {
  margin-bottom: 0;
}

.industries {
  background: var(--surface);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.industry-grid article {
  min-height: 240px;
  padding: 26px;
  background: #ffffff;
}

.industry-grid span {
  display: block;
  margin-bottom: 40px;
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 900;
}

.process {
  background: var(--navy);
}

.process .eyebrow,
.process h2 {
  color: #ffffff;
}

.process .section-intro p {
  color: #c6d4db;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
  list-style: none;
}

.process-list li {
  min-height: 245px;
  padding: 28px;
  background: #173648;
}

.process-list span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  border-radius: 999px;
  color: #0d2a3a;
  background: var(--green);
  font-weight: 900;
}

.process-list h3 {
  color: #ffffff;
}

.process-list p {
  color: #c6d4db;
}

.faq-section {
  background: #f3f8f9;
}

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

.quote-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 0.72fr);
  gap: clamp(30px, 7vw, 100px);
  padding: clamp(54px, 6.5vw, 92px) clamp(20px, 6vw, 96px);
  background:
    linear-gradient(135deg, rgba(72, 201, 133, 0.14), rgba(47, 159, 214, 0.16)),
    #ffffff;
}

.quote-section > div {
  max-width: 620px;
}

.contact-card {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 20px;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: #33434d;
  font-style: normal;
  line-height: 1.55;
}

.contact-card span:first-child {
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card a,
.footer a {
  color: var(--blue-deep);
  font-weight: 800;
}

.quote-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: #33434d;
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cbd8de;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
}

textarea {
  min-height: 118px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
.header-cta:focus-visible {
  outline: 3px solid rgba(47, 159, 214, 0.28);
  outline-offset: 2px;
}

.form-notice {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 6px;
  font-weight: 750;
}

.form-notice.success {
  color: #0f5c43;
  background: rgba(72, 201, 133, 0.16);
}

.form-notice.error {
  color: #8b2c2c;
  background: rgba(207, 46, 46, 0.1);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.full {
  width: 100%;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer > div:first-child {
  display: grid;
  grid-template-columns: 144px minmax(240px, 440px);
  gap: 22px;
  align-items: center;
}

.footer img {
  height: 46px;
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 22px;
  color: #42505a;
  font-weight: 700;
}

.blog-shell {
  background: #ffffff;
}

.blog-post,
.blog-archive {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) 0;
}

.post-hero {
  margin-bottom: 36px;
}

.post-hero h1,
.blog-archive h1 {
  max-width: 820px;
  font-size: clamp(2.2rem, 4.4vw, 4.25rem);
}

.post-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.post-featured {
  margin: 34px 0 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-soft);
}

.post-featured img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.post-content {
  max-width: 760px;
}

.post-content h2 {
  margin: 42px 0 14px;
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
}

.post-content p,
.post-content li {
  color: #33434d;
  font-size: 1.04rem;
  line-height: 1.75;
}

.post-content ul {
  display: grid;
  gap: 8px;
  padding-left: 1.25rem;
}

.post-cta {
  margin-top: 48px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f8f9;
}

.post-cta h2 {
  margin-top: 0;
}

.post-list {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.post-summary {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.post-summary h2 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.text-link {
  color: var(--blue-deep);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand {
    width: 144px;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 560px;
    align-items: end;
  }

  .hero-content {
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 68px 0 40px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(246, 248, 249, 1) 0%, rgba(246, 248, 249, 0.86) 54%, rgba(246, 248, 249, 0.18) 100%),
      linear-gradient(90deg, rgba(246, 248, 249, 0.75), rgba(246, 248, 249, 0.2));
  }

  .section-intro,
  .routes,
  .quote-section {
    grid-template-columns: 1fr;
  }

  .section-intro > .eyebrow,
  .section-intro > h2,
  .section-intro > p {
    grid-column: auto;
    grid-row: auto;
    max-width: 760px;
  }

  .route-copy {
    justify-self: start;
    max-width: 760px;
  }

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

  .industry-grid,
  .seo-grid,
  .faq-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer,
  .footer > div:first-child {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 10px 16px;
    gap: 12px;
  }

  .brand {
    width: 124px;
    height: 44px;
  }

  .header-cta {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 540px;
  }

  h1 {
    font-size: clamp(1.95rem, 9vw, 2.65rem);
    line-height: 1.06;
  }

  h2 {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .hero-copy {
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .hero-actions,
  .trust-strip,
  .service-grid,
  .seo-grid,
  .faq-grid,
  .lane-list,
  .industry-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .trust-strip div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section,
  .quote-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .service-card,
  .industry-grid article,
  .process-list li,
  .quote-form {
    padding: 22px;
  }

  .service-card {
    min-height: auto;
    padding: 0 0 20px;
  }

  .service-card p {
    min-height: 0;
  }

  .service-card h3,
  .service-card p,
  .service-card ul {
    margin-left: 20px;
    margin-right: 20px;
  }

  .service-icon {
    margin-left: 20px;
    margin-right: 20px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
