/*
Theme Name: West Texas Corridor Logistics Hub
Author: West Texas Corridor Logistics Hub
Description: One-page theme for the West Texas Corridor Logistics Hub, parent company of VEGA Freight, MPH Logistics, and A2B Towing & Repairs.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wtclh
*/

:root {
  --bg: #ffffff;
  --brand: #1a1550;
  --ink: #1a1550;
  --gold: #c9a227;
  --red: #c1272d;
  --muted: #6b7080;
  --line: rgba(26, 21, 80, 0.18);
  --panel: #0a0b10;
  --font-brand: "Sora", sans-serif;
  --font-display: "Google Sans Flex", "DM Sans", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Soft atmosphere on white */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(26, 21, 80, 0.06), transparent 55%),
    radial-gradient(ellipse 40% 35% at 90% 90%, rgba(201, 162, 39, 0.08), transparent 50%),
    #ffffff;
}

.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 21, 80, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 21, 80, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, black 15%, black 75%, transparent);
  pointer-events: none;
}

.sky::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 1100px);
  height: min(70vh, 720px);
  transform: translate(-50%, -50%);
  background: url("assets/img/map.png") center / contain no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.05;
  filter: invert(1);
  pointer-events: none;
}

.horizon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28vh;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(26, 21, 80, 0.04));
  pointer-events: none;
}

.horizon-line {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 28%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand) 25%, var(--gold) 50%, var(--brand) 75%, transparent);
  opacity: 0.2;
  animation: pulse-line 6s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.12; transform: scaleX(0.98); }
  50% { opacity: 0.28; transform: scaleX(1); }
}

/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.1s;
}

.nav-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-mark span {
  color: var(--brand);
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 5vh, 5rem) 0 clamp(1.5rem, 3vh, 3rem);
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(2.6rem, 8.5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--brand);
  max-width: 16ch;
  opacity: 0;
  animation: rise 1s ease forwards 0.25s;
}

.brand .gold {
  color: var(--brand);
}

.subtext {
  margin-top: clamp(1.1rem, 2vw, 1rem);
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: rise 1s ease forwards 0.45s;
}

.subtext .lead {
  font-size: 35px;
  color: #c2141c;
}

.services-copy {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  max-width: 45rem;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
  opacity: 0;
  animation: rise 1s ease forwards 0.52s;
}

.services-copy strong {
  font-weight: 650;
  color: var(--brand);
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: clamp(1rem, 2.5vw, 1.4rem);
  font-family: var(--font-brand);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #c2141c;
  text-decoration: none;
  opacity: 0;
  animation: rise 1s ease forwards 0.6s;
  transition: color 0.25s ease;
}

.phone svg {
  width: 0.9em;
  height: 0.9em;
  flex-shrink: 0;
  fill: currentColor;
}

.phone:hover,
.phone:focus-visible {
  color: #9e1017;
  outline: none;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: clamp(1rem, 2.5vw, 1.4rem);
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #FFF;
  text-decoration: none;
  animation: rise 1s ease forwards 0.6s;
  border: 2px solid var(--red);
  background: var(--red);
  padding: 10px 20px 8px;
  border-radius: 200px;
  transition: all ease 0.3s;
}
.button:hover,
.button:focus {
  background: #FFF;
  color: var(--red);
}

/* Companies */
.companies {
  width: 100%;
  max-width: 1200px;
  margin: clamp(2rem, 6vh, 3.5rem) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  animation: rise 1.1s ease forwards 0.8s;
}

.company {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1rem, 3vw, 1.75rem);
  background: #ffffff;
  border: 1px solid rgba(26, 21, 80, 0.1);
  border-radius: 2px;
  box-shadow: 0 12px 32px rgba(26, 21, 80, 0.08);
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  min-height: 220px;
}

.company:hover {
  border-color: rgba(201, 162, 39, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(26, 21, 80, 0.14);
}

.company--a2b:hover {
  border-color: rgba(193, 39, 45, 0.55);
}

.company-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  width: 100%;
  text-decoration: none;
}

.company-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.company--vega .company-logo img {
  max-width: 260px;
}

.company--mph .company-logo img {
  max-width: 235px;
}

.company--a2b .company-logo img {
  max-width: 160px;
}

.company--custom .company-logo img {
  max-width: 220px;
}

.company-name {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  color: var(--brand);
}

.company-name a {
  color: inherit;
  text-decoration: none;
}

.company:hover .company-logo img,
.company-logo:focus-visible img {
  transform: scale(1.03);
}

.company-logo:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.company-desc {
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--muted);
}

.hub-works {
  width: 100%;
  max-width: 1200px;
  margin: clamp(3rem, 5vh, 3rem) auto 0;
  opacity: 0;
  animation: rise 1.1s ease forwards 0.95s;
  overflow:hidden;
  border-radius: 20px;
}

.hub-works img {
  display: block;
  width: 100%;
  height: auto;
}

footer {
  margin-top: auto;
  padding-top: 3rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0;
  animation: rise 1s ease forwards 1s;
}

footer a {
  color: #140a86;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover,
footer a:focus {
  color: var(--red);
}

footer p {
  margin-bottom: 6px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .companies {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .company {
    min-height: 180px;
  }

  .brand {
    max-width: 12ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  header,
  .brand,
  .subtext,
  .services-copy,
  .phone,
  .companies,
  .hub-works,
  footer {
    opacity: 1;
  }
}

/* WordPress chrome for inner pages. The landing page styles above are unchanged. */
.skip-link.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: var(--brand);
  display: block;
  font-size: 1rem;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 12px 16px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100000;
  outline: 2px solid var(--brand);
}

footer .footer-name {
  color: #140a86;
}

.entry {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 4rem) 0 2rem;
  text-align: left;
}

.entry h1,
.entry h2,
.entry h3 {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1.1;
}

.entry h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.entry h2,
.entry h3 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  margin: 2rem 0 0.6rem;
}

.entry a {
  color: #140a86;
  text-decoration: none;
}

.entry a:hover,
.entry a:focus {
  color: var(--red);
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
  margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
}

.entry article + article {
  margin-top: 2rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin-top: 2rem;
}
