/* ═══════════════════════════════════════
   WORK.CSS — Out Shine Web Design
   Shared styles for individual project / case-study pages:
   the ruled sheet, the site held up in a browser frame, the
   problem → change → result write-up beside a project index card.
═══════════════════════════════════════ */

/* ── WORK HERO ── (ruled sheet comes from main.css) */
.work-hero { padding: 5rem 5rem 2.5rem 6rem; }
.work-hero .eyebrow { margin-bottom: 1rem; }
.work-hero .hero-title { margin-bottom: 1.25rem; font-size: clamp(2.6rem, 4.8vw, 4.4rem); }
.work-hero .lead { max-width: 52ch; font-size: 1.12rem; }

/* ── WORK PREVIEW (browser mockup) ── */
.work-preview-section {
  padding: 2rem 5rem 6rem;
  background: var(--cream) var(--ruled);
}
.work-preview {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: 0 0 0 1px rgba(var(--teal-rgb), .15), 0 40px 60px -30px rgba(var(--teal-rgb), .5);
}
.work-browser-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 36px;
  background: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 1rem;
}
.work-browser-bar .browser-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(var(--blush-rgb), .9);
}
.work-browser-bar .browser-url {
  margin-left: 0.75rem;
  font-size: 0.76rem;
  color: var(--cream);
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.work-preview img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 36px;
}

/* ── WORK DETAILS: problem → change → result ── */
.work-details {
  padding: var(--section-pad);
  background: var(--tint);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}
.work-details-main h2 { margin-bottom: 1rem; font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.work-details-main h2[style] { margin-top: 3rem !important; }
.work-details-main p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.8;
  max-width: 62ch;
}
.work-details-main p:last-child { margin-bottom: 0; }

/* Project details on an index card */
.work-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  background: var(--cream);
  border-radius: 3px;
  padding: 2.25rem 2rem 2rem;
  box-shadow: var(--note-shadow);
  transform: rotate(1deg);
}
.work-sidebar::before {
  content: '';
  position: absolute;
  top: -12px; left: 50%;
  width: 76px; height: 22px;
  margin-left: -38px;
  background: rgba(var(--blush-rgb), .85);
  transform: rotate(-2deg);
}
.work-sidebar h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.work-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.75rem;
}
.work-details-list li {
  font-size: 0.95rem;
  color: var(--ink);
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(var(--teal-rgb), .25);
}
.work-details-list li:last-child { border-bottom: none; }
.work-details-list li span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  width: 70px;
  flex-shrink: 0;
  padding-top: 0.1rem;
}
.work-sidebar .btn-primary { width: 100%; text-align: center; display: block; }

/* ── WORK CTA ── (ruled sheet comes from main.css) */
.work-cta {
  padding: 7rem 5rem;
  text-align: center;
}
.work-cta h2 { margin-bottom: 1.25rem; font-size: clamp(2.4rem, 4.6vw, 4rem); }
.work-cta .lead { max-width: 520px; margin: 0 auto 2.25rem; text-align: center; }

/* ── COMING SOON PAGE ── */
.work-empty {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 5rem 4rem;
  gap: 1.5rem;
  background: var(--cream) var(--ruled);
}
.work-empty .eyebrow { margin-bottom: 0.5rem; }
.work-empty h1 { margin-bottom: 0.5rem; }
.work-empty .lead { max-width: 520px; }
.work-empty-icon { width: 90px; height: 90px; opacity: 0.85; margin-bottom: 0.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .work-hero { padding: 4rem 3rem 2rem 4rem; }
  .work-preview-section { padding: 2rem 3rem 5rem; }
  .work-details { grid-template-columns: 1fr; gap: 3rem; }
  .work-sidebar { position: static; max-width: 460px; }
  .work-cta { padding: 5rem 3rem; }
}
@media (max-width: 768px) {
  .work-hero { padding: 2.5rem 1.25rem 1.5rem 2rem; }
  .work-preview-section { padding: 1.5rem 1.25rem 4rem; }
  .work-empty { padding: 3rem 1.5rem; }
  .work-cta { padding: 4.5rem 1.5rem; }

  /* Readability bump */
  .work-details-main p { font-size: 1.12rem; }
  .work-details-list li { font-size: 1.05rem; }
  .work-details-list li span { width: 80px; }
  .work-sidebar { padding: 2rem 1.5rem 1.5rem; transform: none; }
}
