/* ============================================================
   Steph Craigie Kitchens & Bathrooms — sckb.co.uk
   Palette drawn from the SCKB logo:
   burgundy #8E2B35 · olive green #4A5220 · warm grey · cream
   ============================================================ */

:root {
  --cream: #FAF7F2;
  --paper: #F3EEE6;
  --ink: #2B2A26;
  --soft: #6B675E;
  --green: #4A5220;
  --green-dark: #3A4019;
  --burgundy: #8E2B35;
  --burgundy-dark: #75232C;
  --line: #E2DCD0;
  --white: #FFFFFF;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(43, 42, 38, 0.10);
  --max: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 500; }

p + p { margin-top: 1em; }

img { max-width: 100%; display: block; }

a { color: var(--green); }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.kicker {
  display: inline-block;
  font-family: "Jost", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.9rem;
}

.lede { font-size: 1.15rem; color: var(--soft); max-width: 46em; }

section { padding: 72px 0; }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--green-dark);
  color: #EDEBDF;
  font-size: 0.85rem;
  padding: 7px 0;
}
.utility .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.utility a { color: #EDEBDF; text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility .area { opacity: 0.85; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .logo-img { height: 66px; width: auto; }
.brand .brand-text { line-height: 1.1; }
.brand .brand-name {
  font-family: "Jost", sans-serif; font-size: 1.25rem; font-weight: 400;
  letter-spacing: 0.06em; color: var(--green-dark);
}
.brand .brand-sub {
  font-family: "Jost", sans-serif; font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--soft);
}
nav.primary { display: flex; align-items: center; gap: 26px; }
nav.primary a {
  font-family: "Jost", sans-serif; font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.05em; text-decoration: none; color: var(--ink);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
nav.primary a:hover, nav.primary a[aria-current="page"] {
  color: var(--burgundy); border-bottom-color: var(--burgundy);
}
.head-cta { display: flex; align-items: center; gap: 18px; }
.head-phone {
  font-family: "Jost", sans-serif; font-weight: 500; text-decoration: none;
  color: var(--green-dark); white-space: nowrap;
}
.head-phone:hover { color: var(--burgundy); }

.btn {
  display: inline-block;
  font-family: "Jost", sans-serif; font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.06em;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--burgundy); color: #fff; }
.btn-primary:hover { background: var(--burgundy-dark); }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-light:hover { background: var(--paper); }

/* Hamburger */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 4px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  margin: 5px 0; transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 0;
  min-height: 72vh; display: flex; align-items: center;
}
.hero .bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(30, 32, 20, 0.82) 0%, rgba(30, 32, 20, 0.45) 55%, rgba(30, 32, 20, 0.15) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { max-width: 15em; margin-bottom: 0.5em; font-weight: 300; }
.hero .lede { color: rgba(255, 255, 255, 0.92); margin-bottom: 2rem; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-sub {
  min-height: 46vh;
}
.hero-sub .wrap { padding-top: 72px; padding-bottom: 72px; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.trust .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.trust .item { text-align: center; }
.trust .item strong {
  display: block; font-family: "Jost", sans-serif; font-weight: 500;
  font-size: 1.05rem; color: var(--green-dark);
}
.trust .item span { font-size: 0.88rem; color: var(--soft); }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .img { aspect-ratio: 16/10; overflow: hidden; background: var(--paper); }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 22px 24px 26px; }
.card .body h3 { margin-bottom: 0.4rem; color: var(--green-dark); }
.card .body p { font-size: 0.95rem; color: var(--soft); }
.card .link {
  margin-top: 0.9rem; font-family: "Jost", sans-serif; font-weight: 500;
  font-size: 0.9rem; letter-spacing: 0.05em; color: var(--burgundy);
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure {
  border-radius: var(--radius); overflow: hidden; background: var(--paper);
  position: relative;
}
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 16px 12px;
  background: linear-gradient(transparent, rgba(30, 30, 24, 0.72));
  color: #fff; font-size: 0.85rem; font-family: "Jost", sans-serif;
  letter-spacing: 0.04em;
}

/* Placeholder art for bathrooms (filler until real photos supplied) */
.ph {
  aspect-ratio: 4/3; border-radius: var(--radius); position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
.ph .cap {
  width: 100%; padding: 24px 16px 12px; color: #fff; font-size: 0.85rem;
  font-family: "Jost", sans-serif; letter-spacing: 0.04em;
  background: linear-gradient(transparent, rgba(30, 30, 24, 0.55));
}
.ph-1 { background: linear-gradient(135deg, #AEC0C4 0%, #DDE7E8 45%, #F4F6F5 100%); }
.ph-2 { background: linear-gradient(150deg, #C9CFC2 0%, #E8EAE0 50%, #F7F6F0 100%); }
.ph-3 { background: linear-gradient(120deg, #B9B4AC 0%, #DED9D0 55%, #F5F2EC 100%); }
.ph-4 { background: linear-gradient(160deg, #A9B7B0 0%, #D4DED8 50%, #F0F4F1 100%); }
.ph-5 { background: linear-gradient(140deg, #C4BDB4 0%, #E5E0D7 50%, #F8F5EF 100%); }
.ph-6 { background: linear-gradient(125deg, #B2BEC6 0%, #DCE3E7 55%, #F4F6F7 100%); }
.ph svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 78%; opacity: 0.5; }

/* ---------- Process ---------- */
.process { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
.step .num {
  font-family: "Jost", sans-serif; font-weight: 300; font-size: 3rem;
  color: var(--burgundy); line-height: 1;
}
.step h3 { margin: 10px 0 6px; }
.step p { font-size: 0.95rem; color: var(--soft); }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.split.rev { grid-template-columns: 0.95fr 1.05fr; }
.split .pic { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split .pic img { width: 100%; height: 100%; object-fit: cover; }

.check { list-style: none; margin-top: 1.2rem; }
.check li { padding-left: 30px; position: relative; margin-bottom: 0.65rem; }
.check li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--burgundy); border-bottom: 2.5px solid var(--burgundy);
  transform: rotate(-45deg);
}

/* ---------- Contract band ---------- */
.contract-band { background: var(--green-dark); color: #EFEDE2; }
.contract-band .kicker { color: #D8C08A; }
.contract-band h2 { color: #fff; }
.contract-band .lede { color: rgba(255, 255, 255, 0.85); }
.contract-band .stats { display: flex; gap: 48px; flex-wrap: wrap; margin: 28px 0; }
.contract-band .stats div strong {
  display: block; font-family: "Jost", sans-serif; font-weight: 400; font-size: 1.6rem; color: #fff;
}
.contract-band .stats div span { font-size: 0.9rem; opacity: 0.8; }

/* ---------- Reviews ---------- */
.review-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px;
}
.review-card blockquote { font-size: 1.02rem; }
.review-card blockquote::before { content: "\201C"; color: var(--burgundy); font-size: 2rem; line-height: 0; vertical-align: -0.35em; margin-right: 4px; font-family: Georgia, serif; }
.review-card .who {
  margin-top: 14px; font-family: "Jost", sans-serif; font-size: 0.88rem;
  letter-spacing: 0.04em; color: var(--soft);
}
.review-card .who strong { color: var(--green-dark); font-weight: 500; }
.scan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scan-grid img {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
}
.empty-state {
  background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 36px; text-align: center; color: var(--soft);
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: "Jost", sans-serif; font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.04em; color: var(--green-dark);
}
.field .opt { color: var(--soft); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: var(--cream); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.88rem; color: var(--soft); margin-top: 14px; }

/* ---------- Brand partners ---------- */
.partners { background: var(--white); border-top: 1px solid var(--line); }
.partners-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px;
}
.partner {
  position: relative; overflow: hidden; text-decoration: none;
  border-radius: var(--radius); min-height: 180px;
  background: linear-gradient(135deg, #3E4430 0%, #666B52 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  align-items: flex-start; gap: 3px; padding: 18px 18px 16px; text-align: left;
  transition: box-shadow 0.25s, transform 0.25s;
}
.partner:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.partner .pbg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; transition: transform 0.5s;
}
.partner:hover .pbg { transform: scale(1.05); }
.partner::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,20,16,0.05) 30%, rgba(20,20,16,0.78) 100%);
}
.partner .mark, .partner small { position: relative; z-index: 2; }
.partner .mark {
  font-family: "Jost", sans-serif; color: #fff; font-size: 1.2rem;
  letter-spacing: 0.14em; text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}
.partner small { color: rgba(255,255,255,0.88); font-size: 0.8rem; letter-spacing: 0.03em; }
.partners .tm-note { margin-top: 20px; font-size: 0.78rem; color: var(--soft); }
@media (max-width: 960px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } .partner { min-height: 150px; } }

/* ---------- Past projects gallery ---------- */
.pgallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pgallery .tile {
  position: relative; border: none; padding: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: var(--paper);
}
.pgallery .tile img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform 0.4s;
}
.pgallery .tile:hover img, .pgallery .tile:focus-visible img { transform: scale(1.04); }
.pgallery .tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 16px 12px; text-align: left;
  background: linear-gradient(transparent, rgba(30, 30, 24, 0.72));
  color: #fff; font-size: 0.85rem; font-family: "Jost", sans-serif;
  letter-spacing: 0.04em;
}
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(22, 22, 17, 0.93);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4vmin;
}
.lightbox img {
  max-width: 92vw; max-height: 84vh; width: auto; height: auto;
  border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox .lb-cap { color: #E8E5DB; margin-top: 14px; font-family: "Jost", sans-serif; letter-spacing: 0.05em; }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none; color: #fff; font-size: 2.2rem;
  cursor: pointer; line-height: 1; padding: 6px 10px;
}
@media (max-width: 960px) { .pgallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .pgallery { grid-template-columns: 1fr; } }

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(120deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  color: #fff; text-align: center;
}
.final-cta h2 { color: #fff; margin-bottom: 0.4em; }
.final-cta p { color: rgba(255, 255, 255, 0.9); max-width: 40em; margin: 0 auto 1.8em; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink); color: #CFCCC2; font-size: 0.92rem;
  padding: 56px 0 32px;
}
footer.site .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px;
}
footer.site h4 {
  color: #fff; font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px;
}
footer.site a { color: #CFCCC2; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
footer.site .legal {
  border-top: 1px solid #44423C; padding-top: 22px; font-size: 0.8rem; color: #98958B;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- Mobile sticky bar ---------- */
.mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--white); border-top: 1px solid var(--line);
  padding: 10px 12px; gap: 10px;
}
.mobile-bar a { flex: 1; text-align: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .gallery, .scan-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split, .split.rev { grid-template-columns: 1fr; }
  .trust .wrap { grid-template-columns: 1fr 1fr; gap: 18px; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 52px 0; }
  .utility .area { display: none; }
  .menu-toggle { display: block; }
  nav.primary {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 16px;
  }
  nav.primary.open { display: flex; }
  nav.primary a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .head-cta .btn { display: none; }
  .grid-2, .grid-3, .gallery, .form-grid, .scan-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 64px; }
  .hero { min-height: 60vh; }
}
