/* ==========================================================================
   Fit My Bathroom — inner page templates (service landing pages, project case studies)
   Builds on site.css tokens and components.
   ========================================================================== */

/* ---------- inner page hero ---------- */
.page-hero .ph-grid { display: grid; gap: 34px; align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); margin-bottom: 20px; }
.page-hero .lead { margin-bottom: 28px; }
.page-hero .ph-media .frame { aspect-ratio: 4 / 4.4; background: var(--sand); box-shadow: var(--shadow); }
.page-hero .ph-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .page-hero { padding: 48px 0 96px; }
  .page-hero .ph-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; }
}
@media (max-width: 959px) { .page-hero .ph-media { max-width: 520px; width: 100%; margin: 0 auto; } .page-hero .ph-media .frame { aspect-ratio: 4 / 4; } }

.frame img { width: 100%; height: 100%; object-fit: cover; }
/* The "after" layer must cover the slider, or clip-path clips a zero-height box (also needed in site.css) */
.ba .ba-after { position: absolute; inset: 0; }

/* Nine-trades grid: stop long words widening the page on small phones (also needed in site.css for the homepage) */
.team-grid > * { min-width: 0; }
@media (max-width: 520px) {
  .trades { gap: 4px; padding: 4px; }
  .trade { padding: 14px 10px; min-height: 100px; }
  .trade b { font-size: 1rem; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
}

/* ---------- long-form copy ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-bottom: 18px; }
.prose h3 { margin: 30px 0 10px; }
.prose p { color: var(--graphite); }
.prose ul { list-style: none; display: grid; gap: 10px; margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 9px; height: 9px; border: 1px solid var(--bronze); border-radius: 50%; }
.split-copy { display: grid; gap: 48px; align-items: start; }
.split-copy > * { min-width: 0; }
@media (min-width: 960px) { .split-copy { grid-template-columns: .9fr 1.1fr; gap: 80px; } }

/* ---------- bathroom types ---------- */
.types { display: grid; gap: 14px; }
@media (min-width: 640px) { .types { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .types { grid-template-columns: repeat(4, 1fr); } }
.type { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; background: var(--white); border: 1px solid var(--linen); border-radius: var(--radius); text-decoration: none; color: var(--graphite); transition: border-color .2s, transform .2s; }
.type:hover { border-color: var(--bronze); transform: translateY(-2px); }
.type h3 { font-size: 1.3rem; }
.type p { margin: 0; font-size: .92rem; }
.type .link-arrow { margin-top: auto; align-self: flex-start; font-size: .9rem; }

/* ---------- project strip ---------- */
.project-strip { display: grid; gap: 16px; }
@media (min-width: 760px) { .project-strip { grid-template-columns: repeat(3, 1fr); } }
.project-strip .project .ph { aspect-ratio: 4 / 4.2; }
.project-strip .project h3 { font-size: 1.2rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--linen); border-radius: var(--radius); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--taupe); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; font: 400 1.22rem/1.3 var(--serif); color: var(--charcoal); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--taupe); display: grid; place-items: center; font: 400 1.2rem/1 var(--sans); color: var(--bronze-deep); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--graphite); max-width: 70ch; }

/* ---------- areas chips ---------- */
.area-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.area-chips a { display: inline-block; padding: 9px 16px; border: 1px solid var(--taupe); border-radius: var(--pill); color: var(--charcoal); text-decoration: none; font-size: .92rem; background: var(--ivory); transition: background .2s, color .2s; }
.area-chips a:hover { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }

/* ---------- example notice (project pages) ---------- */
.example-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px dashed var(--bronze); border-radius: var(--radius); background: var(--white); font-size: .92rem; color: var(--charcoal); margin-bottom: 30px; }
.example-note b { color: var(--bronze-deep); }

/* ---------- project hero ---------- */
.project-hero { padding: 36px 0 0; }
.project-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); max-width: 18ch; margin-bottom: 18px; }
.project-hero .lead { margin-bottom: 34px; }
.hero-pair { display: grid; gap: 14px; grid-template-columns: 1fr; }
.project-hero .hero-shot { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--sand); box-shadow: var(--shadow); }
.project-hero .hero-shot img { width: 100%; height: 100%; object-fit: cover; }
.project-hero .hero-shot .sample { position: absolute; top: 16px; left: 16px; }
.project-hero .hero-shot.second { display: none; }
@media (min-width: 760px) {
  .hero-pair { grid-template-columns: 1.25fr 1fr; align-items: end; }
  .project-hero .hero-shot { aspect-ratio: 4 / 4.6; }
  .project-hero .hero-shot.second { display: block; aspect-ratio: 1; border-radius: 50%; }
}

/* key facts */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--taupe); border: 1px solid var(--taupe); border-radius: 14px; overflow: hidden; margin: 0; }
.facts div { background: var(--white); padding: 18px 18px 16px; }
.facts dt { font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--olive); margin-bottom: 8px; }
.facts dd { margin: 0; font: 400 1.15rem/1.3 var(--serif); color: var(--charcoal); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* story */
.story { display: grid; gap: 48px; }
@media (min-width: 960px) { .story { grid-template-columns: 1fr 1fr; gap: 80px; } }
.story h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
.trade-list { list-style: none; display: grid; gap: 0; }
.trade-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--taupe); font-size: .95rem; }
.trade-list li:first-child { border-top: 1px solid var(--taupe); }
.trade-list b { color: var(--charcoal); font-weight: 600; }
@media (max-width: 520px) { .trade-list li { grid-template-columns: 1fr; gap: 2px; } }

/* specification */
.spec { list-style: none; display: grid; gap: 0; }
@media (min-width: 760px) { .spec { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.spec li { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid rgba(115, 95, 68, .25); font-size: .95rem; }
.spec li span:first-child { color: var(--olive); }
.spec li span:last-child { color: var(--charcoal); text-align: right; font-weight: 500; }

/* gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.wide img { aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
  .gallery img, .gallery figure.wide img { aspect-ratio: auto; }
  .gallery figure.tall { grid-row: span 2; }
  .gallery figure.wide { grid-column: span 2; }
}

/* client quote */
.client-quote { max-width: 820px; margin: 0 auto; text-align: center; }
.client-quote blockquote { margin: 18px 0 22px; font: 400 clamp(1.5rem, 3vw, 2.2rem)/1.35 var(--serif); color: var(--charcoal); }
.client-quote cite { font-style: normal; font-size: .92rem; color: var(--graphite); }

/* timeline */
.timeline { list-style: none; display: grid; gap: 0; counter-reset: day; }
.timeline li { display: grid; grid-template-columns: 74px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--taupe); align-items: baseline; }
.timeline li:first-child { border-top: 1px solid var(--taupe); }
.timeline .day { font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bronze-deep); }
.timeline b { color: var(--charcoal); font-weight: 600; display: block; }
.timeline span { font-size: .93rem; }
@media (min-width: 960px) { .timeline-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; } }
