/* ============================================================
   KALEIDOSCOPE FLOORING — shared site stylesheet
   Direction B "Earthy" design system
   ============================================================ */

@font-face { font-family: 'Playfair'; src: url('../fonts/playfair-400.ttf'); font-weight: 400 900; font-style: normal; }
@font-face { font-family: 'Playfair'; src: url('../fonts/playfair-400i.ttf'); font-weight: 400 900; font-style: italic; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-var.ttf'); font-weight: 100 900; font-style: normal; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  background: #e0d9d3;
  color: #171614;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============ Palette ============ */
:root {
  --ink: #171614;
  --walnut: #524639;
  --taupe: #918574;
  --stone: #9f958a;
  --bone: #e0d9d3;
  --bronze: #b29f7a;
  --cream: #ebe4dd;
}


/* ============ Site header — Squarespace-friendly ============ */
.announce {
  background: var(--ink);
  color: var(--taupe);
  padding: 12px 64px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}
.announce a { color: var(--bronze); }
.announce a:hover { color: var(--bone); }

.site-header {
  background: var(--ink);
  color: var(--bone);
  padding: 22px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(146,133,116,0.18);
}
.site-title { display: flex; align-items: center; text-decoration: none; }
.site-title img { display: block; height: 78px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 38px; font-family: 'Inter', sans-serif; }
.primary-nav .nav-link { color: var(--bone); font-size: 11px; letter-spacing: 0.36em; text-transform: uppercase; padding: 8px 0; }
.primary-nav .nav-link:hover { color: var(--bronze); }
.primary-nav .nav-cta { color: var(--bone); font-size: 11px; letter-spacing: 0.36em; text-transform: uppercase; border: 1px solid var(--walnut); padding: 14px 26px; }
.primary-nav .nav-cta:hover { background: var(--bronze); color: var(--ink); border-color: var(--bronze); }

.nav-item { position: relative; }
.nav-item.has-dropdown > .nav-link::after {
  content: " \25BE";
  margin-left: 6px;
  color: var(--taupe);
  font-size: 9px;
}
.nav-item .dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--ink);
  border-top: 1px solid var(--walnut);
  padding: 18px 0;
  min-width: 240px;
  display: none;
  flex-direction: column;
  z-index: 50;
}
.nav-item:hover .dropdown { display: flex; }
.nav-item .dropdown a {
  font-family: 'Playfair', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--bone);
  letter-spacing: normal;
  text-transform: none;
  padding: 8px 24px;
  white-space: nowrap;
}
.nav-item .dropdown a:hover { color: var(--bronze); }


/* ============ Hero patterns ============ */
.hero-photo { position: relative; height: 720px; background-color: var(--ink); background-size: cover; background-position: center; overflow: hidden; color: var(--bone); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,14,13,0.88) 0%, rgba(15,14,13,0.55) 38%, rgba(15,14,13,0.95) 100%), linear-gradient(90deg, rgba(15,14,13,0.55) 0%, rgba(15,14,13,0) 60%); }
.hero-photo .inner { position: relative; z-index: 2; padding: 120px 64px 0; max-width: 1200px; }
.hero-photo .eyebrow { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--bronze); margin-bottom: 32px; display: flex; align-items: center; gap: 16px; }
.hero-photo .eyebrow::before { content: ""; width: 50px; height: 1px; background: var(--bronze); display: inline-block; }
.hero-photo h1 { font-family: 'Playfair', serif; font-weight: 500; font-size: 96px; line-height: 1.04; color: #ffffff; max-width: 1100px; text-shadow: 0 4px 40px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.7); letter-spacing: -0.01em; }
.hero-photo h1 em { font-style: italic; color: var(--bronze); }
.hero-photo .meta-row { position: absolute; bottom: 60px; left: 64px; right: 64px; display: flex; justify-content: space-between; align-items: end; z-index: 2; }
.hero-photo .meta-row .label { font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--taupe); margin-bottom: 12px; }
.hero-photo .meta-row .place { font-family: 'Playfair', serif; font-style: italic; font-size: 18px; color: var(--bone); }

.hero-simple { background: var(--ink); color: var(--bone); padding: 130px 64px 110px; text-align: left; }
.hero-simple .eyebrow { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--taupe); margin-bottom: 36px; display: flex; align-items: center; gap: 16px; }
.hero-simple .eyebrow::before { content: ""; width: 50px; height: 1px; background: var(--taupe); display: inline-block; }
.hero-simple h1 { font-family: 'Playfair', serif; font-weight: 400; font-size: 96px; line-height: 1.04; color: var(--bone); max-width: 1100px; letter-spacing: -0.01em; }
.hero-simple h1 em { font-style: italic; color: var(--bronze); }
.hero-simple .sub { margin-top: 36px; font-family: 'Playfair', serif; font-style: italic; font-size: 22px; color: var(--stone); max-width: 720px; line-height: 1.5; }

/* ============ Section block ============ */
.section { padding: 110px 64px; }
.section.bone { background: var(--bone); }
.section.cream { background: var(--cream); }
.section.walnut { background: var(--walnut); color: var(--bone); }
.section.ink { background: var(--ink); color: var(--bone); }
.section .lbl { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.46em; text-transform: uppercase; color: var(--walnut); margin-bottom: 26px; padding-top: 12px; position: relative; }
.section .lbl::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 1px; background: var(--walnut); }
.section.walnut .lbl, .section.ink .lbl { color: var(--bronze); }
.section.walnut .lbl::before, .section.ink .lbl::before { background: var(--bronze); }
.section h2 { font-family: 'Playfair', serif; font-weight: 400; font-size: 60px; line-height: 1.08; color: var(--ink); margin-bottom: 24px; letter-spacing: -0.008em; }
.section.walnut h2, .section.ink h2 { color: var(--bone); }
.section h2 em { font-style: italic; color: var(--walnut); }
.section.walnut h2 em, .section.ink h2 em { color: var(--bronze); }
.section .lead { font-family: 'Playfair', serif; font-size: 22px; line-height: 1.55; color: #3a322a; max-width: 720px; }
.section.walnut .lead, .section.ink .lead { color: #d8c9b4; }
.section .split-2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }

/* ============ Band — uppercase strip ============ */
.band { background: var(--taupe); padding: 26px 64px; font-size: 11px; letter-spacing: 0.46em; text-transform: uppercase; color: var(--bone); display: flex; justify-content: space-between; }
.band.walnut { background: var(--walnut); }
.band.ink { background: var(--ink); color: var(--bronze); }

/* ============ Editorial collection layout ============ */
/* img-wrap is an <a> (inline by default); force block so width/height apply
   even when it is NOT a direct grid/flex child (e.g. inside .pair-item). */
.img-wrap { display: block; }
.editorial { display: grid; grid-template-columns: 1fr; gap: 90px; padding-top: 20px; }
.collection-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end; }
.collection-feature .img-wrap { width: 100%; height: 680px; background-color: var(--walnut); background-size: cover; background-position: center; background-repeat: no-repeat; }
.collection-feature .meta { padding-bottom: 30px; }
.collection-feature .num { font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 0.46em; text-transform: uppercase; color: var(--walnut); margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.collection-feature .num::before { content: ""; width: 36px; height: 1px; background: var(--walnut); display: inline-block; }
.collection-feature h3 { font-family: 'Playfair', serif; font-weight: 400; font-size: 84px; line-height: 0.96; color: var(--ink); margin-bottom: 26px; letter-spacing: -0.012em; }
.collection-feature h3 em { font-style: italic; color: var(--walnut); }
.collection-feature .blurb { font-family: 'Playfair', serif; font-size: 22px; line-height: 1.55; color: #3a322a; margin-bottom: 36px; max-width: 480px; }
.collection-feature .specs { display: flex; gap: 32px; margin-bottom: 36px; flex-wrap: wrap; }
.collection-feature .specs .spec { display: flex; flex-direction: column; gap: 6px; }
.collection-feature .specs .v { font-family: 'Playfair', serif; font-style: italic; font-size: 28px; color: var(--ink); line-height: 1; }
.collection-feature .specs .k { font-family: 'Inter', sans-serif; font-size: 9px; letter-spacing: 0.36em; text-transform: uppercase; color: var(--taupe); }
.collection-feature .arrow { font-family: 'Playfair', serif; font-style: italic; font-size: 20px; color: var(--ink); border-bottom: 1px solid var(--walnut); padding-bottom: 4px; display: inline-block; }

.collection-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 30px; border-top: 1px solid rgba(82,70,57,0.16); }
.pair-item .img-wrap { width: 100%; height: 380px; background-color: var(--walnut); background-size: cover; background-position: center; background-repeat: no-repeat; }
.pair-item .pair-meta { padding-top: 28px; }
.pair-item .pair-meta .num { font-family: 'Inter', sans-serif; font-size: 9px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--taupe); margin-bottom: 12px; }
.pair-item h4 { font-family: 'Playfair', serif; font-weight: 400; font-size: 42px; line-height: 1; color: var(--ink); margin-bottom: 14px; }
.pair-item h4 em { font-style: italic; color: var(--walnut); }
.pair-item .pair-blurb { font-family: 'Playfair', serif; font-size: 17px; line-height: 1.55; color: #3a322a; margin-bottom: 20px; }
.pair-item .pair-arrow { font-family: 'Playfair', serif; font-style: italic; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--walnut); padding-bottom: 3px; display: inline-block; }

/* ============ Brand-page pattern grid ============ */
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 64px; }
.pattern { background: transparent; }
.pattern .img-wrap { width: 100%; height: 420px; background-color: var(--walnut); background-size: cover; background-position: center; background-repeat: no-repeat; }
.pattern .meta { padding-top: 26px; }
.pattern .meta .num { font-family: 'Inter', sans-serif; font-size: 9px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--taupe); margin-bottom: 10px; }
.pattern .meta h4 { font-family: 'Playfair', serif; font-weight: 400; font-size: 38px; line-height: 1; color: var(--ink); margin-bottom: 12px; }
.pattern .meta h4 em { font-style: italic; color: var(--walnut); }
.pattern .meta .blurb { font-family: 'Playfair', serif; font-size: 16px; line-height: 1.55; color: #3a322a; margin-bottom: 14px; }
.pattern .meta .specs { display: flex; gap: 18px; flex-wrap: wrap; font-family: 'Inter', sans-serif; font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--taupe); }
.pattern .meta .specs span { padding: 4px 0; }

/* ============ SKU table (Teka style) ============ */
.skus { width: 100%; border-collapse: collapse; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--ink); }
.skus thead th { text-align: left; font-size: 10px; letter-spacing: 0.36em; text-transform: uppercase; color: var(--taupe); font-weight: 500; padding: 14px 16px; border-bottom: 1px solid var(--walnut); }
.skus tbody td { padding: 18px 16px; border-bottom: 1px solid rgba(82,70,57,0.16); }
.skus tbody tr td:first-child { font-family: 'Playfair', serif; font-size: 22px; color: var(--ink); }
.skus tbody tr td:first-child em { font-style: italic; color: var(--walnut); }

/* ============ Footer ============ */
.footer { background: #0f0e0d; color: var(--taupe); padding: 90px 64px 60px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 50px; font-family: 'Inter', sans-serif; }
.footer .brand { font-family: 'Playfair', serif; font-size: 26px; letter-spacing: 0.36em; color: var(--bone); font-weight: 500; }
.footer h4 { font-size: 10px; letter-spacing: 0.36em; text-transform: uppercase; color: var(--walnut); margin-bottom: 22px; font-weight: 500; }
.footer ul { list-style: none; font-size: 12px; line-height: 2; color: var(--stone); }
.footer a:hover { color: var(--bone); }
.footer .fineprint { grid-column: 1 / -1; margin-top: 70px; padding-top: 28px; border-top: 1px solid rgba(82,70,57,0.3); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--walnut); display: flex; justify-content: space-between; }

/* ============ Form ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--walnut); }
.field input, .field textarea, .field select { font-family: 'Playfair', serif; font-size: 20px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--walnut); background: transparent; color: var(--ink); }
.field.full { grid-column: 1 / -1; }
.field textarea { resize: vertical; min-height: 120px; }
.submit-row { grid-column: 1 / -1; padding-top: 16px; }
.submit-row button { background: var(--ink); color: var(--bone); padding: 20px 42px; font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase; border: 0; cursor: pointer; }
.contact-direct { font-family: 'Playfair', serif; font-size: 28px; line-height: 1.5; color: var(--ink); word-break: break-word; }


/* ============ Brand logo on body sections ============ */
.brand-logo { max-height: 90px; width: auto; max-width: 280px; display: block; margin-bottom: 28px; object-fit: contain; object-position: left top; }
.brand-logo.tall { max-height: 160px; max-width: 140px; }
.brand-logo.small { max-height: 56px; }
.brand-logo.center { margin-left: auto; margin-right: auto; object-position: center; }
.brand-logo.dark { filter: brightness(0) invert(1); opacity: 0.95; } /* white on dark */

/* ============ Footer logo ============ */
.footer .brand .footer-logo { height: 88px; width: auto; display: block; max-width: 280px; }

/* ============ Inline image card ============ */
.image-card { width: 100%; background: var(--cream); padding: 0; overflow: hidden; }
.image-card img { width: 100%; height: auto; display: block; }


/* ============================================================
   Responsive — tablets & phones. Desktop layout above is
   unchanged; these only apply at <=860px / <=480px.
   ============================================================ */
@media (max-width: 860px) {
  /* header / announce / nav */
  .announce { padding: 10px 20px; font-size: 9px; letter-spacing: 0.18em; gap: 12px; }
  .site-header { padding: 16px 20px; flex-wrap: wrap; gap: 12px 16px; }
  .site-title img { height: 50px; }
  .primary-nav { gap: 16px; }
  .primary-nav .nav-link, .primary-nav .nav-cta { font-size: 10px; letter-spacing: 0.22em; }
  .primary-nav .nav-cta { padding: 11px 16px; }
  .nav-item .dropdown { min-width: 200px; }

  /* spacing */
  .section { padding: 56px 22px; }
  .band { padding: 18px 22px; font-size: 9px; letter-spacing: 0.22em; gap: 10px; flex-wrap: wrap; }

  /* collapse every multi-column grid to a single column */
  .section .split-2,
  .collection-feature,
  .collection-pair,
  .brand-grid,
  .form-grid { grid-template-columns: 1fr; gap: 32px; }
  .editorial { gap: 54px; }

  /* heroes */
  .hero-photo { height: 460px; }
  .hero-photo .inner { padding: 84px 22px 0; max-width: none; }
  .hero-photo .meta-row { left: 22px; right: 22px; bottom: 26px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-simple { padding: 84px 22px 64px; }

  /* type scale-down */
  .hero-photo h1 { font-size: 46px; }
  .hero-simple h1 { font-size: 44px; }
  .hero-simple .sub { font-size: 18px; }
  .section h2 { font-size: 34px; }
  .section .lead { font-size: 18px; }
  .collection-feature .img-wrap { height: 360px; }
  .collection-feature h3 { font-size: 50px; }
  .collection-feature .blurb { font-size: 18px; }
  .pair-item .img-wrap { height: 300px; }
  .pair-item h4 { font-size: 30px; }
  .pattern .img-wrap { height: 320px; }
  .pattern .meta h4 { font-size: 30px; }
  .brand-logo { max-height: 72px; }
  .brand-logo.tall { max-height: 130px; }

  /* footer: 5 cols -> 2 cols */
  .footer { grid-template-columns: 1fr 1fr; padding: 56px 22px 40px; gap: 30px 24px; }
  .footer .brand { grid-column: 1 / -1; }
  .footer .fineprint { margin-top: 36px; flex-direction: column; gap: 8px; }

  /* wide data table -> horizontal scroll instead of overflow */
  .skus { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }

  .contact-direct { font-size: 22px; }
}

@media (max-width: 480px) {
  .announce { flex-direction: column; gap: 4px; text-align: center; align-items: center; }
  .site-title img { height: 44px; }
  .primary-nav { gap: 13px; }
  .primary-nav .nav-link, .primary-nav .nav-cta { font-size: 9px; letter-spacing: 0.18em; }
  .hero-photo { height: 420px; }
  .hero-photo h1, .hero-simple h1 { font-size: 37px; }
  .section h2 { font-size: 29px; }
  .collection-feature h3 { font-size: 42px; }
  .pair-item h4, .pattern .meta h4 { font-size: 28px; }
}

