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

:root {
  --amber: #b45309;
  --amber-light: #f59e0b;
  --gold: #fcd34d;
  --slate: #0f172a;
  --slate-2: #1e293b;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  font-family: "Poppins", sans-serif;
  color: #e2e8f0;
  background: var(--slate);
  line-height: 1.6;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 18px;
}

.nav-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(245, 158, 11, 0.6);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-home {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-home:hover {
  color: var(--gold);
}

.nav-cta {
  background: var(--amber-light);
  color: #1e293b;
  padding: 9px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.nav-cta:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 24px 90px;
  background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.9)),
    url("rrindustries-front.webp");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* glowing accents */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  z-index: 0;
}

.hero::before {
  background: #f59e0b;
  top: -120px;
  right: -100px;
}

.hero::after {
  background: #b45309;
  bottom: -140px;
  left: -120px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  animation: fadeUp 0.9s ease both;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.hero-logo img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(245, 158, 11, 0.7);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

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

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.scroll-hint span {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 4px;
  margin-top: 8px;
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

.tag {
  display: inline-block;
  padding: 7px 18px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 999px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 64px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero p {
  font-size: 18px;
  font-weight: 300;
  color: #e2e8f0;
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--amber-light);
  color: #1e293b;
}

.btn-primary:hover {
  background: #fbbf24;
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Sections ---------- */
.section {
  padding: 90px 24px;
}

.section-alt {
  background: var(--slate-2);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber-light);
  font-weight: 600;
  margin-bottom: 10px;
}

.section h2 {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--gold), var(--amber));
}

.section-inner > .lead,
.section-inner > .cards,
.section-inner > .gallery,
.section-inner > .stats,
.section-inner > .contact-grid {
  margin-top: 44px;
}

.lead {
  max-width: 720px;
  margin: 0 auto;
  color: #cbd5e1;
  font-size: 17px;
  font-weight: 300;
}

/* ---------- Stats ---------- */
.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 44px;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px;
  position: relative;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
}

.stat-num {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--gold);
}

.stat-label {
  font-size: 14px;
  color: #94a3b8;
}

/* ---------- Product cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 18px;
  padding: 40px 28px 32px;
  text-align: left;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: "Playfair Display", serif;
  font-size: 34px;
  font-weight: 800;
  color: rgba(245, 158, 11, 0.18);
}

.card-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 16px;
}

.card h3 {
  font-family: "Playfair Display", serif;
  font-size: 21px;
  color: var(--gold);
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: #cbd5e1;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.gallery img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery img:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 44px;
  text-align: left;
}

.contact-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 32px;
}

.contact-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-row:last-child {
  border-bottom: none;
}

.c-icon {
  font-size: 22px;
}

.c-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.c-value {
  font-size: 16px;
  color: #f1f5f9;
  text-decoration: none;
  display: block;
}

a.c-value:hover {
  color: var(--amber-light);
}

.map-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}

.map-link:hover {
  color: #fbbf24;
  text-decoration: underline;
}

.map-embed {
  border-radius: 18px;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */
.footer {
  background: #0b1220;
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  color: #64748b;
}

.footer p + p {
  margin-top: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .nav-home {
    font-size: 13px;
  }
  .nav-brand span {
    display: none;
  }
  .hero-logo img {
    width: 90px;
    height: 90px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero p {
    font-size: 16px;
  }
  .section {
    padding: 64px 20px;
  }
  .section h2 {
    font-size: 30px;
  }
  .stats {
    gap: 20px;
  }
  .stat + .stat::before {
    display: none;
  }
}
