/* =========================================================
   UK Scrap Solutions — stylesheet
   Industrial metal tones + copper/amber accent
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --color-ink:       #14181c;  /* near-black charcoal — headings, dark sections */
  --color-steel:     #2b3138;  /* dark steel grey — secondary dark surfaces */
  --color-slate:     #545c66;  /* muted grey — body text on light bg */
  --color-mist:      #f4f6f8;  /* light off-white — section backgrounds */
  --color-white:     #ffffff;
  --color-accent:    #e8722c;  /* copper/safety orange — CTAs, highlights */
  --color-accent-2:  #b9591c;  /* darker accent — hover states */
  --color-whatsapp:  #25d366;  /* WhatsApp brand green */
  --color-line:      #e2e6ea;  /* hairline borders */

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 24, 28, 0.06), 0 2px 8px rgba(20, 24, 28, 0.05);
  --shadow-md: 0 8px 24px rgba(20, 24, 28, 0.10);
  --shadow-lg: 0 18px 48px rgba(20, 24, 28, 0.18);

  --container: 1400px;
  --pad-x: clamp(1.1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.65;
  color: var(--color-slate);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--color-ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--color-ink);
  color: var(--color-white);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  z-index: 1200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); }

.section-muted { background: var(--color-mist); }

.section-dark {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.78);
}
.section-dark h2 { color: var(--color-white); }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.65); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 3.2rem);
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { font-size: 1.05rem; margin: 0; }
.section-head--left { text-align: left; margin-inline: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 6px 16px rgba(232, 114, 44, 0.32);
}
.btn-primary:hover {
  background: var(--color-accent-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(185, 89, 28, 0.38);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: var(--color-white);
  color: var(--color-ink);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding-block: 0.4rem;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

/* transparent over hero, solid once scrolled */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-line), var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-white);
  transition: color 0.3s ease;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--color-accent);
  color: var(--color-white);
  flex: none;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-accent { color: var(--color-accent); margin-left: 0.28em; }
.scrolled .brand { color: var(--color-ink); }

.main-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-list a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-list a:hover { color: var(--color-white); background: rgba(255, 255, 255, 0.12); }
.scrolled .nav-list a { color: var(--color-slate); }
.scrolled .nav-list a:hover { color: var(--color-ink); background: var(--color-mist); }

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--color-white);
  margin-inline: auto;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.3s ease;
}
.scrolled .nav-toggle-bar { background: var(--color-ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  background: var(--color-white);
  border-top: 1px solid var(--color-line);
  box-shadow: var(--shadow-md);
  padding: 1rem var(--pad-x) 1.5rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu a {
  display: block;
  padding: 0.9rem 0.4rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-line);
}
.mobile-menu .btn { margin-top: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
  padding-block: 7rem 3rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 24, 28, 0.92) 0%, rgba(20, 24, 28, 0.8) 40%, rgba(20, 24, 28, 0.45) 75%, rgba(20, 24, 28, 0.35) 100%),
    linear-gradient(180deg, rgba(20, 24, 28, 0.55) 0%, rgba(20, 24, 28, 0.25) 45%, rgba(20, 24, 28, 0.8) 100%),
    radial-gradient(120% 90% at 10% 30%, rgba(232, 114, 44, 0.2), transparent 55%);
}
.hero-inner {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}
.hero-content {
  max-width: 720px;
  text-align: left;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(232, 114, 44, 0.5);
  border-radius: var(--radius-pill);
  background: rgba(232, 114, 44, 0.1);
  margin-bottom: 1.3rem;
}
.hero-title {
  color: var(--color-white);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.9);
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.trust-strip li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex: none;
}

/* ---------- Services ---------- */
.services-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.services-intro-text p { font-size: 1.1rem; margin-bottom: 1.6rem; }
.services-intro-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.card-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.services-cards { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(232, 114, 44, 0.12);
  color: var(--color-accent);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.2rem; }
.card p { font-size: 0.98rem; }

/* ---------- Why choose us (dark) ---------- */
.features { grid-template-columns: repeat(3, 1fr); }
.feature-card {
  background: var(--color-steel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 1.2rem;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.feature-card h3 { color: var(--color-white); font-size: 1.25rem; }
.feature-card p { color: rgba(255, 255, 255, 0.7); margin: 0; }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.about-media img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about-body p { margin-bottom: 1.1rem; }
.about-body .btn { margin-top: 0.8rem; }

/* ---------- Areas we cover ---------- */
.area-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 900px;
  margin-inline: auto;
}
.area-chips li {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--color-steel);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.area-chips li:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}
.contact-thanks { font-weight: 600; color: var(--color-ink); }

.contact-list { margin-top: 1.8rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-list-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: var(--radius-sm);
  background: rgba(232, 114, 44, 0.12);
  color: var(--color-accent);
}
.contact-list-icon svg { width: 22px; height: 22px; }
.contact-list strong {
  display: block;
  font-family: var(--font-head);
  color: var(--color-ink);
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}
.contact-list a { color: var(--color-accent); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

.map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-line);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- FAQ ---------- */
.faq-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.faq-left h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.faq-left p { color: var(--color-slate); }

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--color-accent);
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 1.35rem 1.25rem; }
.faq-answer p { color: var(--color-slate); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: rgba(255, 255, 255, 0.7); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.brand--footer { color: var(--color-white); margin-bottom: 1rem; }
.footer-brand p { max-width: 320px; font-size: 0.98rem; }
.footer-nav h3,
.footer-contact h3 {
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.footer-nav ul,
.footer-contact ul { display: grid; gap: 0.65rem; }
.footer-nav a:hover,
.footer-contact a:hover { color: var(--color-accent); }
.footer-contact a { color: rgba(255, 255, 255, 0.85); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 1.4rem;
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--color-accent); font-weight: 600; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Floating action buttons ---------- */
.fab-stack {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.fab {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fab svg { width: 28px; height: 28px; }
.fab:hover { transform: scale(1.1); }
.fab-whatsapp { background: var(--color-whatsapp); }
.fab-call { background: var(--color-accent); }

/* WhatsApp pulse */
.fab-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-whatsapp);
  z-index: -1;
  animation: fab-pulse 2.4s ease-out infinite;
}
.fab { position: relative; }

@keyframes fab-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .main-nav,
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .services-intro,
  .about-inner,
  .contact-inner,
  .faq-inner { grid-template-columns: 1fr; }

  .about-media { order: -1; }
  .features { grid-template-columns: 1fr; }
  .section-head--left { text-align: center; }
  .about-body .section-head--left { text-align: left; }
}

@media (max-width: 560px) {
  .services-cards { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .fab { width: 52px; height: 52px; }
  .fab svg { width: 25px; height: 25px; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .fab-whatsapp::before { display: none; }
}
