@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

/*
Theme Name: Kanaan Recovery Theme
Theme URI: https://kanaantrucking.com
Author: Kanaan Recovery
Description: Recovery theme for Kanaan Trucking Services.
Version: 1.0.0
Text Domain: kanaan-recovery
*/

:root {
  --kts-red: #a91015;
  --kts-red-dark: #860d11;
  --kts-black: #14181d;
  --kts-text: #24272c;
  --kts-light: #f4f5f7;
}

* { box-sizing: border-box; }
html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--kts-text);
  background: #ffffff;
}

.site-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

a { color: var(--kts-red); }
a:hover { color: var(--kts-red-dark); }

.site-header {
  background: linear-gradient(105deg, #23262e 0%, #111317 100%);
  border-bottom: 3px solid #0b0c10;
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo img {
  width: 190px;
  max-width: 100%;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-list > li {
  position: relative;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 8px 12px;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffd53d;
}

.main-nav .menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.main-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 220px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #161b24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 16px 28px rgba(5, 8, 14, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 30;
}

.main-nav .sub-menu li + li {
  margin-top: 4px;
}

.main-nav .sub-menu a {
  width: 100%;
  justify-content: flex-start;
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .apply-btn {
  background: linear-gradient(135deg, #c81117 0%, #97070d 100%);
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
}

.page-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 20px 50px;
  width: 100%;
  flex: 1 0 auto;
}

.hero {
  background: linear-gradient(140deg, rgba(23, 27, 35, 0.86), rgba(7, 9, 13, 0.85)), url('/wp-content/themes/kanaan-recovery/assets/images/home-hero-bg.jpeg') center/cover no-repeat;
  border-radius: 12px;
  padding: 80px 40px;
  color: #fff;
}

.hero h1 {
  margin: 0 0 14px;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.hero p {
  margin: 0;
  max-width: 760px;
  font-size: 1.12rem;
}

.section {
  padding: 34px 0;
}

.section h2 {
  margin: 0 0 14px;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0.01em;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.feature {
  background: var(--kts-light);
  border-left: 4px solid var(--kts-red);
  border-radius: 8px;
  padding: 14px;
  font-weight: 600;
}

.home-hero {
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(10, 13, 20, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(0deg, rgba(8, 10, 16, 0.18), rgba(8, 10, 16, 0.18)),
    url('/wp-content/themes/kanaan-recovery/assets/images/home-hero-bg.jpeg') center center / cover no-repeat;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(70deg, rgba(5, 8, 13, 0.86) 5%, rgba(5, 8, 13, 0.42) 46%, rgba(5, 8, 13, 0.08) 74%),
    radial-gradient(circle at 76% 22%, rgba(37, 130, 255, 0.2), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.home-hero > * {
  position: relative;
  z-index: 2;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 6px;
  background: rgba(169, 16, 21, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #f6f8fb;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-hero p {
  color: rgba(247, 249, 252, 0.95);
  max-width: 630px;
  line-height: 1.55;
  font-size: 1.02rem;
}

.home-hero-actions {
  margin-top: 20px;
}

.section-kicker {
  margin: 0 0 6px;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--kts-red);
  letter-spacing: 0.02em;
}

.section-emphasis {
  margin: 26px auto 0;
  max-width: 860px;
  text-align: center;
  font-style: italic;
  font-weight: 700;
  color: #2e333e;
  line-height: 1.6;
}

.home-section {
  margin-top: 8px;
  text-align: center;
}

.section-head {
  max-width: 920px;
  margin: 0 auto;
}

.section-head p {
  margin: 0;
  color: #4a5462;
  line-height: 1.7;
  font-size: 1.02rem;
}

.home-split {
  margin: 34px 0;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  min-height: 355px;
  border-radius: 0;
  overflow: hidden;
  background: #12161f;
}

.home-split.home-split-reverse {
  grid-template-columns: 1fr 1.08fr;
}

.home-split-media {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    url('/wp-content/themes/kanaan-recovery/assets/images/home-sets-apart.jpg') center/cover no-repeat;
  min-height: 300px;
}

.home-split-media-alt {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    url('/wp-content/themes/kanaan-recovery/assets/images/home-reviews.jpg') center/cover no-repeat;
  filter: saturate(1.05);
}

.home-split-content {
  position: relative;
  background: linear-gradient(135deg, #1e222a 0%, #2a2f3a 100%);
  color: #f4f7fb;
  padding: 36px 34px;
  border-left: 5px solid var(--kts-red);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-split-content h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-style: italic;
}

.home-split-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.home-split-content li {
  position: relative;
  padding-left: 24px;
  line-height: 1.5;
  color: rgba(241, 246, 255, 0.94);
}

.home-split-content li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: -1px;
  color: #ffffff;
  font-size: 0.78rem;
}

.home-hiring {
  padding-top: 46px;
  text-align: center;
}

.home-letter-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 14px;
}

.home-letter-card {
  background: #fff;
  border: 1px solid #d2d9e6;
  border-radius: 8px;
  padding: 24px 16px 22px;
  min-height: 186px;
  box-shadow: 0 8px 18px rgba(14, 21, 34, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-letter-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
}

.home-letter-card p {
  margin: 12px 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 600;
  color: #2f3542;
  text-align: center;
}

.home-hiring .cta-row {
  justify-content: center;
}

.home-split blockquote {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.72;
  color: rgba(245, 248, 255, 0.92);
  font-style: italic;
}

.review-author {
  margin: 16px 0 0;
  color: #fff;
  font-weight: 700;
}

.home-join {
  margin-top: 30px;
  padding: 74px 20px 70px;
  text-align: center;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(247, 248, 250, 0.95), rgba(244, 246, 250, 0.98)),
    url('/wp-content/themes/kanaan-recovery/assets/images/home-hero-bg.jpeg') center/cover no-repeat;
}

.home-join h2 {
  margin: 8px 0 16px;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
}

.home-join .cta-row {
  justify-content: center;
}

.home-join-phone {
  margin-top: 10px;
  font-weight: 700;
  color: #2d3340;
}

.career-hero {
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}

.career-hero.owner-operator-hero {
  background:
    linear-gradient(115deg, rgba(8, 11, 17, 0.84) 0%, rgba(8, 11, 17, 0.44) 50%, rgba(8, 11, 17, 0.28) 100%),
    url('/wp-content/themes/kanaan-recovery/assets/images/home-hero-bg.jpeg') center/cover no-repeat;
}

.career-hero.a2z-hero {
  background:
    linear-gradient(115deg, rgba(8, 11, 17, 0.84) 0%, rgba(8, 11, 17, 0.44) 50%, rgba(8, 11, 17, 0.28) 100%),
    url('/wp-content/themes/kanaan-recovery/assets/images/a2z-hero.jpg') center/cover no-repeat;
}

.career-hero h1 {
  max-width: 700px;
}

.career-hero p {
  max-width: 760px;
}

.career-highlight {
  margin-top: 28px;
  background: #f6f7fa;
  border: 1px solid #d6ddeb;
  border-radius: 12px;
  padding: 18px 20px;
}

.career-highlight p {
  margin: 0;
  color: #2c3341;
  line-height: 1.7;
}

.career-benefit-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px 16px;
}

.career-benefit {
  background: #fff;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 600;
  line-height: 1.4;
}

.career-benefit::before {
  content: "✓";
  color: var(--kts-red);
  font-weight: 800;
  margin-right: 8px;
}

.career-cta-panel {
  margin-top: 28px;
  padding: 26px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #202531 0%, #12161f 100%);
  color: #eef2f8;
  text-align: center;
}

.career-cta-panel h3 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  letter-spacing: 0.02em;
}

.career-cta-panel p {
  margin: 0;
  line-height: 1.65;
  color: rgba(242, 247, 255, 0.92);
}

.career-cta-panel .cta-row {
  justify-content: center;
}

.reveal {
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.1, 1), opacity 0.7s ease;
  will-change: transform, opacity;
}

.reveal--left {
  transform: translateX(-56px);
}

.reveal--right {
  transform: translateX(56px);
}

.reveal--up {
  transform: translateY(36px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--left,
  .reveal--right,
  .reveal--up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  background: var(--kts-red);
  color: #fff;
  text-decoration: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  background: var(--kts-red-dark);
  color: #fff;
}

.page-card {
  background: #f0f0f1;
  border-radius: 10px;
  padding: 24px;
}

.page-card h1,
.page-card h2,
.page-card h3 { margin-top: 0; }

.kts-form {
  background: #f8f9fb;
  border: 1px solid #e4e6ea;
  border-radius: 10px;
  padding: 20px;
}

.kts-form fieldset {
  border: 1px solid #dde0e6;
  border-radius: 8px;
  margin: 0 0 18px;
  padding: 14px;
}

.kts-form legend {
  padding: 0 8px;
  font-weight: 700;
}

.kts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.kts-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.kts-form input,
.kts-form textarea,
.kts-form select {
  width: 100%;
  border: 1px solid #cfd4dc;
  border-radius: 6px;
  padding: 10px;
  font-size: 15px;
  background: #fff;
}

.kts-form .full { grid-column: 1 / -1; }
.kts-form .required::after { content: " *"; color: #c41010; }

.notice {
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.notice.success {
  background: #e8f8eb;
  border: 1px solid #95d3a0;
}

.notice.error {
  background: #ffecec;
  border: 1px solid #f7a7a7;
}

.contact-page-card h1 {
  margin-bottom: 10px;
}

.contact-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: 20px;
}

.contact-info-card,
.contact-form-card {
  background: #f8f9fb;
  border: 1px solid #dde3ef;
  border-radius: 10px;
  padding: 18px;
}

.contact-info-card h2,
.contact-form-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.contact-info-card h3 {
  margin: 18px 0 8px;
}

.contact-info-card p {
  margin: 0 0 10px;
  line-height: 1.55;
}

.contact-form .cta-row {
  margin-top: 14px;
}

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

.site-footer {
  background:
    linear-gradient(115deg, rgba(10, 12, 16, 0.96), rgba(10, 12, 16, 0.84)),
    linear-gradient(145deg, rgba(169, 16, 21, 0.42), rgba(169, 16, 21, 0.02));
  color: #d9d9de;
  margin-top: auto;
}

.site-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 20px 20px;
  font-size: 0.95rem;
}

.footer-brand img {
  width: 170px;
  display: block;
  margin-bottom: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}

.footer-col h4 {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 1.85rem;
  line-height: 1;
  font-style: italic;
  color: #ffffff;
}

.footer-col p {
  margin: 0 0 6px;
  color: rgba(229, 235, 244, 0.92);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.footer-social a:hover {
  background: var(--kts-red);
  border-color: var(--kts-red);
}

.footer-copy {
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: rgba(216, 223, 233, 0.84);
}

@media (max-width: 760px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-list {
    width: 100%;
    flex-wrap: wrap;
  }

  .main-nav .sub-menu {
    position: static;
    min-width: 100%;
    margin-top: 4px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: block;
  }

  .hero {
    padding: 44px 20px;
  }

  .home-hero {
    min-height: 430px;
    background-position: center center;
    background-size: cover;
  }

  .home-hero-badge {
    font-size: 0.72rem;
  }

  .home-split,
  .home-split.home-split-reverse {
    grid-template-columns: 1fr;
  }

  .home-split-content {
    padding: 26px 18px;
    border-left-width: 0;
    border-top: 4px solid var(--kts-red);
  }

  .home-letter-grid {
    grid-template-columns: 1fr;
  }

  .career-benefit-grid {
    grid-template-columns: 1fr;
  }

  .home-join {
    padding: 52px 14px;
  }

  .home-hero .btn,
  .home-hiring .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}
