/*
Torion Trade Limited - Premium Design System
Colors: #193656 (Deep Blue), #e16419 (Orange)
*/

:root {
  --primary: #193656;
  --primary-light: #2c4e75;
  --accent: #e16419;
  --accent-light: #f57c32;
  --dark: #0a1423;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --text-main: #333333;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --bg-dark: #0a1423;
  --bg-light: #ffffff;
  --font-display: 'Montserrat', sans-serif;
  --font-main: 'Montserrat', sans-serif;
  --font-mono: 'Montserrat', sans-serif;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 90px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
}

.hero-advanced h1,
.hero-advanced h2,
.hero-advanced h3,
.hero-advanced h4,
.hero-advanced h5,
.hero-advanced h6,
.cta-dynamic-section h1,
.cta-dynamic-section h2,
.cta-dynamic-section h3,
.cta-dynamic-section h4,
.cta-dynamic-section h5,
.cta-dynamic-section h6,
.main-footer h1,
.main-footer h2,
.main-footer h3,
.main-footer h4,
.main-footer h5,
.main-footer h6,
.page-hero-content h1,
.page-hero-content h2,
.page-hero-content h3,
.page-hero-content h4,
.page-hero-content h5,
.page-hero-content h6,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6 {
  color: #ffffff !important;
}

a {
  transition: var(--transition);
  text-decoration: none;
}

/* --- HEADER & NAV --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.5rem 0;
  background: transparent;
}

.main-header.scrolled {
  background: #ffffff;
  padding: 0.8rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-brand img {
  height: 45px;
  width: auto;
}

.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

.main-header.scrolled .logo-light {
  display: none;
}

.main-header.scrolled .logo-dark {
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
  margin: 0;
}

.nav-links li a {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.main-header.scrolled .nav-links li a {
  color: var(--primary);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent) !important;
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  box-shadow: 0 4px 15px rgba(225, 100, 25, 0.3);
}

.main-header.scrolled .nav-cta {
  color: #fff !important;
}

/* --- MOBILE MENU --- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1200;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  position: absolute;
  transition: var(--transition);
  border-radius: 2px;
}

.main-header.scrolled .mobile-menu-btn span {
  background: var(--primary);
}

.mobile-menu-btn span:nth-child(1) {
  top: 0;
}

.mobile-menu-btn span:nth-child(2) {
  top: 9px;
  width: 80%;
  right: 0;
}

.mobile-menu-btn span:nth-child(3) {
  top: 18px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

.nav-links-mobile {
  position: absolute;
  top: 100%;
  left: 5%;
  width: 90%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  list-style: none;
  padding: 1rem 0;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-links-mobile.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(10px);
}

.nav-links-mobile li {
  width: 100%;
}

.nav-links-mobile li a {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.nav-links-mobile li:last-child a {
  border-bottom: none;
  color: var(--accent);
}

.nav-links-mobile li a:hover {
  background: rgba(0, 0, 0, 0.02);
  padding-left: 2.5rem;
  color: var(--accent);
}

/* --- BREADCRUMB / HERO --- */
.page-hero {
  padding: 180px 0 100px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: var(--primary);
  color: #fff;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 20, 35, 0.75);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  /* Left align everything */
}

.breadcrumb-custom {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  /* Subtle dark container */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent);
  padding: 8px 16px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

.breadcrumb-custom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.breadcrumb-custom a:hover {
  color: var(--white);
}

.breadcrumb-custom .sep {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

.breadcrumb-custom span:not(.sep) {
  color: var(--white);
  font-weight: 800;
}

/* --- SECTIONS --- */
.py-100 {
  padding: 100px 0;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--primary);
}

.section-eyebrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: 700;
}

/* --- CARDS --- */
.item-card {
  background: #fff;
  border-radius: 12px;
  padding: 3rem 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 100%;
}

.item-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.item-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
}

/* --- FOOTER REDESIGN --- */
.main-footer {
  background: #0d1a2d;
  color: #fff;
  padding: 100px 0 0;
  font-size: 0.95rem;
}

.footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 60px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 2rem;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  max-width: 350px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-links li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-contact i {
  color: var(--accent);
  font-size: 1.2rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

.footer-social a:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.footer-bottom {
  padding: 30px 0;
  background: #0a1423;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  :root {
    --header-height: 70px;
  }

  .main-header {
    padding: 1rem 0;
  }

  .main-header.scrolled {
    padding: 0.6rem 0;
  }

  .nav-inner {
    padding: 0 1.5rem;
  }

  .logo-brand img {
    height: 35px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .py-100 {
    padding: 60px 0;
  }

  .item-card {
    padding: 2rem 1.5rem;
  }

  .page-hero {
    padding: 140px 0 60px;
  }

  .display-3 {
    font-size: 2.5rem !important;
  }

  .lead {
    font-size: 1rem !important;
  }

  /* Fixed mobile spacing for divs */
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  .col-12,
  .col-md-6,
  .col-lg-4 {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }

  .display-1 {
    font-size: 2.8rem !important;
  }

  .nav-links-mobile {
    width: 94%;
    left: 3%;
  }

  .nav-links-mobile li a {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  /* Banner Button Mobile Optimizations */
  .hero-btns {
    flex-direction: column;
    gap: 1rem !important;
  }

  .hero-btns .btn {
    width: 100%;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* Enhancing Banner Buttons UI/UX */
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  transition: var(--transition);
}

.btn-accent:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
  transform: translateY(-3px);
}

.btn-outline-light {
  border: 2px solid #fff;
  transition: var(--transition);
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--primary) !important;
  transform: translateY(-3px);
}

.hero-advanced .btn {
  letter-spacing: 1px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Detail Pages Optimization */
.rich-text {
  color: #555 !important;
  line-height: 2 !important;
  font-size: 1.15rem !important;
}

.sticky-sidebar {
  position: sticky;
  top: 120px;
}

.specs-table td {
  padding: 1.2rem !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  color: #444;
}

.specs-table i {
  color: var(--accent);
}

/* Error Page */
.error-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.service-detail-banner {
  height: 400px;
  object-fit: cover;
  object-position: center;
  transition: var(--transition);
}

.service-detail-banner:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .service-detail-banner {
    height: 250px;
  }
}

/* Vertical Service Cards & Mobile Scroll */
.service-panel-vertical {
  background: #fff;
  transition: var(--transition);
}

.service-card-img-box {
  height: 240px;
  overflow: hidden;
}

.service-card-img-box img {
  height: 100%;
  object-fit: cover;
}

/* CTA Dynamic Styles */
.cta-dynamic-section {
  transition: var(--transition);
}

.cta-bg-overlay {
  filter: brightness(0.4) saturate(0.8);
  transition: transform 10s ease-out;
}

.cta-dynamic-section:hover .cta-bg-overlay {
  transform: scale(1.1);
}

.cta-brand-overlay {
  mix-blend-mode: multiply;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

.error-code {
  font-size: 10rem;
  font-family: var(--font-display);
  color: var(--primary);
  line-height: 1;
}