/* ===========================================================
   TAURUS SOLUTIONS LTD — GLOBAL STYLESHEET
   =========================================================== */

:root {
  /* Colors */
  --primary: #e60012;
  --primary-dark: #b8000e;
  --secondary: #1A1A1A;
  --white: #FFFFFF;
  --light-bg: #F7F8FA;
  --border: #E5E7EB;
  --text-body: #374151;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;

  /* Radius */
  --radius-card: 8px;
  --radius-btn: 6px;
  --radius-img: 8px;
  --radius-tag: 4px;
  --radius-input: 6px;

  /* Header */
  --header-height: 72px;
  --topbar-height: 40px;
}

/* -----------------------------------------------------------
   RESET / BASE
   ----------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 190px;
}

html { font-size: 17px; } /* base for rem scale — bumped from 16px for readability */

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-body);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  animation: pageFadeIn 0.6s ease;
}

@media (max-width: 768px) {
  html { font-size: 16px; }
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.2;
}

h1 { font-size: 3.05rem; line-height: 1.1; }
h2 { font-size: 2.12rem; }
h3 { font-size: 1.18rem; line-height: 1.3; }

p { color: var(--text-body); }

.container {
  max-width: 100%;
  /* margin: 0 auto; */
  padding: 0 12px;
}

.section {
  padding: var(--space-10) 0;
}

.section--alt { background: var(--light-bg); }
.section--dark { background: var(--secondary); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-8);
}

.section-head.left { text-align: left; margin-left: 0; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* -----------------------------------------------------------
   BUTTONS
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease, border-color 0.2s ease;
  min-height: 44px;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-outline-white { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-outline { background: transparent; border-color: var(--border); color: var(--secondary); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-dark { background: var(--secondary); color: var(--white); }
.btn-dark:hover { background: #000; }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  min-height: 44px;
}
.whatsapp-btn:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }
.whatsapp-btn svg { width: 22px; height: 22px; fill: #FFFFFF; }

.cta-row { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: 30px;}

/* -----------------------------------------------------------
   TOP BAR
   ----------------------------------------------------------- */
.topbar {
  background: var(--primary);
  color: var(--white);
  height: var(--topbar-height);
}
.topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
}
.topbar-left { display: flex; gap: var(--space-3); align-items: center; }
.topbar-left a { display: inline-flex; align-items: center; gap: 6px; color: var(--white); }
.topbar-left svg { width: 14px; height: 14px; fill: var(--white); }
.topbar-right { display: flex; align-items: center; gap: 6px; }

@media (max-width: 768px) {
  .topbar-right { display: none; }
}
@media (max-width: 480px) {
    .logo img{
         max-height: 30px !important; width: auto;
    }
  .topbar-left span:last-child { display: none; }
}

/* -----------------------------------------------------------
   MAIN NAV
   ----------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 500; }

/* Row 1 — logo + CTA row */
.navbar-main {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.navbar-main-inner {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { max-height: 50px; width: auto; }

.nav-cta-group { display: flex; align-items: center; gap: 14px; }

.whatsapp-icon-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--whatsapp, #25D366);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.whatsapp-icon-btn svg { width: 24px; height: 24px; fill: var(--white); }
.whatsapp-icon-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

.nav-header-cta { white-space: nowrap; padding: 14px 26px; }

/* Row 2 — big colored tab menu, edge-to-edge (no container gutters) */
.navbar-tabs {
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.navbar-tabs .container {
  padding: 0;
  max-width: 100%;
  overflow: visible; /* must stay visible — overflow-x:auto here clips the mega-menu dropdown below it */
}

.nav-desktop { display: block; width: 100%; }
.nav-desktop > ul {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.nav-item { position: relative; flex: 1 1 0; }
.nav-item + .nav-item { border-left: 1px solid rgba(0,0,0,0.07); }

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  font-size: clamp(17px, 0.9vw + 10px, 18px);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--secondary);
  padding: 10px 15px;
  position: relative;
  white-space: nowrap;
  transition: filter 0.15s ease;
}
.nav-link:hover { filter: brightness(0.94); }

/* Tab background palette — dark→light warm gradient across the 7 items */
.nav-item:nth-child(1) .nav-link { background: #ffedd2; }
.nav-item:nth-child(2) .nav-link { background: #ffe0b3; }
.nav-item:nth-child(3) .nav-link { background: #ffd28f; }
.nav-item:nth-child(4) .nav-link { background: #ffc670; }
.nav-item:nth-child(5) .nav-link { background: #ffb84d; }
.nav-item:nth-child(6) .nav-link { background: #ffab2e; }
.nav-item:nth-child(7) .nav-link { background: #ff9d0f; }

.nav-item.active .nav-link { filter: brightness(0.88); }
.nav-link svg { width: 12px; height: 12px; fill: currentColor; transition: transform 0.2s ease; flex-shrink: 0; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -8px);
  width: min(900px, 90vw);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
  gap: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.nav-item.nav-edge-left .mega-menu {
  left: 0;
  transform: translate(0, -8px);
}
.nav-item.nav-edge-left:hover .mega-menu {
  transform: translate(0, 0);
}
.mega-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--space-2);
}
.mega-menu a.mega-link {
  display: block;
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  color: var(--secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mega-menu a.mega-link:hover { color: var(--primary); }
.mega-contact-box {
  background: var(--light-bg);
  border-radius: var(--radius-card);
  padding: var(--space-3);
}
.mega-contact-box .mega-col-title { color: var(--text-light); }
.mega-contact-box p { font-size: 13px; margin-bottom: 8px; color: var(--text-muted); }
.mega-contact-box a { color: var(--primary); font-weight: 600; font-size: 14px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px; height: 2px;
  background: var(--secondary);
  position: relative;
  transition: 0.2s ease;
}
.nav-toggle span::before { content: ""; position: absolute; top: -8px; width: 24px; }
.nav-toggle span::after { content: ""; position: absolute; top: 8px; width: 24px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* -----------------------------------------------------------
   MOBILE DRAWER
   ----------------------------------------------------------- */
.mobile-drawer {
  position: fixed;
  top: 0; left: 0;
  width: min(340px, 86vw);
  height: 100%;
  background: var(--white);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.drawer-head img { max-height: 36px; }
.drawer-close { background: none; border: none; font-size: 24px; cursor: pointer; width: 44px; height: 44px; }

.drawer-nav { padding: var(--space-2); }
.drawer-item { border-bottom: 1px solid var(--border); }
.drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 8px;
  font-size: 15px; font-weight: 600; text-transform: uppercase;
  color: var(--secondary);
}
.drawer-submenu {
  max-height: 0; overflow: hidden;
  transition: max-height 0.25s ease;
  padding-left: var(--space-2);
}
.drawer-item.is-open .drawer-submenu { max-height: 500px; }
.drawer-submenu a {
  display: block; padding: 10px 8px; font-size: 13px; color: var(--text-muted);
}
.drawer-toggle-icon { transition: transform 0.2s ease; }
.drawer-item.is-open .drawer-toggle-icon { transform: rotate(45deg); }

.drawer-footer {
  padding: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.drawer-footer a { color: var(--primary); font-weight: 600; display: block; margin-top: 6px; }

@media (max-width: 1080px) {
  .navbar-tabs { display: none; }
  .nav-toggle { display: flex; }
}

/* -----------------------------------------------------------
   HERO
   ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(90vh, 700px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero .eyebrow { color: #FFD9B3; }
.hero h1 { color: var(--white); font-size: 52px; margin-bottom: var(--space-2); }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: var(--space-4); max-width: 600px; }

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero { min-height: 80vh; text-align: left; }
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--light-bg);
  padding: var(--space-6) 0 var(--space-4);
}
.page-hero h1 { font-size: 40px; }
@media (max-width: 768px) { .page-hero h1 { font-size: 28px; } }

.breadcrumb {
  display: flex; gap: 6px; align-items: center;
  font-size: 13px; color: var(--text-muted);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-light); }
.breadcrumb .current { color: var(--secondary); font-weight: 500; }

/* -----------------------------------------------------------
   STATS
   ----------------------------------------------------------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  text-align: center;
  padding: var(--space-6) var(--space-2);
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 40px; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 8px; }

.section--dark .stat-label { color: rgba(255,255,255,0.7); }
.section--dark .stat-item { border-color: rgba(255,255,255,0.12); }

@media (max-width: 768px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid var(--border); }
}

/* -----------------------------------------------------------
   CARDS / GRIDS
   ----------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-4);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
  .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.card-img { overflow: hidden; aspect-ratio: 3/2; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: var(--space-3); }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-2); }
.card-link { font-size: 14px; font-weight: 600; color: var(--primary); }

.icon-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-4);
}
.icon-card .icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-card);
  background: rgba(242,104,12,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
}
.icon-card .icon-wrap svg { width: 24px; height: 24px; fill: var(--primary); }
.icon-card h3 { margin-bottom: 8px; }
.icon-card p { font-size: 14px; color: var(--text-muted); }

/* Tag pills */
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 var(--space-3); margin-top: 10px; margin-bottom: 10px; }
.tag-pill {
  font-size: 12px; font-weight: 600;
  background: rgba(242,104,12,0.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-tag);
}

/* -----------------------------------------------------------
   ABOUT STRIP / TWO COL
   ----------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.two-col img { border-radius: var(--radius-img); width: 100%; }
.two-col.reverse .col-img { order: 2; }
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: var(--space-4); }
  .two-col.reverse .col-img { order: 0; }
}

/* -----------------------------------------------------------
   PARTNERS MARQUEE
   ----------------------------------------------------------- */
.marquee-wrap { overflow: hidden; position: relative; }
.marquee-track {
  display: flex;
  gap: var(--space-8);
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track img {
  height: 200px; width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.marquee-track img:hover { filter: grayscale(0%); opacity: 1; }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  align-items: center;
}
.partner-grid img { filter: grayscale(100%); opacity: 0.7; transition: 0.2s ease; }
.partner-grid img:hover { filter: grayscale(0); opacity: 1; }
@media (max-width: 768px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }

/* -----------------------------------------------------------
   TESTIMONIALS
   ----------------------------------------------------------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-4);
}
.testimonial-card .stars { display: flex; gap: 2px; margin-bottom: var(--space-2); }
.testimonial-card .stars svg { width: 16px; height: 16px; fill: var(--primary); }
.testimonial-card p.quote { font-size: 15px; color: var(--text-body); margin-bottom: var(--space-3); }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-person img { width: 44px; height: 44px; border-radius: 50%; }
.testimonial-person span { font-weight: 600; font-size: 14px; }

/* -----------------------------------------------------------
   CTA BANNER
   ----------------------------------------------------------- */
.cta-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: var(--space-10) 0;
  text-align: center;
  color: var(--white);
}
.cta-banner::before { content: ""; position: absolute; inset: 0; background: rgba(26,26,26,0.78); }
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: var(--space-4); }
.cta-banner .cta-row { justify-content: center; }

/* -----------------------------------------------------------
   STEPS
   ----------------------------------------------------------- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.step-item { text-align: center; padding: var(--space-3); }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  margin: 0 auto var(--space-2);
}
@media (max-width: 768px) { .steps-row { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------
   FORM PLACEHOLDER
   ----------------------------------------------------------- */
.form-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius-card);
  padding: 40px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  background: var(--light-bg);
}

/* -----------------------------------------------------------
   CONTACT PAGE
   ----------------------------------------------------------- */
.contact-info-list { margin-bottom: var(--space-4); }
.contact-info-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item .icon-wrap {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--radius-card);
  background: rgba(242,104,12,0.1);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-item .icon-wrap svg { width: 20px; height: 20px; fill: var(--primary); }
.contact-info-item h4 { font-size: 14px; margin-bottom: 4px; }
.contact-info-item p { font-size: 14px; color: var(--text-muted); }

.map-embed { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* -----------------------------------------------------------
   FOOTER
   ----------------------------------------------------------- */
.site-footer { background: var(--secondary); color: rgba(255,255,255,0.75); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-4);
  padding: var(--space-10) 0 var(--space-6);
}
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.footer-col img { max-height: 70px; margin-bottom: var(--space-2); }
.footer-col p { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.7); }
.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-3) 0;
  display: flex; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.7); }

@media (max-width: 1024px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------
   FLOATING BUTTONS
   ----------------------------------------------------------- */
.floating-whatsapp, .back-to-top {
  position: fixed;
  bottom: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 600;
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  cursor: pointer;
  border: none;
}
.floating-whatsapp { right: 24px; background: var(--whatsapp); }
.floating-whatsapp svg { width: 26px; height: 26px; fill: var(--white); }
.floating-whatsapp:hover { background: var(--whatsapp-dark); }

.back-to-top { left: 24px; background: var(--secondary); }
.back-to-top svg { width: 20px; height: 20px; fill: var(--white); }
.back-to-top:hover { background: #000; }

.floating-whatsapp.is-visible, .back-to-top.is-visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* -----------------------------------------------------------
   SCROLL REVEAL
   ----------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -----------------------------------------------------------
   RESPONSIVE SECTION PADDING
   ----------------------------------------------------------- */
@media (max-width: 768px) {
  .btn {padding: 3px 8px;font-size: 12px;}
  .section { padding: var(--space-6) 0; }
  h2 { font-size: 26px; }
  .two-col { gap: var(--space-4); }
}

/* -----------------------------------------------------------
   PRINT
   ----------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .floating-whatsapp, .back-to-top, .whatsapp-btn, .mobile-drawer, .drawer-overlay {
    display: none !important;
  }
}
/* ===========================================
   PREMIUM HEADER CTA
=========================================== */

.nav-header-cta{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    transition:all .35s cubic-bezier(.22,1,.36,1);
    animation:ctaPulse 2.8s infinite;
    box-shadow:
        0 10px 25px rgba(168,121,44,.22),
        0 0 0 0 rgba(168,121,44,.45);
}

/* Moving shine */
.nav-header-cta::before{
    content:"";
    position:absolute;
    top:0;
    left:-120%;
    width:60%;
    height:100%;
    background:linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.45),
        transparent
    );
    transform:skewX(-25deg);
    animation:ctaShine 3.5s infinite;
    z-index:1;
}

/* Animated glowing border */
.nav-header-cta::after{
    content:"";
    position:absolute;
    inset:-3px;
    border-radius:inherit;
    border:2px solid rgba(249,249,215,.45);
    opacity:0;
    animation:ctaRing 2.8s infinite;
    z-index:-1;
}

.nav-header-cta:hover{

    transform:translateY(-3px) scale(1.04);

    box-shadow:
        0 18px 40px rgba(168,121,44,.35);

}

.nav-header-cta:active{
    transform:scale(.97);
}

/* ===========================================
   Animations
=========================================== */

@keyframes ctaPulse{

    0%,100%{
        transform:scale(1);
        box-shadow:
            0 10px 25px rgba(168,121,44,.22),
            0 0 0 0 rgba(168,121,44,.40);
    }

    50%{
        transform:scale(1.03);
        box-shadow:
            0 16px 38px rgba(168,121,44,.35),
            0 0 0 10px rgba(168,121,44,0);
    }

}

@keyframes ctaShine{

    0%{
        left:-140%;
    }

    45%{
        left:160%;
    }

    100%{
        left:160%;
    }

}

@keyframes ctaRing{

    0%{
        opacity:0;
        transform:scale(.9);
    }

    20%{
        opacity:.8;
    }

    70%{
        opacity:0;
        transform:scale(1.12);
    }

    100%{
        opacity:0;
        transform:scale(1.12);
    }

}
/* ===========================================================
   HERO SLIDER (4 slides, drag/swipe on all devices)
   =========================================================== */
.hero-slider {
  position: relative;
  min-height: min(90vh, 700px);
  overflow: hidden;
  color: var(--white);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.hero-slider.is-dragging { cursor: grabbing; }

.hero-slider-track {
  display: flex;
  height: min(90vh, 700px);
  transition: transform 0.45s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.hero-slider.is-dragging .hero-slider-track { transition: none; }

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  pointer-events: none;
}
.hero-slide .hero-content { position: relative; z-index: 2; max-width: 720px; pointer-events: auto; }
.hero-slide .eyebrow { color: #ffb3b8; }
.hero-slide h1 { color: var(--white); font-size: 3.05rem; margin-bottom: var(--space-2); }
.hero-slide .hero-sub { font-size: 1.06rem; color: rgba(255,255,255,0.85); margin-bottom: var(--space-4); max-width: 600px; }

@media (max-width: 768px) {
  .hero-slider, .hero-slider-track { min-height: 80vh; height: 80vh; }
  .hero-slide h1 { font-size: 2rem; }
  .hero-slide { text-align: left; }
}

/* dots */
.hero-dots {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot.is-active { background: var(--primary); transform: scale(1.2); }

/* arrows */
.hero-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-arrow svg { width: 20px; height: 20px; fill: currentColor; }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
@media (max-width: 640px) { .hero-arrow { display: none; } }

/* ===========================================================
   TENDER MANAGEMENT ROW (auto-scrolling infinite marquee, homepage)
   =========================================================== */
.tender-row-wrap { position: relative; overflow: hidden; }
.tender-row-wrap::before, .tender-row-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 20px;
  z-index: 2;
  pointer-events: none;
}
.tender-row-wrap::before { left: 0; background: linear-gradient(90deg, var(--light-bg), transparent); }
.tender-row-wrap::after { right: 0; background: linear-gradient(270deg, var(--light-bg), transparent); }

.tender-row {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  animation: tenderMarquee 34s linear infinite;
}
.tender-row.is-paused { animation-play-state: paused; }

@keyframes tenderMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tender-card {
  flex: 0 0 400px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tender-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.tender-card .card-img { aspect-ratio: 4/3; background: var(--light-bg); }
.tender-card .card-img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tender-card .card-body { padding: var(--space-3); }
.tender-card .card-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.tender-card .card-body p { font-size: 13px; color: var(--text-muted); margin-bottom: var(--space-2); min-height: 54px; }
.tender-card-links { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.tender-card-links a { font-size: 13px; font-weight: 600; }
.tender-card-links .card-link { color: var(--primary); }
.tender-card-links .whatsapp-link { color: var(--whatsapp); }

@media (max-width: 900px) {
  .tender-card { flex: 0 0 300px; }
}
@media (max-width: 640px) {
  .tender-card { flex: 0 0 78vw; }
  .tender-row { animation-duration: 26s; }
}

/* ===========================================================
   EQUIPMENT RANGE — TRIMMED TO 3 CARDS
   =========================================================== */
.equipment-range-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .equipment-range-grid { grid-template-columns: 1fr; }
}
.card-enquire-only {
  display: flex;
  flex-direction: column;
}
.card-enquire-only .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-enquire-only .card-body .btn { margin-top: auto; align-self: flex-start; }

/* ===========================================================
   FLIPBOOK / DOWNLOAD SECTION
   =========================================================== */
.flipbook-wrap {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--light-bg);
}
.flipbook-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.flipbook-actions { text-align: center; margin-top: var(--space-4); }
@media (max-width: 640px) { .flipbook-wrap { aspect-ratio: 4/5; } }

/* ===========================================================
   TENDER MANAGEMENT PAGE (tender-management.html)
   =========================================================== */
.tm-section { padding: var(--space-10) 0; scroll-margin-top: 100px; }
.tm-section:nth-child(even) { background: var(--light-bg); }
.tm-item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 1024px) { .tm-item-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tm-item-grid { grid-template-columns: 1fr; } }

.tm-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tm-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.tm-item .card-img { aspect-ratio: 4/3; }
.tm-item .card-img img { width: 100%; height: 100%; object-fit: cover; }
.tm-item .card-body { padding: var(--space-3); }
.tm-item .card-body h4 { font-size: 1rem; margin-bottom: 4px; color: var(--secondary); }
.tm-item .card-body p { font-size: 13px; color: var(--text-muted); }

.tm-section-enquire { text-align: center; margin-top: var(--space-6); }

/* Mega menu variant for dropdowns with fewer columns (2 instead of 3) */
.mega-menu.cols-2 { grid-template-columns: 1fr 400px; }


/* ===========================================================
   TENDER MANAGEMENT — SOLUTION TABBAR
   =========================================================== */

.tm-tabbar {
  position: relative;
  z-index: 20;
  width: 100%;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Keep the tab group centered instead of stretching full width */
.tm-tabbar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
  max-width: 100%;
}

/* Main tab list */
.tm-tabbar-list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 0;
  gap: 6px;
}

/* Individual tab */
.tm-tabbar-list li {
  flex: 0 0 auto;
}

/* Tab link */
.tm-tabbar-list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 10px 18px;

  border: 1px solid transparent;
  border-radius: var(--radius-btn);

  background: transparent;
  color: var(--secondary);

  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Hover */
.tm-tabbar-list a:hover {
  color: var(--primary);
  background: rgba(230, 0, 18, 0.05);
  border-color: rgba(230, 0, 18, 0.16);
  transform: translateY(-1px);
}

/* Active-looking red underline */
.tm-tabbar-list a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -11px;

  height: 3px;
  border-radius: 3px;

  background: var(--primary);

  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

/* Show underline on hover */
.tm-tabbar-list a:hover::after {
  transform: scaleX(1);
}

/* Keyboard accessibility */
.tm-tabbar-list a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}


/* -----------------------------------------------------------
   DESKTOP — SLIGHTLY MORE PREMIUM TAB APPEARANCE
   ----------------------------------------------------------- */

@media (min-width: 769px) {

  .tm-tabbar {
    padding: 0;
  }

  .tm-tabbar-list {
    min-height: 68px;
    padding: 10px 0;
  }

  .tm-tabbar-list a {
    min-height: 48px;
    padding: 10px 20px;
  }

}


/* -----------------------------------------------------------
   TABLET
   ----------------------------------------------------------- */

@media (max-width: 900px) {

  .tm-tabbar-list {
    gap: 4px;
  }

  .tm-tabbar-list a {
    padding: 10px 14px;
    font-size: 13px;
  }

}


/* -----------------------------------------------------------
   MOBILE — HORIZONTAL SCROLLING TABS
   ----------------------------------------------------------- */

@media (max-width: 768px) {

  .tm-tabbar {
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  }

  .tm-tabbar .container {
    display: block;
    padding: 0;
    overflow: hidden;
  }

  .tm-tabbar-list {
    width: 100%;
    max-width: none;

    display: flex;
    justify-content: flex-start;
    align-items: center;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 8px 16px;

    gap: 6px;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;

    -webkit-overflow-scrolling: touch;

    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .tm-tabbar-list::-webkit-scrollbar {
    display: none;
  }

  .tm-tabbar-list li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .tm-tabbar-list a {
    min-height: 44px;
    min-width: max-content;

    padding: 9px 15px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: var(--white);

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .tm-tabbar-list a:hover {
    transform: none;
  }

  /* Remove desktop underline behavior on mobile */
  .tm-tabbar-list a::after {
    display: none;
  }

}


/* -----------------------------------------------------------
   SMALL MOBILE
   ----------------------------------------------------------- */

@media (max-width: 480px) {

  .tm-tabbar-list {
    padding: 7px 12px;
    gap: 6px;
  }

  .tm-tabbar-list a {
    min-height: 42px;
    padding: 8px 13px;
    font-size: 12px;
  }

}


/* -----------------------------------------------------------
   TENDER SECTION ANCHOR OFFSET
   Works with your sticky site header
   ----------------------------------------------------------- */

.tm-section {
  scroll-margin-top: 205px;
}

@media (max-width: 1080px) {

  .tm-section {
    scroll-margin-top: 145px;
  }

}

@media (max-width: 768px) {

  .tm-section {
    scroll-margin-top: 135px;
  }

}

/* ===========================================================
   FORKLIFT RANGE — PRODUCT CATEGORY TABS
   (Electric / Diesel / Attachments switcher on forklifts.html)
   =========================================================== */

.product-tabbar {
  position: relative;
  z-index: 10;
  width: 100%;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.product-tabbar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
  max-width: 100%;
}

.product-tabbar-list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  list-style: none;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 0;
  gap: 6px;
}

.product-tabbar-list li {
  flex: 0 0 auto;
}

.product-tab-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 48px;
  padding: 10px 22px;

  border: 1px solid var(--border);
  border-radius: var(--radius-btn);

  background: var(--white);
  color: var(--secondary);

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-tab-btn:hover {
  color: var(--primary);
  background: rgba(230, 0, 18, 0.05);
  border-color: rgba(230, 0, 18, 0.16);
  transform: translateY(-1px);
}

.product-tab-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.product-tab-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(230, 0, 18, 0.25);
}

.product-tab-btn.is-active:hover {
  color: var(--white);
  transform: none;
}

.product-tab-btn .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-size: 11px;
  font-weight: 700;
}

.product-tab-btn.is-active .tab-count {
  background: rgba(255, 255, 255, 0.25);
}

/* Panels */
.product-tab-panel {
  display: none;
}

.product-tab-panel.is-active {
  display: block;
  animation: tabFadeIn 0.35s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* When "All" is selected, panels stack — add a divider between them
   so each category still reads as a distinct block */
.product-tab-panel.is-stacked {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.product-tab-panel.is-stacked:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* -----------------------------------------------------------
   DESKTOP
   ----------------------------------------------------------- */

@media (min-width: 769px) {

  .product-tabbar {
    padding: 0;
  }

  .product-tabbar-list {
    min-height: 68px;
    padding: 10px 0;
  }

  .product-tab-btn {
    min-height: 48px;
    padding: 10px 26px;
    font-size: 15px;
  }

}

/* -----------------------------------------------------------
   TABLET
   ----------------------------------------------------------- */

@media (max-width: 900px) {

  .product-tabbar-list {
    gap: 4px;
  }

  .product-tab-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

}

/* -----------------------------------------------------------
   MOBILE — HORIZONTAL SCROLLING TABS
   ----------------------------------------------------------- */

@media (max-width: 768px) {

  .product-tabbar {
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  }

  .product-tabbar .container {
    display: block;
    padding: 0;
    overflow: hidden;
  }

  .product-tabbar-list {
    width: 100%;
    max-width: none;

    display: flex;
    justify-content: flex-start;
    align-items: center;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 10px 16px;
    gap: 8px;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .product-tabbar-list::-webkit-scrollbar {
    display: none;
  }

  .product-tabbar-list li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .product-tab-btn {
    min-height: 44px;
    min-width: max-content;
    padding: 9px 16px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .product-tab-btn:hover {
    transform: none;
  }

}

/* -----------------------------------------------------------
   SMALL MOBILE
   ----------------------------------------------------------- */

@media (max-width: 480px) {

  .product-tabbar-list {
    padding: 8px 12px;
    gap: 6px;
  }

  .product-tab-btn {
    min-height: 42px;
    padding: 8px 14px;
    font-size: 12px;
  }

}

/* Sticky offset if a panel is ever deep-linked */
.product-tab-panel {
  scroll-margin-top: 205px;
}

@media (max-width: 1080px) {
  .product-tab-panel { scroll-margin-top: 145px; }
}

@media (max-width: 768px) {
  .product-tab-panel { scroll-margin-top: 135px; }
}