/* Bishay Web Studio — shared demo styles. Plain CSS, no paid libraries. */
:root {
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 0px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.55 var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: var(--brand); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---- Trade + theme tokens ---- */
html[data-trade="painter"][data-theme="light"] {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ink: #1c2733; --muted: #5b6876; --brand: #1f4e8c; --brand-d: #163a69;
  --bg: #f6f8fb; --card: #fff; --line: #e2e8f0; --hero-a: #1f4e8c; --hero-b: #163a69;
  --hero-ink: #fff; --sample-bg: #fff7d6; --sample-ink: #5b4a00; --sample-line: #ecd98a;
  --shadow: 0 10px 30px rgba(22, 58, 105, .08); --radius: 14px;
}
html[data-trade="painter"][data-theme="dark"] {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ink: #e8eef6; --muted: #9aa8b8; --brand: #7eb0ff; --brand-d: #c5dbff;
  --bg: #0d141c; --card: #161f2b; --line: #2a3848; --hero-a: #0f1a26; --hero-b: #1a3354;
  --hero-ink: #f4f8ff; --sample-bg: #2a2410; --sample-ink: #f0e2a0; --sample-line: #4a4018;
  --shadow: 0 16px 40px rgba(0, 0, 0, .35); --radius: 16px;
}
html[data-trade="painter"][data-theme="bold"] {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ink: #10151c; --muted: #3d4a58; --brand: #0b3d91; --brand-d: #071f4a;
  --bg: #ffef3a; --card: #fff; --line: #10151c; --hero-a: #0b3d91; --hero-b: #071f4a;
  --hero-ink: #ffef3a; --sample-bg: #fff; --sample-ink: #10151c; --sample-line: #10151c;
  --shadow: 6px 6px 0 #10151c; --radius: 0;
}

html[data-trade="plumber"][data-theme="light"] {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ink: #12262b; --muted: #4f646a; --brand: #0f6a73; --brand-d: #0a4d54;
  --bg: #f3f7f7; --card: #fff; --line: #d5e3e4; --hero-a: #0f6a73; --hero-b: #0a4d54;
  --hero-ink: #fff; --sample-bg: #fff7d6; --sample-ink: #5b4a00; --sample-line: #ecd98a;
  --shadow: 0 10px 30px rgba(10, 77, 84, .08); --radius: 14px;
}
html[data-trade="plumber"][data-theme="dark"] {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ink: #e4f3f4; --muted: #95b0b4; --brand: #5ee0d0; --brand-d: #b7fff6;
  --bg: #071416; --card: #102225; --line: #1d383c; --hero-a: #051011; --hero-b: #0c3338;
  --hero-ink: #e8fffc; --sample-bg: #2a2410; --sample-ink: #f0e2a0; --sample-line: #4a4018;
  --shadow: 0 16px 40px rgba(0, 0, 0, .35); --radius: 16px;
}
html[data-trade="plumber"][data-theme="bold"] {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ink: #041416; --muted: #1d3c40; --brand: #087f8c; --brand-d: #03343a;
  --bg: #7ff0e0; --card: #fff; --line: #041416; --hero-a: #087f8c; --hero-b: #03343a;
  --hero-ink: #7ff0e0; --sample-bg: #fff; --sample-ink: #041416; --sample-line: #041416;
  --shadow: 6px 6px 0 #041416; --radius: 0;
}

html[data-trade="landscaper"][data-theme="light"] {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: Georgia, "Iowan Old Style", Palatino, serif;
  --ink: #1c2b1a; --muted: #5a6856; --brand: #2f6b32; --brand-d: #1e4a21;
  --bg: #f4f7f1; --card: #fff; --line: #dde6d6; --hero-a: #3d7a36; --hero-b: #1e4a21;
  --hero-ink: #fff; --sample-bg: #fff7d6; --sample-ink: #5b4a00; --sample-line: #ecd98a;
  --shadow: 0 10px 30px rgba(30, 74, 33, .08); --radius: 14px;
}
html[data-trade="landscaper"][data-theme="dark"] {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: Georgia, "Iowan Old Style", Palatino, serif;
  --ink: #e7f0e2; --muted: #9aaf96; --brand: #9bd48a; --brand-d: #d4f0c8;
  --bg: #0e140c; --card: #172116; --line: #2a3828; --hero-a: #0c140a; --hero-b: #1a3316;
  --hero-ink: #f2ffe9; --sample-bg: #2a2410; --sample-ink: #f0e2a0; --sample-line: #4a4018;
  --shadow: 0 16px 40px rgba(0, 0, 0, .35); --radius: 16px;
}
html[data-trade="landscaper"][data-theme="bold"] {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: Georgia, "Iowan Old Style", Palatino, serif;
  --ink: #13200f; --muted: #2c4028; --brand: #1f6b24; --brand-d: #0e3012;
  --bg: #d6f25c; --card: #fff; --line: #13200f; --hero-a: #1f6b24; --hero-b: #0e3012;
  --hero-ink: #d6f25c; --sample-bg: #fff; --sample-ink: #13200f; --sample-line: #13200f;
  --shadow: 6px 6px 0 #13200f; --radius: 0;
}

html[data-trade="salon"][data-theme="light"] {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: Georgia, "Iowan Old Style", Palatino, serif;
  --ink: #2a201c; --muted: #6a5c56; --brand: #7a3e3a; --brand-d: #5c2c29;
  --bg: #f8f3ef; --card: #fffdfb; --line: #eadfd8; --hero-a: #7a3e3a; --hero-b: #3f2422;
  --hero-ink: #fff; --sample-bg: #fff7d6; --sample-ink: #5b4a00; --sample-line: #ecd98a;
  --shadow: 0 10px 30px rgba(92, 44, 41, .08); --radius: 14px;
}
html[data-trade="salon"][data-theme="dark"] {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: Georgia, "Iowan Old Style", Palatino, serif;
  --ink: #f3eae4; --muted: #b9a8a1; --brand: #e8b2a8; --brand-d: #ffd9d2;
  --bg: #160f0e; --card: #231817; --line: #3a2b28; --hero-a: #120c0b; --hero-b: #3a201e;
  --hero-ink: #fff6f3; --sample-bg: #2a2410; --sample-ink: #f0e2a0; --sample-line: #4a4018;
  --shadow: 0 16px 40px rgba(0, 0, 0, .35); --radius: 16px;
}
html[data-trade="salon"][data-theme="bold"] {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: Georgia, "Iowan Old Style", Palatino, serif;
  --ink: #2a100e; --muted: #4a2a26; --brand: #9a2f3a; --brand-d: #4a1218;
  --bg: #ffb3c1; --card: #fffaf8; --line: #2a100e; --hero-a: #9a2f3a; --hero-b: #4a1218;
  --hero-ink: #ffd6de; --sample-bg: #fff; --sample-ink: #2a100e; --sample-line: #2a100e;
  --shadow: 6px 6px 0 #2a100e; --radius: 0;
}

/* ---- Sticky chrome ---- */
.top-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.top-sticky.is-scrolled { box-shadow: var(--shadow); }
.sample {
  background: var(--sample-bg);
  color: var(--sample-ink);
  font-size: .88rem;
  padding: 9px 20px;
  border-bottom: 1px solid var(--sample-line);
  text-align: center;
  line-height: 1.4;
}
.sample a { color: var(--sample-ink); font-weight: 700; }
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--brand-d);
  text-decoration: none;
  line-height: 1.2;
}
.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.themes {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
html[data-theme="bold"] .themes { border-radius: 0; }
.themes button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 700 12px/1 var(--font);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 36px;
}
html[data-theme="bold"] .themes button { border-radius: 0; }
.themes button[aria-pressed="true"] {
  background: var(--brand);
  color: var(--hero-ink);
}
.themes button:focus-visible, .btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--hero-ink);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: calc(var(--radius) - 2px);
  min-height: 44px;
  border: 2px solid var(--brand);
  transition: transform .25s var(--ease), background .2s, box-shadow .25s var(--ease), color .2s;
}
.btn:hover { background: var(--brand-d); border-color: var(--brand-d); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.alt { background: transparent; color: inherit; }
.hero .btn.alt { color: var(--hero-ink); border-color: var(--hero-ink); }
.hero .btn:not(.alt) { background: var(--hero-ink); color: var(--brand-d); border-color: var(--hero-ink); }
.hero .btn:not(.alt):hover { background: var(--card); }

/* ---- Hero + parallax ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--hero-a), var(--hero-b));
  color: var(--hero-ink);
  padding: 72px 0 88px;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -20% -10% -30%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 20%, color-mix(in srgb, var(--hero-ink) 18%, transparent), transparent 50%),
    radial-gradient(ellipse at 90% 80%, color-mix(in srgb, var(--hero-ink) 10%, transparent), transparent 45%);
  will-change: transform;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 6.4vw, 3.3rem);
  line-height: 1.1;
  margin: 0 0 14px;
  max-width: 16ch;
}
.hero p { margin: 0 0 24px; font-size: 1.12rem; opacity: .95; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Sections ---- */
section { padding: 64px 0; }
h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
  color: var(--brand-d);
}
.lead { color: var(--muted); margin: 0 0 24px; max-width: 40em; }
.grid, .badges { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card, .badge {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.badge b, .card h3 { display: block; font-size: 1.08rem; margin: 0 0 6px; font-family: var(--display); }
.badge span, .card p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .card:hover, .badge:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
}
.ph {
  height: 150px;
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  color: var(--brand-d);
  background: linear-gradient(135deg, var(--bg), var(--line));
  border: 1px dashed var(--line);
  transition: transform .35s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .ph { transform: scale(1.03); }
}
.band { background: var(--card); border-block: 1px solid var(--line); }
.contact .big { font-size: 1.4rem; font-weight: 800; font-family: var(--display); margin: .2em 0; }
footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: .88rem;
  border-top: 1px solid var(--line);
}

/* ---- Scroll animations ---- */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-animate="left"] { transform: translateX(-32px); }
[data-animate="right"] { transform: translateX(32px); }
[data-animate="scale"] { transform: scale(.96); }
[data-animate].in { opacity: 1; transform: none; }
.grid .card:nth-child(1) { transition-delay: .02s; }
.grid .card:nth-child(2) { transition-delay: .08s; }
.grid .card:nth-child(3) { transition-delay: .14s; }
.grid .card:nth-child(4) { transition-delay: .2s; }
.badges .badge:nth-child(1) { transition-delay: .02s; }
.badges .badge:nth-child(2) { transition-delay: .1s; }
.badges .badge:nth-child(3) { transition-delay: .18s; }

@media (min-width: 720px) {
  .badges { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .ph { height: 180px; }
  .hero { padding: 96px 0 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .badge, .ph, .top-sticky { transition: none; }
  .btn:hover, .card:hover, .badge:hover { transform: none; }
  .hero-bg { transform: none !important; }
}
