/* ============================================================
   Budget Furniture Krish — Verulam, KZN
   Palette: desaturated 70s photo (faded print, warm neutrals)
   ============================================================ */

:root {
  --bg:      #efe6d0;
  --bg-2:    #e4d8bd;
  --paper:   #f7f1e2;
  --ink:     #3a2f1a;
  --ink-2:   #5c4d2e;
  --muted:   #7d6d4c;
  --a:       #a67c00;   /* mustard */
  --b:       #6b7a3a;   /* avocado */
  --c:       #c04e1a;   /* burnt sienna */
  --line:    rgba(58, 47, 26, 0.18);
  --line-2:  rgba(58, 47, 26, 0.32);

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --sect: clamp(4.5rem, 9vw, 8rem);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
}

/* --- dark mode --------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #1c1a14;
    --bg-2:   #232019;
    --paper:  #262218;
    --ink:    #f0e7d2;
    --ink-2:  #d9cdb0;
    --muted:  #a99a78;
    --a:      #d9a83c;
    --b:      #9aab5c;
    --c:      #e0703a;
    --line:   rgba(240, 231, 210, 0.16);
    --line-2: rgba(240, 231, 210, 0.3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c); text-underline-offset: 3px; }
a:hover { color: var(--a); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

/* --- grain overlay (faded print feel) ---------------------------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  body::after { mix-blend-mode: screen; opacity: 0.18; }
}

/* --- scroll progress strip --------------------------------------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  background: var(--line);
}
.progress span {
  display: block;
  height: 100%;
  background: var(--c);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .progress span {
    animation: fill linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes fill { to { transform: scaleX(1); } }
}

/* --- header ------------------------------------------------------ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; }
.brand-text em { font-style: normal; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--c); }
.head-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.15rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.head-cta:hover { background: var(--c); color: #fff; }

/* --- buttons ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.6rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-solid { background: var(--c); color: #fff; }
.btn-solid:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-wide { width: 100%; }

/* --- hero -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  isolation: isolate;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(24,18,8,0.72) 0%, rgba(24,18,8,0.55) 45%, rgba(24,18,8,0.82) 100%);
}
.hero-inner { max-width: 780px; }
.hero .eyebrow { color: rgba(255,255,255,0.78); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 1.2rem + 4.4vw, 4.1rem);
  font-weight: 600;
  text-wrap: balance;
}
.caret { display: inline-block; margin-left: 0.08em; color: var(--a); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.18rem);
  max-width: 58ch;
  margin: 1.4rem auto 0;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.2rem; }
.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2.4rem;
  margin: 3rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.28);
}
.hero-facts li { display: flex; flex-direction: column; color: #fff; }
.hero-facts strong { font-family: var(--serif); font-size: 1rem; font-weight: 600; }
.hero-facts span { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* --- section heads ---------------------------------------------- */
.section-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.9rem); text-wrap: balance; }
.section-lede { margin-top: 1rem; color: var(--ink-2); text-wrap: pretty; }
.section-head--tight { margin-bottom: 1.8rem; }

/* --- intro ------------------------------------------------------- */
.intro { background: var(--bg); padding: var(--sect) 0; }
.intro-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.intro-copy h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem); margin-bottom: 1.2rem; text-wrap: balance; }
.intro-copy p { color: var(--ink-2); max-width: 56ch; }
.intro-stats { margin: 2rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.9rem; }
.intro-stats div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; align-items: baseline; }
.intro-stats dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.intro-stats dd { margin: 0; font-size: 0.95rem; color: var(--ink); }
.intro-media { margin: 0; }
.intro-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.intro-media figcaption { margin-top: 0.7rem; font-size: 0.8rem; color: var(--muted); }

/* --- services ---------------------------------------------------- */
.services { background: var(--bg-2); padding: var(--sect) 0; }
.service-list { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.service { display: grid; gap: 1.2rem; }
.service figure { margin: 0; overflow: hidden; }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.service:hover img { transform: scale(1.03); }
.service-body h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); margin-bottom: 0.5rem; }
.service-body p { color: var(--ink-2); font-size: 0.96rem; }

/* --- signature: cursor reveal ------------------------------------ */
.reveal-section { background: var(--ink); color: var(--bg); padding: var(--sect) 0; }
.reveal-section .eyebrow { color: var(--a); }
.reveal-section .section-lede { color: rgba(239,230,208,0.75); }
.reveal {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #0f0d08;
}
.reveal-img { width: 100%; height: 100%; object-fit: cover; }
.reveal-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0f0d08;
  --r: 0px;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--cx, 50%) var(--cy, 50%), transparent 0, transparent calc(var(--r) - 1px), #000 var(--r));
  mask-image: radial-gradient(circle var(--r) at var(--cx, 50%) var(--cy, 50%), transparent 0, transparent calc(var(--r) - 1px), #000 var(--r));
  transition: --r 0.12s linear;
}
.reveal-hint {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(239,230,208,0.55);
}
.reveal.is-active .reveal-hint { opacity: 0; transition: opacity 0.3s ease; }
.no-mask .reveal-cover { display: none; }

/* --- reviews ----------------------------------------------------- */
.reviews { background: var(--paper); padding: var(--sect) 0; }
.review-grid { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); }
.review {
  margin: 0;
  padding-top: 1.4rem;
  border-top: 2px solid var(--ink);
}
.review p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}
.review footer { margin-top: 1.1rem; display: flex; flex-direction: column; }
.review cite { font-style: normal; font-weight: 600; font-size: 0.92rem; }
.review footer span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.reviews-note { margin-top: 2.4rem; font-size: 0.85rem; color: var(--muted); }

/* --- contact ----------------------------------------------------- */
.contact { background: var(--bg); padding: var(--sect) 0; }
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.contact-cards { display: grid; gap: 1.6rem; align-content: start; }
.ccard { padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.ccard:last-child { border-bottom: 0; padding-bottom: 0; }
.ccard h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.ccard p { font-size: 0.95rem; color: var(--ink-2); }
.ccard a { color: var(--ink); text-decoration-color: var(--line-2); }
.ccard a:hover { color: var(--c); }
.hours { margin: 0; display: grid; gap: 0.35rem; }
.hours div { display: grid; grid-template-columns: 1fr auto; gap: 1rem; font-size: 0.92rem; }
.hours dt { color: var(--ink-2); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--ink); }

.enquiry {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.enquiry h3 { font-size: 1.3rem; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 0.75rem 0.85rem;
  min-height: 48px;
  width: 100%;
  border-radius: 0;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c); outline: 2px solid var(--c); outline-offset: 1px; }
.form-status { margin-top: 1rem; font-size: 0.9rem; color: var(--b); }
.form-status.is-error { color: var(--c); }
.form-note { margin-top: 0.9rem; font-size: 0.78rem; color: var(--muted); }

/* --- footer ------------------------------------------------------ */
.site-foot { background: var(--ink); color: var(--bg); padding: clamp(3rem, 6vw, 4.5rem) 0 5rem; }
.site-foot a { color: var(--bg); text-decoration-color: rgba(239,230,208,0.4); }
.site-foot a:hover { color: var(--a); }
.foot-grid { display: grid; gap: 2.2rem; }
.foot-brand strong { font-family: var(--serif); font-size: 1.25rem; display: block; margin-bottom: 0.7rem; }
.foot-brand p { font-size: 0.9rem; color: rgba(239,230,208,0.72); max-width: 42ch; }
.foot-col h4 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--a); margin-bottom: 0.8rem; }
.foot-col p { font-size: 0.9rem; color: rgba(239,230,208,0.85); }
.foot-base {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(239,230,208,0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(239,230,208,0.65);
}
.foot-base p { margin: 0; }
.attribution { position: static; text-align: center; margin: 2rem 0 0; font-size: 0.72rem; opacity: 0.55; }
.attribution a { color: inherit; }

/* --- reveal-on-scroll -------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .intro-copy, .intro-media, .service, .review, .ccard, .enquiry, .section-head {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 26%;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* --- responsive -------------------------------------------------- */
@media (min-width: 700px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
@media (min-width: 980px) {
  .intro-grid { grid-template-columns: 1.05fr 0.95fr; }
  .service-list { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 0.95fr 1.05fr; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .site-nav { display: none; }
  .head-cta { margin-left: auto; }
}
@media (max-width: 560px) {
  .brand-text em { display: none; }
  .hero-facts { gap: 0.9rem 1.6rem; }
  .hero-facts li { flex: 1 1 40%; }
  .intro-stats div { grid-template-columns: 1fr; gap: 0.15rem; }
  .reveal { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .service img { transition: none; }
  .reveal-cover { transition: none; }
}
