@import url('tokens.css');

/* ==========================================================================
   INTERIOR PAGE HERO — shorter than homepage hero, no photography required
   ========================================================================== */
.page-hero { padding: 9.5rem 0 4rem; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 55% at 82% 0%, rgba(201,161,92,0.14) 0%, transparent 60%), var(--charcoal);
}
.page-hero.has-media { padding: 11rem 0 5rem; min-height: 62vh; display: flex; align-items: flex-end; }
.page-hero.has-media::before { display: none; }
.page-hero-media { position: absolute; inset: 0; z-index: -3; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero-scrim { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(11,13,15,0.92) 0%, rgba(11,13,15,0.68) 45%, rgba(11,13,15,0.25) 100%), linear-gradient(0deg, rgba(11,13,15,0.5) 0%, rgba(11,13,15,0) 45%); }
@media (max-width: 899px) { .page-hero-scrim { background: linear-gradient(0deg, rgba(11,13,15,0.94) 0%, rgba(11,13,15,0.5) 55%, rgba(11,13,15,0.35) 100%); } }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--text-on-dark-dim); margin-bottom: 1.6rem; }
.breadcrumb a { color: var(--text-on-dark-dim); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--accent-bright); }
.breadcrumb .sep { opacity: 0.5; }
.page-hero h1 { font-size: clamp(2.2rem, 1.8rem + 2.6vw, 3.8rem); max-width: 20ch; color: var(--stone); }
.page-hero .lede { margin-top: 1.3rem; max-width: 56ch; font-size: var(--step-1); color: var(--text-on-dark-dim); font-weight: 300; line-height: 1.6; }
.page-hero .hero-ctas { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   PROSE CONTENT
   ========================================================================== */
.prose { max-width: 72ch; }
.prose p { color: var(--text-on-dark-dim); line-height: 1.75; margin: 0 0 1.2rem; }
.prose h2 { font-size: var(--step-3); color: var(--stone); margin: 3rem 0 1.1rem; }
.prose h3 { font-size: var(--step-1); font-weight: 500; font-family: var(--font-body); color: var(--stone); margin: 2rem 0 0.8rem; }
.prose ul, .prose ol { color: var(--text-on-dark-dim); line-height: 1.75; padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--stone); font-weight: 500; }
.on-light .prose p, .on-light .prose ul, .on-light .prose ol { color: var(--text-on-light-dim); }
.on-light .prose h2, .on-light .prose h3 { color: var(--text-on-light); }
.on-light .prose strong { color: var(--text-on-light); }

/* ==========================================================================
   TWO-COLUMN CONTENT + SIDEBAR
   ========================================================================== */
.split-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1000px) { .split-layout { grid-template-columns: 2fr 1fr; } }
.side-card { background: var(--bg-elevated); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 1.8rem; align-self: start; position: sticky; top: 6.5rem; }
.side-card h4 { font-size: var(--step-0); font-weight: 500; font-family: var(--font-body); color: var(--stone); margin-bottom: 1rem; }
.side-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.side-card a { color: var(--text-on-dark-dim); font-size: var(--step--1); transition: color 0.3s; display: flex; align-items: center; gap: 0.5rem; }
.side-card a:hover { color: var(--accent-bright); }
.side-card .btn { width: 100%; justify-content: center; margin-top: 1.2rem; }

/* ==========================================================================
   COMPARISON TABLE (repair vs replace, style comparisons)
   ========================================================================== */
.compare-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.compare-table th, .compare-table td { padding: 0.95rem 1rem; border: 1px solid var(--line); text-align: left; font-size: var(--step--1); vertical-align: top; }
.compare-table th { font-family: var(--font-display); font-size: var(--step-0); color: var(--accent-bright); background: var(--bg-elevated); }
.compare-table td { color: var(--text-on-dark-dim); }
.on-light .compare-table th { color: var(--brass-dim); background: var(--stone-dim); }
.on-light .compare-table td { color: var(--text-on-light-dim); border-color: var(--line-dark); }
.on-light .compare-table th { border-color: var(--line-dark); }

/* ==========================================================================
   CALLOUT
   ========================================================================== */
.callout { border-left: 2px solid var(--accent); padding: 1.3rem 1.6rem; background: rgba(201,161,92,0.06); border-radius: 0 var(--r-md) var(--r-md) 0; margin: 1.8rem 0; }
.callout p { margin: 0; color: var(--text-on-dark-dim); font-size: var(--step--1); line-height: 1.7; }
.on-light .callout { background: rgba(139,111,63,0.07); }
.on-light .callout p { color: var(--text-on-light-dim); }

/* ==========================================================================
   SIGNS / CHECKLIST GRID (reusable across service + style pages)
   ========================================================================== */
.check-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 700px) { .check-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.check-item { background: var(--bg-elevated); padding: 1.5rem 1.7rem; display: flex; gap: 1rem; align-items: flex-start; }
.check-item .mark { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-top: 0.15rem; }
.check-item h4 { font-size: var(--step-0); font-weight: 500; font-family: var(--font-body); color: var(--stone); margin: 0 0 0.3rem; }
.check-item p { font-size: var(--step--1); color: var(--text-on-dark-dim); margin: 0; line-height: 1.6; }

/* ==========================================================================
   STYLE PAGE — spec strip
   ========================================================================== */
.spec-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; margin: 2rem 0; }
@media (min-width: 700px) { .spec-strip { grid-template-columns: repeat(4, 1fr); } }
.spec-item { background: var(--bg-elevated); padding: 1.4rem 1.2rem; }
.spec-item .lbl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brass-dim); }
.spec-item .val { margin-top: 0.5rem; font-family: var(--font-display); font-size: var(--step-1); color: var(--stone); }

/* ==========================================================================
   RELATED / OTHER STYLES STRIP
   ========================================================================== */
.related-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 800px) { .related-strip { grid-template-columns: repeat(4, 1fr); } }
.related-item { background: var(--bg-light); padding: 1.3rem; transition: background 0.3s; }
.related-item:hover { background: var(--stone-dim); }
.related-item h5 { font-family: var(--font-display); font-size: var(--step-0); color: var(--text-on-light); margin: 0; }
.related-item span { font-size: 0.72rem; color: var(--brass-dim); text-transform: uppercase; letter-spacing: 0.08em; }
