/* ==============================================
   TANK TRACK — REDESIGNED SITE
   Brand Colors: Red #ff3131 | Dark #2D3748 | Navy #1A202C
   Font: Roboto (Google Fonts)
   ============================================== */

:root {
  --red: #ff3131;
  --red-dark: #e02020;
  --dark: #2D3748;
  --darker: #1A202C;
  --blue: #3182CE;
  --orange: #f76a0c;
  --gray-light: #f7f8fa;
  --gray: #eeeeee;
  --gray-mid: #a0aec0;
  --white: #ffffff;
  --text: #2D3748;
  --text-light: #718096;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --font: 'Roboto', sans-serif;
  --max-w: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 96px 0; }
.section-dark { background: var(--darker); color: var(--white); }
.section-gray { background: var(--gray-light); }

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius); font-family: var(--font);
  font-size: 1rem; font-weight: 700; cursor: pointer; border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 4px 14px rgba(255,49,49,0.3); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 6px 20px rgba(255,49,49,0.4); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--dark); }
.btn-dark { background: var(--darker); color: var(--white); }
.btn-dark:hover { background: #0d1117; }
.btn-outline { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--darker); color: var(--white); font-size: 0.85rem;
  padding: 8px 0; text-align: center;
}
.top-bar a { color: var(--white); font-weight: 600; }
.top-bar-inner { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }

/* ---- NAV ---- */
.nav {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 24px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 6px; font-size: 0.95rem; font-weight: 500;
  color: var(--text); transition: background 0.15s; white-space: nowrap;
}
.nav-links a:hover { background: var(--gray-light); text-decoration: none; }
.nav-links .has-drop { position: relative; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone { font-weight: 700; color: var(--dark); font-size: 0.95rem; }
.nav-phone:hover { color: var(--red); text-decoration: none; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); margin: 5px 0; transition: 0.3s; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--darker) 0%, #2c3e60 100%);
  color: var(--white); padding: 80px 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://tank-track.com/wp-content/uploads/septic-worker-with-tablet.jpg') center bottom/cover;
  opacity: 0.12;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,49,49,0.15); border: 1px solid rgba(255,49,49,0.3);
  color: #ff8080; padding: 6px 14px; border-radius: 100px; font-size: 0.85rem;
  font-weight: 600; margin-bottom: 20px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--red); }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.hero-trust-item svg { color: #4ade80; flex-shrink: 0; }

/* Hero Form Card */
.hero-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow-lg); color: var(--text);
}
.hero-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.hero-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; color: var(--dark); }
.form-group input, .form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: 0.95rem; color: var(--text); transition: border-color 0.15s;
  outline: none;
}
.form-group input:focus, .form-group select:focus { border-color: var(--red); }
.form-note { font-size: 0.78rem; color: var(--text-light); text-align: center; margin-top: 10px; }

/* ---- LOGOS BAR ---- */
.logos-bar { background: var(--white); padding: 28px 0; border-bottom: 1px solid var(--border); }
.logos-bar-label { text-align: center; font-size: 0.85rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 16px; }
.logos-grid { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.logos-grid span { font-size: 1rem; font-weight: 700; color: var(--gray-mid); letter-spacing: -0.02em; }

/* ---- STATS ---- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { padding: 36px 24px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2.5rem; font-weight: 700; color: var(--red); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.9rem; color: var(--text-light); }

/* ---- FEATURES ---- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { width: 56px; height: 56px; background: rgba(255,49,49,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature-icon img { width: 32px; height: 32px; object-fit: contain; }
.feature-icon svg { width: 28px; height: 28px; color: var(--red); }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 14px; }
.feature-card a { font-weight: 600; font-size: 0.9rem; color: var(--red); }

/* ---- COMPARISON TABLE ---- */
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.compare-table th { padding: 18px 24px; text-align: left; font-size: 0.95rem; }
.compare-table th:first-child { background: var(--gray-light); color: var(--text-light); width: 35%; }
.compare-table .th-tt { background: var(--red); color: var(--white); }
.compare-table .th-comp { background: var(--gray); color: var(--text-light); }
.compare-table td { padding: 14px 24px; border-top: 1px solid var(--border); font-size: 0.95rem; }
.compare-table tr:hover td { background: rgba(255,49,49,0.02); }
.check { color: #22c55e; font-size: 1.2rem; }
.cross { color: #ef4444; font-size: 1.2rem; }
.partial { color: var(--orange); font-size: 0.9rem; font-style: italic; }

/* ---- TESTIMONIALS ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; position: relative;
}
.testimonial-card::before {
  content: '"'; font-size: 5rem; color: var(--red); opacity: 0.1;
  position: absolute; top: 10px; left: 20px; line-height: 1; font-family: Georgia, serif;
}
.stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-text { color: var(--text); font-size: 0.95rem; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-author-info strong { display: block; font-size: 0.9rem; }
.testimonial-author-info span { font-size: 0.82rem; color: var(--text-light); }

/* ---- CTA BANNER ---- */
.cta-banner { background: var(--red); color: var(--white); padding: 64px 0; text-align: center; }
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { font-size: 1.1rem; margin-bottom: 28px; opacity: 0.9; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- PRICING CARDS ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pricing-card {
  background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center; transition: transform 0.2s;
}
.pricing-card.featured { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,49,49,0.12); }
.pricing-card-badge {
  display: inline-block; background: var(--red); color: var(--white);
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 100px;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em;
}
.pricing-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.pricing-truck-count { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }
.pricing-price { margin-bottom: 24px; }
.pricing-price .amount { font-size: 2.5rem; font-weight: 700; color: var(--dark); }
.pricing-price .period { font-size: 0.9rem; color: var(--text-light); }
.pricing-features { text-align: left; margin-bottom: 24px; }
.pricing-features li { padding: 7px 0; border-bottom: 1px solid var(--gray); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.pricing-features li:last-child { border-bottom: none; }

/* ---- PROCESS STEPS ---- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps-grid::before {
  content: ''; position: absolute; top: 28px; left: 10%; right: 10%;
  height: 2px; background: linear-gradient(90deg, var(--red), transparent);
  z-index: 0;
}
.step-item { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 56px; height: 56px; background: var(--red); color: var(--white);
  border-radius: 50%; font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  box-shadow: 0 0 0 6px rgba(255,49,49,0.12);
}
.step-item h3 { font-size: 1rem; margin-bottom: 8px; }
.step-item p { font-size: 0.88rem; color: var(--text-light); }

/* ---- SECTION HEADER ---- */
.section-header { text-align: center; margin-bottom: 52px; }
.section-eyebrow {
  display: inline-block; color: var(--red); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.section-header h2 { margin-bottom: 14px; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-header p { color: var(--text-light); max-width: 560px; margin: 0 auto; }

/* ---- FAQ ---- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%; padding: 18px 20px; text-align: left; background: var(--white);
  border: none; cursor: pointer; font-family: var(--font); font-size: 1rem;
  font-weight: 600; color: var(--dark); display: flex; align-items: center; justify-content: space-between;
}
.faq-q svg { flex-shrink: 0; transition: transform 0.2s; }
.faq-a { padding: 0 20px 18px; color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

/* ---- BLOG CARD ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.2s; }
.blog-card:hover { box-shadow: var(--shadow); }
.blog-card-img { height: 180px; background: var(--gray); overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-card-cat { font-size: 0.78rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.blog-card h3 a { color: var(--dark); }
.blog-card h3 a:hover { color: var(--red); text-decoration: none; }
.blog-card p { font-size: 0.88rem; color: var(--text-light); }

/* ---- FOOTER ---- */
.footer { background: var(--darker); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.9rem; max-width: 280px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: white;
  transition: background 0.15s;
}
.footer-social a:hover { background: var(--red); text-decoration: none; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: white; text-decoration: none; }

/* ---- BREADCRUMB ---- */
.breadcrumb { padding: 12px 0; font-size: 0.85rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { color: var(--red); }

/* ---- PAGE HERO ---- */
.page-hero { background: linear-gradient(135deg, var(--darker), var(--dark)); color: white; padding: 60px 0 50px; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 600px; margin-bottom: 0; }

/* ---- BADGE LIST ---- */
.badge-list { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--gray-light); border: 1px solid var(--border); border-radius: 100px; padding: 6px 14px; font-size: 0.85rem; font-weight: 500; }
.badge-green { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.badge-red { background: #fff5f5; border-color: #fecaca; color: #991b1b; }

/* ---- TWO-COL LAYOUT ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ---- ICON LIST ---- */
.icon-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.icon-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--red); }
.icon-list li strong { display: block; font-weight: 600; margin-bottom: 2px; }
.icon-list li span { font-size: 0.9rem; color: var(--text-light); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-hamburger { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .features-grid, .testimonials-grid, .blog-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 10px 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
