/* ===================================================
   Robinson Welding & Fabrication LLC — Custom Styles
   =================================================== */

:root {
  --accent:        #B22222;
  --accent-light:  #D44444;
  --bg-dark:       #0f0f0f;
  --bg-card:       #1a1a1a;
  --bg-alt:        #141414;
  --text-primary:  #f0f0f0;
  --text-muted:    #888888;
  --border:        #2a2a2a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.5px;
}

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

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

/* ---- NAVBAR ---- */
#mainNav {
  background: rgba(8, 8, 8, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s, background 0.3s;
  padding: 0.6rem 0;
}

#mainNav.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.7);
  background: rgba(5, 5, 5, 0.99);
}

/* Logo */
.logo-mark { flex-shrink: 0; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 1px;
}

.brand-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-transform: lowercase;
}

.brand-sub {
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: lowercase;
}

/* Nav links */
#mainNav .nav-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #bbbbbb !important;
  padding: 0.5rem 0.6rem;
  transition: color 0.2s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active-link {
  color: var(--accent-light) !important;
}

.nav-brochure-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-color: var(--accent) !important;
  color: var(--accent-light) !important;
  transition: background 0.2s, color 0.2s;
}

.nav-brochure-btn:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

/* ---- HERO ---- */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.06);
  transition: transform 10s ease;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.90) 0%,
    rgba(8,0,0,0.80) 50%,
    rgba(0,0,0,0.70) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid rgba(178,34,34,0.6);
  padding: 5px 18px;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-title span { color: var(--accent-light); }

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #cccccc;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-sub strong { color: #fff; }

.hero-cta .btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 2px;
}

/* ---- SECTION COMMONS ---- */
.section-dark  { background-color: var(--bg-dark); }
.section-alt   { background-color: var(--bg-alt);  }

.section-eyebrow {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0;
}

.section-rule {
  width: 56px;
  height: 3px;
  background: var(--accent);
  border: none;
  margin: 0.8rem 0 0;
  display: block;
}

.section-rule.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- SERVICES ---- */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 3px;
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(178,34,34,0.15);
}

.service-card.featured {
  border-top-color: var(--accent-light);
  background: #1d1212;
}

.service-icon {
  font-size: 2rem;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 0.6rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0.8rem;
}

.service-list li {
  padding: 0.22rem 0;
  color: #bbb;
  font-size: 0.88rem;
}

.service-list li::before {
  content: '▸ ';
  color: var(--accent-light);
}

.service-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

/* Mini service cards */
.mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.4rem;
  height: 100%;
  text-align: center;
  transition: border-color 0.3s;
}

.mini-card:hover { border-color: var(--accent); }

.mini-card i {
  font-size: 1.7rem;
  color: var(--accent-light);
  margin-bottom: 0.6rem;
  display: block;
}

.mini-card h5 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  margin-bottom: 0.4rem;
}

.mini-card p {
  font-size: 0.83rem;
  color: #999;
  margin: 0;
}

/* ---- ABOUT ---- */
.lead-italic {
  font-size: 1.05rem;
  font-style: italic;
  color: #ddd;
  margin-bottom: 1rem;
}

.cert-box {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(178,34,34,0.1);
  border: 1px solid rgba(178,34,34,0.3);
  border-radius: 3px;
  padding: 0.9rem 1.2rem;
  margin-top: 0.75rem;
}

.cert-box strong { display: block; color: #fff; font-size: 0.95rem; }
.cert-box small  { color: #aaa; font-size: 0.8rem; }

.pullquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.25rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  color: var(--accent-light);
  font-style: italic;
  margin-top: 1.5rem;
}

.about-img-wrap { position: relative; }

.about-img-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.stats-strip {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.85rem 2.2rem;
  border-radius: 3px;
  white-space: nowrap;
  min-width: 320px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.stats-divider {
  width: 1px;
  height: 42px;
  background: rgba(255,255,255,0.35);
}

/* ---- WHY CHOOSE US ---- */
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.4rem;
  height: 100%;
  transition: border-color 0.3s, transform 0.3s;
}

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

.why-icon {
  font-size: 1.6rem;
  color: var(--accent-light);
  margin-bottom: 0.6rem;
  display: block;
}

.why-card h5 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fff;
  margin-bottom: 0.4rem;
}

.why-card p {
  font-size: 0.85rem;
  color: #999;
  margin: 0;
}

/* ---- PROJECTS ---- */
.project-tabs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-card);
}

.project-tabs-wrap::-webkit-scrollbar { height: 4px; }
.project-tabs-wrap::-webkit-scrollbar-track { background: var(--bg-card); }
.project-tabs-wrap::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.project-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  min-width: max-content;
  padding: 0;
  margin: 0;
  list-style: none;
}

.project-tabs .nav-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999 !important;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.45rem 1rem;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.project-tabs .nav-link:hover {
  color: #fff !important;
  border-color: var(--accent);
}

.project-tabs .nav-link.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

/* Job description bar */
.job-desc {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 3px 3px 0;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1rem;
}

.job-desc h5 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin: 0 0 0.3rem;
}

.job-desc p {
  font-size: 0.85rem;
  color: #bbb;
  margin: 0;
}

/* Gallery grid */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4 / 3;
  background: #111;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(178,34,34,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.gal-overlay i {
  font-size: 1.8rem;
  color: transparent;
  transition: color 0.3s;
}

.gallery-item:hover .gal-overlay { background: rgba(178,34,34,0.35); }
.gallery-item:hover .gal-overlay i { color: rgba(255,255,255,0.95); }

/* ---- CONTACT ---- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.75rem;
  height: 100%;
  text-align: center;
  transition: border-color 0.3s;
}

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

.contact-card .icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(178,34,34,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.3rem;
  color: var(--accent-light);
}

.contact-card h5 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 0.6rem;
}

.contact-card a {
  display: block;
  color: #ccc;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
  word-break: break-all;
}

.contact-card a:hover { color: var(--accent-light); }

.contact-card p, .contact-card small {
  color: #aaa;
  font-size: 0.85rem;
  margin: 0;
}

.map-frame {
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ---- FOOTER ---- */
footer {
  background: #070707;
  border-top: 1px solid var(--border);
}

footer p, footer small { color: var(--text-muted); }

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

footer a:hover { color: #fff; }

/* ---- BACK TO TOP ---- */
#backToTop {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

#backToTop:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
}

/* ---- UTILITIES ---- */
.text-accent { color: var(--accent-light) !important; }
.border-accent { border-color: var(--accent) !important; }
.bg-card { background-color: var(--bg-card) !important; }

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  .about-img-wrap img { height: 320px; }
  .stats-strip { min-width: auto; width: 90%; padding: 0.75rem 1.2rem; }
  .stat-num { font-size: 1.3rem; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 1.75rem; }
  .hero-sub { font-size: 0.9rem; }
  .hero-cta .btn { padding: 0.65rem 1.4rem; font-size: 0.82rem; }
  .about-img-wrap { margin-bottom: 3rem; }
  .pullquote { font-size: 1.05rem; }
}

@media (max-width: 575px) {
  .hero-cta .btn { display: block; width: 100%; margin: 0 0 0.5rem !important; }
  .stats-strip { flex-direction: column; gap: 0.5rem; }
  .stats-divider { width: 60px; height: 1px; }
}
