/*
Theme Name: RAY KARGO
Theme URI: https://ray-kargo.local/
Author: RAY KARGO
Description: Landing page theme for cargo delivery and international logistics from China.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: ray-kargo
*/

:root {
  --ink: #13171c;
  --muted: #68727d;
  --line: #d7dde3;
  --paper: #f4f5f6;
  --white: #ffffff;
  --graphite: #252c33;
  --accent: #b91f32;
  --gold: #c79b55;
  --shadow: 0 24px 70px rgba(13, 17, 22, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-success {
  color: #16733f;
  font-weight: 700;
}

.form-error {
  color: #b91f32;
  font-weight: 700;
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 64px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(10, 13, 17, 0.88), rgba(10, 13, 17, 0));
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 154px;
  height: 118px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.topbar-cta:hover {
  color: var(--white);
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

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

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.96) 0%, rgba(24, 29, 35, 0.78) 46%, rgba(24, 29, 35, 0.14) 100%),
    linear-gradient(0deg, rgba(7, 9, 12, 0.86) 0%, rgba(7, 9, 12, 0) 38%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding-top: 72px;
}

.hero-logo-card {
  width: min(190px, 54vw);
  margin-bottom: 24px;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.hero-logo-card img {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-text {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.hero-actions,
.hero-stats,
.trust-band,
.service-grid,
.route-grid,
.contact-section,
.footer {
  display: flex;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 46px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(185, 31, 50, 0.28);
}

.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.full {
  width: 100%;
}

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

.hero-stats div {
  min-width: 146px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.hero-stats dt {
  font-size: 24px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.trust-band {
  width: min(1180px, calc(100% - 36px));
  margin: -52px auto 0;
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.trust-band div {
  flex: 1;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.trust-band div:last-child {
  border-right: 0;
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.trust-band span,
.service-card p,
.calculator-copy p,
.timeline p,
.contact-section p,
.footer {
  color: var(--muted);
  line-height: 1.65;
}

.section,
.calculator-section,
.contact-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card,
.quote-card,
.route-panel,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(13, 17, 22, 0.06);
}

.service-card {
  padding: 26px;
}

.service-icon,
.route-panel span {
  color: var(--accent);
  font-weight: 900;
}

.service-icon {
  display: inline-flex;
  margin-bottom: 28px;
}

.calculator-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}

.quote-card,
.lead-form {
  padding: 28px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.privacy-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.privacy-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.privacy-consent a,
.footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(185, 31, 50, 0.13);
  border-color: var(--accent);
}

.result {
  margin: 22px 0;
  padding: 22px;
  border-radius: 8px;
  background: #f1f3f5;
  border: 1px solid var(--line);
}

.result span,
.result small {
  display: block;
  color: var(--muted);
}

.result strong {
  display: block;
  margin: 4px 0;
  color: var(--graphite);
  font-size: 40px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.route-panel {
  padding: 24px;
}

.privacy-text {
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 9, 12, 0.68);
}

.privacy-modal[hidden] {
  display: none;
}

.privacy-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: 30px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.privacy-dialog h2 {
  margin: 0 44px 18px 0;
  color: var(--ink);
  font-size: 28px;
}

.privacy-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #f8fafc;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.route-panel span {
  display: block;
  margin-bottom: 14px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-top: 58px;
}

.timeline span {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--graphite);
  color: var(--white);
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
  padding-bottom: 88px;
}

.form-note {
  margin: 14px 0 0;
  font-size: 12px;
}

.contacts-info {
  padding-top: 0;
  padding-bottom: 80px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contact-item span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-item a,
.contact-item strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.contact-item a {
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--accent);
}

.footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 980px) {
  .topbar {
    position: absolute;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 860px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .trust-band,
  .calculator-section,
  .contact-section {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .service-grid,
  .route-grid,
  .timeline,
  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 14px 18px;
  }

  .brand {
    width: 132px;
    height: 102px;
    padding: 9px 12px;
  }

  .topbar-cta {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 9, 12, 0.95), rgba(24, 29, 35, 0.76)),
      linear-gradient(0deg, rgba(7, 9, 12, 0.86), rgba(7, 9, 12, 0));
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-top: 56px;
  }

  h1 {
    font-size: 42px;
  }

  .button {
    width: 100%;
  }

  .service-grid,
  .route-grid,
  .timeline,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-stats div {
    min-width: 0;
    padding: 12px 10px;
  }

  .hero-stats dt {
    font-size: 17px;
    line-height: 1.1;
  }

  .hero-stats dd {
    font-size: 12px;
    line-height: 1.3;
  }

  .section,
  .calculator-section,
  .contact-section {
    padding-top: 72px;
  }

  .footer {
    display: grid;
  }
}
