/* =========================================================
   Red River Rogue Repair
   Clean, modern. Brand colors pulled from the logo:
   metallic gray "R" + red screwdriver.
   ========================================================= */

:root {
  --red:        #b3211f;
  --red-deep:   #8e1715;
  --red-bright: #d62b27;
  --ink:        #181a1c;
  --charcoal:   #232729;
  --steel:      #4a5054;
  --slate:      #6b7378;
  --mist:       #9aa2a7;
  --paper:      #ffffff;
  --paper-2:    #f4f5f6;
  --paper-3:    #eceef0;
  --line:       #e0e3e5;

  --radius:     14px;
  --radius-sm:  10px;
  --shadow-sm:  0 1px 2px rgba(24,26,28,.06), 0 2px 8px rgba(24,26,28,.05);
  --shadow-md:  0 6px 18px rgba(24,26,28,.10), 0 2px 6px rgba(24,26,28,.06);
  --shadow-lg:  0 20px 50px rgba(24,26,28,.16);

  --font-display: 'Oswald', system-ui, sans-serif;
  --font-body:    'Archivo', system-ui, sans-serif;

  --wrap: 1140px;
}

/* ---- Reset-ish --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -.01em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  letter-spacing: .02em; text-transform: uppercase;
  padding: .8rem 1.4rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--steel); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { width: 40px; height: auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.brand-sub  { font-family: var(--font-display); font-weight: 600; font-size: .78rem; color: var(--red); text-transform: uppercase; letter-spacing: .14em; }

.nav { margin-left: auto; display: flex; gap: 1.6rem; }
.nav a {
  font-family: var(--font-display); font-weight: 500; font-size: .98rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--steel);
  position: relative; padding-block: .2rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--red); transition: width .22s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.btn-call { background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 600; font-size: .92rem; }
.btn-call svg { width: 16px; height: 16px; color: var(--red-bright); }
.btn-call:hover { background: var(--charcoal); }

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(179,33,31,.42), transparent 60%),
    radial-gradient(700px 600px at 100% 120%, rgba(74,80,84,.45), transparent 55%),
    linear-gradient(160deg, #1d2022 0%, #131517 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 500px at 30% 40%, #000 30%, transparent 80%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em; font-size: .8rem;
  color: #ffb3b1; margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem); text-transform: uppercase; letter-spacing: -.02em;
  margin-bottom: 1.2rem;
}
.hero h1 .accent { color: var(--red-bright); }
.lede { font-size: 1.12rem; color: #cfd4d7; max-width: 34ch; margin: 0 0 1.8rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

.hero-points {
  list-style: none; margin: 2.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem;
}
.hero-points li { display: flex; align-items: center; gap: .55rem; font-size: .94rem; color: #dfe3e5; font-weight: 500; }
.hero-points svg { width: 20px; height: 20px; color: var(--red-bright); flex: none; }

.hero-art { display: flex; justify-content: center; }
.hero-art img {
  width: min(360px, 80%); height: auto;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.5));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---- Sections ---------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 2.6rem; text-align: center; }
.kicker {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; font-size: .82rem; color: var(--red); margin: 0 0 .6rem;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); text-transform: uppercase; }
.section-sub { color: var(--slate); font-size: 1.05rem; margin: .8rem 0 0; }

/* ---- Cards ------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d2d6d9; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 1.1rem;
  background: linear-gradient(150deg, #fdeceb, #f7dad9); color: var(--red);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; margin-bottom: .5rem; color: var(--ink); }
.card p { margin: 0; color: var(--slate); font-size: .98rem; }
.card-retail .card-icon { background: linear-gradient(150deg, #eef0f1, #e2e5e7); color: var(--steel); }

/* ---- Why us ------------------------------------------------------------ */
.why-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: start; }
.why-copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); text-transform: uppercase; margin-bottom: 1rem; }
.why-copy > p { color: var(--slate); font-size: 1.05rem; margin: 0 0 1.4rem; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.why-list li { position: relative; padding-left: 1.8rem; color: var(--steel); }
.why-list li strong { color: var(--ink); }
.why-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px;
  border-radius: 2px; background: var(--red); transform: rotate(45deg);
}
.why-card {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 2rem 1.8rem;
  box-shadow: var(--shadow-lg);
}
.why-card h3 { font-size: 1.4rem; text-transform: uppercase; margin-bottom: 1rem; }
.why-addr { color: #c9ced1; margin: 0 0 1.3rem; }
.why-line { display: flex; justify-content: space-between; gap: 1rem; padding-block: .6rem; border-top: 1px solid rgba(255,255,255,.12); margin: 0; }
.why-line span { color: var(--mist); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.why-line a { color: #fff; font-weight: 600; }
.why-line a:hover { color: var(--red-bright); }
.why-card .btn { margin-top: 1.5rem; }

/* ---- Contact ----------------------------------------------------------- */
.contact-wrap { max-width: 680px; margin-inline: auto; }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; color: var(--charcoal); margin-bottom: .45rem; }
.field label .opt { color: var(--mist); font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper-2); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--red); background: #fff;
  box-shadow: 0 0 0 3px rgba(179,33,31,.12);
}
.field.has-error input, .field.has-error textarea { border-color: var(--red); background: #fdf3f3; }
.field-error { color: var(--red-deep); font-size: .85rem; margin-top: .35rem; }
.contact-form .btn { margin-top: .4rem; }
.form-fineprint { text-align: center; color: var(--mist); font-size: .85rem; margin: 1rem 0 0; }

/* Honeypot: keep it out of sight and out of the tab order. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Alerts ------------------------------------------------------------ */
.alert { display: flex; gap: 1rem; align-items: flex-start; border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.alert p { margin: .3rem 0 0; }
.alert-success { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.alert-success strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; font-size: 1.15rem; color: var(--ink); }
.alert-success a { color: var(--red); font-weight: 600; }
.alert-mark { display: inline-flex; width: 46px; height: 46px; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(150deg, var(--red), var(--red-deep)); color: #fff; }
.alert-mark svg { width: 24px; height: 24px; }
.alert-error { background: #fdf3f3; border: 1px solid #f0c9c8; color: var(--red-deep); margin-bottom: 1.4rem; flex-direction: column; gap: .2rem; }
.alert-error strong { font-family: var(--font-display); text-transform: uppercase; }
.alert-error p { margin: 0; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #c4cacd; padding-block: 2.6rem 1.6rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-mark { width: 44px; height: auto; }
.footer-name { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.1rem; margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.footer-addr { margin: .15rem 0 0; font-size: .9rem; color: var(--mist); }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; color: #c4cacd; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.3rem; font-size: .85rem; color: var(--mist); }
.footer-bottom p { margin: 0; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 220px; animation: none; }
  .lede { max-width: none; }
  .why-grid { grid-template-columns: 1fr; }
  .card-grid, .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .header-inner { gap: 1rem; }
  .brand { margin-right: auto; }
}
@media (max-width: 560px) {
  .card-grid, .card-grid-3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .btn-call span { display: none; }
  .btn-call { padding: .6rem .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
}