/* Srinivasa Tiles — styles for the generated landing pages (product, category,
   city, resources). Loaded only by those pages; the hand-built pages are
   unaffected. Everything here reuses the design tokens from style.css. */

/* ---------- breadcrumbs (also used on the hand-built pages) ---------- */
.crumbs {
  padding: 96px 0 0;
  font-size: 13px;
  color: var(--stone);
}
.crumbs a { color: var(--stone); font-weight: 700; }
.crumbs a:hover { color: var(--clay-deep); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }
.crumb-sep { margin: 0 8px; opacity: 0.5; }

/* ---------- page head ---------- */
.pg-head { padding: 26px 0 34px; max-width: 760px; }
.pg-head .eyebrow a { color: inherit; }
.pg-head h1 { margin-top: 10px; }
.pg-head .lede { margin-top: 14px; }

main > .container > section,
.pg-wrap section { margin-bottom: 52px; }

main h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--ink);
}
main h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 26px 0 8px;
  color: var(--ink);
}
main p { color: var(--ink-soft); line-height: 1.75; max-width: 78ch; }

/* ---------- spec table ---------- */
.spec-table {
  width: 100%; max-width: 620px; border-collapse: collapse;
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--cream-line);
}
.spec-table th, .spec-table td {
  padding: 12px 16px; text-align: left; font-size: 14.5px;
  border-top: 1px solid var(--cream-line);
}
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: none; }
.spec-table th { width: 42%; color: var(--stone); font-weight: 700; }
.spec-table td { color: var(--ink); font-weight: 600; }

.grade-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; list-style: none; }
.grade-list li {
  background: var(--cream-deep); color: var(--clay-deep);
  font-size: 12.5px; font-weight: 800;
  padding: 5px 12px; border-radius: var(--radius-pill);
}
.grade-list .grade-lead { background: none; color: var(--stone); padding-left: 0; }

/* ---------- product gallery ---------- */
.pg-shots {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.pg-shot { margin: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--cream-deep); box-shadow: var(--shadow-sm); }
/* Fixed aspect + explicit width/height on the <img> reserve space before load,
   so images never shift the layout (protects CLS). */
.pg-shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- category grid ---------- */
.cat-grid {
  display: grid; gap: 18px; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.cat-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm), 0 0 0 1px var(--cream-line); }
.cat-card a { display: flex; flex-direction: column; height: 100%; color: inherit; }
.cat-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.cat-card-name { padding: 14px 14px 2px; font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.cat-card-meta { padding: 0 14px 14px; font-size: 12.5px; color: var(--stone); font-weight: 600; }
.cat-card:hover { box-shadow: var(--shadow-md), 0 0 0 1px var(--clay-bright); }

/* ---------- lists / CTA / FAQ ---------- */
.rel-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.rel-list li {
  background: var(--white); border-radius: var(--radius-pill);
  box-shadow: 0 0 0 1px var(--cream-line); padding: 8px 16px; font-size: 14px; font-weight: 700;
}
.rel-list li a { color: var(--ink); }
.rel-list li:hover { box-shadow: 0 0 0 1px var(--clay-bright); }

.pg-cta {
  background: linear-gradient(155deg, #FFFDF9 0%, var(--cream-deep) 100%);
  border-radius: var(--radius-lg); padding: 32px 34px;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--cream-line);
}
.pg-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.pg-faq h3 { font-size: 18px; }
.pg-faq p { margin-bottom: 6px; }

/* ---------- resources ---------- */
.res-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.res-card {
  display: block; background: var(--white); border-radius: var(--radius-md);
  padding: 20px; box-shadow: var(--shadow-sm), 0 0 0 1px var(--cream-line); color: inherit;
}
.res-card:hover { box-shadow: var(--shadow-md), 0 0 0 1px var(--clay-bright); }
.res-card strong { display: block; font-family: var(--font-display); font-size: 17px; margin-bottom: 5px; }
.res-card span { font-size: 13px; color: var(--stone); }
.res-empty-note { padding: 22px; background: var(--cream); border: 1.5px dashed var(--cream-line); border-radius: var(--radius-md); }

/* ---------- testimonials (rendered only when data exists) ---------- */
.testi-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.testi-card { background: var(--white); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm), 0 0 0 1px var(--cream-line); }
.testi-card blockquote { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.testi-who { margin-top: 14px; font-size: 13px; font-weight: 800; color: var(--ink); }
.testi-loc { font-size: 12.5px; color: var(--stone); font-weight: 600; }

@media (max-width: 720px) {
  .crumbs { padding-top: 84px; font-size: 12px; }
  main h2 { font-size: 23px; }
  .pg-cta { padding: 24px 20px; }
}
