/* ============================================================
   M&M Tool and Mold — transition site
   Tokens, buttons, header, hero, marquee, cards, CTA band and footer
   adapted from dev.rtekmetalworks.com/assets/css/styles.css
   ============================================================ */

/* --- Tokens (from dev site) ------------------------------- */
:root {
  --rtek-red:     #ED1C24;
  --rtek-red-dk:  #B5141A;
  --rtek-ink:     #0A0A0A;
  --rtek-panel:   #15120E;
  --rtek-steel:   #2A2F36;
  --rtek-paper:   #FFFFFF;
  --rtek-mist:    #F1F1F0;
  --rtek-text:    #FFFFFF;
  --rtek-text-dk: #16181C;

  --font-display: 'Saira Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Barlow', 'Arial', sans-serif;

  --ease-sharp: cubic-bezier(.4,0,.2,1);
  --shadow-card: 0 4px 24px rgba(0,0,0,.45);
  --shadow-header: 0 2px 16px rgba(0,0,0,.6);

  --header-h: 80px;
  --header-h-condensed: 64px;
}

/* --- Reset & base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--rtek-text-dk);
  background: var(--rtek-paper);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid var(--rtek-red); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--rtek-red); color: #fff; padding: .6rem 1rem;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
}
.skip-link:focus { left: 0; }

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
p  { max-width: 72ch; }

/* --- Buttons (from dev site) ------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: 2px; position: relative; overflow: hidden;
  transition: background .22s var(--ease-sharp), color .22s var(--ease-sharp), transform .15s;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.12);
  transform: translateX(-105%);
  transition: transform .3s var(--ease-sharp);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(0); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--rtek-red); color: var(--rtek-text); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--rtek-red-dk); }
.btn-outline { background: transparent; color: var(--rtek-text); border: 2px solid var(--rtek-text); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--rtek-text); color: var(--rtek-ink); }
.btn-outline-red { background: transparent; color: var(--rtek-red); border: 2px solid var(--rtek-red); }
.btn-outline-red:hover, .btn-outline-red:focus-visible { background: var(--rtek-red); color: var(--rtek-text); }

/* --- Header ----------------------------------------------- */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  background-color: var(--rtek-ink);
  background-image: repeating-linear-gradient(-55deg, transparent, transparent 18px, rgba(237,28,36,.08) 18px, rgba(237,28,36,.08) 20px);
  border-bottom: 3px solid var(--rtek-red);
  transition: height .3s var(--ease-sharp), box-shadow .3s;
}
#site-header.condensed { height: var(--header-h-condensed); box-shadow: var(--shadow-header); }

.header-inner {
  width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
}

/* Co-branded logo lockup */
.brand-lockup { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.brand-lockup a { display: block; line-height: 0; }
.brand-lockup .logo-mm { height: 52px; width: auto; transition: height .3s; }
/* The R-Tek JPG is white-on-solid-black: "lighten" drops the black so it sits on the textured header. */
.brand-lockup .logo-rtek { height: 52px; width: auto; mix-blend-mode: lighten; transition: height .3s; }
.brand-arrow { color: var(--rtek-red); font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1; }
#site-header.condensed .logo-mm,
#site-header.condensed .logo-rtek { height: 42px; }

.main-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; }
.main-nav > ul { display: flex; align-items: center; gap: .1rem; }
.nav-link {
  display: block; padding: .55rem .8rem; position: relative; white-space: nowrap;
  font-family: var(--font-display); font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.82); border-radius: 2px; transition: color .2s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: .8rem; right: .8rem; height: 2px;
  background: var(--rtek-red); transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease-sharp);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--rtek-text); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }

.header-phone {
  font-family: var(--font-display); font-size: .95rem; font-weight: 700; letter-spacing: .06em;
  color: rgba(255,255,255,.9); white-space: nowrap; padding: .4rem .6rem; transition: color .2s;
}
.header-phone:hover { color: var(--rtek-red); }
.header-cta { margin-left: .5rem; }

.menu-toggle {
  display: none; width: 44px; height: 44px; background: var(--rtek-red);
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  padding: 10px 9px; border-radius: 2px; flex-shrink: 0; margin-left: auto; transition: background .2s;
}
.menu-toggle:hover { background: var(--rtek-red-dk); }
.menu-toggle span { display: block; width: 100%; height: 3px; background: var(--rtek-text); border-radius: 1px; transition: transform .25s var(--ease-sharp), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 90vw);
  background: var(--rtek-ink); z-index: 1100;
  transform: translateX(105%); visibility: hidden;
  transition: transform .3s var(--ease-sharp), visibility .3s;
  overflow-y: auto; display: flex; flex-direction: column;
  padding: 1.5rem; border-left: 3px solid var(--rtek-red);
}
.mobile-drawer.open { transform: translateX(0); visibility: visible; }
.drawer-header { display: flex; justify-content: flex-end; margin-bottom: 1.5rem; }
.drawer-close {
  width: 36px; height: 36px; background: var(--rtek-steel); color: var(--rtek-text);
  font-size: 1.2rem; border-radius: 2px; display: flex; align-items: center; justify-content: center;
}
.drawer-close:hover { background: var(--rtek-red); }
.drawer-link {
  display: block; padding: .7rem .5rem; font-size: 1rem;
  color: rgba(255,255,255,.85); border-radius: 2px; border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .15s, background .15s, padding-left .15s;
}
.drawer-link:hover, .drawer-link:focus-visible { color: var(--rtek-text); background: rgba(237,28,36,.12); padding-left: .9rem; }
.drawer-cta { margin-top: auto; padding-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.drawer-phone {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--rtek-text);
  text-align: center; padding: .7rem; background: var(--rtek-steel); border-radius: 2px;
}
.drawer-phone:hover { background: var(--rtek-red); }
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1099;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

main { padding-top: var(--header-h); }

/* --- Hero ------------------------------------------------- */
.hero { position: relative; display: flex; align-items: center; background: var(--rtek-ink); overflow: hidden; min-height: 78vh; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    repeating-linear-gradient(-55deg, transparent, transparent 40px, rgba(237,28,36,.06) 40px, rgba(237,28,36,.06) 42px),
    linear-gradient(160deg, #0A0A0A 0%, #1a1008 50%, #0d0d0d 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1400px; margin: 0 auto; padding: 4rem 1.5rem; }
.hero-eyebrow {
  font-family: var(--font-display); font-size: clamp(.75rem, 2vw, .9rem); font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; color: var(--rtek-red); margin-bottom: 1rem;
  opacity: 0; transform: translateY(20px); animation: fadeUp .8s .2s var(--ease-sharp) forwards;
}
.hero-headline {
  color: var(--rtek-text); margin-bottom: 1.25rem; max-width: 20ch;
  opacity: 0; transform: translateY(24px); animation: fadeUp .8s .4s var(--ease-sharp) forwards;
}
.hero-headline .accent { color: var(--rtek-red); }
.hero-pitch {
  font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 56ch; margin-bottom: 2.25rem;
  opacity: 0; animation: fadeUp .8s .7s var(--ease-sharp) forwards;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; opacity: 0; animation: fadeUp .8s .9s var(--ease-sharp) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* --- Marquee ---------------------------------------------- */
.marquee-strip { background: var(--rtek-steel); overflow: hidden; padding: .5rem 0; border-top: 2px solid var(--rtek-red); border-bottom: 2px solid var(--rtek-red); }
.marquee-track { display: flex; width: max-content; animation: marqueeScroll 24s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-size: .9rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.7); white-space: nowrap; padding: 0 1.5rem;
}
.marquee-track span.dot { color: var(--rtek-red); padding: 0 .25rem; letter-spacing: 0; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Sections --------------------------------------------- */
.section { padding: 5rem 1.5rem; }
.section-mist { background: var(--rtek-mist); }
.section-inner { max-width: 1400px; margin: 0 auto; }
.section-title-block { text-align: center; margin-bottom: 3rem; }
.section-title-block h2 { color: var(--rtek-text-dk); }
.section-title-block .rule { width: 64px; height: 4px; background: var(--rtek-red); margin: .75rem auto 0; }

/* Same / new cards */
.change-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.change-card {
  background: var(--rtek-ink); color: var(--rtek-text); border-radius: 3px;
  padding: 2rem 1.75rem; border-top: 4px solid var(--rtek-red);
}
.change-card.is-new { background: var(--rtek-panel); }
.change-card h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.change-card li {
  position: relative; padding: .55rem 0 .55rem 1.6rem;
  color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.07);
}
.change-card li:last-child { border-bottom: 0; }
.change-card li::before { content: ''; position: absolute; left: 0; top: 1.1rem; width: 12px; height: 4px; background: var(--rtek-red); }

/* History */
.history { text-align: center; }
.history p { margin: 0 auto; font-size: 1.1rem; color: #3a3d44; }

/* Capability cards (informational, no links) */
.cap-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.cap-card {
  background: var(--rtek-ink); color: var(--rtek-text); border-radius: 3px;
  padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .75rem;
  border-bottom: 3px solid transparent;
  transition: box-shadow .25s, background .2s, transform .3s var(--ease-sharp), border-color .2s;
}
.cap-card:hover { background: var(--rtek-panel); box-shadow: var(--shadow-card), 0 0 0 2px var(--rtek-red); border-bottom-color: var(--rtek-red); transform: translateY(-4px); }
.cap-card-icon { width: 36px; height: 4px; background: var(--rtek-red); transition: width .3s var(--ease-sharp); }
.cap-card:hover .cap-card-icon { width: 56px; }
.cap-card h3 { font-size: 1.2rem; font-weight: 800; }
.cap-card.is-mold { box-shadow: 0 0 0 2px var(--rtek-red); }
.cap-more { text-align: center; margin-top: 2.5rem; }

/* Contact */
.contact-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact-card { background: var(--rtek-ink); color: var(--rtek-text); border-radius: 3px; padding: 2rem 1.75rem; border-top: 4px solid var(--rtek-red); }
.contact-card h3 { font-size: 1.5rem; margin-bottom: .25rem; }
.contact-card .sub { color: rgba(255,255,255,.6); margin-bottom: 1.25rem; font-size: .95rem; }
.contact-list { display: grid; gap: 1rem; }
.contact-label { font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rtek-red); display: block; }
.contact-list a, .contact-list address { font-style: normal; font-size: 1.1rem; color: var(--rtek-text); }
.contact-list a:hover { color: var(--rtek-red); }
.contact-note { background: var(--rtek-panel); }
.contact-note p { color: rgba(255,255,255,.8); margin-bottom: 1rem; }
.contact-note p:last-child { margin-bottom: 0; }

/* --- CTA band (from dev site) ----------------------------- */
.cta-band { background: var(--rtek-red); color: var(--rtek-text); padding: 4rem 1.5rem; text-align: center; }
.cta-band h2 { margin-bottom: .5rem; }
.cta-band p { margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-band-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.cta-band .btn-outline { border-color: rgba(255,255,255,.6); }

/* --- Footer (from dev site) ------------------------------- */
footer { background: var(--rtek-ink); color: rgba(255,255,255,.7); padding: 4rem 1.5rem 2rem; border-top: 3px solid var(--rtek-red); }
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .brand-lockup { margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; max-width: 40ch; line-height: 1.7; }
.footer-col-title { font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rtek-red); margin-bottom: .75rem; }
.footer-col a, .footer-col address { display: block; font-style: normal; font-size: .9rem; padding: .25rem 0; color: rgba(255,255,255,.7); transition: color .2s; }
.footer-col a:hover { color: var(--rtek-text); }
.footer-phone { font-family: var(--font-display); font-size: 1.1rem !important; font-weight: 700; color: var(--rtek-text) !important; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem;
  font-size: .85rem; color: rgba(255,255,255,.55);
}

/* --- 404 -------------------------------------------------- */
.notfound .hero { min-height: 70vh; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 960px) {
  .main-nav > ul, .header-phone, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .main-nav { display: none; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .change-grid, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 1.25rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .brand-lockup .logo-mm, .brand-lockup .logo-rtek { height: 38px; }
  #site-header.condensed .logo-mm, #site-header.condensed .logo-rtek { height: 34px; }
  .header-inner { gap: .75rem; padding: 0 1rem; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* --- Reduced motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-eyebrow, .hero-headline, .hero-pitch, .hero-actions { opacity: 1 !important; transform: none !important; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee-track .dup { display: none; }
}
