/* ============================================================
   TIOLI Performance Lubricants — Independent Amsoil Dealer
   Design matched to the TiOLi business card:
   dark carbon-fiber background, red/white/blue racing stripes,
   bold italic wordmark, red & blue shield accents.
   ============================================================ */

:root {
  --red: #d6222a;
  --red-dark: #a5121c;
  --blue: #2b3faf;
  --blue-dark: #1e2c85;
  --bg: #101010;
  --bg-deep: #0a0a0a;
  --panel: #1a1a1a;
  --line: #2c2c2c;
  --text: #ececec;
  --muted: #a8a8a8;
  --white: #ffffff;
  --max-w: 1200px;
  --stripes: linear-gradient(90deg, var(--red) 0 42%, var(--white) 42% 58%, var(--blue) 58% 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', Arial, Helvetica, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  /* subtle carbon-fiber dot texture like the card */
  background-image: radial-gradient(circle, #1b1b1b 1.4px, transparent 1.5px);
  background-size: 15px 15px;
  line-height: 1.6;
}

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

a { color: #ff5a61; text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-style: italic;                 /* racing slant, like the card type */
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--white);
}

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--blue);
  color: #dfe4ff;
  font-size: 13px;
  padding: 6px 0;
}
.utility-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.utility-bar a { color: var(--white); font-weight: 600; }

/* ---------- Header / nav ---------- */
header.site-header {
  background: #0d0d0d;
  border-bottom: 4px solid;
  border-image: var(--stripes) 1;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo .shield { height: 56px; width: auto; flex: none; }
.logo-text { line-height: 1.05; }
.logo-text .tioli {
  font-family: 'Exo 2', 'Barlow Condensed', Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: 1px;
  color: var(--red);
  -webkit-text-stroke: 1px var(--white);
  text-shadow: 2px 2px 0 rgba(0,0,0,.65);
  display: block;
}
.logo-text .brand {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--white);
  display: block;
}
.logo-text .tagline {
  font-size: 10.5px;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ff5a61;
  font-weight: 600;
  display: block;
}

/* small AMSOIL logo in the header — shown on mobile beside the TiOLi logo.
   No plate: the official artwork has its own outline. */
.amsoil-badge {
  display: inline-block;
  margin-left: 28px;
  line-height: 1;
  align-self: center;
}
.amsoil-badge img { height: 42px; width: auto; display: block; filter: drop-shadow(2px 2px 3px rgba(0,0,0,.5)); }
.amsoil-badge .txt { display: none; }
.amsoil-badge.noimg img { display: none; }
.amsoil-badge.noimg .txt { display: inline; }
.amsoil-badge.noimg {
  background: var(--white);
  border: 2px solid #111;
  border-radius: 5px;
  padding: 4px 12px 6px;
  transform: skewX(-6deg);
  font-family: 'Exo 2', 'Barlow Condensed', Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: .5px;
}
.amsoil-badge .ams { color: var(--red); }
.amsoil-badge .oil { color: var(--blue); }
@media (max-width: 1050px) {
  .amsoil-badge { margin-left: 12px; }
  .amsoil-badge img { height: 30px; }
}

nav.main-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
nav.main-nav a {
  color: var(--white);
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
nav.main-nav a:hover, nav.main-nav a.active { color: #ff5a61; text-decoration: none; }

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white) !important;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--red-dark); text-decoration: none; }
.btn.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
}
.btn.btn-outline:hover { background: var(--white); color: var(--bg-deep) !important; }
.btn.btn-dark { background: var(--bg-deep); border: 2px solid var(--white); }
.btn.btn-dark:hover { background: #000; }
.btn.btn-blue { background: var(--blue); }
.btn.btn-blue:hover { background: var(--blue-dark); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(60,60,60,.35) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(43,63,175,.25) 0%, transparent 50%),
    linear-gradient(115deg, #0a0a0a 0%, #141414 60%, #101018 100%);
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid;
  border-image: var(--stripes) 1;
}
/* red / white / blue racing chevrons with the bent "jog" near the top,
   matching the business card's corner stripes */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: -40px;
  width: min(46%, 660px);
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20660%20900%27%20preserveAspectRatio%3D%27none%27%3E%3Cg%20fill%3D%27none%27%20stroke-linejoin%3D%27miter%27%20stroke-miterlimit%3D%2712%27%3E%3Cpath%20d%3D%27M%2080%2C-60%20L%20340%2C450%20L%2080%2C960%27%20stroke%3D%27%23d6222a%27%20stroke-width%3D%27124%27%2F%3E%3Cpath%20d%3D%27M%2080%2C-60%20L%20340%2C450%20L%2080%2C960%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%2776%27%2F%3E%3Cpath%20d%3D%27M%20280%2C-60%20L%20540%2C450%20L%20280%2C960%27%20stroke%3D%27%232b3faf%27%20stroke-width%3D%27150%27%2F%3E%3Cpath%20d%3D%27M%20480%2C-60%20L%20740%2C450%20L%20480%2C960%27%20stroke%3D%27%23d6222a%27%20stroke-width%3D%27124%27%2F%3E%3Cpath%20d%3D%27M%20480%2C-60%20L%20740%2C450%20L%20480%2C960%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%2776%27%2F%3E%3C%2Fg%3E%3Cpolygon%20points%3D%27332%2C10%20343%2C43%20378%2C43%20349%2C64%20360%2C97%20332%2C76%20304%2C97%20315%2C64%20286%2C43%20321%2C43%27%20fill%3D%27%23ffffff%27%2F%3E%3Cpolygon%20points%3D%27332%2C794%20343%2C827%20378%2C827%20349%2C848%20360%2C881%20332%2C860%20304%2C881%20315%2C848%20286%2C827%20321%2C827%27%20fill%3D%27%23ffffff%27%2F%3E%3Cpolygon%20points%3D%27410%2C157%20421%2C190%20456%2C190%20427%2C211%20438%2C244%20410%2C223%20382%2C244%20393%2C211%20364%2C190%20399%2C190%27%20fill%3D%27%23ffffff%27%2F%3E%3Cpolygon%20points%3D%27410%2C647%20421%2C680%20456%2C680%20427%2C701%20438%2C734%20410%2C713%20382%2C734%20393%2C701%20364%2C680%20399%2C680%27%20fill%3D%27%23ffffff%27%2F%3E%3Cpolygon%20points%3D%27488%2C304%20499%2C337%20534%2C337%20505%2C358%20516%2C391%20488%2C370%20460%2C391%20471%2C358%20442%2C337%20477%2C337%27%20fill%3D%27%23ffffff%27%2F%3E%3Cpolygon%20points%3D%27488%2C500%20499%2C533%20534%2C533%20505%2C554%20516%2C587%20488%2C566%20460%2C587%20471%2C554%20442%2C533%20477%2C533%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E") no-repeat center / 100% 100%;
  opacity: .95;
}
@media (max-width: 900px) { .hero::after { opacity: .25; } }
.hero .wrap { position: relative; z-index: 1; }
.hero .kicker {
  color: var(--red);
  background: var(--white);
  display: inline-block;
  padding: 4px 14px;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 15px;
  margin-bottom: 22px;
  transform: skewX(-8deg);
}
.hero h1 { font-size: clamp(40px, 6vw, 66px); max-width: 780px; }
.hero h1 em {
  color: var(--red);
  font-style: italic;
  -webkit-text-stroke: 1px var(--white);
  text-shadow: 2px 2px 0 rgba(0,0,0,.6);
}
.hero p.lead {
  font-size: 20px;
  color: #cfcfcf;
  max-width: 620px;
  margin: 22px 0 34px;
}
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Official AMSOIL logo at the chevron's bend — the artwork carries its own
   white outline, so no background plate. Plate appears only in text fallback. */
.hero-amsoil {
  position: absolute;
  z-index: 2;
  right: calc(min(48%, 580px) - 300px);
  top: 33%;
  transform: translateY(-50%);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.hero-amsoil img {
  height: 68px;
  width: auto;
  display: block;
  filter: drop-shadow(3px 4px 5px rgba(0,0,0,.55));
}
.hero-amsoil .txt { display: none; }
.hero-amsoil.noimg img { display: none; }
.hero-amsoil.noimg .txt { display: inline; }
.hero-amsoil.noimg {
  background: var(--white);
  border: 3px solid #111;
  border-radius: 8px;
  padding: 8px 24px 12px;
  box-shadow: 4px 5px 0 rgba(0,0,0,.55);
  transform: translateY(-50%) skewX(-6deg);
  font-family: 'Exo 2', 'Barlow Condensed', Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(34px, 3.4vw, 48px);
  letter-spacing: 1px;
}
.hero-amsoil .ams { color: var(--red); -webkit-text-stroke: 1px #111; }
.hero-amsoil .oil { color: var(--blue); -webkit-text-stroke: 1px #111; }
.hero-amsoil .reg {
  font-size: .26em;
  vertical-align: super;
  color: #111;
}
@media (max-width: 1050px) {
  .hero-amsoil { position: static; transform: none; margin: 38px 24px 0; display: inline-block; }
  .hero-amsoil.noimg { transform: skewX(-6deg); }
}

/* ---------- Section basics ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: rgba(22,22,22,.65); }
section.block.dark { background: var(--bg-deep); }

.section-head { margin-bottom: 42px; }
.section-head .over {
  color: #ff5a61;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 15px;
}
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 4px; }
.section-head p { color: var(--muted); max-width: 700px; margin-top: 10px; }
/* tri-color stripe bar under section headings */
.section-head::after {
  content: "";
  display: block;
  margin-top: 16px;
  width: 130px;
  height: 6px;
  background: var(--stripes);
  transform: skewX(-25deg);
}

/* ---------- Category grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 24px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 30px 26px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.5); border-color: #3a3a3a; }
.card:nth-child(even) { border-top-color: var(--blue); }
.card .icon { width: 52px; height: 52px; margin-bottom: 18px; color: var(--red); }
.card:nth-child(even) .icon { color: #6b7fe8; }
.card .icon svg { width: 100%; height: 100%; fill: currentColor; }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card a.more {
  margin-top: 18px;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16px;
}

/* ---------- Feature strip (key benefits) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px;
}
.feature .num {
  font-family: 'Exo 2', 'Barlow Condensed', Arial, sans-serif;
  font-style: italic;
  font-size: 54px;
  font-weight: 900;
  color: var(--red);
  -webkit-text-stroke: 1px var(--white);
  line-height: 1;
}
.feature:nth-child(even) .num { color: var(--blue); }
.feature h3 { font-size: 22px; margin: 8px 0 8px; }
.feature p { font-size: 15px; color: var(--muted); }

/* ---------- Banner CTA ---------- */
.banner-cta {
  background: linear-gradient(100deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.banner-cta::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -60px;
  width: 220px;
  height: 140%;
  background: linear-gradient(90deg, var(--white) 0 34px, transparent 34px 58px, var(--blue) 58px 160px, transparent 160px);
  transform: skewX(-18deg);
  opacity: .9;
}
.banner-cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.banner-cta h2 { font-size: clamp(26px, 3.5vw, 38px); }
.banner-cta p { color: #ffd9de; margin-top: 6px; max-width: 560px; }

/* ---------- Product page list ---------- */
.product-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  padding: 26px 28px;
  margin-bottom: 18px;
}
.product-row:nth-child(even) { border-left-color: var(--blue); }
.product-row .icon { width: 72px; height: 72px; color: var(--red); margin: 0 auto; }
.product-row:nth-child(even) .icon { color: #6b7fe8; }
.product-row .icon svg { width: 100%; height: 100%; fill: currentColor; }
.product-row h3 { font-size: 26px; margin-bottom: 6px; }
.product-row p { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) {
  .product-row { grid-template-columns: 1fr; text-align: center; }
  .product-row .btn { justify-self: center; }
}

/* ---------- About page ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.side-box {
  background: var(--panel);
  color: var(--text);
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
}
.side-box h3 { font-size: 24px; margin-bottom: 14px; }
.side-box ul { list-style: none; }
.side-box li {
  padding: 9px 0 9px 26px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: #cfcfcf;
}
.side-box li:last-child { border-bottom: none; }
.side-box li::before {
  content: "▸";
  color: var(--red);
  position: absolute;
  left: 0;
  font-weight: 700;
}
.prose p { margin-bottom: 18px; font-size: 17px; color: #cfcfcf; }
.prose strong { color: var(--white); }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 32px 28px;
  text-align: center;
}
.contact-card:nth-child(2) { border-top-color: var(--white); }
.contact-card:nth-child(3) { border-top-color: var(--blue); }
.contact-card .icon { width: 46px; height: 46px; margin: 0 auto 16px; color: var(--red); }
.contact-card:nth-child(3) .icon { color: #6b7fe8; }
.contact-card .icon svg { width: 100%; height: 100%; fill: currentColor; }
.contact-card h3 { font-size: 22px; margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.contact-card .big {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-style: italic;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  word-break: break-word;
}
.contact-card .big a { color: var(--white); }
.contact-card .big a:hover { color: #ff5a61; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--bg-deep);
  color: #b5b5b5;
  padding: 0;
  font-size: 14px;
  border-top: 5px solid;
  border-image: var(--stripes) 1;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; } }
footer h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 14px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a { color: #b5b5b5; }
footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 12.5px;
  color: #7d7d7d;
}
.disclaimer { font-size: 12.5px; color: #7d7d7d; margin-top: 12px; line-height: 1.5; }
