/* ===========================
   Techbarn Technologies Limited — Navy + Orange Theme
   =========================== */

:root {
  --tb-primary: #E8714A;
  --tb-primary-dark: #C95A33;
  --tb-primary-light: #FDE8DF;
  --tb-dark: #0F2044;
  --tb-dark-2: #1a3260;
  --tb-surface: #1a3260;
  --tb-border: rgba(255,255,255,0.08);
  --tb-text-muted: #6B85B5;
  --tb-radius: 12px;

  /* Override Bootstrap primary */
  --bs-primary: #E8714A;
  --bs-primary-rgb: 232, 113, 74;
  --bs-link-color: #E8714A;
}

/* ---- Base ---- */
* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #F0F4FF;
  color: #0F2044;
}

/* ---- Top contact bar ---- */
.tb-topbar {
  background: var(--tb-dark);
  border-bottom: 2px solid var(--tb-primary);
  padding: 0.42rem 0;
}

.tb-topbar-contacts a {
  color: #BDD1EC;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.tb-topbar-contacts a:hover { color: var(--tb-primary); }

.tb-topbar-divider {
  color: rgba(232, 113, 74, 0.35);
  margin: 0 0.55rem;
  font-size: 0.75rem;
}

.tb-topbar-label {
  font-size: 0.75rem;
  opacity: 0.75;
}

.tb-topbar-social { gap: 0.5rem; }

.tb-topbar-social a {
  color: #7A9CC8;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s;
}

.tb-topbar-social a:hover { color: var(--tb-primary); }

/* ---- Navbar ---- */
.tb-navbar {
  background-color: #FFFFFF !important;
  border-bottom: 1px solid rgba(15, 32, 68, 0.08);
  box-shadow: 0 2px 20px rgba(15, 32, 68, 0.08);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Brand */
.tb-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.tb-logo-mark {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(232, 113, 74, 0.3));
  transition: filter 0.25s;
}

.tb-brand:hover .tb-logo-mark {
  filter: drop-shadow(0 4px 14px rgba(232, 113, 74, 0.55));
}

.tb-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.tb-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F2044;
  letter-spacing: -0.3px;
}

.tb-brand-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--tb-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tb-brand-tagline {
  font-size: 0.58rem;
  font-weight: 400;
  color: rgba(15, 32, 68, 0.4);
  letter-spacing: 0.04em;
  font-style: italic;
  margin-top: 1px;
}

.tb-navbar .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374B6B !important;
  transition: color 0.2s;
  padding: 0.4rem 0.75rem;
}

.tb-navbar .nav-link:hover,
.tb-navbar .nav-link.active {
  color: var(--tb-primary) !important;
}

/* "Get a Quote" CTA pill */
.tb-quote-btn {
  background: var(--tb-primary);
  color: #fff !important;
  border-radius: 50px;
  padding: 0.42rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(232, 113, 74, 0.35);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
}

.tb-quote-btn:hover {
  background: var(--tb-primary-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 113, 74, 0.5);
}

/* Dropdown */
.tb-dropdown {
  border: 1px solid rgba(15, 32, 68, 0.08);
  box-shadow: 0 8px 30px rgba(15, 32, 68, 0.12);
  border-radius: 10px;
  padding: 0.5rem 0;
  min-width: 230px;
}

.tb-dropdown .dropdown-item {
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  transition: background-color 0.15s;
}

.tb-dropdown .dropdown-item:hover {
  background-color: #EEF3FC;
}

/* ---- Hero ---- */
.tb-hero {
  min-height: 560px;
  background: linear-gradient(135deg, #0F2044 0%, #1a3260 50%, #0F2044 100%);
  position: relative;
  overflow: hidden;
}

.tb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(232,113,74,0.15) 0%, transparent 70%);
}

.tb-hero .container { position: relative; z-index: 1; }

/* ---- Page headers ---- */
.tb-page-header {
  background: linear-gradient(135deg, #0F2044 0%, #1a3260 100%);
}

/* ---- CTA section ---- */
.tb-cta {
  background: linear-gradient(135deg, var(--tb-primary) 0%, var(--tb-primary-dark) 100%);
}

/* ---- Product cards ---- */
.tb-card {
  border: 1px solid #dce6f8;
  border-radius: var(--tb-radius);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  background: #fff;
}

.tb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(232,113,74,0.15);
}

.tb-card-img-wrap {
  height: 200px;
  overflow: hidden;
  background: #EEF3FC;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tb-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.tb-card:hover .tb-card-img {
  transform: scale(1.05);
}

/* ---- Feature cards ---- */
.tb-feature-card {
  background: #fff;
  border: 1px solid #dce6f8;
  transition: box-shadow 0.2s;
}

.tb-feature-card:hover {
  box-shadow: 0 8px 24px rgba(232,113,74,0.12);
}

/* ---- Stat cards ---- */
.tb-stat-card {
  background: #fff;
  border: 1px solid #dce6f8;
}

/* ---- Contact icon ---- */
.tb-icon-box {
  min-width: 32px;
}

/* ---- Footer ---- */
.tb-footer {
  background-color: var(--tb-dark);
  color: #8EB3D8;
  border-top: 1px solid rgba(232,113,74,0.12);
}

.tb-footer .text-muted {
  color: #8EB3D8 !important;
}

.tb-footer h5,
.tb-footer h6 {
  color: #E0EAFF;
}

.footer-link {
  color: #8EB3D8;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  margin-bottom: 0.4rem;
}

.footer-link:hover {
  color: #E8714A;
}

/* ---- Forms ---- */
.form-control:focus,
.form-select:focus {
  border-color: var(--tb-primary);
  box-shadow: 0 0 0 3px rgba(232,113,74,0.18);
}

/* ---- Buttons ---- */
.btn-primary {
  background-color: var(--tb-primary);
  border-color: var(--tb-primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--tb-primary-dark);
  border-color: var(--tb-primary-dark);
  color: #fff;
}

.btn-outline-primary {
  color: var(--tb-primary);
  border-color: var(--tb-primary);
}

.btn-outline-primary:hover {
  background-color: var(--tb-primary);
  border-color: var(--tb-primary);
  color: #fff;
}

/* Bootstrap text-primary / bg-primary overrides */
.text-primary { color: var(--tb-primary) !important; }
.bg-primary    { background-color: var(--tb-primary) !important; }
.border-primary{ border-color: var(--tb-primary) !important; }
.badge.bg-primary { background-color: var(--tb-primary) !important; }

/* ---- Breadcrumb ---- */
.breadcrumb-item a {
  color: var(--tb-primary);
  text-decoration: none;
}

/* ---- Section backgrounds ---- */
.bg-dark-subtle {
  background-color: #EEF3FC !important;
}

/* ---- Admin section bg ---- */
section.py-4.bg-dark {
  background-color: var(--tb-dark) !important;
}

/* ---- Tables ---- */
.table-dark th {
  background-color: var(--tb-dark-2) !important;
}

/* ---- Accordion (blog) ---- */
.accordion-button:not(.collapsed) {
  color: var(--tb-primary);
  background-color: #EEF3FC;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(232,113,74,0.18);
}

/* ---- Hero Carousel ---- */
.tb-carousel { position: relative; }

/* .tb-slide is a child of .carousel-item — Bootstrap controls
   display:none/block on .carousel-item without interference. */
.tb-slide {
  width: 100%;
  min-height: 580px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.tb-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.50);
  z-index: 1;
}

.tb-slide-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
  padding: 2rem 1rem;
}

.tb-slide-icon {
  font-size: 4rem;
  color: var(--tb-primary);
  opacity: 0.9;
}

/* Slide backgrounds — baby blue #a2d2ff */
.tb-slide--fleet,
.tb-slide--gps,
.tb-slide--fuel,
.tb-slide--dashcam,
.tb-slide--security,
.tb-slide--temp,
.tb-slide--home-auto,
.tb-slide--irrigation,
.tb-slide--satellite,
.tb-slide--solar,
.tb-slide--ac,
.tb-slide--ev,
.tb-slide--precision-agri {
  background: linear-gradient(135deg, #7ab8f0 0%, #a2d2ff 50%, #7ab8f0 100%);
}

/* Carousel indicators — peach dots */
.carousel-indicators [data-bs-target] {
  background-color: rgba(232,113,74,0.5);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  transition: background-color 0.3s;
}
.carousel-indicators .active {
  background-color: var(--tb-primary);
}

/* Footer social icons */
.tb-social-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(232,113,74,0.25);
  color: #7A9CC8;
  font-size: 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.tb-social-footer a:hover {
  background-color: var(--tb-primary);
  color: #fff;
  border-color: var(--tb-primary);
}

/* ---- Solution pages ---- */
.tb-solution-header {
  background: linear-gradient(135deg, var(--tb-dark) 0%, #1a3a5c 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.tb-solution-header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.62);
}

.tb-solution-header-icon {
  font-size: 4rem;
  color: var(--tb-primary);
  opacity: 0.95;
}

/* Solution benefit image */
.tb-solution-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* Platform stats band */
.tb-stats-band {
  background: var(--tb-dark);
  border-top: 1px solid rgba(232,113,74,0.15);
  border-bottom: 1px solid rgba(232,113,74,0.15);
}

.tb-platform-stat-icon {
  display: block;
  font-size: 1.6rem;
  color: var(--tb-primary);
}

.tb-platform-stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.tb-platform-stat-label {
  font-size: 0.78rem;
  color: #8EB3D8;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Integration cards */
.tb-integration-card {
  background: #fff;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.tb-integration-card:hover {
  box-shadow: 0 6px 20px rgba(232,113,74,0.12);
  border-color: var(--tb-primary) !important;
}

.tb-integration-icon {
  display: block;
  font-size: 2rem;
  color: var(--tb-primary);
}

/* How it works step cards */
.tb-step-card {
  border-color: #dce6f8 !important;
  transition: box-shadow 0.2s;
}

.tb-step-card:hover {
  box-shadow: 0 8px 24px rgba(232,113,74,0.12);
}

.tb-step-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--tb-primary);
  opacity: 0.85;
  line-height: 1;
}

/* Feature icon box */
.tb-feature-icon {
  width: 44px;
  height: 44px;
  background: #EEF3FC;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--tb-primary);
  flex-shrink: 0;
}

/* Benefit visual panel */
.tb-benefit-visual {
  background: linear-gradient(135deg, #EEF3FC, #dce6f8);
  border: 1px solid #dce6f8;
}

.tb-benefit-icon {
  font-size: 7rem;
  color: var(--tb-primary);
  opacity: 0.25;
}

/* ---- Floating contact buttons ---- */
.tb-float-btns {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1050;
}

.tb-float-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.tb-float-label {
  background: rgba(15, 32, 68, 0.88);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.tb-float-btn-wrap:hover .tb-float-label {
  opacity: 1;
  transform: translateX(0);
}

.tb-float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.tb-float-btn:hover {
  transform: scale(1.1);
  color: #fff;
}

/* WhatsApp button — green with pulse */
@keyframes tb-wa-pulse {
  0%   { box-shadow: 0 4px 16px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.45); }
  70%  { box-shadow: 0 4px 16px rgba(37,211,102,0.45), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 16px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
}

.tb-float-whatsapp {
  background: #25D366;
  animation: tb-wa-pulse 2.5s infinite;
}

.tb-float-whatsapp:hover {
  animation: none;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.65);
}

/* Call button — brand orange */
.tb-float-call {
  background: var(--tb-primary);
  box-shadow: 0 4px 16px rgba(232, 113, 74, 0.4);
}

.tb-float-call:hover {
  box-shadow: 0 6px 22px rgba(232, 113, 74, 0.6);
}

/* ---- Responsive tweaks ---- */
@media (max-width: 768px) {
  .tb-slide { min-height: 420px; }
  .tb-slide-content h1 { font-size: 1.8rem; }
  .tb-slide-icon { font-size: 2.8rem; }
  .tb-brand-sub { display: none; }
  .tb-float-btns { bottom: 1.25rem; right: 1rem; }
  .tb-float-btn { width: 46px; height: 46px; font-size: 1.25rem; }
}
