/* ============================================================
   Stephenson Metal Recycling — styles
   Easy rebranding: change the colors in :root below.
   ============================================================ */

:root {
  --charcoal:   #1c1f24;   /* dark backgrounds, headings */
  --steel:      #2b3038;   /* secondary dark */
  --gray:       #5a626d;   /* body text on light */
  --light:      #f4f5f7;   /* page background */
  --white:      #ffffff;
  --accent:     #cf1b2b;   /* Stephenson brand red — buttons, highlights */
  --accent-dk:  #a8141f;   /* darker red for hover */
  --line:       #e3e5e9;   /* borders */
  --radius:     10px;
  --maxw:       1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--steel);
  background: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-text {
  font-family: 'Oswald', Impact, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: .3px;
}

a { color: var(--accent-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

img, iframe { max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.accent { color: var(--accent); }

/* --------------------------- buttons --------------------------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .08s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; text-align: center; }

/* --------------------------- header --------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--charcoal);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 76px; }

.logo { display: flex; align-items: center; gap: 12px; color: var(--white); }
.logo:hover { text-decoration: none; }
.logo-mark { display: inline-flex; align-items: center; }
.dino { width: 44px; height: 38px; display: block; }
.logo-text { color: var(--white); font-size: 1.15rem; line-height: 1; }
.logo-name { font-family: 'Kaushan Script', cursive; color: var(--accent); font-size: 1.75rem; line-height: 1; }
.logo-text small { display: block; font-size: .72rem; font-weight: 500; color: #b9bec7; letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { color: #d7dae0; font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--white); text-decoration: none; }
.nav-cta {
  background: rgba(207,27,43,.18); color: #ff6b75 !important;
  padding: 8px 16px; border-radius: 8px; border: 1px solid rgba(207,27,43,.5);
}
.nav-cta:hover { background: rgba(207,27,43,.3); }

.phone-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.phone-btn:hover { background: var(--accent-dk); text-decoration: none; }
.phone-btn svg { width: 18px; height: 18px; fill: #fff; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* --------------------------- hero --------------------------- */
.hero {
  background:
    linear-gradient(rgba(20,23,28,.86), rgba(20,23,28,.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 39h40M39 0v40' stroke='%23ffffff' stroke-opacity='.05' stroke-width='1'/%3E%3C/svg%3E"),
    var(--charcoal);
  color: var(--white);
  padding: 80px 0;
}
.hero-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: .85rem; margin-bottom: 14px; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 18px; }
.hero .lead { font-size: 1.18rem; color: #d7dae0; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { display: grid; gap: 14px; }
.stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 18px 22px;
}
.stat strong { display: block; font-family: 'Oswald', sans-serif; font-size: 1.7rem; color: var(--accent); }
.stat span { color: #c3c8d0; font-size: .95rem; }

/* --------------------------- trust strip --------------------------- */
.trust-strip { background: var(--accent); }
.trust-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px;
  padding: 14px 20px; color: #fff; font-weight: 600; font-size: .95rem;
}

/* --------------------------- sections --------------------------- */
.section { padding: 76px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; }
.section-head p { color: var(--gray); font-size: 1.08rem; }

.note { text-align: center; color: var(--gray); margin-top: 30px; font-size: .98rem; }

/* --------------------------- card grids --------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.material-card, .service-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.section-alt .material-card, .section-alt .service-card { background: var(--light); }
.material-card:hover, .service-card:hover {
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
}
.material-card h3, .service-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.material-card p, .service-card p { color: var(--gray); font-size: .97rem; }
.material-card { border-left: 4px solid var(--accent); }

/* --------------------------- why us --------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-item h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 6px; }
.why-item h3::before { content: "✓"; color: var(--accent); font-weight: 700; }
.why-item p { color: var(--gray); }

/* --------------------------- quote form --------------------------- */
.section-dark { background: var(--steel); color: var(--white); }
.quote-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.quote-text h2 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; }
.quote-text p { color: #c8cdd5; font-size: 1.08rem; }
.quote-text a { color: var(--accent); }

.quote-form { background: var(--white); padding: 28px; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.quote-form label { display: block; color: var(--charcoal); font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.quote-form input, .quote-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--steel);
  background: var(--light);
}
.quote-form input:focus, .quote-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-status { text-align: center; font-weight: 600; margin: 8px 0 0; }
.form-status.ok { color: #1c8a4a; }
.form-status.err { color: #c23b3b; }

/* --------------------------- location --------------------------- */
.location-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; }
.location-info h3 { font-size: 1.15rem; margin: 22px 0 6px; }
.location-info h3:first-child { margin-top: 0; }
.hours { list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; border-bottom: 1px solid var(--line); max-width: 320px; }
.hours span:last-child { color: var(--gray); }
.location-map { min-height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.location-map iframe { display: block; height: 100%; min-height: 360px; }

/* --------------------------- footer --------------------------- */
.site-footer { background: var(--charcoal); color: #c3c8d0; padding-top: 50px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
.footer-inner h4 { color: var(--white); margin-bottom: 12px; font-size: 1rem; }
.footer-inner a { display: block; color: #c3c8d0; padding: 3px 0; }
.footer-inner a:hover { color: var(--accent); text-decoration: none; }
.footer-name { font-family: 'Kaushan Script', cursive; color: var(--accent); font-size: 1.9rem; margin: 8px 0 2px; }
.footer-tag { font-size: .95rem; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; padding-bottom: 24px; font-size: .88rem; color: #8a909b; }

/* --------------------------- responsive --------------------------- */
@media (max-width: 900px) {
  .hero-inner, .quote-inner, .location-grid { grid-template-columns: 1fr; }
  .card-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .phone-btn span { display: none; }
  .phone-btn { padding: 10px; }

  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--charcoal); padding: 10px 20px 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    transform: translateY(-120%); transition: transform .25s ease; margin-left: 0;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-cta { text-align: center; margin-top: 10px; }
  .menu-toggle { display: block; margin-left: auto; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .card-grid, .why-grid, .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* ============================================================
   Payson-inspired additions: top contact bar, service tiles,
   Google reviews, call-to-action band, all-caps headings.
   ============================================================ */

/* All-caps section headings for a bold industrial look */
.section-head h2 { text-transform: uppercase; letter-spacing: .5px; }

/* --- Top contact bar --- */
.topbar { background: #14171c; color: #c3c8d0; font-size: .85rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; padding: 9px 20px; }
.topbar-sep { color: #4a515c; }
.topbar-phone { color: #fff; font-weight: 600; }
.topbar-phone:hover { color: var(--accent); text-decoration: none; }

/* --- Service tiles --- */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .12s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.1); }
.tile-img { position: relative; height: 168px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2b3038, #14171c); background-size: cover; background-position: center; }
.tile-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.35)); }
.tile-icon { position: relative; z-index: 1; width: 54px; height: 54px; color: rgba(255,255,255,.9); }
.tile-body { padding: 20px 22px; border-top: 3px solid var(--accent); }
.tile-body h3 { font-size: 1.22rem; margin-bottom: 6px; }
.tile-body p { color: var(--gray); font-size: .96rem; }

/* --- Why-us CTA --- */
.why-cta { text-align: center; margin-top: 38px; }

/* --- Reviews --- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); justify-items: center; gap: 24px; }
.review { display: flex; flex-direction: column; gap: 12px; background: var(--light); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 0; max-width: 560px; width: 100%; }
.review-stars { color: #f5a623; letter-spacing: 3px; font-size: 1.05rem; }
.review p { color: var(--steel); font-style: italic; }
.review-author { margin-top: auto; font-weight: 600; font-style: normal; color: var(--charcoal); }
.review-author small { display: block; font-weight: 400; color: var(--gray); }
.reviews-cta { text-align: center; margin-top: 36px; }
.btn-outline-dark { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline-dark:hover { background: var(--charcoal); color: #fff; }

/* --- Call-to-action band --- */
.cta-band { background: var(--accent); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 44px 20px; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.3rem); text-transform: uppercase; letter-spacing: .5px; margin: 0; }
.btn-light { background: #fff; color: var(--accent); font-size: 1.2rem; }
.btn-light:hover { background: #f0f0f0; }

/* --- Responsive for new components --- */
@media (max-width: 900px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band-inner { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .tile-grid { grid-template-columns: 1fr; }
  .topbar { display: none; }
}

/* --- Text-us (SMS bot) call-to-action --- */
.text-cta { text-align: center; max-width: 680px; margin: 0 auto; }
.text-cta h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.text-cta-lead { color: #c8cdd5; font-size: 1.15rem; margin-bottom: 30px; }
.btn-text-cta { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; padding: 16px 34px; }
.btn-text-cta svg { width: 22px; height: 22px; fill: currentColor; }
.text-cta-call { color: #c8cdd5; margin-top: 24px; }
.text-cta-call a { color: #ff8089; font-weight: 600; }
.text-cta-consent { color: #8a909b; font-size: .82rem; line-height: 1.5; max-width: 520px; margin: 26px auto 0; }
.text-cta-consent a { color: #b9bec7; text-decoration: underline; }

/* --- Copyright bar link --- */
.copyright a { color: #c3c8d0; }
.copyright a:hover { color: var(--accent); }

/* --- Legal / policy pages --- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.legal .updated { color: var(--gray); margin-bottom: 26px; }
.legal h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.legal p { color: var(--steel); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin: 8px 0 12px; }
.legal li { color: var(--steel); margin: 6px 0; }
.legal a { color: var(--accent-dk); }
.legal .highlight { background: #fdecec; border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 8px; margin: 18px 0; }
.legal .highlight p { margin: 0; }
