* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===================================================
   PRECISION STEEL – PREMIUM INDUSTRIAL THEME
=================================================== */

:root {
  /* Core Identity */
  --color-primary: #1c1f26;       /* Deep Industrial Charcoal */
  --color-secondary: #f9fafb;     /* Clean Corporate White */
  --color-accent: #4b5563;        /* Steel Grey Accent (NOT blue) */

  /* Text */
  --color-text-main: #111827;
  --color-text-muted: #6b7280;

  /* Surfaces */
  --color-surface: #ffffff;
  --color-surface-alt: #f3f4f6;

  /* Borders */
  --color-border-soft: #d1d5db;
  --color-border-strong: #9ca3af;

  /* Footer */
  --color-footer-bg: #020617;

  /* WhatsApp (Official Only) */
  --color-whatsapp: #25D366;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-secondary);
}

/* Layout Helpers */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Navigation */
header {
  border-bottom: 1px solid #1f2933;
  background-color: var(--color-primary);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #ecf0f1;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-accent);
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #ffffff;
}

/* Hero */
.hero {
  padding: 2.5rem 0 2.2rem;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f4f6f7 40%,
    #dfe4ea 100%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.hero h1 span {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 1.1rem;
  color: var(--color-text-muted);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.badge {
  background-color: #ecf0f1;
  color: var(--color-text-main);
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-weight: 500;
  border: 1px solid var(--color-border-soft);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.brand-pill {
  text-decoration: none;
}


/* Buttons mapped to theme */
.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: #1d2a36;
  border-color: #1d2a36;
}

.btn-secondary {
  background-color: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.btn-secondary:hover {
  background-color: #d8870f;
  border-color: #d8870f;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: rgba(44, 62, 80, 0.06);
}

/* NEW: Quote Button */
.btn-quote {
  background-color: var(--color-accent);
  color: #ffffff;
  border: 1px solid var(--color-accent);
}

.btn-quote:hover {
  background-color: #d8870f;
  border-color: #d8870f;
}

.hero-secondary {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Hero image + card */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-image {
  width: 100%;
  border-radius: 0.9rem;
  object-fit: cover;
  max-height: 220px;
  box-shadow: 0 14px 28px rgba(26, 37, 47, 0.25);
}

.hero-card {
  background-color: var(--color-surface);
  border-radius: 0.9rem;
  box-shadow: 0 10px 20px rgba(26, 37, 47, 0.12);
  padding: 1.2rem;
  border: 1px solid var(--color-border-soft);
}

.hero-card h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.hero-card ul {
  list-style: none;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.hero-card li {
  margin-bottom: 0.4rem;
}

/* Sections */
.section {
  padding: 2rem 0;
  margin: 1.2rem 0;
  background-color: var(--color-surface);
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(26, 37, 47, 0.06);
  border: 1px solid var(--color-border-soft);
}

.section.alt {
  background-color: var(--color-surface-alt);
}

.section.dark {
  background-color: var(--color-primary);
  color: #ecf0f1;
  border-color: #1f2933;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  color: var(--color-primary);
}

.section.dark .section-heading h2 {
  color: #ffffff;
}

.section-heading p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.section.dark .section-heading p {
  color: #d0d7de;
}

/* Brand text pills */
.brand-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.brand-pill {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-soft);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-main);
  background-color: #ffffff;
}

/* Brand logo slider */
.brand-slider {
  overflow: hidden;
  margin-top: 0.75rem;
  border-radius: 0.75rem;
  background-color: #ffffff;
  border: 1px solid var(--color-border-soft);
  padding: 0.4rem 0.3rem;
}

.brand-slider-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  animation: scrollBrands 40s linear infinite; /* slowed down */
  width: max-content;
}

/* All logo images equal size & symmetrical */
.brand-slider img {
  width: 130px;
  height: 200px;
  object-fit: contain;
  display: block;
}

/* Slider animation */
@keyframes scrollBrands {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border-radius: 0.75rem;
  border: 1px solid var(--color-border-soft);
  padding: 1rem;
  background-color: var(--color-surface);
  box-shadow: 0 4px 10px rgba(26, 37, 47, 0.05);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}

.card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* Bearing type images */
.bearing-type-image {
  width: 100%;
  height: 200px;
  border-radius: 0.6rem;
  object-fit: cover;
  margin-bottom: 0.5rem;
  box-shadow: 0 6px 12px rgba(26, 37, 47, 0.18);
}

/* Industry images (Home > Industries) */
.industry-image {
  width: 100%;
  height: 200px;
  border-radius: 0.6rem;
  object-fit: cover;
  margin-bottom: 0.55rem;
  box-shadow: 0 6px 12px rgba(26, 37, 47, 0.15);
}

/* USP list */
.usp-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.usp-item {
  font-size: 0.9rem;
  color: #ecf0f1;
}

/* About slider */
.about-slider {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(26, 37, 47, 0.22);
}

.about-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.about-slide.active {
  opacity: 1;
}

/* Brand Grid – Products Page */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  justify-items: center;
  align-items: center;
}


.brand-card {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  height: 220px;   /* Keep your original height */
  padding: 5px;   /* Adds breathing space */
background: #fff;
border-radius: 8px;
border: 1px;   /* light subtle */
  
}

.brand-card img {
  max-height: 160px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
transition: transform 0.3s ease;

}


.brand-card span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.brand-card:hover img {
  transform: scale(1.05);
}

/* Contact Strip */
.contact-strip {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 1.6rem 0;
  border-radius: 1rem;
  margin: 1.2rem 0;
  box-shadow: 0 10px 20px rgba(26, 37, 47, 0.22);
}

.contact-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-strip p {
  font-size: 0.95rem;
}

/* Forms */
form {
  display: grid;
  gap: 0.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 0.15rem;
}

input,
textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border-soft);
  font-size: 0.9rem;
  font-family: inherit;
  background-color: var(--color-surface);
  color: var(--color-text-main);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(44, 62, 80, 0.3);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
footer.footer {
  padding: 1.8rem 0;
  border-top: 1px solid #111827;
  margin-top: 2rem;
  background-color: var(--color-footer-bg);
  color: #ecf0f1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem; /* equal spacing between sections */
  align-items: flex-start;
}

.footer h4 {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.footer p,
.footer a {
  font-size: 0.86rem;
}

.footer a {
  color: #ecf0f1;
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #c0ccd6;
  margin-top: 1.1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .usp-list {
    grid-template-columns: 1fr;
  }

  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 0.6rem 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    background-color: var(--color-primary);
    border-radius: 0.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    flex-direction: column;
    padding: 0.6rem 0.8rem;
    min-width: 170px;
  }

  .nav-links a {
    color: #f4f6f7;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: 1.6rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Full-width map on Contact page */
.map-fullwidth {
  width: 100%;
  height: 220px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 12px 24px rgba(26, 37, 47, 0.18);
}

.map-fullwidth iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer map styled like main map */
.footer-map-bordered {
  width: 100%;
  height: 200px;
  margin-top: 2rem;
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
  box-shadow: 0 12px 24px rgba(26, 37, 47, 0.25);
  background-color: #000;
  overflow: hidden;
}

.footer-map-bordered iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .footer-grid-wide {
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .footer-grid-wide {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-grid-wide > div {
    max-width: 100%;
  }

  .footer-map-bordered {
    height: 220px;
  }
}

/* ===================================================
   SAFE ENHANCEMENTS — APPENDED ONLY
   (Does NOT affect existing layout)
=================================================== */

/* Slow down brand slider (no layout impact) */
.brand-slider-track {
  animation-duration: 55s !important;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Footer map styling — isolated container only */
.footer-map-bordered {
  max-width: 1400px;
  margin: 2rem auto 0;
  height: 300px;
  overflow: hidden;
  border-radius: 1.2rem;
}

.footer-map-bordered iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .footer-map-bordered {
    height: 220px;
    margin: 1.5rem 1rem 0;
    border-radius: 0.9rem;
  }
}


.bearing-section {
  padding: 0 0;
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;   /* increase/decrease this value as needed */
}

/* Content links only */
main a {
  text-decoration: none;
}

main a:hover {
  text-decoration: underline;
}

/* ===================================================
   PREMIUM UI POLISH (NO LAYOUT IMPACT)
=================================================== */

/* Button depth refinement */
.btn-primary {
  background: linear-gradient(
    180deg,
    var(--color-primary),
    #0f172a
  );
}

.btn-secondary {
  background: linear-gradient(
    180deg,
    var(--color-accent),
    #1d4ed8
  );
}

/* Card interaction polish */
.card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

/* Section depth (very subtle) */
.section {
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.02),
    transparent
  );
}

/* Navigation micro-interaction */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
}


/* ================= MOBILE STICKY CTA ================= */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #ddd;
  }

  .mobile-cta {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
  }

  .mobile-cta.call {
    background: #000;
    color: #fff;
  }

  .mobile-cta.whatsapp {
    background: #25D366;
    color: #fff;
  }

  body {
    padding-bottom: 56px;
  }
}

@media (max-width: 768px) {
  .section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}


@media (max-width: 768px) {

  /* --------------------------------
     WHY ROLLMECH – collapse
  -------------------------------- */
  
  /* --------------------------------
     HOW WE SUPPORT – collapse
  -------------------------------- */

  /* --------------------------------
     EARLY CTA – mobile only
  -------------------------------- */
  .mobile-only-cta {
    display: block;
  }

}

/* Desktop safety */
@media (min-width: 769px) {
  .mobile-only-cta {
    display: none;
  }
}

/* ===================================================
   ABOUT US PAGE – SECTION CONTAINERS
=================================================== */

/* ===================================================
   ABOUT US – SECTION CONTAINERS (FINAL)
=================================================== */

.about-block {
  background-color: #ffffff;
  border: 1px solid var(--color-border-soft);
  border-radius: 1.2rem;
  padding: 1.6rem 1.8rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 24px rgba(26, 37, 47, 0.08);
}

.about-block h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--color-primary);
}

.about-block p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-main);
}

.about-block ul {
  margin-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.about-block ul li {
  margin-bottom: 0.55rem;
}

.about-muted {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.about-cta {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Mobile refinement */
@media (max-width: 768px) {

  .about-block {
    padding: 1.2rem 1.3rem;
    border-radius: 1rem;
  }

  .about-block h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  header .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.brand {
  text-decoration: none;
  color: inherit;
}

/* ==========================================
   MOBILE CARD SLIDER SYSTEM (NEW)
========================================== */

/* ==========================================
   MOBILE CARD SLIDER – FINAL STABLE VERSION
   (ONLY affects max-width: 768px)
========================================== */

@media (max-width: 768px) {

  /* --- Main Wrapper --- */
  .mobile-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
  }

  /* --- Viewport (prevents overflow) --- */
  .mobile-slider .slider-viewport {
    width: 100%;
    overflow: hidden;
  }

  /* --- Track (override grid layout safely) --- */
  .mobile-slider .grid-3 {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    transition: transform 0.35s ease;
    width: 100%;
  }

  /* --- Each Slide --- */
  .mobile-slider .card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* --- Arrows --- */
  .mobile-slider .arrow {
    position: absolute;

    top: 45%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    font-size: 14px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-slider .arrow-left {
    left: 6px;
  }

  .mobile-slider .arrow-right {
    right: 6px;
  }

  .mobile-slider .arrow.hidden {
    display: none;
  }

  /* --- Dots --- */
  .mobile-slider .slider-dots {
    text-align: center;
    margin-top: 12px;
  }

  .mobile-slider .slider-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 4px;
    transition: background 0.2s ease;
  }

  .mobile-slider .slider-dots span.active {
    background: #000;
  }

}/* ==========================================
   MOBILE SLIDER – CLEAN SIDE ARROWS
   (NO OVERLAY, NO CIRCLE, NO CONTENT BLOCK)
========================================== */

@media (max-width: 768px) {

  .mobile-slider-wrapper {
    width: 100%;
  }

  .mobile-slider {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
  }

  .mobile-slider .slider-viewport {
    flex: 1;
    overflow: hidden;
  }

  .mobile-slider .grid-3 {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    transition: transform 0.35s ease;
    width: 100%;
  }

  .mobile-slider .card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* === PUSHED ARROWS === */
  .mobile-slider .arrow {
    background: none;
    border: none;
    color: #1c1f26;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .mobile-slider .arrow-left {
    left: -6px;  /* push slightly outside container */
  }

  .mobile-slider .arrow-right {
    right: -6px;
  }

  .mobile-slider .arrow.hidden {
    visibility: hidden;
  }

  /* DOTS */
  .slider-dots {
    width: 100%;
    text-align: center;
    margin-top: 12px;
  }

}

@media (max-width: 768px) {

  .mobile-slider-wrapper .support-toggle,
  .mobile-slider-wrapper .why-toggle {
    max-height: none !important;
    overflow: visible !important;
  }

}

/* ==========================================
   ARROWS: MOBILE ONLY
========================================== */

/* Hide arrows everywhere by default (desktop) */
.mobile-slider .arrow {
  display: none;
}

/* Show arrows only on mobile screens */
@media (max-width: 768px) {
  .mobile-slider .arrow {
    display: block;
  }
}

