/* ========================================
   Reidville Hydraulics & Mfg., Inc.
   Industrial dark theme
   ======================================== */

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

:root {
  --bg: #0f1114;
  --bg-alt: #161920;
  --surface: #1c1f26;
  --surface-light: #242832;
  --border: #2a2e38;
  --border-light: #353a47;
  --text: #e8e9ec;
  --text-muted: #8b8f9a;
  --text-dim: #5c6070;
  --accent: #e8620a;
  --accent-hover: #ff7a1a;
  --accent-dim: rgba(232, 98, 10, 0.12);
  --accent-glow: rgba(232, 98, 10, 0.25);
  --white: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

img {
  max-width: 100%;
  display: block;
  transition: opacity 0.3s;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

/* ========================================
   Top Bar
   ======================================== */

.top-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  padding: 0.5rem 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.top-bar-divider {
  color: var(--border-light);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.top-bar-phone {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.top-bar-social {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.top-bar-social a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.top-bar-social a:hover {
  color: var(--accent);
}

/* ========================================
   Social Icons (shared)
   ======================================== */

.social-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  fill: currentColor;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ========================================
   Header / Nav
   ======================================== */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 1.5rem;
  gap: 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
  padding: 0.25rem 0;
}

.logo-reidville {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.08em;
}

.logo-sub {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--white);
  background: var(--surface-light);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.2rem !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero
   ======================================== */

.hero {
  position: relative;
  padding: 8rem 0 6rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 17, 20, 0.88), rgba(15, 17, 20, 0.7)),
    linear-gradient(45deg, var(--accent-dim), transparent 50%);
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(232, 98, 10, 0.2);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  animation: subtlePulse 3s ease-in-out infinite;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
  background: var(--surface-light);
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--white);
}

.btn-phone {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.btn-phone:hover {
  background: var(--accent-dim);
  color: var(--accent-hover);
}

.btn-full {
  width: 100%;
}

/* ========================================
   Stats Bar
   ======================================== */

.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px var(--accent-glow);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ========================================
   Section Styling
   ======================================== */

.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.7;
}

/* ========================================
   Photo Dividers (full-bleed)
   ======================================== */

.photo-divider {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  position: relative;
}

.photo-divider img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.85) contrast(1.05);
  transition: transform 0.6s ease;
}

.photo-divider:hover img {
  transform: scale(1.02);
}

/* ========================================
   Split Intro
   ======================================== */

.split-intro {
  padding: 5rem 0 2rem;
  text-align: center;
}

.split-intro .section-sub {
  margin: 0 auto;
}

/* ========================================
   Manufacturing Section
   ======================================== */

.manufacturing {
  padding: 4rem 0 5rem;
}

/* ========================================
   Service Cards Grid
   ======================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem;
  transition: all 0.2s;
}

.service-card:hover {
  border-color: var(--border-light);
  border-top-color: var(--accent);
  border-top-width: 2px;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  opacity: 0.7;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================
   Walk-In Service Section
   ======================================== */

.service {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.service-highlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}

.highlight-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.highlight-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.highlight-card.accent {
  background: var(--accent);
  border-color: var(--accent);
}

.highlight-card.accent h3,
.highlight-card.accent p {
  color: var(--white);
}

.highlight-phone {
  margin-bottom: 0.5rem !important;
}

.highlight-phone a {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  font-family: var(--mono);
}

/* ========================================
   Norseman Motors Section
   ======================================== */

.norseman {
  padding: 5rem 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.motor-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.motor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}

.motor-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--border);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table td {
  padding: 0.6rem 0;
  font-size: 0.88rem;
}

.spec-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  width: 45%;
}

.spec-table td:last-child {
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-align: right;
}

.motor-options {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}

.motor-options h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.option {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

/* ========================================
   Contract Manufacturing — Hydreco
   ======================================== */

.contract-mfg {
  padding: 5rem 0;
  background: var(--bg);
}

.contract-mfg .section-header {
  margin-bottom: 2.5rem;
}

.contract-mfg-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.contract-mfg-copy p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.contract-mfg-copy p:last-child {
  margin-bottom: 0;
}

.contract-mfg-hero {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.contract-mfg-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.valve-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.valve-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.valve-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.valve-card-img {
  position: relative;
  overflow: hidden;
  background: #0a0c0f;
}

.valve-card-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.valve-card:hover .valve-card-img img {
  transform: scale(1.04);
}

.valve-card-body {
  padding: 1rem 1.2rem 1.2rem;
}

.valve-card-pn {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.valve-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.contract-mfg-footnote {
  margin-top: 2.5rem;
  padding: 1.5rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.contract-mfg-footnote strong {
  color: var(--white);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .valve-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contract-mfg-intro {
    grid-template-columns: 1fr;
  }

  .valve-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }
}

@media (max-width: 480px) {
  .valve-gallery {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Industries Section
   ======================================== */

.industries {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
}

.industry-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.industry-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.industry-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.industry-card p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ========================================
   About Section
   ======================================== */

.about {
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.about-content .section-title {
  margin-top: 0.3rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.certifications {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.cert {
  background: var(--accent-dim);
  border: 1px solid rgba(232, 98, 10, 0.2);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  cursor: default;
}

.cert:hover {
  background: rgba(232, 98, 10, 0.2);
  border-color: var(--accent);
  color: var(--white);
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  min-height: 350px;
  max-height: 500px;
}

/* ========================================
   See Our Work Section
   ======================================== */

.work-section {
  padding: 5rem 0;
  background: var(--bg);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.work-card {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.work-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.work-card:hover img {
  transform: scale(1.03);
}

.work-label {
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  letter-spacing: 0.02em;
}

.work-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Testimonials Section
   ======================================== */

.testimonials {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.google-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.rating-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
}

.rating-stars {
  color: #fbbf24;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.rating-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.2s;
}

.testimonial-card:hover {
  border-left-color: var(--accent);
  border-left-width: 3px;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.1em;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-source {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* ========================================
   Contact Section
   ======================================== */

.contact {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact .section-title {
  margin-bottom: 0.8rem;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.contact-item span,
.contact-item a {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-social a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
}

.contact-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Contact Form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.contact-form h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font);
  margin-bottom: 0.8rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.contact-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238b8f9a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  margin-top: 0.5rem;
  font-size: 1rem;
  padding: 0.9rem;
}

/* ========================================
   Map Section
   ======================================== */

.map-section {
  border-top: 1px solid var(--border);
}

.map-section iframe {
  filter: grayscale(0.8) brightness(0.7) contrast(1.1);
}

/* ========================================
   Footer
   ======================================== */

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.8rem;
  line-height: 1.6;
}

.footer-brand-phone {
  margin-top: 0.5rem !important;
}

.footer-brand-phone a {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

.footer-bottom-social {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.footer-bottom-social a {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-bottom-social a:hover {
  color: var(--accent);
}

.footer-bottom-fb {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-bottom-fb:hover {
  color: var(--accent);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .photo-divider,
  .photo-divider img {
    height: 250px;
    max-height: 250px;
  }

  .work-card img {
    aspect-ratio: 4 / 3;
  }

  .top-bar-left {
    display: none;
  }

  .top-bar-inner {
    justify-content: center;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.8rem 1rem;
    width: 100%;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-highlight {
    grid-template-columns: 1fr;
  }

  .motor-specs {
    grid-template-columns: 1fr;
  }

  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .work-cta {
    flex-direction: column;
    align-items: center;
  }

  .work-cta .btn {
    width: 100%;
    max-width: 400px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .split-intro {
    padding: 3rem 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Social / Facebook Banner
   ======================================== */

.social-banner {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, rgba(232, 98, 10, 0.12), rgba(232, 98, 10, 0.04));
  border-top: 1px solid rgba(232, 98, 10, 0.2);
  border-bottom: 1px solid rgba(232, 98, 10, 0.2);
}

.social-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.social-banner-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.social-banner-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 500px;
}

.social-banner-btn {
  white-space: nowrap;
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .social-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .social-banner-text p {
    margin: 0 auto;
  }
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 98, 10, 0); }
  50% { box-shadow: 0 0 0 6px rgba(232, 98, 10, 0.08); }
}

/* ========================================
   Shop / Catalog
   ======================================== */

.shop-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border);
}

.shop-hero .section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.shop-hero .section-sub {
  max-width: 700px;
}

.shop-section {
  padding: 2.5rem 0 5rem;
}

.shop-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.shop-search {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color 0.2s;
}

.shop-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* Chip filter row */
.chip-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
  letter-spacing: 0.02em;
}

.chip:hover {
  color: var(--white);
  border-color: var(--border-light);
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  border-color: var(--border-light);
  border-top-color: var(--accent);
  border-top-width: 2px;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  color: inherit;
}

.product-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.product-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  line-height: 1.3;
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.product-card-sku {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.product-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.product-card-price {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}

.product-card-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Cart badge in nav */
.cart-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
}

.cart-badge {
  background: var(--accent);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
  line-height: 1.4;
  min-width: 1.3rem;
  text-align: center;
}

/* ========================================
   Product Detail
   ======================================== */

.product-detail {
  padding: 2.5rem 0 5rem;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--text);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-gallery {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-thumb {
  width: 70px;
  height: 70px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
  padding: 0;
}

.product-thumb:hover,
.product-thumb.active {
  border-color: var(--accent);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.product-info-sku {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}

.product-info-price {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.product-info-desc {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.product-qty-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.product-qty-row label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.product-qty-row input {
  width: 80px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.product-qty-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.product-specs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.product-specs tr {
  border-bottom: 1px solid var(--border);
}

.product-specs tr:last-child {
  border-bottom: none;
}

.product-specs td {
  padding: 0.55rem 0;
  font-size: 0.85rem;
  font-family: var(--mono);
}

.product-specs td:first-child {
  color: var(--text-muted);
  width: 45%;
}

.product-specs td:last-child {
  color: var(--text);
  text-align: right;
}

.product-longdesc {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.product-longdesc p {
  margin-bottom: 0.8rem;
}

.product-longdesc ul,
.product-longdesc ol {
  margin: 0.6rem 0 0.8rem 1.5rem;
}

.product-longdesc li {
  margin-bottom: 0.3rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .shop-hero {
    padding: 2rem 0 1.5rem;
  }

  .shop-hero .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-info-name {
    font-size: 1.4rem;
  }
}

/* ========================================
   Page hero strip (shop / product / quote)
   ======================================== */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0;
  font-size: 0.95rem;
}

/* ========================================
   Shop empty state
   ======================================== */
.shop-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.shop-error {
  color: var(--text-muted);
  padding: 2rem;
  text-align: center;
}

/* ========================================
   Quote page
   ======================================== */
.quote-page {
  padding: 2rem 1rem 4rem;
  max-width: 900px;
}

#quote-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.quote-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
}

.quote-row-image {
  width: 72px;
  height: 72px;
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
}

.quote-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quote-row-info {
  min-width: 0;
}

.quote-row-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.quote-row-sku {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.quote-row-price {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 0.15rem;
}

.quote-row-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.15rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
  line-height: 1;
}

.qty-btn:hover {
  background: var(--surface-light);
  color: var(--accent);
}

.qty-input {
  width: 44px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-align: center;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input:focus {
  outline: none;
}

.quote-row-remove {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: all 0.15s;
}

.quote-row-remove:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.quote-totals {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.25rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.quote-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
  margin-bottom: 2rem;
}

.quote-empty p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

/* Quote form */
.quote-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.quote-form h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
  margin-bottom: 1.2rem;
}

.quote-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.quote-form-grid .req {
  color: var(--accent);
}

.quote-form-full {
  grid-column: 1 / -1;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.quote-form textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--font);
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.quote-form-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.8rem;
}

@media (max-width: 640px) {
  .quote-row {
    grid-template-columns: 60px 1fr auto;
    grid-template-areas:
      "img info remove"
      "img qty  qty";
    row-gap: 0.6rem;
  }
  .quote-row-image { grid-area: img; width: 60px; height: 60px; }
  .quote-row-info { grid-area: info; }
  .quote-row-qty { grid-area: qty; justify-self: start; }
  .quote-row-remove { grid-area: remove; }

  .quote-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Focus-visible outlines for keyboard nav (a11y) */
.product-card:focus-visible,
.chip:focus-visible,
.shop-chip:focus-visible,
.qty-btn:focus-visible,
.product-thumb:focus-visible,
.quote-row-remove:focus-visible,
#add-to-quote:focus-visible,
.btn-primary:focus-visible,
.nav-link:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Ensure [hidden] beats display:grid/flex on dynamically-toggled containers */
[hidden] { display: none !important; }

/* Smooth fade-in for product images once they finish decoding */
.product-card img,
.product-gallery-main img,
.product-thumb img {
  transition: opacity 0.3s ease;
}

/* "Photo coming soon" placeholders — reuse the same boxes as real imagery */
.product-card-image-placeholder,
.product-gallery-main-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0.8rem;
  box-sizing: border-box;
}

.product-card-image-placeholder span,
.product-gallery-main-placeholder span {
  display: block;
  max-width: 80%;
}

/* Gallery placeholder inherits its size from .product-gallery-main (above) */
.product-gallery-main-placeholder {
  font-size: 0.9rem;
}

/* Representative-image caption under product gallery */
.product-gallery-note {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Online Store homepage section */
.store-cta {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.store-cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.store-cta-copy .section-tag { display: inline-block; margin-bottom: 1rem; }
.store-cta-copy .section-title { margin-bottom: 0.75rem; }
.store-cta-copy .section-sub { margin: 0 auto 2rem; max-width: 600px; }
.store-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.store-cta-btn { min-width: 160px; text-align: center; }
.btn-secondary {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.store-cta-stats {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--mono);
  margin: 0;
}
.store-cta-stats strong { color: var(--text); }

@media (max-width: 480px) {
  .store-cta { padding: 3rem 0; }
  .store-cta-actions { flex-direction: column; align-items: stretch; }
  .store-cta-btn { width: 100%; }
}

/* Quote link — only visible when cart has items */
.nav-quote-link {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}
.nav-quote-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-quote-link .cart-badge {
  position: static;
  background: var(--accent);
  color: var(--white);
}
