
:root {
  --navy: #082b50;
  --deep-navy: #041628;
  --orange: #ff8a00;
  --gold: #c49a32;
  --white: #ffffff;
  --light: #f4f7fb;
  --text: #17283b;
  --muted: #66758a;
  --border: #dce4ed;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(4, 22, 40, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.container {
  width: min(1200px, 94%);
  margin-inline: auto;
}

.section {
  padding: 64px 0;
}

.section-title {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.2;
}

.section-description {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--muted);
}

/* HEADER */

.site-header,
header {
  position: relative;
  z-index: 100;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo,
.logo {
  width: auto;
  max-width: 210px;
  max-height: 68px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

.main-nav,
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.main-nav a,
nav a {
  color: var(--navy);
  font-weight: 700;
  transition: color 0.2s ease;
}

.main-nav a:hover,
nav a:hover {
  color: var(--orange);
}

.language-selector,
#languageSelector,
#languageSelect {
  max-width: 150px;
  padding: 8px 10px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 9px;
}

/* BUTTONS */

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--orange);
}

.btn-primary:hover {
  background: #e77900;
}

.btn-secondary {
  color: var(--white);
  background: var(--navy);
}

.btn-outline {
  color: var(--navy);
  background: transparent;
  border-color: var(--navy);
}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--deep-navy), var(--navy));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 65px 0;
}

.hero h1 {
  max-width: 800px;
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
}

.hero p {
  max-width: 680px;
  font-size: 17px;
}

.hero img {
  object-fit: cover;
}

/* CARDS AND PRODUCTS */

.card,
.product-card,
.service-card,
.brand-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-body,
.product-card-body {
  padding: 18px;
}

.product-grid,
.services-grid,
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card img,
.product-image {
  width: 100%;
  height: 210px;
  object-fit: contain;
  padding: 12px;
  background: var(--light);
}

.product-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 18px;
}

.product-price {
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
}

.product-card .btn {
  width: 100%;
  margin-top: 12px;
}

.muted,
.text-muted {
  color: var(--muted);
}

/* FORMS */

.form-group {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(255, 138, 0, 0.25);
  border-color: var(--orange);
}
.brands-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.brand-card {
  min-height: 115px;
  padding: 12px 8px;
  font-size: 13px;
}

.brand-card img {
  width: 65px;
  height: 45px;
  object-fit: contain;
  margin-bottom: 8px;
}

/* FOOTER */

.site-footer,
footer {
  padding: 35px 0;
  color: var(--white);
  background: var(--deep-navy);
}

.site-footer a,
footer a {
  color: var(--white);
}

.site-footer a:hover,
footer a:hover {
  color: var(--orange);
}

/* FLOATING CONTACT BUTTONS */

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.floating-contact a.whatsapp {
  background: #168b51;
}

.floating-contact svg,
.floating-contact img {
  width: 25px;
  height: 25px;
}

/* CART AND STATUS */

.cart-count,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  color: var(--navy);
  background: #edf2f8;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.loading,
.empty-state,
.error-message {
  padding: 24px;
  text-align: center;
  border-radius: var(--radius);
}

.loading,
.empty-state {
  background: var(--light);
}

.error-message {
  color: #9f2020;
  background: #fff0f0;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .product-grid,
  .services-grid,
  .brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .header-inner {
    gap: 12px;
  }

  .main-nav,
  nav {
    gap: 12px;
  }
}

@media (max-width: 700px) {
  .container {
    width: 94%;
  }

  .section {
    padding: 42px 0;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .site-logo,
  .logo {
    max-width: 165px;
    max-height: 55px;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .main-nav,
  nav {
    gap: 10px;
    font-size: 13px;
  }

  .product-grid,
  .services-grid,
  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card img,
  .product-image {
    height: 150px;
  }

  .product-card-body {
    padding: 12px;
  }

  .hero-content {
    padding: 42px 0;
  }

  .hero h1 {
    font-size: 34px;
  }

  .floating-contact {
    right: 12px;
    bottom: 14px;
  }

  .floating-contact a {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 380px) {
  .product-grid,
  .services-grid,
  .brands-grid {
    grid-template-columns: 1fr;
  }
}

/* CONTACT SECTION LAYOUT */
.contact-grid,
.contact-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
}

.contact-info,
.contact-form {
  min-width: 0;
  width: 100%;
}

.contact-info {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #dce4ed;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(4, 22, 40, 0.08);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #e8edf3;
}

.contact-item > div:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.contact-item a,
.contact-item span {
  overflow-wrap: anywhere;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: #082b50;
  background: #f0f4f9;
  border-radius: 10px;
}

.map-link {
  display: inline-block;
  margin: 18px 0;
  color: #082b50;
  font-weight: 700;
}

.contact-form {
  padding: 26px;
  background: #ffffff;
  border: 1px solid #dce4ed;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(4, 22, 40, 0.10);
}

/* Respect the hidden attribute until the form is opened */
.contact-form[hidden] {
  display: none !important;
}

.contact-form:not([hidden]) {
  display: block;
}

.contact-form h3 {
  margin-top: 0;
  color: #082b50;
}

.contact-form .btn {
  width: 100%;
}

@media (max-width: 700px) {
  .contact-grid,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-info,
  .contact-form {
    padding: 1
  }
}

/* WhatsApp floating button */
.float-btn.whatsapp,
.float-btn.wa,
.float-btn[href*="wa.me"],
.float-btn[href*="whatsapp"] {
  background-color: #25D366 !important;
  color: #ffffff !important;
}




/* ========================================
   T-MECHATRUCKS SHARED HEADER
   White + Navy + Gold
======================================== */

.tm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #FFFFFF;
  color: #082B50;
  border-bottom: 3px solid #C49A32;
  box-shadow: 0 5px 18px rgba(4, 22, 40, 0.08);
}

.tm-header-inner {
  width: min(1320px, 96%);
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.tm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #082B50;
  text-decoration: none;
}

.tm-brand img {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
}

.tm-brand-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tm-brand-name {
  color: #082B50;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.tm-brand-tagline {
  color: #A77B16;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.25px;
}

.tm-header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.tm-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 15px;
}

.tm-nav a {
  color: #082B50;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.tm-nav a:hover,
.tm-nav a.active {
  color: #A77B16;
}

.tm-language {
  width: 88px;
  flex-shrink: 0;
  padding: 8px 5px;
  border: 1px solid #C49A32;
  border-radius: 8px;
  background: #FFFFFF;
  color: #082B50;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.tm-menu-toggle {
  display: none;
  padding: 8px 11px;
  border: 1px solid #C49A32;
  border-radius: 8px;
  background: #FFFFFF;
  color: #082B50;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1050px) {
  .tm-header-inner {
    width: 94%;
    gap: 12px;
  }

  .tm-brand img {
    width: 52px;
    height: 52px;
  }

  .tm-brand-name {
    font-size: 14px;
  }

  .tm-nav {
    gap: 10px;
  }

  .tm-nav a {
    font-size: 11px;
  }
}

@media (max-width: 800px) {
  .tm-header-inner {
    min-height: 76px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .tm-header-controls {
    gap: 10px;
  }

  .tm-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .tm-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px 0 4px;
    border-top: 1px solid #E5D5AA;
  }

  .tm-nav.tm-nav-open {
    display: flex;
  }

  .tm-nav a {
    padding: 12px 8px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .tm-header-inner {
    width: 94%;
  }

  .tm-brand {
    gap: 8px;
  }

  .tm-brand img {
    width: 43px;
    height: 43px;
  }

  .tm-brand-name {
    font-size: 12px;
  }

  .tm-brand-tagline {
    font-size: 8px;
    letter-spacing: 0.8px;
  }

  .tm-header-controls {
    gap: 7px;
  }

  .tm-language {
    width: 78px;
    padding: 7px 3px;
  }
}

.testimonials-actions {
  display: flex;
  justify-content: center;
  margin-top: 45px;
  padding-top: 10px;
  clear: both;
}

.testimonials-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  background: #082b50;
  color: #ffffff;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.testimonials-actions a:hover {
  background: #ff8a00;
  transform: translateY(-2px);
}
