/* ==========================================================================
   INFOGRAPHICS WORLD — V6
   Dark studio + brand orange. One family (Tajawal) for Arabic and Latin.
   The pen-tool motif from the logo (bezier paths, square anchors) is the
   single decorative idea; everything else stays quiet.
   ========================================================================== */

:root {
  --ink: #0E0F11;
  --surface: #15171A;
  --raised: #1C1F23;
  --line: #2A2D32;
  --line-soft: #202327;
  --text: #F3F1ED;
  --muted: #A3A8AE;
  --faint: #6E747B;
  --orange: #FF6B00;
  --orange-hover: #FF7E1F;
  --orange-text: #FF8A33;
  --orange-wash: rgba(255, 107, 0, 0.09);
  --orange-line: rgba(255, 107, 0, 0.42);
  --ok: #2BB673;
  --wa: #25D366;

  --font: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.875rem, 1.3rem + 2.4vw, 2.75rem);
  --fs-3xl: clamp(2.5rem, 1.4rem + 5vw, 4.75rem);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--orange); color: #fff; }
html[lang="fr"] .lang-ar { display: none; }
html:not([lang="fr"]) .lang-fr { display: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--orange); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 200; }
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; letter-spacing: -0.005em; text-wrap: balance; }
.display { font-size: var(--fs-3xl); font-weight: 900; line-height: 1.32; letter-spacing: -0.015em; }
.h2 { font-size: var(--fs-2xl); }
.h3 { font-size: var(--fs-lg); font-weight: 700; }
.lead { font-size: var(--fs-lg); color: var(--muted); line-height: 1.7; max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
p { text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-md);
  font-weight: 700; font-size: var(--fs-base); line-height: 1; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--muted); }
.btn-wa { background: transparent; color: var(--text); border-color: var(--line); }
.btn-wa svg { width: 20px; height: 20px; fill: var(--wa); }
.btn-wa:hover { border-color: var(--wa); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.text-link { color: var(--orange-text); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(14, 15, 17, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); background: rgba(14, 15, 17, 0.92); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 34px; height: auto; }
.wordmark { display: flex; flex-direction: column; line-height: 1; direction: ltr; text-align: left; }
.wordmark b { font-size: 1.02rem; font-weight: 800; letter-spacing: 0.02em; color: var(--text); }
.wordmark b span { color: var(--orange); }
.wordmark small { font-size: 0.62rem; letter-spacing: 0.42em; color: var(--orange); font-weight: 700; margin-top: 3px; }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a { display: block; padding: 8px 12px; border-radius: var(--r-sm); color: var(--muted); font-weight: 500; font-size: var(--fs-sm); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switcher { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn { border: 0; background: none; padding: 4px 11px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); cursor: pointer; }
.lang-btn.active { background: var(--text); color: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-md); background: none; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99; background: var(--ink);
  border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px;
  display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav ul a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-lg); font-weight: 700; }
.mobile-nav ul a.active { color: var(--orange-text); }
.mobile-nav .lang-switcher { margin: 20px 0 16px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); max-width: 34em; }
.section-head.stack { grid-template-columns: 1fr; }
.page-head { padding-block: clamp(56px, 8vw, 104px) clamp(32px, 5vw, 56px); }
.page-head .display { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); max-width: 16em; line-height: 1.32; }
.page-head .lead { margin-top: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
html[lang="fr"] .hero .display { font-size: clamp(2.25rem, 1.2rem + 4vw, 4.1rem); line-height: 1.18; }
html[lang="fr"] .page-head .display { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); line-height: 1.18; }
.hero .display { max-width: 11.5em; line-height: 1.32; }
.hero .lead { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 22px; color: var(--faint); font-size: var(--fs-sm); }
.pen-path { position: absolute; inset-inline-end: 0; top: 50%; translate: 0 -50%; width: min(33vw, 460px); height: auto; z-index: 0; pointer-events: none; }
[dir="rtl"] .pen-path { transform: scaleX(-1); }
.pen-path .curve { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; }
.pen-path .handle { stroke: rgba(243, 241, 237, .35); stroke-width: 1; }
.pen-path .anchor { fill: var(--ink); stroke: var(--text); stroke-width: 1.5; }
.pen-path .knob { fill: var(--orange); }
@media (prefers-reduced-motion: no-preference) {
  .pen-path .curve { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.2s var(--ease) .2s forwards; }
  .pen-path .handle, .pen-path .anchor, .pen-path .knob { opacity: 0; animation: appear .5s ease forwards; }
  .pen-path .d1 { animation-delay: .5s; } .pen-path .d2 { animation-delay: 1.1s; } .pen-path .d3 { animation-delay: 1.7s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* ---------- services list ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: 24px; align-items: center;
  padding: 26px 4px; border-bottom: 1px solid var(--line); transition: background-color .2s;
}
.svc-row:hover { background: linear-gradient(90deg, transparent, var(--orange-wash), transparent); }
.svc-icon { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--orange); }
.svc-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-row h3 { font-size: var(--fs-lg); font-weight: 700; }
.svc-row p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.7; }
.svc-price { text-align: end; white-space: nowrap; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.svc-price .from { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- portfolio ---------- */
.portfolio-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn { border: 1px solid var(--line); background: none; color: var(--muted); padding: 8px 16px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; cursor: pointer; transition: all .2s; }
.filter-btn:hover { color: var(--text); border-color: var(--muted); }
.filter-btn.active { background: var(--text); border-color: var(--text); color: var(--ink); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.portfolio-card { display: flex; flex-direction: column; gap: 14px; }
.portfolio-thumb { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.03); }
.portfolio-overlay { position: absolute; inset: auto 12px 12px auto; opacity: 0; transform: translateY(6px); transition: all .3s var(--ease); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
[dir="rtl"] .portfolio-overlay { inset: auto auto 12px 12px; }
.portfolio-card:hover .portfolio-overlay, .portfolio-card:focus-within .portfolio-overlay { opacity: 1; transform: none; }
.portfolio-category { color: var(--orange-text); font-size: var(--fs-xs); font-weight: 700; }
.portfolio-title { font-size: var(--fs-lg); font-weight: 700; line-height: 1.35; margin-top: 2px; }
.portfolio-desc { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }
.home-work .portfolio-grid { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; }
.home-work .portfolio-card:first-child { grid-row: span 2; }
.home-work .portfolio-card:first-child .portfolio-thumb { aspect-ratio: 4 / 3.6; }
.home-work .portfolio-card:not(:first-child) { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.home-work .portfolio-card:not(:first-child) .portfolio-thumb { aspect-ratio: 1; }

/* ---------- pricing ---------- */
.price-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.price-door { padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: background-color .2s; }
.price-door + .price-door { border-inline-start: 1px solid var(--line); }
.price-door:hover { background: var(--surface); }
.price-door .amount { font-size: var(--fs-2xl); font-weight: 900; line-height: 1.1; }
.price-door .amount small { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); margin-inline-start: 6px; }
.price-door p { color: var(--muted); font-size: var(--fs-sm); flex: 1; }

.price-tabs { position: sticky; top: var(--header-h); z-index: 20; background: rgba(14, 15, 17, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.price-tabs .container { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.price-tabs a { white-space: nowrap; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: var(--fs-sm); }
.price-tabs a:hover { color: var(--text); border-color: var(--muted); }
.price-group { padding-block: clamp(48px, 7vw, 88px); }
.price-group + .price-group { border-top: 1px solid var(--line-soft); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pricing-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pricing-card { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.pricing-card.featured { border-color: var(--orange-line); background: linear-gradient(180deg, var(--orange-wash), var(--surface) 60%); }
.pricing-badge { position: absolute; top: -12px; inset-inline-start: 24px; background: var(--orange); color: #fff; font-size: var(--fs-xs); font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.package-name { font-size: var(--fs-lg); font-weight: 800; direction: ltr; text-align: start; }
[dir="rtl"] .package-name { text-align: right; }
.package-for { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }
.package-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.package-price .num { font-size: 2.25rem; font-weight: 900; line-height: 1; letter-spacing: -0.01em; }
.package-price .cur { color: var(--muted); font-weight: 700; }
.package-price .from-label { width: 100%; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.package-features { display: flex; flex-direction: column; gap: 10px; flex: 1; padding-top: 18px; border-top: 1px solid var(--line); }
.package-features li { position: relative; padding-inline-start: 26px; font-size: var(--fs-sm); line-height: 1.6; color: var(--text); }
.package-features li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .5em; width: 9px; height: 9px; border: 1.5px solid var(--orange); border-radius: 2px; transform: rotate(45deg); }
.price-note { margin-top: 20px; color: var(--faint); font-size: var(--fs-sm); }

.ind-list { border-top: 1px solid var(--line); }
.ind-service-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.ind-service-row .name { font-weight: 700; }
.ind-service-row .name small { display: block; color: var(--muted); font-weight: 500; font-size: var(--fs-sm); }
.ind-service-row .price { color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; }
.ind-service-row .price b { color: var(--text); }

.pay-box { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.pay-box .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--orange-wash); color: var(--orange); display: grid; place-items: center; }
.pay-box .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pay-box h3 { font-size: var(--fs-lg); margin-bottom: 6px; }
.pay-box p { color: var(--muted); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 0 0 0; padding-inline-end: 24px; }
.step-num { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--orange-text); font-weight: 800; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.step-num::before { content: ''; width: 12px; height: 12px; border: 2px solid var(--orange); background: var(--ink); transform: rotate(45deg); flex: none; }
.step-num::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.step:last-child .step-num::after { display: none; }
.step h3 { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- why / values ---------- */
.why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.why-item { padding: 24px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.why-item svg { width: 26px; height: 26px; color: var(--orange); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.why-item h3 { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 4px; }
.why-item p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: var(--fs-2xl); max-width: 14em; }
.cta-band p { color: var(--muted); margin-top: 10px; max-width: 32em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band::before { content: ''; position: absolute; inset-inline-start: -10%; bottom: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 107, 0, .12), transparent); }

/* ---------- service detail (services page) ---------- */
.svc-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 64px; padding-block: 44px; border-top: 1px solid var(--line); }
.svc-detail:last-child { border-bottom: 1px solid var(--line); }
.svc-detail .svc-icon { margin-bottom: 16px; }
.svc-detail h2 { font-size: var(--fs-xl); }
.svc-detail .desc { color: var(--muted); margin-top: 10px; }
.svc-detail .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.svc-detail .meta .from { color: var(--muted); font-size: var(--fs-sm); }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; align-content: start; }
.check-list li { position: relative; padding-inline-start: 26px; color: var(--text); font-size: var(--fs-sm); line-height: 1.6; }
.check-list li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .5em; width: 9px; height: 9px; border: 1.5px solid var(--orange); border-radius: 2px; transform: rotate(45deg); }
.group-title { font-size: var(--fs-2xl); margin-bottom: 8px; }
.group-sub { color: var(--muted); margin-bottom: 24px; max-width: 40em; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-header { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; background: none; border: 0; cursor: pointer; text-align: start; font-size: var(--fs-lg); font-weight: 700; color: var(--text); }
.faq-icon { width: 28px; height: 28px; flex: none; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: transform .3s var(--ease), border-color .2s; }
.faq-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.faq-item.active .faq-icon { transform: rotate(45deg); border-color: var(--orange); color: var(--orange); }
.faq-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-content > div { overflow: hidden; }
.faq-content p { color: var(--muted); padding: 0 4px 22px; max-width: 46em; }
.faq-item.active .faq-content { grid-template-rows: 1fr; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px 72px; align-items: start; }
.about-grid .body p { color: var(--muted); font-size: var(--fs-lg); line-height: 1.85; }
.about-grid .body p + p { margin-top: 18px; }
.about-mark { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); aspect-ratio: 1; display: grid; place-items: center; position: relative; overflow: hidden; }
.about-mark img { width: 46%; }
.about-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.talab-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: 1px solid var(--orange-line); background: var(--orange-wash); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 32px; }
.talab-note p { flex: 1 1 280px; color: var(--text); }
.brief-form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-weight: 700; font-size: var(--fs-sm); }
.form-control { width: 100%; min-height: 50px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--text); transition: border-color .2s; }
.form-control:focus { outline: none; border-color: var(--orange); }
.form-control::placeholder { color: var(--faint); }
textarea.form-control { min-height: 140px; resize: vertical; line-height: 1.7; }
select.form-control { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(14px) 50%, calc(19px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-start: 34px; }
[dir="ltr"] select.form-control { background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; padding-inline-start: 14px; padding-inline-end: 34px; }
.form-feedback:empty { display: none; }
.form-feedback { padding: 12px 14px; border-radius: var(--r-md); font-size: var(--fs-sm); }
.form-feedback.success { background: rgba(43, 182, 115, .12); color: var(--ok); }
.form-note { color: var(--faint); font-size: var(--fs-xs); }
.form-note a { color: var(--muted); text-decoration: underline; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.side-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--surface); }
.side-card + .side-card { margin-top: 16px; }
.side-card h3 { font-size: var(--fs-lg); margin-bottom: 8px; }
.side-card p { color: var(--muted); font-size: var(--fs-sm); }
.side-card .btn { margin-top: 16px; }

/* ---------- prose (privacy) ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: var(--fs-2xl); margin-bottom: 8px; }
.prose h2 { font-size: var(--fs-lg); margin: 36px 0 10px; }
.prose p { color: var(--muted); line-height: 1.9; }
.prose a { color: var(--orange-text); }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound .code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 900; line-height: 1; color: var(--orange); }
.notfound p { color: var(--muted); margin: 12px 0 28px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 28px; color: var(--muted); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px 40px; }
.footer-brand p { margin-top: 16px; max-width: 26em; line-height: 1.8; }
.footer-col h4 { color: var(--text); font-size: var(--fs-base); margin-bottom: 14px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: var(--fs-xs); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float { position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .2s var(--ease); }
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 9px; }
  .pricing-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .desktop-nav, .header-actions .lang-switcher, .header-actions .cta-start { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
  .section-head { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 48px minmax(0, 1fr); gap: 6px 16px; align-items: start; }
  .svc-row .svc-icon { grid-row: span 3; width: 44px; height: 44px; }
  .svc-price { align-items: flex-start; text-align: start; flex-direction: row; gap: 12px; margin-top: 8px; }
  .home-work .portfolio-grid, .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .home-work .portfolio-card:first-child { grid-column: 1 / -1; grid-row: auto; }
  .home-work .portfolio-card:not(:first-child) { display: flex; }
  .home-work .portfolio-card:not(:first-child) .portfolio-thumb { aspect-ratio: 4 / 3; }
  .price-doors { grid-template-columns: 1fr; }
  .price-door + .price-door { border-inline-start: 0; border-top: 1px solid var(--line); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; }
  .pricing-grid.four { grid-template-columns: 1fr; }
  .why-list, .about-grid, .contact-grid, .svc-detail { grid-template-columns: 1fr; }
  .pen-path { position: relative; display: block; top: auto; translate: none; width: 100%; max-width: 320px; margin: 8px auto -16px; inset-inline-end: auto; }
  .hero { display: flex; flex-direction: column-reverse; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .portfolio-grid, .home-work .portfolio-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 28px; }
  .step-num::after { display: none; }
  .form-grid, .check-list { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .pay-box { grid-template-columns: 1fr; }
  .wordmark b { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   Work reel (home) — horizontal, snapping, auto-advancing showcase
   ========================================================================== */
.work-reel { overflow: hidden; }
.reel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.reel-head .muted { margin-top: 10px; max-width: 34em; }
.reel-controls { display: flex; align-items: center; gap: 10px; }
.reel-count { font-size: var(--fs-sm); color: var(--faint); font-variant-numeric: tabular-nums; margin-inline-end: 10px; letter-spacing: .04em; }
.reel-count b { color: var(--text); font-weight: 800; }
.reel-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color .25s, background-color .25s, transform .25s var(--ease); }
.reel-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .reel-btn svg { transform: scaleX(-1); }
.reel-btn:hover { border-color: var(--orange); background: var(--orange); transform: scale(1.06); }
.reel-btn:active { transform: scale(.96); }
.reel-progress { height: 2px; background: var(--line); margin-top: 28px; overflow: hidden; border-radius: 2px; }
.reel-progress i { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: right center; transform: scaleX(0); }
[dir="ltr"] .reel-progress i { transform-origin: left center; }
.reel-progress i.run { animation: reelTimer var(--reel-delay, 5s) linear forwards; }
.work-reel.paused .reel-progress i.run { animation-play-state: paused; }
@keyframes reelTimer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.reel { margin-top: 32px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.reel::-webkit-scrollbar { display: none; }
.reel:focus-visible { outline: none; }
.reel-track { display: flex; gap: 20px; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); padding-block: 6px 12px; width: max-content; }
.reel-card { flex: none; width: clamp(280px, 40vw, 540px); scroll-snap-align: start; position: relative; }
.reel-open { all: unset; display: block; position: relative; width: 100%; aspect-ratio: 5 / 4; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: var(--surface); isolation: isolate; }
.reel-open:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.reel-img { position: absolute; inset: 0; }
.reel-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: saturate(.75) brightness(.72); transition: transform 1.6s var(--ease), filter .9s var(--ease); will-change: transform; }
.reel-card.is-active .reel-img img { transform: scale(1); filter: none; }
.reel-open:hover .reel-img img { transform: scale(1.04); filter: none; }
.reel-cap { position: absolute; inset: auto 0 0 0; padding: 72px 24px 22px; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(0deg, rgba(8, 9, 10, .88), rgba(8, 9, 10, 0)); z-index: 1; }
.reel-cat { color: var(--orange-text); font-size: var(--fs-xs); font-weight: 800; transform: translateY(12px); opacity: 0; transition: all .7s var(--ease) .05s; }
.reel-title { font-size: clamp(1.1rem, .9rem + .8vw, 1.45rem); font-weight: 800; line-height: 1.3; color: #fff; transform: translateY(16px); opacity: .55; transition: all .8s var(--ease) .12s; }
.reel-card.is-active .reel-cat, .reel-card.is-active .reel-title, .reel-open:hover .reel-cat, .reel-open:hover .reel-title { transform: none; opacity: 1; }
.reel-plus { position: absolute; top: 18px; inset-inline-end: 18px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease); }
.reel-plus svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.reel-open:hover .reel-plus, .reel-open:focus-visible .reel-plus { transform: scale(1) rotate(0); }
.reel-more { width: clamp(220px, 22vw, 300px); }
.reel-more a { display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: 220px; aspect-ratio: auto; padding: 28px; border: 1px solid var(--line); border-radius: 18px; transition: border-color .3s, background-color .3s; }
.reel-more a:hover { border-color: var(--orange); background: var(--orange-wash); }
.reel-more-t { font-size: var(--fs-xl); font-weight: 800; }
.reel-more-ic { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; align-self: flex-end; transition: all .4s var(--ease); }
.reel-more-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .reel-more-ic svg { transform: scaleX(-1); }
.reel-more a:hover .reel-more-ic { background: var(--orange); border-color: var(--orange); transform: translateX(-6px); }
[dir="ltr"] .reel-more a:hover .reel-more-ic { transform: translateX(6px); }

/* first reveal: cards sweep in one after another */
@media (prefers-reduced-motion: no-preference) {
  .work-reel.pre .reel-card { opacity: 0; transform: translateX(-60px); }
  [dir="ltr"] .work-reel.pre .reel-card { transform: translateX(60px); }
  .work-reel .reel-card { transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
}

/* lightbox — opens from the clicked card */
.lb { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); background: rgba(8, 9, 10, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s ease; }
.lb.open { opacity: 1; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 40px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 80px); object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-side { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 48px 40px; border-inline-start: 1px solid var(--line); }
.lb-side > * { opacity: 0; transform: translateY(16px); transition: all .6s var(--ease); }
.lb.open .lb-side > * { opacity: 1; transform: none; }
.lb.open .lb-side > :nth-child(2) { transition-delay: .06s; } .lb.open .lb-side > :nth-child(3) { transition-delay: .12s; } .lb.open .lb-side > :nth-child(4) { transition-delay: .18s; }
.lb-cat { color: var(--orange-text); font-weight: 800; font-size: var(--fs-sm); }
.lb-title { font-size: var(--fs-2xl); line-height: 1.2; }
.lb-desc { color: var(--muted); line-height: 1.85; }
.lb-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.lb-close { position: absolute; top: 18px; inset-inline-end: 18px; z-index: 2; }
.lb-nav { position: absolute; bottom: 24px; inset-inline-start: 40px; display: flex; gap: 10px; z-index: 2; }
.lb-fly { position: fixed; z-index: 301; object-fit: cover; border-radius: 18px; pointer-events: none; }
body.lb-lock { overflow: hidden; }
@media (max-width: 900px) {
  .lb { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lb-stage { padding: 64px 16px 12px; }
  .lb-stage img { max-height: 58vh; }
  .lb-side { border-inline-start: 0; border-top: 1px solid var(--line); padding: 20px 20px 88px; gap: 8px; }
  .lb-title { font-size: var(--fs-xl); }
  .lb-nav { inset-inline-start: auto; inset-inline-end: 16px; bottom: 20px; }
  .reel-card { width: 78vw; }
  .reel-more { width: 54vw; }
  .reel-count { display: none; }
}
