/* Gaffneys Bathroom Services: Kitchen Splashbacks page layer (Phase 2 batch).
   Loads after site.css and service.css. Every rule is scoped to ks- classes or .page-kitchen.
   Theme: material and finish. A full-width line elevation of a kitchen wall (half tiled, half glass),
   a sample-board comparison, five numbered finish details and one genuine Gaffneys kitchen. */

.ks .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- A. Hero: heading row above a full-width wall elevation ---------- */
.ks-hero { padding: calc(var(--nav-top) + var(--nav-h) + 48px) 0 var(--sec); }
.ks-hero__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; }
.ks-hero h1 { margin: 18px 0 0; font-size: clamp(2.4rem, 1.3rem + 3vw, 4.1rem); line-height: 1.02; letter-spacing: -.014em; }
.ks-hero h1 span { display: block; color: var(--blue-ink); }
.ks-hero__lede { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.ks-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ks-hero__creds { margin: 20px 0 0; font: 500 var(--t-small)/1.4 var(--ui); color: var(--ink); }
.ks-hero__creds span { white-space: nowrap; }
.ks-hero__creds i { font-style: normal; color: var(--blue); }

.ks-wall { margin: 48px 0 0; padding: 36px 36px 18px; background: var(--ice); border-radius: var(--arc) var(--r) var(--arc) var(--r); }
.ks-wall__scroll { outline: none; border-radius: var(--r); }
.ks-wall__scroll:focus-visible { box-shadow: 0 0 0 3px var(--blue-ink); }
.ks-wall__svg { display: block; width: 100%; height: auto; }
.ks-lines path { fill: none; stroke: #5D6E80; stroke-width: 2; stroke-linejoin: round; }
.ks-lines path:nth-child(4) { fill: #fff; }
.ks-lines .thin { stroke-width: 3; stroke-linecap: round; stroke: #8796A6; }
.ks-win { fill: #F6FAFE; stroke: none; }
.ks-sheen { fill: rgba(255,255,255,.42); }
.ks-seam { stroke: var(--blue-ink); stroke-width: 2; stroke-dasharray: 6 6; }
.ks-chip rect { fill: #fff; stroke: var(--line-2); }
.ks-chip text { font: 600 13px var(--ui); fill: var(--ink); text-anchor: middle; letter-spacing: .04em; }
.ks-chip--glass rect { fill: var(--blue-ink); stroke: var(--blue-ink); }
.ks-chip--glass text { fill: #fff; }
.ks-gpo rect { fill: #fff; stroke: #5D6E80; stroke-width: 1.6; }
.ks-gpo circle { fill: #5D6E80; }
.ks-pins circle { fill: var(--blue-ink); stroke: #fff; stroke-width: 3; }
.ks-pins text { font: 600 17px var(--ui); fill: #fff; text-anchor: middle; }
.ks-wall__cap { margin-top: 14px; font-size: var(--t-xs); color: var(--grey); }

/* ---------- B. Sample-board comparison ---------- */
.ks-compare { padding: var(--sec) 0; background: var(--mist); }
.ks-compare__head { max-width: 760px; margin-bottom: 48px; }
.ks-compare__head .h2 { margin: 16px 0 18px; }
.ks-board { padding: 12px 40px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r) var(--arc) var(--r) var(--arc); }
.ks-table { width: 100%; border-collapse: collapse; }
.ks-table thead th { padding: 24px 24px 22px; text-align: left; vertical-align: bottom; font: 400 var(--t-h3)/1.1 var(--display); color: var(--ink); }
.ks-table thead td { width: 24%; }
.ks-swatch { display: block; width: 100%; max-width: 260px; height: 76px; margin-bottom: 18px; border-radius: var(--r); }
.ks-swatch--tile { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Cpath d='M0 .5H44M0 11.5H44M.5 0V11M22.5 11V22' stroke='%23B7C3CF' fill='none'/%3E%3C/svg%3E") 0 0 / 44px 22px repeat; box-shadow: inset 0 0 0 1px #B7C3CF; }
.ks-swatch--glass { background: linear-gradient(115deg, #CFE3F6 0%, #B8D6F2 40%, rgba(255,255,255,.75) 47%, #B8D6F2 54%, #A6CBEE 100%); box-shadow: inset 0 0 0 1px #9CC0E6; }
.ks-table tbody th, .ks-table tbody td { padding: 20px 24px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.55; }
.ks-table tbody th { font: 600 var(--t-small)/1.4 var(--ui); color: var(--ink); }
.ks-table tbody td:last-child { background: rgba(238,244,251,.6); }
.ks-table thead th:last-child { background: rgba(238,244,251,.6); border-radius: var(--r) var(--r) 0 0; }

/* ---------- C. Finish details ---------- */
.ks-details { padding: var(--sec) 0; }
.ks-details__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.ks-details__head { position: sticky; top: 120px; }
.ks-details__head .h2 { margin: 16px 0 18px; }
.ks-details__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.ks-details__list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ks-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-ink); color: #fff; font: 600 1rem/1 var(--ui); }
.ks-details__list h3 { margin: 6px 0 8px; font-size: var(--t-h4); line-height: 1.2; }
.ks-details__list p { margin: 0; }

/* ---------- D. Genuine kitchen ---------- */
.ks-real { padding: var(--sec) 0; background: var(--ice); }
.ks-real__grid { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 72px; align-items: center; }
.ks-real__main { position: relative; margin: 0; max-width: 470px; }
.ks-real__main img { display: block; width: 100%; max-width: 470px; height: auto; border-radius: var(--arc) var(--r) var(--arc) var(--r); box-shadow: 0 40px 70px -50px rgba(16,28,42,.6); }
.ks-real__tag { position: absolute; left: 14px; bottom: 14px; }
.ks-real__copy .h2 { margin: 16px 0 18px; }
.ks-real__copy > p { max-width: 36em; }
.ks-real__detail { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; margin: 28px 0 0; max-width: 480px; }
.ks-real__detail img { display: block; width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--line-2); }
.ks-real__detail figcaption { font-size: var(--t-small); color: var(--text); }
.ks-real__more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 22px; font-weight: 600; color: var(--blue-ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- E. Planning band ---------- */
.ks-plan { padding: var(--sec) 0 0; }
.ks-plan__band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; padding: 56px 60px; background: var(--blue-deep); color: rgba(255,255,255,.86); border-radius: var(--arc) var(--r) var(--arc) var(--r); }
.ks-plan__head .label { color: #BFDDF8; }
.ks-plan__head .h2 { margin-top: 16px; color: #fff; }
.ks-plan__head .h2 em { color: #BFDDF8; }
.ks-plan__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin: 0; padding: 0; list-style: none; align-self: center; }
.ks-plan__list li { padding-left: 18px; border-left: 2px solid var(--blue-soft); }
.ks-plan__list b { display: block; margin-bottom: 4px; font-weight: 600; color: #fff; }
.ks-plan__list span { font-size: var(--t-small); line-height: 1.5; }
.ks-plan__acts { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.ks-plan__tel { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 400 1.5rem/1 var(--display); color: #fff; }

/* ---------- F. Related ---------- */
.ks-rel { padding: var(--sec) 0; }
.ks-rel__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 40px; align-items: start; }
.ks-rel__title { font-size: var(--t-h3); line-height: 1.1; }
.ks-rel__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ks-rel__list a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px 54px 22px 22px; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.ks-rel__list a:hover { border-color: var(--blue-ink); background: var(--ice); }
.ks-rel__list b { font: 400 1.3rem/1.2 var(--display); color: var(--ink); }
.ks-rel__list span { margin-top: 6px; font-size: var(--t-small); line-height: 1.5; }
.ks-rel__list .ic { position: absolute; right: 20px; top: 26px; color: var(--blue-ink); }
.page-kitchen .qa p a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .ks-hero__top { gap: 40px; }
  .ks-details__grid { gap: 48px; }
  .ks-real__grid { gap: 48px; }
  .ks-plan__band { padding: 48px 40px; }
}
@media (max-width: 1023px) {
  .ks-hero__top { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
  .ks-hero__side { max-width: 620px; }
  .ks-details__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ks-details__head { position: static; }
  .ks-real__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ks-plan__band { grid-template-columns: minmax(0, 1fr); }
  .ks-plan__acts { grid-column: 1; }
  .ks-rel__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 760px) {
  .ks-hero { padding: calc(var(--nav-top) + var(--nav-h) + 28px) 0 56px; }
  .ks-hero__ctas { flex-direction: column; }
  .ks-hero__ctas .btn { width: 100%; }
  .ks-wall { margin: 36px calc(var(--pad) * -1 + 8px) 0; padding: 18px 0 14px 14px; border-radius: var(--arc) var(--r) var(--r) var(--r); }
  .ks-wall__scroll { overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 10px; scrollbar-width: thin; }
  .ks-wall__svg { width: 780px; max-width: none; }
  .ks-wall__cap { padding-right: 14px; }
  .ks-wall__cap::after { content: " Scroll sideways to see the whole wall."; }
  .ks-board { margin: 0 calc(var(--pad) * -1 + 8px); padding: 4px 0 8px; border-radius: var(--arc) var(--r) var(--r) var(--r); }
  .ks-table, .ks-table tbody, .ks-table tr, .ks-table th, .ks-table td { display: block; }
  .ks-table thead { display: grid; grid-template-columns: 1fr 1fr; }
  .ks-table thead tr { display: contents; }
  .ks-table thead td { display: none; }
  .ks-table thead th { padding: 18px 14px 10px; font-size: 1.35rem; }
  .ks-swatch { height: 52px; margin-bottom: 10px; }
  .ks-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .ks-table tbody th { grid-column: 1 / -1; padding: 16px 14px 4px; border: 0; }
  .ks-table tbody td { padding: 6px 14px 16px; border: 0; font-size: var(--t-small); }
  .ks-details__list li { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 22px 0; }
  .ks-n { width: 36px; height: 36px; font-size: .9375rem; }
  .ks-real__detail { grid-template-columns: 96px minmax(0, 1fr); }
  .ks-real__detail img { width: 96px; height: 96px; }
  .ks-plan__band { margin: 0 calc(var(--pad) * -1 + 8px); padding: 36px 20px; border-radius: var(--arc) var(--r) var(--r) var(--r); }
  .ks-plan__list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ks-plan__acts .btn { width: 100%; }
  .ks-rel__list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ks-rel__list a { transition: none; }
}
