/* ==========================================================================
   K&K Furnitures — base: tokens, reset, typography, utilities
   Palette: "Workshop Linen" — peach / porcelain / ember
   ========================================================================== */

:root{
  /* colour */
  --ember:#E0651C;        /* primary — every CTA */
  --ember-dark:#BE5215;   /* hover */
  --peach:#F7CDB2;        /* secondary */
  --peach-soft:#FCE7D8;
  --clay:#A8431C;         /* accent */
  --porcelain:#FDF7F2;    /* surface */
  --porcelain-2:#F6EDE5;
  --espresso:#2B1E17;     /* text */
  --espresso-60:#6B584C;
  --walnut:#241812;       /* depth */
  --walnut-80:rgba(36,24,18,.80);
  --walnut-92:rgba(36,24,18,.92);
  --brass:#C9922E;
  --line:rgba(43,30,23,.14);

  /* type */
  --display:'Cormorant Garamond',Georgia,serif;
  --body:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;

  /* spacing — 8px grid */
  --s1:8px; --s2:16px; --s3:24px; --s4:32px; --s5:48px;
  --s6:64px; --s7:80px; --s8:96px; --s9:128px;

  --container:1200px;
  --nav-h:72px;
  --radius:10px;
  --radius-sm:6px;
  --shadow:0 18px 48px -22px rgba(43,30,23,.42);
  --ease:cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{box-sizing:border-box}
*{margin:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  font-family:var(--body);
  font-size:1rem;
  line-height:1.65;
  color:var(--espresso);
  background:var(--porcelain);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img,svg,video,canvas{display:block;max-width:100%}
img{height:auto}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
a{color:inherit;text-decoration:none}

/* ---------- typography ---------- */
h1,h2,h3,h4{
  font-family:var(--display);
  font-weight:600;
  line-height:1.12;
  letter-spacing:-.02em;
  text-wrap:balance;
}
h1{font-size:clamp(2.6rem,6.2vw,5.1rem)}
h2{font-size:clamp(2rem,4.4vw,3.4rem);line-height:1.14}
h3{font-size:clamp(1.3rem,2.1vw,1.7rem);line-height:1.2}
p{max-width:65ch}
p+p{margin-top:var(--s2)}

.eyebrow{
  font-family:var(--body);
  font-size:.72rem;font-weight:700;
  text-transform:uppercase;letter-spacing:.16em;
  color:var(--clay);
  display:flex;align-items:center;gap:.6rem;
}
.eyebrow::before{content:'';width:26px;height:1px;background:var(--clay);flex:none}
.eyebrow.is-centered{justify-content:center}
.on-dark .eyebrow{color:var(--peach)}
.on-dark .eyebrow::before{background:var(--peach)}

.lead{font-size:clamp(1.02rem,1.5vw,1.16rem);color:var(--espresso-60)}
.on-dark{color:var(--porcelain)}
.on-dark .lead{color:rgba(253,247,242,.76)}

/* ---------- layout ---------- */
.container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:var(--s3)}
@media(min-width:768px){.container{padding-inline:var(--s4)}}

section{padding-block:clamp(3rem,7vw,7rem)}
.section-head{margin-bottom:var(--s5);display:grid;gap:var(--s1)}
.section-head.is-centered{justify-items:center;text-align:center}
.section-head p{margin-top:var(--s1)}

.grid{display:grid;gap:var(--s3)}
@media(min-width:640px){.grid-2{grid-template-columns:repeat(2,1fr)}}
@media(min-width:900px){.grid-3{grid-template-columns:repeat(3,1fr)}
  .grid-4{grid-template-columns:repeat(4,1fr)}}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
  min-height:48px;padding:.85rem 2rem;
  border-radius:4px;
  font-weight:700;font-size:.94rem;letter-spacing:.01em;
  transition:background .2s var(--ease),color .2s var(--ease),
             transform .2s var(--ease),border-color .2s var(--ease);
  text-align:center;
}
.btn-primary{background:var(--ember);color:#fff}
.btn-primary:hover{background:var(--ember-dark)}
.btn-ghost{border:1.5px solid rgba(253,247,242,.55);color:var(--porcelain)}
.btn-ghost:hover{background:rgba(253,247,242,.12);border-color:var(--porcelain)}
.btn-outline{border:1.5px solid var(--espresso);color:var(--espresso)}
.btn-outline:hover{background:var(--espresso);color:var(--porcelain)}
.btn-wa{background:#25D366;color:#0b3d20}
.btn-wa:hover{background:#1eb857}
.btn:active{transform:translateY(1px)}
.btn-lg{min-height:54px;padding:1rem 2.4rem;font-size:1rem}
.btn-block{width:100%}
@media(max-width:600px){.btn{width:100%}.btn-inline{width:auto}}

/* ---------- forms ---------- */
label{display:block;font-size:.8rem;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--espresso-60);margin-bottom:.4rem}
input,select,textarea{
  width:100%;padding:.85rem 1rem;background:#fff;
  border:1px solid var(--line);border-radius:var(--radius-sm);
  transition:border-color .2s,box-shadow .2s;
}
input:focus,select:focus,textarea:focus{
  outline:none;border-color:var(--ember);
  box-shadow:0 0 0 3px rgba(224,101,28,.16);
}
textarea{min-height:140px;resize:vertical}

/* ---------- a11y ---------- */
.skip-link{
  position:absolute;left:var(--s2);top:-100px;z-index:200;
  background:var(--ember);color:#fff;padding:.75rem 1.25rem;border-radius:4px;
  font-weight:700;transition:top .2s;
}
.skip-link:focus{top:var(--s2)}
:focus-visible{outline:3px solid var(--ember);outline-offset:3px;border-radius:2px}
.visually-hidden{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ---------- motion fail-open ----------
   Reveal targets are VISIBLE by default. GSAP animates *from* a hidden state.
   If GSAP never loads, the page reads normally instead of rendering blank. */
.html-no-motion .reveal{opacity:1!important;transform:none!important}
