/* Brochures, FAQs and Inspiration pages. Built on the home page look (cg.css); scoped with pg- / pb- / pf- / pi-. */

.pg-hero, .pb-library, .pf-list, .pi-ideas { font-family: var(--cg-font); color: var(--cg-ink); }

/* ---------- hero (same shape as Bathrooms 2GO) ---------- */
.pg-hero { display: flex; align-items: center; min-height: clamp(520px, 62vh, 650px); background: var(--cg-paper); overflow: hidden; }
.pg-hero .cg-wrap.pg-hero__grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(48px, 6vw, 84px); }
.pg-hero__eyebrow { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cg-red); }
.pg-hero__title { margin: 0 0 18px; font-family: var(--cg-font-bold); font-size: clamp(36px, 5vw, 62px); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; color: var(--cg-ink); text-transform: none; }
.pg-hero__text p { max-width: 520px; margin: 0 0 28px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: #4a4a4a; }
.pg-hero__covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: center; justify-self: center; width: min(100%, 560px); }
.pg-hero__covers img { display: block; width: 100%; height: auto; aspect-ratio: 707 / 1000; object-fit: cover; border-radius: 6px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45); }
.pg-hero__covers img:nth-child(1) { transform: rotate(-4deg) translateY(18px); }
.pg-hero__covers img:nth-child(2) { transform: translateY(-14px); }
.pg-hero__covers img:nth-child(3) { transform: rotate(4deg) translateY(18px); }
.pg-hero__art { justify-self: center; width: min(100%, 520px); }
.pg-hero__art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.pg-hero__photo { margin: 0; justify-self: center; width: min(100%, 500px); transform: rotate(-2deg); transition: transform .3s ease; }
.pg-hero__photo:hover { transform: rotate(0); }
.pg-hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--cg-radius); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45); }
.pg-hero .cg-btn.cg-btn--red { color: #fff !important; }
.pg-hero .cg-btn.cg-btn--line { color: var(--cg-ink) !important; border-color: var(--cg-ink); }

/* ---------- brochures ---------- */
.pb-library { background: #fff; padding: clamp(48px, 7vw, 80px) 0; scroll-margin-top: 90px; }
.pb-search { position: relative; display: flex; align-items: center; width: min(100%, 340px); }
.pb-search svg { position: absolute; left: 16px; color: var(--cg-muted); pointer-events: none; }
.pb-search input { width: 100%; min-height: 48px; padding: 0 18px 0 44px; border: 1.5px solid var(--cg-line); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; color: var(--cg-ink); }
.pb-search input:focus { outline: none; border-color: var(--cg-ink); }
.pb-grid { grid-template-columns: repeat(5, 1fr); }
.pb-library .cg-bcard[hidden] { display: none; }
.pb-empty { margin: 8px 0 0; font-size: 16px; color: #4a4a4a; }
.pb-empty a { color: var(--cg-red); font-weight: 700; }

/* ---------- faqs ---------- */
.pf-list { background: #fff; padding: clamp(48px, 7vw, 80px) 0; scroll-margin-top: 90px; }
.pf-items { display: grid; gap: 12px; max-width: 900px; margin-top: 8px; }
.pf-item { background: var(--cg-paper); border-radius: var(--cg-radius); }
.pf-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; cursor: pointer; list-style: none; font-family: var(--cg-font-bold); font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--cg-ink); }
.pf-item summary::-webkit-details-marker { display: none; }
.pf-item summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.pf-item summary i::before, .pf-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--cg-red); transition: transform .2s ease; }
.pf-item summary i::after { transform: rotate(90deg); }
.pf-item[open] summary i { background: var(--cg-red); }
.pf-item[open] summary i::before, .pf-item[open] summary i::after { background: #fff; }
.pf-item[open] summary i::after { transform: rotate(0); }
.pf-answer { padding: 0 26px 24px; font-size: 16px; line-height: 1.7; color: #3d3d3d; }
.pf-answer p, .pf-answer ul { margin: 0 0 10px; }
.pf-answer ul { padding-left: 20px; }
.pf-answer li { margin: 0 0 6px; padding: 0; }
.pf-answer > :last-child { margin-bottom: 0; }

/* ---------- inspiration ---------- */
.pi-ideas { background: var(--cg-dark); padding: clamp(48px, 7vw, 80px) 0; scroll-margin-top: 90px; }
.pi-ideas .cg-eyebrow { font-size: 16px; letter-spacing: .14em; color: var(--cg-red); }
.pi-ideas .cg-h2 { color: #fff; }
.pi-count { margin: 0; font-size: 15px; color: #a39e98; }
.pi-count strong { color: #fff; }
.pi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 18px; margin-top: 8px; }
.pi-card__pic { overflow: hidden; aspect-ratio: 1; border-radius: var(--cg-radius); background: #222; }
.pi-card__pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pi-card:hover .pi-card__pic img { transform: scale(1.05); }
.pi-card h3 { margin: 14px 0 0; font-family: var(--cg-font-bold); font-size: 17px; font-weight: 700; line-height: 1.35; color: #fff; text-transform: none; }

@media (max-width: 1100px) { .pb-grid { grid-template-columns: repeat(4, 1fr); } .pi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .pg-hero { min-height: 0; }
  .pg-hero .cg-wrap.pg-hero__grid { grid-template-columns: 1fr; }
  .pb-grid { grid-template-columns: repeat(3, 1fr); }
  .pi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pb-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .pi-grid { grid-template-columns: 1fr; }
  .pg-hero .cg-btns .cg-btn { flex: 1 1 auto; }
  .pf-item summary { padding: 18px; font-size: 16px; }
  .pf-answer { padding: 0 18px 20px; }
  .pb-search { width: 100%; }
}

/* same side margins as the home page (set from the navbar by cg.js); beats the footer stylesheet's .cg-wrap */
@media (min-width: 1200px) {
  :is(.pg-hero, .pb-library, .pf-list, .pi-ideas) .cg-wrap { max-width: none; margin: 0; padding-left: var(--cg-pad, 50px); padding-right: var(--cg-pad, 50px); }
}
.pb-library .cg-wrap, .pf-list .cg-wrap, .pi-ideas .cg-wrap { padding-top: 0; padding-bottom: 0; }
.pg-hero .cg-wrap.pg-hero__grid { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(48px, 6vw, 84px); }
.pb-empty[hidden] { display: none; }
.pb-library .cg-pills { flex-wrap: wrap !important; }
.pb-library .cg-pill { padding: 0 14px; font-size: 14px; }
.pb-search input { border-radius: 999px !important; border: 1.5px solid var(--cg-line) !important; background: #fff !important; box-shadow: none !important; height: auto; }

/* ---- brochures by brand, with logos ---- */
.pb-brands { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 34px; }
.pb-brand { display: inline-flex; align-items: center; justify-content: center; min-width: 110px; height: 64px; padding: 8px 16px; border: 1.5px solid var(--cg-line); border-radius: var(--cg-radius); background: #fff; font-family: var(--cg-font-bold); font-size: 14px; font-weight: 700; color: var(--cg-ink) !important; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.pb-brand:hover { border-color: var(--cg-red); transform: translateY(-2px); }
.pb-brand img { display: block; max-width: 120px; max-height: 40px; width: auto; height: auto; object-fit: contain; }
.pb-group { padding: 34px 0; border-top: 1.5px solid var(--cg-line); scroll-margin-top: 100px; }
.pb-group__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.pb-group__logo { display: block; max-width: 220px; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.pb-group__name { margin: 0; font-family: var(--cg-font-bold); font-size: 28px; font-weight: 700; color: var(--cg-ink); text-transform: none; }
.pb-group__count { font-size: 14px; color: var(--cg-muted); white-space: nowrap; }
.pb-group__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px 18px; }
.pb-open { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--cg-red); }
@media (max-width: 1100px) { .pb-group__row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px) { .pb-group__row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .pb-group__row { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; } .pb-brand { min-width: 0; flex: 1 1 calc(50% - 10px); } }
/* logo on the left, its brochures beside it */
.pb-group { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px 36px; align-items: start; padding: 30px 0; }
.pb-group__head { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; margin: 0; position: sticky; top: 110px; }
.pb-group__row { display: flex; flex-wrap: wrap; gap: 22px 18px; }
.pb-group__row .cg-bcard { flex: 0 0 168px; width: 168px; }
@media (max-width: 820px) { .pb-group { grid-template-columns: 1fr; } .pb-group__head { position: static; flex-direction: row; align-items: center; justify-content: space-between; } }
@media (max-width: 560px) { .pb-group__row { gap: 20px 14px; } .pb-group__row .cg-bcard { flex: 0 0 calc(50% - 7px); width: calc(50% - 7px); } }
.pb-brand[data-light] { background: var(--cg-dark); border-color: var(--cg-dark); }
.pb-group[data-light] .pb-group__logo { background: var(--cg-dark); padding: 10px 16px; border-radius: 6px; }

/* ---- FAQs in two columns with a smooth open / close ---- */
.pf-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-items: start; margin-top: 8px; }
.pf-col { display: grid; gap: 12px; align-content: start; }
.pf-item { background: var(--cg-paper); border-radius: var(--cg-radius); }
.pf-q { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 22px 26px; border: 0; background: none; text-align: left; cursor: pointer; font-family: var(--cg-font-bold); font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--cg-ink); text-transform: none; }
.pf-q i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; transition: background .3s ease; }
.pf-q i::before, .pf-q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--cg-red); transition: transform .35s ease, background .3s ease; }
.pf-q i::after { transform: rotate(90deg); }
.pf-item.is-open .pf-q i { background: var(--cg-red); }
.pf-item.is-open .pf-q i::before, .pf-item.is-open .pf-q i::after { background: #fff; }
.pf-item.is-open .pf-q i::after { transform: rotate(0); }
.pf-q:focus-visible { outline: 3px solid var(--cg-red); outline-offset: -3px; border-radius: var(--cg-radius); }
.pf-a { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s ease, opacity .3s ease; }
.pf-item.is-open .pf-a { grid-template-rows: 1fr; opacity: 1; }
.pf-a > .pf-answer { min-height: 0; overflow: hidden; padding: 0 26px; transition: padding .4s ease; }
.pf-item.is-open .pf-a > .pf-answer { padding: 0 26px 24px; }
@media (max-width: 900px) { .pf-cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pf-q { padding: 18px; font-size: 16px; } .pf-a > .pf-answer, .pf-item.is-open .pf-a > .pf-answer { padding-left: 18px; padding-right: 18px; } .pf-item.is-open .pf-a > .pf-answer { padding-bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { .pf-a, .pf-a > .pf-answer, .pf-q i, .pf-q i::before, .pf-q i::after { transition: none; } }
/* the theme restyles buttons on hover; keep the questions exactly as they are */
.pf-q, .pf-q:hover, .pf-q:focus, .pf-q:active { background: none !important; color: var(--cg-ink) !important; border: 0 !important; border-radius: var(--cg-radius) !important; box-shadow: none !important; text-transform: none !important; }
.pf-q:hover span { color: var(--cg-red); }
.pf-item { overflow: hidden; }

/* ---- Brochures page like candg-brochures.html: fan in the hero, logo grid, one shelf of covers ---- */
.pb-fan { position: relative; height: 440px; justify-self: center; width: min(100%, 560px); }
.pb-fan img { position: absolute; top: 50%; left: 50%; width: 230px; height: auto; aspect-ratio: 520 / 735; object-fit: cover; border-radius: 8px; box-shadow: 0 24px 50px rgba(0,0,0,.22); transition: transform .4s ease; }
.pb-fan img:nth-child(1) { transform: translate(-110%, -48%) rotate(-9deg); }
.pb-fan img:nth-child(2) { transform: translate(-50%, -54%); z-index: 2; }
.pb-fan img:nth-child(3) { transform: translate(10%, -48%) rotate(9deg); }
.pb-fan:hover img:nth-child(1) { transform: translate(-120%, -48%) rotate(-12deg); }
.pb-fan:hover img:nth-child(3) { transform: translate(20%, -48%) rotate(12deg); }
.pb-fan::before { content: ""; position: absolute; left: 50%; top: 50%; width: 300px; height: 380px; transform: translate(-50%, -46%); border: 3px solid var(--cg-red); border-radius: 14px; }

.pb-nav { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 6px 0 64px; }
.pb-nav__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 104px; padding: 14px 10px 12px; border: 1px solid var(--cg-line); border-radius: var(--cg-radius); background: #fff; text-decoration: none !important; color: var(--cg-ink) !important; transition: border-color .2s, box-shadow .2s, transform .2s; }
.pb-nav__item:hover { border-color: var(--cg-red); box-shadow: 0 10px 24px rgba(0,0,0,.07); transform: translateY(-2px); }
.pb-nav__logo { display: grid; place-items: center; width: 100%; height: 40px; }
.pb-nav__logo img { max-width: 100%; max-height: 34px; width: auto; height: auto; object-fit: contain; }
.pb-nav__logo span { font-family: var(--cg-font-bold); font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.pb-nav__item.is-dark .pb-nav__logo { background: #000; border-radius: 6px; padding: 6px 8px; }
.pb-nav__item.is-dark .pb-nav__logo img { max-height: 26px; }
.pb-nav small { font-size: 12px; font-weight: 600; color: var(--cg-muted); }
.pb-nav__item:hover small { color: var(--cg-red); }

.pb-shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 22px; }
.pb-card { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 120px; border-radius: 12px; text-decoration: none !important; color: var(--cg-ink) !important; }
.pb-card__brand { display: flex; align-items: center; height: 26px; }
.pb-card__brand img { max-width: 120px; max-height: 22px; width: auto; height: auto; object-fit: contain; object-position: left center; }
.pb-card__brand span { font-family: var(--cg-font-bold); font-weight: 700; font-size: 14px; letter-spacing: .05em; }
.pb-card__brand.is-dark { align-self: flex-start; padding: 3px 7px; background: #000; border-radius: 4px; }
.pb-card__brand.is-dark img { max-height: 16px; }
.pb-card__cover { position: relative; display: block; overflow: hidden; aspect-ratio: 520 / 735; border-radius: 8px; background: var(--cg-paper); box-shadow: 0 1px 0 var(--cg-line), 0 10px 22px rgba(0,0,0,.09); transition: transform .3s, box-shadow .3s; }
.pb-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pb-card__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55)); opacity: 0; transition: opacity .3s; }
.pb-card:hover .pb-card__cover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--cg-line), 0 22px 40px rgba(0,0,0,.18); }
.pb-card:hover .pb-card__cover::after { opacity: 1; }
.pb-card__title { font-family: var(--cg-font-bold); font-weight: 700; font-size: 15px; line-height: 1.35; }
.pb-card__open { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 14px; font-weight: 700; color: var(--cg-red); }
.pb-card:hover .pb-card__open { text-decoration: underline; text-underline-offset: 4px; }
.pb-card.hl .pb-card__cover { outline: 3px solid var(--cg-red); outline-offset: 5px; }
@media (max-width: 1120px) { .pb-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); } .pb-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .pb-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pb-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pb-fan { height: 360px; } .pb-fan img { width: 180px; } .pb-fan::before { width: 240px; height: 300px; } }
@media (max-width: 640px) {
  .pb-nav { display: flex; overflow-x: auto; gap: 8px; margin: 0 -16px 40px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pb-nav::-webkit-scrollbar { display: none; }
  .pb-nav__item { flex: 0 0 124px; height: 92px; scroll-snap-align: start; }
  .pb-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
  .pb-fan { height: 290px; } .pb-fan img { width: 140px; } .pb-fan::before { width: 190px; height: 240px; }
}
