/* ═══════════════════════════════════════
   MDP — Main Stylesheet
   meredithpeters.com
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  --forest:      #2A3D36;
  --forest-deep: #1A2B1E;
  --cream:       #EDE8E1;
  --terracotta:  #B85C38;
  --muted-dk:    rgba(237,232,225,0.52);
  --muted-lt:    rgba(26,43,30,0.52);
  --font-logo:   'neue-haas-grotesk-text', 'aktiv-grotesk', Helvetica, Arial, sans-serif;
  --font-body:   'Source Sans 3', Helvetica, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

/* ── PAGE WRAPPER ── */
.mdp-page {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── BACKGROUNDS ── */
body.page-home    { background: var(--forest); }
body.page-about   { background: var(--cream); }
body.page-work    { background: var(--forest); }
body.page-contact { background: var(--cream); }

/* ══════════════════════════════
   CHROME — bottom wordmark + nav
══════════════════════════════ */
.chrome {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 28px 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 100;
}

.wordmark {
  display: block;
  text-decoration: none;
  transition: opacity 0.2s;
  user-select: none;
  line-height: 0; /* remove inline-block gap under image */
}
.wordmark:hover { opacity: 0.65; }
.wordmark img {
  height: 72px;  /* matches original text size — adjust if needed */
  width: auto;
  display: block;
}

.mdp-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  padding-bottom: 10px;
  list-style: none;
}
.mdp-nav li { display: flex; align-items: center; }

.nav-link {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0;
  transition: color 0.2s, opacity 0.2s;
  display: block;
}
.nav-link.on-dark  { color: var(--muted-dk); }
.nav-link.on-light { color: var(--muted-lt); }
.nav-link.on-dark:hover,
.nav-link.on-dark.current  { color: var(--cream); opacity: 1; }
.nav-link.on-light:hover,
.nav-link.on-light.current { color: var(--forest-deep); opacity: 1; }

.nav-sep {
  font-size: 10px;
  font-weight: 300;
  pointer-events: none;
  padding: 0 2px;
}
.nav-sep.on-dark  { color: rgba(237,232,225,0.20); }
.nav-sep.on-light { color: rgba(26,43,30,0.18); }

/* ══════════════════════════════
   HOME PAGE
══════════════════════════════ */
.home-tagline {
  position: fixed;
  top: 36px;
  left: 36px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--muted-dk);
  line-height: 1.7;
  max-width: 240px;
  z-index: 10;
}

.home-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-bottom: 130px; /* clear the wordmark */
}

/* Featured image — swappable via WP featured image */
.hero-image {
  width: 180px;
  position: relative;
}
.hero-image img {
  width: 100%;
  display: block;
  border-radius: 2px;
}
.hero-image-placeholder {
  width: 180px;
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, #3D5C4F 0%, #1A2B1E 60%, #B85C38 100%);
  border-radius: 2px;
}
.hero-image-label {
  margin-top: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dk);
}

/* ══════════════════════════════
   ABOUT PAGE
══════════════════════════════ */
.about-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 36px 160px; /* bottom clears wordmark */
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  max-width: 860px;
  width: 100%;
  align-items: start;
}

.block-eyebrow {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
}

.about-statement {
  font-family: var(--font-logo);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--forest-deep);
}

.about-body {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted-lt);
  margin-top: 20px;
}

.about-contact {
  margin-top: 32px;
  font-size: 11px;
  font-weight: 300;
  color: var(--muted-lt);
  letter-spacing: 0.02em;
}
.about-contact a {
  color: var(--forest-deep);
  font-weight: 600;
  text-decoration: none;
}
.about-contact a:hover { opacity: 0.65; }

.services-list {
  list-style: none;
  margin-top: 0;
}
.services-list li {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-lt);
  padding: 11px 0;
  border-bottom: 0.5px solid rgba(26,43,30,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.01em;
}
.services-list li:first-child { border-top: 0.5px solid rgba(26,43,30,0.10); }
.services-list li span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26,43,30,0.25);
}

/* ══════════════════════════════
   WORK PAGE
══════════════════════════════ */
.work-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 36px 160px;
}

.work-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 100px;
  max-width: 900px;
  width: 100%;
  align-items: center;
}

/* ── Image stage (right column) ── */
.work-image-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 2px;
  overflow: hidden;
}
.work-image-stage img,
.work-image-stage .stage-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.work-image-stage .is-visible { opacity: 1; }
.stage-placeholder {
  background: linear-gradient(160deg, #3D5C4F 0%, #1A2B1E 60%, #B85C38 100%);
}

.work-eyebrow {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
}

.client-list {
  list-style: none;
}
.client-list li {
  padding: 13px 0;
  border-bottom: 0.5px solid rgba(237,232,225,0.10);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  cursor: default;
  transition: all 0.2s;
}
.client-list li:first-child { border-top: 0.5px solid rgba(237,232,225,0.10); }

.client-name {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: -0.01em;
  color: rgba(237,232,225,0.35);
  transition: color 0.2s;
  text-transform: uppercase;
}
.client-list li:hover .client-name { color: var(--cream); }

.client-meta {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237,232,225,0.18);
  transition: color 0.2s;
  white-space: nowrap;
}
.client-list li:hover .client-meta { color: var(--terracotta); }

/* ══════════════════════════════
   CONTACT PAGE
══════════════════════════════ */
.contact-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 36px 160px;
}

.contact-content {
  max-width: 480px;
  width: 100%;
}

.contact-statement {
  font-family: var(--font-logo);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--forest);
  margin-bottom: 32px;
}

.contact-detail {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted-lt);
  line-height: 1.85;
  margin-bottom: 8px;
}
.contact-detail a {
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.contact-detail a:hover { opacity: 0.65; }

/* ═══════════════════════════════════════
   RESPONSIVE
   Tablet refinements + full mobile layout
   ═══════════════════════════════════════ */

/* ── TABLET (741–1024px) ──
   Keep two columns, tighten the gaps */
@media (max-width: 1024px) {
  .about-grid {
    gap: 64px;
    max-width: 720px;
  }
  .work-content {
    grid-template-columns: 1fr 260px;
    gap: 56px;
    max-width: 720px;
  }
}

/* ── MOBILE (≤740px) ── */
@media (max-width: 740px) {

  /* 1 · Unlock scrolling. The desktop layout locks the
     viewport; mobile content needs to flow. */
  body {
    overflow: auto;
    overflow-x: hidden;
    height: auto;
  }
  .mdp-page {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh; /* correct iOS toolbar behavior */
    overflow: visible;
  }

  /* 2 · Chrome — shrink so logo + nav share one row
     on a 375px screen */
  .chrome {
    padding: 16px 20px;
  }
  .wordmark img {
    height: 34px;
  }
  .mdp-nav {
    gap: 12px;
    padding-bottom: 3px;
  }
  .nav-sep { display: none; } /* dots crowd at this size */
  .nav-link {
    font-size: 9px;
    letter-spacing: 0.10em;
  }

  /* 3 · Home */
  .home-tagline {
    top: 24px;
    left: 20px;
    max-width: 200px;
    font-size: 10px;
  }
  .home-center {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 90px 20px 110px;
  }
  .hero-image { width: 140px; }

  /* 4 · About — stack the columns */
  .about-center {
    align-items: flex-start;
    padding: 90px 20px 120px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    max-width: 100%;
  }

  /* 5 · Work — single column, no hover stage.
     Touch screens have no hover; the image stage
     is hidden and the client list stands alone. */
  .work-center {
    align-items: flex-start;
    padding: 90px 20px 120px;
  }
  .work-content {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 100%;
  }
  .work-image-stage { display: none; }

  /* 6 · Contact */
  .contact-center {
    align-items: flex-start;
    padding: 90px 20px 120px;
  }

  /* 7 · Long client names + meta tags can collide
     at narrow widths — let them wrap gracefully */
  .client-list li {
    flex-wrap: wrap;
    row-gap: 2px;
  }
  .services-list li {
    flex-wrap: wrap;
    row-gap: 2px;
  }
}

/* ── SMALL MOBILE (≤380px) ──
   Final squeeze for SE-class screens */
@media (max-width: 380px) {
  .wordmark img { height: 28px; }
  .mdp-nav { gap: 9px; }
  .nav-link { font-size: 8px; }
}