/* DrapeCare. Layout: left-aligned editorial pages; one bold moment (an arched window whose drapes part to show real work), everything else quiet. */
:root {
  --paper: #f6f6f2;        /* pale linen, faint green-grey */
  --paper-2: #ecebe4;      /* deeper linen band */
  --surface: #ffffff;
  --ink: #242129;          /* aubergine-black */
  --ink-2: #57525d;        /* muted text */
  --rule: #d9d6cf;
  --plum: #5e2a4f;         /* dyed-wool mulberry */
  --plum-2: #47203c;
  --brass: #a07a38;        /* drapery hardware */
  --on-plum: #ffffff;
  --band: #2b1a28;         /* dark aubergine band */
  --on-band: #f1ece8;
  --on-band-2: #c9bcc4;
  --pleat-a: #6c3459; --pleat-b: #4c2140; --pleat-c: #7f4669;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  --r: 14px;
  --ease: cubic-bezier(.22,.8,.24,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17151a; --paper-2: #1f1c22; --surface: #232026; --ink: #efebe8; --ink-2: #b4adb6; --rule: #36313a;
    --plum: #d79cc3; --plum-2: #e7b5d6; --brass: #d3b072; --on-plum: #1b1019;
    --band: #0f0c10; --on-band: #f1ece8; --on-band-2: #b9adb5;
    --pleat-a: #5a2b4b; --pleat-b: #3b1a31; --pleat-c: #6d3a5c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #17151a; --paper-2: #1f1c22; --surface: #232026; --ink: #efebe8; --ink-2: #b4adb6; --rule: #36313a;
  --plum: #d79cc3; --plum-2: #e7b5d6; --brass: #d3b072; --on-plum: #1b1019;
  --band: #0f0c10; --on-band: #f1ece8; --on-band-2: #b9adb5;
  --pleat-a: #5a2b4b; --pleat-b: #3b1a31; --pleat-c: #6d3a5c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: var(--paper); padding: 10px 16px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.06; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
p { margin: 0; max-width: var(--measure); }
p + p { margin-top: .9em; }
.lede { font-size: clamp(1.12rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); text-decoration: none; letter-spacing: .005em; line-height: 1; }
.brand i { font-style: normal; color: var(--brass); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; font-weight: 600; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--plum); text-decoration: underline; text-underline-offset: 6px; }
.menu { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); color: var(--ink); border-radius: 999px; padding: 9px 16px; font: 600 .95rem var(--sans); }
@media (max-width: 960px) {
  .menu { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
}

.btn { border: 0; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 1rem/1 var(--sans); text-decoration: none; transition: transform .25s var(--ease), background-color .3s; }
.btn:active { transform: scale(.97); }
.btn-plum { background: var(--plum); color: var(--on-plum); }
.btn-plum:hover { background: var(--plum-2); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--paper-2); }
.nav .btn { min-height: 44px; padding: 0 20px; color: var(--on-plum); text-decoration: none; }

/* Hero: arched window, drapes part once */
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 6vw, 84px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { font-size: .95rem; color: var(--ink-2); }
.hero-meta b { color: var(--ink); font-weight: 600; user-select: all; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .arch { max-width: 440px; } }

.arch { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 999px 999px var(--r) var(--r); overflow: hidden; background: var(--paper-2);
  box-shadow: 0 0 0 10px var(--surface), 0 0 0 11px var(--rule), 0 30px 60px -30px rgba(43,26,40,.45); margin: 11px; max-width: calc(100% - 22px); }
.arch picture, .arch img { width: 100%; height: 100%; object-fit: cover; }
.arch .rod { position: absolute; top: 9%; left: 4%; right: 4%; height: 5px; border-radius: 3px; background: var(--brass); z-index: 3; }
.arch .panel { position: absolute; top: 9%; bottom: 0; width: 51%; z-index: 2;
  background: repeating-linear-gradient(90deg, var(--pleat-b) 0, var(--pleat-a) 5%, var(--pleat-c) 9%, var(--pleat-a) 13%, var(--pleat-b) 18%);
  transition: transform 1.6s var(--ease); }
.arch .panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.22)); }
.arch .l { left: 0; transform-origin: left top; } .arch .r { right: 0; transform-origin: right top; }
.arch.open .l { transform: scaleX(.16); } .arch.open .r { transform: scaleX(.16); }
.arch figcaption { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; background: var(--surface); color: var(--ink); font-size: .82rem; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .arch .panel { transition: none; } }

/* Sections */
.sec { padding-block: clamp(56px, 8vw, 112px); }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec-band { background: var(--band); color: var(--on-band); border-top: 0 !important; }
.sec-band .muted, .sec-band .lede { color: var(--on-band-2); }
.sec-band a:not(.btn) { color: var(--on-band); }
.quote .btn-line, .sec-band .quote .btn-line { color: var(--ink); }
.quote .btn-plum { color: var(--on-plum); }
.sec-tint { background: var(--paper-2); }
.head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.two > * { min-width: 0; }
.stack { display: grid; gap: 18px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* Services: two large tiles, each with its own register */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.svc a.tile { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 36px); border-radius: var(--r); text-decoration: none; color: inherit; min-width: 0; }
.svc .tile.drape { background: var(--plum); color: var(--on-plum); }
.svc .tile.rug { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.tile h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; }
.tile .go { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.tile.drape p { color: color-mix(in srgb, var(--on-plum) 82%, transparent); }
.tile.rug p { color: var(--ink-2); }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; } }

/* Process steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.2rem 1fr; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--brass); }
.steps li > div { display: grid; gap: 4px; min-width: 0; }
.sec-band .steps li { border-color: rgba(255,255,255,.14); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }

/* Photo pair */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair figure { margin: 0; display: grid; gap: 8px; }
.pair img { border-radius: var(--r); aspect-ratio: 3/4; object-fit: cover; width: 100%; }
figcaption, .cap { font-size: .88rem; color: var(--ink-2); }

/* Price table */
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
td.p { white-space: nowrap; font-weight: 600; }
.note { background: var(--surface); border: 1px dashed var(--brass); border-radius: var(--r); padding: 18px 20px; }

/* Quote block */
.quote { background: var(--surface); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); box-shadow: inset 0 0 0 1px var(--rule); display: grid; gap: 16px; color: var(--ink); }
.quote .num { font: 700 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--sans); letter-spacing: .01em; user-select: all; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); padding-block: 16px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* Area list */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.areas a { display: grid; gap: 6px; padding-top: 16px; border-top: 2px solid var(--brass); text-decoration: none; color: inherit; }
.areas a b { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.areas a span { color: var(--ink-2); font-size: .95rem; }
.sec-band .areas a span { color: var(--on-band-2); }
@media (max-width: 760px) { .areas { grid-template-columns: 1fr; } }

/* Page head */
.phead { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 40px); }
.phead .wrap { display: grid; gap: 18px; }
.crumb { font-size: .9rem; color: var(--ink-2); }
.crumb a { color: var(--ink-2); }
.answer { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; max-width: 66ch; border-left: 3px solid var(--brass); padding-left: 18px; }

/* Contact form */
form.req { display: grid; gap: 14px; }
.f { display: grid; gap: 6px; }
.f label { font-size: .9rem; font-weight: 600; }
.f input, .f select, .f textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 12px; padding: 12px 14px; width: 100%; }
.f textarea { min-height: 100px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.out { background: var(--paper); border: 1px dashed var(--brass); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; }
.out pre { margin: 0; white-space: pre-wrap; font: .92rem/1.5 var(--sans); }
.consent { font-size: .82rem; color: var(--ink-2); }

/* Prose pages */
.prose { max-width: 70ch; display: grid; gap: 16px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 18px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* Footer */
.foot { background: var(--band); color: var(--on-band-2); padding-block: 56px 40px; font-size: .95rem; }
.foot .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot h3 { color: var(--on-band); font-size: 1rem; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot a { color: var(--on-band-2); }
.foot .brand { color: var(--on-band); }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .85rem; }
@media (max-width: 860px) { .foot .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot .wrap { grid-template-columns: 1fr; } }

/* Coming-soon sheet for Walt */
.sheet { border: 0; margin: auto; padding: 28px; border-radius: 22px; background: var(--surface); color: var(--ink); width: min(92vw, 380px); box-shadow: 0 24px 60px rgba(43,26,40,.35); }
.sheet::backdrop { background: rgba(43,26,40,.45); }
.sheet-h { font: 500 1.5rem/1.2 var(--serif); padding-right: 36px; }
.sheet-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.sheet-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); font-size: 1.75rem; line-height: 1; cursor: pointer; border-radius: 50%; }

/* Walt: tokens for the shared walt.css, plus the floating button frame */
.wp, .walt { --blue: var(--plum); --blue-dark: var(--plum-2); --line: var(--rule); --mist: var(--paper-2); --muted: var(--ink-2); --navy: var(--ink); --amber: var(--brass); }
.walt { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 31; min-height: 56px; border-radius: 999px; border: 0; color: var(--on-plum); font: 700 1rem/1 var(--sans); box-shadow: 0 10px 28px rgba(43,26,40,.32); cursor: pointer; }
.btn-walt .dw { box-shadow: 0 0 0 1.5px var(--plum); }
.wp { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: min(86vh, 640px); display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(43,26,40,.28); font-size: 1rem; line-height: 1.5; }
.wp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--band); color: #fff; border-radius: 17px 17px 0 0; }
.wp-head h2 { font-family: var(--serif); font-size: 1.15rem; color: #fff; }
.wp-head small { display: block; font: 500 .82rem var(--sans); opacity: .85; }
.wp-emergency { background: var(--paper-2) !important; color: var(--ink) !important; }
.wp-emergency a { color: var(--plum) !important; }
@media (min-width: 640px) { .wp { left: auto; right: 24px; bottom: 24px; width: 390px; height: min(620px, calc(100vh - 48px)); border-radius: 18px; } }
