/* =========================================================
   Mem Contracting, Inc. — Stylesheet
   Grayscale palette, no color accents, SVG icons only
   ========================================================= */

:root {
  --gray-950: #121212;
  --gray-900: #1b1b1b;
  --gray-800: #262626;
  --gray-700: #3a3a3a;
  --gray-600: #545454;
  --gray-500: #6f6f6f;
  --gray-400: #8c8c8c;
  --gray-300: #aeaeae;
  --gray-200: #cfcfcf;
  --gray-150: #e2e2e2;
  --gray-100: #ececec;
  --gray-50: #f6f6f6;
  --white: #ffffff;

  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --radius: 6px;
  --transition: 0.25s ease;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--gray-900);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1rem; color: var(--gray-600); }

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

.section {
  padding: 88px 0;
}

.section--tight { padding: 60px 0; }

.section--alt {
  background: var(--gray-50);
}

.section--dark {
  background: var(--gray-900);
  color: var(--gray-200);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: var(--gray-300); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow .icon { width: 16px; height: 16px; color: var(--gray-500); }

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary {
  background: var(--gray-900);
  color: var(--white);
}
.btn-primary:hover { background: var(--gray-700); }
.btn-outline {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--gray-800);
}
.btn-outline:hover { border-color: var(--gray-800); background: var(--gray-100); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-block { width: 100%; justify-content: center; }

/* Icon */
.icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { stroke: none; fill: currentColor; }

/* =========================== HEADER =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(27, 27, 27, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gray-800);
  border: 1px solid var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-200);
}
.brand-mark .icon { width: 24px; height: 24px; }
.brand-text { line-height: 1.2; }
.brand-text strong { display: block; font-family: var(--font-heading); font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-text span { display: block; font-size: 0.72rem; color: var(--gray-400); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--gray-300);
  font-size: 0.94rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gray-300);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-200);
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-phone .icon { width: 17px; height: 17px; color: var(--gray-400); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-700);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gray-200);
  margin: 0 auto;
  transition: var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gray-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--gray-700);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-phone { display: none; }
  .nav-toggle { display: flex; }
}

/* =========================== HERO =========================== */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,18,18,0.82) 0%, rgba(18,18,18,0.9) 60%, rgba(18,18,18,0.96) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 150px 0 110px;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.hero--page .hero-inner { padding: 96px 24px 64px; max-width: 1180px; margin: 0 auto; }
.hero p { color: var(--gray-300); max-width: 620px; }
.hero h1 { color: var(--white); max-width: 780px; margin-bottom: 20px; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.breadcrumb .icon { width: 14px; height: 14px; }
.breadcrumb a:hover { color: var(--white); }

/* =========================== STATS =========================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 40px;
}
.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
}
.stat span {
  font-size: 0.85rem;
  color: var(--gray-400);
  letter-spacing: 0.03em;
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* =========================== GRID / CARDS =========================== */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-150);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--gray-200); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--gray-900);
  color: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon .icon { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

/* Split content */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
}
.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.split-media.badge::after {
  content: attr(data-badge);
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(18,18,18,0.85);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.list-check { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.list-check li { display: flex; align-items: flex-start; gap: 12px; color: var(--gray-700); }
.list-check .icon { width: 20px; height: 20px; color: var(--gray-500); flex-shrink: 0; margin-top: 2px; }

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--gray-150);
  border-radius: var(--radius);
  background: var(--white);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-900);
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 16px;
}

/* Quote / values */
.quote-block {
  border-left: 3px solid var(--gray-300);
  padding-left: 24px;
  margin: 28px 0;
  color: var(--gray-700);
  font-style: italic;
  font-size: 1.05rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 640px) { .values-grid { grid-template-columns: 1fr; } }
.value-item {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.value-item .icon-wrap {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 8px;
  background: var(--gray-900);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.value-item .icon-wrap .icon { width: 22px; height: 22px; }

/* Team */
.team-card {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--gray-150);
  border-radius: var(--radius);
  overflow: hidden;
}
.team-card img { width: 100%; height: 280px; object-fit: cover; }
.team-card-body { padding: 22px; }
.team-card-body h3 { margin-bottom: 2px; }
.team-role { color: var(--gray-500); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; display: block; }

/* CTA band */
.cta-band {
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: var(--gray-300); margin-bottom: 0; max-width: 460px; }

/* =========================== CONTACT PAGE =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card {
  border: 1px solid var(--gray-150);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 18px;
  display: flex;
  gap: 18px;
}
.info-card .icon-wrap {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--gray-900);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.info-card .icon-wrap .icon { width: 22px; height: 22px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.info-card p { margin-bottom: 2px; color: var(--gray-600); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-150);
  box-shadow: var(--shadow-sm);
}
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

form.contact-form {
  border: 1px solid var(--gray-150);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--gray-50);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--gray-800);
  transition: var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gray-600);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-note { font-size: 0.8rem; color: var(--gray-500); margin-top: 6px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.checkbox-row input { width: auto; margin-top: 4px; }
.checkbox-row label { font-size: 0.85rem; color: var(--gray-600); font-weight: 400; }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--gray-150); color: var(--gray-600); font-size: 0.92rem; }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--gray-800); }

/* =========================== LEGAL PAGES =========================== */
.legal-body {
  max-width: 800px;
  margin: 0 auto;
}
.legal-body h2 { margin-top: 44px; margin-bottom: 14px; font-size: 1.4rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--gray-600); }
.legal-body ul { margin: 0 0 18px 0; display: flex; flex-direction: column; gap: 10px; }
.legal-body ul li { display: flex; gap: 10px; }
.legal-body ul li .icon { width: 18px; height: 18px; color: var(--gray-400); flex-shrink: 0; margin-top: 3px; }
.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 20px;
  margin-bottom: 36px;
}
.legal-updated .icon { width: 15px; height: 15px; }
.legal-toc {
  border: 1px solid var(--gray-150);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
  background: var(--gray-50);
}
.legal-toc h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); margin-bottom: 14px; }
.legal-toc ol { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; padding: 0; margin: 0; counter-reset: toc; }
.legal-toc ol li { counter-increment: toc; font-size: 0.92rem; }
.legal-toc ol li::before { content: counter(toc) ". "; color: var(--gray-400); font-weight: 600; }
.legal-toc a:hover { text-decoration: underline; }
@media (max-width: 600px) { .legal-toc ol { grid-template-columns: 1fr; } }

/* =========================== FOOTER =========================== */
.site-footer {
  background: var(--gray-950);
  color: var(--gray-400);
  padding: 72px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--gray-800);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { color: var(--white); margin-bottom: 16px; }
.footer-brand p { color: var(--gray-500); max-width: 320px; font-size: 0.92rem; }
.footer-col h4 {
  color: var(--gray-200);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.92rem; color: var(--gray-500); transition: var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--gray-500); margin-bottom: 4px; }
.footer-contact .icon { width: 17px; height: 17px; color: var(--gray-600); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  font-size: 0.82rem;
  color: var(--gray-600);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: var(--gray-300); }

/* =========================== COOKIE BANNER =========================== */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 920px;
  margin: 0 auto;
  background: var(--gray-950);
  color: var(--gray-200);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 1000;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--gray-800);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-300);
}
.cookie-icon .icon { width: 24px; height: 24px; }
.cookie-text { flex: 1; font-size: 0.88rem; color: var(--gray-400); }
.cookie-text a { color: var(--gray-200); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.85rem; }
@media (max-width: 760px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-actions { justify-content: flex-start; }
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
  padding: 5px 12px;
  border-radius: 20px;
  margin: 0 6px 6px 0;
}
