/* ============================================================
   ONCE & EVER — TEMPLATE DETAIL PAGE STYLES
   Used by: templates/template-0X.html
   ============================================================ */

/* ---------- HERO ---------- */
.tpl-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--page) clamp(3rem, 6vw, 5rem);
}
.tpl-hero-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.back-link { display: inline-flex; margin-bottom: 1.6rem; }
.tpl-index { font-family: var(--ff-serif); color: var(--muted); font-size: .95rem; letter-spacing: .08em; }
.tpl-title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.08;
  margin-top: .6rem;
  color: var(--charcoal);
}
.tpl-tagline { margin-top: 1.3rem; font-size: 1.05rem; color: var(--muted); max-width: 32ch; }
.tpl-price {
  margin-top: 1.8rem;
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--burgundy);
}
.tpl-price span { display:block; font-family: var(--ff-sans); font-size:.68rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color: var(--muted); margin-bottom:.5rem;}
.tpl-hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.tpl-hero-visual { position: relative; }
/* No fixed ratio — the design shots are portrait and shouldn't be cropped. */
.tpl-hero-visual .frame {
  border: 1px solid var(--gold-border);
  overflow: hidden;
}
.tpl-hero-visual .frame img { width: 100%; height: auto; display: block; }
.tpl-hero-badge {
  position: absolute;
  bottom: -1.4rem; left: -1.4rem;
  background: var(--burgundy);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 1.1rem 1.4rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  max-width: 220px;
  box-shadow: 0 20px 40px -18px rgba(23,22,22,.4);
}

/* ---------- GALLERY (masonry) ---------- */
.tpl-gallery-wrap { padding: 0 var(--page) var(--gap-lg); }
.tpl-gallery-head { max-width: 1440px; margin: 0 auto var(--gap); }

/* ---------- DESIGN PREVIEW SHOTS ---------- */
.tpl-shots {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: start;
}
.tpl-shot {
  border: 1px solid var(--gold-border);
  overflow: hidden;
  background: var(--warm-white);
}
.tpl-shot img { width: 100%; height: auto; display: block; }
@media (max-width: 767px) {
  .tpl-shots { grid-template-columns: 1fr; }
}

/* ---------- ABOUT THE DESIGN ---------- */
.tpl-about {
  padding: var(--gap-lg) var(--page);
  text-align: center;
}
.tpl-about-inner { max-width: 44rem; margin: 0 auto; }
.tpl-about p.lede {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  color: var(--charcoal);
}
.tpl-about p.lede em { color: var(--burgundy); }

/* ---------- FEATURES ---------- */
.tpl-features { background: var(--warm-white); padding: var(--gap-lg) var(--page); }
.tpl-features-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem 2rem;
}
.feature-check {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .96rem;
  color: var(--charcoal);
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-soft);
}
.feature-check .tick {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
}

/* ---------- WHAT'S INCLUDED ---------- */
.tpl-included { padding: var(--gap-lg) var(--page); }
.tpl-included-list { max-width: 760px; margin: 0 auto; }

/* Eleven rows rather than the original six — in one column the list ran
   916px, taller than the viewport, for eleven short phrases. The pair only
   splits at 880px; below that the columns are too narrow for the longest
   label and it wraps. */
@media (min-width: 880px) {
  .tpl-included-list {
    max-width: 940px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(2rem, 5vw, 4rem);
  }
}
.included-row {
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.included-row .num {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  color: var(--burgundy);
  flex: none;
  width: 3ch;
}
.included-row .label { font-size: 1.05rem; color: var(--charcoal); }

/* ---------- PRICE / FINAL CTA ---------- */
.tpl-cta {
  background: var(--burgundy);
  color: var(--ivory);
  padding: var(--gap-lg) var(--page);
  text-align: center;
}
.tpl-cta .eyebrow { color: var(--gold-light); }
.tpl-cta-name { font-family: var(--ff-display); font-size: clamp(2rem, 4vw, 3rem); margin: .4rem 0 1.4rem; }
.tpl-cta-price { font-family: var(--ff-serif); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 2rem; color: var(--gold-light); }
.tpl-cta-note { margin-top: 1.4rem; font-size: .84rem; color: rgba(var(--ivory-a), .62); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 899px) {
  .tpl-hero-grid { grid-template-columns: 1fr; }
  .tpl-hero-visual { order: -1; }
  .tpl-hero-badge { left: 1rem; bottom: -1rem; }
  .tpl-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .tpl-features-grid { grid-template-columns: 1fr; }
  .included-row { gap: 1rem; }
}

/* ---------- KEEP EXPLORING ---------- */
/* Quiet row of onward routes, so a design page is never a dead end
   for a reader or for a crawler. */
.tpl-links {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--page);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem clamp(1.2rem, 3vw, 2.4rem);
  border-top: 1px solid var(--gold-border);
}
@media (max-width: 600px) {
  .tpl-links { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
}
