/* Decor Construction Chemicals — site styles
   Palette taken from the logo red (#C4151D). Light theme is the brand look; dark theme keeps the same red. */

:root {
  --red: #C4151D;
  --red-press: #A10F16;
  --red-tint: #FBEDED;
  --red-text: #B3121A;
  --ink: #1E1718;
  --muted: #675C5C;
  --line: #E8DFDE;
  --paper: #FFFFFF;
  --concrete: #F5F2F1;
  --plate: #FFFFFF;
  --grid: rgba(196, 21, 29, 0.07);
  --wa: #1C9E4F;
  --wa-press: #168442;
  --on-red: #FFFFFF;
  --blend: multiply;
  --shadow: 0 1px 2px rgba(30, 23, 24, .06), 0 10px 28px rgba(30, 23, 24, .07);
  --soil: #E9DFD6;
  --hatch: #CBB8A8;
  --wall: #CFC7C5;
  --tile: #F1EEED;
  --glass: #DCE8EE;
  --logo-red-d: block;
  --logo-white-d: none;

  --f-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  --f-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;
  --radius: 10px;
  --gutter: clamp(16px, 4vw, 32px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --red: #D8262E; --red-press: #B81D24; --red-tint: #37191B; --red-text: #FF7A7F;
    --ink: #F4EEED; --muted: #B7AAA9; --line: #3A3031; --paper: #161112; --concrete: #1F191A;
    --grid: rgba(255, 90, 96, 0.07); --blend: normal;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.35);
    --soil: #3A2E27; --hatch: #56463C; --wall: #574C4B; --tile: #2A2324; --glass: #2E3D45; --logo-red-d: none; --logo-white-d: block;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --red: #D8262E; --red-press: #B81D24; --red-tint: #37191B; --red-text: #FF7A7F;
  --ink: #F4EEED; --muted: #B7AAA9; --line: #3A3031; --paper: #161112; --concrete: #1F191A;
  --grid: rgba(255, 90, 96, 0.07); --blend: normal;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.35);
  --soil: #3A2E27; --hatch: #56463C; --wall: #574C4B; --tile: #2A2324; --glass: #2E3D45; --logo-red-d: none; --logo-white-d: block;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.25rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--red); color: var(--on-red); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 600 .82rem/1.3 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--red-text); margin-bottom: .75rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 1.3em; border-radius: 8px; border: 2px solid transparent; font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-sm { min-height: 40px; padding: 0 1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: var(--on-red); }
.btn-red:hover { background: var(--red-press); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-press); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: #fff; color: #9C0F15; }
.btn-light:hover { background: #FBEDED; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--red-text); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand .logo { height: 48px; width: auto; max-width: 100%; }
.logo-red { display: var(--logo-red-d); }
.logo-white { display: var(--logo-white-d); }
@media (max-width: 400px) { .brand .logo { height: 40px; } }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .ic { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; display: none; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; }
}

/* blueprint grid used behind hero + finder */
.hero, .finder, .page-head { background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }

/* hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 64px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(3.4rem, 10vw, 7.6rem); font-weight: 800; line-height: .88; letter-spacing: -.005em; }
.hero h1 span { color: var(--red-text); }
.hero .lead { margin-top: 1.25rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 26px 26px rgba(30, 23, 24, .22)); }
.hero-tags { list-style: none; margin: 0; padding: 0; }
.hero-tags li { position: absolute; background: var(--red); color: var(--on-red); font: 700 .82rem/1 var(--f-body); letter-spacing: .03em; padding: 7px 10px; border-radius: 4px; box-shadow: var(--shadow); white-space: nowrap; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 520px; } }
@media (max-width: 460px) { .hero-tags { display: none; } }

/* range strip */
.range { background: var(--red); color: var(--on-red); }
.range-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 34px; padding-block: 16px; font: 700 1.05rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .06em; }
.range-row span { white-space: nowrap; }

/* sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section.tight { padding-block: 16px clamp(56px, 8vw, 96px); }
.sec-head { margin-bottom: clamp(24px, 4vw, 40px); display: grid; gap: .6rem; }
.sec-head.row { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* finder */
.finder { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.finder-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .finder-grid { grid-template-columns: 1fr; } }
.house-box { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.house { width: 100%; height: auto; display: block; }
.house .s-soil { fill: var(--soil); } .house .s-hatch { stroke: var(--hatch); stroke-width: 2; }
.house .s-ground { stroke: var(--ink); stroke-width: 2; }
.house .s-room { fill: var(--concrete); }
.house .s-wall, .house .s-slab { fill: var(--wall); }
.house .s-tile { fill: var(--tile); } .house .s-tileline { fill: none; stroke: var(--line); stroke-width: 1.5; }
.house .s-glass { fill: var(--glass); stroke: var(--ink); stroke-width: 2; }
.house .s-frame, .house .s-line { stroke: var(--ink); stroke-width: 2; fill: none; }
.house .s-door { fill: var(--wall); stroke: var(--ink); stroke-width: 2; }
.house .s-fixture { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.house .s-drop { stroke: var(--glass); stroke-width: 2; stroke-linecap: round; }
.house .s-crack { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.house .s-joint { fill: var(--ink); }
.house .s-tank { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.house .s-label { font: 600 11px var(--f-body); letter-spacing: .12em; fill: var(--muted); }
.house .zone { cursor: pointer; transition: opacity .2s; }
.house .zone .zf { transition: fill .2s, stroke .2s; }
.house .zone.on .zf { fill: var(--red); stroke: var(--red); }
.house .zone.on .s-crack { fill: none; stroke-width: 4; }
.house .zone.on[data-area="soil"] .zf { fill: var(--red-tint); }
.pin { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 10px 4px 5px; font: 600 .8rem/1 var(--f-body); cursor: pointer; white-space: nowrap; box-shadow: var(--shadow); }
.pin-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.pin[aria-pressed="true"], .pin:hover { background: var(--red); color: var(--on-red); border-color: var(--red); }
.pin[aria-pressed="true"] .pin-dot, .pin:hover .pin-dot { background: #fff; box-shadow: none; }
@media (max-width: 620px) { .pin { padding: 5px; } .pin-label { display: none; } }
.area-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.area-btn, .chip { font: 600 .92rem/1 var(--f-body); padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; min-height: 40px; }
.area-btn:hover, .chip:hover { border-color: var(--red); }
.area-btn[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.area-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.area-view { display: grid; gap: 14px; }
.area-problem { color: var(--muted); }
.area-products { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.area-products a { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color .15s; }
.area-products a:hover { border-color: var(--red); }
.area-products img { width: 56px; height: 56px; object-fit: contain; background: var(--plate); border-radius: 8px; padding: 4px; }
.area-products span { display: grid; flex: 1; line-height: 1.25; }
.area-products small { color: var(--muted); font-size: .88rem; }
.area-products .ic { color: var(--red-text); }

/* product cards */
.p-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 960px) { .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .p-grid { grid-template-columns: 1fr; } }
.p-card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); transition: border-color .2s, transform .2s, box-shadow .2s; }
.p-card:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-2px); }
.p-card-img { aspect-ratio: 4 / 3; background: var(--plate); display: grid; place-items: center; padding: 18px; border-bottom: 4px solid var(--red); }
.p-card-img img { max-height: 100%; width: auto; object-fit: contain; }
.p-card-img.wide img { width: 100%; height: auto; }
.p-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-type { font: 600 .78rem/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--red-text); }
.p-card h3 { font-size: 1.7rem; }
.p-card p { color: var(--muted); font-size: .98rem; }
.p-packs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.p-packs span { font: 600 .8rem/1 var(--f-body); padding: 6px 8px; background: var(--concrete); border-radius: 4px; font-variant-numeric: tabular-nums; }
.p-more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--red-text); }
.p-card[hidden] { display: none; }

/* about */
.about { background: var(--concrete); padding-block: clamp(56px, 8vw, 96px); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-art { max-width: 420px; } }
.about-art { background: var(--red-tint); border-radius: 14px; padding: clamp(20px, 4vw, 40px) clamp(20px, 4vw, 40px) 0; display: flex; justify-content: center; align-items: flex-end; overflow: hidden; }
.about-art img { width: auto; max-width: 100%; max-height: 480px; }
.about-copy { display: grid; gap: 1rem; }
.about-copy p { max-width: 62ch; }
.checks { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: 10px; }
.checks li, .benefits li { position: relative; padding-left: 30px; font-weight: 500; }
.checks li::before, .benefits li::before { content: ""; position: absolute; left: 0; top: .25em; width: 18px; height: 18px; border-radius: 4px; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4 4 10-10' fill='none' stroke='white' stroke-width='3'/%3E%3C/svg%3E") center/14px no-repeat; }

/* order band */
.order-band { background: var(--red); color: #fff; padding-block: clamp(48px, 7vw, 80px); }
.order-band .wrap { display: grid; gap: 28px; justify-items: start; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; display: grid; gap: 6px; padding-top: 14px; border-top: 2px solid rgba(255,255,255,.5); }
.steps li::before { content: counter(s); font: 800 2.6rem/1 var(--f-display); }
.steps strong { font: 700 1.35rem/1.1 var(--f-display); }
.steps span { opacity: .92; }

/* products page */
.page-head { padding-block: clamp(40px, 6vw, 72px) 28px; }
.page-head .lead { margin-top: 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }
.linkish { background: none; border: 0; color: var(--red-text); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.finder-cta { border-top: 1px solid var(--line); padding-block: 40px; background: var(--concrete); }
.finder-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.finder-cta h2 { font-size: 1.9rem; }
.finder-cta p { color: var(--muted); margin-top: 4px; }
.finder-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* product detail */
.product-view { padding-block: 24px clamp(56px, 8vw, 96px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--red-text); text-decoration: underline; }
.pd-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .pd-top { grid-template-columns: 1fr; } }
.pd-img { background: var(--plate); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 4vw, 44px); display: grid; place-items: center; aspect-ratio: 1 / 1; position: sticky; top: 90px; }
.pd-img img { max-height: 100%; width: auto; object-fit: contain; }
.pd-img.wide img { width: 100%; height: auto; }
@media (max-width: 860px) { .pd-img { position: static; aspect-ratio: 4 / 3; } }
.pd-info { display: grid; gap: 16px; }
.pd-info h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.urdu { font: 500 1.25rem/2.2 var(--f-urdu); color: var(--red-text); }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
@media (max-width: 460px) { .benefits { grid-template-columns: 1fr; } }
.order-box { border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 16px; background: var(--concrete); }
.packs { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.packs legend, .qty-row label { font: 600 .82rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.pack { position: relative; }
.pack input { position: absolute; opacity: 0; inset: 0; }
.pack span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.pack input:checked + span { border-color: var(--red); background: var(--red-tint); color: var(--red-text); }
.pack input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.qty-row label { margin: 0; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.qty button:hover { background: var(--red-tint); }
.qty input { width: 64px; border: 0; border-inline: 1.5px solid var(--line); text-align: center; font: 600 1rem var(--f-body); background: transparent; color: var(--ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.order-note { font-size: .88rem; color: var(--muted); }

.sheet { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .sheet { grid-template-columns: 1fr; } }
.sheet-main { display: grid; gap: 16px; align-content: start; }
.sheet-main h2 { font-size: 1.9rem; margin-top: 8px; }
.sheet-main p { max-width: 65ch; }
.usage { font: 700 1.35rem/1.3 var(--f-display); padding: 16px 20px; border-left: 5px solid var(--red); background: var(--red-tint); border-radius: 0 8px 8px 0; }
.table-wrap { overflow-x: auto; }
.cov { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.cov th, .cov td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cov th { font: 600 .8rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cov td:first-child { font-weight: 700; }
.safety { font-size: .95rem; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 8px; }
.spec { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.spec > div { padding: 16px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.spec > div:last-child { border-bottom: 0; }
.spec dt { font: 600 .8rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--red-text); }
.spec dd { margin: 0; font-variant-numeric: tabular-nums; }
.spec ul { margin: 0; padding-left: 1.1em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: .88rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--concrete); }

.calc { border: 1.5px dashed var(--red); border-radius: 12px; padding: 18px 20px; display: grid; gap: 8px; margin-top: 8px; }
.calc h3 { font-size: 1.4rem; }
.calc label { font-weight: 600; font-size: .95rem; }
.calc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.calc .calc-row input { width: 140px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 8px; font: 600 1.05rem var(--f-body); background: var(--paper); color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-out { font: 700 1.25rem/1.25 var(--f-display); color: var(--red-text); }
.calc-note { font-size: .88rem; color: var(--muted); }
.related { margin-top: clamp(48px, 7vw, 80px); display: grid; gap: 24px; }

/* footer */
.site-footer { background: #1A1213; color: #EFE6E5; padding-top: clamp(48px, 7vw, 72px); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.2fr .9fr 1.1fr; gap: 32px; padding-bottom: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 140px; margin-bottom: 16px; }
.footer-brand p, .f-order p { color: #BFB2B1; font-size: .95rem; max-width: 34ch; }
.f-order { display: grid; gap: 14px; justify-items: start; align-content: start; }
.f-title { font: 700 1.2rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.f-order .f-title { margin-bottom: 0; }
.f-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.f-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.f-list a, .f-plain { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #EFE6E5; font-size: .98rem; }
.f-list a:hover { color: #fff; text-decoration: underline; }
.f-list .ic { color: #FF6C71; }
.f-links a { color: #CFC3C2; }
.copyable { user-select: all; font-variant-numeric: tabular-nums; }
.copy { background: transparent; border: 1px solid #4A3C3D; color: #CFC3C2; border-radius: 6px; font: 600 .75rem/1 var(--f-body); padding: 5px 8px; cursor: pointer; }
.copy:hover { border-color: #FF6C71; color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 20px 96px; border-top: 1px solid #3A2D2E; font-size: .85rem; color: #9E9090; }
.footer-base a { color: #CFC3C2; }

/* chat */
.chat { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: grid; justify-items: end; gap: 12px; }
.chat-fab { display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px 0 16px; border-radius: 999px; border: 0; background: var(--red); color: #fff; font: 700 1rem var(--f-body); cursor: pointer; box-shadow: 0 8px 24px rgba(160, 15, 22, .35); }
.chat-fab .ic { width: 22px; height: 22px; }
.chat-fab:hover { background: var(--red-press); }
.chat-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.22); display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden; order: -1; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--red); color: #fff; }
.chat-head div { display: grid; line-height: 1.25; }
.chat-head strong { font: 700 1.2rem var(--f-display); letter-spacing: .02em; }
.chat-head span { font-size: .8rem; opacity: .9; }
.chat-x { background: transparent; border: 0; color: #fff; width: 40px; height: 40px; cursor: pointer; display: grid; place-items: center; }
.chat-log { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--concrete); }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 12px; font-size: .95rem; line-height: 1.45; }
.msg.bot { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg p + p { margin-top: 6px; }
.msg .mini { display: grid; gap: 6px; margin-top: 8px; }
.msg .mini a { display: flex; align-items: center; gap: 8px; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-weight: 600; font-size: .9rem; }
.msg .mini a:hover { border-color: var(--red); }
.msg .mini img { width: 34px; height: 34px; object-fit: contain; background: var(--plate); border-radius: 4px; }
.msg .mini small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.msg .wa-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 12px; border-radius: 8px; }
.chat-quick { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--paper); }
.chat-quick button { flex: none; font: 600 .82rem/1 var(--f-body); padding: 8px 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.chat-quick button:hover { border-color: var(--red); color: var(--red-text); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; background: var(--paper); }
.chat-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; font: 400 .98rem var(--f-body); background: var(--paper); color: var(--ink); }
.chat-form input:focus { border-color: var(--red); outline: none; }
.chat-form button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--red); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat.open .chat-fab span { display: none; }
.chat.open .chat-fab { padding: 0; width: 54px; justify-content: center; }
@media (max-width: 480px) { .chat-panel { height: calc(100vh - 110px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
