/* ===================== CSS VARIABLES ===================== */
:root {
  --accent-orange: #F97316;
  --accent-orange-dark: #EA6800;
  --navy: #0F172A;
  --navy-mid: #1E293B;
  --navy-light: #334155;
  --bg-light: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-muted-dark: #94A3B8;
  --border: #E2E8F0;
  --border-dark: #334155;
  --color-error: #EF4444;
  --color-livestock: #16A34A;
  --color-vehicle: #2563EB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
  --font: 'Inter', sans-serif;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text-primary); background: var(--bg-light); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
input, select, textarea, button { font-family: inherit; }

/* ===================== SKIP LINK ===================== */
.skip-link {
  position: absolute;
  top: auto;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  top: 16px;
  left: 16px;
  background: var(--accent-orange);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

/* ===================== UTILITIES ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent-orange); }
.accent-light { color: #FED7AA; }
.section { padding: 96px 0; }
.section-dark { background: var(--navy); }
.section-accent { background: linear-gradient(135deg, var(--navy) 0%, #1E3A5F 100%); }

.section-tag {
  display: inline-block;
  background: rgba(249,115,22,0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(249,115,22,0.3);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-tag.light { background: rgba(249,115,22,0.2); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-header.light .section-title { color: #F1F5F9; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.section-desc { font-size: 17px; color: var(--text-secondary); }
.section-desc.dark { color: var(--text-muted-dark); }

/* Field error messages */
.field-error { display: block; font-size: 12px; color: var(--color-error); margin-top: 4px; min-height: 18px; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--accent-orange); color: #fff; border-color: var(--accent-orange); }
.btn-primary:hover { background: var(--accent-orange-dark); border-color: var(--accent-orange-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(249,115,22,0.35); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.9); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,255,255,0.25); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(15,23,42,0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.navbar-inner {
  display: flex; align-items: center; gap: 32px;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 24px; }
.logo-text { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.logo-accent { color: var(--accent-orange); font-weight: 800; }

.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}

.mobile-menu {
  display: none; background: var(--navy-mid); padding: 16px 24px 24px;
  border-top: 1px solid var(--border-dark);
}
.mobile-menu.open { display: block; }
.mobile-link { display: block; padding: 12px 0; color: rgba(255,255,255,0.8); font-weight: 500; font-size: 16px; border-bottom: 1px solid var(--border-dark); }
.mobile-link:last-child { border: none; }
.mobile-cta { color: var(--accent-orange); font-weight: 700; margin-top: 8px; }

/* Spacer for fixed navbar */
.navbar ~ main > .hero { padding-top: 0; }

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10,15,30,0.88) 0%, rgba(10,15,30,0.65) 55%, rgba(10,15,30,0.35) 100%);
}

.hero-content {
  position: relative; z-index: 2; padding-top: 80px; padding-bottom: 120px;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(249,115,22,0.18); border: 1px solid rgba(249,115,22,0.4);
  color: #FED7AA; padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 24px; animation: fadeUp 0.6s ease both;
}
.hero-title {
  font-size: clamp(38px, 6vw, 72px); font-weight: 900; line-height: 1.08;
  color: #fff; margin-bottom: 24px; letter-spacing: -1px;
  animation: fadeUp 0.7s ease 0.1s both;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,0.72);
  max-width: 560px; margin-bottom: 40px; line-height: 1.65;
  animation: fadeUp 0.7s ease 0.2s both;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 0.7s ease 0.3s both; }

.scroll-indicator {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2;
}
.scroll-indicator span { font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent); animation: scrollPulse 2s ease-in-out infinite; }

/* ===================== TICKER ===================== */
.ticker-wrap { background: var(--accent-orange); overflow: hidden; padding: 14px 0; }
.ticker {
  display: flex; gap: 32px; white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.ticker span { font-size: 14px; font-weight: 600; color: #fff; letter-spacing: 0.02em; }
.ticker .dot { opacity: 0.5; }

/* ===================== SERVICES ===================== */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-orange); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(249,115,22,0.2); }
.service-card:hover::before { transform: scaleX(1); }
.service-card.featured { border-color: var(--accent-orange); background: linear-gradient(135deg, #fff 0%, #FFF7ED 100%); }
.service-card.featured::before { transform: scaleX(1); }

.service-badge {
  position: absolute; top: 20px; right: 20px;
  background: var(--accent-orange); color: #fff;
  padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.service-icon { font-size: 36px; margin-bottom: 16px; }
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.service-card p { font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }
.service-features { margin-bottom: 24px; }
.service-features li { font-size: 14px; color: var(--text-secondary); padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.service-features li::before { content: '✓'; color: var(--accent-orange); font-weight: 700; }
.service-link {
  font-size: 14px; font-weight: 700; color: var(--accent-orange);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--transition);
}
.service-link:hover { gap: 8px; }

/* ===================== WHY US ===================== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-dark);
  border-radius: var(--radius); padding: 32px;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.why-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(249,115,22,0.3); transform: translateY(-2px); }
.why-icon-wrap { width: 52px; height: 52px; background: rgba(249,115,22,0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.why-icon { font-size: 26px; }
.why-card h3 { font-size: 18px; font-weight: 700; color: #F1F5F9; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--text-muted-dark); line-height: 1.65; }

/* ===================== TRACKING ===================== */
.tracking-container { max-width: 720px; margin: 0 auto; text-align: center; }
.tracking-content .section-title.light { color: #F1F5F9; margin-bottom: 16px; }
.tracking-desc { color: rgba(255,255,255,0.65); font-size: 17px; margin-bottom: 36px; }
.tracking-form { margin-bottom: 32px; }
.tracking-input-wrap { display: flex; gap: 12px; max-width: 560px; margin: 0 auto; }
.tracking-input {
  flex: 1; padding: 14px 18px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08);
  color: #fff; font-size: 15px;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: border-color var(--transition);
}
.tracking-input::placeholder { color: rgba(255,255,255,0.35); }
.tracking-input:focus { border-color: var(--accent-orange); }

.tracking-result {
  background: rgba(249,115,22,0.12); border: 1px solid rgba(249,115,22,0.3);
  border-radius: 10px; padding: 20px 28px; color: #FED7AA; font-size: 15px;
  max-width: 560px; margin: 0 auto 28px; text-align: left; line-height: 1.8;
}
.tracking-features { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.tracking-feature { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.65); font-size: 14px; font-weight: 500; }

/* ===================== QUOTE FORM ===================== */
.quote-wrapper { max-width: 820px; margin: 0 auto; }
.quote-form {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; margin-bottom: 20px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 15px; color: var(--text-primary); background: var(--bg-light);
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
  background: #fff;
}
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--color-error);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { text-align: center; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.form-success { text-align: center; padding: 32px; }
.success-icon { font-size: 48px; margin-bottom: 12px; }
.form-success h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.form-success p { color: var(--text-secondary); }

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(249,115,22,0.2); }
.contact-icon { font-size: 32px; margin-bottom: 14px; }
.contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.contact-link { color: var(--accent-orange); font-weight: 600; font-size: 15px; display: block; margin-bottom: 8px; }
.contact-link:hover { text-decoration: underline; }
.contact-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.contact-address { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-top: 8px; }

/* ===================== FOOTER ===================== */
.footer { background: var(--navy); border-top: 1px solid var(--border-dark); padding-top: 72px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; padding-bottom: 48px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 14px; color: var(--text-muted-dark); line-height: 1.7; margin: 16px 0 20px; max-width: 320px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { background: rgba(255,255,255,0.06); border: 1px solid var(--border-dark); color: var(--text-muted-dark); padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-col a:hover { color: var(--accent-orange); }

.footer-bottom { border-top: 1px solid var(--border-dark); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer-legal a:hover { color: var(--accent-orange); }

/* ===================== CATEGORY CARDS ===================== */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.category-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.category-card.featured { box-shadow: 0 0 0 2px var(--accent-orange), var(--shadow-lg); }
.category-header {
  padding: 40px 32px 32px; display: flex; flex-direction: column;
  align-items: flex-start; gap: 12px;
}
.category-header h3 { font-size: 24px; font-weight: 800; color: #fff; }
.category-emoji { font-size: 44px; line-height: 1; }
.livestock-bg  { background: linear-gradient(135deg, #14532d 0%, #166534 100%); }
.vehicle-bg    { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%); }
.package-bg    { background: linear-gradient(135deg, #7c2d12 0%, #c2410c 100%); }
.category-body { padding: 28px 32px 32px; }
.category-body p { font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }
.category-list { margin-bottom: 24px; }
.category-list li { font-size: 14px; color: var(--text-secondary); padding: 7px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.category-list li::before { content: '✓'; font-weight: 700; }
.livestock-link  { color: var(--color-livestock); font-weight: 700; font-size: 14px; }
.vehicle-link    { color: var(--color-vehicle); font-weight: 700; font-size: 14px; }
.package-link    { color: var(--accent-orange); font-weight: 700; font-size: 14px; }
.category-link:hover { text-decoration: underline; }

/* ===================== SERVICE GROUPS ===================== */
.service-group { margin-bottom: 56px; }
.service-group:last-child { margin-bottom: 0; }
.service-group-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5); margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border-dark);
}
.service-group-label span { font-size: 20px; }
.service-card.dark {
  background: rgba(255,255,255,0.04); border-color: var(--border-dark);
}
.service-card.dark h3 { color: #F1F5F9; }
.service-card.dark p  { color: var(--text-muted-dark); }
.service-card.dark .service-link { color: var(--accent-orange); }
.service-card.dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(249,115,22,0.3); }
.service-card.featured-dark { border-color: var(--accent-orange); }
.service-card.featured-dark::before { transform: scaleX(1); }

/* ===================== WHY US — LIGHT VARIANT ===================== */
.why-card.light {
  background: var(--bg-card); border-color: var(--border);
}
.why-card.light:hover { background: #FFF7ED; border-color: rgba(249,115,22,0.3); }
.why-card.light h3 { color: var(--text-primary); }
.why-card.light p  { color: var(--text-secondary); }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================== MOTION ACCESSIBILITY ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker { animation: none; }
  .scroll-line { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .categories-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .quote-form { padding: 28px 20px; }
  .hero-actions { gap: 12px; }
  .nav-links { display: none; }
  #navbar-quote-btn { display: none; }
  .hamburger { display: flex; }
  .tracking-input-wrap { flex-direction: column; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
}
