:root {
  --ink: #171b16;
  --muted: #5b625b;
  --line: #d9ded6;
  --paper: #fbf7ee;
  --surface: #ffffff;
  --accent: #f7bd22;
  --accent-dark: #8a5c00;
  --green: #226b4f;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  background: #181913;
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 800;
}

.nav a,
.footer-links a {
  text-decoration: none;
}

.header-call {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  padding: clamp(3.4rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
  background:
    linear-gradient(90deg, rgba(24,25,19,.92), rgba(24,25,19,.72)),
    url("/assets/work/work-29-fitted-wardrobe-assembly.jpg");
  background-image:
    linear-gradient(90deg, rgba(24,25,19,.92), rgba(24,25,19,.72)),
    image-set(
      url("/assets/work/work-29-fitted-wardrobe-assembly.webp") type("image/webp") 1x,
      url("/assets/work/work-29-fitted-wardrobe-assembly.jpg") type("image/jpeg") 1x
    );
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-inner,
.section,
.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 .7rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--muted);
}

.hero p {
  max-width: 710px;
  color: rgba(255,255,255,.88);
  font-size: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .78rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--accent);
  color: #171b16;
  font-weight: 900;
  text-decoration: none;
}

.btn.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}

.section {
  padding: clamp(3rem, 7vw, 5.8rem) clamp(1rem, 4vw, 2rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card,
.quote-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.checks {
  display: grid;
  gap: .7rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 1.45rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--green);
}

.local-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.local-work-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.local-work-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.local-work-grid figcaption {
  padding: .75rem .85rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.local-work-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--green);
  font-weight: 900;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.before-after-grid.one {
  grid-template-columns: minmax(0, 820px);
}

.before-after-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(45, 38, 26, 0.08);
}

.before-after-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.before-after-card figcaption {
  padding: 1rem 1.1rem 1.1rem;
  color: var(--muted);
}

.before-after-card figcaption strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.quote-form {
  display: grid;
  gap: .85rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}

label {
  display: grid;
  gap: .32rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: .72rem .8rem;
  border: 1px solid #cbd3ca;
  border-radius: var(--radius);
  font: inherit;
}

textarea {
  resize: vertical;
}

.photo-upload {
  border: 1px dashed #cbd3ca;
  border-radius: var(--radius);
  padding: .85rem;
  background: #f7f5ef;
}

.field-note {
  display: block;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
  margin: .15rem 0 .35rem;
}

input[type="file"] {
  min-height: auto;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  border: 0;
  border-radius: calc(var(--radius) - 4px);
  margin-right: .65rem;
  padding: .55rem .7rem;
  background: var(--accent);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: .6rem;
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
}

.consent input {
  min-height: 18px;
}

.legal {
  width: min(850px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.site-footer {
  align-items: flex-start;
}

.mobile-actions {
  display: none;
}

.site-footer p {
  margin: .3rem 0 0;
  color: rgba(255,255,255,.7);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255,255,255,.85);
}

@media (max-width: 900px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    padding: 10px 18px;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 22px 18px;
    max-height: calc(100svh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #181913;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.24);
  }

  .site-header.nav-open .nav {
    display: grid;
  }

  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 780px) {
  .site-footer,
  .split,
  .grid,
  .local-work-grid,
  .before-after-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .actions,
  .btn {
    width: 100%;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }

  .site-header {
    min-height: 68px;
    padding: 8px 14px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .header-call {
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  .header-call::before {
    content: "Call";
    font-size: 0.78rem;
  }

  .hero {
    padding: 4.4rem 1rem;
    background-image:
      linear-gradient(90deg, rgba(24,25,19,.94), rgba(24,25,19,.76)),
      url("/assets/work/work-29-fitted-wardrobe-assembly-640.webp");
  }

  h1 {
    font-size: 2.45rem;
  }

  .mobile-actions {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(24, 25, 19, 0.97);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(110%);
    transition: transform 0.22s ease;
  }

  .mobile-actions.is-visible {
    transform: translateY(0);
  }

  .mobile-actions a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--accent);
    color: var(--ink);
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-actions a:last-child {
    background: var(--green);
    color: #fff;
  }
}
