/* RR Country Store — industrial, clean, contractor-grade. */
:root {
  --ink: #181b1f;
  --slate: #3a4149;
  --muted: #6b7280;
  --line: #e3e1dc;
  --paper: #f6f5f2;
  --accent: #e8622a;
  --accent-dark: #c34e1d;
  --dark: #14161a;
  --radius: 10px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: min(1140px, 92%); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 22, 26, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--accent);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; }
.brand { text-decoration: none; color: #fff; line-height: 1.1; }
.brand-mark {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: 1.55rem; letter-spacing: .04em; display: block;
}
.brand-sub {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.primary-nav { display: flex; gap: 1.6rem; align-items: center; }
.primary-nav a {
  color: #e8e6e1; text-decoration: none; font-weight: 600; font-size: .92rem;
  letter-spacing: .02em;
}
.primary-nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: .5rem 1.1rem; border-radius: 6px;
}
.nav-cta:hover { background: var(--accent-dark); }
.nav-toggle {
  display: none; background: none; border: 1px solid #444; border-radius: 6px;
  padding: .55rem .7rem; cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; display: block; width: 22px; height: 2px; background: #fff; position: relative;
}
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }

/* Hero */
.hero { position: relative; min-height: 82vh; display: flex; align-items: center; color: #fff; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15, 17, 20, 0.88) 20%, rgba(15, 17, 20, 0.35) 70%);
}
.hero-content { position: relative; padding: 6rem 0; max-width: 700px; }
.eyebrow {
  font-size: .78rem; letter-spacing: .26em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin: 0 0 1rem;
}
.eyebrow-dark { color: var(--accent-dark); }
.eyebrow-light { color: var(--accent); }
.hero h1 {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 1.02; margin: 0 0 1.2rem;
}
.lede { font-size: 1.15rem; color: #e8e6e1; max-width: 34rem; margin: 0 0 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: .85rem 1.7rem; border-radius: 6px; font-size: 1rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Sections */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-dark { background: var(--dark); color: #fff; }
.grid-2 {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center;
}
h2 {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.05; margin: 0 0 1.2rem;
}
h3 {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  font-size: 1.25rem; letter-spacing: .03em; margin: 0 0 .4rem;
}
.section p { color: var(--slate); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-lead { font-size: 1.1rem; color: var(--muted); }
.section-lead-light { font-size: 1.1rem; color: #c9cdd3 !important; }
.section-dark h2 { color: #fff; }

.stats { display: flex; gap: 2.5rem; margin: 2.2rem 0 0; padding: 0; flex-wrap: wrap; }
.stats dt { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.stats dd {
  margin: .2rem 0 0; font-family: var(--font-head); font-weight: 700;
  font-size: 1.5rem; text-transform: uppercase;
}
.about-figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px rgba(20,22,26,.14); }

/* Cards */
.product-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem;
}
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 4px 14px rgba(20,22,26,.05);
}
.product-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.product-body { padding: 1.2rem 1.4rem 1.5rem; border-top: 3px solid var(--accent); }
.product-body p { margin: 0; font-size: .95rem; color: var(--slate); }

.service-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
}
.service-card {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 8px; padding: 1.5rem 1.6rem; background: #fff;
}
.section-alt .service-card { background: #fff; }
.service-card p { margin: 0; font-size: .95rem; color: var(--slate); }

/* Contact */
.contact-card {
  font-style: normal; background: #1e2228; border: 1px solid #2c313a;
  border-radius: var(--radius); padding: 2rem; display: grid; gap: 1.5rem;
}
.contact-card p { margin: 0; color: #dfe3e8 !important; }
.contact-label {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent) !important; font-weight: 700; margin-bottom: .35rem !important;
}
.contact-card a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--accent); }
.contact-card a:hover { color: var(--accent); }

/* Footer */
.site-footer { background: #0e1013; color: #9aa1ab; padding: 2rem 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-addr { color: #6f7680; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .product-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 640px) {
  .product-grid, .service-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--dark); flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 0 1rem; border-bottom: 3px solid var(--accent);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: .85rem 5%; font-size: 1rem; }
  .nav-cta { margin: .5rem 5% 0; text-align: center; }
  .hero { min-height: 70vh; }
  .section { padding: 4rem 0; }
}
