/* =============================================================
   HEVEA RUBBER TECHNOLOGIES — SHARED STYLESHEET
   Applies to all pages. Page-specific styles live in each
   HTML file's own <style> block.
============================================================= */

/* ---- CSS Variables ---- */
:root {
  --blue-dark:   #0a1f3c;
  --blue-mid:    #0d3b6e;
  --blue-accent: #1565c0;
  --blue-light:  #1e88e5;
  --steel:       #4a6080;
  --silver:      #b0bec5;
  --off-white:   #f4f6f8;
  --white:       #ffffff;
  --text-body:   #2e3a48;
  --text-muted:  #607080;
  --orange:      #e65c00;
  --font-head:   'Barlow', sans-serif;
  --font-body:   'Barlow', sans-serif;
  --font-oswald: 'Oswald', sans-serif;
}

/* ---- Base reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { font-family: var(--font-head); letter-spacing: 0.02em; }
p { color: var(--text-muted); }

/* ---- Utilities ---- */
.text-accent  { color: var(--blue-accent); }
.text-orange  { color: var(--orange); }
.bg-dark-blue { background: var(--blue-dark); }
.section-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.divider-line {
  width: 48px;
  height: 3px;
  background: var(--blue-accent);
  margin: 0.75rem 0 1.5rem;
}
.divider-line.center { margin: 0.75rem auto 1.5rem; }

/* =============================================================
   STICKY HEADER
============================================================= */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1050;
}

/* ---- Top bar ---- */
.top-bar {
  background: var(--blue-mid);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.top-bar a { color: rgba(255,255,255,0.65); text-decoration: none; }
.top-bar a:hover { color: var(--white); }
.top-bar i { margin-right: 5px; }

/* ---- Navbar ---- */
#mainNav {
  background: var(--blue-dark);
  padding: 10px 0;
  transition: all 0.3s ease;
}
#mainNav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
#mainNav .navbar-brand img { height: 70px; }
#mainNav .nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.2rem 0.9rem !important;
  position: relative;
  transition: color 0.2s;
}
#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--blue-light);
  border: none;            /* reset Bootstrap caret borders */
  transition: left 0.25s, right 0.25s;
}
/* Suppress Bootstrap's built-in dropdown caret entirely */
#mainNav .dropdown-toggle::after { display: none !important; }
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--white) !important; }
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { left: 0.9rem; right: 0.9rem; }

/* Custom chevron icon inside Products link */
#mainNav .nav-chevron {
  font-size: 0.6rem;
  margin-left: 3px;
  vertical-align: middle;
  opacity: 0.7;
  transition: transform 0.22s ease, opacity 0.22s;
  display: inline-block;
}
#mainNav .dropdown:hover .nav-chevron,
#mainNav .dropdown.show .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Hover-to-open dropdown on desktop */
@media (min-width: 992px) {
  #mainNav .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

#mainNav .dropdown-menu {
  background: var(--blue-mid);
  border: none;
  border-top: 2px solid var(--blue-light);
  border-radius: 0;
}
#mainNav .dropdown-item {
  color: rgba(255,255,255,0.8);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.5rem 1.2rem;
}
#mainNav .dropdown-item:hover { background: var(--blue-accent); color: var(--white); }
.navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-toggler-icon { filter: invert(1); }

/* =============================================================
   PAGE HERO  (inner pages — about, contact, rdso pages)
============================================================= */
.page-hero {
  background-color: #071629;
  background-image:
    linear-gradient(rgba(21,101,192,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,101,192,0.18) 1px, transparent 1px),
    linear-gradient(135deg, #071629 0%, #0a2548 60%, #0d3060 100%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  padding: 60px 0 52px;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
}
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1rem; margin-top: 0.4rem; }
.breadcrumb-item a { color: rgba(255,255,255,0.55); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--white); }
.breadcrumb-item.active { color: rgba(255,255,255,0.85); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* =============================================================
   FOOTER
============================================================= */
footer {
  background: #07172d;
  color: rgba(255,255,255,0.65);
  padding: 70px 0 0;
  font-size: 0.9rem;
}
footer h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
footer p { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  display: block;
  padding: 3px 0;
  transition: color 0.2s, padding-left 0.2s;
}
footer a:hover { color: var(--blue-light); padding-left: 6px; }
footer .footer-links li { list-style: none; }
.footer-contact li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}
.footer-contact i {
  color: var(--blue-light);
  margin-right: 8px;
  font-size: 0.9rem;
}
.footer-bottom {
  margin-top: 50px;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 18px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: var(--blue-light); display: inline; padding: 0; }

/* =============================================================
   SCROLL FADE-UP ANIMATION
============================================================= */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }

/* =============================================================
   RDSO PRODUCT PAGES — shared tab & document styles
   (elastomeric-bearings, expansion-joints, pot-ptfe)
============================================================= */

/* Content section wrapper */
.content-section { padding: 50px 0 80px; background: var(--off-white); }
.tabs-wrapper { background: var(--white); border: 1px solid #dde6f0; }

/* Tab navigation */
.nav-tabs.rdso-tabs { border-bottom: 2px solid #dde6f0; background: var(--blue-dark); }
.nav-tabs.rdso-tabs .nav-link {
  color: rgba(255,255,255,0.65);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  padding: 16px 32px;
  transition: all 0.2s;
}
.nav-tabs.rdso-tabs .nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-tabs.rdso-tabs .nav-link.active { color: var(--white); background: var(--blue-accent); border: none; }
.tab-content-inner { padding: 36px 40px; }

/* Ownership table */
.ownership-table { width: 100%; border-collapse: collapse; }
.ownership-table tr { border-bottom: 1px solid #eef2f8; }
.ownership-table tr:last-child { border-bottom: none; }
.ownership-table td { padding: 14px 16px; font-size: 0.95rem; vertical-align: top; }
.ownership-table td:first-child {
  width: 240px;
  font-weight: 600;
  color: var(--blue-dark);
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #f4f7fb;
}
.ownership-table td a { color: var(--blue-accent); text-decoration: none; }
.ownership-table td a:hover { text-decoration: underline; }

/* Manufacturing sections */
.mfg-section { margin-bottom: 24px; border: 1px solid #dde6f0; }
.mfg-section-header {
  background: #f0f5fb;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #dde6f0;
}
.mfg-section-header h4 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mfg-section-header i { color: var(--blue-accent); font-size: 1.1rem; }
.mfg-section-body { padding: 20px 24px; background: var(--white); }
.mfg-section-body p { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.mfg-section-body p:last-child { margin-bottom: 0; }

/* Document / PDF links */
.doc-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e4ecf5;
  background: #f8fafd;
  margin-bottom: 12px;
  transition: background 0.2s;
}
.doc-item:last-child { margin-bottom: 0; }
.doc-item:hover { background: #eaf1fb; }
.doc-item-icon { flex-shrink: 0; margin-top: 2px; }
.doc-item-icon i { font-size: 1.4rem; color: #d32f2f; }
.doc-item-icon .bi-file-earmark-excel-fill { color: #1b5e20; }
.doc-item-content { flex: 1; }
.doc-item-content a {
  color: var(--blue-accent);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.doc-item-content a:hover { text-decoration: underline; }
.doc-meta { margin-top: 6px; }
.doc-meta span { display: inline-block; font-size: 0.82rem; color: var(--text-muted); margin-right: 20px; }
.doc-meta strong { color: var(--text-body); }

/* Artisan / testimonial carousel */
.artisan-carousel { background: #f0f5fb; padding: 32px 24px; }
.artisan-slide { display: flex; gap: 16px; justify-content: center; }
.artisan-card {
  background: #fff;
  border: 1px solid #d0dce8;
  padding: 24px 20px;
  text-align: center;
  flex: 1;
  min-width: 0;
}
.artisan-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue-accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.artisan-avatar i { font-size: 1.6rem; color: var(--white); }
.artisan-card h5 {
  font-family: var(--font-oswald);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 4px;
}
.artisan-card .artisan-exp { font-size: 0.82rem; color: var(--blue-accent); font-weight: 600; margin-bottom: 0; }

/* Artisan carousel controls — covers all 3 product page IDs */
#artisanCarousel  .carousel-control-prev, #artisanCarousel  .carousel-control-next,
#artisanCarousel2 .carousel-control-prev, #artisanCarousel2 .carousel-control-next,
#artisanCarousel3 .carousel-control-prev, #artisanCarousel3 .carousel-control-next {
  width: 36px;
  background: var(--blue-accent);
  top: 50%; transform: translateY(-50%);
  height: 36px;
  opacity: 1;
  border-radius: 4px;
}
#artisanCarousel  .carousel-indicators [data-bs-target],
#artisanCarousel2 .carousel-indicators [data-bs-target],
#artisanCarousel3 .carousel-indicators [data-bs-target] {
  background: rgba(10,31,60,0.3);
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
}
#artisanCarousel  .carousel-indicators .active,
#artisanCarousel2 .carousel-indicators .active,
#artisanCarousel3 .carousel-indicators .active { background: var(--blue-accent); }

/* =============================================================
   RESPONSIVE — shared breakpoints
============================================================= */
@media (max-width: 767px) {
  .artisan-slide { flex-direction: column; }
  .tab-content-inner { padding: 24px 16px; }
  .ownership-table td:first-child { width: 140px; }
  .nav-tabs.rdso-tabs .nav-link { padding: 12px 18px; font-size: 0.88rem; }
  .top-bar .d-flex { flex-direction: column; gap: 4px; }
}
