/* ===========================================================
   web-design.css — "Web Design & Development" service page.
   Reuses page.css for the shared blocks (.block, .do-list,
   .steps); adds the hero showcase, the expandable portfolio
   cards, and the intentional empty state.

   Ported from admin documents/Pages/preview-web-design_1.html.
   The preview's inlined tokens / base / layout / page.css were
   dropped — the site loads those from their real files.
   =========================================================== */

/* Premium hero */
.wd-hero {
  padding: 84px var(--section-pad-x) 76px;
  background: var(--bone);
  border-bottom: 1px solid var(--rule);
}
.wd-hero-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 40px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.wd-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.wd-eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--orange); }
.wd-h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--gray-deep);
  margin-bottom: 22px;
}
.wd-h1 .orange { color: var(--orange); }
.wd-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55; color: var(--gray);
  max-width: 46ch; margin-bottom: 30px;
}
.wd-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 32px; background: var(--orange); color: var(--paper);
  font-family: var(--font-sans); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  border: 1px solid var(--orange); position: relative;
  transition: all 0.3s var(--ease-out);
}
.wd-cta::after {
  content: ''; position: absolute; top: 6px; left: 6px; right: -6px; bottom: -6px;
  border: 1px solid var(--gray-deep); z-index: 0; transition: all 0.3s var(--ease-out);
}
.wd-cta > * { position: relative; z-index: 1; }
.wd-cta:hover { background: var(--gray-deep); border-color: var(--gray-deep); }
.wd-cta:hover::after { top: 0; left: 0; right: 0; bottom: 0; border-color: var(--orange); }
.wd-cta svg { transition: transform 0.3s; }
.wd-cta:hover svg { transform: translateX(4px); }

/* Approach block — the preview carried these as inline style attributes.
   Moved into the stylesheet so the markup stays clean. */
.wd-lede {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 400; line-height: 1.45; letter-spacing: -0.02em;
  color: var(--gray-deep);
  max-width: 26ch;
}
.wd-body {
  font-size: 16px; line-height: 1.65;
  color: var(--gray);
  max-width: 68ch;
  margin-top: 18px;
}

/* Browser-frame showcase */
.wd-browser {
  border: 1px solid var(--gray-deep);
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(45,45,45,0.06);
}
.wd-browser-chrome {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--rule);
}
.wd-browser-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bone-deep); }
.wd-browser-url { flex: 1; height: 16px; background: var(--bone); border-radius: 4px; margin-left: 10px; }
.wd-browser-shot {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--line-muted);
  text-align: center; padding: 10px;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 9px, rgba(74,74,74,.05) 9px, rgba(74,74,74,.05) 18px);
}
/* Real screenshot fills the frame; drops the placeholder hatch + padding. */
.wd-browser-shot:has(img), .wd-case-shot:has(img) {
  display: block; padding: 0; background-image: none;
}
.wd-browser-shot img, .wd-case-shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Portfolio */
.wd-portfolio { padding: 76px var(--section-pad-x); background: var(--paper); border-bottom: 1px solid var(--rule); }
.wd-portfolio-inner { max-width: var(--container-max); margin: 0 auto; padding-left: 40px; }
.wd-portfolio-head {
  font-family: var(--font-sans); font-weight: 800;
  font-size: clamp(26px, 3vw, 44px); letter-spacing: -0.035em; line-height: 1.05;
  color: var(--gray-deep); max-width: 20ch; margin: 6px 0 34px;
}
.wd-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Expandable case card — native <details>, no JS required.
   Deliberately NOT the faq.js accordion: that component is for FAQ
   blocks only. See CLAUDE.md conventions. */
.wd-case {
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.25s;
}
.wd-case[open], .wd-case:hover { border-color: var(--orange); }
.wd-case summary {
  list-style: none; cursor: pointer; display: block;
}
.wd-case summary::-webkit-details-marker { display: none; }
.wd-case summary:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.wd-case-shot {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--line-muted);
  text-align: center; padding: 10px;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 9px, rgba(74,74,74,.05) 9px, rgba(74,74,74,.05) 18px);
}
.wd-case-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
}
.wd-case-meta { flex: 1; }
.wd-case-name {
  font-family: var(--font-sans); font-weight: 800;
  font-size: 19px; letter-spacing: -0.02em; color: var(--gray-deep);
  margin-bottom: 4px;
}
.wd-case-result { font-size: 13.5px; color: var(--gray); line-height: 1.4; }
.wd-case-toggle {
  width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid var(--rule-strong); background: var(--paper);
  position: relative; transition: all 0.25s;
}
.wd-case-toggle::before, .wd-case-toggle::after {
  content: ''; position: absolute; background: var(--gray-deep);
  top: 50%; left: 50%; transform: translate(-50%,-50%); transition: transform 0.3s;
}
.wd-case-toggle::before { width: 13px; height: 1.5px; }
.wd-case-toggle::after { width: 1.5px; height: 13px; }
.wd-case[open] .wd-case-toggle { background: var(--orange); border-color: var(--orange); }
.wd-case[open] .wd-case-toggle::before, .wd-case[open] .wd-case-toggle::after { background: var(--paper); }
.wd-case[open] .wd-case-toggle::after { transform: translate(-50%,-50%) scaleY(0); }
.wd-case-detail {
  padding: 0 22px 24px;
  display: grid; gap: 14px;
}
.wd-detail-label {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 4px;
}
.wd-detail-text { font-size: 14px; line-height: 1.5; color: var(--gray); }
.wd-detail-text strong { color: var(--gray-deep); font-weight: 600; }

/* Intentional empty state — keeps the grid looking designed when the
   case count is odd. Unused while four cases fill a 2x2 grid; kept so
   appending a fifth case does not leave a hole. */
.wd-empty {
  border: 1px dashed var(--rule-strong);
  background: var(--bone);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px; min-height: 240px;
}
.wd-empty-mark {
  width: 40px; height: 40px; margin-bottom: 16px;
  border: 1px solid var(--orange); position: relative;
}
.wd-empty-mark::before, .wd-empty-mark::after {
  content: ''; position: absolute; background: var(--orange);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.wd-empty-mark::before { width: 16px; height: 1.5px; }
.wd-empty-mark::after { width: 1.5px; height: 16px; }
.wd-empty-title {
  font-family: var(--font-sans); font-weight: 700; font-size: 17px;
  letter-spacing: -0.02em; color: var(--gray-deep); margin-bottom: 6px;
}
.wd-empty-text { font-size: 13.5px; line-height: 1.5; color: var(--gray); max-width: 32ch; }

/* Closing band.
   The preview reused .co-close* from company.css, which this page does
   not load — the band would have rendered unstyled. Ported here under
   the page's own prefix rather than coupling two unrelated pages by
   adding 'company' to $page_css. */
.wd-close { padding: 80px var(--section-pad-x); background: var(--gray-deep); text-align: center; }
.wd-close-text {
  font-family: var(--font-sans); font-weight: 800;
  font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.1;
  color: var(--paper); max-width: 22ch; margin: 0 auto 14px;
}
.wd-close-sub {
  font-size: 15px; color: rgba(255,255,255,0.65); margin-bottom: 28px;
  max-width: 56ch; margin-left: auto; margin-right: auto;
}
.wd-close-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 32px; background: var(--orange); color: var(--paper);
  font-family: var(--font-sans); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  border: 1px solid var(--orange); transition: all 0.25s var(--ease-out);
}
.wd-close-btn:hover { background: var(--paper); color: var(--gray-deep); border-color: var(--paper); }
.wd-close-btn svg { transition: transform 0.3s; }
.wd-close-btn:hover svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .wd-hero-grid { grid-template-columns: 1fr; gap: 36px; padding-left: 0; }
  .wd-portfolio-inner { padding-left: 0; }
  .wd-cases { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .wd-hero { padding: 54px var(--section-pad-x) 50px; }
  .wd-portfolio { padding: 54px var(--section-pad-x); }
  .wd-close { padding: 56px var(--section-pad-x); }
}
