/* ============================================================
   SP3 GLOBAL — Premium Lubricants Website
   Design: SP3 Brand Red + Charcoal — logo-accurate color system
   ============================================================ */

:root {
  /* ── Brand Reds (from SP3 logo) */
  --red:         #D01E1E;
  --red-dark:    #A81818;
  --red-deeper:  #8B1010;
  --red-pale:    #fdf0f0;
  --red-muted:   rgba(208,30,30,.1);

  /* ── Charcoal / Dark tones */
  --charcoal:    #111111;
  --charcoal-mid:#1e1e1e;
  --charcoal-lg: #2d2d2d;

  /* ── Neutral */
  --white:       #ffffff;
  --off-white:   #f7f7f8;
  --light-gray:  #f2f2f4;
  --border:      #e4e4e8;
  --border-dark: rgba(255,255,255,.10);

  /* ── Text */
  --text-dark:   #111111;
  --text-mid:    #4b5563;
  --text-light:  #9ca3af;

  /* ── Shadows */
  --shadow-sm:   0 2px 10px rgba(0,0,0,.07);
  --shadow-md:   0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:   0 24px 64px rgba(0,0,0,.18);
  --shadow-red:  0 8px 28px rgba(208,30,30,.30);

  /* ── Shape / Motion */
  --radius:      10px;
  --radius-lg:   18px;
  --radius-xl:   28px;
  --transition:  all .28s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { line-height: 1.22; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
p  { line-height: 1.7; }

/* ── Spacing System ─────────────────────────────────────────── */
:root {
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  64px;
  --space-2xl: 96px;
}

/* ── Utility ────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-2xl) 0; }
.section--alt { background: var(--white); }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px;
  background: var(--red-muted); color: var(--red-dark);
  border: 1px solid rgba(208,30,30,.2);
  border-radius: 50px;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red); color: var(--white); border-color: var(--red);
  letter-spacing: .02em;
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-red); }
.btn-outline {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); transform: translateY(-2px); }
.btn-dark {
  background: var(--charcoal); color: var(--white); border-color: var(--charcoal);
}
.btn-dark:hover { background: var(--charcoal-lg); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 9px 20px; font-size: .85rem; }

/* ── Header / Nav ────────────────────────────────────────────── */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(17,17,17,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: var(--transition);
}
#header.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,.45);
  border-bottom-color: rgba(208,30,30,.3);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo img.logo-img {
  height: 36px; width: auto; display: block;
  border-radius: 6px;
  padding: 4px 10px;
  background: var(--white);
}
.nav-logo .logo-text { line-height: 1.1; }
.nav-logo .logo-text strong { color: var(--white); font-size: 1.05rem; letter-spacing: .05em; }
.nav-logo .logo-text span { color: rgba(255,255,255,.55); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; display: block; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  color: rgba(255,255,255,.8); padding: 8px 14px;
  border-radius: 8px; font-size: .9rem; font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white); background: rgba(208,30,30,.18);
}
.nav-links a.active { color: var(--red) !important; }
.nav-cta { margin-left: 12px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border-radius: 8px;
  background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav */
.mobile-nav {
  display: none; flex-direction: column;
  background: var(--charcoal); border-top: 2px solid var(--red);
  padding: 16px 24px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,.85); padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .95rem; font-weight: 500; transition: var(--transition);
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--red); }
.mobile-nav .btn { margin-top: 12px; justify-content: center; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(10,10,10,.94) 0%, rgba(17,17,17,.82) 100%),
    url('../images/hero-bg.jpg') center/cover no-repeat;
  display: flex; align-items: center;
  padding-top: 72px; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 70% 50%, rgba(208,30,30,.14), transparent);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-dark));
}
.hero-content { position: relative; z-index: 1; max-width: 660px; margin-top: 40px; }
.hero-badge { margin-bottom: 18px; }
.hero h1 { color: var(--white); margin-bottom: 20px; line-height: 1.08; letter-spacing: -.02em; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero p {
  color: rgba(255,255,255,.78); font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 540px; margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 32px; margin-top: 60px;
}
.hero-stat strong { display: block; font-size: 2rem; color: var(--red); font-weight: 800; }
.hero-stat span { color: rgba(255,255,255,.65); font-size: .85rem; }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.45); font-size: .75rem;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(208,30,30,.7), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.4} 50%{opacity:1} }

/* ── Section Headers ─────────────────────────────────────────── */
.sec-header { text-align: center; margin-bottom: var(--space-xl); }
.sec-header .badge { margin-bottom: var(--space-sm); display: inline-flex; }
.sec-header h2 { color: var(--charcoal); margin-bottom: 14px; }
.sec-header p { color: var(--text-mid); max-width: 580px; margin: 0 auto; font-size: 1.05rem; line-height: 1.7; }

/* ── Why Choose Us ───────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}
.feature-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--red-muted);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(208,30,30,.18);
}
.feature-icon svg { width: 26px; height: 26px; color: var(--red); }
.feature-card h3 { color: var(--charcoal); margin-bottom: 10px; font-size: 1.1rem; }
.feature-card p { color: var(--text-mid); font-size: .92rem; line-height: 1.65; margin-top: 4px; }

/* ── Products ────────────────────────────────────────────────── */
.product-filter {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: var(--space-lg);
}
.filter-btn {
  padding: 9px 22px; border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white); color: var(--text-mid);
  font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--red); color: var(--white);
  border-color: var(--red); box-shadow: var(--shadow-red);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden; transition: var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card-header {
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-mid));
  padding: 24px 24px 20px;
  display: flex; align-items: flex-start; gap: 14px;
  border-left: 3px solid var(--red);
}
.product-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(208,30,30,.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(208,30,30,.3);
}
.product-card-icon svg { width: 24px; height: 24px; color: var(--red); }
.product-card-header h3 { color: var(--white); font-size: 1.05rem; }
.product-cat-badge {
  display: inline-block; margin-top: 5px;
  padding: 2px 10px; border-radius: 50px;
  background: rgba(208,30,30,.2); color: #f88;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.product-card-body { padding: var(--space-md); flex: 1; }
.product-card-body p { color: var(--text-mid); font-size: .9rem; margin-bottom: var(--space-sm); line-height: 1.6; }
.product-specs { display: flex; flex-direction: column; gap: 0; }
.spec-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--space-sm); font-size: .84rem;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--text-light); font-weight: 500; flex-shrink: 0; min-width: 90px; }
.spec-value { color: var(--text-dark); font-weight: 600; text-align: right; }
.product-card-footer {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--border);
  background: var(--off-white);
}
.product-card-footer .packing-label {
  font-size: .78rem; color: var(--text-light); font-weight: 500; margin-bottom: 6px;
}
.packing-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pack-tag {
  display: inline-block; padding: 3px 11px;
  background: var(--light-gray); color: var(--charcoal);
  border-radius: 50px; font-size: .75rem; font-weight: 600;
  border: 1px solid var(--border);
}

/* product page table */
.product-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.product-table {
  width: 100%; border-collapse: collapse;
  background: var(--white);
  min-width: 680px;
}
.product-table thead tr {
  background: var(--charcoal);
  position: sticky; top: 0; z-index: 2;
}
.product-table th {
  padding: 16px 20px; text-align: left;
  color: var(--red); font-size: .78rem;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
}
.product-table th:first-child { width: 180px; }
.product-table th:nth-child(2) { width: auto; }
.product-table th:nth-child(3) { width: 200px; }
.product-table th:last-child  { width: 220px; }
.product-table td {
  padding: 14px 20px; font-size: .9rem;
  vertical-align: middle; line-height: 1.5;
}
.product-table td:first-child { vertical-align: top; padding-top: 18px; }
.product-table tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
.product-table tbody tr:last-child { border-bottom: none; }
.product-table tbody tr:hover { background: var(--red-muted); }
.cat-cell { color: var(--charcoal); }
.cat-label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; background: var(--off-white);
  border-radius: 6px; border-left: 3px solid var(--red);
  font-size: .82rem; font-weight: 700; white-space: nowrap;
  color: var(--charcoal);
}

/* ── Audience CTA cards ──────────────────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}
.audience-card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); transition: var(--transition);
}
.audience-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.audience-card-top {
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-lg));
  padding: var(--space-lg) var(--space-md) var(--space-md);
  border-top: 3px solid var(--red);
}
.audience-card-top .a-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: rgba(208,30,30,.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(208,30,30,.35);
}
.audience-card-top .a-icon svg { width: 26px; height: 26px; color: var(--red); }
.audience-card-top h3 { color: var(--white); margin-bottom: 10px; font-size: 1.1rem; }
.audience-card-top p { color: rgba(255,255,255,.72); font-size: .9rem; line-height: 1.65; margin-top: 8px; }
.audience-card-bottom {
  background: var(--white); padding: var(--space-md);
  display: flex; flex-direction: column; gap: var(--space-xs);
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.audience-card-bottom .btn { justify-content: center; font-size: .85rem; padding: 10px 18px; }

/* ── About / Mission ─────────────────────────────────────────── */
.mission-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl);
  align-items: center;
}
.mission-visual {
  position: relative;
}
.mission-visual .main-img {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-mid));
  display: flex; align-items: center; justify-content: center;
}
.mission-visual .main-img svg { width: 80px; height: 80px; color: var(--red); opacity: .5; }
.mission-floater {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--red);
  color: var(--white); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow-red);
}
.mission-floater strong { font-size: 1.6rem; display: block; }
.mission-floater span { font-size: .82rem; font-weight: 600; }
.mission-content { }
.mission-content .badge { margin-bottom: var(--space-sm); display: inline-flex; }
.mission-content h2 { color: var(--charcoal); margin-bottom: var(--space-sm); }
.mission-content > p { color: var(--text-mid); margin-bottom: var(--space-md); line-height: 1.7; }
.value-list { display: flex; flex-direction: column; gap: 12px; }
.value-item {
  display: flex; gap: var(--space-sm); align-items: flex-start;
  padding: var(--space-sm); border-radius: var(--radius);
  background: var(--off-white); border: 1px solid var(--border);
  transition: var(--transition);
}
.value-item:hover { border-color: var(--red); background: var(--red-muted); }
.value-dot {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.value-dot svg { width: 17px; height: 17px; color: var(--white); }
.value-text strong { color: var(--charcoal); display: block; margin-bottom: 4px; font-size: .95rem; }
.value-text p { color: var(--text-mid); font-size: .88rem; line-height: 1.55; margin: 0; }

/* ── Hydraulic highlight ─────────────────────────────────────── */
.hydraulic-banner {
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-mid));
  border-radius: var(--radius-lg); overflow: hidden;
  padding: var(--space-xl) var(--space-xl);
  position: relative;
  border-left: 4px solid var(--red);
}
.hydraulic-banner::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(208,30,30,.12), transparent 70%);
}
.hydraulic-banner h2 { color: var(--white); margin-bottom: var(--space-sm); }
.hydraulic-banner > p { color: rgba(255,255,255,.75); max-width: 540px; margin-bottom: var(--space-lg); line-height: 1.7; }
.hydraulic-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm); margin-bottom: var(--space-lg);
}
.hydro-feat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(208,30,30,.2);
  border-radius: var(--radius); padding: var(--space-sm) var(--space-md);
}
.hydro-feat strong { color: var(--red); display: block; margin-bottom: 6px; font-size: .9rem; }
.hydro-feat span { color: rgba(255,255,255,.65); font-size: .83rem; line-height: 1.55; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.45fr; gap: var(--space-xl); align-items: start;
}
.contact-info h2 { color: var(--charcoal); margin-bottom: var(--space-sm); }
.contact-info > p { color: var(--text-mid); margin-bottom: var(--space-lg); line-height: 1.7; }
.contact-cards { display: flex; flex-direction: column; gap: var(--space-sm); }
.contact-card {
  display: flex; gap: var(--space-sm); align-items: flex-start;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.contact-card:hover { border-color: var(--red); box-shadow: 0 4px 20px rgba(208,30,30,.1); }
.contact-card-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--red-muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1px solid rgba(208,30,30,.2);
}
.contact-card-icon svg { width: 20px; height: 20px; color: var(--red); }
.contact-card-text { }
.contact-card-text strong { color: var(--charcoal); display: block; margin-bottom: 3px; font-size: .88rem; }
.contact-card-text a, .contact-card-text p { color: var(--text-mid); font-size: .9rem; }
.contact-card-text a:hover { color: var(--red); }

/* form */
.contact-form-wrap {
  background: var(--white); border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-lg); box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.contact-form-wrap h3 { color: var(--charcoal); margin-bottom: 6px; font-size: 1.4rem; }
.contact-form-wrap > p { color: var(--text-mid); font-size: .92rem; margin-bottom: var(--space-md); line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.form-group { margin-bottom: var(--space-sm); }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--charcoal); margin-bottom: 7px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--off-white); color: var(--text-dark);
  font-size: .92rem; font-family: inherit;
  transition: var(--transition); outline: none; line-height: 1.5;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--red); background: var(--white);
  box-shadow: 0 0 0 3px rgba(208,30,30,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none; background: #e8f5e9; border: 1px solid #a5d6a7;
  border-radius: var(--radius); padding: 16px 20px;
  color: #2e7d32; font-size: .93rem; margin-bottom: 20px;
}
.form-success.show { display: block; }
.form-error {
  display: none; background: #fce4e4; border: 1px solid #f48fb1;
  border-radius: var(--radius); padding: 16px 20px;
  color: #c62828; font-size: .93rem; margin-bottom: 20px;
}
.form-error.show { display: block; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  border-top: 3px solid var(--red);
  padding: var(--space-xl) 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-xl);
  padding-bottom: var(--space-xl); border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand {}
.footer-brand .f-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .f-logo img {
  height: 34px; width: auto;
  border-radius: 6px;
  padding: 4px 10px;
  background: var(--white);
}
.footer-brand .f-logo strong { color: var(--white); font-size: 1rem; }
.footer-brand .f-logo small { color: rgba(255,255,255,.45); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; display: block; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .88rem; line-height: 1.75; margin-bottom: var(--space-md); margin-top: var(--space-sm); }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); transition: var(--transition);
}
.social-btn:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.social-btn svg { width: 17px; height: 17px; }

.footer-col h4 { color: var(--white); font-size: .82rem; margin-bottom: var(--space-sm); letter-spacing: .1em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,.5); font-size: .87rem;
  transition: var(--transition); display: inline-block;
}
.footer-col ul li a:hover { color: var(--red); padding-left: 4px; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: var(--space-sm); }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item p { color: rgba(255,255,255,.55); font-size: .85rem; }
.footer-contact-item a { color: rgba(255,255,255,.55); font-size: .85rem; transition: var(--transition); }
.footer-contact-item a:hover { color: var(--red); }

.footer-bottom {
  padding: var(--space-md) 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-sm);
}
.footer-bottom p { color: rgba(255,255,255,.35); font-size: .82rem; }
.footer-bottom a { color: rgba(255,255,255,.35); transition: var(--transition); }
.footer-bottom a:hover { color: var(--red); }

/* ── Page Hero (inner pages) ─────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-mid) 100%);
  padding: 128px 0 72px; text-align: center; position: relative; overflow: hidden;
  border-bottom: 3px solid var(--red);
}
.page-hero::before {
  content: '';
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(208,30,30,.14), transparent 70%);
}
.page-hero h1 { color: var(--white); position: relative; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.65); max-width: 540px; margin: 0 auto; font-size: 1.05rem; position: relative; line-height: 1.7; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: var(--space-sm); position: relative; }
.breadcrumb a { color: var(--red); font-size: .85rem; }
.breadcrumb span { color: rgba(255,255,255,.35); font-size: .85rem; }

/* ── Tabs (Products page) ────────────────────────────────────── */
.tab-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 40px; padding-bottom: 0;
  border-bottom: 2px solid var(--border);
}
.tab-btn {
  padding: 11px 22px; border-radius: 8px 8px 0 0;
  font-size: .88rem; font-weight: 600; cursor: pointer;
  border: none; background: transparent; color: var(--text-mid);
  transition: var(--transition); position: relative; bottom: -2px;
}
.tab-btn.active {
  background: var(--charcoal); color: var(--red);
  border-bottom: 2px solid var(--charcoal);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Highlight / spec table ──────────────────────────────────── */
.spec-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table thead tr { background: var(--charcoal); }
.spec-table th { padding: 13px 20px; text-align: left; color: var(--red); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.spec-table td { padding: 12px 20px; font-size: .88rem; vertical-align: middle; }
.spec-table tbody tr { background: var(--white); border-bottom: 1px solid var(--border); transition: var(--transition); }
.spec-table tbody tr:nth-child(even) { background: var(--off-white); }
.spec-table tbody tr:hover { background: var(--red-muted); }

/* ── Alert / notices ─────────────────────────────────────────── */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 20px; border-radius: var(--radius);
  background: var(--red-muted); border: 1px solid rgba(208,30,30,.25);
  color: var(--charcoal); font-size: .9rem;
}
.notice svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; margin-top: 1px; }

/* ── Loader overlay ──────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-ring {
  width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid rgba(208,30,30,.2);
  border-top-color: var(--red);
  animation: spin .9s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-inner span { color: rgba(255,255,255,.5); font-size: .82rem; letter-spacing: .1em; }

/* ── Scroll top ──────────────────────────────────────────────── */
#scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 800;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--red); border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); cursor: pointer; box-shadow: var(--shadow-red);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: var(--transition);
}
#scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#scroll-top:hover { background: var(--red-dark); transform: translateY(-2px); }
#scroll-top svg { width: 20px; height: 20px; }

/* ── Animations ──────────────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --space-xl: 56px; --space-2xl: 80px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}
@media (max-width: 1024px) {
  .mission-grid { grid-template-columns: 1fr; }
  .mission-visual { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .hydraulic-banner { padding: var(--space-lg) var(--space-lg); }
}
@media (max-width: 768px) {
  :root { --space-xl: 48px; --space-2xl: 64px; }
  .section { padding: var(--space-xl) 0; }
  .container { padding: 0 var(--space-sm); }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 90vh; }
  .hero-stats { gap: var(--space-md); margin-top: var(--space-lg); }
  .hero-stat strong { font-size: 1.6rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .audience-grid, .features-grid { grid-template-columns: 1fr; }
  .hydraulic-banner { padding: var(--space-md) var(--space-md); }
  .contact-form-wrap { padding: var(--space-md); }
  .sec-header { margin-bottom: var(--space-lg); }
  .product-table th, .product-table td { padding: 12px 14px; }
}
@media (max-width: 480px) {
  :root { --space-2xl: 52px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .products-grid { grid-template-columns: 1fr; }
  .audience-card-top { padding: var(--space-md); }
  .audience-card-bottom { padding: var(--space-sm) var(--space-md); }
}
