/* =========================================================
   AL-KHALED — light premium, app-style
   Warm off-white page, white cards with soft shadows, rounded corners,
   dark cards only for the hero and highlights. Red #E21D2B accent.
   Font: Readex Pro (geometric, automotive feel, very readable in Arabic).
   ========================================================= */
:root {
  --red: #E21D2B; --red-d: #c0131f; --red-soft: #fdebec;
  --bg: #F3F0EB; --surface: #FFFFFF; --surface-2: #F8F6F2; --sunk: #ECE8E1;
  --text: #121315; --muted: #6E6F75; --line: rgba(18,19,21,.08); --line-2: rgba(18,19,21,.14);
  --dark: #0E0F11; --dark-2: #1A1A1A; --green: #1fa855;
  --r: 22px; --r-lg: 30px; --max: 1240px;
  --shadow: 0 1px 2px rgba(18,19,21,.04), 0 10px 30px rgba(18,19,21,.06);
  --shadow-lg: 0 2px 4px rgba(18,19,21,.05), 0 24px 60px rgba(18,19,21,.12);
  --font: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  /* aliases used by the dashboard styles */
  --ink: var(--surface-2); --ink-2: var(--surface); --ink-3: var(--sunk); --ink-4: var(--sunk);
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 34V66' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'/%3E%3C/svg%3E");
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: calc(16px * var(--fs, 1)); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font); line-height: 1.25; margin: 0 0 .35em; font-weight: 700; letter-spacing: -.01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.section { padding-block: clamp(36px, 6vw, 72px); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: calc(clamp(22px, 2.8vw, 32px) * var(--hs, 1)); margin: 4px 0 0; position: relative; }
.section-head h2::after { content: ""; display: block; width: 34px; height: 3px; border-radius: 3px; background: var(--red); margin-top: 8px; }
.section-head p { color: var(--muted); margin: 8px 0 0; max-width: 58ch; font-size: 15px; }
.kicker { color: var(--red); font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px; }
.link::after { content: "←"; color: var(--red); transition: transform .25s var(--ease); }
.link:hover::after { transform: translateX(-4px); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  background: var(--red); color: #fff; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.btn:hover { background: var(--red-d); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(226,29,43,.25); }
.btn .ar { width: 28px; height: 28px; margin-inline-end: -10px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; font-size: 14px; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { box-shadow: var(--shadow); background: var(--surface); }
.on-dark .btn.ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.btn.wa { background: var(--green); color: #fff; }
.btn.wa:hover { background: #17924a; box-shadow: 0 10px 24px rgba(31,168,85,.25); }
.btn.sm { padding: 9px 16px; font-size: 13px; }
.icon-btn-round { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: .2s; }
.icon-btn-round:hover { border-color: var(--red); color: var(--red); }
.icon-btn-round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top, 0px);
  background: rgba(243,240,235,.85); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.top.solid { border-color: var(--line); background: rgba(243,240,235,.95); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 17px; line-height: 1.2; }
.brand img { width: 44px; height: 44px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); object-fit: contain; padding: 3px; }
.brand small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; letter-spacing: .12em; direction: ltr; text-align: right; white-space: nowrap; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; background: var(--surface); padding: 5px; border-radius: 999px; box-shadow: var(--shadow); }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; padding: 7px 14px; border-radius: 999px; transition: .2s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current] { background: var(--dark); color: #fff; }
.top .btn.wa { padding: 10px 18px; font-size: 14px; }
.login-corner { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.login-corner svg { width: 18px; height: 18px; fill: currentColor; }
.login-corner span { display: none; }
.login-corner:hover { color: var(--red); border-color: var(--red); }
.burger { display: none; }
@media (max-width: 900px) {
  .nav, .top .btn.wa { display: none; }
  .top .wrap { height: 64px; }
  .login-corner { margin-inline-start: auto; }
}
@media (max-width: 420px) { .brand small { display: none; } }

/* ---------- greeting + search (app-style) ---------- */
.hello { padding-top: 18px; }
.hello small { color: var(--muted); font-size: 14px; }
.hello h1 { font-size: calc(clamp(22px, 3vw, 30px) * var(--hs, 1)); margin: 2px 0 0; }
.search-row { display: flex; gap: 10px; margin-top: 16px; }
.searchbox { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 18px; height: 52px; box-shadow: var(--shadow); }
.searchbox svg { width: 20px; height: 20px; flex: none; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.searchbox input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--text); min-width: 0; height: 100%; }
.searchbox input:focus { outline: none; }
.searchbox:focus-within { border-color: var(--red); }

/* ---------- hero card ---------- */
.hero { padding-top: 18px; }
.hero-card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); min-height: clamp(380px, 52vw, 560px);
  display: flex; align-items: end; color: #fff; box-shadow: var(--shadow-lg); background: var(--dark); }
.hero-card .bd { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: -2; transition: opacity 1.4s ease; }
.bd.on { opacity: 1; animation: kb 16s ease-out forwards; }
@keyframes kb { from { transform: scale(1.1); } to { transform: scale(1.01); } }
.hero-card::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,10,12,.05) 20%, rgba(10,10,12,.78) 75%), linear-gradient(0deg, rgba(10,10,12,.75), transparent 55%); }
.hex { position: absolute; inset: 0; z-index: -1; background-image: var(--hex); background-size: 42px 75px; opacity: .8;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 85%); mask-image: linear-gradient(90deg, transparent 30%, #000 85%); }
.hero-word { display: none; }
.hero-inner { padding: clamp(24px, 4vw, 52px); width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.22); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.pill::before { content: "★"; color: #ffb02e; }
.hero-card h1 { font-size: calc(clamp(30px, 5vw, 60px) * var(--hs, 1)); font-weight: 700; max-width: 14ch; margin: 16px 0 10px; line-height: 1.3; }
/* the red highlight gets its own line-box space, so it never touches the line above */
.hero-card h1 em { font-style: normal; background: var(--red); color: #fff; padding: .02em .28em .1em; border-radius: 14px;
  display: inline-block; line-height: 1.15; margin-top: .12em; }
.hero-card p { color: rgba(255,255,255,.85); max-width: 46ch; font-weight: 300; margin: 0; font-size: calc(clamp(15px, 1.5vw, 18px) * var(--fs, 1)); }
.hero-card .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-badges div { background: rgba(255,255,255,.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px; padding: 8px 14px; line-height: 1.3; }
.hero-badges b { display: block; font-size: 17px; font-weight: 600; }
.hero-badges span { font-size: 12px; color: rgba(255,255,255,.75); }
.dots { display: flex; gap: 6px; align-items: center; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.45); transition: .4s var(--ease); }
.dots i.on { width: 22px; background: var(--red); }
@media (max-width: 600px) {
  .hero-badges div:nth-child(3) { display: none; }
  .hero-card .cta { flex-direction: column; gap: 8px; }
  .hero-card .cta .btn { width: 100%; white-space: nowrap; padding-block: 13px; }
  .hero-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-card h1 { margin-top: 12px; }
  .hero-meta { margin-top: 18px; }
}

/* ---------- category icons ---------- */
.cats { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.cats::-webkit-scrollbar { display: none; }
.cat-btn { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer;
  font: inherit; color: var(--text); font-size: 13px; font-weight: 500; min-width: 78px; scroll-snap-align: start; }
.cat-btn .ic { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: .25s var(--ease); }
.cat-btn .ic svg { width: 26px; height: 26px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cat-btn:hover .ic { transform: translateY(-2px); }
.cat-btn[aria-pressed="true"] .ic { background: var(--red-soft); border-color: rgba(226,29,43,.35); }
.cat-btn[aria-pressed="true"] .ic svg { stroke: var(--red); }
.cat-btn[aria-pressed="true"] { color: var(--red); }

/* ---------- product cards ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 16px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 48px) / 4); } }
.rail > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover, .card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); outline: none; }
.card-img { position: relative; aspect-ratio: 4 / 3; margin: 8px 8px 0; border-radius: 16px; overflow: hidden; background: var(--sunk); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; background: #fff; color: var(--text); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow); }
.badge::before { content: "★ "; color: var(--red); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-body h3 { font-size: 16px; font-weight: 600; margin: 0; }
.card-body p { color: var(--muted); font-size: 13px; margin: 2px 0 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat { color: var(--muted); font-size: 12px; font-weight: 500; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.price { font-weight: 700; font-size: 16px; color: var(--red); }
.more { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 15px;
  transition: transform .25s var(--ease); }
.card:hover .more { transform: translateX(-3px); }
.empty { color: var(--muted); padding: 34px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--surface-2); }

/* ---------- services (tall image cards) ---------- */
.svcs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff;
  display: flex; align-items: end; box-shadow: var(--shadow); isolation: isolate; }
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.svc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,10,12,.88), transparent 60%); }
.svc:hover img { transform: scale(1.06); }
.svc .t { padding: 16px; }
.svc .en { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .7; direction: ltr; display: block; text-align: right; }
.svc h3 { font-size: 18px; font-weight: 600; margin: 2px 0 2px; }
.svc p { margin: 0; font-size: 13px; color: rgba(255,255,255,.8); }
.svc .go { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9);
  color: var(--text); display: grid; place-items: center; font-size: 14px; transition: .25s; }
.svc:hover .go { background: var(--red); color: #fff; }
@media (max-width: 900px) {
  .svcs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
  .svcs::-webkit-scrollbar { display: none; } .svc { scroll-snap-align: start; }
}
@media (max-width: 520px) { .svcs { grid-auto-columns: 62%; } }

/* ---------- promo band (dark card) ---------- */
.promo { position: relative; border-radius: var(--r-lg); overflow: hidden; color: #fff; background: var(--dark); isolation: isolate;
  min-height: clamp(260px, 30vw, 360px); display: flex; align-items: center; box-shadow: var(--shadow-lg); }
.promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,12,.1) 20%, rgba(10,10,12,.88) 70%); }
.promo .t { padding: clamp(24px, 4vw, 48px); max-width: 560px; }
.promo .kicker { color: #ff6b74; }
.promo h2 { font-size: calc(clamp(26px, 3.6vw, 44px) * var(--hs, 1)); margin: 6px 0 8px; line-height: 1.3; }
.promo h2 em { font-style: normal; color: #ff4d58; }
.promo p { color: rgba(255,255,255,.8); margin: 0 0 18px; font-weight: 300; }
.play { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 600; }
.play i { width: 50px; height: 50px; border-radius: 50%; background: var(--red); display: grid; place-items: center; position: relative; }
.play i::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(226,29,43,.55); animation: pulse 2.2s ease-out infinite; }
.play i svg { width: 16px; height: 16px; fill: #fff; transform: scaleX(-1); margin-left: -2px; }
@keyframes pulse { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* ---------- stats (white card, red line with circles) ---------- */
.stats-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 42px) 12px; }
.stats { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); text-align: center; }
.stats::before { content: ""; position: absolute; top: calc(56px + 14px + 13px); inset-inline: calc(50% / var(--n, 4)); height: 1px; background: var(--red);
  transform: scaleX(0); transition: transform 1.3s var(--ease); }
.stats.in::before { transform: scaleX(1); }
.stat { min-width: 0; padding-inline: 6px; }
.stat b { display: flex; align-items: flex-end; justify-content: center; height: 56px; white-space: nowrap; font-weight: 300;
  font-size: calc(clamp(22px, 3vw, 40px) * var(--hs, 1)); line-height: 1.1; }
.stat i { display: block; width: 26px; height: 26px; margin: 14px auto 10px; border-radius: 50%; border: 1px solid var(--red); background: var(--surface); position: relative; z-index: 1; }
.stat i::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--red); }
.stat span { color: var(--muted); font-size: 13px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; } .stats::before { display: none; } }

/* ---------- works mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 20vw, 260px); gap: 12px; }
.work { position: relative; margin: 0; overflow: hidden; cursor: pointer; border-radius: var(--r); background: var(--sunk); box-shadow: var(--shadow); }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.work:hover img, .work:focus-visible img { transform: scale(1.06); }
.work figcaption { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; font-weight: 600; font-size: 14px; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); display: flex; flex-direction: column; }
.work figcaption .cat { color: rgba(255,255,255,.75); }
.mosaic .work:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic .work:nth-child(4) { grid-column: span 2; }
.tile-red { position: relative; overflow: hidden; border-radius: var(--r); background: var(--red); color: #fff; display: flex; flex-direction: column;
  justify-content: end; padding: 22px; text-decoration: none; isolation: isolate; box-shadow: var(--shadow); }
.tile-red::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--hex); background-size: 42px 75px; opacity: .7; }
.tile-red b { font-size: calc(clamp(20px, 2.2vw, 28px) * var(--hs, 1)); line-height: 1.3; font-weight: 700; }
.tile-red span { margin-top: 8px; font-size: 13px; opacity: .9; }
.tile-red .ring { position: absolute; top: 18px; inset-inline-end: 18px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: grid; place-items: center; transition: .3s; }
.tile-red:hover .ring { background: #fff; color: var(--red); }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: 10px; }
  .mosaic .work:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .mosaic .work:nth-child(4) { grid-column: auto; }
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 18px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 16px 0; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 18px; transition: .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--red); color: #fff; border-color: var(--red); }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* ---------- contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; }
.contact-info { background: var(--surface); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.contacts { display: grid; gap: 10px; margin: 18px 0; }
.contact { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; transition: .2s; }
.contact .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; font-size: 18px; box-shadow: var(--shadow); }
.contact b { font-weight: 600; font-size: 15px; display: block; line-height: 1.3; }
.contact span[dir] { color: var(--muted); font-size: 13px; }
.contact::after { content: "←"; color: var(--muted); transition: .2s; }
.contact:hover { border-color: var(--red); }
.contact:hover::after { color: var(--red); transform: translateX(-3px); }
.addr { display: flex; gap: 8px; color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.contact-map { position: relative; min-height: 380px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--sunk); }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } .contact-map { min-height: 260px; } }

/* ---------- footer ---------- */
footer { padding-block: 40px calc(30px + env(safe-area-inset-bottom, 0px)); text-align: center; color: var(--muted); }
.f-logo { width: 52px; height: 52px; border-radius: 16px; background: #fff; margin: 0 auto; box-shadow: var(--shadow); padding: 3px; }
.f-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 10px; }
.f-links a { color: var(--text); text-decoration: none; font-size: 14px; }
.f-links a:hover { color: var(--red); }
footer small { font-size: 12px; }
.f-line-v { display: none; }

/* ---------- floating WhatsApp (desktop) ---------- */
.fab { position: fixed; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); left: 22px; z-index: 30; width: 58px; height: 58px; border-radius: 50%;
  background: var(--green); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(31,168,85,.35); transition: transform .25s; }
.fab:hover { transform: scale(1.07); }
.fab svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- mobile bottom navigation ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  .fab { display: none; }
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; position: fixed; z-index: 45;
    left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); height: 70px; padding: 4px 6px;
    background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-radius: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.2; }
  .tabbar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current] { color: var(--red); }
  .tabbar .mid { position: relative; top: -16px; }
  .tabbar .mid i { width: 60px; height: 60px; border-radius: 50%; background: var(--green); display: grid; place-items: center;
    box-shadow: 0 10px 24px rgba(31,168,85,.4); border: 4px solid var(--bg); }
  .tabbar .mid i svg { width: 28px; height: 28px; fill: #fff; stroke: none; }
  .tabbar .mid { color: var(--green); }
}

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; } .bd.on, .play i::before { animation: none; }
}

/* ---------- dialog ---------- */
dialog { border: 0; padding: 0; background: transparent; max-width: min(1000px, 94vw); width: 100%; color: var(--text); }
dialog::backdrop { background: rgba(18,19,21,.55); backdrop-filter: blur(6px); }
dialog[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.pd { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.pd-gallery { background: var(--sunk); }
.pd-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pd-thumbs { display: flex; gap: 6px; padding: 10px; overflow-x: auto; }
.pd-thumbs img { width: 70px; height: 54px; object-fit: cover; border-radius: 10px; cursor: pointer; opacity: .75; }
.pd-thumbs img:hover { opacity: 1; }
.pd-info { padding: 30px; display: flex; flex-direction: column; gap: 8px; }
.pd-info h2 { font-size: 26px; }
.price.big { font-size: 24px; }
.desc { color: #3f4046; font-size: 15px; flex: 1; }
.pd-info .btn { align-self: flex-start; }
.x { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--text); font-size: 16px; cursor: pointer; box-shadow: var(--shadow); }
@media (max-width: 760px) {
  dialog { max-width: 100vw; margin: auto 0 0; }
  .pd { grid-template-columns: 1fr; border-radius: 28px 28px 0 0; max-height: 92vh; overflow-y: auto; }
  .pd-info { padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- smart WhatsApp sheet ---------- */
#wa-sheet { max-width: min(520px, 94vw); }
.was { position: relative; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg);
  padding: 26px 24px 22px; display: grid; gap: 14px; max-height: 92vh; overflow-y: auto; }
.was-head { display: flex; gap: 12px; align-items: center; padding-inline-end: 40px; }
.was-head h2 { font-size: calc(20px * var(--hs, 1)); margin: 0 0 2px; }
.was-head .hint { margin: 0; }
.was-ic { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.was-ic svg { width: 26px; height: 26px; fill: #fff; }
.was-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.was-svc { border: 0; padding: 0; margin: 0; min-width: 0; }
.was-svc legend, .was label { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 8px; }
.was-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.was-chips .chip { box-shadow: none; background: var(--surface-2); }
.was-chips .chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.was-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.was label { display: grid; gap: 6px; margin: 0; }
.was input:not([type=checkbox]), .was select, .was textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 12px; }
.was textarea { resize: vertical; min-height: 0; }
.was input:focus, .was select:focus, .was textarea:focus { outline: 2px solid var(--green); border-color: transparent; }
.was .was-check { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; font-size: 14px; cursor: pointer; }
.was-check input { width: 20px; height: 20px; accent-color: var(--green); }
.was-prev summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.was-prev pre { white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.7; margin: 8px 0 0; padding: 12px 14px;
  background: #E7F7EC; border-radius: 14px 14px 4px 14px; color: #12301d; }
.was-send { width: 100%; padding-block: 14px; font-size: 16px; }
.was-send svg { width: 22px; height: 22px; fill: #fff; }
.was-foot { margin: -4px 0 0; text-align: center; }
@media (max-width: 760px) {
  #wa-sheet { max-width: 100vw; }
  .was { border-radius: 28px 28px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- toast ---------- */
.toast { position: fixed; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translate(-50%, 200px); z-index: 99;
  background: var(--dark); color: #fff; padding: 12px 20px; border-radius: 999px; transition: .35s var(--ease); font-size: 14px; box-shadow: var(--shadow-lg); }
.toast.show { transform: translate(-50%, 0); }
.toast[data-kind="err"] { background: var(--red); }
.hint { color: var(--muted); font-size: 13px; }

/* ---------- products page ---------- */
.page-hero { padding-top: 18px; }
.page-hero .hero-card { min-height: clamp(200px, 24vw, 280px); }
.page-hero h1 { font-size: calc(clamp(26px, 4vw, 44px) * var(--hs, 1)); margin: 10px 0 6px; }
.chip { background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow); transition: .2s; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 8px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.search { display: none; }
