/* ============================================================
   Alwan Al Horouf Printing Press — premium print atelier
   Palette sampled from the company profile:
   crimson #CE4646 · petrol navy #053042 · warm paper #FBF8F5
   ============================================================ */

:root {
  --red: #CE4646;
  --red-deep: #B23237;
  --red-tint: #F8ECEA;
  --red-tint-2: #F3DBD8;
  --navy: #053042;
  --navy-2: #0A4258;
  --ink: #182630;
  --muted: #5D6E77;
  --paper: #FBF8F5;
  --card: #FFFFFF;
  --line: #EADFD9;
  --wa: #23B858;
  --wa-deep: #1B9A49;
  --sh: 0 10px 30px -12px rgba(5, 48, 66, .18);
  --sh-lg: 0 24px 60px -20px rgba(5, 48, 66, .28);
  --r: 14px;
  --skew: -14deg;
  --f-d: "Alexandria", "IBM Plex Sans Arabic", sans-serif;
  --f-b: "IBM Plex Sans Arabic", "Alexandria", sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--f-b);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-d); line-height: 1.35; color: var(--navy); }
::selection { background: var(--red); color: #fff; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.9rem; border-radius: 999px;
  font-family: var(--f-d); font-weight: 700; font-size: 1rem;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-wa {
  background: linear-gradient(135deg, var(--wa), var(--wa-deep));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(27, 154, 73, .55);
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(27, 154, 73, .6); }
.btn-ghost {
  border: 2px solid var(--navy); color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .87rem; }
.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.1rem; }

/* ---------- eyebrow: signature skewed ribbon chip ---------- */
.eyebrow {
  display: inline-block; position: relative;
  font-family: var(--f-d); font-weight: 700; font-size: .82rem;
  color: var(--red-deep); letter-spacing: .01em;
  padding: .28rem 1rem; margin-bottom: 1rem;
  isolation: isolate;
}
.eyebrow::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red-tint-2);
  transform: skewX(var(--skew));
  border-inline-start: 3px solid var(--red);
}

/* ---------- section head with crop marks ---------- */
.sec-head { max-width: 640px; margin-bottom: 2.8rem; position: relative; }
.sec-head h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.5rem); font-weight: 800;
  position: relative; display: inline-block; padding-inline: .2rem;
}
.sec-head h2::after {
  content: ""; display: block; height: 10px; margin-top: .35rem;
  width: 72px; background: var(--red);
  transform: skewX(var(--skew));
}
.sec-sub { color: var(--muted); margin-top: .8rem; font-size: 1.02rem; }
.sec-head-light h2, .sec-head-light .sec-sub { color: #fff; }
.sec-head-light .sec-sub { opacity: .8; }
.sec-head-light .eyebrow { color: #FFD9D9; }
.sec-head-light .eyebrow::before { background: rgba(206, 70, 70, .35); border-color: var(--red); }

/* ============ HEADER ============ */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 248, 245, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.hdr.scrolled { box-shadow: var(--sh); }
.hdr-in { display: flex; align-items: center; gap: 1.4rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .7rem; margin-inline-end: auto; }
.brand img { width: 58px; height: 35px; object-fit: contain; }
.brand-t { display: flex; flex-direction: column; line-height: 1.3; }
.brand-t strong { font-family: var(--f-d); font-weight: 800; color: var(--navy); font-size: 1.02rem; }
.brand-t small { color: var(--red-deep); font-size: .68rem; font-weight: 500; }
.nav { display: flex; gap: 1.5rem; }
.nav a { font-weight: 500; font-size: .93rem; color: var(--ink); position: relative; padding-block: .3rem; }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2.5px;
  background: var(--red); transform: skewX(var(--skew)) scaleX(0);
  transition: transform .25s; transform-origin: center;
}
.nav a:hover::after { transform: skewX(var(--skew)) scaleX(1); }
.hdr-cta { display: flex; align-items: center; gap: .7rem; }
.lang-btn {
  font-family: var(--f-d); font-weight: 700; font-size: .8rem;
  border: 1.5px solid var(--navy); color: var(--navy);
  padding: .34rem .8rem; border-radius: 999px;
  transition: background .2s, color .2s;
}
.lang-btn:hover { background: var(--navy); color: #fff; }
.burger { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.burger span { width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain);
  pointer-events: none;
}
.hero-slash {
  position: absolute; top: -12%; inset-inline-end: -18%;
  width: 62%; height: 130%;
  background: linear-gradient(160deg, var(--red-tint), #F6E4E1 70%);
  transform: skewX(var(--skew));
  border-inline-start: 14px solid var(--red);
}
.hero-grid {
  position: relative; display: grid; gap: 3rem;
  grid-template-columns: 1.05fr .95fr; align-items: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 900; line-height: 1.45; margin-bottom: 1.2rem;
}
.hero h1 .hl { color: var(--red); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; inset-inline: -2%; bottom: .06em; height: .28em;
  background: var(--red-tint-2); z-index: -1; transform: skewX(var(--skew));
}
.lead { color: var(--muted); font-size: clamp(1rem, 1.9vw, 1.13rem); max-width: 52ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.6rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; }
.hero-trust li {
  font-size: .85rem; font-weight: 500; color: var(--navy);
  display: flex; align-items: center; gap: .45rem;
}
.hero-trust li::before {
  content: ""; width: 9px; height: 9px; background: var(--red);
  transform: skewX(var(--skew)); flex-shrink: 0;
}
.hero-visual { position: relative; }
.hero-frame {
  position: relative;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  box-shadow: var(--sh-lg);
}
.hero-frame img { width: 100%; aspect-ratio: 10/9; object-fit: cover; }
.hero-chip {
  position: absolute; z-index: 2;
  background: #fff; border-radius: 12px; box-shadow: var(--sh-lg);
  padding: .65rem 1.1rem; display: flex; flex-direction: column; line-height: 1.45;
  border-inline-start: 4px solid var(--red);
}
.hero-chip strong { font-family: var(--f-d); color: var(--navy); font-size: .95rem; }
.hero-chip span { color: var(--muted); font-size: .74rem; }
.chip-a { top: 8%; inset-inline-start: -4%; animation: float 5s ease-in-out infinite; }
.chip-b { bottom: 10%; inset-inline-end: 2%; animation: float 6s ease-in-out 1s infinite; }
@keyframes float { 50% { transform: translateY(-9px); } }
.cmyk { display: flex; gap: .5rem; margin-top: 1.1rem; justify-content: flex-end; padding-inline-end: 8%; }
.cmyk i { width: 11px; height: 11px; border-radius: 50%; }
.cmyk i:nth-child(1) { background: #00A5C8; }
.cmyk i:nth-child(2) { background: #D64072; }
.cmyk i:nth-child(3) { background: #F2C230; }
.cmyk i:nth-child(4) { background: var(--navy); }

/* ============ CLIENTS ============ */
.clients { padding-block: clamp(3rem, 6vw, 4.5rem); background: #fff; border-block: 1px solid var(--line); }
.clients .sec-head { margin-bottom: 2rem; }
.marquee { display: grid; gap: 1.2rem; overflow: hidden; }
.marq-track {
  display: flex; gap: 0; width: max-content;
  animation: marq 55s linear infinite;
}
.marq-rev { animation-direction: reverse; }
.marquee:hover .marq-track { animation-play-state: paused; }
.marq-set { display: flex; align-items: center; gap: 3.2rem; padding-inline-end: 3.2rem; }
.marq-set img {
  height: 60px; width: auto; object-fit: contain;
  filter: grayscale(1) opacity(.62);
  transition: filter .3s;
}
.marq-set img:hover { filter: none; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ============ SERVICES ============ */
.services { padding-block: clamp(3.5rem, 7vw, 6rem); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.pill {
  padding: .5rem 1.25rem; border-radius: 999px; font-weight: 500; font-size: .9rem;
  background: #fff; border: 1.5px solid var(--line); color: var(--muted);
  transition: all .2s;
}
.pill:hover { border-color: var(--red); color: var(--red-deep); }
.pill.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.svc-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}
.svc-card {
  position: relative; background: var(--card); border-radius: var(--r);
  border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.svc-card.hidden { display: none; }
.hot-badge {
  position: absolute; top: 12px; inset-inline-start: -6px; z-index: 3;
  background: var(--red); color: #fff;
  font-size: .68rem; font-weight: 700; font-family: var(--f-d);
  padding: .25rem .9rem .25rem 1.1rem;
  transform: skewX(var(--skew));
  box-shadow: 0 4px 12px -3px rgba(206, 70, 70, .5);
}
.svc-img { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover .svc-img img { transform: scale(1.06); }
.svc-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(5, 48, 66, .18));
  pointer-events: none;
}
.svc-glyph {
  aspect-ratio: 4/2.1; display: grid; place-items: center;
  background:
    linear-gradient(115deg, transparent 42%, rgba(206,70,70,.07) 42%, rgba(206,70,70,.07) 58%, transparent 58%),
    var(--red-tint);
  color: var(--red-deep);
}
.svc-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.svc-body h3 { font-size: 1.04rem; font-weight: 700; display: flex; flex-direction: column; }
.svc-body h3 small { color: var(--muted); font-family: var(--f-b); font-weight: 400; font-size: .76rem; }
.svc-cta { margin-top: auto; display: flex; align-items: center; gap: .55rem; }
.btn-detail {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px dashed var(--red); color: var(--red-deep);
  display: grid; place-items: center;
  transition: all .2s;
}
.btn-detail:hover { background: var(--red); color: #fff; border-style: solid; transform: rotate(90deg); }

/* design wide card */
.design-card {
  margin-top: 2.5rem; display: grid; grid-template-columns: .85fr 1.15fr;
  background: var(--navy); border-radius: 20px; overflow: hidden;
  color: #E9F2F5; box-shadow: var(--sh-lg);
  position: relative;
}
.design-card::before {
  content: ""; position: absolute; inset: -20% 55% -20% -10%;
  background: rgba(206, 70, 70, .14);
  transform: skewX(var(--skew)); pointer-events: none;
}
.design-img { position: relative; min-height: 260px; }
.design-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.design-body { padding: clamp(1.6rem, 4vw, 3rem); position: relative; }
.design-body h3 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin-bottom: .7rem; }
.design-body p { opacity: .82; max-width: 46ch; margin-bottom: 1.2rem; }
.design-body .eyebrow { color: #FFD9D9; }
.design-body .eyebrow::before { background: rgba(206, 70, 70, .4); }
.design-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin-bottom: 1.6rem; }
.design-chips li {
  font-size: .8rem; padding: .3rem .95rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
}

/* ============ WHY ============ */
.why { padding-block: clamp(3.5rem, 7vw, 6rem); background: #fff; border-block: 1px solid var(--line); }
.why-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.why-item {
  padding: 1.6rem 1.5rem; border-radius: var(--r);
  background: var(--paper); border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.why-item::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 0;
  width: 46px; height: 7px; background: var(--red);
  transform: skewX(var(--skew)) translateX(-4px);
}
.why-num {
  display: block; font-family: var(--f-d); font-weight: 900;
  font-size: 1.7rem; color: var(--red); margin-bottom: .4rem; line-height: 1.3;
}
.why-item h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.why-item p { color: var(--muted); font-size: .9rem; }

/* ============ TECH ============ */
.tech { position: relative; padding-block: clamp(3.5rem, 7vw, 6rem); color: #fff; overflow: hidden; }
.tech-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(5, 48, 66, .96) 30%, rgba(5, 48, 66, .82)),
    url("/assets/img/press.webp") center/cover no-repeat;
}
.tech-bg::after {
  content: ""; position: absolute; inset: 0; background-image: var(--grain);
}
.tech .container { position: relative; }
.tech-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tech-card {
  padding: 1.5rem 1.4rem; border-radius: var(--r);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  transition: background .25s, transform .25s;
}
.tech-card:hover { background: rgba(255, 255, 255, .12); transform: translateY(-4px); }
.tech-card h3 {
  color: #fff; font-size: 1.05rem; margin-bottom: .45rem;
  display: flex; align-items: center; gap: .5rem;
}
.tech-card h3::before {
  content: ""; width: 10px; height: 10px; background: var(--red);
  transform: skewX(var(--skew)); flex-shrink: 0;
}
.tech-card p { font-size: .88rem; opacity: .8; }

/* ============ WORK ============ */
.work { padding-block: clamp(3.5rem, 7vw, 6rem); }
.work-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.work-item {
  position: relative; border-radius: 12px; overflow: hidden; padding: 0;
  aspect-ratio: 1; border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-item::after {
  content: "+"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 2.6rem; font-weight: 300; color: #fff;
  background: linear-gradient(135deg, rgba(206, 70, 70, .78), rgba(5, 48, 66, .78));
  opacity: 0; transition: opacity .3s;
}
.work-item:hover::after { opacity: 1; }
.work-item:hover img { transform: scale(1.07); }
.work-item:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

/* ============ HOW ============ */
.how { padding-block: clamp(3.5rem, 7vw, 6rem); background: #fff; border-block: 1px solid var(--line); position: relative; overflow: hidden; }
.how::before {
  content: ""; position: absolute; top: -30%; inset-inline-start: -12%;
  width: 34%; height: 160%; background: var(--red-tint);
  transform: skewX(var(--skew)); opacity: .55;
}
.steps {
  position: relative; display: grid; gap: 1.5rem; list-style: none;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
}
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 2rem 1.6rem 1.7rem; position: relative;
  transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.step-n {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; margin-bottom: 1rem;
  background: var(--red); color: #fff;
  font-family: var(--f-d); font-weight: 800; font-size: 1.5rem;
  transform: skewX(var(--skew));
  box-shadow: 0 8px 20px -6px rgba(206, 70, 70, .55);
}
.step h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .92rem; }
.how-cta { text-align: center; margin-top: 2.6rem; position: relative; }

/* ============ ABOUT ============ */
.about { padding-block: clamp(3.5rem, 7vw, 6rem); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.about-copy h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 1.1rem; }
.about-copy p { color: var(--muted); margin-bottom: 1rem; }
.about-stats { display: flex; gap: 2.4rem; margin-top: 1.8rem; flex-wrap: wrap; }
.about-stats div { display: flex; flex-direction: column; }
.about-stats strong {
  font-family: var(--f-d); font-weight: 900; font-size: 1.9rem; color: var(--red);
  line-height: 1.2;
}
.about-stats span { color: var(--muted); font-size: .84rem; }
.about-visual { position: relative; display: grid; gap: 1.1rem; }
.about-frame {
  border-radius: 12px; overflow: hidden; box-shadow: var(--sh-lg);
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
}
.about-frame img { width: 100%; height: 200px; object-fit: cover; }
.about-frame-b { margin-inline-start: 14%; margin-top: -1.5rem; }

/* ============ CONTACT ============ */
.contact { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4rem, 8vw, 6rem); background: #fff; border-top: 1px solid var(--line); }
.contact-grid { display: block; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; max-width: 920px; margin-inline: auto; }
.c-card-wide { grid-column: 1 / -1; }
.c-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: .95rem 1.15rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.c-card:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: var(--red-tint-2); }
.c-ic {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--red-tint-2); color: var(--red-deep);
}
.c-ic.c-wa { background: #DDF5E6; color: var(--wa-deep); }
.c-card strong { display: block; font-family: var(--f-d); font-size: .93rem; color: var(--navy); }
.c-card em { font-style: normal; color: var(--muted); font-size: .85rem; }
.map-wrap {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--sh); min-height: 380px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ============ FOOTER ============ */
.ftr { background: var(--navy); color: #B9CBD3; position: relative; overflow: hidden; }
.ftr::before {
  content: ""; position: absolute; top: -40%; inset-inline-end: -8%;
  width: 26%; height: 180%; background: rgba(206, 70, 70, .12);
  transform: skewX(var(--skew));
}
.ftr-grid {
  position: relative; display: grid; gap: 2.5rem;
  grid-template-columns: 1.2fr .7fr 1fr 1fr;
  padding-block: 3.2rem 2.4rem;
}
.ftr-brand img { margin-bottom: 1rem; filter: brightness(0) invert(1) opacity(.92); }
.ftr-brand p { font-size: .88rem; opacity: .75; max-width: 34ch; }
.ftr h4 { color: #fff; font-size: .98rem; margin-bottom: 1rem; }
.ftr-nav { display: flex; flex-direction: column; }
.ftr-nav a { font-size: .88rem; padding-block: .28rem; opacity: .75; transition: opacity .2s, color .2s; }
.ftr-nav a:hover { opacity: 1; color: #fff; }
.ftr-contact a, .ftr-contact p { display: block; font-size: .88rem; opacity: .75; padding-block: .28rem; }
.ftr-contact a:hover { opacity: 1; color: #fff; }
.ftr-bar { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.1rem; position: relative; }
.ftr-bar p { font-size: .8rem; opacity: .6; }

/* ============ FAB & MOBILE BAR ============ */
.fab {
  position: fixed; bottom: 26px; inset-inline-start: 26px; z-index: 70;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--wa), var(--wa-deep));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -6px rgba(27, 154, 73, .6);
  transition: transform .25s;
}
.fab:hover { transform: scale(1.08); }
.fab-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.55); opacity: 0; }
}
.mbar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 70;
  display: none; grid-template-columns: .8fr 1.2fr;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px -10px rgba(5, 48, 66, .25);
  padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom));
  gap: .6rem;
}
.mbar a, .mbar button {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem .5rem; border-radius: 11px;
  font-family: var(--f-d); font-weight: 700; font-size: .92rem;
}
.mbar-call { border: 1.5px solid var(--navy); color: var(--navy); }
.mbar-wa { background: linear-gradient(135deg, var(--wa), var(--wa-deep)); color: #fff; }

/* ============ COMPOSER ============ */
.composer {
  border: 0; border-radius: 20px 20px 0 0; padding: 0;
  width: 100%; max-width: 560px;
  margin: auto auto 0;
  box-shadow: 0 -20px 70px rgba(5, 48, 66, .35);
}
@media (min-width: 640px) {
  .composer { border-radius: 20px; margin: auto; }
}
.composer::backdrop { background: rgba(5, 48, 66, .55); backdrop-filter: blur(3px); }
.comp-in { padding: 1.8rem 1.7rem 1.6rem; position: relative; display: flex; flex-direction: column; align-items: stretch; }
.comp-in .eyebrow { align-self: flex-start; }
.comp-x {
  position: absolute; top: 14px; inset-inline-end: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
  background: var(--paper);
}
.comp-x:hover { background: var(--red-tint-2); color: var(--red-deep); }
.composer h3 { font-size: 1.35rem; margin-bottom: 1.2rem; }
.comp-l { font-size: .82rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; display: block; }
.composer select, .composer input, .composer textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
  padding: .68rem .9rem; margin-bottom: 1rem;
  transition: border-color .2s;
}
.composer select:focus, .composer input:focus, .composer textarea:focus {
  outline: none; border-color: var(--red);
}
.comp-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.comp-preview {
  background: #E8F7EE; border: 1px dashed var(--wa-deep); border-radius: 10px;
  padding: .7rem .95rem; margin-bottom: 1.1rem; font-size: .84rem;
}
.comp-preview span { font-weight: 700; color: var(--wa-deep); font-size: .76rem; }
.comp-preview p { white-space: pre-line; color: var(--ink); margin-top: .2rem; }
.comp-send { width: 100%; justify-content: center; }
.comp-hint { font-size: .76rem; color: var(--muted); text-align: center; margin-top: .7rem; }

/* ============ LIGHTBOX ============ */
.lightbox {
  border: 0; background: transparent; padding: 0;
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  display: none; align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; background: rgba(5, 22, 30, .92); }
.lightbox::backdrop { background: rgba(5, 22, 30, .5); }
.lightbox img {
  max-width: min(92vw, 1100px); max-height: 86vh;
  border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}
.lb-x, .lb-nav {
  position: fixed; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff;
  display: grid; place-items: center; backdrop-filter: blur(6px);
  transition: background .2s;
}
.lb-x:hover, .lb-nav:hover { background: var(--red); }
.lb-x { top: 20px; inset-inline-end: 20px; }
.lb-prev { inset-inline-start: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: 18px; top: 50%; transform: translateY(-50%); }
[dir="rtl"] .lb-prev svg { transform: rotate(180deg); }
[dir="ltr"] .lb-next svg { transform: rotate(180deg); }

/* ============ REVEAL ANIMATIONS ============ */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.65,.3,1), transform .7s cubic-bezier(.2,.65,.3,1); }
.js .rv.in { opacity: 1; transform: none; }
.js .d1 { transition-delay: .08s; }
.js .d2 { transition-delay: .16s; }
.js .d3 { transition-delay: .24s; }
.js .d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; }
}

/* ============ EN (LTR) tweaks ============ */
[dir="ltr"] body, [dir="ltr"] { --skew: 14deg; }
[dir="ltr"] .hero h1 { line-height: 1.25; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1020px) {
  .nav { display: none; }
  .burger { display: flex; }
  .nav.open {
    display: flex; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-lg); padding: .6rem 1.4rem 1rem;
  }
  .nav.open a { padding-block: .8rem; border-bottom: 1px solid var(--paper); font-size: 1rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-slash { width: 120%; inset-inline-end: -60%; opacity: .38; border-inline-start-width: 0; }
  .hero-visual { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .design-card { grid-template-columns: 1fr; }
  .design-img { min-height: 220px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 74px; }
  .steps { grid-template-columns: 1fr; }
  .hdr-wa { display: none; }
  .brand-t small { display: none; }
  .fab { display: none; }
  .mbar { display: grid; }
  body { padding-bottom: 74px; }
  .svc-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
  .svc-body { padding: .85rem .9rem 1rem; gap: .7rem; }
  .svc-body h3 { font-size: .93rem; }
  .svc-cta { flex-wrap: wrap; }
  .svc-cta .btn-sm { padding: .5rem .9rem; font-size: .8rem; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .marq-set { gap: 2rem; padding-inline-end: 2rem; }
  .marq-set img { height: 46px; }
  .hero-chip { padding: .5rem .8rem; }
  .hero-chip strong { font-size: .82rem; }
  .hero-chip span { font-size: .66rem; }
  .chip-a { inset-inline-start: 0; }
  .ftr-grid { grid-template-columns: 1fr; gap: 1.8rem; padding-block: 2.4rem 1.8rem; }
  .comp-row { grid-template-columns: 1fr; gap: 0; }
}
