:root {
  --bg: #07080b;
  --bg-soft: #101218;
  --bg-card: #161a22;
  --bg-elev: #1c212c;
  --line: rgba(212, 175, 55, 0.22);
  --line-strong: rgba(240, 193, 75, 0.45);
  --gold: #d4af37;
  --gold-2: #f0c14b;
  --gold-3: #ffe08a;
  --gold-dark: #8a6a16;
  --copper: #e07a3d;
  --copper-2: #ffb080;
  --emerald: #3ddc84;
  --emerald-2: #1faa5a;
  --steel: #5aa6ff;
  --steel-2: #2d6cdf;
  --silver: #d7dde8;
  --muted: #9aa3b5;
  --text: #f4f1e8;
  --black: #050506;
  --whatsapp: #25d366;
  --call: #ffce4a;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --header-h: 86px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}

p {
  margin: 0 0 1em;
  color: var(--silver);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: #111;
  padding: 8px 12px;
  z-index: 10000;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 11, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  position: relative;
}

.brand img {
  height: 64px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 6px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--silver);
  font-weight: 600;
  font-size: 15px;
}

.nav a:hover,
.nav a.active {
  color: #111;
  background: linear-gradient(180deg, var(--gold-3), var(--gold));
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 12px;
  color: var(--gold);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.header-cta {
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(180deg, #ffe08a, #d4af37 52%, #a07d18);
  color: #16120a;
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.28);
}

.btn-green {
  background: linear-gradient(180deg, #6af0a8, #25d366 55%, #128c3e);
  color: #06210f;
}

.btn-ghost {
  background: transparent;
  color: var(--gold-2);
  border: 1px solid var(--line-strong);
}

.btn-blue {
  background: linear-gradient(180deg, #8ec4ff, #3d7ef0);
  color: #061226;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #090b10 url("../images/hero.jpg") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.92) 0%, rgba(5, 6, 8, 0.72) 48%, rgba(5, 6, 8, 0.35) 100%),
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.22), transparent 32%),
    radial-gradient(circle at 20% 80%, rgba(61, 220, 132, 0.12), transparent 28%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 56px 0 72px;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-2);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  margin-bottom: 16px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--gold-3), var(--copper), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.12rem;
  max-width: 58ch;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.stat {
  background: rgba(22, 26, 34, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.stat b {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 1.6rem;
  color: var(--gold-2);
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

/* Color strips / sections */
.section {
  padding: 84px 0;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.kicker {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 8px;
}

.bg-soft {
  background: var(--bg-soft);
}

.bg-gold {
  background:
    radial-gradient(circle at 10% 20%, rgba(240, 193, 75, 0.16), transparent 28%),
    linear-gradient(180deg, #141108, #0d0c08);
}

.bg-green {
  background:
    radial-gradient(circle at 90% 10%, rgba(61, 220, 132, 0.16), transparent 26%),
    linear-gradient(180deg, #08140e, #07080b);
}

.bg-blue {
  background:
    radial-gradient(circle at 8% 80%, rgba(90, 166, 255, 0.14), transparent 28%),
    var(--bg);
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  height: 100%;
}

.card h3 {
  font-size: 1.25rem;
  margin: 12px 0 8px;
}

.icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.icon.gold { background: rgba(212, 175, 55, 0.16); color: var(--gold-2); }
.icon.copper { background: rgba(224, 122, 61, 0.16); color: var(--copper); }
.icon.green { background: rgba(61, 220, 132, 0.14); color: var(--emerald); }
.icon.blue { background: rgba(90, 166, 255, 0.14); color: var(--steel); }
.icon.silver { background: rgba(215, 221, 232, 0.12); color: var(--silver); }

.card.accent-gold { border-top: 3px solid var(--gold); }
.card.accent-copper { border-top: 3px solid var(--copper); }
.card.accent-green { border-top: 3px solid var(--emerald); }
.card.accent-blue { border-top: 3px solid var(--steel); }
.card.accent-silver { border-top: 3px solid var(--silver); }

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

/* Media split */
.media-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.media-frame {
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.checklist li {
  padding: 9px 0 9px 32px;
  position: relative;
  color: var(--silver);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 800;
}

/* Metals */
.metal {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 230px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  color: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.metal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 20%, rgba(0, 0, 0, 0.82) 100%);
  z-index: 1;
}

.metal-copy {
  position: relative;
  z-index: 2;
  padding: 18px;
}

.metal h3,
.metal p {
  color: #fff;
}

.metal p {
  margin: 0;
  font-size: 14px;
}

table.prices {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
}

table.prices th,
table.prices td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

table.prices th {
  background: linear-gradient(90deg, #2a2412, #1a1e28);
  color: var(--gold-2);
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.06em;
}

table.prices tr:hover td {
  background: rgba(212, 175, 55, 0.06);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(61, 220, 132, 0.14);
  color: var(--emerald);
}

.badge.warn {
  background: rgba(240, 193, 75, 0.14);
  color: var(--gold-2);
}

/* Districts / chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--silver);
}

/* FAQ */
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  padding-bottom: 12px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.info-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.info-card .icon {
  flex-shrink: 0;
}

form.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--gold-2);
}

input,
select,
textarea {
  width: 100%;
  background: #0d1016;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  border-color: transparent;
}

.map-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 340px;
}

.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

/* CTA band */
.cta-band {
  background: linear-gradient(100deg, #d4af37, #f0c14b 35%, #e07a3d 70%, #3ddc84);
  color: #16120a;
  border-radius: 24px;
  padding: 36px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.cta-band h2,
.cta-band p {
  color: #16120a;
}

.cta-band .btn-gold {
  background: #111;
  color: var(--gold-2);
}

/* Footer */
.site-footer {
  background: #08090c;
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}

.site-footer img {
  height: 72px;
  margin-bottom: 12px;
}

.site-footer a:hover {
  color: var(--gold-2);
}

.foot-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Float buttons */
.float-btns {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.float-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.float-wa {
  background: var(--whatsapp);
  animation: pulse 2s infinite;
}

.float-call {
  background: linear-gradient(180deg, #ffe08a, #d4af37);
  color: #16120a;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Page hero */
.page-hero {
  background:
    linear-gradient(90deg, rgba(7, 8, 11, 0.88), rgba(7, 8, 11, 0.55)),
    url("../images/yard.jpg") center/cover;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.page-hero.about { background: linear-gradient(90deg, rgba(7,8,11,.88), rgba(7,8,11,.5)), url("../images/about.jpg") center/cover; }
.page-hero.services { background: linear-gradient(90deg, rgba(7,8,11,.88), rgba(7,8,11,.5)), url("../images/recycle.jpg") center/cover; }
.page-hero.metals { background: linear-gradient(90deg, rgba(7,8,11,.88), rgba(7,8,11,.5)), url("../images/copper.jpg") center/cover; }
.page-hero.contact { background: linear-gradient(90deg, rgba(7,8,11,.88), rgba(7,8,11,.5)), url("../images/truck.jpg") center/cover; }

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.crumbs {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.crumbs a {
  color: var(--gold-2);
}

.note {
  background: rgba(240, 193, 75, 0.1);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--silver);
}

/* Responsive */
@media (max-width: 980px) {
  .header-cta {
    display: none;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    justify-self: end;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 60;
    background: #0d1016;
    display: none;
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }

  .nav.open {
    display: flex;
  }

  .grid-4,
  .grid-3,
  .steps,
  .footer-grid,
  .contact-grid,
  .media-split,
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .brand img {
    height: 48px;
    max-width: 210px;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .steps,
  .footer-grid,
  .contact-grid,
  .media-split,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background-position: 70% center;
  }

  .section {
    padding: 56px 0;
  }

  .float-btn {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-wa { animation: none; }
  .btn:hover { transform: none; }
}
