/* =====================================================
   CARPETERIA — Mockup V2: "Modern Gallery"
   Shade Store / Mannington restraint. All-sans, generous
   whitespace, gallery-style, single teal accent line.
   ===================================================== */

:root {
  --paper: #fbfaf6;
  --paper-cool: #f4f2eb;
  --ink: #1a1d22;
  --ink-soft: rgba(26, 29, 34, 0.62);
  --ink-mute: rgba(26, 29, 34, 0.4);
  --teal: #1f6b6b;
  --teal-deep: #154f4f;
  --line: rgba(26, 29, 34, 0.14);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --display: "Bricolage Grotesque", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --max: 1400px;
  --gutter: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  color: var(--ink);
}
p { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}

.line-rule {
  height: 1px;
  background: var(--teal);
  width: 32px;
}

/* ============== TOP BAR ============== */

.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter);
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.topbar a { color: var(--teal); margin-left: 14px; border-bottom: 1px solid currentColor; }

/* ============== NAV ============== */

.nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(251, 250, 246, 0.96);
  backdrop-filter: blur(10px);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 56px;
}
.nav__brand {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-transform: uppercase;
}
.nav__brand small {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-transform: uppercase;
  font-weight: 500;
  vertical-align: middle;
}
.nav__menu {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 200ms;
}
.nav__menu a:hover { color: var(--teal); }
.nav__cta { display: flex; gap: 16px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all 180ms ease;
}
.btn:hover { background: var(--teal); border-color: var(--teal); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--teal { background: var(--teal); border-color: var(--teal); }
.btn--teal:hover { background: var(--teal-deep); border-color: var(--teal-deep); }

.linkbtn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.linkbtn::after { content: "→"; transition: transform 200ms; }
.linkbtn:hover::after { transform: translateX(4px); }

/* ============== HERO — full-bleed ============== */

.hero {
  position: relative;
  height: clamp(560px, 84vh, 880px);
  overflow: hidden;
  background: var(--ink);
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,29,34,0.0) 0%, rgba(26,29,34,0.0) 50%, rgba(26,29,34,0.55) 100%);
}
.hero__copy {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(48px, 6vw, 96px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  color: var(--paper);
}
.hero__copy .eyebrow { color: rgba(251,250,246,0.85); }
.hero__copy .line-rule { background: var(--paper); margin: 16px 0; }
.hero__title {
  font-family: var(--display);
  color: var(--paper);
  font-size: clamp(44px, 6.5vw, 96px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 16ch;
}
.hero__title em { font-style: italic; font-weight: 400; }
.hero__sub {
  font-size: 18px;
  margin-top: 22px;
  color: rgba(251,250,246,0.85);
  max-width: 50ch;
  font-weight: 400;
}
.hero__cta { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero__cta .btn:hover { background: var(--teal); border-color: var(--teal); color: var(--paper); }
.hero__cta .btn--outline { background: transparent; color: var(--paper); border-color: var(--paper); }
.hero__cta .btn--outline:hover { background: var(--paper); color: var(--ink); }

/* ============== ANNOUNCE STRIP (under hero) ============== */

.announce {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.announce__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.announce__inner > :first-child { color: var(--ink-soft); }
.announce__inner > :nth-child(2) {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--teal);
  font-weight: 400;
}
.announce__inner > :last-child { color: var(--ink-soft); justify-self: end; }

/* ============== SECTIONS ============== */

section { position: relative; }

.section {
  padding: clamp(80px, 9vw, 144px) var(--gutter);
}
.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* ============== SHOP / CATEGORY GALLERY ============== */

.shop-intro {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
  margin-bottom: 56px;
}
.shop-intro h2 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 300;
}
.shop-intro h2 em { font-style: italic; font-weight: 400; }
.shop-intro p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 50ch;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.4vw, 24px);
}
.gallery__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gallery__media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper-cool);
}
.gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery__item:hover .gallery__media img { transform: scale(1.04); }
.gallery__item .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.gallery__item h3 {
  font-family: var(--display);
  font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.gallery__item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.gallery__item .linkbtn { margin-top: 6px; align-self: flex-start; }

/* ============== EDITORIAL — full bleed image then short text ============== */

.bleed {
  width: 100%;
  height: clamp(420px, 60vh, 720px);
  overflow: hidden;
  background: var(--ink);
  position: relative;
}
.bleed img { width: 100%; height: 100%; object-fit: cover; }
.bleed__caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251,250,246,0.7);
  background: rgba(26,29,34,0.5);
  padding: 8px 12px;
  backdrop-filter: blur(4px);
}

.editorial-text {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.editorial-text h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.editorial-text h2 em { font-style: italic; font-weight: 400; }
.editorial-text__body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.editorial-text__body p + p { margin-top: 16px; }
.editorial-text__body p strong { color: var(--ink); font-weight: 600; }

.editorial-text__body .stack {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.45;
}
.editorial-text__body .stack span {
  display: block;
  color: var(--ink-mute);
}
.editorial-text__body .stack span.is-strong { color: var(--ink); }
.editorial-text__body .stack span.is-emph { color: var(--teal); font-style: italic; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px; }

/* ============== SPLIT PHOTO + COPY ============== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
.split__media {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__copy h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.split__copy h2 em { font-style: italic; font-weight: 400; }
.split__copy p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-top: 18px;
  max-width: 48ch;
}
.split__copy ul {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.split__copy ul li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  font-size: 15px;
  line-height: 1.5;
}
.split__copy ul li:last-child { border-bottom: 1px solid var(--line); }
.split__copy ul li::before {
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--teal);
  font-weight: 500;
}
.split__copy ul { counter-reset: item; }
.split__copy ul li strong { font-weight: 600; }
.split__copy ul li em { font-style: italic; color: var(--ink-soft); display: block; margin-top: 2px; font-size: 14px; }
.split__copy .linkbtn { margin-top: 24px; }

/* ============== HERO FORM ROW ============== */

.form-row {
  background: var(--paper-cool);
  padding: clamp(72px, 8vw, 128px) var(--gutter);
}
.form-row__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.form-row h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.form-row h2 em { font-style: italic; font-weight: 400; color: var(--teal); }
.form-row .lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-top: 18px;
  max-width: 44ch;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
}
.form h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
  font-weight: 500;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  border-radius: 0;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); }
.form button { margin-top: 6px; width: 100%; justify-content: center; }
.form__foot {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 6px;
}

/* ============== CARDS — Expert Advice ============== */

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.card {
  border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  background: var(--paper);
  transition: all 200ms;
}
.card:hover { border-color: var(--ink); }
.card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}
.card h3 {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.card h3 em { font-style: italic; }
.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 38ch;
}
.card .linkbtn { margin-top: auto; align-self: flex-start; }

/* ============== FOOTER ============== */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 6vw, 96px) var(--gutter) 32px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(251,250,246,0.18);
}
.footer__brand h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-transform: uppercase;
}
.footer__brand small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(251,250,246,0.6);
  margin-top: 6px;
  font-weight: 500;
  text-transform: uppercase;
}
.footer__brand p {
  font-size: 14px;
  line-height: 1.65;
  margin-top: 18px;
  color: rgba(251,250,246,0.7);
  max-width: 36ch;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a, .footer ul li { font-size: 14px; color: rgba(251,250,246,0.86); }
.footer ul a:hover { color: var(--teal); }
.footer__bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251,250,246,0.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============== UTILS / VERSION CHIP ============== */

.version-chip {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 100;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 500;
}
.version-chip a { color: var(--teal); border-bottom: 1px solid currentColor; }

.reveal { opacity: 0; transform: translateY(20px); transition: all 800ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============== RESPONSIVE ============== */

@media (max-width: 980px) {
  .nav__menu { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .shop-intro, .editorial-text, .split, .form-row__inner { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .announce__inner { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .announce__inner > :last-child { justify-self: center; }
}

@media (max-width: 540px) {
  .gallery { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .nav__brand { font-size: 22px; }
  .nav__brand small { display: none; }
  .nav__cta .btn { padding: 10px 14px; font-size: 10px; }
  .version-chip { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
  body, h1, h2, h3, h4, p { overflow-wrap: break-word; word-wrap: break-word; }
}
