/* U.S. Lubricants - site styles */

:root {
  --ink: #1c2230;
  --muted: #5b6474;
  --accent: #b45309;
  --accent-dark: #92400e;
  --bg: #f6f5f2;
  --card: #ffffff;
  --line: #e3e1dc;
  --radius: 14px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; margin: 0 auto; }

/* Keyboard focus visible for accessibility */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
}
.brand img { height: 44px; width: auto; }

.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover { background: #efede8; }
.site-nav a[aria-current="page"] { background: var(--accent); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.lead { font-size: 1.15rem; }

/* ---------- Category chips (jump links) ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.chips a {
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.chips a:hover { border-color: var(--accent); color: var(--accent-dark); }
.section[id] { scroll-margin-top: 80px; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 24px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero img { width: 100%; max-width: 480px; margin: 0 auto; }
.hero h1 { margin-bottom: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  color: var(--accent-dark);
  background: transparent;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn:hover { filter: brightness(0.95); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(28, 34, 48, 0.08);
  transform: translateY(-2px);
}
.card p { margin: 0; }
.card .desc { color: var(--muted); margin-bottom: 16px; }
.card .meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.9rem;
}
.card h3 { color: var(--accent-dark); margin-bottom: 4px; }

.summary-cards .card { font-size: 1rem; }

.product-group { margin-bottom: 56px; }
.product-group:last-child { margin-bottom: 0; }
.product-group > h2 { margin-bottom: 8px; }
.product-group > p.intro { color: var(--muted); margin-bottom: 24px; max-width: 760px; }

/* ---------- Difference / prose ---------- */
.prose h2 { margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; color: var(--accent-dark); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.6em; }

/* ---------- Contact ---------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 24px;
  max-width: 760px;
  margin: 0 auto;
}
.contact-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row dt { font-weight: 700; }
.contact-row dd { margin: 0; }
.contact-row a { text-decoration: none; font-weight: 600; }
.contact-row a:hover { text-decoration: underline; }
.contact-row small { display: block; color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.95rem;
  background: #fff;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer p { margin: 0; }

/* ---------- Tablet & below ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero img { max-width: 360px; order: -1; }
  .hero .actions { justify-content: center; }
  .hero h1 { margin-bottom: 0; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .brand { font-size: 1rem; }
  .brand img { height: 36px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 2px; }
  .site-nav a { padding: 8px 10px; font-size: 0.95rem; flex: 1 1 auto; text-align: center; }
  .section { padding: 40px 0; }
  .hero { padding-top: 28px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 20px; }
  .contact-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .contact-card { padding: 4px 18px; }
  .btn { flex: 1 1 100%; text-align: center; }
  .actions { width: 100%; }
  .site-footer .wrap { flex-direction: column; text-align: left; }
}
