/*
Theme Name: ImperiumTrans
Theme URI: https://imperiumtrans.com
Author: ImperiumTrans
Author URI: https://imperiumtrans.com
Description: Professional truck dispatch services website for ImperiumTrans. Full custom design with calculators, language switcher, and social buttons.
Version: 1.0
License: Private
Text Domain: imperiumtrans
*/

/* ======================================
   ROOT VARIABLES — CHANGE COLORS HERE
   ====================================== */
:root {
  --navy:      #07111f;
  --navy2:     #0d1b2e;
  --steel:     #0f2540;
  --blue:      #1877f2;
  --blue-hot:  #1464d8;
  --blue-glow: rgba(24,119,242,0.18);
  --white:     #f0f6ff;
  --gray:      #7a98bb;
  --light:     #c8d8ec;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ======================================
   NAVIGATION
   ====================================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 70px;
  background: rgba(7,17,31,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24,119,242,0.2);
}
.logo {
  font-family: var(--font-head);
  font-size: 1.55rem; font-weight: 800; letter-spacing: 2px;
  color: var(--white); text-decoration: none; flex-shrink: 0;
}
.logo span { color: var(--blue); }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  color: var(--light); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.4px;
  text-transform: uppercase; padding: 8px 14px; border-radius: 4px;
  display: flex; align-items: center; gap: 5px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--blue); background: var(--blue-glow); }

/* Dropdown */
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #0d1b2e;
  border: 1px solid rgba(24,119,242,0.25);
  border-radius: 8px; min-width: 260px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.22s ease;
  overflow: hidden;
}
.dropdown-header {
  padding: 10px 16px 6px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue); border-bottom: 1px solid rgba(24,119,242,0.15);
}
.dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; color: var(--light);
  text-decoration: none; font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}
.dropdown a:hover { background: var(--blue-glow); color: var(--blue); }
.dropdown a .dd-icon {
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--blue-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.dd-text strong { display: block; font-size: 0.88rem; font-weight: 600; }
.dd-text small { font-size: 0.75rem; color: var(--gray); }

/* Nav special buttons */
.nav-webmail {
  background: rgba(24,119,242,0.12) !important;
  border: 1px solid rgba(24,119,242,0.3) !important;
  color: var(--blue) !important;
}
.nav-webmail:hover { background: rgba(24,119,242,0.25) !important; }
.nav-cta {
  background: var(--blue) !important;
  color: #fff !important; padding: 8px 20px !important;
  border-radius: 5px !important;
}
.nav-cta:hover { background: var(--blue-hot) !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
.mobile-menu {
  display: none; position: fixed;
  top: 70px; left: 0; right: 0;
  background: #0a1525;
  border-bottom: 1px solid rgba(24,119,242,0.2);
  z-index: 199; padding: 1rem 5% 1.5rem;
  flex-direction: column; gap: 0.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--light); text-decoration: none;
  padding: 10px 12px; border-radius: 5px;
  font-size: 0.95rem; display: flex; align-items: center; gap: 10px;
  transition: background 0.15s;
}
.mobile-menu a:hover { background: var(--blue-glow); color: var(--blue); }
.mobile-section-label {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 2px; color: var(--blue);
  padding: 12px 12px 4px; font-weight: 700;
}

/* ======================================
   SHARED SECTION STYLES
   ====================================== */
section { padding: 90px 6%; }
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; text-transform: uppercase; line-height: 1.05;
}
.section-title em { color: var(--blue); font-style: normal; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  padding: 14px 30px; border-radius: 5px;
  font-family: var(--font-head); font-size: 1rem;
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--blue-hot); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,0.25); color: var(--white);
  padding: 14px 30px; border-radius: 5px;
  font-family: var(--font-head); font-size: 1rem;
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  text-decoration: none; transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ======================================
   HERO
   ====================================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 6% 60px;
  background:
    linear-gradient(135deg, rgba(7,17,31,0.97) 0%, rgba(7,17,31,0.75) 55%, rgba(7,17,31,0.92) 100%),
    url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?w=1600&q=80') center/cover no-repeat;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-glow);
  border: 1px solid rgba(24,119,242,0.4);
  color: var(--blue); padding: 6px 16px;
  border-radius: 20px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.8px; text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}
.hero-badge::before { content: '●'; font-size: 0.45rem; animation: blink 2s infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.2; } }
.hero-content { max-width: 700px; position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800; line-height: 0.95;
  letter-spacing: -0.5px; text-transform: uppercase;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero h1 em { color: var(--blue); font-style: normal; display: block; }
.hero p {
  margin-top: 1.5rem; font-size: 1.1rem; font-weight: 300;
  color: var(--light); max-width: 520px; line-height: 1.75;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-actions {
  display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}
.hero-stats {
  display: flex; gap: 3rem; margin-top: 4rem;
  animation: fadeUp 0.7s 0.4s ease both;
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--font-head); font-size: 2.6rem;
  font-weight: 800; color: var(--blue); line-height: 1;
}
.stat-label {
  font-size: 0.75rem; color: var(--gray);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 3px;
}
.quick-bar {
  display: flex; gap: 0.75rem; margin-top: 2.5rem;
  animation: fadeUp 0.7s 0.5s ease both;
  flex-wrap: wrap;
}
.quick-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--light); text-decoration: none;
  padding: 8px 16px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 500;
  transition: all 0.2s;
}
.quick-btn:hover { background: var(--blue-glow); border-color: rgba(24,119,242,0.4); color: var(--blue); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ======================================
   SERVICES
   ====================================== */
.services { background: var(--navy2); }
.services-header { max-width: 600px; margin-bottom: 3rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(24,119,242,0.1);
  border: 1px solid rgba(24,119,242,0.1);
}
.service-card {
  background: var(--navy2); padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
  transition: background 0.2s;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--blue);
  transition: height 0.3s;
}
.service-card:hover { background: #111e30; }
.service-card:hover::before { height: 100%; }
.service-icon {
  width: 50px; height: 50px; background: var(--blue-glow);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; margin-bottom: 1.25rem;
}
.service-card h3 {
  font-family: var(--font-head); font-size: 1.25rem;
  font-weight: 700; text-transform: uppercase; margin-bottom: 0.6rem;
}
.service-card p { font-size: 0.92rem; color: var(--gray); line-height: 1.7; }

/* ======================================
   WHY US
   ====================================== */
.why { background: var(--navy); }
.why-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.why-image { position: relative; }
.why-image img { width: 100%; border-radius: 5px; filter: brightness(0.8) contrast(1.1); }
.why-image::after {
  content: ''; position: absolute; bottom: -18px; right: -18px;
  width: 55%; height: 55%;
  border: 2px solid var(--blue); border-radius: 5px; z-index: -1;
}
.why-list { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.why-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.4rem;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--blue);
  border-radius: 0 5px 5px 0;
}
.why-item-icon { font-size: 1.15rem; flex-shrink: 0; margin-top: 2px; }
.why-item strong { display: block; font-size: 0.93rem; font-weight: 600; margin-bottom: 2px; }
.why-item span { font-size: 0.85rem; color: var(--gray); }

/* ======================================
   PROCESS
   ====================================== */
.process { background: var(--steel); }
.process-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0; margin-top: 3rem; position: relative;
}
.process-steps::before {
  content: ''; position: absolute;
  top: 31px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.step { text-align: center; padding: 1.75rem 1.5rem; position: relative; z-index: 1; }
.step-num {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 800;
  color: var(--blue); margin: 0 auto 1.4rem;
}
.step h4 {
  font-family: var(--font-head); font-size: 1.05rem;
  font-weight: 700; text-transform: uppercase; margin-bottom: 0.4rem;
}
.step p { font-size: 0.86rem; color: var(--gray); line-height: 1.6; }

/* ======================================
   CALCULATORS
   ====================================== */
.calculators { background: var(--navy2); }
.calc-intro { max-width: 600px; margin-bottom: 3rem; }
.calc-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.calc-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray); font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.calc-tab:hover { border-color: var(--blue); color: var(--blue); }
.calc-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.calc-panel { display: none; }
.calc-panel.active { display: block; }
.calc-card {
  background: var(--navy);
  border: 1px solid rgba(24,119,242,0.2);
  border-radius: 10px; padding: 2.5rem;
  max-width: 700px;
}
.calc-card h3 {
  font-family: var(--font-head); font-size: 1.5rem;
  font-weight: 700; text-transform: uppercase; margin-bottom: 0.4rem;
}
.calc-card .calc-desc { font-size: 0.9rem; color: var(--gray); margin-bottom: 2rem; }
.calc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem;
}
.calc-grid.single { grid-template-columns: 1fr; }
.input-group { display: flex; flex-direction: column; gap: 5px; }
.input-group label {
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 1px; color: var(--gray); font-weight: 600;
}
.input-group input, .input-group select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white); padding: 11px 14px;
  border-radius: 5px; font-family: var(--font-body);
  font-size: 0.95rem; outline: none;
  transition: border-color 0.2s;
}
.input-group input:focus, .input-group select:focus { border-color: var(--blue); }
.input-group input::placeholder { color: var(--gray); }
.input-group select option { background: #0d1b2e; }
.calc-result {
  margin-top: 1.5rem; padding: 1.25rem 1.5rem;
  background: var(--blue-glow);
  border: 1px solid rgba(24,119,242,0.35);
  border-radius: 8px; display: flex; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.result-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); font-weight: 700; }
.result-value { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--white); }
.result-note { font-size: 0.82rem; color: var(--gray); }
.result-items { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; }
.result-row {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; padding: 6px 0;
  border-bottom: 1px solid rgba(24,119,242,0.1);
}
.result-row:last-child { border-bottom: none; }
.result-row .rkey { color: var(--gray); }
.result-row .rval { font-weight: 600; color: var(--white); }
.result-row .rval.highlight { color: var(--blue); font-size: 1.05rem; }

/* ======================================
   COVERAGE
   ====================================== */
.coverage { background: var(--navy); }
.coverage-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.country-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-top: 1.5rem;
}
.country-tag {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 9px 12px; border-radius: 5px;
  font-size: 0.84rem; font-weight: 500;
  text-align: center; transition: all 0.2s;
}
.country-tag:hover { border-color: var(--blue); color: var(--blue); }
.specs-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.spec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 5px; font-size: 0.88rem;
}
.spec-row span:first-child { color: var(--gray); }
.spec-row span:last-child { font-weight: 600; }
.spec-badge {
  background: var(--blue-glow); color: var(--blue);
  padding: 3px 10px; border-radius: 12px; font-size: 0.78rem;
}

/* ======================================
   CONTACT
   ====================================== */
.contact { background: var(--navy2); }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.contact-item {
  display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1.75rem;
}
.contact-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--blue-glow); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.contact-item strong {
  display: block; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 1px; color: var(--blue); margin-bottom: 3px;
}
.contact-item a { color: var(--light); text-decoration: none; font-size: 0.97rem; }
.contact-item a:hover { color: var(--blue); }
.contact-item p { color: var(--light); font-size: 0.97rem; }
.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white); padding: 13px 15px;
  border-radius: 5px; font-family: var(--font-body);
  font-size: 0.93rem; width: 100%; outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--blue); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--gray); }
.contact-form select option { background: #0d1b2e; }

/* ======================================
   FOOTER
   ====================================== */
footer {
  background: #040c18;
  padding: 3rem 6% 2rem;
  border-top: 1px solid rgba(24,119,242,0.15);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo {
  font-family: var(--font-head); font-size: 1.4rem;
  font-weight: 800; letter-spacing: 2px; text-decoration: none; color: var(--white);
}
.footer-logo span { color: var(--blue); }
.footer-links { display: flex; gap: 1.75rem; list-style: none; flex-wrap: wrap; }
.footer-links a { color: var(--gray); text-decoration: none; font-size: 0.83rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { color: var(--gray); font-size: 0.78rem; margin-top: 2rem; text-align: center; }

/* ======================================
   LANGUAGE SWITCHER
   ====================================== */
.lang-switcher {
  display: flex; align-items: center; gap: 4px;
  margin-left: 0.5rem;
}
.lang-btn {
  background: none; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px; cursor: pointer;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
  padding: 5px 9px; color: var(--gray);
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.lang-btn:hover { border-color: var(--blue); background: var(--blue-glow); color: var(--white); }
.lang-btn.active { border-color: var(--blue); background: var(--blue-glow); color: var(--blue); }

/* ======================================
   FLOATING SOCIAL BUTTONS
   ====================================== */
.social-float {
  position: fixed; right: 18px; bottom: 28px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 300;
}
.social-float a {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.social-float a:hover { transform: scale(1.12); box-shadow: 0 6px 24px rgba(0,0,0,0.5); }
.social-whatsapp { background: #25D366; }
.social-viber    { background: #7360f2; }
.social-facebook { background: #1877f2; }

/* ======================================
   MOBILE
   ====================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .lang-switcher { display: none; }
}
@media (max-width: 768px) {
  section { padding: 60px 5%; }
  .hero { padding: 90px 5% 50px; }
  .hero-stats { gap: 2rem; }
  .why-inner, .coverage-inner, .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-image::after { display: none; }
  .process-steps::before { display: none; }
  .form-row, .calc-grid { grid-template-columns: 1fr; }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .social-float { right: 12px; bottom: 20px; }
  .social-float a { width: 44px; height: 44px; font-size: 1.2rem; }
}
