/* ==========================================================================
   Razavi Barrel — stylesheet
   Design tokens
   ========================================================================== */
:root {
  /* Brand palette sampled from the Razavi Barrel logo (blue / black / white,
     with the logo's small red valve-cap tone kept as a rare, sparing accent) */
  --black: #0A0C10;
  --black-soft: #171B22;
  --blue-secondary: #1461D8;      /* secondary blue — stats, links, breadcrumb */
  --blue-secondary-light: #2E7BFF;
  --brand-blue: #0056E0;          /* primary brand blue — CTAs, top borders, tags */
  --brand-blue-dark: #0041AD;     /* primary blue hover/pressed state */
  --accent-blue: #0B93F0;         /* bright accent blue for use on dark backgrounds */
  --alert-red: #D5241F;           /* logo's valve/cap red — compliance & hazard notes only */
  --paper: #F2F5FA;
  --paper-deep: #E6ECF6;
  --white: #FFFFFF;
  --line: #D7DEE9;
  --line-dark: #232A35;
  --text: #14181F;
  --text-soft: #59626F;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; max-width: 65ch; color: var(--text-soft); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-blue); color: var(--white); }
.btn-primary:hover { background: var(--brand-blue-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { border-color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--black-soft); }

/* ==========================================================================
   Top utility bar + header
   ========================================================================== */
.topbar {
  background: var(--black);
  color: #C9CDD1;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { text-decoration: none; color: #C9CDD1; }
.topbar a:hover { color: var(--accent-blue); }
.topbar .topbar-links { display: flex; gap: 18px; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo-link img { height: 54px; width: auto; }

.footer-logo-badge {
  display: inline-block;
  background: var(--white);
  padding: 10px 16px 8px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.footer-logo-badge img { height: 46px; width: auto; display: block; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .phone {
  text-align: right;
  font-size: 0.82rem;
  color: var(--text-soft);
  display: none;
}
.header-actions .phone strong { display: block; font-size: 1rem; color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 10px;
  cursor: pointer;
}

@media (min-width: 860px) {
  .header-actions .phone { display: block; }
}

@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .main-nav a { display: block; padding: 12px 0; }
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-soft);
  padding: 14px 0;
}
.breadcrumb a { text-decoration: none; color: var(--blue-secondary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--accent-blue);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 56px;
}
.hero-eyebrow {
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}
.hero h1 { color: var(--white); }
.hero p.lead { color: #C9CDD1; font-size: 1.08rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-figure { border-radius: 6px; overflow: hidden; }

.hero-specs {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
}
.hero-specs div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent-blue);
}
.hero-specs div span { font-size: 0.82rem; color: #9AA1A8; }

@media (max-width: 859px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-figure { order: -1; max-width: 360px; margin: 0 auto; }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--black); color: #C9CDD1; }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.section-dark .section-head { border-bottom-color: var(--line-dark); }
.section-head .tag {
  display: inline-block;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.section-dark .section-head .tag { color: var(--accent-blue); }

/* ==========================================================================
   Product grid / cards
   ========================================================================== */
.grid {
  display: grid;
  gap: 26px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-blue);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img { border-bottom: 1px solid var(--line); }
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.93rem; margin-bottom: 14px; }
.card ul.spec-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}
.card ul.spec-list li { padding: 4px 0; border-top: 1px dashed var(--line); }
.card ul.spec-list li:first-child { border-top: none; }
.card .card-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand-blue);
  text-decoration: none;
}
.card .card-link:hover { text-decoration: underline; }

/* ==========================================================================
   Stats / trust strip
   ========================================================================== */
.trust-strip {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip .grid { padding: 28px 0; text-align: center; }
.trust-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--blue-secondary);
}
.trust-strip span { font-size: 0.82rem; color: var(--text-soft); }

/* ==========================================================================
   About split
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 859px) {
  .split { grid-template-columns: 1fr; }
}
.split figure { margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.checklist { list-style: none; margin: 20px 0; padding: 0; }
.checklist li {
  padding: 8px 0 8px 30px;
  position: relative;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}
.checklist li:first-child { border-top: none; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 12px; height: 12px;
  background: var(--accent-blue);
}

/* ==========================================================================
   Industries / logos row
   ========================================================================== */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: var(--brand-blue);
  color: var(--white);
  padding: 52px 0;
}
.cta-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
}
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.78rem; color: var(--text-soft); margin-top: 10px; }

/* ==========================================================================
   Table (specs)
   ========================================================================== */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table caption { text-align: left; font-weight: 700; margin-bottom: 10px; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
}
.spec-table th { background: var(--paper-deep); font-family: var(--font-display); font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--black);
  color: #9AA1A8;
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 859px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.4px;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; color: #9AA1A8; font-size: 0.9rem; }
.site-footer a:hover { color: var(--accent-blue); }
.site-footer p { color: #9AA1A8; font-size: 0.9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #9AA1A8; text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-blue); }

/* ==========================================================================
   Misc pages
   ========================================================================== */
.page-header {
  background: var(--black);
  color: var(--white);
  border-top: 5px solid var(--accent-blue);
  padding: 48px 0 40px;
}
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.page-header p { color: #C9CDD1; margin: 0; }

.simple-list { padding-left: 20px; color: var(--text-soft); }
.simple-list li { margin-bottom: 8px; }

.two-col-text { columns: 2; column-gap: 40px; }
@media (max-width: 700px) { .two-col-text { columns: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ==========================================================================
   Certifications / compliance badges
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 980px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cert-grid { grid-template-columns: 1fr; } }

.cert-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-blue);
  border-radius: 4px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
}
.cert-badge:hover { border-left-color: var(--brand-blue-dark); background: var(--paper); }
.cert-badge .cert-mark {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.cert-badge strong { display: block; font-size: 0.92rem; }
.cert-badge span { display: block; font-size: 0.78rem; color: var(--text-soft); }
.cert-badge .ext-ico { margin-left: auto; color: var(--text-soft); font-size: 0.8rem; flex-shrink: 0; }

.cert-note {
  background: var(--paper-deep);
  border-left: 4px solid var(--alert-red);
  padding: 14px 18px;
  border-radius: 3px;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 22px;
}
