/* =====================================================================
   Creators Furnishings - landing page styles
   Layout concept: forest-green showroom floor at top and bottom, a cream
   "timber" band through the middle. The hero is a 3D stack of photos that
   tilts with the cursor, like boards leaning in a workshop.
   ---------------------------------------------------------------------
   EDIT BRAND COLOURS AND FONTS HERE. Everything else reads from these.
   ===================================================================== */
:root {
  /* Colours sampled from the logo */
  --forest: #293831;        /* logo background */
  --forest-deep: #1f2b25;   /* darker shade for depth */
  --forest-soft: #34463d;   /* lighter shade for raised surfaces */
  --gold: #C6A76B;          /* wood-grain mark */
  --gold-soft: #d9c193;     /* hover / highlight */
  --gold-deep: #9c7f45;     /* gold for text on cream */
  --cream: #FFFBE9;         /* logo wordmark */
  --linen: #F3EEDC;         /* neutral panel on cream */
  --ink: #1d2621;           /* body text on cream (green-biased black) */
  --muted-dark: #5d6a62;    /* secondary text on cream */
  --muted-light: #b9c2b4;   /* secondary text on green */
  --line-dark: rgba(41, 56, 49, .14);
  --line-light: rgba(255, 251, 233, .14);

  /* Type */
  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Albert Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Type scale */
  --fs-hero: clamp(3rem, 1.8rem + 4.6vw, 5.6rem);
  --fs-h2: clamp(1.8rem, 1.3rem + 1.9vw, 2.9rem);
  --fs-h3: 1.25rem;
  --fs-lede: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: .875rem;

  /* Space + shape */
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--forest); padding: .6rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

.ico { width: 1.15em; height: 1.15em; flex: none; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow-dark { color: var(--gold-deep); }

.lede { font-size: var(--fs-lede); color: var(--muted-light); max-width: 34rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  text-decoration: none;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .35s var(--ease);
  will-change: transform;
}
.btn-gold { background: var(--gold); color: var(--forest-deep); box-shadow: 0 10px 30px -12px rgba(198, 167, 107, .7); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(198, 167, 107, .8); }
.btn-ghost { border-color: var(--line-light); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost:hover .ico { transform: translateX(3px); }
.btn .ico { transition: transform .3s var(--ease); }
.btn-sm { padding: .6rem 1.1rem; font-size: .88rem; }

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--forest-deep);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header.is-scrolled {
  background: rgba(31, 43, 37, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-light);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand img { width: clamp(150px, 16vw, 204px); height: auto; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 2rem); font-family: var(--font-display); font-size: .92rem; }
.nav > a:not(.btn) { text-decoration: none; color: var(--muted-light); transition: color .25s; }
.nav > a:not(.btn):hover { color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: -88px;            /* slide under the transparent header */
  padding-top: calc(88px + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(198, 167, 107, .12), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(0, 0, 0, .25), transparent 60%),
    var(--forest);
  isolation: isolate;
}
.hero-grain {
  position: absolute; z-index: -1;
  width: min(720px, 80vw); right: -12%; top: -18%;
  opacity: .06; transform: rotate(-8deg);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero h1 { font-size: var(--fs-hero); font-weight: 300; margin-bottom: 1.5rem; }
.hero h1 em { font-style: normal; font-weight: 500; color: var(--gold); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 2.5rem 0 0;
  padding-top: 1.5rem; border-top: 1px solid var(--line-light);
}
.hero-facts dt { font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--cream); }
.hero-facts dd { margin: .2rem 0 0; font-size: var(--fs-small); color: var(--muted-light); }

/* 3D stage */
.stage { perspective: 1600px; perspective-origin: 50% 40%; }
.scene {
  position: relative;
  aspect-ratio: 1 / .92;
  max-width: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -14deg));
  transition: transform .9s var(--ease);
}
.layer {
  position: absolute;
  transform: translateZ(var(--z, 0px));
  transform-style: preserve-3d;
}
.photo {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  /* Designed fallback: shows the grain if a photo can't load */
  background: linear-gradient(135deg, var(--forest-soft), var(--forest-deep));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 251, 233, .06);
}
.photo::before, .card-media::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/mark.svg") center / 130% no-repeat;
  opacity: .16;
}
.card-media::before { opacity: .3; }
.photo img, .card-media img { position: relative; z-index: 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.photo-main { inset: 6% 2% 16% 14%; --z: 0px; }
.photo-side { left: 0; bottom: 0; width: 36%; aspect-ratio: 4 / 5; border: 6px solid var(--forest); --z: 90px; }
.slab {
  top: -2%; right: -4%; width: 46%; aspect-ratio: 1;
  border-radius: var(--radius);
  background: url("../img/mark.svg") center / cover no-repeat;
  opacity: .9;
  --z: -90px;
}
.chip {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-size: .82rem; font-weight: 500;
  padding: .6rem 1rem; border-radius: 999px;
  background: rgba(255, 251, 233, .94); color: var(--forest);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55);
  white-space: nowrap;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(198, 167, 107, .25); }
.chip-a { --z: 170px; right: 4%; bottom: 8%; animation: float 7s ease-in-out infinite; }
.chip-b { --z: 130px; left: 30%; top: 0; background: var(--forest-deep); color: var(--gold); border: 1px solid rgba(198, 167, 107, .35); animation: float 8s ease-in-out -3s infinite; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---------- Promise band ---------- */
.promise { background: var(--cream); color: var(--ink); padding-block: var(--section) calc(var(--section) * .6); }
.promise-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.since { display: flex; flex-direction: column; line-height: 1; }
.since-label {
  font-family: var(--font-display); font-size: .8rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .6rem;
}
.since-year {
  font-family: var(--font-display); font-weight: 300; letter-spacing: -.05em;
  font-size: clamp(5rem, 3rem + 9vw, 11rem);
  font-variant-numeric: lining-nums;
  background: linear-gradient(160deg, var(--gold) 10%, var(--gold-deep) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.promise-copy h2 { font-size: var(--fs-h2); color: var(--forest); margin-bottom: 1rem; max-width: 18ch; }
.promise-copy > p:not(.eyebrow) { color: var(--muted-dark); font-size: 1.06rem; max-width: 36rem; }
.pillars {
  list-style: none; margin: 1.75rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: .5rem 0;
  font-family: var(--font-display); font-size: .82rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--forest);
}
.pillars li:not(:last-child)::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin: 0 1.1rem; vertical-align: middle; }

.sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }

/* ---------- Spaces ---------- */
.spaces { background: var(--cream); color: var(--ink); padding-bottom: var(--section); }
.section-head { margin-bottom: 2rem; }
.section-head h2 { font-size: var(--fs-h2); color: var(--forest); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.card { min-width: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.card-media {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5; position: relative; background: var(--forest-soft);
}
.card-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(22, 31, 26, .82) 0%, rgba(22, 31, 26, .15) 45%, transparent 70%);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 1.4rem 1.5rem; color: var(--cream); }
.card h3 { font-size: 1.45rem; font-weight: 400; margin-bottom: .2rem; }
.card p { color: rgba(255, 251, 233, .78); font-size: .95rem; }

/* ---------- Visit (all business info) ---------- */
.visit {
  padding-block: var(--section);
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(198, 167, 107, .1), transparent 60%),
    var(--forest);
}
.visit-head { margin-bottom: 2.5rem; }
.visit h2 { font-size: var(--fs-h2); }
.info-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1rem, 2vw, 1.5rem); }
.info {
  min-width: 0; display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border: 1px solid var(--line-light); border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(160deg, rgba(255, 251, 233, .045), rgba(255, 251, 233, .01));
}
.c-ico {
  width: 44px; height: 44px; border-radius: 50%; flex: none; margin-bottom: 1.25rem;
  display: grid; place-items: center;
  border: 1px solid rgba(198, 167, 107, .4); color: var(--gold);
}
.c-label {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; width: 100%;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-light); margin-bottom: .55rem;
}
.info address, .info-big {
  font-family: var(--font-display); font-size: 1.15rem; line-height: 1.45;
  color: var(--cream); text-decoration: none; overflow-wrap: anywhere;
}
.info-big { font-size: 1.5rem; font-weight: 400; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.info-big:hover { color: var(--gold); }
.info-mail { margin-top: .35rem; color: var(--muted-light); text-decoration: none; overflow-wrap: anywhere; font-size: .95rem; }
.info-mail:hover { color: var(--gold); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: 1rem;
  font-family: var(--font-display); font-size: .9rem; color: var(--gold); text-decoration: none;
}
.link-arrow:hover .ico { transform: translateX(3px); }
.link-arrow .ico { transition: transform .3s var(--ease); }

.status {
  font-family: var(--font-display); font-size: .7rem; font-weight: 500; letter-spacing: .04em; text-transform: none;
  padding: .25rem .65rem; border-radius: 999px;
  background: rgba(255, 251, 233, .08); color: var(--muted-light);
  display: inline-flex; align-items: center; gap: .4rem;
}
.status:empty { display: none; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.is-open { background: rgba(198, 167, 107, .16); color: var(--gold); }
.status.is-open::before { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(198, 167, 107, .2); } }
.hours-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours-table th, .hours-table td { padding: .6rem 0; border-bottom: 1px solid var(--line-light); font-size: .95rem; vertical-align: top; }
.hours-table th { text-align: left; font-weight: 400; color: var(--muted-light); padding-right: 1rem; }
.hours-table td { text-align: right; color: var(--cream); white-space: nowrap; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; padding-bottom: 0; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep); border-top: 1px solid var(--line-light);
  padding-block: 1.75rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
  font-size: var(--fs-small); color: var(--muted-light);
}
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.footer-grid img { width: 150px; height: auto; }
.social-icons { list-style: none; margin: 0; padding: 0; display: flex; gap: .6rem; }
.social-icons a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-light); color: var(--cream);
  transition: border-color .3s, color .3s, transform .35s var(--ease), background-color .3s;
}
.social-icons a:hover { border-color: var(--gold); color: var(--forest-deep); background: var(--gold); transform: translateY(-2px); }
.social-icons .ico { width: 18px; height: 18px; }

/* ---------- Scroll reveal (content is visible at rest; JS only adds the lift) ---------- */
.js .reveal.pending { transform: translateY(26px); opacity: .35; }
.reveal { transition: transform 1s var(--ease), opacity 1s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .info-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .info.hours { grid-column: 1 / -1; }
  .stage { max-width: 560px; margin-inline: auto; width: 100%; margin-top: 2.5rem; }
}
@media (max-width: 720px) {
  .nav > a:not(.btn) { display: none; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card-media { aspect-ratio: 16 / 10; }
  .promise-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .info-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { margin-top: -76px; padding-top: calc(76px + 2rem); }
  .hero-facts { gap: 1.5rem; }
  .eyebrow { flex-wrap: wrap; gap: .5rem .6rem; font-size: .7rem; letter-spacing: .14em; }
  .eyebrow::before { display: none; }
  .chip { font-size: .74rem; padding: .5rem .8rem; }
  .chip-b { left: 26%; }
}
@media (max-width: 420px) {
  .btn { width: 100%; justify-content: center; }
  .nav .btn { width: auto; }
  .nav .btn span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal.pending { transform: none; opacity: 1; }
}
