:root {
  --black: #090408;
  --black-2: #0f0a10;
  --panel: #161016;
  --yellow: #f7c611;
  --yellow-dim: #c79e0c;
  --white: #f4f1ec;
  --muted: #9a948f;
  --line: rgba(247, 198, 17, 0.18);
  --radius: 14px;
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* The `hidden` attribute must always win over any component's own `display`
   rule (e.g. .chat-panel, .btn, .modal-overlay all set display explicitly,
   which would otherwise override the browser's default [hidden] behavior
   at equal CSS specificity). Without this, elements marked hidden could
   render visible on page load. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.wrap.narrow-480 { max-width: 480px; }

/* ---------- Tape measure strip ---------- */
.tape {
  height: 46px;
  background: var(--yellow);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--black);
}
.tape::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--black) 0 2px, transparent 2px 26px
  );
  background-position: 0 0;
  opacity: 0.85;
}
.tape::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--black) 0 2px, transparent 2px 52px
  );
  background-size: 52px 18px;
  background-repeat: repeat-x;
  background-position: 0 0;
  opacity: 0.85;
}
.tape .nums {
  position: absolute; inset: 0;
  display: flex; align-items: center; gap: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--black);
  font-size: 22px;
}
.tape .nums span {
  flex: 1;
  text-align: center;
  letter-spacing: 2px;
}

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 4, 8, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.brand .logo .nerd { color: var(--yellow); }
.brand .tag { color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--yellow); }
.nav-cta {
  background: var(--yellow); color: var(--black) !important;
  padding: 10px 18px; border-radius: 999px; font-weight: 700 !important;
  font-size: 13px !important; text-transform: uppercase; letter-spacing: .5px;
  transition: transform .15s;
}
.nav-cta:hover { transform: translateY(-2px); }
.nav-toggle {
  display: none; background: none; border: none; color: var(--yellow);
  font-size: 26px; cursor: pointer; line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(247,198,17,0.10), transparent 60%),
    var(--black);
}
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--yellow); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--yellow); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -1px;
  text-transform: uppercase;
}
.hero h1 .accent { color: var(--yellow); display: block; }
.hero p { color: var(--muted); font-size: 18px; max-width: 480px; margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions.centered { justify-content: center; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700;
  font-size: 15px; cursor: pointer; border: none; transition: transform .15s, background .2s;
}
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { transform: translateY(-2px); background: #ffd62e; }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-ghost.full { width: 100%; justify-content: center; margin-top: 20px; }

.hero-card {
  background: linear-gradient(160deg, var(--panel), var(--black-2));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  position: relative;
}
.hero-card .ruler-edge {
  position: absolute; left: 0; top: 18px; bottom: 18px; width: 6px;
  background: repeating-linear-gradient(var(--yellow) 0 2px, transparent 2px 10px);
  border-radius: 3px;
}
.hero-card h3 { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row .ic {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: rgba(247,198,17,0.12);
  color: var(--yellow); font-size: 16px;
}
.contact-row b { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.contact-row span { font-size: 15px; }

/* ---------- Services ---------- */
.section { padding: 80px 0px; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(32px, 5vw, 52px); text-transform: uppercase; letter-spacing: -.5px;
}
.section-head h2 .accent { color: var(--yellow); }
.section-head p { color: var(--muted); margin-top: 10px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding:0px 40px; }
.svc {
  background: linear-gradient(170deg, var(--panel), var(--black-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.svc:hover { transform: translateY(-6px); border-color: var(--yellow); }
.svc::after {
  content: ""; position: absolute; top: 0; right: 0; width: 60px; height: 60px;
  background: radial-gradient(circle at top right, rgba(247,198,17,0.25), transparent 70%);
}
.svc .pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--yellow); color: var(--yellow);
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  margin-bottom: 20px;
}
.svc h3 { font-size: 20px; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.svc ul { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; }
.svc li { font-size: 14px; color: var(--white); display: flex; gap: 10px; align-items: flex-start; }
.svc li::before { content: "▸"; color: var(--yellow); font-weight: 900; }
.svc .price { font-family: var(--font-display); font-size: 15px; color: var(--yellow); text-transform: uppercase; letter-spacing: 1px; }
.svc .price b { font-size: 26px; }
.svc-note { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; padding: 10px 12px; background: rgba(247,198,17,0.06); border: 1px dashed var(--line); border-radius: 8px; }
.svc-note a { color: var(--yellow); text-decoration: underline; }
.svc.featured { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow), 0 20px 50px rgba(247,198,17,0.08); }
.tag-featured {
  position: absolute; top: 0; right: 0; background: var(--yellow); color: var(--black);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  padding: 6px 14px; border-bottom-left-radius: 12px; z-index: 1;
}

/* ---------- Pre-Owned Furniture ---------- */
.furniture { background:
    radial-gradient(700px 320px at 85% 0%, rgba(247,198,17,0.07), transparent 60%),
    var(--black); }
.furn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 760px; margin: 0 auto 40px; }
.furn-card {
  background: linear-gradient(170deg, var(--panel), var(--black-2));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.furn-card:hover { transform: translateY(-6px); border-color: var(--yellow); }
.furn-img {
  position: relative; height: 180px; display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(247,198,17,0.05) 0 12px, transparent 12px 24px),
    var(--black-2);
  border-bottom: 1px solid var(--line);
}
.furn-icon { font-size: 72px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5)); }
.furn-badge {
  position: absolute; top: 14px; left: 14px; background: var(--yellow); color: var(--black);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  padding: 5px 12px; border-radius: 999px;
}
.furn-body { padding: 24px; }
.furn-body h3 { font-size: 20px; margin-bottom: 8px; }
.furn-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.furn-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.furn-price { font-family: var(--font-display); font-weight: 900; font-size: 32px; color: var(--yellow); }
.furn-btn { padding: 11px 20px; font-size: 14px; }

.estimator {
  max-width: 820px; margin: 0 auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px;
}
.estimator h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; font-size: 18px; }
.est-sub { color: var(--muted); font-size: 14px; margin: 8px 0 24px; }
.est-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.est-col { display: flex; flex-direction: column; }
.est-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--yellow); margin-bottom: 12px; }
.zip-row { display: flex; gap: 10px; }
.zip-row input {
  flex: 1; padding: 13px 15px; background: var(--black); color: var(--white);
  border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 15px; letter-spacing: 2px;
}
.zip-row input:focus { outline: none; border-color: var(--yellow); }
.zip-row .btn { padding: 13px 22px; }
.zip-result { margin-top: 12px; font-size: 14px; min-height: 20px; color: var(--muted); }
.zip-result.ok { color: var(--white); }
.zip-result.ok b { color: var(--yellow); font-family: var(--font-display); }
.zip-result.err { color: #ff8585; }
.man-flag { color: var(--yellow); font-weight: 700; }
.est-select {
  width: 100%; padding: 13px 15px; background: var(--black); color: var(--white);
  border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 15px;
}
.est-select:focus { outline: none; border-color: var(--yellow); }
.headboard-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.hb-check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.hb-check input { accent-color: var(--yellow); width: 17px; height: 17px; }
.hb-check b { color: var(--yellow); font-family: var(--font-display); margin-left: auto; }
.hb-included { color: var(--yellow); font-size: 13px; font-weight: 600; }
.est-note { color: var(--muted); font-size: 12px; margin-top: 14px; }
.est-note-warn { color: var(--yellow); margin-top: 10px; line-height: 1.5; }
.est-note-warn a { color: var(--yellow); text-decoration: underline; }
.est-note-warn.banner { padding: 14px 18px; border: 1px dashed var(--line); border-radius: 12px; margin-bottom: 20px; margin-top: 0; }
.est-total {
  margin-top: 28px; padding-top: 22px; border-top: 1px dashed var(--line);
}
.est-line { display: flex; justify-content: space-between; align-items: center; font-size: 15px; padding: 7px 0; color: var(--muted); }
.est-line span:last-child { color: var(--white); font-family: var(--font-display); }
.est-grand { font-size: 18px; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); }
.est-grand span { color: var(--white) !important; }
.est-grand span:last-child { color: var(--yellow) !important; font-size: 26px; }
.est-disclaimer { color: var(--muted); font-size: 12px; margin: 12px 0 18px; }
.est-inquire { width: 100%; justify-content: center; }

/* ---------- Form ---------- */
.quote { background:
    radial-gradient(700px 300px at 15% 0%, rgba(247,198,17,0.08), transparent 60%),
    var(--black-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.quote .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.quote .wrap.narrow { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
.quote-info h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 4.5vw, 46px); text-transform: uppercase; line-height: 1; }
.quote-info h2 .accent { color: var(--yellow); display: block; }
.quote-info p { color: var(--muted); margin: 18px 0 28px; }
.quote-info .perk { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 15px; }
.quote-info .perk .dot { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--yellow); color: var(--black); display: grid; place-items: center; font-weight: 900; font-size: 13px; }

form { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; background: var(--black); color: var(--white);
  border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 15px;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); }
.field input.uppercase { text-transform: uppercase; }
.field textarea { resize: vertical; min-height: 90px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.form-msg { margin-top: 16px; padding: 14px; border-radius: 10px; font-size: 14px; display: none; }
.form-msg.ok { display: block; background: rgba(247,198,17,0.12); color: var(--yellow); border: 1px solid var(--line); }
.form-msg.err { display: block; background: rgba(255,70,70,0.12); color: #ff8585; border: 1px solid rgba(255,70,70,0.3); }

/* ---------- Photo upload ---------- */
.field-hint { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; font-size: 12px; }
.field-hint.block { display: block; margin-top: 14px; }
.dropzone {
  border: 1.5px dashed var(--line); border-radius: 12px; background: var(--black);
  padding: 22px 16px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.drag { border-color: var(--yellow); background: rgba(247,198,17,0.05); outline: none; }
.dropzone-msg { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--white); font-size: 14px; }
.dropzone-icon { font-size: 22px; }
.dropzone-sub { color: var(--muted); font-size: 12px; }
.photo-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.photo-thumb { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--line); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb .remove {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(9,4,8,0.85); color: var(--white); border: none; cursor: pointer;
  display: grid; place-items: center; font-size: 13px; line-height: 1;
}
.photo-thumb .remove:hover { background: var(--yellow); color: var(--black); }
.photo-error { margin-top: 8px; font-size: 13px; color: #ff8585; display: none; }
.photo-error.show { display: block; }

/* ---------- Admin photo thumbnails ---------- */
.admin-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.admin-photos a { display: block; width: 44px; height: 44px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.admin-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Footer ---------- */
footer { padding: 50px 0 40px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
footer .logo { font-family: var(--font-display); font-weight: 900; font-size: 22px; text-transform: uppercase; }
footer .logo .nerd { color: var(--yellow); }
footer .meta { color: var(--muted); font-size: 13px; }
footer a:hover { color: var(--yellow); }
.footer-mid { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.socials { display: flex; gap: 12px; }
.social, .nav-social {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); color: var(--muted); transition: all .2s;
}
.social:hover, .nav-social:hover { color: var(--black); background: var(--yellow); border-color: var(--yellow); transform: translateY(-2px); }
.nav-social { width: 34px; height: 34px; }

/* ---------- Services catch-all ---------- */
.svc-anything {
  margin-top: 22px; text-align: center; background: linear-gradient(170deg, var(--panel), var(--black-2));
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px 28px;
  color: var(--muted); font-size: 15px;
}
.svc-anything span { color: var(--yellow); font-weight: 700; }
.svc-anything a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Portfolio ---------- */
.portfolio { background:
    radial-gradient(700px 320px at 15% 0%, rgba(247,198,17,0.06), transparent 60%), var(--black-2); }

/* ---------- Portfolio search + chips ---------- */
.port-search { position: relative; max-width: 420px; margin: 0 auto 28px; }
.port-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 15px; opacity: .6; pointer-events: none; }
.port-search input {
  width: 100%; padding: 13px 16px 13px 42px; background: var(--black); color: var(--white);
  border: 1.5px solid var(--line); border-radius: 999px; font-family: inherit; font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.port-search input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(247,198,17,0.15); }
.port-search input::placeholder { color: var(--muted); }

.port-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.port-chip {
  background: var(--panel); border: 2px solid var(--line); color: var(--muted);
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px; text-transform: uppercase;
  letter-spacing: .6px; padding: 11px 20px; border-radius: 999px; cursor: pointer; user-select: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.port-chip:hover {
  transform: translateY(-3px); background: var(--yellow-dim); border-color: var(--yellow-dim);
  color: var(--black); box-shadow: 0 6px 16px rgba(199,158,12,0.35);
}
.port-chip.active {
  background: var(--yellow); border-color: var(--yellow); color: var(--black);
  transform: translateY(-3px); box-shadow: 0 6px 16px rgba(247,198,17,0.35);
}

.port-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .port-photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .port-photo-grid { grid-template-columns: 1fr; } }

.port-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.port-card:hover { transform: translateY(-4px); border-color: var(--yellow); box-shadow: 0 12px 28px rgba(0,0,0,0.5); }
.port-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .3s ease; }
.port-card:hover img { transform: scale(1.06); }
.port-card-body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 14px 12px;
  background: linear-gradient(180deg, rgba(9,4,8,0) 0%, rgba(9,4,8,0.94) 65%);
}
.port-card-body h4 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.port-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.port-tag {
  font-family: var(--font-display); font-size: 10px; color: var(--muted);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px;
}

/* ---------- Portfolio gallery lightbox ---------- */
.port-lightbox {
  display: none; position: fixed; inset: 0; background: rgba(6,3,6,0.92); z-index: 200;
  align-items: center; justify-content: center; flex-direction: column; padding: 40px 20px;
}
.port-lightbox.open { display: flex; }
.port-lb-main {
  position: relative; width: 100%; max-width: 720px; aspect-ratio: 4/3;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel);
}
.port-lb-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.port-lb-close {
  position: absolute; top: -44px; right: 0; background: none; border: none;
  color: var(--white); font-size: 28px; cursor: pointer; line-height: 1;
}
.port-lb-close:hover { color: var(--yellow); }
.port-lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(9,4,8,0.7);
  border: 1px solid var(--line); color: var(--white); width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.port-lb-arrow:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.port-lb-arrow.prev { left: 14px; }
.port-lb-arrow.next { right: 14px; }
.port-lb-info { max-width: 720px; width: 100%; margin-top: 16px; }
.port-lb-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--white); }
.port-lb-thumbs { display: flex; gap: 8px; max-width: 720px; width: 100%; overflow-x: auto; margin-top: 12px; }
.port-lb-thumb {
  width: 64px; height: 48px; border-radius: 6px; flex-shrink: 0; cursor: pointer;
  border: 2px solid transparent; overflow: hidden; transition: border-color .15s ease;
}
.port-lb-thumb.on { border-color: var(--yellow); }
.port-lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.port-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }

/* ---------- About ---------- */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 3rem min(15rem, 8vw);
}

.about-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.label-line {
  width: 24px;
  height: 2px;
  background: var(--yellow);
}

.about-label span:last-child {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.about-text h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 52px);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: #fff;
}

.about-text p {
  color: var(--muted);
  margin: 16px 0;  /*  top  right bottom left*/
  font-size: 16px;
  max-width: 520px;
}

.learn-more-btn {
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 36px;
}


.about-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.about-name {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  color: #fff;
}

/* AFTER */
.about-title {
  color: var(--yellow);
  font-size: 14px;
  margin-top: 6px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: start;
}

.about-stats {
  display: flex;
  gap: 24px;
  margin: 20px 0 28px;
}
.about-stats b {
  display: block;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 20px;
}
.about-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.about-role {
  color: var(--yellow);
  font-size: 13px;
  margin-bottom: 18px;
}

.about-vals {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.about-vals .val {
  color: var(--white);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-vals .val span {
  color: var(--yellow);
  font-weight: 900;
}

/* ---------- FAQ ---------- */
.faq { background: var(--black-2); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 20px 24px; font-size: 16px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--yellow); font-size: 24px; font-weight: 400; transition: transform .2s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--yellow); }
.faq-item p { color: var(--muted); padding: 0 24px 20px; font-size: 15px; line-height: 1.7; }
.faq-item p a { color: var(--yellow); }

/* AFTER */
@media (max-width: 880px) {
  .hero .wrap, .quote .wrap { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .furn-grid { grid-template-columns: 1fr; }
  .addon-row { grid-template-columns: 1fr; }
  .est-grid { grid-template-columns: 1fr; gap: 22px; }
  .row-2 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; padding: 3rem 1.5rem; text-align: center; }
  .about-text p { margin-left: auto; margin-right: auto; }
  .about-stats { gap: 24px; flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--black-2);
    border-bottom: 1px solid var(--line); padding: 10px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; width: 100%; }
  .nav-social { width: auto; height: auto; border: none; border-radius: 0; justify-content: flex-start; }
  .nav-social svg { margin-right: 8px; }
  .nav-cta { margin: 8px 24px; text-align: center; }
}

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- AI Live Chat Widget ---------- */
.chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 200; }
.chat-toggle {
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--yellow); color: var(--black); font-size: 24px;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform .15s ease, background .15s ease;
}
.chat-toggle:hover { transform: translateY(-2px) scale(1.03); background: #ffd62e; }
.chat-toggle-icon { grid-area: 1 / 1; }

.chat-panel {
  position: absolute; bottom: 72px; right: 0; width: 340px; max-width: calc(100vw - 40px);
  height: 460px; max-height: 70vh; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  display: flex; flex-direction: column; overflow: hidden;
  animation: chat-pop .18s ease;
}
@keyframes chat-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--black-2); border-bottom: 1px solid var(--line);
}
.chat-header-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #6fe0a0; box-shadow: 0 0 0 3px rgba(111,224,160,0.18); }
.chat-close { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; padding: 4px; }
.chat-close:hover { color: var(--yellow); }

.chat-messages { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.chat-msg-bot { align-self: flex-start; background: var(--black); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg-user { align-self: flex-end; background: var(--yellow); color: var(--black); border-bottom-right-radius: 4px; font-weight: 500; }
.chat-msg-error { align-self: center; background: rgba(255,70,70,0.12); color: #ff8585; border: 1px solid rgba(255,70,70,0.3); font-size: 12.5px; text-align: center; }

.chat-typing { display: flex; gap: 4px; padding: 0 16px 10px; }
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: chat-blink 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; padding: 10px 12px; background: var(--black); color: var(--white);
  border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 13.5px;
}
.chat-form input:focus { outline: none; border-color: var(--yellow); }
.chat-send {
  width: 38px; height: 38px; border-radius: 10px; border: none; background: var(--yellow);
  color: var(--black); font-size: 15px; cursor: pointer; flex: none;
}
.chat-send:hover { background: #ffd62e; }
.chat-send:disabled { opacity: .5; cursor: default; }

.chat-disclaimer { font-size: 10.5px; color: var(--muted); text-align: center; padding: 0 12px 12px; }
.chat-disclaimer a { color: var(--yellow); }

@media (max-width: 480px) {
  .chat-widget { bottom: 14px; right: 14px; }
  .chat-panel { width: calc(100vw - 28px); height: 65vh; bottom: 68px; }
}

/* ---------- Secondary page hero (no contact card) ---------- */
.hero-page .wrap { grid-template-columns: 1fr; text-align: center; }
.hero-page .hero-text { max-width: 640px; margin: 0 auto; }
.hero-page .hero-text p { margin-left: auto; margin-right: auto; }
.hero-page { padding-bottom: 40px; }

/* ---------- Nav active state ---------- */
.nav-links a.active { color: var(--yellow); }

/* ---------- Footer nav ---------- */
.footer-nav { font-size: 12.5px; color: var(--muted); text-align: center; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--yellow); }

/* ---------- Referral Program: Signup / Login / Account ---------- */
.empty-state { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty-state.tight { padding: 20px 0; }

/* ---------- Order Detail page ---------- */
.order-card { max-width: 560px; margin: 0 auto; }
.order-fields { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.order-field-value { font-size: 15px; }
.order-discount { color: var(--yellow); font-weight: 600; }
.order-total-row { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 4px; }
.order-total { font-size: 24px; font-family: var(--font-display); color: var(--yellow); }
.order-photos-section { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.order-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.order-photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.order-back-btn { margin-top: 24px; display: inline-flex; }

.acct-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .acct-grid { grid-template-columns: 1fr; } }

.acct-card { background: linear-gradient(160deg, var(--panel), var(--black-2)); border: 1px solid var(--line); border-radius: 20px; padding: 28px; position: relative; }
.acct-card.stacked { margin-top: 24px; }
.acct-card h3 { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.acct-code {
  font-family: var(--font-display); font-size: 32px; font-weight: 900; letter-spacing: 4px;
  color: var(--yellow); background: var(--black); border: 1.5px dashed var(--line); border-radius: 10px;
  padding: 16px; text-align: center;
}
.acct-link-row { display: flex; gap: 8px; margin-top: 8px; }
.acct-link-row input {
  flex: 1; padding: 10px 12px; background: var(--black); color: var(--white);
  border: 1.5px solid var(--line); border-radius: 8px; font-size: 13px;
}
.acct-link-row .btn { flex: none; padding: 10px 16px; font-size: 13px; }

.acct-stat { color: var(--muted); font-size: 13px; margin-top: 16px; line-height: 1.6; }
.referral-info { font-size: 13px; color: var(--muted); margin-top: 14px; } 
.danger-zone { border-color: rgba(255,70,70,0.35) !important; }
.danger-zone h3 { color: #ff8585; }
.danger-zone p { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; line-height: 1.55; }
.danger-zone p.warn { color: #ff8585; }
.btn-danger { background: rgba(255,70,70,0.14); color: #ff8585; border: 1.5px solid rgba(255,70,70,0.4); }
.btn-danger:hover { background: rgba(255,70,70,0.22); }
.btn-danger.small { margin-top: 14px; padding: 8px 16px; font-size: 13px; }
.btn-row { display: flex; gap: 10px; }

.coupon-list { display: flex; flex-direction: column; gap: 12px; max-height: 480px; overflow-y: auto; }
.coupon-card {
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.coupon-card.status-unused { border-color: var(--yellow); background: rgba(247,198,17,0.06); }
.coupon-card.status-used { opacity: 0.55; }
.coupon-card.status-expired { opacity: 0.4; }
.coupon-code { font-family: var(--font-display); font-weight: 900; font-size: 15px; letter-spacing: 1px; }
.coupon-amount { color: var(--yellow); font-family: var(--font-display); font-size: 20px; font-weight: 900; }
.coupon-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.coupon-badge { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 9px; border-radius: 999px; }
.coupon-badge.status-unused { background: rgba(247,198,17,0.18); color: var(--yellow); }
.coupon-badge.status-used { background: rgba(150,150,150,0.18); color: #aaa; }
.coupon-badge.status-expired { background: rgba(255,70,70,0.15); color: #ff8585; }

/* ---------- Bed Frame / Dresser Inquiry Modals ---------- */
.inquiry-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 150;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.inquiry-overlay[hidden] { display: none; }
.inquiry-modal {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
}
.inquiry-modal h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 20px; margin-bottom: 8px; }
.inquiry-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; line-height: 1.5; }
.inquiry-section { margin-bottom: 22px; }
.inquiry-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--yellow); margin-bottom: 10px; }
.option-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.option-chip {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--black); cursor: pointer; user-select: none;
  font-size: 13px; color: var(--white); transition: border-color .15s ease, background .15s ease;
}
.option-chip:hover { border-color: var(--yellow); }
.option-chip.selected { border-color: var(--yellow); background: rgba(247,198,17,0.1); color: var(--yellow); font-weight: 700; }

.size-bar { display: inline-block; height: 10px; border-radius: 3px; background: var(--muted); }
.option-chip.selected .size-bar { background: var(--yellow); }

.color-swatch { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.25); flex: none; }
.color-swatch.swatch-other {
  background: repeating-linear-gradient(45deg, var(--muted), var(--muted) 2px, transparent 2px, transparent 4px);
}

.style-icon { font-size: 15px; }

.inquiry-actions { display: flex; gap: 10px; margin-top: 8px; }

/* ---------- Service card: clickable individual bullet items ---------- */
/* Higher specificity (.svc .svc-item...) than the original .svc li / .svc li::before
   rules, so the checkbox look reliably wins instead of the old "▸" triangle bullet. */
.svc .svc-item-list { list-style: none; }
.svc .svc-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 0 -10px;
  border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--white);
  transition: background .15s ease, color .15s ease;
}
.svc .svc-item::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 4px;
  border: 1.5px solid var(--line); transition: background .15s ease, border-color .15s ease;
}
.svc .svc-item:hover { background: rgba(247,198,17,0.06); }
.svc .svc-item:hover::before { border-color: var(--yellow); }
.svc .svc-item.selected { background: rgba(247,198,17,0.1); color: var(--yellow); font-weight: 600; }
.svc .svc-item.selected::before {
  background: var(--yellow); border-color: var(--yellow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23090408' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8l3.5 3.5L13 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

.service-inquiry-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: var(--black-2); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.4);
}
.service-inquiry-bar[hidden] { display: none; }
.service-inquiry-bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; flex-wrap: wrap;
}
.service-inquiry-bar-inner span { font-size: 14px; font-weight: 600; color: var(--yellow); }
.service-inquiry-actions { display: flex; gap: 10px; }
.service-inquiry-actions .btn { padding: 10px 20px; font-size: 13.5px; }

/* Leave room at the bottom of the page so the sticky bar never overlaps the footer */
body.has-service-bar { padding-bottom: 76px; }