@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&family=Montserrat:wght@400;500;600&display=swap');

:root {
  --ink: #171717;
  --paper: #f7f6f3;
  --warm: #b49a72;
  --line: #ddd9d2;
  --white: #fff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.55;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(100% - 56px, 1640px);
  height: 150px;
  display: grid;
  grid-template-columns: minmax(390px, 520px) 1fr 150px;
  gap: 28px;
  align-items: center;
  color: white;
}
.brand { position: relative; display: inline-flex; width: 124px; flex-direction: column; align-items: center; line-height: 1; letter-spacing: .22em; }
.brand strong { font: 500 25px/1 Montserrat, sans-serif; }
.brand small { margin-top: 7px; font-size: 7px; letter-spacing: .22em; }
.roof-mark { width: 56px; height: 28px; border-top: 1px solid currentColor; transform: skewY(-25deg); position: absolute; top: -19px; left: 35px; }
.main-nav { display: flex; justify-content: center; gap: clamp(20px, 3vw, 44px); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.main-nav a, .header-cta { transition: opacity .2s ease; }
.main-nav a:hover, .header-cta:hover { opacity: .65; }
.header-cta { justify-self: end; border: 1px solid rgba(255,255,255,.6); padding: 13px 20px; text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }
.menu-toggle { display: none; background: none; border: 0; }
.menu-toggle span:not(.sr-only) { display: block; width: 25px; height: 1px; background: white; margin: 5px; }

.hero {
  min-height: 675px;
  position: relative;
  display: flex;
  align-items: center;
  color: white;
  background:
    linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.42) 37%, rgba(0,0,0,.06) 72%),
    url('images/kitchen-wide.webp') center/cover;
}
.hero-shade { position: absolute; inset: 0 auto 0 0; width: 41%; border-right: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.16); }
.hero-content { width: min(100% - 56px, var(--max)); margin: 115px auto 0; position: relative; }
.eyebrow, .section-kicker { color: var(--warm); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 600; }
.hero .eyebrow { color: white; }
h1, h2, h3 { font-family: Montserrat, Arial, sans-serif; font-weight: 400; }
h1 { margin: 18px 0 20px; font-size: clamp(55px, 6.2vw, 92px); line-height: .98; letter-spacing: .015em; }
.hero-copy { max-width: 480px; font-size: 18px; }
.hero-actions { display: flex; gap: 18px; margin-top: 36px; }
.button { min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid transparent; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 600; }
.button-light { background: white; color: var(--ink); }
.button-outline { border-color: rgba(255,255,255,.7); }
.button-dark { background: var(--ink); color: white; }

.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #f2f1ef; padding: 35px max(28px, calc((100vw - var(--max))/2)); }
.feature-strip article { text-align: center; padding: 8px 34px; border-right: 1px solid var(--line); }
.feature-strip article:last-child { border-right: 0; }
.feature-icon { display: block; height: 34px; color: var(--warm); font-size: 28px; }
.feature-strip h3 { margin: 8px 0; font-size: 13px; text-transform: uppercase; }
.feature-strip p { margin: 0; font-size: 12px; }

.section { width: min(100% - 56px, var(--max)); margin: auto; padding: 88px 0; }
.centered { text-align: center; }
.section h2, .eco-copy h2, .contact-panel h2 { margin: 9px 0 30px; font-size: clamp(30px, 3.2vw, 47px); line-height: 1.12; text-transform: uppercase; }
.intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10%; align-items: start; border-bottom: 1px solid var(--line); }
.intro-copy { font-size: 17px; color: #4b4b4b; }
.intro-copy p:first-child { margin-top: 0; }

.services { padding-top: 78px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.service-card { background: white; }
.service-card img { aspect-ratio: 1.05; object-fit: cover; }
.service-card > div { padding: 24px; }
.service-card h3 { margin: 0 0 12px; text-transform: uppercase; font-size: 16px; }
.service-card p { min-height: 86px; color: #555; font-size: 13px; }
.service-card a, .text-link { color: #9c8159; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

.detail-block { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; width: 100%; padding: 0; background: #ece9e3; }
.detail-block.reverse .detail-image { order: 2; }
.detail-block.reverse .detail-copy { order: 1; }
.detail-image { min-height: 510px; background-position: center; background-size: cover; }
.image-new-build { background-image: url('images/kitchen-island.webp'); }
.image-extension { background-image: url('images/illuminated-kitchen.webp'); }
.detail-copy { align-self: center; max-width: 590px; padding: 70px clamp(40px, 7vw, 110px); }
.detail-copy h2 { font-size: clamp(31px, 3.2vw, 48px); line-height: 1.12; text-transform: uppercase; }
.detail-copy p { color: #545454; }

.process { color: white; background: linear-gradient(rgba(0,0,0,.88),rgba(0,0,0,.88)), url('images/cabinet-detail.webp') center/cover; }
.process-inner { padding: 80px 0 88px; }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 25px; margin-top: 45px; }
.process-grid article { text-align: center; position: relative; }
.process-grid article:not(:last-child)::after { content:""; position:absolute; top:24px; left:65%; width:70%; border-top:1px dotted rgba(255,255,255,.45); }
.process-grid span { display: grid; place-items: center; width: 50px; height: 50px; margin: auto; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; font-size: 17px; }
.process-grid h3 { margin: 20px 0 8px; text-transform: uppercase; font-size: 13px; }
.process-grid p { margin: 0; color: #c9c9c9; font-size: 12px; }

.eco-grid { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 650px; }
.eco-copy { padding: 90px max(40px, calc((100vw - var(--max))/2)); padding-right: 8vw; align-self: center; }
.eco-copy ul { padding-left: 18px; margin-bottom: 32px; color: #555; }
.eco-image { background: url('images/warm-kitchen.webp') center/cover; }

.garden-commercial { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; }
.garden-commercial article { border-top: 1px solid var(--line); padding-top: 40px; }
.garden-commercial h2 { font-size: 30px; }
.garden-commercial p { color: #555; }

.contact-section { display: grid; grid-template-columns: .85fr 1.15fr; background: white; }
.contact-image { background: url('images/kitchen-island.webp') center/cover; min-height: 730px; }
.contact-panel { padding: 85px clamp(38px, 7vw, 100px); }
.contact-panel > p { color: #555; max-width: 650px; }
.contact-details { display: flex; gap: 40px; margin: 32px 0; padding: 25px 0; border-block: 1px solid var(--line); }
.contact-details a { display: flex; flex-direction: column; font-size: 14px; }
.contact-details strong { text-transform: uppercase; font-size: 10px; color: #8a7655; letter-spacing: .08em; margin-bottom: 4px; }
form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label span { display: block; margin-bottom: 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
input, textarea { width: 100%; border: 1px solid #d5d2cc; background: #fafafa; padding: 13px; }
textarea { resize: vertical; }

footer { background: #101010; color: white; padding: 42px max(28px, calc((100vw - var(--max))/2)); display: grid; grid-template-columns: 1.2fr 1fr 1fr .5fr; gap: 40px; align-items: center; font-size: 12px; }
footer a:hover { opacity: .7; }
.footer-brand { margin-top: 16px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; width: calc(100% - 36px); }
  .header-cta { display: none; }
  .menu-toggle { display: block; z-index: 12; }
  .main-nav { display: none; position: absolute; top: 75px; right: 0; width: 250px; padding: 25px; flex-direction: column; gap: 18px; background: #151515; }
  .main-nav.open { display: flex; }
  .hero-shade { width: 60%; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-strip article:nth-child(2) { border-right: 0; }
  .feature-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 25px; margin-bottom: 20px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid article::after { display: none; }
  .eco-grid, .contact-section { grid-template-columns: 1fr; }
  .eco-image { min-height: 520px; }
  .contact-image { min-height: 450px; }
  footer { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header { height: 78px; }
  .hero { min-height: 660px; }
  .hero-content { width: calc(100% - 36px); }
  .hero-shade { width: 100%; }
  h1 { font-size: 54px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 310px; }
  .feature-strip, .intro, .service-grid, .detail-block, .garden-commercial, .process-grid { grid-template-columns: 1fr; }
  .feature-strip article { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 10px; margin: 0 !important; }
  .section { width: calc(100% - 36px); padding: 64px 0; }
  .intro { gap: 20px; }
  .service-card p { min-height: 0; }
  .detail-block.reverse .detail-image, .detail-block.reverse .detail-copy { order: initial; }
  .detail-copy { padding: 55px 28px; }
  .detail-image { min-height: 360px; }
  .eco-copy, .contact-panel { padding: 60px 28px; }
  .eco-image { min-height: 380px; }
  .contact-details, .form-row { display: grid; grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { margin-inline: auto; }
}

/* CLPD brand logo */
.company-brand {
  width: 100%;
  max-width: 520px;
  background: #fff;
  padding: 15px 18px;
  border-radius: 6px;
  box-shadow: 0 5px 18px rgba(0,0,0,.24);
}
.company-brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.footer-brand {
  width: 280px;
  margin-top: 0;
}

@media (max-width: 1250px) {
  .site-header {
    grid-template-columns: minmax(300px, 390px) 1fr 130px;
    gap: 18px;
  }
  .main-nav { gap: 18px; font-size: 10px; }
  .company-brand { max-width: 390px; padding: 12px 14px; }
}

@media (max-width: 900px) {
  .site-header { height: 105px; }
  .company-brand { max-width: 300px; padding: 9px 11px; }
  .hero-content { margin-top: 80px; }
}

@media (max-width: 640px) {
  .company-brand { width: 235px; padding: 8px 10px; border-radius: 4px; }
  .footer-brand { margin-inline: auto; }
}


/* Multi-page additions */
.inner-page .site-header { position: relative; left: auto; transform: none; width: 100%; padding-inline: max(28px, calc((100vw - 1640px)/2)); background: #151515; }
.main-nav a.active { color: var(--warm); }
.page-hero { min-height: 310px; display: flex; align-items: end; color: white; background: linear-gradient(rgba(0,0,0,.62),rgba(0,0,0,.62)), url('images/cabinet-detail.webp') center/cover; }
.page-hero > div { width: min(100% - 56px, var(--max)); margin: 0 auto; padding: 75px 0 55px; }
.page-hero h1 { margin: 8px 0 0; font-size: clamp(48px, 6vw, 78px); }
.owner-grid { display: grid; grid-template-columns: minmax(260px, 390px) 1fr; gap: 60px; align-items: center; }
.owner-grid img { border-radius: 6px; }
.owner-grid h2 { margin-bottom: 8px; }
.owner-grid h3 { margin-top: 0; color: #777; }
.center-action { display: flex; justify-content: center; margin-top: 40px; }
.standalone-process { min-height: 520px; }
.simple-contact .contact-image { min-height: 650px; }
@media (max-width: 980px) { .inner-page .site-header { padding-inline: 18px; } }
@media (max-width: 640px) { .page-hero { min-height: 230px; } .page-hero > div { width: calc(100% - 36px); padding-bottom: 38px; } .owner-grid { grid-template-columns: 1fr; gap: 30px; } }

/* Unified white navigation bar */
.site-header {
  top: 24px;
  width: min(calc(100% - 48px), 1600px);
  height: 110px;
  padding: 14px 22px;
  grid-template-columns: minmax(360px, 510px) 1fr 165px;
  gap: 24px;
  color: #0b1b2d;
  background: rgba(255,255,255,.98);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0,0,0,.25);
}
.company-brand {
  max-width: 500px;
  width: 100%;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.company-brand img {
  max-height: 78px;
  width: 100%;
  object-fit: contain;
  object-position: left center;
}
.main-nav {
  gap: clamp(18px, 2.2vw, 38px);
  color: #0b1b2d;
  font-size: 11px;
  font-weight: 600;
}
.main-nav a {
  position: relative;
  padding: 14px 0;
}
.main-nav a:hover,
.main-nav a.active {
  color: #a77838;
  opacity: 1;
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: #a77838;
}
.header-cta {
  color: #fff;
  background: #a77838;
  border: 1px solid #a77838;
  border-radius: 2px;
  padding: 16px 22px;
  text-align: center;
  font-weight: 600;
}
.header-cta:hover { opacity: .86; }
.menu-toggle span:not(.sr-only) { background: #0b1b2d; }
.hero-content { margin-top: 150px; }

/* The same white bar on all inner pages */
.inner-page {
  padding-top: 24px;
}
.inner-page .site-header {
  position: relative;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 48px), 1600px);
  padding: 14px 22px;
  background: #fff;
}
.inner-page .page-hero { margin-top: 24px; }

@media (max-width: 1250px) {
  .site-header {
    grid-template-columns: minmax(300px, 390px) 1fr 135px;
    gap: 16px;
  }
  .company-brand { max-width: 390px; }
  .company-brand img { max-height: 68px; }
  .main-nav { gap: 16px; font-size: 10px; }
  .header-cta { padding: 14px 15px; }
}

@media (max-width: 980px) {
  .site-header,
  .inner-page .site-header {
    width: calc(100% - 28px);
    height: 92px;
    padding: 10px 16px;
    grid-template-columns: 1fr auto;
  }
  .company-brand { max-width: 330px; }
  .company-brand img { max-height: 64px; }
  .main-nav {
    top: 102px;
    right: 0;
    width: min(300px, calc(100vw - 28px));
    padding: 24px;
    background: #fff;
    color: #0b1b2d;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
  }
  .main-nav a { padding: 5px 0; }
  .hero-content { margin-top: 125px; }
}

@media (max-width: 640px) {
  .site-header,
  .inner-page .site-header {
    top: 12px;
    width: calc(100% - 20px);
    height: 76px;
    padding: 8px 12px;
  }
  .inner-page { padding-top: 12px; }
  .inner-page .site-header { top: 0; }
  .inner-page .page-hero { margin-top: 12px; }
  .company-brand { width: 250px; max-width: calc(100vw - 80px); }
  .company-brand img { max-height: 54px; }
  .main-nav { top: 86px; width: calc(100vw - 20px); }
  .hero-content { margin-top: 100px; }
}

/* Finishing pass: resilient layouts, navigation and enquiry drafting. */
[hidden] { display: none !important; }
:root { --warm: #806039; }
.hero, .page-hero, .process { background-color: #18232a; }
.process .section-kicker { color: #d7bd96; }
.page-hero .section-kicker { color: #e4c79f; }
.text-link, .service-card a { color: #795b32; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #aa762b; outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 20px; color: #fff; background: #0b1b2d; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
button, .button { cursor: pointer; }
.main-nav a { white-space: nowrap; }
.site-header { grid-template-columns: minmax(220px, 360px) 1fr auto; gap: 20px; }
.main-nav { gap: clamp(14px, 1.7vw, 28px); }
.footer-brand { max-width: 280px; width: 100%; }
footer { grid-template-columns: 1.1fr .8fr 1.1fr 1fr; gap: 24px; }
footer > *, .contact-panel, .form-row > *, .summary-grid > * { min-width: 0; }
footer a, .contact-details a { overflow-wrap: anywhere; }
.contact-details { flex-wrap: wrap; gap: 24px; }
.project-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; border-top: 1px solid var(--line); }
.project-cta h2 { font-size: clamp(28px, 3vw, 40px); text-transform: none; margin-bottom: 16px; }
.project-cta p { max-width: 640px; }
.project-cta .button { flex-shrink: 0; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.summary-grid article { border-top: 2px solid var(--warm); padding-top: 16px; }
.summary-grid h3 { font-size: 22px; }
.renovation-panel { display: grid; grid-template-columns: 1fr 2fr; gap: 36px; margin-top: 28px; padding: 28px; background: #ece9e3; align-items: center; }
.renovation-panel h3 { font-size: 26px; margin: 8px 0; }
.image-note, .enquiry-intro p, .enquiry-result p { font-size: 14px; color: #555; }
.enquiry-result { margin-top: 28px; padding: 24px; background: var(--paper); border: 1px solid var(--line); }
.enquiry-result label { margin-top: 24px; display: block; }
.enquiry-result .button { margin-top: 12px; }
.button-secondary { background: white; border-color: #777; color: var(--ink); }
@media (max-width: 1100px) {
  .site-header, .inner-page .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .header-cta { display: none; }
  .menu-toggle { display: block; width: 44px; height: 44px; padding: 4px; }
  .main-nav { display: none; position: absolute; top: calc(100% + 10px); right: 0; width: min(300px, calc(100vw - 28px)); padding: 24px; flex-direction: column; gap: 10px; background: white; border-radius: 6px; box-shadow: 0 8px 24px #0003; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; font-size: 12px; }
  html:not(.nav-ready) .site-header { position: relative; height: auto; display: flex; flex-wrap: wrap; }
  html:not(.nav-ready) .menu-toggle { display: none; }
  html:not(.nav-ready) .main-nav { display: flex; position: static; width: 100%; box-shadow: none; }
  footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .summary-grid, .renovation-panel { grid-template-columns: 1fr; gap: 20px; }
  .project-cta { flex-direction: column; align-items: flex-start; }
  footer { grid-template-columns: minmax(0, 1fr); }
  .contact-panel { padding: 42px 20px; }
  .simple-contact .contact-image { min-height: 280px; }
  input, textarea { font-size: 16px; }
  .enquiry-result { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Local project photography, presented without captions. */
.photo-strip { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; padding-top: 0; }
.photo-strip img { width: 100%; height: 360px; object-fit: cover; }
.hero { background-position: center, center 58%; }
.contact-image { background-position: 48% center; }
@media (max-width: 640px) {
  .photo-strip { grid-template-columns: 1fr 1fr; gap: 12px; }
  .photo-strip img { height: 220px; }
  .photo-strip img:first-child { grid-column: 1 / -1; height: 280px; }
  .hero { background-position: center, 62% center; }
}

/* Keep the footer logo legible against the dark footer. */
footer .footer-brand { background: #fff; padding: 14px 18px; border-radius: 6px; }

/* Independent service photo galleries, retaining the original card proportions. */
.service-card > .service-gallery { padding: 0; position: relative; overflow: hidden; aspect-ratio: 1.05; touch-action: pan-y; }
.gallery-track { display: flex; height: 100%; transition: transform 650ms ease; }
.service-gallery .gallery-track img { flex: 0 0 100%; width: 100%; height: 100%; min-width: 0; object-fit: cover; }
.gallery-controls { position: absolute; inset: auto 10px 10px; display: flex; align-items: center; gap: 6px; }
.gallery-controls[hidden] { display: none; }
.gallery-controls button { border: 0; border-radius: 50%; width: 34px; height: 34px; padding: 0; background: rgba(11,27,45,.85); color: white; cursor: pointer; font: 24px/1 sans-serif; }
.gallery-controls .gallery-pause { font-size: 14px; }
.gallery-count { margin-left: auto; padding: 5px 8px; border-radius: 12px; color: white; background: rgba(11,27,45,.85); font: 12px/1.2 sans-serif; }
.service-gallery:focus-visible, .gallery-controls button:focus-visible { outline: 3px solid #c6a875; outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .gallery-track { transition: none; } }

/* One shared gallery above the four service headings. */
.services > .service-gallery { position: relative; overflow: hidden; width: 100%; aspect-ratio: 2 / 1; margin-top: 36px; touch-action: pan-y; background: #0b1b2d; }
.services > .service-gallery .gallery-track img { object-fit: contain; }
.services > .service-gallery + .service-grid { margin-top: 18px; }
@media (max-width: 700px) { .services > .service-gallery { aspect-ratio: 1.05; } }
