/* =====================================================================
   3IDEJOS — Site styles. Design tokens + professional micro-effects.
   ===================================================================== */

:root {
  --bg:        #0f1115;
  --bg-soft:   #171a21;
  --surface:   #1d212b;
  --surface-2: #232833;
  --text:      #eef1f6;
  --muted:     #9aa4b2;
  --brand:     #a5642f;   /* copper */
  --brand-2:   #c98a4e;   /* warm copper highlight */
  --line:      rgba(255,255,255,.08);
  --radius:    14px;
  --shadow:    0 10px 30px rgba(0,0,0,.35);
  --ease:      cubic-bezier(.22,.61,.36,1);
  --body-glow: #1b2030;
  --header-bg: rgba(15,17,21,.72);
}

/* ---------- Light theme (admin-toggleable) ---------- */
:root[data-theme="light"] {
  --bg:        #f5f2ec;
  --bg-soft:   #ffffff;
  --surface:   #ffffff;
  --surface-2: #f1ece3;
  --text:      #221d17;
  --muted:     #6d6459;
  --brand:     #9a5c2b;
  --brand-2:   #b97a3a;
  --line:      rgba(30,20,10,.12);
  --shadow:    0 10px 30px rgba(120,100,70,.16);
  --body-glow: #efe7da;
  --header-bg: rgba(255,255,255,.82);
}
:root[data-theme="light"] .gallery-item figcaption,
:root[data-theme="light"] .hero-cats { color: var(--brand); }
:root[data-theme="light"] .hero::before {
  background: radial-gradient(58% 52% at 32% 26%, rgba(140,108,68,.30), transparent 72%);
  opacity: .55;
}
:root[data-theme="light"] .hero-photo { opacity: .16; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, var(--body-glow) 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.section { padding: 46px 0; border-top: 1px solid var(--line); }

/* ---------- Header / tabs ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; line-height: 0; }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em;
  line-height: 1; color: var(--brand); white-space: nowrap; }
.brand-name span { color: var(--text); font-weight: 600; }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; display: block; flex: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.3); transition: transform .3s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-5deg) scale(1.06); }
@media (max-width: 560px) {
  .brand-logo { width: 44px; height: 44px; }
  .brand { gap: 9px; }
  .brand-name { font-size: 1.1rem; }
}
.tabs { display: flex; gap: 4px; background: var(--surface); padding: 5px; border-radius: 999px; border: 1px solid var(--line); }
.tab {
  appearance: none; border: 0; cursor: pointer;
  background: transparent; color: var(--muted);
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: 8px 18px; border-radius: 999px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.is-active { color: #fdf7ef; background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
.lang-switch { display: flex; gap: 2px; margin-left: 4px; }
.lang-switch a { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-weight: 700; font-size: .82rem; letter-spacing: .04em; }
.lang-switch a:hover { color: var(--text); text-decoration: none; }
.lang-switch a.on { color: var(--brand-2); background: var(--surface); border: 1px solid var(--line); }

/* ---------- Panels (tab content) ---------- */
.panel { display: none; animation: fade-in .5s var(--ease); }
.panel.is-active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner { padding: 112px 28px 92px; position: relative; z-index: 2; text-align: left; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 700; color: var(--muted); margin: 0 0 16px; }
.hero h1 { max-width: 16ch; }
.hero-scroll { display: inline-block; margin-top: 36px; font-size: 1.7rem; color: var(--brand-2); text-decoration: none; animation: bob 1.8s ease-in-out infinite; }
.hero-scroll:hover { text-decoration: none; color: var(--brand); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(9px); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(600px 300px at 15% 10%, rgba(165,100,47,.22), transparent 60%),
    radial-gradient(500px 260px at 90% 30%, rgba(201,138,78,.14), transparent 60%);
}
/* Soft sculptural shadow in the top-left corner (warm, faded) */
.hero::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  top: -70px; left: -90px; width: 44%; height: 135%;
  background: radial-gradient(58% 52% at 32% 26%, rgba(0,0,0,.58), rgba(0,0,0,.30) 46%, transparent 72%);
  filter: blur(34px); transform: rotate(-14deg); opacity: .82;
}
/* Very faded furniture image accent behind the hero */
.hero-photo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center right;
  opacity: .10;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 90%);
          mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 90%);
}
.hero-cats { margin: 10px 0 0; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; color: var(--brand-2); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin-top: 14px; }
.hero-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; border-radius: 12px; }

/* ---------- The 3 ideas (detailed, alternating) ---------- */
.idea-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 62px 0; border-top: 1px solid var(--line); }
.idea-row.flip .idea-media { order: 2; }
.idea-media { position: relative; height: 420px; border-radius: var(--radius); background: var(--surface-2) center/cover no-repeat; box-shadow: var(--shadow); border: 1px solid var(--line); }
.idea-num { position: absolute; top: -22px; left: -8px; font-size: 4.4rem; font-weight: 800; color: var(--brand); line-height: 1; text-shadow: 0 3px 14px rgba(0,0,0,.45); }
.idea-kicker { text-transform: uppercase; letter-spacing: .15em; font-size: .78rem; font-weight: 700; color: var(--brand-2); }
.idea-body h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 8px 0 16px; }
.idea-body p { color: var(--muted); font-size: 1.06rem; line-height: 1.7; max-width: 54ch; }

/* ---------- Bottom design CTA ---------- */
.design-cta { margin-top: 24px; border-top: 1px solid var(--line); background: radial-gradient(700px 320px at 50% 0%, rgba(165,100,47,.16), transparent 70%); }
.design-cta-inner { padding: 76px 28px 84px; text-align: center; }
.design-cta h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0 0 12px; }
.design-cta p { color: var(--muted); max-width: 58ch; margin: 0 auto 28px; font-size: 1.12rem; }
.design-cta .hero-cta { justify-content: center; }

/* ---------- Features / benefits ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.feature { padding: 4px 6px; }
.feature svg { width: 34px; height: 34px; color: var(--brand-2); margin-bottom: 10px; }
.feature h3 { font-size: 1.02rem; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Service categories — the 3 ideas ---------- */
.services-lead { margin: -4px 0 22px; max-width: 60ch; }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service-card {
  position: relative; min-height: 360px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2) center/cover no-repeat; border: 1px solid var(--line);
  display: flex; align-items: flex-end;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,6,.05) 30%, rgba(10,8,6,.78) 100%);
  transition: background .3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:hover::after { background: linear-gradient(180deg, rgba(10,8,6,.15) 20%, rgba(10,8,6,.85) 100%); }
.service-num {
  position: absolute; top: 16px; left: 18px; z-index: 2;
  font-weight: 800; font-size: 1.1rem; letter-spacing: .1em; color: var(--brand-2);
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18);
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
}
.service-overlay { position: relative; z-index: 2; padding: 22px; color: #fff; }
.service-overlay h3 { margin: 0 0 6px; font-size: 1.45rem; color: #fff; }
.service-overlay p { margin: 0; font-size: .96rem; color: rgba(255,255,255,.82); }
:root[data-theme="light"] .service-overlay h3,
:root[data-theme="light"] .service-overlay p { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none; cursor: pointer; font: inherit; font-weight: 600;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 20px; color: var(--text); background: var(--surface-2);
  transition: transform .18s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fdf7ef; border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 13px; font-size: .88rem; border-radius: 8px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption { padding: 10px 12px; font-size: .9rem; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 14px; margin-top: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.contact-card .lbl { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }

/* ---------- Team / avatars ---------- */
.team-block { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); text-align: center; }
.team-block h3 { font-size: 1.3rem; margin: 0 0 4px; }
.team-grid { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; justify-content: center; }
.team-member { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; width: 130px; }
.avatar {
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2) center/cover no-repeat; border: 2px solid var(--brand);
  box-shadow: var(--shadow); overflow: hidden;
}
.avatar-initials { font-weight: 800; font-size: 1.5rem; color: var(--brand-2); background: linear-gradient(150deg, var(--surface-2), var(--surface)); }
.team-member figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.team-name { font-weight: 700; font-size: .98rem; }
.team-role { font-size: .84rem; color: var(--muted); }

/* ---------- Designer ---------- */
.designer { display: grid; grid-template-columns: 210px 1fr 230px; gap: 16px; margin-top: 22px; }
.designer[hidden] { display: none; }
.designer aside, .designer-stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.designer h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.module-list { display: flex; flex-direction: column; gap: 8px; }
.module-chip {
  display: flex; align-items: center; gap: 11px; cursor: grab;
  padding: 8px 11px; border-radius: 10px; background: var(--surface-2);
  border: 1px solid var(--line); font-size: .9rem; user-select: none;
  transition: transform .15s var(--ease), border-color .2s var(--ease);
}
.module-chip:hover { transform: translateX(3px); border-color: var(--brand); }
.module-chip .swatch { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.chip-thumb { flex: none; width: 56px; height: 46px; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 7px; }
.chip-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chip-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-dim { font-size: .74rem; color: var(--muted); }
.designer-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.designer-toolbar .spacer { flex: 1; }
.file-btn { display: inline-flex; align-items: center; }
/* Idea picker (shown before the modeler) */
/* ---------- Step 1: size of the space ---------- */
.fd-setup { margin-top: 22px; display: grid; place-items: center; }
.fd-setup-card { position: relative; width: min(560px, 100%); text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 46px 30px 34px; box-shadow: var(--shadow); }
.fd-step { position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 800; }
.fd-setup-card h3 { font-size: 1.45rem; margin: 0 0 6px; color: var(--text); text-transform: none; letter-spacing: -.02em; }
.fd-setup-hint { margin: 0 auto 22px; max-width: 42ch; font-size: .92rem; }
.fd-setup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; }
.fd-setup-grid label { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.fd-setup-grid input { width: 100%; margin-top: 5px; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px; padding: 11px 10px; font: inherit; font-size: 1.05rem;
  font-variant-numeric: tabular-nums; text-align: center; }
.fd-setup-grid input:focus { outline: none; border-color: var(--brand); }
.fd-setup-vis { display: grid; place-items: center; height: 210px; margin: 20px 0 6px; }
.fd-setup-rect { display: grid; place-items: center; border: 2px dashed var(--brand);
  border-radius: 6px; background: rgba(165,100,47,.08); color: var(--brand-2);
  font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: width .25s var(--ease), height .25s var(--ease); }
@media (max-width: 560px) { .fd-setup-grid { grid-template-columns: 1fr; } }

/* ---------- Front-elevation 3-layer designer ---------- */
.fdesigner { display: grid; grid-template-columns: 240px 1fr 250px; gap: 16px; margin-top: 22px; }
.fdesigner[hidden] { display: none; }
.fd-palette, .fd-stage, .fd-props { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
/* Keep the palette & properties beside the plan; scroll their content, keep the canvas in focus */
.fd-palette, .fd-props { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; }
.element-list { max-height: 42vh; overflow-y: auto; padding-right: 4px; }
.fd-palette::-webkit-scrollbar, .fd-props::-webkit-scrollbar, .element-list::-webkit-scrollbar { width: 8px; }
.fd-palette::-webkit-scrollbar-thumb, .fd-props::-webkit-scrollbar-thumb, .element-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.fd-layers { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.fd-layer { display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; font: inherit; font-weight: 600; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); transition: border-color .2s var(--ease), color .2s var(--ease); }
.fd-layer.is-on { color: var(--text); border-color: var(--brand); }
.fd-lnum { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 800; flex: none; }
.fd-layer-hint { font-size: .82rem; color: var(--muted); margin: 0 0 14px; min-height: 2.4em; }
.element-list { display: flex; flex-direction: column; gap: 8px; }
.element-chip { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 9px 11px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; user-select: none; transition: transform .15s var(--ease), border-color .2s var(--ease); }
.element-chip:hover { transform: translateX(3px); border-color: var(--brand); }
.el-swatch { width: 16px; height: 16px; border-radius: 4px; flex: none; border: 1px solid rgba(0,0,0,.25); }
.area-controls { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.area-controls h3, .fd-props h3, .parts-list h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.area-controls label, .fd-props label { display: block; font-size: .82rem; color: var(--muted); margin-top: 8px; }
.area-controls input, .fd-props input, .fd-props select { width: 100%; margin-top: 3px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px; font: inherit; }
.area-controls .btn { margin-top: 12px; width: 100%; }
.fd-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.fd-toolbar .spacer { flex: 1; }
.fd-current { font-weight: 700; color: var(--brand-2); }
.prop-type { font-weight: 600; margin: 0 0 6px; color: var(--text); }
.parts-list { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.parts-group { margin-bottom: 10px; }
.parts-group b { font-size: .82rem; color: var(--brand-2); }
.parts-row { display: flex; align-items: center; gap: 6px; font-size: .85rem; padding: 3px 0; }
.el-group { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 12px 0 2px; }
.el-group:first-child { margin-top: 0; }
.prop-rule { font-size: .76rem; line-height: 1.45; margin: 10px 0 0; padding-left: 9px; border-left: 2px solid var(--brand); }
.obj-list-wrap { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.obj-list { max-height: 30vh; overflow-y: auto; padding-right: 4px; }
.obj-list::-webkit-scrollbar { width: 8px; }
.obj-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.obj-group { margin-bottom: 8px; }
.obj-group b { font-size: .82rem; color: var(--brand-2); }
.obj-row { display: flex; align-items: center; gap: 7px; width: 100%; text-align: left; font: inherit; font-size: .84rem;
  color: var(--text); background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 4px 6px; cursor: pointer; }
.obj-row:hover { background: var(--surface-2); border-color: var(--line); }
.obj-row.is-sel { background: var(--surface-2); border-color: var(--brand); }
.obj-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .fdesigner { grid-template-columns: 1fr; } }

.view-toggle { display: inline-flex; gap: 3px; background: var(--bg-soft); padding: 3px; border-radius: 9px; border: 1px solid var(--line); }
.view-toggle .btn { border: 0; background: transparent; }
.view-toggle .btn.is-on { background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fdf7ef; }
.stage-actions { display: flex; gap: 8px; margin-top: 10px; }
.room-controls { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.room-controls h3 { margin-bottom: 8px; }
.room-controls label { display: block; font-size: .82rem; color: var(--muted); margin-top: 8px; }
.room-controls input { width: 100%; margin-top: 3px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px; font: inherit; }
.room-controls .btn { margin-top: 12px; width: 100%; }
.view-hint { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; color: var(--muted); font-size: .82rem; pointer-events: none; margin: 0; }
.canvas-holder { position: relative; }
#design-canvas {
  width: 100%; height: auto; display: block; border-radius: 10px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 20px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 20px 100%,
    var(--bg-soft);
  cursor: crosshair; touch-action: none;
}
.canvas-hint {
  position: absolute; inset: 0; display: grid; place-items: center;
  text-align: center; color: var(--muted); padding: 20px; pointer-events: none;
}
.designer-props label { display: block; font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.designer-props input, .designer-props select { width: 100%; margin-top: 4px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; }
.designer-props .prop-check { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--text); font-size: .92rem; }
.designer-props .prop-check input { width: auto; margin: 0; }
.designer-props input[type=color] { padding: 3px; height: 40px; }
.counter { margin-top: 18px; font-size: .9rem; color: var(--muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); animation: fade-in .3s var(--ease); }
.modal[hidden] { display: none; }
.modal-box { width: min(460px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.modal-box label { display: block; margin: 14px 0 4px; font-size: .9rem; }
.modal-box input[type=email], .modal-box textarea { width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; }
.modal-box .check { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-size: .9rem; }
.modal-box .check input { margin-top: 4px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* Realistic preview */
.btn-preview { border-color: var(--brand); color: var(--brand-2); }
.preview-box { width: fit-content; max-width: 96vw; max-height: 94vh; overflow-y: auto; padding: 14px 16px; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.preview-head h3 { margin: 0; font-size: 1rem; }
.preview-stage { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #e2dad0; line-height: 0; }
.preview-stage canvas { display: block; }
.preview-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.preview-bar .spacer { flex: 1; }
.pv-label { font-size: .8rem; color: var(--muted); }
.preview-angles { display: inline-flex; gap: 3px; background: var(--bg-soft); padding: 3px; border-radius: 9px; border: 1px solid var(--line); }
.pv-angle { border: 0; background: transparent; min-width: 34px; padding: 5px 9px; }
.pv-angle.is-on { background: var(--brand); color: #fff; }
.preview-hint { margin: 8px 0 0; font-size: .78rem; }
.form-msg { margin: 12px 0 0; font-size: .9rem; min-height: 1.2em; }
.form-msg.ok { color: #7fdca4; }
.form-msg.err { color: #ef8a8a; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- PDF export (print) ---------- */
#print-area { display: none; }
.pdf-doc { color: #1a1a1a; font-family: system-ui, sans-serif; padding: 10px 4px; }
.pdf-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #a5642f; padding-bottom: 8px; }
.pdf-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.4rem; color: #a5642f; }
.pdf-brand img { width: 34px; height: 34px; }
.pdf-brand span { color: #333; }
.pdf-meta { font-size: .8rem; color: #666; }
.pdf-doc h1 { font-size: 1.5rem; margin: 16px 0 4px; }
.pdf-doc h2 { font-size: 1.05rem; margin: 20px 0 8px; color: #a5642f; }
.pdf-sub { color: #444; margin: 0 0 12px; font-size: .95rem; }
.pdf-imgs { display: flex; gap: 12px; }
.pdf-imgs figure { flex: 1; margin: 0; min-width: 0; }
.pdf-imgs img { width: 100%; border: 1px solid #ddd; border-radius: 6px; background: #fff; }
.pdf-imgs figcaption { text-align: center; font-size: .8rem; color: #666; margin-top: 4px; }
.pdf-tbl { width: 100%; border-collapse: collapse; font-size: .85rem; }
.pdf-tbl th, .pdf-tbl td { border: 1px solid #ccc; padding: 6px 8px; text-align: left; }
.pdf-tbl th { background: #f3ede4; }
.pdf-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.pdf-colors .pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #ddd; border-radius: 999px; padding: 4px 10px; font-size: .85rem; }
.pdf-doc .sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.2); vertical-align: middle; margin-right: 4px; }
.pdf-foot { margin-top: 24px; border-top: 1px solid #ddd; padding-top: 8px; color: #999; font-size: .8rem; text-align: center; }

.pdf-note { font-size: .82rem; color: #555; margin: 10px 0 0; }
/* Watermark sits behind the content and repeats on every printed page. */
.pdf-watermark { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 0; }
.pdf-watermark img { width: 58%; max-width: 420px; opacity: .06; }
.pdf-body { position: relative; z-index: 1; }

@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; }
  /* margin:0 also removes the browser's own date/title/URL header and footer */
  @page { size: A4; margin: 0; }
  .pdf-doc { padding: 14mm 12mm; }
  .pdf-doc, .pdf-watermark img { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pdf-tbl { page-break-inside: auto; }
  .pdf-tbl tr { page-break-inside: avoid; }
  .pdf-doc h2 { page-break-after: avoid; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .designer { grid-template-columns: 1fr; }
  .site-header .wrap { height: auto; padding: 10px 22px; flex-direction: column; gap: 10px; }
  .idea-row { grid-template-columns: 1fr; gap: 22px; padding: 40px 0; }
  .idea-row.flip .idea-media { order: 0; }
  .idea-media { height: 260px; }
}

/* ---------- Galleries ---------- */
.idea-media.is-link { display: block; cursor: pointer; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease); }
.idea-media.is-link:hover { transform: translateY(-4px); box-shadow: 0 18px 46px rgba(0,0,0,.5); }
.idea-galbadge { position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(12,14,18,.55); color: #f3ece2; border: 1px solid rgba(255,255,255,.14);
  padding: 6px 12px 6px 10px; border-radius: 10px;
  font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em;
  backdrop-filter: blur(6px); transition: background .3s var(--ease), border-color .3s var(--ease); }
.idea-galbadge svg { width: 16px; height: 16px; color: var(--brand-2); flex: none; }
.idea-media.is-link:hover .idea-galbadge { background: rgba(12,14,18,.78); border-color: rgba(201,138,78,.55); }
.idea-galhint { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 30px 18px 16px;
  background: linear-gradient(transparent, rgba(8,10,14,.86)); color: #fff; font-weight: 600; font-size: .95rem;
  opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.idea-media.is-link:hover .idea-galhint,
.idea-media.is-link:focus-visible .idea-galhint { opacity: 1; transform: none; }
.idea-gallink { display: inline-block; margin-top: 14px; color: var(--brand-2); font-weight: 600; text-decoration: none; }
.idea-gallink:hover { text-decoration: underline; }

/* Panels used, shown on every photo (no hover needed) */
.gallery-item { position: relative; }
.ph-panels { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 10px 0; }
.ph-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; }
.ph-sw { width: 10px; height: 10px; border-radius: 3px; border: 1px solid rgba(0,0,0,.35); flex: none; }
/* …and the full detail on hover */
.ph-hover { position: absolute; inset: 0; z-index: 3; padding: 14px; overflow: auto;
  background: rgba(10,12,16,.9); backdrop-filter: blur(3px); color: #f2f2f2;
  opacity: 0; pointer-events: none; transition: opacity .28s var(--ease); }
.gallery-item:hover .ph-hover, .gallery-item:focus-within .ph-hover { opacity: 1; }
.ph-hover b { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-2); margin-bottom: 8px; }
.ph-hover ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ph-hover li { display: flex; align-items: center; gap: 7px; font-size: .84rem; flex-wrap: wrap; }
.ph-code { font-size: .72rem; color: #9aa4b2; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; padding: 1px 5px; }
.ph-hover em { font-style: normal; font-size: .74rem; color: var(--brand-2); }

.gallery-lg { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery-lg .gallery-item img { height: 240px; }
.gallery-lg figcaption { display: grid; gap: 2px; }
.gal-back { margin-bottom: 8px; }
.gal-back a, .gal-links a { text-decoration: none; }
.gal-more { margin-top: 46px; }
.gal-links { display: flex; flex-wrap: wrap; gap: 10px; }
.gal-cta { margin: 40px 0 20px; }

/* ---------- Photo hotspots (which board is this?) ---------- */
.ph-frame { position: relative; line-height: 0; }
.ph-frame img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.gallery-lg .ph-frame img { height: 240px; }
.gallery-item:hover .ph-frame img { transform: none; }   /* no zoom — it would shift the hotspots */
.ph-hot { position: absolute; z-index: 2; cursor: help; border-radius: 6px;
  border: 1.5px solid transparent; transition: border-color .2s var(--ease), background .2s var(--ease); }
.ph-hot:hover, .ph-hot:focus-visible { border-color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.14); outline: none; }
.ph-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(4px);
  display: flex; align-items: center; gap: 6px; white-space: nowrap; z-index: 5;
  background: rgba(12,14,18,.95); color: #f4f4f4; border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px; padding: 6px 10px; font-size: .8rem; line-height: 1.3;
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: opacity .18s var(--ease), transform .18s var(--ease); }
.ph-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: rgba(12,14,18,.95); }
.ph-hot:hover .ph-tip, .ph-hot:focus-visible .ph-tip { opacity: 1; transform: translateX(-50%); }
.ph-tip b { font-weight: 600; }
.ph-tip em { font-style: normal; color: var(--brand-2); }

.ph-zoom { position: absolute; right: 8px; bottom: 8px; z-index: 3;
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 1rem;
  background: rgba(12,14,18,.66); color: #fff; border: 1px solid rgba(255,255,255,.2);
  opacity: 0; transition: opacity .25s var(--ease), background .2s var(--ease); }
.gallery-item:hover .ph-zoom, .ph-zoom:focus-visible { opacity: 1; }
.ph-zoom:hover { background: var(--brand); }

/* ---------- Lightbox ---------- */
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(6,8,11,.93); backdrop-filter: blur(6px); animation: fade-in .25s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-width: 92vw; max-height: 78vh; width: auto; height: auto; border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.lightbox figcaption { color: #e8e8e8; font-size: .95rem; text-align: center; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.1); color: #fff; cursor: pointer;
  border: 1px solid rgba(255,255,255,.2); border-radius: 50%; transition: background .2s var(--ease); }
.lb-close:hover, .lb-nav:hover { background: var(--brand); }
.lb-close { top: 20px; right: 22px; width: 42px; height: 42px; font-size: 1.1rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
@media (max-width: 640px) { .lb-nav { width: 40px; height: 40px; font-size: 1.4rem; } }
.terms-rekv { list-style: none; padding: 0; margin: 12px 0 18px; }
.terms-rekv li { padding: 3px 0; color: var(--muted); }
.terms-rekv li b { color: var(--text); }
