/* ==========================================================================
   Arshya Pipe Fittings — style.css
   Custom styles layered on Tailwind CDN utility classes.
   Palette: navy #102A43 | navylight #1E3A5F | steel #334155
            accent #E8590C | accentLight #F7941D
   ========================================================================== */

:root {
  --color-navy:        #102A43;
  --color-navy-light:  #1E3A5F;
  --color-steel:       #334155;
  --color-accent:      #E8590C;
  --color-accent-light:#F7941D;
  --color-bg:          #F4F6F8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ── Hero patterns ─────────────────────────────────────────────────────── */
.hero-pattern {
  background-image:
    linear-gradient(120deg, rgba(16,42,67,0.94) 0%, rgba(16,42,67,0.82) 55%, rgba(232,89,12,0.55) 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 18px);
  background-size: cover, 40px 40px;
}

.hero-pattern-factory {
  background-image:
    linear-gradient(120deg, rgba(16,42,67,0.94) 0%, rgba(16,42,67,0.85) 55%, rgba(232,89,12,0.55) 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 18px),
    url('../images/factory.jpg');
  background-size: cover, 40px 40px, cover;
  background-position: center, center, center;
  background-blend-mode: normal, normal, luminosity;
}

/* ── Heading accent underline ───────────────────────────────────────────── */
.heading-accent {
  position: relative;
  padding-bottom: 0.75rem;
}
.heading-accent::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 4px;
  background: linear-gradient(90deg, var(--color-accent-light), var(--color-accent));
  border-radius: 2px;
}
.heading-accent.center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ── Certification badge chip ───────────────────────────────────────────── */
.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 1rem 0.75rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(16,42,67,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cert-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(16,42,67,0.12);
}

/* ── Certification marquee strip ────────────────────────────────────────── */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Matrix / product cards ─────────────────────────────────────────────── */
.matrix-card {
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  background: #ffffff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.matrix-card:hover {
  border-color: var(--color-accent-light);
  box-shadow: 0 12px 24px rgba(16,42,67,0.10);
  transform: translateY(-3px);
}

/* ── EN Type badge ──────────────────────────────────────────────────────── */
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1.5px solid currentColor;
}
.type-badge-a  { color: #0369a1; background: #e0f2fe; border-color: #7dd3fc; }
.type-badge-b  { color: #b45309; background: #fef3c7; border-color: #fbbf24; }
.type-badge-b-avail { color: #166534; background: #dcfce7; border-color: #86efac; }

/* ── Responsive table wrapper ───────────────────────────────────────────── */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.75rem;
  border: 1px solid #E2E8F0;
}
.table-scroll table { min-width: 720px; }
.table-scroll th    { white-space: nowrap; }

/* ── Grade equivalents cross-reference table ────────────────────────────── */
.equiv-table th {
  background: var(--color-navy);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
}
.equiv-table td { padding: 0.6rem 1rem; font-size: 0.88rem; }
.equiv-table tr:nth-child(even) td { background: #F8FAFC; }
.equiv-table .highlight-col { background: #FFF7ED !important; font-weight: 600; }

/* ── Mobile nav ─────────────────────────────────────────────────────────── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
#mobile-menu.open { max-height: 640px; }

/* ── Dropdown nav ───────────────────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  box-shadow: 0 16px 40px rgba(16,42,67,0.14);
  z-index: 50;
  padding: 0.5rem 0;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  color: var(--color-steel);
  transition: background .15s, color .15s;
}
.nav-dropdown-menu a:hover {
  background: #F4F6F8;
  color: var(--color-accent);
}

/* ── Accordion ──────────────────────────────────────────────────────────── */
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

/* ── RFQ sticky CTA bar ─────────────────────────────────────────────────── */
.rfq-sticky {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 40;
}

/* ── Skip link ──────────────────────────────────────────────────────────── */
.skip-link:focus {
  position: fixed;
  top: 0.5rem; left: 0.5rem;
  z-index: 100;
}

/* ── Trust stamp circle ─────────────────────────────────────────────────── */
.stamp {
  border: 2px solid var(--color-navy);
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-navy);
  padding: 0.6rem;
  aspect-ratio: 1 / 1;
  width: 96px;
  text-align: center;
  line-height: 1.1;
}

/* ── Sister-site banner ─────────────────────────────────────────────────── */
.sister-banner {
  background: linear-gradient(90deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}
