/* ---------- 1. Colours & type: change these first ---------- */
:root {
  --ink: #1d2327;        /* text */
  --paper: #eceeed;      /* page background */
  --white: #ffffff;
  --steel: #5b6770;      /* secondary text */
  --line: #c4c9cb;       /* borders */
  --accent: #e8590c;     /* buttons and highlights */
  --accent-dark: #c44a08;
  --font: "Helvetica Neue", Arial, sans-serif;
  --max: 1100px;
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font: 17px/1.6 var(--font); color: var(--ink); background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; overflow-wrap: anywhere; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: clamp(52px, 8vw, 72px) 0; scroll-margin-top: 80px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
h3 { font-size: 1.2rem; font-weight: 700; }
.lead { color: var(--steel); max-width: 60ch; margin-bottom: 36px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn { display: inline-block; min-height: 44px; padding: 10px 26px; background: var(--accent); color: var(--white);
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }

/* ---------- 3. Header ---------- */
header { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 10; }
header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: block; text-decoration: none; }
.logo img { width: 48px; height: 48px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }
nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--accent); }

/* ---------- 4. Hero: photo mosaic first, intro below ---------- */
.brand-heading { padding: 0 20px 24px; text-align: center; font-size: clamp(1.8rem, 5vw, 3rem); }
.recent-work { padding-top: 24px; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 24vw, 260px); gap: 4px; background: var(--ink); }
.tile { position: relative; display: block; overflow: hidden; text-decoration: none; color: var(--white); }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile img, .tile .ph { width: 100%; height: 100%; object-fit: cover; }
.photo-transition { background: var(--ink); }
@media (min-width: 761px) {
  .photo-transition { grid-column: 3 / span 2; }
  .kitchen-transition { grid-column: 3 / span 2; }
}
.photo-transition img { position: absolute; inset: 0; opacity: 1; animation: floor-photo-first 8s ease-in-out infinite; }
.photo-transition img + img { opacity: 0; animation-name: floor-photo-second; }
.kitchen-transition img { animation-delay: 4s; }
@keyframes floor-photo-first {
  0%, 40%, 100% { opacity: 1; }
  50%, 90% { opacity: 0; }
}
@keyframes floor-photo-second {
  0%, 40%, 100% { opacity: 0; }
  50%, 90% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-transition img { animation: none; }
  .photo-transition img + img { opacity: 0; }
}
.tile .cap { position: absolute; inset: auto 0 0 0; padding: 36px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7)); font-weight: 700; line-height: 1.3; }
.tile .cap span { display: block; font-weight: 400; font-size: 0.85rem; opacity: 0.85; }
.tile:hover .ph, .tile:hover img { filter: brightness(1.08); }
/* ---------- 5. Skills / services ---------- */
.services { background: var(--white); padding-top: 32px; }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0;
  border-top: 2px solid var(--ink); }
.skill { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line); }
.skill h3 { margin-bottom: 8px; }
.skill p { color: var(--steel); font-size: 0.97rem; }

/* ---------- 7. Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.project { background: var(--white); border: 2px solid var(--ink); }
.project .photo { aspect-ratio: 4 / 3; background: var(--line); object-fit: cover; width: 100%; }
/* Placeholder until you add real photos: replace <div class="photo ph"> with <img class="photo" src="..." alt="..."> */
.ph { display: grid; place-items: center; color: var(--steel); font-size: 0.9rem;
  background: repeating-linear-gradient(135deg, #d5d9da 0 12px, #cdd2d3 12px 24px); }
.project .body { padding: 18px 18px 6px; }
.project h3 { margin-bottom: 4px; }
.project .body p { color: var(--steel); font-size: 0.97rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; border-top: 1px solid var(--ink); }
.specs div { padding: 10px 18px; border-bottom: 1px solid var(--line); }
.specs div:nth-child(odd) { border-right: 1px solid var(--line); }
.specs dt { font-size: 0.8rem; color: var(--steel); }
.specs dd { font-weight: 700; font-size: 0.95rem; }

/* ---------- 8. Call us ---------- */
.call { text-align: center; padding: 24px 0; }
.call .wrap { background: var(--white); border: 2px solid var(--ink); padding-top: 24px; padding-bottom: 24px; }
.call h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.call .number { display: inline-block; font-size: clamp(2.2rem, 8vw, 4.5rem); font-weight: 800;
  letter-spacing: -0.02em; text-decoration: none; color: var(--accent); margin: 8px 0 0; }
.call .number:hover { color: var(--accent-dark); }
.call p { color: var(--steel); }
.call .lead { margin-left: auto; margin-right: auto; }
.call-link { background: var(--accent); padding: 8px 16px; font-weight: 700; }
nav a.call-link:hover { color: var(--white); background: var(--accent-dark); }

/* ---------- 9. Reviews ---------- */
.reviews { background: var(--white); }
.reviews .lead a { color: var(--accent-dark); font-weight: 700; }
.review-card { max-width: 760px; min-height: 160px; margin: 16px auto 0; padding: 18px 22px; border: 2px solid var(--ink); text-align: center; transition: opacity 180ms ease, transform 180ms ease; }
.review-card.is-changing { opacity: 0; transform: translateY(8px); }
.review-rating { color: var(--accent); letter-spacing: 0.12em; font-size: 1.1rem; }
.review-title { margin-top: 8px; }
.review-quote { margin: 8px auto; max-width: 65ch; color: var(--steel); }
.review-author { font-weight: 700; }

/* ---------- 10. Mobile ---------- */
@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .recent-work { padding-top: 16px; }
  .call { padding-top: 16px; padding-bottom: 16px; }
  .call .wrap { padding-top: 18px; padding-bottom: 18px; }
  .services { padding-top: 24px; }
  header .wrap { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; }
  .logo img { width: 42px; height: 42px; }
  nav { min-width: 0; gap: 6px; }
  nav a { font-size: 0.82rem; white-space: nowrap; }
  nav a.call-link { padding-left: 8px; padding-right: 8px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-auto-rows: clamp(120px, 35vw, 190px); }
  .tile.big { grid-column: span 2; }
  .tile .cap { padding: 30px 10px 10px; font-size: 0.95rem; }
  .projects { gap: 18px; }
  .project .body { padding: 16px 14px 6px; }
  .specs div { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 380px) {
  body { font-size: 16px; }
  nav { gap: 4px; }
  .logo img { width: 38px; height: 38px; }
  nav a { font-size: 0.76rem; }
  nav a.call-link { padding-left: 6px; padding-right: 6px; }
  .tile .cap span { font-size: 0.78rem; }
}
