/* ============================================
   DC Metal Recycling — Stylesheet
   Palette: Plum (#4a1942) + Amber (#d4a017)
   Fonts: Playfair Display + Inter
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --plum-950: #2a0e28;
  --plum-900: #3d1438;
  --plum-800: #4a1942;
  --plum-700: #5c2052;
  --plum-600: #6e2864;
  --plum-500: #803276;
  --plum-100: #f3e5f5;
  --plum-50:  #faf0fb;

  --amber-600: #b8860b;
  --amber-500: #d4a017;
  --amber-400: #e6b832;
  --amber-100: #fdf3d7;
  --amber-50:  #fefce8;

  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50:  #fafaf9;
  --stone-25:  #fcfcfa;

  --white: #ffffff;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(74, 25, 66, 0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(74, 25, 66, 0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(74, 25, 66, 0.12), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 60px rgba(74, 25, 66, 0.14), 0 8px 20px rgba(0,0,0,0.10);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--stone-800);
  background-color: var(--stone-25);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--plum-800);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-size: 0.875rem;
  font-weight: 500;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Typography ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--amber-500);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--stone-900);
  margin-bottom: 20px;
}

.accent-italic {
  font-style: italic;
  color: var(--plum-800);
  font-weight: 400;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--stone-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--amber-400);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--plum-800);
  color: var(--white);
  border-color: var(--plum-800);
}
.btn--primary:hover {
  background: var(--plum-700);
  border-color: var(--plum-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--plum-800);
  border-color: var(--plum-800);
}
.btn--outline:hover {
  background: var(--plum-800);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--plum-800);
  border-color: var(--stone-300);
}
.btn--ghost:hover {
  border-color: var(--plum-800);
  background: var(--plum-50);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(252, 252, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone-200);
  transition: box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark { flex-shrink: 0; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stone-900);
}
.logo-accent {
  color: var(--plum-800);
  font-weight: 400;
  font-style: italic;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav ul {
  display: flex;
  gap: 8px;
}
.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--stone-700);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav a:hover {
  color: var(--plum-800);
  background: var(--plum-50);
}
.nav > .btn--primary {
  margin-left: 8px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--stone-800);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--stone-25) 0%, var(--plum-50) 50%, var(--amber-50) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(74, 25, 66, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 60px 0;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum-700);
  background: rgba(74, 25, 66, 0.08);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--stone-900);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--stone-600);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--plum-800);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--stone-500);
  letter-spacing: 0.04em;
}

.hero-image {
  position: relative;
  z-index: 1;
}
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image-accent {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: var(--amber-500);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.3;
}

/* ---------- Section ---------- */
.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 64px;
}

/* ---------- About ---------- */
.about {
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-block {
  position: relative;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image-secondary {
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 55%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}
.about-image-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content .section-heading { margin-top: 4px; }

.about-content p {
  color: var(--stone-600);
  margin-bottom: 20px;
  font-size: 1.0625rem;
}

.about-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--stone-700);
}
.check-icon {
  flex-shrink: 0;
  color: var(--plum-800);
  margin-top: 2px;
}

/* ---------- Services ---------- */
.services {
  background: var(--stone-25);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--stone-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--plum-800), var(--amber-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--plum-50);
  border-radius: var(--radius-md);
  color: var(--plum-800);
  margin-bottom: 20px;
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: var(--plum-800);
  color: var(--white);
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stone-900);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--stone-600);
  line-height: 1.7;
}

/* ---------- Process ---------- */
.process {
  background: var(--plum-800);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.process::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(212, 160, 23, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.process .section-label { color: var(--amber-400); }
.process .section-label::before { background: var(--amber-400); }
.process .section-heading { color: var(--white); }
.process .section-desc { color: rgba(255,255,255,0.7); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.process-step {
  position: relative;
  padding-top: 0;
}

.step-number {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(212, 160, 23, 0.25);
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.step-connector {
  display: none;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--amber-100) 0%, var(--plum-50) 100%);
  padding: 80px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-content { flex: 1; min-width: 280px; }
.cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--stone-900);
  line-height: 1.2;
  margin-bottom: 16px;
}
.cta-desc {
  font-size: 1.0625rem;
  color: var(--stone-600);
  max-width: 480px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-desc {
  font-size: 1.0625rem;
  color: var(--stone-600);
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-item dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-400);
  margin-bottom: 6px;
}
.contact-item dd {
  font-size: 1.0625rem;
  color: var(--stone-800);
  line-height: 1.7;
}
.contact-item a {
  color: var(--plum-800);
  font-weight: 500;
  transition: color var(--transition);
}
.contact-item a:hover {
  color: var(--amber-600);
}

/* Form */
.contact-form-wrap {
  background: var(--stone-25);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--stone-200);
}
.form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stone-900);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stone-700);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--stone-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--stone-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--plum-800);
  box-shadow: 0 0 0 3px rgba(74, 25, 66, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--stone-400);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--plum-50);
  border: 1px solid rgba(74, 25, 66, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--plum-800);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--stone-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text { color: var(--white); }
.footer-tagline {
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 300px;
  color: rgba(255,255,255,0.5);
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a,
.footer-contact a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover,
.footer-contact a:hover {
  color: var(--amber-400);
}
.footer-contact span {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--plum-800);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--plum-700);
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 96px 32px 32px;
    gap: 8px;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 1000;
  }
  .nav.open { transform: translateX(0); }
  .nav ul {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
  }
  .nav a {
    padding: 12px 16px;
    font-size: 1rem;
  }
  .nav > .btn--primary {
    margin-left: 0;
    justify-content: center;
    margin-top: 8px;
  }

  .hero { min-height: auto; padding-top: 100px; padding-bottom: 40px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
  }
  .hero-image { order: -1; }
  .hero-image-wrap { border-radius: var(--radius-lg); }
  .hero-image-accent { display: none; }
  .hero-stats { gap: 24px; }

  .section { padding: 72px 0; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-image-secondary {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    margin-top: 16px;
  }

  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 40px; }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-actions { justify-content: center; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form-wrap { padding: 28px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-headline { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .btn--lg { padding: 14px 24px; font-size: 0.9375rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .back-to-top { transition: none; }
}
