/* ==========================================================================
   Abi Furniture & Interior Solutions — main stylesheet (v2)
   Editorial boutique-furniture design system: charcoal + brass + bone.
   ========================================================================== */

:root {
  /* light "bone" sections */
  --ink: #1C1712;
  --paper: #F3EDE1;
  --paper-raised: #FBF7EE;
  --line: rgba(28,23,18,0.12);
  --shadow: rgba(20,16,11,0.18);

  /* brand constants (do not flip with theme) */
  --brass: #B4893F;
  --brass-bright: #D8AD64;
  --brass-deep: #8C6A31;
  --charcoal: #14110D;
  --charcoal-raised: #1E1912;
  --cream: #F4EEE2;
  --line-onDark: rgba(244,238,226,0.14);
}
:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --ink: #EDE4D6;
    --paper: #15110D;
    --paper-raised: #1E1912;
    --line: rgba(237,228,214,0.14);
    --shadow: rgba(0,0,0,0.5);
  }
}
:root[data-theme="dark"] {
  --ink: #EDE4D6;
  --paper: #15110D;
  --paper-raised: #1E1912;
  --line: rgba(237,228,214,0.14);
  --shadow: rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0;
  color: inherit;
}
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 22px; } }

/* ---------- KICKER / LABEL ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-bright); margin-bottom: 20px;
}
.kicker::before { content: ''; width: 26px; height: 1px; background: var(--brass-bright); display: block; }
.on-light .kicker { color: var(--brass-deep); }
.on-light .kicker::before { background: var(--brass-deep); }

/* ---------- DARK / LIGHT SECTION SHELLS ---------- */
.on-dark { background: var(--charcoal); color: var(--cream); }
.on-dark .line { border-color: var(--line-onDark); }
.on-light { background: transparent; color: var(--ink); }

/* subtle woodgrain / drafting-line texture for dark sections (premium ambience, not a blurry glow) */
.texture-field { position: relative; isolation: isolate; }
.texture-field::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    repeating-linear-gradient(115deg, rgba(216,173,100,0.05) 0px, rgba(216,173,100,0.05) 1px, transparent 1px, transparent 68px),
    radial-gradient(ellipse 60% 50% at 82% 8%, rgba(216,173,100,0.14), transparent 70%);
}

/* ---------- NAV ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--charcoal) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-onDark);
}
.navrow { display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-plate {
  display: flex; align-items: center; padding: 6px 12px; border-radius: 3px;
  background: var(--cream);
}
.brand-logo { height: 36px; width: auto; display: block; }
nav.links { display: flex; gap: 34px; font-size: 0.86rem; letter-spacing: 0.03em; text-transform: uppercase; }
nav.links a { text-decoration: none; opacity: 0.72; transition: opacity .15s; color: var(--cream); }
nav.links a:hover, nav.links a.active { opacity: 1; }
nav.links a.active { color: var(--brass-bright); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.navcall {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 2px;
  background: var(--brass-bright); color: #1C1508;
  text-decoration: none; font-size: 0.84rem; font-weight: 700; letter-spacing: 0.03em;
  white-space: nowrap; transition: background .15s ease;
}
.navcall:hover { background: var(--cream); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 100%; height: 1.5px; background: var(--cream); transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  max-height: 0; overflow: hidden; display: flex; flex-direction: column;
  border-top: 0 solid var(--line-onDark); background: var(--charcoal);
  transition: max-height .35s ease;
}
.mobile-menu a { padding: 16px 32px; text-decoration: none; opacity: 0.85; border-bottom: 1px solid var(--line-onDark); font-size: 0.95rem; color: var(--cream); }
.mobile-menu a.btn { margin: 16px 32px; border-bottom: none; justify-content: center; }
.mobile-menu.open { max-height: 360px; border-top-width: 1px; }
@media (max-width: 780px) {
  nav.links { display: none; }
  .navcall { display: none; }
  .nav-toggle { display: flex; }
  .brand-logo { height: 30px; }
  .logo-plate { padding: 5px 9px; }
}
@media (min-width: 781px) { .mobile-menu { display: none; } }

/* ---------- PAGE HEADER (interior pages) ---------- */
.page-header { padding: 68px 0 52px; }
.page-header h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); line-height: 1.08; max-width: 17ch; font-weight: 500; }
.page-header p { margin-top: 18px; opacity: 0.72; line-height: 1.7; max-width: 56ch; font-size: 1.05rem; }
.breadcrumb { font-size: 0.78rem; opacity: 0.5; margin-bottom: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--brass-bright); }

/* ---------- HERO ---------- */
.hero { padding: 96px 0 88px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
h1.hero-title {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.02; max-width: 13ch; font-weight: 500;
  color: var(--cream);
}
.hero-title em { font-style: italic; color: var(--brass-bright); font-weight: 400; }
.hero-sub { font-size: 1.12rem; line-height: 1.7; opacity: 0.68; max-width: 46ch; margin: 26px 0 34px; color: var(--cream); }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.btn {
  padding: 15px 28px; border-radius: 2px; text-decoration: none;
  font-weight: 600; font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary { background: var(--brass-bright); color: #1C1508; }
.btn-primary:hover { background: var(--cream); transform: translateY(-2px); }
.btn-gold { background: var(--brass-bright); color: #1C1508; }
.btn-gold:hover { background: var(--cream); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--line-onDark); color: var(--cream); background: transparent; }
.btn-outline:hover { border-color: var(--brass-bright); color: var(--brass-bright); transform: translateY(-2px); }
.on-light .btn-outline, .btn-outline.on-light { border-color: var(--line); color: var(--ink); }
.on-light .btn-outline:hover, .btn-outline.on-light:hover { border-color: var(--brass); color: var(--brass-deep); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.03em; color: var(--brass);
  border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: gap .15s ease, opacity .15s ease;
}
.link-arrow:hover { gap: 12px; }
.on-dark .link-arrow { color: var(--brass-bright); }

.hero-stats { display: flex; gap: 40px; margin-top: 46px; }
.hero-stats div strong { display: block; font-family: 'Fraunces', serif; font-size: 1.7rem; color: var(--brass-bright); font-weight: 500; }
.hero-stats div span { font-size: 0.78rem; opacity: 0.55; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cream); }
.hero-art { display: flex; justify-content: center; position: relative; }
.hero-art img { width: 100%; height: auto; max-width: 520px; }

/* ---------- CORNER BRACKET SIGNATURE MOTIF ---------- */
.bracket-frame { position: relative; }
.bracket {
  position: absolute; width: 22px; height: 22px; pointer-events: none;
}
.bracket.tl { top: -10px; left: -10px; border-top: 1.5px solid var(--brass-bright); border-left: 1.5px solid var(--brass-bright); }
.bracket.br { bottom: -10px; right: -10px; border-bottom: 1.5px solid var(--brass-bright); border-right: 1.5px solid var(--brass-bright); }

/* ---------- SECTION SHELL ---------- */
section { padding: 96px 0; }
.section-head { max-width: 600px; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.1; font-weight: 500; }
.section-head p { margin-top: 16px; opacity: 0.68; line-height: 1.65; font-size: 1.04rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 54px; flex-wrap: wrap; }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-copy p { line-height: 1.8; opacity: 0.78; margin: 0 0 18px; font-size: 1.02rem; }
.about-copy p:last-child { margin-bottom: 0; }
.pull-line {
  font-family: 'Fraunces', serif; font-style: italic; font-size: 1.5rem; line-height: 1.4;
  color: var(--brass-deep); margin: 28px 0; padding-left: 22px; border-left: 2px solid var(--brass);
}
.on-dark .pull-line { color: var(--brass-bright); border-left-color: var(--brass-bright); }

.flow { display: flex; flex-direction: column; gap: 0; }
.flow-step { display: flex; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line); }
.flow-step:last-child { border-bottom: 1px solid var(--line); }
.flow-num { font-family: 'Fraunces', serif; font-size: 1rem; color: var(--brass); flex-shrink: 0; width: 44px; padding-top: 2px; font-weight: 500; }
.flow-body h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 7px; font-family: 'Fraunces', serif; }
.flow-body p { margin: 0; font-size: 0.94rem; opacity: 0.68; line-height: 1.6; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 50px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 780px) { .value-grid { grid-template-columns: 1fr; } }
.value-card { background: var(--paper); padding: 36px 30px; }
.value-card .v-num { font-family: 'Fraunces', serif; font-size: 0.85rem; color: var(--brass); margin-bottom: 20px; display: block; }
.value-card h3 { font-size: 1.14rem; margin-bottom: 10px; font-weight: 500; }
.value-card p { margin: 0; font-size: 0.92rem; opacity: 0.68; line-height: 1.6; }

/* ---------- FEATURED PRODUCTS (dark showcase) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-onDark); border: 1px solid var(--line-onDark); }
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }
.p-card {
  background: var(--charcoal); display: flex; flex-direction: column;
  text-decoration: none; transition: background .25s ease;
  padding: 34px 28px 30px;
}
.p-card:hover { background: var(--charcoal-raised); }
.p-illus { width: 100%; height: 112px; margin-bottom: 26px; display: flex; align-items: flex-start; }
.p-illus img { width: auto; height: 100%; max-width: 100%; object-fit: contain; display: block; }
.p-card h3 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 500; color: var(--cream); }
.p-card p { margin: 0; font-size: 0.88rem; line-height: 1.6; opacity: 0.55; color: var(--cream); }
.p-card .link-arrow { margin-top: 20px; font-size: 0.78rem; }

.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .6s cubic-bezier(.65,.05,.36,1); }
.carousel-slide {
  flex: 0 0 100%; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center;
  background: var(--charcoal); border: 1px solid var(--line-onDark); padding: 48px;
}
@media (max-width: 780px) { .carousel-slide { grid-template-columns: 1fr; gap: 28px; padding: 30px; } }
.carousel-slide .p-illus { height: 220px; margin-bottom: 0; align-items: center; justify-content: center; }
.carousel-slide .p-illus img { height: 100%; }
@media (max-width: 780px) { .carousel-slide .p-illus { height: 160px; } }
.slide-copy .slide-tag { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-bright); margin-bottom: 12px; display: block; }
.slide-copy h3 { font-size: 1.8rem; margin-bottom: 16px; color: var(--cream); font-weight: 500; }
.slide-copy p { margin: 0; opacity: 0.65; line-height: 1.7; font-size: 1.02rem; max-width: 42ch; color: var(--cream); }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-onDark);
  background: var(--charcoal); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--cream); z-index: 5;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.car-btn svg { width: 20px; height: 20px; }
.car-btn:hover { background: var(--brass-bright); color: #1C1508; border-color: var(--brass-bright); }
.car-prev { left: -24px; }
.car-next { right: -24px; }
@media (max-width: 980px) { .car-prev { left: 10px; } .car-next { right: 10px; } }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.carousel-dots button {
  width: 7px; height: 7px; border-radius: 50%; border: none; background: var(--line-onDark);
  cursor: pointer; padding: 0; transition: background .2s ease, width .2s ease;
}
.carousel-dots button.active { background: var(--brass-bright); width: 26px; border-radius: 4px; }

/* ---------- CATALOG ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter-tab {
  padding: 11px 22px; border-radius: 2px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer; transition: all .2s ease;
}
.filter-tab:hover { border-color: var(--brass); }
.filter-tab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .catalog-grid { grid-template-columns: 1fr; } }
.cat-card {
  background: var(--paper-raised); display: flex; flex-direction: column;
  transition: background .2s ease, opacity .3s ease;
  cursor: pointer;
}
.cat-card:hover { background: var(--paper); }
.cat-card.hide { display: none; }
.cat-image { position: relative; height: 168px; background: var(--charcoal); display: flex; align-items: center; justify-content: center; padding: 18px; }
.cat-image img { width: auto; height: 100%; max-width: 84%; object-fit: contain; display: block; }
.cat-badge {
  position: absolute; top: 14px; left: 14px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #1C1508;
  background: var(--brass-bright);
  padding: 5px 11px;
}
.cat-zoom {
  position: absolute; bottom: 12px; right: 12px; width: 32px; height: 32px;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.85);
  transition: opacity .2s ease, transform .2s ease;
}
.cat-card:hover .cat-zoom { opacity: 1; transform: scale(1); }
.cat-zoom svg { width: 15px; height: 15px; stroke: #1C1508; }
.cat-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cat-card h4 { font-size: 1.06rem; font-weight: 500; }
.cat-card p { margin: 0; font-size: 0.86rem; opacity: 0.66; line-height: 1.55; }
.cat-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.cat-foot a { font-size: 0.82rem; font-weight: 600; color: var(--brass-deep); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.cat-foot a svg { width: 13px; height: 13px; }
.cat-count { font-size: 0.76rem; opacity: 0.5; }

/* ---------- QUICK VIEW MODAL ---------- */
.pv-backdrop {
  position: fixed; inset: 0; background: rgba(10,8,6,0.7); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 300; padding: 20px;
}
.pv-backdrop.open { display: flex; }
.pv-modal {
  background: var(--paper-raised); max-width: 760px; width: 100%;
  max-height: 88vh; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6); position: relative;
}
@media (max-width: 640px) { .pv-modal { grid-template-columns: 1fr; } }
.pv-image { background: var(--charcoal); display: flex; align-items: center; justify-content: center; min-height: 260px; padding: 30px; }
.pv-image img { width: auto; height: 100%; max-height: 260px; object-fit: contain; }
.pv-info { padding: 34px 30px; display: flex; flex-direction: column; gap: 16px; }
.pv-info .cat-badge { position: static; display: inline-flex; align-self: flex-start; }
.pv-info h3 { font-size: 1.55rem; font-weight: 500; }
.pv-info p { margin: 0; opacity: 0.7; line-height: 1.7; font-size: 0.99rem; }
.pv-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.pv-close {
  position: absolute; top: 18px; right: 18px; width: 36px; height: 36px;
  background: var(--paper-raised); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
}
.pv-close svg { width: 16px; height: 16px; }

/* ---------- SERVICE BAND ---------- */
.band {
  background: var(--charcoal); color: var(--cream);
  padding: 64px 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center;
  position: relative; overflow: hidden; border: 1px solid var(--line-onDark);
}
@media (max-width: 860px) { .band { grid-template-columns: 1fr; padding: 40px 28px; } }
.band h2 { color: var(--cream); font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.18; font-weight: 500; }
.band p { opacity: 0.65; line-height: 1.65; margin-top: 16px; }
.band-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.band-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.96rem; opacity: 0.85; padding-bottom: 16px; border-bottom: 1px solid var(--line-onDark); }
.band-list li:last-child { border-bottom: none; padding-bottom: 0; }
.band-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; stroke: var(--brass-bright); }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--paper-raised); padding: 40px; }
.c-row { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.c-row:first-of-type { border-top: none; padding-top: 0; }
.c-icon {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px;
}
.c-icon svg { width: 20px; height: 20px; stroke: var(--brass); }
.c-row h4 { margin: 0 0 6px; font-size: 0.76rem; opacity: 0.55; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.c-row a, .c-row div.val { font-size: 1.06rem; font-weight: 500; text-decoration: none; line-height: 1.55; font-family: 'Fraunces', serif; }
.map-panel {
  background: var(--charcoal);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 380px;
}
.map-art { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.map-art svg { width: 100%; max-width: 320px; height: auto; }
.map-cta { padding: 26px; border-top: 1px solid var(--line-onDark); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.map-cta span { font-size: 0.86rem; opacity: 0.6; color: var(--cream); }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line-onDark); padding: 40px 0; background: var(--charcoal); color: var(--cream); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 0.84rem; opacity: 0.55; }
.foot-row .brand { font-size: 1rem; opacity: 1; }

/* ---------- SCROLL PROGRESS & REVEAL ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--brass-bright);
  z-index: 200; transition: width .08s linear;
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.65,.3,1), transform .8s cubic-bezier(.2,.65,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { scroll-behavior: auto !important; }
}

/* ==========================================================================
   v3 — PREMIUM + MOBILE-FIRST LAYER
   ========================================================================== */
:root { --hh: 68px; --ease: cubic-bezier(.2,.65,.3,1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink:#EDE4D6; --paper:#15110D; --paper-raised:#1E1912; --line:rgba(237,228,214,.14); --shadow:rgba(0,0,0,.5); }
}
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
::selection { background: var(--brass-bright); color: #1C1508; }
:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; }
a, button { -webkit-tap-highlight-color: transparent; }

/* header: fallback for browsers without color-mix (older Android) */
header { background: rgba(20,17,13,.94); transition: box-shadow .3s ease; }
@supports (background: color-mix(in srgb, red, blue)) { header { background: color-mix(in srgb, var(--charcoal) 88%, transparent); } }
header.scrolled { box-shadow: 0 12px 32px -14px rgba(0,0,0,.7); }
.navrow { padding: 12px 32px; min-height: var(--hh); }
.logo-plate { border-radius: 6px; box-shadow: 0 0 0 1px rgba(216,173,100,.4); }
nav.links a { position: relative; padding: 6px 0; }
nav.links a::after { content:''; position:absolute; left:0; right:0; bottom:-2px; height:1px; background:var(--brass-bright); transform:scaleX(0); transform-origin:left; transition:transform .3s var(--ease); }
nav.links a:hover::after, nav.links a.active::after { transform: scaleX(1); }
@media (max-width: 1024px) { nav.links { gap: 22px; } .navcall { padding: 10px 14px; } }

/* buttons */
.btn { min-height: 48px; border-radius: 6px; justify-content: center; }
.btn-gold, .btn-primary, .navcall { background: linear-gradient(135deg,#E6C283,#CB9C50); box-shadow: 0 12px 26px -12px rgba(216,173,100,.6); }
.btn-gold:hover, .btn-primary:hover { background: var(--cream); }
.navcall { border-radius: 6px; }

/* hero */
.hero { overflow: hidden; }
.hero-title em { background: linear-gradient(120deg,#F0D49B,#C99A4E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-art { padding: 30px; border: 1px solid var(--line-onDark); border-radius: 18px; background: linear-gradient(160deg, rgba(244,238,226,.05), rgba(244,238,226,.01)); }
.bracket.tl { top: -1px; left: -1px; border-radius: 18px 0 0 0; width: 34px; height: 34px; }
.bracket.br { bottom: -1px; right: -1px; border-radius: 0 0 18px 0; width: 34px; height: 34px; }
.hero-stats div { flex: 1; }

/* trust strip */
.trust { background: var(--charcoal-raised); border-block: 1px solid var(--line-onDark); color: var(--cream); padding: 0; }
.trust-row { display: grid; grid-template-columns: repeat(4,1fr); }
.trust-row span { display:flex; align-items:center; justify-content:center; gap:10px; padding:20px 12px; font-size:.78rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; opacity:.85; }
.trust-row span::before { content:''; width:6px; height:6px; background:var(--brass-bright); transform:rotate(45deg); flex-shrink:0; }

/* cards */
.p-card { position: relative; overflow: hidden; }
.p-card::before { content:''; position:absolute; left:0; right:0; top:0; height:2px; background:linear-gradient(90deg,var(--brass-bright),transparent); transform:scaleX(0); transform-origin:left; transition:transform .45s var(--ease); }
.p-card:hover::before { transform: scaleX(1); }
.p-illus img { transition: transform .5s var(--ease); }
.p-card:hover .p-illus img { transform: translateY(-4px) scale(1.04); }
.catalog-grid, .product-grid, .value-grid, .contact-grid, .band { border-radius: 14px; overflow: hidden; }
.cat-card { transition: background .2s ease, transform .3s var(--ease); }
.section-head h2 { font-size: clamp(1.85rem, 5.4vw, 2.7rem); }
.carousel-track { touch-action: pan-y; }
.pv-close { width: 44px; height: 44px; }

/* mobile action bar */
.mbar { display: none; }

/* ---------- TABLET & MOBILE ---------- */
@media (max-width: 900px) { .hero-art { max-width: 420px; margin: 0 auto; } }
@media (max-width: 780px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  section { padding: 60px 0; }
  .wrap { padding: 0 20px; }
  .navrow { padding: 10px 18px; min-height: 60px; }
  .brand-logo { height: 28px; }
  .nav-toggle { width: 44px; height: 44px; margin-right: -8px; align-items: center; }
  .nav-toggle span { width: 24px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .mobile-menu.open { max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); overflow-y: auto; }
  .mobile-menu a { padding: 18px 22px; font-family: 'Fraunces', Georgia, serif; font-size: 1.4rem; opacity: 1; }
  .mobile-menu a.active { color: var(--brass-bright); }
  .mobile-menu a.btn { margin: 20px 22px 26px; font-family: 'Work Sans', sans-serif; font-size: .9rem; }

  .hero { padding: 40px 0 52px; }
  .hero-grid { gap: 34px; }
  h1.hero-title { font-size: clamp(2.3rem, 10.6vw, 3.1rem); max-width: none; }
  .hero-sub { font-size: 1rem; margin: 18px 0 26px; }
  .cta-row { gap: 12px; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 32px; border-top: 1px solid var(--line-onDark); }
  .hero-stats div { padding: 16px 8px 0 0; }
  .hero-stats div span { font-size: .68rem; line-height: 1.3; display: block; }
  .hero-art { padding: 20px; }

  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-row span { padding: 16px 8px; font-size: .68rem; letter-spacing: .08em; }

  .page-header { padding: 40px 0 34px; }
  .page-header p { font-size: 1rem; }
  .section-head, .section-foot { margin-bottom: 32px; }
  .section-foot { flex-direction: column; align-items: flex-start; gap: 18px; }
  .about-grid { gap: 32px; }
  .flow-step { gap: 14px; padding: 20px 0; }
  .flow-num { width: 34px; }
  .value-card { padding: 26px 22px; }
  .p-card { padding: 26px 22px 24px; }
  .p-illus { height: 96px; margin-bottom: 20px; }

  .carousel-slide { padding: 24px 20px; gap: 20px; }
  .carousel-slide .p-illus { height: 130px; }
  .slide-copy h3 { font-size: 1.5rem; }
  .car-btn { display: none; }

  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 28px; padding: 0 20px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { flex: 0 0 auto; white-space: nowrap; min-height: 44px; border-radius: 6px; }
  .cat-image { height: 150px; }
  .cat-body { padding: 18px 20px 20px; }
  .cat-foot a { min-height: 44px; }

  .band { padding: 32px 22px; gap: 28px; }
  .band .btn { width: 100%; }
  .contact-card { padding: 26px 20px; }
  .c-row { gap: 14px; }
  .cta-row .btn.on-light { flex: 1 1 100%; }
  .map-panel { min-height: 300px; }
  .map-cta .btn { width: 100%; }

  footer { padding: 32px 0; }
  .foot-row { flex-direction: column; align-items: flex-start; gap: 10px; }

  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(20,17,13,.96); border-top: 1px solid var(--line-onDark); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 8px; font-weight: 700; font-size: .9rem; text-decoration: none; }
  .mbar svg { width: 18px; height: 18px; }
  .mbar .m-call { background: linear-gradient(135deg,#E6C283,#CB9C50); color: #1C1508; }
  .mbar .m-wa { background: #25D366; color: #06210F; }
}
@media (max-width: 640px) {
  .pv-backdrop { align-items: flex-end; padding: 0; }
  .pv-modal { max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0; }
  .pv-image { min-height: 190px; padding: 24px; }
  .pv-info { padding: 22px 20px calc(26px + env(safe-area-inset-bottom, 0px)); }
  .pv-cta .btn { flex: 1 1 100%; }
}
@media (hover: none) { .cat-zoom { opacity: 1; transform: none; } }
@media (max-width: 360px) { h1.hero-title { font-size: 2.1rem; } .hero-stats strong { font-size: 1.4rem; } }
