/*
Theme Name: CARGOGO Updated
Theme URI: https://www.cargo-go.us
Author: CARGOGO
Description: Professional cargo delivery website for CARGOGO.
Version: 3.1.6
Requires at least: 5.9
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: cargogo
*/

:root {
  --red: #e63946;
  --purple: #8b3dce;
  --blue: #2563eb;
  --black: #0a0a0a;
  --charcoal: #1a1a1a;
  --charcoal-light: #2d2d2d;
  --grey: #4a4a4a;
  --grey-muted: #9ca3af;
  --white: #ffffff;
  --off-white: #f4f4f5;
  --brand-gradient: linear-gradient(90deg, #e63946 0%, #8b3dce 52%, #2563eb 100%);
  --brand-gradient-vertical: linear-gradient(160deg, #0a0a0a 0%, #1a1030 45%, #0f1f4a 100%);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1160px;
  --header-height: 96px;
  --header-bg: #0a0a0a;
  --footer-bg: #0a0a0a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #374151;
  background: var(--white);
}

img { max-width: 100%; display: block; }

.site-homepage .wp-block-html {
  margin: 0;
}

.site-homepage > .wp-block-html:first-child {
  margin-top: 0;
}

a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--red); }

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  height: 76px;
  width: auto;
  max-width: min(420px, 78vw);
  object-fit: contain;
}

.logo:hover { opacity: 0.92; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--white); }

.nav-cta {
  background: var(--brand-gradient);
  color: var(--white) !important;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
}

.nav-cta:hover {
  filter: brightness(1.1);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 3rem) 0 4rem;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(230, 57, 70, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
    var(--brand-gradient-vertical);
  color: var(--white);
}

.hero-content { position: relative; max-width: 760px; }

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(139, 61, 206, 0.25);
  border: 1px solid rgba(139, 61, 206, 0.5);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
}

.hero h1 span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-tagline {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-gradient); color: var(--white); }
.btn-primary:hover { filter: brightness(1.1); color: var(--white); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: var(--white); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

.trust-bar {
  background: var(--charcoal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}

.trust-icon { font-size: 1.25rem; }
.section { padding: 5.5rem 0; }
.section-alt { background: var(--off-white); }

.section-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2,
.split-text h2,
.contact-info h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
}

.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.split-text p { margin: 1rem 0 0; }

.split-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-top: 4px solid var(--purple);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.split-card h3 {
  margin: 0 0 1.25rem;
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  color: var(--charcoal);
}

.check-list { margin: 0; padding: 0; list-style: none; }

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover { border-color: rgba(139, 61, 206, 0.35); }

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--brand-gradient);
  border-radius: 10px;
}

.service-card h3 { margin: 0 0 0.75rem; font-size: 1.1rem; color: var(--charcoal); }
.service-card p { margin: 0; font-size: 0.95rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature {
  padding: 2rem;
  background: var(--white);
  border-left: 4px solid var(--purple);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}

.feature h3 { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--charcoal); }
.feature p { margin: 0; }

.cta-banner {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(230, 57, 70, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 50%, rgba(37, 99, 235, 0.25) 0%, transparent 55%),
    var(--charcoal);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 0.75rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.cta-inner p {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info p { margin: 1rem 0 2rem; }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { margin-bottom: 1.25rem; }

.contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-muted);
  margin-bottom: 0.25rem;
}

.contact-list a { font-size: 1.15rem; font-weight: 600; color: var(--charcoal); }
.contact-list a:hover { color: var(--red); }

.contact-form {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin: 0 0 1.5rem;
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  color: var(--charcoal);
}

.form-row { margin-bottom: 1.1rem; }

.form-row label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: #374151;
  background: var(--off-white);
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 61, 206, 0.15);
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--grey-muted);
  text-align: center;
}

.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
}

.footer-brand .logo img {
  height: 50px;
  max-width: 280px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
}

.footer-brand p { margin: 0.5rem 0 0; font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: rgba(255, 255, 255, 0.85); font-weight: 500; }
.footer-links a:hover { color: var(--red); }

.footer-copy {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  text-align: center;
}

.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 960px) {
  .card-grid,
  .wp-block-columns.card-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .split-layout,
  .contact-layout,
  .wp-block-columns.split-layout,
  .wp-block-columns.contact-layout { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 1.5rem, var(--max-width));
  }

  .section { padding: 3.5rem 0; }

  .nav-toggle { display: flex; }

  .site-header .logo img {
    height: 58px;
    max-width: min(300px, 72vw);
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 1.5rem;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .site-header.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a { width: 100%; padding: 0.9rem 1.25rem; text-align: center; }
  .nav-cta { margin: 0.5rem 1.25rem 0; width: calc(100% - 2.5rem); }
  .trust-grid,
  .wp-block-columns.trust-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .card-grid,
  .feature-grid,
  .wp-block-columns.card-grid,
  .wp-block-columns.feature-grid { grid-template-columns: 1fr !important; }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .footer-brand .logo {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .footer-brand .logo img {
    height: 50px;
    max-width: min(280px, 80vw);
    margin-inline: auto;
  }

  .footer-links { justify-content: center; }
  .hero { min-height: auto; padding-bottom: 3rem; }

  .hero h1,
  .hero .wp-block-heading {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .site-homepage .wp-block-columns {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 1.25rem !important;
  }

  .site-homepage .wp-block-columns > .wp-block-column {
    width: 100% !important;
    flex-basis: 100% !important;
    min-width: 0 !important;
  }

  .service-card,
  .split-card,
  .wp-block-group.service-card,
  .wp-block-group.split-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .trust-grid,
  .wp-block-columns.trust-grid { grid-template-columns: 1fr !important; }
  .hero-actions,
  .hero-actions.wp-block-buttons { flex-direction: column; }
  .hero-actions .btn,
  .hero-actions .wp-block-button,
  .hero-actions .wp-block-button__link { width: 100%; }
}

/* WordPress block editor layout */
.site-homepage .wp-block-group { margin: 0; }

.wp-block-columns.trust-grid,
.wp-block-columns.card-grid,
.wp-block-columns.feature-grid,
.wp-block-columns.split-layout,
.wp-block-columns.contact-layout {
  display: grid !important;
  gap: 1.5rem;
  margin-bottom: 0;
}

.wp-block-columns.trust-grid { grid-template-columns: repeat(4, 1fr); }
.wp-block-columns.card-grid { grid-template-columns: repeat(3, 1fr); }
.wp-block-columns.feature-grid,
.wp-block-columns.split-layout,
.wp-block-columns.contact-layout { grid-template-columns: repeat(2, 1fr); }

.wp-block-columns.trust-grid > .wp-block-column,
.wp-block-columns.card-grid > .wp-block-column,
.wp-block-columns.feature-grid > .wp-block-column,
.wp-block-columns.split-layout > .wp-block-column,
.wp-block-columns.contact-layout > .wp-block-column {
  flex-basis: auto !important;
  width: auto !important;
}

.hero .wp-block-heading span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-actions.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero .wp-block-button__link,
.cta-banner .wp-block-button__link {
  background: var(--brand-gradient);
  color: var(--white) !important;
  border-radius: 8px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
}

.hero .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: var(--white) !important;
}

.wp-block-list.check-list {
  list-style: none;
  padding-left: 0;
}

.wp-block-list.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.wp-block-list.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

p.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  background: var(--brand-gradient);
  border-radius: 10px;
}

.site-homepage > .wp-block-group.alignfull {
  max-width: none;
}

.site-homepage .wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(0.75rem, env(safe-area-inset-left));
  padding-right: max(0.75rem, env(safe-area-inset-right));
}

.site-homepage .wp-block-columns {
  width: 100%;
  max-width: 100%;
}
