/* =========================
   ADM TR Bearing Website CSS
   File: assets/css/styles.css
========================= */

:root {
  --blue-dark: #062f63;
  --blue: #075da3;
  --blue-light: #eaf3ff;
  --orange: #ff7214;
  --orange-dark: #e95f05;
  --text: #061b3a;
  --muted: #4f5f78;
  --border: #dbe7f5;
  --bg: #f7fbff;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(6, 47, 99, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   Accessibility
========================= */

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--blue-dark);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
}

/* =========================
   Topbar
========================= */

.topbar {
  background: linear-gradient(90deg, #062f63, #075da3);
  color: #ffffff;
  font-size: 14px;
}

.topbar .container {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.topbar a:hover {
  text-decoration: underline;
}

/* =========================
   Header / Navbar
========================= */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-row {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  height: 62px;
  width: auto;
}

/* Menu toggle hidden on desktop */
.menu-toggle {
  display: none;
  border: 0;
  background: var(--blue-light);
  color: var(--blue-dark);
  padding: 11px 16px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  white-space: nowrap;
}

.nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  padding: 13px 16px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
  background: var(--blue-light);
}

/* Header action area */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Search form */
.header-actions form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.search-mini {
  width: 235px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  padding: 0 15px;
  font-size: 14px;
  outline: none;
}

.search-mini:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 93, 163, 0.12);
}

/* =========================
   Buttons
========================= */

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn-blue {
  background: var(--blue-dark);
  color: #ffffff;
}

.btn-blue:hover {
  background: #041f42;
}

.btn-primary {
  background: var(--orange);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-light {
  background: #ffffff;
  color: var(--blue-dark);
  border: 1px solid var(--border);
}

.btn-light:hover {
  background: var(--blue-light);
  border-color: #b7d4f5;
}

/* =========================
   Hero Section
========================= */

.hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(234, 243, 255, 0.78)),
    radial-gradient(circle at 80% 20%, rgba(7, 93, 163, 0.14), transparent 35%);
  padding: 64px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  color: var(--text);
}

h1 {
  font-size: clamp(36px, 5vw, 62px);
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 14px;
  letter-spacing: -0.8px;
}

h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.lead {
  font-size: 20px;
  color: #17345f;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
}

.hero-visual {
  background: linear-gradient(135deg, #eaf3ff, #ffffff);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  border-radius: 22px;
}

/* Trust row */
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 26px 0;
}

.trust {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.trust strong {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 999px;
  flex-shrink: 0;
}

.trust b {
  display: block;
  font-size: 13px;
}

.trust span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

/* Hero search panel */
.search-panel {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.search-panel input {
  min-width: 290px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
}

.search-panel input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 93, 163, 0.12);
}

/* =========================
   Sections
========================= */

.section {
  padding: 64px 0;
}

.section:nth-of-type(even) {
  background: var(--bg);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

/* =========================
   Product Grid / Cards
========================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 12px 26px rgba(6, 47, 99, 0.06);
  transition: 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #b7d4f5;
}

.product-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px solid #eef4fb;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 16px;
}

.code {
  display: inline-flex;
  background: var(--blue-dark);
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.product-card p {
  color: var(--muted);
  margin-bottom: 14px;
}

.model-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  background: var(--blue-light);
  color: var(--blue-dark);
  border: 1px solid #cfe5ff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
}

/* =========================
   Cards / About / FAQ
========================= */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 26px rgba(6, 47, 99, 0.06);
}

.card p {
  color: var(--muted);
}

.check-list {
  padding-left: 0;
  list-style: none;
  margin: 18px 0 24px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 900;
}

/* FAQ */
.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--text);
}

.faq p {
  margin: 14px 0 0;
  color: var(--muted);
}

/* =========================
   CTA
========================= */

.cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #062f63, #075da3);
  color: #ffffff;
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.cta h2,
.cta p {
  color: #ffffff;
}

.cta p {
  margin-bottom: 0;
  opacity: 0.9;
}

.cta .eyebrow {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* =========================
   Footer
========================= */

.footer {
  background: #041f42;
  color: #d9e8f8;
  padding: 54px 0 22px;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1.25fr;
  gap: 30px;
}

.logo-footer {
  height: 58px;
  width: auto;
  margin-bottom: 16px;
  background: #ffffff;
  padding: 8px;
  border-radius: 14px;
}

.footer h3 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 14px;
}

.footer p {
  margin-top: 0;
}

.footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  margin-top: 34px;
  font-size: 14px;
  color: #bcd3eb;
}

/* =========================
   Product Inner Pages Support
========================= */

.page-hero {
  background: linear-gradient(135deg, #f7fbff, #eaf3ff);
  padding: 54px 0;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 12px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 900;
}

td {
  color: var(--muted);
}

/* =========================
   Responsive
========================= */

@media (max-width: 1120px) {
  .header-row {
    gap: 14px;
  }

  .nav a {
    padding: 11px 12px;
    font-size: 14px;
  }

  .search-mini {
    width: 200px;
  }
}

@media (max-width: 980px) {
  .header-row {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .logo img {
    height: 58px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    order: 3;
    width: 100%;
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0;
    padding-top: 8px;
  }

  .nav.open {
    display: flex;
  }

  .header-actions {
    order: 4;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .topbar .container {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 7px 0;
    gap: 4px;
  }

  .header-row {
    justify-content: center;
  }

  .logo img {
    height: 54px;
  }

  .menu-toggle {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav a {
    text-align: center;
  }

  .header-actions {
    align-items: stretch;
  }

  .header-actions form {
    width: 100%;
    flex-direction: column;
  }

  .search-mini {
    width: 100%;
  }

  .header-actions .btn,
  .search-panel .btn {
    width: 100%;
  }

  .hero {
    padding: 44px 0;
  }

  .trust-row,
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-panel {
    flex-direction: column;
  }

  .search-panel input {
    min-width: 0;
    width: 100%;
  }

  .section {
    padding: 46px 0;
  }

  .card,
  .cta {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* =========================
   FIX HORIZONTAL SCROLL
========================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Prevent any section/container from crossing screen width */
.site-header,
.topbar,
.hero,
.section,
.footer,
main {
  max-width: 100%;
  overflow-x: hidden;
}

/* Container must not exceed mobile width */
.container {
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* Header fix */
.header-row {
  width: 100%;
  max-width: 100%;
}

.header-actions {
  max-width: 100%;
}

.header-actions form {
  max-width: 100%;
}

.search-mini {
  max-width: 100%;
}

/* Hero search fix */
.search-panel {
  max-width: 100%;
}

.search-panel input {
  max-width: 100%;
}

/* Product cards fix */
.product-grid,
.grid-2,
.footer-grid,
.hero-grid,
.trust-row {
  max-width: 100%;
}

/* CTA inline button wrapper fix */
.cta > div {
  max-width: 100%;
}

/* Mobile specific fix */
@media (max-width: 640px) {
  .container {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }

  .header-actions {
    width: 100%;
  }

  .header-actions form {
    width: 100%;
  }

  .search-mini {
    width: 100%;
  }

  .btn {
    max-width: 100%;
  }

  .hero-grid,
  .grid-2,
  .product-grid,
  .footer-grid,
  .trust-row {
    width: 100%;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 38px;
    word-break: normal;
  }

  h2 {
    font-size: 30px;
  }

  .cta {
    width: 100%;
    max-width: 100%;
  }
}
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 100%;
}

@media (max-width: 640px) {
  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

.owner-name {
  background: #eaf3ff;
  color: #062f63;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 18px;
  font-weight: 700;
}
/* Contact form alignment */

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
  color: #061b3a;
  background: #ffffff;
  outline: none;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: #075da3;
  box-shadow: 0 0 0 3px rgba(7, 93, 163, 0.12);
}

.form textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}

.form .btn {
  width: fit-content;
}

@media (max-width: 640px) {
  .form .btn {
    width: 100%;
  }
}

/* Reduce space between page heading and contact section */

.page-hero {
  padding: 35px 0 28px;
}

.page-hero .lead {
  margin-bottom: 0;
}

.section {
  padding: 40px 0;
}

/* Contact page only - tighter spacing */
.contact-layout {
  margin-top: 0;
}

/* Mobile */
@media (max-width: 640px) {
  .page-hero {
    padding: 28px 0 22px;
  }

  .section {
    padding: 30px 0;
  }
}

.contact-section {
  padding-top: 24px;
}
/* Space between Contact Us card and Quick Enquiry card */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Mobile/tablet view */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px; /* space between both cards */
  }
}

/* supply across India page */
.state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.state-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.state-card h3 { margin-top: 0; }
.state-card p { margin: 0 0 12px; }
.state-card a { font-weight: 700; }
@media (max-width: 900px) { .state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .state-grid { grid-template-columns: 1fr; } }

/* Make exact model search anchors visible below the sticky header. */
td[id] { scroll-margin-top: 120px; }
