/* Colours sampled from the JJ Home Improvements flyer */
:root {
  --black: #040404;
  --panel: #0e0d0b;
  --gold: #ca9434;
  --gold-light: #dcae5c;
  --cream: #ece9e4;
  --white: #ffffff;
  --ink: #111111;
  --muted: #d6d3cd;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Barlow", "Segoe UI", Arial, sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
  --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 1.0625rem/1.5 var(--sans);
}

img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.icon { width: 1.2em; height: 1.2em; flex: none; }

.glyph {
  flex: none;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .6em 1.5em;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}

.btn:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--small { min-height: 42px; padding: .35em 1em; white-space: nowrap; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--black);
  border-bottom: 1px solid var(--gold);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 1.05rem/1.1 var(--serif);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.brand img { width: 76px; mix-blend-mode: lighten; }
.brand em { display: block; font-style: normal; font-size: .72em; color: var(--gold); }

.site-nav { display: flex; gap: 28px; margin-left: auto; }

.site-nav a {
  padding: 6px 0;
  font-weight: 500;
  letter-spacing: .03em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--gold-light); border-color: var(--gold); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 16px 64px;
  text-align: center;
}

.hero__corner {
  position: absolute;
  top: 0;
  width: clamp(120px, 27vw, 430px);
  mix-blend-mode: lighten;
}

.hero__corner--left { left: 0; }
.hero__corner--right { right: 0; }

.hero__content { position: relative; max-width: 660px; margin-inline: auto; }

.hero__logo {
  width: min(330px, 46vw);
  margin-inline: auto;
  mix-blend-mode: lighten;
}

.hero__title {
  margin-top: 4px;
  font: 500 clamp(2.5rem, 7vw, 4.75rem)/1.05 var(--serif);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero__title span {
  display: block;
  font-size: .62em;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold);
}

.ruled {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.ruled::before, .ruled::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
}

.badge {
  padding: .3em 1.8em;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
}

.hero__strap {
  margin-top: 24px;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero__lead { margin: 8px auto 0; max-width: 30em; font-size: 1.2rem; color: var(--muted); text-wrap: balance; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

/* Sections */
.section { padding: 8px 0 64px; }
.section--flush { padding-top: 0; }

.heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}

.heading::before, .heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
}

/* Photo cards */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
/* Column widths keep the wide and square images at the same height */
.finishes { display: grid; grid-template-columns: 1.71fr 1fr 1.71fr; gap: 14px; }

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: 8px;
}

.card img { width: 100%; object-fit: cover; }
.services .card img { aspect-ratio: 1; }
.finishes .card img { aspect-ratio: 325 / 190; }
.finishes .card--square img { aspect-ratio: 1; }

.card__label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px 12px;
  border-top: 1px solid var(--gold);
}

.card__label--centre { justify-content: center; min-height: 52px; text-align: center; }
.card__label .glyph { color: var(--gold-light); }

.card h3 {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* Recent work gallery */
.section__lead { margin: -12px 0 22px; color: var(--muted); text-align: center; }

.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.work .card { height: 100%; margin: 0; }
.work .card img { aspect-ratio: 3 / 4; }
.work figcaption { font-weight: 500; line-height: 1.25; }

/* Why us band */
.why { padding: 36px 0; background: var(--cream); color: var(--ink); }

.why__grid { display: grid; grid-template-columns: repeat(5, 1fr); }

.why__grid li {
  padding: 4px 20px;
  text-align: center;
}

.why__grid li + li { border-left: 1px solid var(--gold); }
.why__grid .glyph { width: 62px; height: 62px; stroke-width: 2.25; }
.why__grid h3 { margin-top: 10px; font-weight: 700; font-size: 1.1rem; text-transform: uppercase; }
.why__grid p { margin-top: 4px; }

/* Contact */
#contact { padding-top: 44px; }

.shout {
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.35rem);
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.shout span { color: var(--gold); }

.contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1000px;
  margin: 32px auto 0;
}

/* 2 × 2 grid: a line between the columns and between the rows */
.contact li:nth-child(even) { border-left: 1px solid var(--gold); }
.contact li:nth-child(n + 3) { border-top: 1px solid var(--gold); }
.contact li { padding-block: 12px; }

.contact__item {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  padding: 8px 28px;
  text-decoration: none;
}

.contact__item:hover strong { color: var(--gold-light); text-decoration: underline; }

.disc {
  flex: none;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-size: 2rem;
}

.contact__label { display: block; text-transform: uppercase; letter-spacing: .04em; line-height: 1.25; }

.contact strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
}

.contact__email { overflow-wrap: anywhere; }

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  font-size: 1.9rem;
  box-shadow: 0 4px 14px rgb(0 0 0 / .45);
  transition: transform .15s;
}

.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

/* Enquiry form */
.enquiry {
  max-width: 820px;
  margin: 44px auto 0;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: 8px;
}

.enquiry__title {
  margin-bottom: 20px;
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}

.enquiry__trap { display: none; }

.enquiry__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; letter-spacing: .02em; }
.field label span { color: var(--muted); font-weight: 400; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  background: var(--black);
  border: 1px solid #8a7040;
  border-radius: 4px;
  color: var(--white);
  font: inherit;
}

.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-light); }

.enquiry__note { margin: 16px 0; color: var(--muted); font-size: .95rem; }

.enquiry .btn { cursor: pointer; font-family: inherit; font-size: inherit; }
.enquiry .btn:disabled { cursor: wait; opacity: .7; }

.enquiry__status {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  background: var(--black);
}

.enquiry__status--error { border-color: #e2725b; }
.enquiry__status a { color: var(--gold-light); overflow-wrap: anywhere; }

/* Footer */
.site-footer {
  padding: 24px 0 28px;
  border-top: 1px solid var(--gold);
  text-align: center;
}

.site-footer__values {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.site-footer__values i { padding-inline: .3em; font-style: normal; }
.site-footer__script { margin-top: 2px; font: 500 2rem/1.3 var(--script); }
.site-footer__legal { margin-top: 8px; color: var(--muted); font-size: .875rem; }

/* Tablet */
@media (max-width: 1000px) {
  .site-nav { display: none; }
  .services { grid-template-columns: repeat(3, 1fr); }

  .contact { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .contact li:nth-child(even) { border-left: 0; }
  .contact li + li { border-top: 1px solid var(--gold); }
  .contact li { padding-block: 0; }
  .contact__item { padding: 16px 4px; }

  .why__grid { grid-template-columns: repeat(6, 1fr); row-gap: 28px; }
  .why__grid li { grid-column: span 2; padding-inline: 12px; }
  .why__grid li:nth-child(4) { grid-column: 2 / span 2; border-left: 0; }
  .why__grid li:nth-child(5) { grid-column: span 2; }
}

/* Phone */
@media (max-width: 620px) {
  :root { --header-height: 62px; }
  body { font-size: 1rem; }
  .brand img { width: 62px; }
  .brand__text { display: none; }
  .hero { padding-top: 14px; padding-bottom: 44px; }
  .hero__corner { width: 25vw; }
  .hero__logo { width: 44vw; }
  .hero__lead { font-size: 1.05rem; }
  .badge { font-size: 1rem; }
  .btn:not(.btn--small) { width: 100%; }
  .services { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .finishes { grid-template-columns: 1fr; }
  .work { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .work figcaption { font-size: .9rem; padding: 8px; }
  .glyph { width: 28px; height: 28px; }
  .card h3 { font-size: .9rem; }
  .card__label { padding: 8px; gap: 8px; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid li, .why__grid li:nth-child(4), .why__grid li:nth-child(5) { grid-column: auto; padding-inline: 10px; }
  .why__grid li + li { border-left: 0; }
  .why__grid li:nth-child(even) { border-left: 1px solid var(--gold); }
  .why__grid li:last-child { grid-column: 1 / -1; }
  .disc { width: 60px; height: 60px; font-size: 1.6rem; }
  .enquiry { padding: 20px 16px; }
  .enquiry__grid { grid-template-columns: 1fr; }
  .site-footer__values { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .whatsapp-float { transition: none; }
}
