/* MarcoPolo Recycling premium static site system */

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

:root {
  --ink: #111814;
  --ink-2: #26362e;
  --muted: #68756d;
  --paper: #fbfaf4;
  --paper-2: #f1efe5;
  --panel: #ffffff;
  --charcoal: #17211c;
  --moss: #295f46;
  --leaf: #3a8d5f;
  --gold: #d8a742;
  --rust: #b86d3d;
  --mist: #dfe8df;
  --line: rgba(17, 24, 20, 0.13);
  --shadow: 0 24px 70px rgba(17, 24, 20, 0.14);
  --shadow-soft: 0 14px 40px rgba(17, 24, 20, 0.1);
  --radius: 8px;
  --max: 1180px;
  --space-1: 0.5rem;
  --space-2: 0.85rem;
  --space-3: 1.25rem;
  --space-4: 1.8rem;
  --space-5: 2.6rem;
  --space-6: 4.2rem;
  --space-7: 6.5rem;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 24, 20, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, var(--paper) 0%, #fffdf7 44%, var(--paper-2) 100%);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 75% 8%, rgba(216, 167, 66, 0.15), transparent 28%),
    radial-gradient(circle at 18% 18%, rgba(58, 141, 95, 0.11), transparent 26%);
  z-index: -1;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

p {
  color: var(--muted);
  margin: 0 0 var(--space-3);
}

ul {
  margin: 0;
  padding-left: 1.15rem;
}

li {
  margin: 0.45rem 0;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(251, 250, 244, 0.84);
  border-bottom: 1px solid var(--line);
}

.header-container {
  width: min(var(--max), calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-4);
  align-items: center;
}

.logo {
  display: inline-grid;
  grid-template-columns: 42px auto;
  gap: 0.72rem;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: conic-gradient(from 40deg, var(--gold), var(--leaf), var(--moss), var(--gold));
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.22), 0 12px 24px rgba(41, 95, 70, 0.23);
}

.logo span:last-child {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
  margin-top: -0.15rem;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0;
  list-style: none;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1rem;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

nav a:hover,
nav a.active {
  color: var(--ink);
  background: rgba(216, 167, 66, 0.18);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.header-link {
  color: var(--moss);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  color: #fff;
  background: var(--charcoal);
  box-shadow: 0 14px 30px rgba(17, 24, 20, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #0d1310;
  box-shadow: 0 18px 38px rgba(17, 24, 20, 0.24);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--line);
  box-shadow: none;
}

.button.secondary:hover {
  background: #fff;
}

.button.light {
  color: var(--charcoal);
  background: #fff;
}

.section {
  padding: var(--space-7) 0;
}

.section.tight {
  padding: var(--space-6) 0;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.15rem);
  font-weight: 500;
  overflow-wrap: anywhere;
}

h1 span {
  display: block;
}

h2 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5.2vw, 5.15rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.lead {
  max-width: 680px;
  color: var(--ink-2);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero {
  position: relative;
  min-height: calc(100svh - 78px);
  padding: var(--space-6) 0 var(--space-5);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  gap: var(--space-5);
  align-items: center;
}

.hero-copy {
  padding: 5vh 0;
}

.hero-copy .lead {
  margin-top: var(--space-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.hero-note {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: end;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.hero-note strong {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
}

.metric {
  color: var(--moss);
  font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.9;
}

.photo-frame {
  position: relative;
  min-height: 620px;
  margin: 0;
  border-radius: 26px 26px 8px 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(17, 24, 20, 0.16);
  background: var(--charcoal);
  isolation: isolate;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17, 24, 20, 0) 36%, rgba(17, 24, 20, 0.74) 100%),
    linear-gradient(90deg, rgba(216, 167, 66, 0.18), transparent 38%);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 24px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px 18px 6px 6px;
  pointer-events: none;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
  transform: scale(1.01);
}

.photo-frame figcaption,
.image-card figcaption,
.wide-banner figcaption {
  position: absolute;
  z-index: 3;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.image-card {
  position: relative;
  min-height: 470px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px 38px 8px 8px;
  box-shadow: var(--shadow);
  background: var(--charcoal);
  isolation: isolate;
}

.image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(17, 24, 20, 0.08), rgba(17, 24, 20, 0.76));
}

.image-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 600ms ease;
}

.image-card:hover img,
.photo-frame:hover img,
.wide-banner:hover img {
  transform: scale(1.045);
}

.wide-banner {
  position: relative;
  min-height: 440px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--charcoal);
  isolation: isolate;
}

.wide-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17, 24, 20, 0.78), rgba(17, 24, 20, 0.14) 58%, rgba(17, 24, 20, 0.54)),
    linear-gradient(180deg, transparent, rgba(17, 24, 20, 0.5));
}

.wide-banner img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 700ms ease;
}

.media-mosaic {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: var(--space-3);
  align-items: stretch;
}

.media-mosaic .image-card:first-child {
  min-height: 560px;
}

.media-stack {
  display: grid;
  gap: var(--space-3);
}

.media-stack .image-card {
  min-height: 270px;
}

.photo-kicker {
  position: absolute;
  z-index: 3;
  top: var(--space-4);
  left: var(--space-4);
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.82rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tile.media-tile {
  min-height: 310px;
  padding: 0;
  overflow: hidden;
}

.tile.media-tile img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.tile.media-tile div {
  padding: var(--space-4);
}

.panel-dark {
  color: #fff;
  background: var(--charcoal);
}

.panel-dark h2,
.panel-dark h3,
.panel-dark p,
.panel-dark li {
  color: #fff;
}

.panel-dark p,
.panel-dark li {
  opacity: 0.76;
}

.panel-dark .tile,
.panel-dark .service-band,
.panel-dark .faq-item {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.12);
}

.panel-dark .tile:hover,
.panel-dark .service-band:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.panel-dark .tile .number,
.panel-dark .tile .icon {
  color: #fff;
  background: rgba(216, 167, 66, 0.26);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.46fr);
  gap: var(--space-5);
  align-items: end;
  margin-bottom: var(--space-5);
}

.section-spacer {
  height: var(--space-5);
}

.section-head p {
  font-size: 1.08rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-item {
  padding: var(--space-4);
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
}

.proof-item span {
  display: block;
  margin-top: var(--space-2);
  color: var(--muted);
  font-weight: 750;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tile {
  min-height: 245px;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.tile:hover {
  position: relative;
  z-index: 2;
  transform: translateY(-5px);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.tile .number,
.tile .icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(216, 167, 66, 0.24);
  font-weight: 900;
}

.service-rhythm {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-4);
}

.service-column {
  display: grid;
  gap: var(--space-3);
}

.service-column.offset {
  padding-top: var(--space-6);
}

.service-band {
  padding: var(--space-4);
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 var(--line);
  transition: transform 180ms ease, background 180ms ease;
}

.service-band:hover {
  transform: translateX(5px);
  background: #fff;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.feature-list li {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0 0.85rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 700;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 5px rgba(58, 141, 95, 0.14);
}

.quote-block {
  padding: var(--space-5);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.quote-block p {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 3.15rem);
  line-height: 1.08;
}

.quote-block cite {
  display: block;
  margin-top: var(--space-4);
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(216, 167, 66, 0.18), transparent 34%),
    var(--charcoal);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cta-panel h2,
.cta-panel p {
  color: #fff;
}

.cta-panel p {
  opacity: 0.76;
}

.page-hero {
  padding: var(--space-6) 0 var(--space-5);
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: var(--space-5);
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-5);
}

.page-hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-5);
  align-items: start;
}

.contact-stack {
  display: grid;
  gap: var(--space-3);
}

.contact-card {
  padding: var(--space-4);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.contact-card a {
  color: var(--moss);
  font-weight: 900;
  text-decoration: none;
}

.contact-form {
  padding: var(--space-5);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.form-group {
  margin-bottom: var(--space-3);
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-weight: 850;
}

input,
textarea,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.8rem 0.95rem;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  background: #fff;
  border-color: rgba(58, 141, 95, 0.7);
  box-shadow: 0 0 0 4px rgba(58, 141, 95, 0.14);
}

.checkbox-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 650;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
  margin-top: 0.3rem;
}

.faq-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.faq-item {
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.76);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.area-grid > div {
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.76);
}

.site-footer {
  color: #fff;
  background: var(--charcoal);
  padding: var(--space-6) 0 var(--space-4);
}

.footer-content {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: var(--space-5);
}

.footer-section h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: var(--space-3);
}

.footer-section p,
.footer-section li,
.footer-section a {
  color: rgba(255, 255, 255, 0.68);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section a {
  text-decoration: none;
}

.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  margin: var(--space-5) auto 0;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .header-container {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding: var(--space-2) 0;
  }

  nav ul {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .header-actions {
    display: none;
  }

  .hero-grid,
  .split,
  .split.reverse,
  .service-rhythm,
  .contact-layout,
  .page-hero .container,
  .section-head,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .proof-strip,
  .tile-grid,
  .media-mosaic,
  .area-grid,
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-frame {
    min-height: 520px;
  }

  .service-column.offset {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --space-6: 3rem;
    --space-7: 4.2rem;
  }

  .container,
  .header-container,
  .footer-content,
  .footer-bottom {
    width: min(100% - 24px, var(--max));
  }

  nav a {
    padding: 0 0.75rem;
  }

  h1,
  .page-hero h1 {
    font-size: clamp(1.65rem, 7.8vw, 2rem);
    line-height: 1.04;
    width: 100%;
    max-width: calc(100vw - 24px);
    word-break: normal;
    overflow-wrap: break-word;
  }

  .lead {
    font-size: 1rem;
    max-width: 34ch;
    overflow-wrap: break-word;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid .photo-frame {
    order: -1;
    min-height: 255px;
    border-radius: 0 0 8px 8px;
  }

  .hero-grid .photo-frame::after {
    inset: 14px;
  }

  .hero-grid .photo-frame figcaption {
    display: none;
  }

  .hero-copy {
    padding: var(--space-5) 0 0;
  }

  .hero-copy,
  .hero-note {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .hero-copy .lead,
  .hero-note p {
    width: auto;
    max-width: 34ch;
  }

  .hero-note,
  .proof-strip,
  .tile-grid,
  .feature-list,
  .area-grid,
  .form-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .photo-frame,
  .image-card,
  .wide-banner,
  .media-mosaic .image-card:first-child,
  .media-stack .image-card {
    min-height: 320px;
  }

  .media-mosaic {
    grid-template-columns: 1fr;
  }

  .quote-block,
  .contact-form,
  .cta-panel {
    padding: var(--space-4);
  }

  .cta-panel .button {
    width: 100%;
  }
}
