/* Homely Mega Mart — main stylesheet */
:root {
  --espresso: #3b3331;
  --espresso-2: #2f2826;
  --ink: #1f1b1a;
  --text: #3d3a39;
  --muted: #8a8583;
  --faint: #b9b5b3;
  --line: #e6e3e1;
  --mist: #eef2f5;
  --tile: #f4f3f1;
  --white: #ffffff;
  --max: 1320px;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); font-size: 15px; color: var(--text);
  background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 48px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.25rem; }
.kicker {
  display: block; font-size: .72rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted);
}
.italic { font-family: var(--serif); font-style: italic; }

/* Buttons */
.btn {
  display: inline-block; background: var(--espresso); color: var(--white);
  padding: 17px 44px; font-size: .75rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; border: 1px solid var(--espresso); transition: .2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--espresso); }
.btn-ghost:hover { background: var(--espresso); color: var(--white); }
.btn-white { background: var(--white); color: var(--espresso); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); border-color: var(--white); }
.link-underline {
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}

/* Announcement bar */
.announce {
  background: var(--espresso); color: var(--white); text-align: center;
  font-size: .78rem; padding: 10px 16px; letter-spacing: .02em;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px;
}
.header-left, .header-right { display: flex; align-items: center; gap: 22px; }
.header-right { justify-content: flex-end; }
.icon-btn { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn svg { width: 20px; height: 20px; }
.inline-nav { display: flex; gap: 26px; }
.inline-nav a {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.inline-nav a:hover, .inline-nav a.active { border-color: var(--ink); }
.wordmark {
  font-family: var(--sans); font-weight: 500; font-size: 1.35rem; letter-spacing: .32em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap; padding-left: .32em;
}
.header-phone { font-size: .8rem; letter-spacing: .04em; }

/* Drawer menu */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 90;
  opacity: 0; visibility: hidden; transition: .3s;
}
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(420px, 88vw); z-index: 100;
  background: var(--white); transform: translateX(-100%); transition: transform .35s ease;
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 32px; border-bottom: 1px solid var(--line);
}
.drawer nav { padding: 18px 32px; }
.drawer nav a {
  display: flex; justify-content: space-between; padding: 16px 0;
  font-family: var(--serif); font-size: 1.5rem; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.drawer nav a small { font-family: var(--sans); font-size: .7rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; align-self: center; }
.drawer-foot { margin-top: auto; padding: 28px 32px; background: var(--mist); font-size: .9rem; }
.drawer-foot a { display: block; margin-top: 6px; }

/* Hero */
.hero {
  position: relative; min-height: calc(100vh - 110px); max-height: 860px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--white); overflow: hidden;
  background-color: #7d8894;
  background-image:
    linear-gradient(rgba(20,20,25,.28), rgba(20,20,25,.28)),
    url("https://images.unsplash.com/photo-1616594039964-ae9021a400a0?auto=format&fit=crop&w=2000&q=75"),
    linear-gradient(135deg, #9aa5b1 0%, #6f7a86 55%, #5b5553 100%);
  background-size: cover; background-position: center;
}
.hero h1 { color: var(--white); }
.hero .italic { display: block; font-size: clamp(1.2rem, 2.4vw, 1.9rem); margin: 14px 0 34px; }
.hero-content { padding: 80px 24px; }
.hero-explore {
  position: absolute; left: 48px; bottom: 28px; display: flex; align-items: center; gap: 12px;
  font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.hero-explore span {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Press / quotes band */
.press { background: var(--mist); padding: 90px 0 70px; text-align: center; }
.press-slider { position: relative; min-height: 190px; }
.press-item {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.press-item.on { opacity: 1; }
.press-item .source {
  font-family: var(--serif); font-size: 2rem; letter-spacing: .06em; color: var(--muted);
  text-transform: uppercase;
}
.press-item p { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--ink); max-width: 760px; margin-top: 14px; }
.press-dots { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.press-dots button { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.press-dots button.on { background: var(--ink); }

/* Statement */
.statement { padding: 110px 0 40px; text-align: center; }
.statement h2 { margin-top: 18px; }
.statement h2 em { color: var(--faint); font-style: normal; }

/* Category slider */
.cat-section { padding: 40px 0 110px; }
.cat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.cat-card { display: block; }
.cat-card .cat-img {
  aspect-ratio: 3 / 4; overflow: hidden; position: relative;
  background-size: cover; background-position: center;
}
.cat-card .cat-img::before {
  content: ""; position: absolute; inset: 0; background: inherit;
  transition: transform .8s ease;
}
.cat-card:hover .cat-img::before { transform: scale(1.05); }
.cat-card .cat-img svg {
  position: absolute; top: 50%; left: 50%; width: 30%; transform: translate(-50%, -50%);
  color: rgba(255,255,255,.85);
}
.cat-card h3 { margin-top: 16px; font-size: 1.5rem; }
.cat-card .link-underline { display: inline-block; margin-top: 8px; }

/* Section heading row */
.row-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 36px; gap: 20px;
}
.row-head h2 { margin-top: 10px; }

/* Product cards */
.products-section { padding: 100px 0; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 20px; }
.product-card { display: block; }
.product-media {
  position: relative; aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: #c9c4bf;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product-media svg { width: 34%; transition: transform .6s; }
.product-card:hover .product-media img,
.product-card:hover .product-media svg { transform: scale(1.05); }
.product-tag {
  position: absolute; top: 14px; left: 14px; background: var(--white); color: var(--ink);
  font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px;
}
.quick {
  position: absolute; left: 14px; right: 14px; bottom: 14px; background: var(--white);
  text-align: center; padding: 12px; font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transform: translateY(8px); transition: .25s;
}
.product-card:hover .quick { opacity: 1; transform: none; }
.quick:hover { background: var(--espresso); color: var(--white); }
.product-body { padding-top: 14px; }
.product-body h3 { font-family: var(--sans); font-size: .95rem; font-weight: 400; color: var(--ink); }
.price { margin-top: 3px; color: var(--ink); }
.price small { color: var(--muted); font-size: .9em; }
.swatches { display: flex; gap: 6px; margin-top: 10px; }
.swatches span {
  width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12);
  box-shadow: inset 0 0 0 2px #fff;
}

/* Dark design band */
.design-band { background: var(--espresso); color: #d9d3d0; }
.design-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.design-img {
  background-color: #6d6360;
  background-image: url("https://images.unsplash.com/photo-1615742708220-e35f32936bd1?auto=format&fit=crop&w=1400&q=75"), linear-gradient(160deg, #8d8380, #4d4442);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4);
}
.design-img svg { width: 22%; }
.design-copy {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 80px clamp(32px, 7vw, 110px);
}
.design-copy .kicker { color: #a79f9c; }
.design-copy h2 { color: var(--white); margin: 18px 0 20px; }
.design-copy p { max-width: 460px; margin-bottom: 34px; }
.design-points { list-style: none; margin-bottom: 38px; width: 100%; max-width: 460px; }
.design-points li {
  display: flex; justify-content: space-between; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.14); font-size: .9rem;
}
.design-points li span:last-child { color: #a79f9c; }

/* Split feature (two tiles) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 110px 0; }
.duo-card {
  position: relative; aspect-ratio: 1 / 1.05; color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 44px;
  background-size: cover; background-position: center;
}
.duo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.4), transparent 60%); }
.duo-card > * { position: relative; z-index: 1; }
.duo-card h3 { color: var(--white); font-size: 2.2rem; margin: 8px 0 18px; }
.duo-card .kicker { color: rgba(255,255,255,.85); }

/* Newsletter */
.newsletter { background: var(--mist); padding: 100px 0; text-align: center; }
.newsletter p { color: var(--muted); margin: 14px auto 0; max-width: 480px; }
.newsletter form { display: flex; max-width: 480px; margin: 34px auto 0; border-bottom: 1px solid var(--ink); }
.newsletter input { flex: 1; border: 0; background: transparent; padding: 14px 0; font: inherit; outline: none; }
.newsletter button { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

/* Page hero */
.page-hero { padding: 90px 0 60px; text-align: center; }
.page-hero h1 { margin-top: 14px; }
.page-hero p { color: var(--muted); margin: 16px auto 0; max-width: 560px; }
.image-banner {
  aspect-ratio: 21 / 8; background-size: cover; background-position: center;
  background-color: #8d97a1;
}

/* Shop */
.shop-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}
.filter-btns { display: flex; flex-wrap: wrap; gap: 26px; }
.filter-btns button {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent;
}
.filter-btns button.active, .filter-btns button:hover { color: var(--ink); border-color: var(--ink); }
.shop-tools { display: flex; align-items: center; gap: 18px; }
.search {
  border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; font: inherit;
  min-width: 220px; outline: none; background: transparent;
}
.search:focus { border-color: var(--ink); }
.count { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; grid-column: 1 / -1; }
.catalog-note { margin: 70px 0 100px; padding: 40px; background: var(--mist); text-align: center; }
.catalog-note h3 { font-size: 1.6rem; margin-bottom: 8px; }
.catalog-note p { color: var(--muted); margin-bottom: 22px; }

/* About */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 100px 0; }
.story-img { aspect-ratio: 4 / 5; background-size: cover; background-position: center; background-color: #b5aca7; }
.story-grid p { margin-top: 18px; color: var(--text); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; padding: 0 0 110px; }
.pillars .num { font-family: var(--serif); font-size: 1rem; color: var(--muted); }
.pillars h3 { font-size: 1.6rem; margin: 10px 0; }
.pillars p { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 90px; padding: 20px 0 110px; }
.contact-info .item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-info .item:first-child { border-top: 1px solid var(--line); }
.contact-info .value-text { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin-top: 6px; word-break: break-word; }
.contact-info .value-text a:hover { text-decoration: underline; }
.contact-info p.note { color: var(--muted); margin-top: 24px; font-size: .92rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin-bottom: 26px; }
.field label {
  display: block; font-size: .68rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line);
  font: inherit; color: var(--ink); background: transparent; outline: none; border-radius: 0;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; margin-bottom: 26px; font-size: .92rem; }
.alert-ok { background: var(--mist); color: var(--ink); }
.alert-err { background: #f6e6e2; color: #7d3322; }

/* FAQ */
.faq-wrap { background: var(--mist); padding: 100px 0; }
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid #d5dbe0; padding: 22px 0; }
.faq summary {
  cursor: pointer; font-family: var(--serif); font-size: 1.25rem; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 12px; }

/* Footer */
.site-footer { background: var(--espresso-2); color: #bdb6b3; padding: 80px 0 34px; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .wordmark { color: var(--white); font-size: 1.15rem; padding-left: 0; }
.site-footer h4 {
  color: var(--white); font-size: .68rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; margin-bottom: 18px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--white); }
.footer-news p { margin: 16px 0 18px; max-width: 320px; }
.footer-news form { display: flex; border-bottom: 1px solid #6b625f; max-width: 320px; }
.footer-news input { flex: 1; background: transparent; border: 0; padding: 10px 0; color: var(--white); font: inherit; outline: none; }
.footer-news button { color: var(--white); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 70px; padding-top: 26px; border-top: 1px solid #4a423f; font-size: .78rem;
}
.form-msg { font-size: .8rem; margin-top: 10px; min-height: 1em; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .inline-nav, .header-phone { display: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .container { padding: 0 20px; }
  .cat-row { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .cat-card { scroll-snap-align: start; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 14px; }
  .design-grid, .story-grid, .contact-grid, .duo { grid-template-columns: 1fr; }
  .design-img { min-height: 360px; }
  .story-grid, .contact-grid { gap: 40px; }
  .pillars { grid-template-columns: 1fr; gap: 34px; }
  .hero-explore { left: 20px; }
  .quick { opacity: 1; transform: none; position: static; margin-top: 0; display: none; }
  .row-head { flex-direction: column; align-items: flex-start; }
  .image-banner { aspect-ratio: 4 / 3; }
  .duo { padding: 70px 0; }
  .products-section, .faq-wrap, .newsletter { padding: 70px 0; }
  .statement { padding: 80px 0 30px; }
}
@media (max-width: 560px) {
  .wordmark { font-size: 1rem; letter-spacing: .22em; }
  .form-row, .footer-grid { grid-template-columns: 1fr; }
  .duo-card { padding: 28px; }
  .search { min-width: 0; width: 100%; }
  .shop-tools { width: 100%; }
  .filter-btns { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
