/* ===================================================================
   Triple 9 — custom overrides (loaded after style.css)
   ------------------------------------------------------------------
   1. Heading reset
      The template marks up its titles as <div class="h2 title">.
      We converted those to real <h1>-<h3> tags for SEO/accessibility.
      Bootstrap adds margin-bottom to heading tags, which the original
      divs never had, so we zero it out to keep the layout identical.
   =================================================================== */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0;
}

/* 2. Sections parked until real content arrives (see the TODO comments in the HTML). */
[hidden] { display: none !important; }

/* ===================================================================
   3. Triple brand palette
   ------------------------------------------------------------------
   Taken from the live site (triple-eg.com) so both properties match:
     #663399  primary purple        #1A1332  heading / ink
     #5C5478  body text             #E8E4F2  borders & light surfaces
     #F8F7FC  page-tint surface     #FFB600  gold CTA
     #D99B00  gold hover            #332868  logo mark (dark stop)
   The template ships an orange theme driven by --theme-color1; we
   re-point its tokens instead of rewriting its rules.
   =================================================================== */
:root {
  --theme-color1: #663399;
  --theme-color1-rgb: 102, 51, 153;
  --theme-color2: #1A1332;
  --theme-color2-rgb: 26, 19, 50;

  --theme-color-dark: #1A1332;
  --theme-color-lighter: #F8F7FC;
  --theme-color-silver: #E8E4F2;
  --theme-color-gray: #F8F7FC;
  --review-color: #FFB600;

  --text-color: #5C5478;
  --headings-color: #1A1332;
  --link-color: var(--theme-color1);
  --link-hover-color: #4A256E;

  /* brand extras the template has no token for */
  --brand-gold: #FFB600;
  --brand-gold-hover: #D99B00;
  --brand-purple-deep: #332868;
  --brand-purple-dark: #4A256E;
}

/* Primary CTA = gold on deep purple text, same as the live site's
   "More about us" button. The template's btn-style-one is the main CTA. */
.btn-style-one {
  background-color: var(--brand-gold);
  color: #1A1332;
}
.btn-style-one:hover {
  background-color: var(--brand-gold-hover);
  color: #1A1332;
}/* ---- shared shape ------------------------------------------------- */

/* ---- dark band (home page) ---------------------------------------- */

/* ---- white page (contact page) ------------------------------------ */

/* the dropdown arrow: gold on the dark band, purple on the white page */

/* ---- submit button ------------------------------------------------ */
/* the circle is for the arrow span; the contact page's button wraps its
   label in a span too, and styling that as a disc hid the word "إرسال" */

/* invalid only after the visitor has actually typed something wrong */

/* honeypot — off-screen rather than display:none, which some bots skip */
.cf-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
#form-result { margin-block-end: 18px; border-radius: 12px; }

/* ===================================================================
   6. Portfolio
   ------------------------------------------------------------------
   Real client sites: a browser-style frame around each screenshot so
   the grid reads as "websites we built", plus a fact row on the
   detail page. Logical properties keep it RTL-safe.
   =================================================================== */
.project-block .image-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--theme-color-silver);
  aspect-ratio: 16 / 10;
  box-shadow: 0 18px 40px rgba(26, 19, 50, .12);
}
.project-block .image-box img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform .6s ease;
}
.project-block .inner-box:hover .image-box img { transform: scale(1.04); }
.project-block .content-box { padding-block-start: 20px; }
.project-block .cat {
  font-size: 14px; font-weight: 600; color: var(--theme-color1);
  margin-block-end: 8px;
}
.project-block .cat span {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; vertical-align: middle; margin-inline: 8px;
}
.project-summary {
  margin: 10px 0 14px;
  font-size: 15px; line-height: 1.7; color: var(--text-color);
}

/* ---- detail page ---- */
.project-detail__shot {
  margin: 0 0 34px;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(26, 19, 50, .18);
}
.project-detail__shot img { width: 100%; height: auto; display: block; }
.project-detail__facts {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding: 26px; margin-block-end: 34px;
  background: var(--theme-color-lighter);
  border: 1px solid var(--theme-color-silver);
  border-radius: 16px;
}
.project-detail__facts span {
  display: block; font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-color); margin-block-end: 6px;
}
html[dir="rtl"] .project-detail__facts span { text-transform: none; letter-spacing: 0; }
.project-detail__facts strong { font-size: 17px; color: var(--headings-color); }
.project-detail__summary { font-size: 18px; line-height: 1.8; margin-block-end: 30px; }
.project-detail__cta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }

/* ===================================================================
   8. Type scale — two steps down
   ------------------------------------------------------------------
   The template is set for short English headlines. Arabic runs longer
   and Cairo/IBM Plex have a larger x-height, so everything read a
   size too big. These are the template's own tokens, stepped down.
   =================================================================== */
:root {
  --body-font-size: 15px;
  --h1-font-size: 64px;
  --h2-font-size: 38px;
  --h3-font-size: 24px;
  --h4-font-size: 20px;
  --h5-font-size: 17px;
  --h6-font-size: 15px;
}
body { font-size: var(--body-font-size); }
.sec-title .text, .about-section .text, .service-block .text,
.project-summary, .blog-block .text { font-size: 15px; }
.navigation > li > a { font-size: 15px; }

/* ===================================================================
   9. Sticky header
   ------------------------------------------------------------------
   The template's sticky bar is 108px tall with the full desktop
   padding, which lands as a slab over the content on scroll. Make it
   a slim bar with a real shadow so it reads as a toolbar.
   =================================================================== */
.sticky-header {
  padding: 0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 6px 24px rgba(26, 19, 50, .10);
  border-block-end: 1px solid var(--theme-color-silver);
}
.sticky-header .inner-container { min-height: 68px; align-items: center; }
.sticky-header .logo img { width: 104px; height: auto; }
.sticky-header .navigation > li > a { padding: 22px 0; font-size: 15px; }
.sticky-header.fixed-header { animation: triple-drop .35s ease both; }
@keyframes triple-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .sticky-header.fixed-header { animation: none; } }

/* The template hard-codes a few sizes past the tokens above, so these
   match its own selectors rather than fighting with !important. */
.sec-title .title { font-size: var(--h2-font-size); }
.sec-title .sub-title { font-size: 14px; }
.main-menu .navigation > li > a,
.sticky-header .navigation > li > a { font-size: 15px; }
.service-block .title, .project-block .title,
.blog-block .title, .why-choose-us-block .title { font-size: var(--h4-font-size); }
.main-footer .widget-title { font-size: var(--h5-font-size); }

/* ===================================================================
   10. Header: one glass bar, fixed
   ------------------------------------------------------------------
   The template ships two headers — an absolute one over the hero and
   a separate .sticky-header clone that swaps in on scroll. The clone
   never appeared (its scroll handler does not fire under the GSAP
   smooth-scroller), and two copies of the nav is a maintenance trap
   anyway. So: hide the clone, and make the real header a fixed glass
   bar that tightens once you scroll.
   =================================================================== */
.main-header .sticky-header { display: none !important; }

.main-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 999;
  background: transparent;
  border-block-end: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease, background-color .3s ease;
}
.main-header .header-lower { padding-block: 10px; transition: padding .3s ease; }

/* Over the hero the bar is nothing but its own contents. Once the page has
   moved it becomes a solid white strip, which is what the client asked for
   and what keeps the nav readable over the light sections further down. */
.main-header.is-scrolled {
  background: #fff;
  box-shadow: 0 6px 24px rgba(26, 19, 50, .10);
  border-block-end-color: rgba(26, 19, 50, .06);
}
.main-header.is-scrolled .header-lower { padding-block: 2px; }
.main-header.is-scrolled .logo img { width: 104px; height: auto; }

/* ---- two logos, one swap ------------------------------------------
   A white bar hides a white logo. Both ship in the markup and CSS
   picks; swapping the src in JS flickers on every scroll tick.
------------------------------------------------------------------- */
.main-header .logo img { transition: width .3s ease; }
.main-header .logo .logo-dark { display: none; }
.main-header.is-scrolled .logo .logo-light { display: none; }
.main-header.is-scrolled .logo .logo-dark { display: inline-block; }

/* light text over the hero photo … */
.main-header .navigation > li > a,
.main-header .support-box .text,
.main-header .info-box .text { color: #fff; }
.main-header .navigation > li > a:hover,
.main-header .navigation > li.current > a { color: var(--brand-gold); }
.main-header .support-box .number a,
.main-header .info-box .number a { color: #fff; }

/* … dark text once the bar is white. The template styles the nav through
   .header-style-one .header-lower .inner-container .main-menu, so the
   scrolled state has to reach at least that far to win the cascade. */
.main-header.is-scrolled .header-lower .inner-container .main-menu .navigation > li > a,
.main-header.is-scrolled .support-box .text,
.main-header.is-scrolled .info-box .text { color: #1A1332; }
.main-header.is-scrolled .header-lower .inner-container .main-menu .navigation > li > a:hover,
.main-header.is-scrolled .header-lower .inner-container .main-menu .navigation > li.current > a { color: var(--theme-color2); }
.main-header.is-scrolled .support-box .number a,
.main-header.is-scrolled .info-box .number a { color: var(--theme-color2); }
.main-header.is-scrolled .mobile-nav-toggler,
.main-header.is-scrolled .nav-btn { color: #1A1332; }
.main-header.is-scrolled .nav-btn span,
.main-header.is-scrolled .mobile-nav-toggler span { background: #1A1332; }

/* inner pages start with a page-title band — keep it clear of the bar */
.page-title { padding-block-start: 150px; }
@media (max-width: 991px) { .page-title { padding-block-start: 110px; } }

/* ---- mobile drawer: full height, scrollable, real close button ---- */
.main-header .mobile-menu,
.mobile-menu {
  position: fixed;
  inset-block: 0;
  z-index: 100000;
  height: 100vh; height: 100dvh;
  max-width: 340px;
}
.mobile-menu .menu-box {
  height: 100vh; height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-block: 78px 30px;
}
.mobile-menu .close-btn {
  position: absolute; inset-block-start: 20px; z-index: 10;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14); color: #fff; font-size: 18px; cursor: pointer;
}
.mobile-menu .close-btn:hover { background: var(--brand-gold); color: #1A1332; }
html:not([dir="rtl"]) .mobile-menu .close-btn { inset-inline-start: 20px; inset-inline-end: auto; }

/* ---- services grid: eight cards, tighter ------------------------- */
.services-section .service-block .inner-block { padding: 26px 24px 24px; }
.services-section .service-block .content .icon img { width: 46px; height: auto; }
.services-section .service-block .number { font-size: 34px; }
.services-section .service-block .title { font-size: 18px; line-height: 1.5; }
.services-section .service-block .text { font-size: 14px; line-height: 1.75; }
.services-section .service-block .image img { aspect-ratio: 16/9; object-fit: cover; }

/* ===================================================================
   12. Fixes from review
   =================================================================== */

/* the card number sat behind the icon and read as a smudge */
.service-block .number { display: none; }
.services-section .service-block .content { padding-block-start: 4px; }

/* slide counter is "01 / 03" in both languages — digits do not flip */
.hero-nav__count { direction: ltr; unicode-bidi: isolate; }

/* the gold CTA fills with brand purple on hover and the label goes white */
.theme-btn.btn-style-one:hover,
.theme-btn.btn-style-one:focus-visible {
  background: var(--theme-color2);
  color: #fff;
}
.theme-btn.btn-style-one:hover span { background: #fff; }
.theme-btn.btn-style-one:hover span img { filter: none; }
.hero-full__btn--solid:hover {
  background: var(--theme-color2);
  color: #fff;
}

/* let the panel bleed a little over the image so the seam disappears */
@media (max-width: 991px) {
}

/* newsletter field and its button were sitting on top of each other */
.main-footer .subscribe-form .form-group { position: relative; display: flex; gap: 10px; }
.main-footer .subscribe-form input[type="email"],
.main-footer .subscribe-form input[type="text"] { flex: 1 1 auto; min-width: 0; }
.main-footer .subscribe-form button { position: static; flex: 0 0 auto; white-space: nowrap; }

/* ---- blog card: topic chip instead of a template date number ------ */
.blog-block .date--cat {
  inset-inline-start: 18px; inset-block-start: 18px;
  width: auto; height: auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(26,19,50,.78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 13px; font-weight: 600; line-height: 1;
  display: inline-flex; align-items: center;
}

/* read-more and read-time were stacked on top of each other */
.blog-block .content-box .inner-box { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.blog-block .btn-more, .blog-block .time-text { position: static; margin: 0; }
.blog-block .time-text { font-size: 13px; color: var(--text-color); }

/* ===================================================================
   13. Why choose us
   A light band between two dark sections. The copy holds still on the
   left while the reasons scroll past it, so the argument stays in view
   the whole time it is being made.
   =================================================================== */
.wcu-section {
  position: relative;
  padding: 76px 0;
  background: #F5F4F9;
  overflow: hidden;
}
/* one soft purple bloom, low opacity — keeps the band from reading flat */
.wcu-section::before {
  content: "";
  position: absolute; inset-inline-start: -8%; top: -40%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(102,51,153,.09) 0%, rgba(102,51,153,0) 70%);
  pointer-events: none;
}
.wcu-section > .auto-container { position: relative; z-index: 1; }

/* Compact by design: the three reasons share one card, divided by hairlines,
   and the figure closes that card instead of standing as a fourth block.
   The markup is unchanged — the text in it is edited from the panel. */
.wcu-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

/* ---- left: the pitch ---------------------------------------------- */
.wcu-copy .sub-title {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  color: var(--theme-color2);
  font-size: 13px;
  text-transform: uppercase; letter-spacing: .14em; font-weight: 600;
}
.wcu-copy .sub-title::before {
  content: ""; width: 26px; height: 2px; background: var(--brand-gold); flex: none;
}
/* the template sizes .h2 through its own chain; match its depth to win */
.wcu-section .wcu-grid .wcu-copy .title {
  color: #1A1332;
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.2;
  margin-bottom: 14px;
}
.wcu-lead {
  color: #5B5470; font-size: 15.5px; line-height: 1.75;
  margin-bottom: 24px; max-width: 44ch;
}

/* ---- right: the reasons, as one card ------------------------------ */
.wcu-list {
  margin: 0; padding: 0;
  background: #fff;
  border: 1px solid rgba(26,19,50,.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(26,19,50,.06);
}
.wcu-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px; align-items: start;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(26,19,50,.07);
  transition: background-color .25s ease;
}
.wcu-item:hover { background: rgba(102,51,153,.035); }
.wcu-item__num {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  /* the counter is a Latin numeral either way — keep it from flipping in RTL */
  direction: ltr;
  background: rgba(102,51,153,.08);
  color: var(--theme-color2);
  font-weight: 700; font-size: 13px; line-height: 1;
  transition: background-color .25s ease, color .25s ease;
}
.wcu-item:hover .wcu-item__num { background: var(--theme-color2); color: #fff; }
.wcu-section .wcu-list .wcu-item .wcu-item__title {
  color: #1A1332; font-size: 16.5px; line-height: 1.4; margin: 6px 0 4px;
}
.wcu-item__text { color: #5B5470; font-size: 14.5px; line-height: 1.65; margin: 0; }

/* ---- the figure, closing the card --------------------------------- */
.wcu-stat {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 24px;
  background: linear-gradient(120deg, var(--brand-purple-deep) 0%, var(--theme-color2) 100%);
  color: #fff;
}
.wcu-stat__num {
  direction: ltr;
  font-size: 32px; font-weight: 700; line-height: 1;
  color: var(--brand-gold);
}
.wcu-stat__label { color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.4; }

@media (max-width: 1199px) {
  .wcu-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 575px) {
  .wcu-section { padding: 56px 0; }
  .wcu-item { padding: 18px; gap: 14px; }
  .wcu-stat { padding: 14px 18px; }
  .wcu-stat__num { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .wcu-item, .wcu-item__num { transition: none; }
}

/* ===================================================================
   14. Floating WhatsApp button
   =================================================================== */
.wa-float {
  position: fixed;
  inset-inline-end: 24px; bottom: 24px;
  z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  box-shadow: 0 10px 28px rgba(37,211,102,.38);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float:hover { color: #fff; transform: scale(1.07); box-shadow: 0 14px 34px rgba(37,211,102,.5); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 575px) {
  .wa-float { width: 50px; height: 50px; inset-inline-end: 16px; bottom: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

/* ===================================================================
   15. Projects on the home page
   Heading centred above the work, filters under it, the grid four wide,
   and the call to action after the evidence rather than before it.
   =================================================================== */
.projects-section { position: relative; overflow: hidden; }
.projects-section > .auto-container { position: relative; z-index: 2; }

/* the watermark rides the inline-end edge — right in English, mirrored in
   Arabic so it never lands in front of the first thing you read */
.projects-section > .style-text {
  position: absolute;
  inset-inline-end: -46px; top: 42%;
  z-index: 1; pointer-events: none;
  direction: ltr;
  font-size: 62px; line-height: 1; font-weight: 800;
  text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(26,19,50,.13);
  transform: rotate(90deg); transform-origin: center;
}
html[dir="rtl"] .projects-section > .style-text { transform: rotate(-90deg); }
@media (max-width: 1399px) { .projects-section > .style-text { display: none; } }

.projects-head { text-align: center; margin-bottom: 30px; }
.projects-head .sub-title { justify-content: center; }
.projects-head .title { margin-inline: auto; max-width: 20ch; }

/* ---- filters ------------------------------------------------------ */
.project-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 0 0 46px; padding: 0;
}
.project-filters li { list-style: none; }
.project-filter {
  padding: 10px 22px;
  border: 1px solid rgba(26,19,50,.14); border-radius: 999px;
  background: #fff; color: #5B5470;
  font-size: 15px; font-weight: 500; line-height: 1.2;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.project-filter:hover { color: var(--theme-color2); border-color: rgba(102,51,153,.35); }
.project-filter.is-active {
  background: var(--brand-gold); border-color: var(--brand-gold); color: #1A1332;
  font-weight: 600;
}
.project-filter:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 3px; }

/* ---- grid --------------------------------------------------------- */
.project-grid { row-gap: 30px; }
.project-grid .project-block { transition: opacity .3s ease; }
.project-grid .project-block[hidden] { display: none; }
.project-grid .inner-box { height: 100%; }
.project-grid .image-box { overflow: hidden; border-radius: 14px; }
.project-grid .image-box img {
  width: 100%; height: auto; display: block;
  transition: transform .5s ease;
}
.project-grid .inner-box:hover .image-box img { transform: scale(1.05); }
.project-grid .content-box { padding-top: 18px; }
.project-grid .content-box .cat {
  font-size: 13px; color: #6B6383; margin-bottom: 6px;
}
.project-grid .content-box .title { margin: 0; font-size: 19px; }

.projects-cta { text-align: center; margin-top: 54px; }

@media (max-width: 575px) {
  .project-filters { margin-bottom: 32px; gap: 8px; }
  .project-filter { padding: 8px 16px; font-size: 14px; }
  .projects-cta { margin-top: 38px; }
}

/* ===================================================================
   16. Blog cards, footer contact strip
   =================================================================== */
/* "Read more" sits at the end of the card — left in Arabic, right in English */
.blog-block .content-box .inner-box {
  display: flex; flex-direction: column; align-items: flex-start;
}
.blog-block .btn-more {
  margin-top: 14px;
  margin-inline-start: auto;
}
.blog-block .time-text { margin-top: 10px; }

/* The template's card swaps two images on hover and hides the first one
   until then. Our cards carry a single image, so it stayed invisible until
   the mouse passed over it: show it and keep it in the flow. */
.blog-block .inner-block .image-box .image img:only-child {
  position: relative; inset: auto;
  opacity: 1; transform: none; filter: none;
  height: 100%;
}

/* the topic chip that replaced the day/month number — the template sizes
   .date as a 60px square for a two-digit day, which a word does not fit */
.blog-block .image-box .date--cat {
  width: -moz-fit-content; width: fit-content; height: auto;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1.3;
  white-space: nowrap;
  display: inline-flex; align-items: center;
}

/* ---- footer contact strip ----------------------------------------
   Two steps down from the template size, and the phone number pinned
   LTR so the + stays in front of the digits in Arabic.
------------------------------------------------------------------- */
.main-footer .info-box .content .number { font-size: 17px; }
.main-footer .info-box .content .number.one { font-size: 17px; }
.main-footer .info-box .content bdi.ltr,
.main-footer .contact-list-one bdi.ltr,
bdi.ltr { direction: ltr; unicode-bidi: isolate; }

.footer-widget.follow-widget .social-icon {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}
.footer-widget.follow-widget .social-icon a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.85);
  font-size: 15px;
  transition: background-color .25s, color .25s, transform .25s;
}
.footer-widget.follow-widget .social-icon a:hover {
  background: var(--brand-gold); color: #1A1332; transform: translateY(-2px);
}

/* ===================================================================
   17. Mega menu (Services, Projects)
   A panel under the header: a promo column on one side, a grid of
   destinations on the other. Hidden by default so an unstyled or
   JS-less page never dumps it into the header.
   =================================================================== */
.main-menu .navigation > li.has-mega { position: static; }

.mega-menu {
  position: fixed;
  inset-inline: 0; top: var(--header-h, 100px);
  z-index: 60;
  padding: 0 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.main-menu .navigation > li.has-mega:hover > .mega-menu,
.main-menu .navigation > li.has-mega:focus-within > .mega-menu,
.main-menu .navigation > li.has-mega.is-open > .mega-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}

.mega-menu__inner {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  max-width: 1200px; margin: 14px auto 0;
  border-radius: 20px; overflow: hidden;
  background: #221A42;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 70px rgba(10,6,25,.45);
  text-align: start;
}

/* ---- promo column -------------------------------------------------- */
.mega-promo {
  padding: 34px 30px;
  background: linear-gradient(160deg, var(--brand-purple-deep) 0%, #2A1F52 100%);
  display: flex; flex-direction: column; align-items: flex-start;
}
.mega-promo__sub {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase !important;
  color: var(--brand-gold); margin-bottom: 12px;
}
.mega-promo__title {
  font-size: 24px; line-height: 1.3; font-weight: 700; color: #fff; margin-bottom: 12px;
}
.mega-promo__text {
  font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.7); margin: 0 0 22px;
}
.mega-promo__btn {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 999px;
  background: var(--brand-gold); color: #1A1332;
  font-size: 15px; font-weight: 600;
  transition: background-color .25s, color .25s;
}
.mega-promo__btn:hover { background: #fff; color: var(--theme-color2); }

/* ---- destinations -------------------------------------------------- */
/* the template capitalises every word inside the nav; these are sentences */
.mega-menu, .mega-menu * { text-transform: none; }
.mega-panel { padding: 28px 28px 24px; }
.mega-panel__head {
  font-size: 13px; color: var(--brand-gold);
  letter-spacing: .06em; margin-bottom: 18px;
}
/* equal rows, and a column count that divides the list evenly: ten services
   make five clean rows of two, and the odd fifth category spans the row */
.mega-grid { display: grid; gap: 10px; grid-auto-rows: 1fr; }
.mega-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-grid--2 > .mega-card:nth-child(5):last-child { grid-column: 1 / -1; }

.mega-card {
  height: 100%;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.07); border-radius: 14px;
  background: rgba(255,255,255,.02);
  transition: background-color .22s, border-color .22s, transform .22s;
}
.mega-card:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,182,0,.35);
  transform: translateY(-2px);
}
.mega-card__body { flex: 1 1 auto; min-width: 0; }
.mega-card__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.mega-card__title { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.35; }
.mega-card__tag {
  padding: 2px 9px; border-radius: 6px;
  background: rgba(255,182,0,.14); color: var(--brand-gold);
  font-size: 11px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.mega-card__text {
  display: block;
  font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.58);
}
.mega-card__icon {
  flex: none;
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); color: var(--brand-gold);
}
.mega-card__icon svg { width: 19px; height: 19px; }

.mega-all {
  display: inline-block; margin-top: 16px;
  font-size: 14px; font-weight: 600; color: var(--brand-gold);
}
.mega-all:hover { color: #fff; }

/* the drawer clones the same list — it gets the plain links, not a panel */
.mobile-menu .mega-menu,
.sticky-header .mega-menu { display: none !important; }

@media (max-width: 1199px) { .mega-menu { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .mega-menu, .mega-card, .mega-promo__btn { transition: none; }
}

/* ===================================================================
   18. CTA band
   The heading is one line on desktop — it was wrapping into the shape
   behind it and getting clipped. It still wraps on narrow screens,
   where one line would overflow instead.
   =================================================================== */
.cta-section .content-box .title { margin-bottom: 12px; }
@media (min-width: 992px) {
  .cta-section .content-box .title { white-space: nowrap; font-size: clamp(26px, 2.6vw, 38px); }
}

/* ===================================================================
   19. Blog index
   The English index lists Arabic articles, so it says so — on the page
   and on every card — rather than sending the reader somewhere they
   cannot read.
   =================================================================== */
.blog-lang-note {
  max-width: 68ch; margin: 0 0 40px;
  padding: 16px 20px;
  border-inline-start: 3px solid var(--brand-gold);
  border-radius: 0 10px 10px 0;
  background: rgba(102,51,153,.05);
  color: #5B5470; font-size: 15px; line-height: 1.7;
}
html[dir="rtl"] .blog-lang-note { border-radius: 10px 0 0 10px; }

.lang-flag {
  display: inline-block; margin-inline-start: 10px;
  padding: 2px 9px; border-radius: 6px;
  background: rgba(102,51,153,.10); color: var(--theme-color2);
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.blog-excerpt { color: #5B5470; font-size: 14.5px; line-height: 1.7; margin: 0 0 4px; }

/* ===================================================================
   20. 404
   The template shipped a search box that searched nothing. Real links
   to the places people were probably heading are more use.
   =================================================================== */
.error-page__inner { text-align: center; }
.error-page__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 0 0 32px; padding: 0;
}
.error-page__links li { list-style: none; }
.error-page__links a {
  display: inline-block; padding: 9px 20px;
  border: 1px solid rgba(26,19,50,.14); border-radius: 999px;
  color: #5B5470; font-size: 15px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.error-page__links a:hover {
  background: var(--theme-color2); border-color: var(--theme-color2); color: #fff;
}
.error-page__text { color: #5B5470; margin-bottom: 22px; }

/* ===================================================================
   21. Hero — full-bleed photo, copy laid over it
   The image runs edge to edge; a gradient scrim on the start side
   carries the text. Mirrors in Arabic without a second rule.
   =================================================================== */
.hero-full { position: relative; background: #1A1332; }
/* the template pads .swiper 70px at the bottom for its own pagination dots;
   here that showed as a purple strip below a photo meant to fill the screen */
.hero-full .swiper { padding-bottom: 0; }
.hero-full .swiper,
.hero-full .swiper-wrapper { height: 100%; }

.hero-full .swiper-slide {
  position: relative;
  min-height: min(94vh, 880px);
  display: flex; align-items: center;
}
.hero-full .swiper-slide:not(.swiper-slide-active) { pointer-events: none; }

.hero-full__media { position: absolute; inset: 0; z-index: 0; }
.hero-full__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
/* readable text over any photo: dark from the start edge, plus a soft
   top band so the transparent header does not fight the image */
.hero-full__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(16,11,32,.72) 0%, rgba(16,11,32,0) 34%),
    linear-gradient(to var(--hero-scrim, right), rgba(16,11,32,.92) 0%, rgba(16,11,32,.72) 38%, rgba(16,11,32,.15) 72%, rgba(16,11,32,0) 100%);
}
html[dir="rtl"] .hero-full { --hero-scrim: left; }

.hero-full__body { position: relative; z-index: 2; width: 100%; padding-block: 150px 120px; }
.hero-full__inner { max-width: 720px; }

.hero-full__title {
  color: #fff;
  /* four steps down the scale: Arabic headlines run long and this was
     filling most of the hero at three lines */
  font-size: clamp(26px, 3.4vw, 47px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.hero-full__title em { font-style: normal; color: #B48BE0; }

.hero-full__text {
  color: rgba(255,255,255,.82);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.7;
  max-width: 54ch;
  margin: 0 0 32px;
}

.hero-full__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-full__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 600; line-height: 1;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.hero-full__btn--solid { background: var(--brand-gold); color: #1A1332; }
.hero-full__btn--solid:hover { transform: translateY(-2px); }
.hero-full__btn--ghost { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.hero-full__btn--ghost:hover { background: #fff; color: var(--theme-color2); border-color: #fff; }

/* quick links straight into the four services people arrive looking for */
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.hero-chips li { list-style: none; }
.hero-chips a {
  display: inline-block; padding: 9px 20px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  color: rgba(255,255,255,.88); font-size: 14.5px; font-weight: 500;
  transition: background-color .25s, color .25s, border-color .25s;
}
.hero-chips a:hover { background: #fff; color: var(--theme-color2); border-color: #fff; }

.hero-full .hero-nav {
  position: absolute; z-index: 3;
  inset-block-end: 34px;
  inset-inline-start: max(24px, calc((100vw - 1320px) / 2 + 12px));
}

@media (max-width: 991px) {
  .hero-full .swiper-slide { min-height: 0; }
  .hero-full__body { padding-block: 130px 96px; }
  .hero-full__media::after {
    background: linear-gradient(to bottom, rgba(16,11,32,.80) 0%, rgba(16,11,32,.72) 40%, rgba(16,11,32,.88) 100%);
  }
  .hero-full .hero-nav { inset-block-end: 20px; inset-inline-start: 24px; }
}
@media (max-width: 575px) {
  .hero-full__body { padding-block: 118px 86px; }
  .hero-full__btn { padding: 13px 22px; font-size: 15px; }
  .hero-chips a { padding: 8px 15px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-full__btn, .hero-chips a { transition: none; }
}

/* ===================================================================
   22. Services grid — icon and label, nothing else
   Ten services, five across, two rows. The template card carried a
   number, a photo, a plus button and a details link; all four competed
   and none of them helped anyone choose.
   =================================================================== */
.svc-plain { padding-block: 100px; background: #fff; }

.svc-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
}
.svc-head__title { margin: 0; color: #1A1332; }
.svc-head__all {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--theme-color2); font-size: 15px; font-weight: 600;
  white-space: nowrap;
}
.svc-head__all span { transition: transform .25s ease; display: inline-block; }
.svc-head__all:hover { color: var(--brand-gold-hover); }
.svc-head__all:hover span { transform: translateX(4px); }
html[dir="rtl"] .svc-head__all span { transform: scaleX(-1); }
html[dir="rtl"] .svc-head__all:hover span { transform: scaleX(-1) translateX(4px); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.svc-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  min-height: 148px;
  padding: 26px 16px;
  border: 1px solid rgba(26,19,50,.10);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
/* a brand wash that rises from the bottom instead of a flat colour swap */
.svc-tile::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(102,51,153,.05) 0%, rgba(102,51,153,.10) 100%);
  opacity: 0; transform: translateY(40%);
  transition: opacity .35s ease, transform .35s ease;
}
.svc-tile > * { position: relative; z-index: 1; }
.svc-tile:hover {
  border-color: rgba(102,51,153,.3);
  box-shadow: 0 16px 36px rgba(26,19,50,.10);
  transform: translateY(-4px);
}
.svc-tile:hover::before { opacity: 1; transform: translateY(0); }

/* the icon sits in a tinted disc that fills on hover */
.svc-tile__icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(102,51,153,.08);
  color: var(--theme-color2);
  transition: background-color .3s ease, color .3s ease, transform .35s cubic-bezier(.2,.9,.3,1.2);
}
.svc-tile__icon svg { width: 26px; height: 26px; }
.svc-tile:hover .svc-tile__icon {
  background: var(--theme-color2); color: #fff;
  transform: translateY(-3px) scale(1.06);
}

.svc-tile__label {
  color: #1A1332; font-size: 14.5px; font-weight: 600; line-height: 1.45;
  transition: color .3s ease;
}
.svc-tile:hover .svc-tile__label { color: var(--theme-color2); }

/* a short rule that grows under the label */
.svc-tile__label::after {
  content: ""; display: block; height: 2px; width: 0; margin: 8px auto 0;
  border-radius: 2px; background: var(--brand-gold);
  transition: width .35s ease;
}
.svc-tile:hover .svc-tile__label::after { width: 26px; }

@media (prefers-reduced-motion: reduce) {
  .svc-tile, .svc-tile::before, .svc-tile__icon, .svc-tile__label,
  .svc-tile__label::after { transition: none; }
  .svc-tile:hover { transform: none; }
  .svc-tile:hover .svc-tile__icon { transform: none; }
}

@media (max-width: 1199px) { .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 991px)  { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px)  {
  .svc-plain { padding-block: 70px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .svc-tile { min-height: 112px; padding: 18px 12px; }
  .svc-head { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { .svc-tile, .svc-head__all span { transition: none; } }

/* ---- slider arrows and counter ------------------------------------
   These lived with the old split hero and went out with it; the new
   hero still needs them.
------------------------------------------------------------------- */
.hero-nav { display: flex; align-items: center; gap: 14px; }
.hero-nav__btn {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent; color: #fff;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.hero-nav__btn:hover { background: var(--brand-gold); border-color: var(--brand-gold); color: #1A1332; }
.hero-nav__btn:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 3px; }
.hero-nav__btn.swiper-button-disabled { opacity: .45; cursor: default; }
/* the chevrons point left and right; mirror them in Arabic */
html[dir="rtl"] .hero-nav__btn svg { transform: scaleX(-1); }
.hero-nav__count { font-size: 15px; color: rgba(255,255,255,.75); letter-spacing: .08em; }
.hero-nav__count b { color: #fff; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .hero-nav__btn { transition: none; } }

/* ===================================================================
   23. Header layout — logo and nav together, controls on the far side
   =================================================================== */
.main-header .header-lower .inner-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
/* the template sets a 204px gap here through a four-class selector, which
   parks the nav in the middle of the bar; the client wants it beside the
   logo, so these have to reach the same depth to win */
.main-header .header-lower .inner-container .left-box {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px);
  flex: 1 1 auto; min-width: 0;
}
.main-header .header-lower .inner-container .left-box .main-box { flex: none; }
.main-header .header-lower .inner-container .nav-outer { flex: 0 1 auto; }
.main-header .header-lower .inner-container .right-box {
  display: flex; align-items: center; gap: 10px; flex: none;
}

/* ---- round icon buttons (language, theme) -------------------------- */
.hdr-icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.28);
  background: transparent; color: #fff;
  cursor: pointer; padding: 0;
  transition: background-color .25s, color .25s, border-color .25s;
}
.hdr-icon-btn svg { width: 19px; height: 19px; }
.hdr-icon-btn:hover { background: rgba(255,255,255,.14); }
.hdr-icon-btn:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 2px; }
.main-header.is-scrolled .hdr-icon-btn { border-color: rgba(26,19,50,.16); color: #1A1332; }
.main-header.is-scrolled .hdr-icon-btn:hover { background: rgba(26,19,50,.06); }

/* ---- language menu -------------------------------------------------- */
.hdr-lang { position: relative; }
.hdr-lang__menu {
  position: absolute; inset-block-start: calc(100% + 10px); inset-inline-end: 0;
  z-index: 70; min-width: 164px; margin: 0; padding: 6px;
  border-radius: 12px;
  background: #221A42;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 44px rgba(10,6,25,.42);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.hdr-lang.is-open .hdr-lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.hdr-lang__menu li { list-style: none; }
.hdr-lang__menu a,
.hdr-lang__menu span.is-active {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  color: rgba(255,255,255,.85); font-size: 14.5px; line-height: 1.4;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.hdr-lang__menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.hdr-lang__menu .is-active { color: var(--brand-gold); font-weight: 600; cursor: default; }
.hdr-flag { font-size: 16px; line-height: 1; }

/* ---- theme toggle: one button, two states, no menu ------------------ */
.hdr-theme .icon-moon { display: none; }
html[data-theme="dark"] .hdr-theme .icon-sun { display: none; }
html[data-theme="dark"] .hdr-theme .icon-moon { display: block; }

/* the phone block earns its place on a sales site, but it does not need
   to shout next to three other controls */
.main-header .header-phone_box .info { font-size: 13px; }
@media (max-width: 1399px) { .main-header .header-phone_box { display: none; } }
@media (max-width: 1199px) { .main-header .hdr-lang, .main-header .hdr-theme { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hdr-icon-btn, .hdr-lang__menu { transition: none; }
}

/* ===================================================================
   24. Dark mode
   The site was built as light sections between dark ones. Rather than
   restyle every component, the light surfaces read from four tokens
   and dark mode swaps those. Sections that were already dark need
   nothing — they look the same either way, which is the point.
   =================================================================== */
:root {
  --surface:    #ffffff;
  --surface-2:  #F5F4F9;
  --ink:        #1A1332;
  --ink-muted:  #5B5470;
  --line:       rgba(26, 19, 50, .10);
  --line-strong:rgba(26, 19, 50, .16);
}
html[data-theme="dark"] {
  --surface:    #140F26;
  --surface-2:  #1B1436;
  --ink:        #F2EFFA;
  --ink-muted:  #ABA2C4;
  --line:       rgba(255, 255, 255, .10);
  --line-strong:rgba(255, 255, 255, .18);
}

html[data-theme="dark"] body { background: var(--surface); color: var(--ink-muted); }

/* headings and body copy the template hard-codes */
html[data-theme="dark"] h1, html[data-theme="dark"] h2,
html[data-theme="dark"] h3, html[data-theme="dark"] h4,
html[data-theme="dark"] h5, html[data-theme="dark"] h6,
html[data-theme="dark"] .h1, html[data-theme="dark"] .h2,
html[data-theme="dark"] .h3, html[data-theme="dark"] .h4,
html[data-theme="dark"] .h5, html[data-theme="dark"] .h6 { color: var(--ink); }
html[data-theme="dark"] p,
html[data-theme="dark"] .text,
html[data-theme="dark"] li { color: var(--ink-muted); }

/* the surfaces this build introduced */
html[data-theme="dark"] .svc-plain { background: var(--surface); }
html[data-theme="dark"] .svc-head__title { color: var(--ink); }
html[data-theme="dark"] .svc-tile { background: var(--surface-2); border-color: var(--line); }
html[data-theme="dark"] .svc-tile__label { color: var(--ink); }
html[data-theme="dark"] .svc-tile:hover { border-color: rgba(180,139,224,.45); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
html[data-theme="dark"] .svc-tile__icon { background: rgba(180,139,224,.12); color: #B48BE0; }
html[data-theme="dark"] .svc-tile:hover .svc-tile__icon { background: #B48BE0; color: #140F26; }
html[data-theme="dark"] .svc-tile::before {
  background: linear-gradient(180deg, rgba(180,139,224,.06) 0%, rgba(180,139,224,.12) 100%);
}
html[data-theme="dark"] .svc-tile:hover .svc-tile__label { color: #C9AAEA; }
/* the brand purple is a light-background colour; on dark it disappears */
html[data-theme="dark"] .svc-head__all,
html[data-theme="dark"] .mega-all,
html[data-theme="dark"] .project-grid .content-box .title a:hover,
html[data-theme="dark"] a.btn-more { color: #C9AAEA; }
html[data-theme="dark"] .svc-head__all:hover { color: var(--brand-gold); }

html[data-theme="dark"] .wcu-section { background: var(--surface-2); }
/* at the depth of the light-mode rules, or the dark title stays navy on navy */
html[data-theme="dark"] .wcu-section .wcu-grid .wcu-copy .title,
html[data-theme="dark"] .wcu-section .wcu-list .wcu-item .wcu-item__title { color: var(--ink); }
html[data-theme="dark"] .wcu-lead,
html[data-theme="dark"] .wcu-item__text { color: var(--ink-muted); }
html[data-theme="dark"] .wcu-list { background: var(--surface); border-color: var(--line); box-shadow: none; }
html[data-theme="dark"] .wcu-item { background: transparent; border-color: var(--line); }
html[data-theme="dark"] .wcu-item:hover { background: rgba(255,255,255,.03); }
html[data-theme="dark"] .wcu-item__num { background: rgba(180,139,224,.16); color: #C9AAEA; }

html[data-theme="dark"] .project-filter { background: var(--surface-2); border-color: var(--line); color: var(--ink-muted); }
html[data-theme="dark"] .project-filter:hover { color: var(--ink); border-color: var(--line-strong); }
html[data-theme="dark"] .project-filter.is-active { background: var(--brand-gold); border-color: var(--brand-gold); color: #1A1332; }
html[data-theme="dark"] .project-grid .content-box .cat { color: var(--ink-muted); }
html[data-theme="dark"] .project-grid .content-box .title a { color: var(--ink); }
html[data-theme="dark"] .projects-section > .style-text { -webkit-text-stroke-color: rgba(255,255,255,.10); }

html[data-theme="dark"] .blog-lang-note { background: rgba(180,139,224,.08); color: var(--ink-muted); }
html[data-theme="dark"] .blog-excerpt { color: var(--ink-muted); }
html[data-theme="dark"] .error-page__links a { border-color: var(--line); color: var(--ink-muted); }

/* template surfaces that assume a white page */
html[data-theme="dark"] .blog-section,
html[data-theme="dark"] .about-section,
html[data-theme="dark"] .faq-section,
html[data-theme="dark"] .clients-marquee,
html[data-theme="dark"] .services-details,
html[data-theme="dark"] .project-details,
html[data-theme="dark"] .blog-details { background: var(--surface); }
html[data-theme="dark"] .cl-pill,
html[data-theme="dark"] .blog-block .inner-block,
html[data-theme="dark"] .sidebar__single,
html[data-theme="dark"] .accordion-box .block {
  background: var(--surface-2); border-color: var(--line);
}
/* client logos are dark marks made for white paper */
html[data-theme="dark"] .cl-pill__logo {
  filter: grayscale(1);
  mix-blend-mode: normal;
  background: #fff;
  border-radius: 7px;
  padding: 3px;
  opacity: .85;
}
html[data-theme="dark"] .cl-pill:hover .cl-pill__logo { filter: none; opacity: 1; }

/* the bar is white in light mode; in dark it has to be dark */
html[data-theme="dark"] .main-header.is-scrolled { background: #18122E; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
html[data-theme="dark"] .main-header.is-scrolled .header-lower .inner-container .main-menu .navigation > li > a,
html[data-theme="dark"] .main-header.is-scrolled .support-box .text,
html[data-theme="dark"] .main-header.is-scrolled .info-box .text { color: #fff; }
html[data-theme="dark"] .main-header.is-scrolled .hdr-icon-btn { border-color: rgba(255,255,255,.22); color: #fff; }
html[data-theme="dark"] .main-header.is-scrolled .logo .logo-light { display: inline-block; }
html[data-theme="dark"] .main-header.is-scrolled .logo .logo-dark { display: none; }

@media (prefers-reduced-motion: no-preference) {
  html[data-theme] body { transition: background-color .3s ease, color .3s ease; }
}

/* ===================================================================
   25. English typography — Inter
   The template shipped DM Sans with Kumbh Sans layered on top. Inter
   is a UI face: it holds up at 14px in a nav and at 64px in the hero,
   which is the whole range this page uses.
   =================================================================== */
html[lang="en"] {
  --body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="en"] body,
html[lang="en"] .h1, html[lang="en"] .h2, html[lang="en"] .h3,
html[lang="en"] .h4, html[lang="en"] .h5, html[lang="en"] .h6,
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3,
html[lang="en"] h4, html[lang="en"] h5, html[lang="en"] h6,
html[lang="en"] .navigation > li > a,
html[lang="en"] .theme-btn,
html[lang="en"] button,
html[lang="en"] input,
html[lang="en"] textarea,
html[lang="en"] select {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Inter runs a touch small at the same px as DM Sans, and the reference
   sets a 16px body. Headings tighten because Inter is wide by default. */
html[lang="en"] body { font-size: 16px; line-height: 1.7; }
html[lang="en"] .h1, html[lang="en"] h1 { font-size: clamp(38px, 4.4vw, 60px); letter-spacing: -0.022em; line-height: 1.1; }
html[lang="en"] .h2, html[lang="en"] h2 { font-size: clamp(28px, 2.9vw, 40px); letter-spacing: -0.018em; line-height: 1.18; }
html[lang="en"] .h3, html[lang="en"] h3 { font-size: 26px; letter-spacing: -0.014em; }
html[lang="en"] .h4, html[lang="en"] h4 { font-size: 21px; letter-spacing: -0.011em; }
html[lang="en"] .h5, html[lang="en"] h5 { font-size: 18px; letter-spacing: -0.008em; }
html[lang="en"] .h6, html[lang="en"] h6 { font-size: 15px; letter-spacing: 0; }
html[lang="en"] .hero-full__title { letter-spacing: -0.028em; }
html[lang="en"] .navigation > li > a { font-size: 15.5px; letter-spacing: -0.006em; }

/* ===================================================================
   26. In-article callout
   Each article carries one link to the service it belongs to and one to
   a project we delivered in that area. The anchor on the service link is
   the service name, which is the phrase people search for.
   =================================================================== */
.post-cta {
  margin: 30px 0;
  padding: 22px 26px;
  border-inline-start: 3px solid var(--brand-gold);
  border-radius: 0 14px 14px 0;
  background: rgba(102,51,153,.05);
}
html[dir="rtl"] .post-cta { border-radius: 14px 0 0 14px; }
.post-cta__text { margin: 0 0 12px; color: #4A4362; font-size: 15.5px; line-height: 1.7; }
.post-cta__text strong { color: #1A1332; }
.post-cta__links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.post-cta__links a {
  color: var(--theme-color2); font-size: 15px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(102,51,153,.3);
}
.post-cta__links a:hover { color: var(--brand-gold-hover); text-decoration-color: currentColor; }

/* links written into the prose itself */
.blog-details__text-2 a {
  color: var(--theme-color2); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(102,51,153,.35);
}
.blog-details__text-2 a:hover { text-decoration-color: currentColor; }

html[data-theme="dark"] .post-cta { background: rgba(180,139,224,.08); }
html[data-theme="dark"] .post-cta__text { color: var(--ink-muted); }
html[data-theme="dark"] .post-cta__text strong { color: var(--ink); }
html[data-theme="dark"] .post-cta__links a,
html[data-theme="dark"] .blog-details__text-2 a { color: #C9AAEA; }

/* ===================================================================
   27. About section — quieter headings
   The section heading and the two feature titles sat a couple of steps
   larger than the copy around them needed.
   =================================================================== */
.about-section .sec-title .title {
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.25;
}
.about-section .inner-box .title,
.about-section .content-column h3.title {
  font-size: 17px;
  line-height: 1.4;
}
html[lang="en"] .about-section .sec-title .title { font-size: clamp(22px, 2.1vw, 30px); }
html[lang="en"] .about-section .inner-box .title { font-size: 17px; }

/* ===================================================================
   28. Service page contact card
   Replaces the template card whose icon never rendered and whose phone
   number wrapped onto two lines. WhatsApp leads because that is where
   this audience actually replies; the number stays for those who call.
   =================================================================== */
.service-help {
  position: relative; overflow: hidden;
  padding: 32px 28px;
  border-radius: 18px;
  background: linear-gradient(150deg, var(--theme-color2) 0%, var(--brand-purple-deep) 100%);
  color: #fff;
  text-align: center;
}
/* one soft highlight so the block is not a flat rectangle of purple */
.service-help::before {
  content: "";
  position: absolute; inset-inline-end: -60px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.service-help > * { position: relative; z-index: 1; }

.service-help__title {
  color: #fff; font-size: 22px; line-height: 1.35; margin: 0 0 10px;
}
.service-help__lead {
  color: rgba(255,255,255,.78); font-size: 14.5px; line-height: 1.7; margin: 0 0 22px;
}

.service-help__wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 20px;
  border-radius: 999px;
  background: #25D366; color: #fff;
  font-size: 15.5px; font-weight: 600;
  transition: background-color .25s ease, transform .25s ease;
}
.service-help__wa:hover { background: #1FBA59; color: #fff; transform: translateY(-2px); }
.service-help__wa svg { flex: none; }

.service-help__phone { margin-top: 18px; }
.service-help__or {
  display: block; margin-bottom: 6px;
  color: rgba(255,255,255,.6); font-size: 13px;
}
.service-help__phone a {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-size: 18px; font-weight: 700;
  white-space: nowrap;           /* the number was breaking across two lines */
  transition: color .25s ease;
}
.service-help__phone a:hover { color: var(--brand-gold); }
.service-help__phone .ico { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  .service-help__wa, .service-help__phone a { transition: none; }
}

/* ===================================================================
   29. Legal pages — privacy, terms
   Long-form reading: a narrow measure, generous leading, and headings
   that separate without shouting.
   =================================================================== */
.legal-section { padding-block: 90px; }
.legal { max-width: 74ch; }
.legal__updated {
  display: inline-block; margin: 0 0 24px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(102,51,153,.07); color: var(--theme-color2);
  font-size: 13.5px; font-weight: 600;
}
.legal__intro {
  font-size: 17px; line-height: 1.85; color: #4A4362;
  padding-block-end: 22px; margin-block-end: 8px;
  border-block-end: 1px solid rgba(26,19,50,.1);
}
.legal__heading {
  margin-block: 34px 12px;
  color: #1A1332; font-size: 21px; line-height: 1.4;
}
.legal p { color: #5B5470; font-size: 16px; line-height: 1.85; margin-block-end: 14px; }
.legal__list { margin: 0 0 16px; padding: 0; list-style: none; }
.legal__list li {
  position: relative; padding-inline-start: 22px; margin-block-end: 9px;
  color: #5B5470; font-size: 16px; line-height: 1.75;
}
.legal__list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-gold);
}
.legal a { color: var(--theme-color2); text-decoration: underline; text-underline-offset: 3px; }

html[data-theme="dark"] .legal__updated { background: rgba(180,139,224,.12); color: #C9AAEA; }
html[data-theme="dark"] .legal__intro { color: var(--ink); border-block-end-color: var(--line); }
html[data-theme="dark"] .legal__heading { color: var(--ink); }
html[data-theme="dark"] .legal p,
html[data-theme="dark"] .legal__list li { color: var(--ink-muted); }
html[data-theme="dark"] .legal a { color: #C9AAEA; }

@media (max-width: 575px) { .legal-section { padding-block: 60px; } }

/* legal links in the footer bar */
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; padding: 0; }
.footer-legal li { list-style: none; }
.footer-legal a { color: rgba(255,255,255,.62); font-size: 14px; transition: color .25s; }
.footer-legal a:hover { color: var(--brand-gold); }

/* ---- contact info discs -------------------------------------------
   The icon sits on a filled brand disc, so it has to be white. It was
   inheriting the body text colour and all but disappeared.
------------------------------------------------------------------- */

/* ===================================================================
   30. Service pages — the long-form article
   ------------------------------------------------------------------
   The service pages carried about 125 words each, which reads as a
   stub and ranks like one. These are the blocks the expanded copy
   needs: deliverable cards, a numbered process, cost factors and an
   FAQ. Everything uses logical properties so RTL mirrors for free.
   =================================================================== */
.svc-body { margin-block-start: 30px; }

.svc-body p { color: var(--text-color); line-height: 1.95; margin-block-end: 16px; }
.svc-lead { font-size: 17px; }

.svc-h2 {
  font-size: clamp(22px, 2.4vw, 27px);
  color: var(--headings-color);
  margin-block: 48px 20px;
  padding-block-end: 12px;
  border-block-end: 1px solid var(--theme-color-silver);
}

/* ---- what you get: two columns of cards ---------------------------- */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.svc-card {
  background: var(--theme-color-lighter);
  border: 1px solid var(--theme-color-silver);
  border-radius: 14px;
  padding: 22px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.svc-card:hover {
  border-color: rgba(102, 51, 153, .35);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(26, 19, 50, .07);
}
.svc-card__h {
  font-size: 17px;
  color: var(--headings-color);
  margin-block-end: 8px;
}
.svc-card p { font-size: 15px; line-height: 1.8; margin: 0; }

/* ---- how we work: a counter, not list-decimal ---------------------- */
.svc-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.svc-step {
  counter-increment: step;
  position: relative;
  padding-inline-start: 62px;
  padding-block-end: 26px;
}
.svc-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(102, 51, 153, .08);
  color: var(--theme-color1);
  font-weight: 700; font-size: 14px;
}
/* the rail joining the steps; the last one has nothing to join to */
.svc-step::after {
  content: "";
  position: absolute;
  inset-inline-start: 20px;
  inset-block-start: 48px;
  bottom: 8px;
  width: 1px;
  background: var(--theme-color-silver);
}
.svc-step:last-child { padding-block-end: 0; }
.svc-step:last-child::after { display: none; }
.svc-step__h { font-size: 17px; color: var(--headings-color); margin-block-end: 6px; }
.svc-step p { font-size: 15px; margin: 0; }

/* ---- stack and cost factors ---------------------------------------- */
.svc-stack, .svc-factors { list-style: none; padding: 0; margin: 0; }
.svc-stack li, .svc-factors li {
  position: relative;
  padding-inline-start: 26px;
  padding-block: 9px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-color);
}
.svc-stack li::before, .svc-factors li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  inset-block-start: 19px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--theme-color1);
}
.svc-factors li { border-block-end: 1px solid var(--theme-color-silver); }
.svc-factors li:last-child { border-block-end: 0; }
.svc-factors strong { color: var(--headings-color); display: block; margin-block-end: 3px; }

.svc-note {
  margin-block-start: 18px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 182, 0, .1);
  border-inline-start: 3px solid var(--brand-gold);
  font-size: 15px;
}

/* ---- FAQ: the template's accordion, quieter --------------------------- */

/* ---- related links -------------------------------------------------- */
.svc-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.svc-links a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--theme-color-silver);
  background: #fff;
  font-size: 14.5px;
  color: var(--headings-color);
  transition: background-color .25s, color .25s, border-color .25s;
}
.svc-links a:hover { background: var(--theme-color1); border-color: var(--theme-color1); color: #fff; }

/* ---- closing call to action ----------------------------------------- */
.svc-cta {
  margin-block-start: 52px;
  padding: 34px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1A1332 0%, #332868 100%);
  color: #fff;
}
.svc-cta__h { color: #fff; font-size: 24px; margin-block-end: 10px; }
.svc-cta p { color: rgba(255, 255, 255, .78); font-size: 15.5px; margin-block-end: 22px; }

@media (max-width: 767px) {
  .svc-cards { grid-template-columns: minmax(0, 1fr); }
  .svc-cta { padding: 26px 22px; }
  .svc-step { padding-inline-start: 52px; }
}

/* ---- dark mode ------------------------------------------------------ */
html[data-theme="dark"] .svc-card { background: var(--surface-2); border-color: var(--line); }
html[data-theme="dark"] .svc-links a { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .svc-note { background: rgba(255, 182, 0, .09); }

/* ===================================================================
   31. Contact band — one form for the whole site
   ------------------------------------------------------------------
   Replaces the two divergent forms (dark band on the home page, white
   two-column on the contact page) with a single full-bleed band: copy
   and contact facts on one side, a glass card holding the form on the
   other. Logical properties mean RTL mirrors it for free.
   =================================================================== */
.contact-band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(70px, 9vw, 120px);
  overflow: hidden;
}
.cb-bg { position: absolute; inset: 0; z-index: -2; }
.cb-bg img { width: 100%; height: 100%; object-fit: cover; }
/* the photo is busy, so the copy needs its own floor of contrast */
.contact-band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(26,19,50,.92) 0%, rgba(26,19,50,.80) 55%, rgba(26,19,50,.92) 100%),
    radial-gradient(90% 70% at 50% 0%, rgba(102,51,153,.45) 0%, transparent 70%);
}

.cb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* ---- left: copy and the four ways to reach us ---------------------- */
.cb-kicker {
  display: inline-block;
  font-size: 14px; font-weight: 600; letter-spacing: .08em;
  color: var(--brand-gold);
  margin-block-end: 14px;
}
.cb-title {
  color: #fff;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.15;
  margin-block-end: 16px;
}
.cb-lead {
  color: rgba(255,255,255,.72);
  font-size: 16.5px; line-height: 1.9;
  max-width: 46ch;
  margin-block-end: 34px;
}

.cb-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.cb-fact { display: flex; align-items: flex-start; gap: 14px; }
.cb-fact__icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--brand-gold);
  transition: background-color .25s, border-color .25s;
}
.cb-fact__icon .ico { width: 19px; height: 19px; stroke-width: 1.7; }
.cb-fact:hover .cb-fact__icon { background: rgba(255,182,0,.16); border-color: rgba(255,182,0,.4); }
.cb-fact__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cb-fact__label { font-size: 13px; color: rgba(255,255,255,.55); }
.cb-fact__body a, .cb-fact__body span:not(.cb-fact__label) {
  color: #fff; font-size: 15.5px; font-weight: 500;
}
.cb-fact__body a:hover { color: var(--brand-gold); }

/* ---- right: the form on a glass card ------------------------------- */
.cb-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 38px);
  box-shadow: 0 30px 70px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cb-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cb-field { min-width: 0; }
.cb-field--full { grid-column: 1 / -1; }

/* label kept for screen readers; the design shows placeholders only, and a
   placeholder vanishes as soon as someone starts typing */
.cb-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.cb-card .form-control {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #fff;
  color: #1A1332;
  font-size: 15.5px; line-height: 1.5;
  transition: border-color .25s, box-shadow .25s;
}
.cb-card .form-control::placeholder { color: rgba(26,19,50,.42); }
.cb-card .form-control:focus {
  outline: none;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(255,182,0,.28);
}
.cb-card textarea.form-control { min-height: 170px; resize: vertical; }

.cb-card select.form-control {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23663399' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 48px;
}
html[dir="rtl"] .cb-card select.form-control {
  background-position: left 20px center;
  padding-left: 48px; padding-right: 20px;
}
.cb-card select.form-control option { background: #fff; color: #1A1332; }

/* jquery-validate drops its message in as a sibling label */
.cb-card label.error {
  display: block;
  margin-block-start: 7px;
  font-size: 13px; font-weight: 500;
  color: #FFC9C9;
}
.cb-card .form-control.error { border-color: #ff8f8f; }
.cb-card #form-result { grid-column: 1 / -1; margin: 0 0 4px; border-radius: 12px; }

.cb-card button[type="submit"] { margin-block-start: 4px; }

@media (max-width: 991px) {
  .cb-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575px) {
  .cb-fields { grid-template-columns: minmax(0, 1fr); }
}

/* ===================================================================
   32. Accordions — the FAQ card style
   ------------------------------------------------------------------
   Used by the FAQ on the About page and on all twenty service pages,
   which share the template's .accordion-box markup. Nothing here needs
   a markup change: the number comes from a CSS counter and the toggle
   is moved to the far end with flex order, so the same rules restyle
   every existing accordion at once.
   =================================================================== */
.accordion-box { counter-reset: faq; list-style: none; padding: 0; margin: 0; }

.accordion-box .accordion.block {
  counter-increment: faq;
  border: 1px solid transparent;
  border-radius: 20px;
  background: #F1EFF7;
  margin-block-end: 14px;
  overflow: hidden;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.accordion-box .accordion.block:last-child { margin-block-end: 0; }

/* open: white card lifted off the page, with a brand-tinted edge */
.accordion-box .accordion.block.active-block {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, rgba(102,51,153,.5), rgba(255,182,0,.5), rgba(102,51,153,.5)) border-box;
  box-shadow: 0 18px 40px rgba(26, 19, 50, .09);
}

.accordion-box .block .acc-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  font-weight: 600;
  line-height: 1.55;
  color: var(--headings-color);
}

/* the index, straight off the counter — no extra markup */
.accordion-box .block .acc-btn::before {
  content: counter(faq);
  order: -1;
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(26, 19, 50, .07);
  color: var(--text-color);
  font-size: 13px; font-weight: 600;
  transition: background-color .3s, color .3s;
}
.accordion-box .accordion.block.active-block .acc-btn::before {
  background: rgba(102, 51, 153, .12);
  color: var(--theme-color1);
}

/* the plus rotates into a cross, so one icon covers both states */
.accordion-box .block .acc-btn .ico {
  /* the template pins this to a physical right edge, which lands on the
     wrong side in Arabic; let the flex row place it instead */
  position: static;
  inset: auto;
  order: 2;
  margin-inline-start: auto;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 40px; height: 40px;
  padding: 11px;
  border-radius: 50%;
  background: var(--theme-color2);
  border: 1px solid var(--theme-color2);
  color: #fff;
  stroke-width: 2;
  transition: transform .3s ease, background-color .3s, color .3s, border-color .3s;
}
.accordion-box .block .acc-btn:hover .ico { background: var(--theme-color1); border-color: var(--theme-color1); }
.accordion-box .block .acc-btn.active .ico {
  transform: rotate(45deg);
  background: #fff;
  border-color: rgba(26, 19, 50, .16);
  color: var(--theme-color2);
}

/* line the answer up under the question, past the number */
.accordion-box .block .acc-content .content { padding: 0 26px 24px; }
.accordion-box .block .acc-content .text {
  padding-inline-start: 44px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--text-color);
  max-width: 78ch;
}

@media (max-width: 575px) {
  .accordion-box .block .acc-btn { padding: 18px; gap: 12px; }
  .accordion-box .block .acc-btn .ico { width: 34px; height: 34px; padding: 9px; }
  .accordion-box .block .acc-content .content { padding: 0 18px 20px; }
  .accordion-box .block .acc-content .text { padding-inline-start: 0; }
}

html[data-theme="dark"] .accordion-box .accordion.block { background: var(--surface-2); }
html[data-theme="dark"] .accordion-box .accordion.block.active-block {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, rgba(102,51,153,.6), rgba(255,182,0,.5), rgba(102,51,153,.6)) border-box;
}
html[data-theme="dark"] .accordion-box .block .acc-btn::before { background: rgba(255,255,255,.08); color: var(--ink-muted); }
html[data-theme="dark"] .accordion-box .block .acc-btn.active .ico { background: var(--surface-2); color: var(--ink); border-color: var(--line); }

/* ===================================================================
   33. Clients — three scrolling rows of named pills
   ------------------------------------------------------------------
   80 logos is the section's whole argument, so none are dropped. Each
   row holds the set twice and slides by exactly half its width, which
   puts the copy where the original was and hides the seam. Rows drift
   in opposite directions; hovering stops them so a name can be read.
   =================================================================== */
.clients-marquee {
  padding-block: clamp(64px, 8vw, 104px);
  overflow: hidden;
}

.cl-head { text-align: center; margin-block-end: clamp(34px, 4vw, 56px); }
.cl-kicker {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--theme-color-silver);
  background: var(--theme-color-lighter);
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  color: var(--theme-color1);
  margin-block-end: 16px;
}
.cl-title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  color: var(--headings-color);
  margin: 0;
}

.cl-rows {
  position: relative;
  display: grid;
  gap: 14px;
  /* the track packs against the start edge, so in RTL sliding left exposed
     empty space; pin the mechanics to LTR and let the pills keep their own */
  direction: ltr;
}

/* fade the ends so pills enter and leave instead of being cut off */
.cl-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.cl-track { display: flex; width: max-content; will-change: transform; }
.cl-set { display: flex; gap: 14px; padding-inline-end: 14px; }

@keyframes cl-slide { to { transform: translateX(-50%); } }
.cl-track--a { animation: cl-slide 80s linear infinite; }
.cl-track--b { animation: cl-slide 80s linear infinite reverse; }

.cl-rows:hover .cl-track { animation-play-state: paused; }

.cl-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  padding: 14px 22px;
  border-radius: 16px;
  background: var(--theme-color-lighter);
  border: 1px solid var(--theme-color-silver);
  white-space: nowrap;
  transition: border-color .25s, background-color .25s;
}
.cl-pill:hover { border-color: rgba(102, 51, 153, .35); background: #fff; }
.cl-pill__name {
  font-size: 15px; font-weight: 500;
  color: var(--headings-color);
}
.cl-pill__logo {
  width: 40px; height: 40px;
  object-fit: contain;
  /* 80 logos in 80 palettes is noise, so they read as one set of marks
     until hovered. None of these files has an alpha channel — they are
     all solid white rectangles — so brightness(0) would paint the whole
     rectangle black. multiply drops the white into the pill instead and
     leaves only the mark. */
  filter: grayscale(1) contrast(1.05);
  mix-blend-mode: multiply;
  opacity: .8;
  transition: filter .3s ease, opacity .3s ease;
}
.cl-pill:hover .cl-pill__logo { filter: none; opacity: 1; }

/* the one thing in the section that is not a client: a way to become one */
.cl-badge {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(50%, -50%);
  width: 132px; height: 132px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #3A2B63 0%, #1A1332 70%);
  color: #fff;
  text-align: center;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .55), 0 18px 46px rgba(26, 19, 50, .3);
  transition: transform .3s ease, box-shadow .3s ease;
}
html:not([dir="rtl"]) .cl-badge { transform: translate(-50%, -50%); }
.cl-badge:hover { box-shadow: 0 0 0 10px rgba(255, 255, 255, .55), 0 22px 54px rgba(102, 51, 153, .42); }
html[dir="rtl"] .cl-badge:hover { transform: translate(50%, -50%) scale(1.05); }
html:not([dir="rtl"]) .cl-badge:hover { transform: translate(-50%, -50%) scale(1.05); }
.cl-badge .ico { width: 26px; height: 26px; color: var(--brand-gold); }
.cl-badge__text { font-size: 13px; font-weight: 600; line-height: 1.3; padding-inline: 10px; }

.cl-caption {
  margin: clamp(30px, 4vw, 48px) auto 0;
  max-width: 62ch;
  text-align: center;
  color: var(--text-color);
  font-size: 16px; line-height: 1.9;
}

@media (max-width: 767px) {
  .cl-pill { padding: 11px 16px; gap: 10px; }
  .cl-pill__name { font-size: 13.5px; }
  .cl-pill__logo { width: 30px; height: 30px; }
  .cl-badge { width: 104px; height: 104px; box-shadow: 0 0 0 7px rgba(255,255,255,.55), 0 14px 34px rgba(26,19,50,.3); }
  .cl-badge__text { font-size: 11.5px; }
  .cl-badge .ico { width: 21px; height: 21px; }
}

/* a permanently moving band is a problem for some people; stop it and let
   the row scroll by hand instead */
@media (prefers-reduced-motion: reduce) {
  .cl-track { animation: none; }
  .cl-row { overflow-x: auto; scrollbar-width: thin; }
}

html[data-theme="dark"] .cl-kicker { background: var(--surface-2); border-color: var(--line); }
html[data-theme="dark"] .cl-pill:hover { background: var(--surface); }
html[data-theme="dark"] .cl-badge { box-shadow: 0 0 0 10px rgba(24, 18, 46, .75), 0 18px 46px rgba(0, 0, 0, .5); }

/* ===================================================================
   34. Footer — sizing and the contact column
   ------------------------------------------------------------------
   The contact details were set at 20px against 16px links in the two
   columns beside them, so the same kind of information read as two
   different levels. The icons were 40px solid discs, heavier than
   anything else down there. The newsletter line was body-sized for a
   sentence that is an aside.

   The template styles these through five- and six-class chains
   (.footer-style-one .outer-box .footer-column .contact-widget .info
   span), so these selectors match that depth and win on order rather
   than reaching for !important. Both footer variants are named because
   only the home page's has .outer-box.
   =================================================================== */
.main-footer .footer-column .contact-widget .widget-content .info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-block-end: 16px;
}
.main-footer .footer-column .contact-widget .widget-content .info:last-child { margin-block-end: 0; }

/* match the links in the columns beside it */
.footer-style-one .outer-box .footer-column .contact-widget .info span,
.footer-style-one .outer-box .footer-column .contact-widget .info a,
.footer-style-two .footer-column .contact-widget .info span,
.footer-style-two .footer-column .contact-widget .info a {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .8);
}
.main-footer .footer-column .contact-widget .widget-content .info a:hover { color: var(--brand-gold); }

.main-footer .footer-column .contact-widget .widget-content .info .ico {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 32px; height: 32px;
  padding: 8px;
  margin-block-start: 1px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--brand-gold);
  stroke-width: 1.8;
  transition: background-color .25s, border-color .25s;
}
.main-footer .footer-column .contact-widget .widget-content .info:hover .ico {
  background: rgba(255, 182, 0, .15);
  border-color: rgba(255, 182, 0, .38);
}

/* an aside, not body copy */
.footer-style-one .outer-box .footer-column .about-widget .text,
.footer-style-two .footer-column .about-widget .text {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .62);
  max-width: 34ch;
}

/* icons only now — there are no labels left to lay out */
.main-footer .footer-bottom .social-icon {
  display: flex; align-items: center; gap: 10px;
  list-style: none; padding: 0; margin: 0;
}
.footer-style-one .outer-box .footer-bottom .inner-container .social-icon li a,
.footer-style-two .footer-bottom .inner-container .social-icon li a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s;
}
.footer-style-one .outer-box .footer-bottom .inner-container .social-icon li a:hover,
.footer-style-two .footer-bottom .inner-container .social-icon li a:hover {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: #1A1332;
  transform: translateY(-2px);
}

/* ===================================================================
   35. Project meta — values are values, not headings
   ------------------------------------------------------------------
   The template marked the value half of each label/value pair as <h5>:
   "Egypt", "Website", a domain name. That invents a heading level the
   page does not have — an audit reads it as h2 jumping to h5, and a
   screen reader announces a country as a heading. They are spans now,
   and this restores the size they had.
   =================================================================== */
.project-details__details-list .project-details__value {
  display: block;
  font-size: var(--h5-font-size, 17px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--headings-color);
}
.project-details__details-list .project-details__value a { color: inherit; }
.project-details__details-list .project-details__value a:hover { color: var(--theme-color1); }

/* ===================================================================
   36. Touch targets on phones
   ------------------------------------------------------------------
   Measured at 375px: the hero buttons came out 43px tall — one pixel
   under the 44px minimum — the service chips 41px, the project filters
   35px and the "read more" links 15px. WCAG exempts links sitting
   inside a sentence, so only real controls are enlarged here; prose
   links are left alone rather than padded out of shape.
   =================================================================== */
@media (max-width: 991px) {
  .hero-full__btn { min-height: 46px; display: inline-flex; align-items: center; }

  .hero-chips li a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
  }

  .project-filters li .project-filter { min-height: 44px; padding-block: 10px; }

  .blog-block .btn-more,
  .svc-head__all {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  /* section 34 sets 38px through the template's own chain, so this has to
     match that depth to win rather than sit below it */
  .footer-style-one .outer-box .footer-bottom .inner-container .social-icon li a,
  .footer-style-two .footer-bottom .inner-container .social-icon li a { width: 44px; height: 44px; }

  /* a list of links, not prose: give each row room to be tapped */
  .footer-widget .user-links li a { display: inline-block; padding-block: 7px; }

  /* the logo is a primary navigation target and the CTA is a button —
     both were short of 44px; the remaining offenders are text links
     sitting inside a sentence, which the rule exempts */
  .main-header .logo-box .logo a { display: inline-flex; align-items: center; min-height: 44px; }
  .wcu-copy a.theme-btn { min-height: 44px; display: inline-flex; align-items: center; }

  /* the category line under a project card was 13px */
  .project-block .cat,
  .blog-block .date--cat { font-size: 14px; }
}

/* ===================================================================
   37. Mobile apps showcase
   ------------------------------------------------------------------
   A phone showing a real app screen, with four more fanned behind it.
   Every image is a screenshot of an app Triple shipped — the phone
   frame itself is still drawn in CSS, so there is no mockup bitmap to
   license or to go soft on a high-DPI screen.

   Two things this layout got wrong the first time, both worth keeping
   in mind before moving anything:

     - The cards are absolutely positioned, so they add NOTHING to the
       stage's height. The stage must reserve room for the lowest card
       itself or that card lands on the paragraph below it.
     - A card is anchored with inset 50% and then centred by the
       -50%/50% in its own transform. Drop that and the card's leading
       EDGE sits at the middle, which pushes every card half its own
       size down and across.
   =================================================================== */
.apps-showcase {
  position: relative;
  padding-block: clamp(66px, 8vw, 110px);
  background: var(--theme-color-lighter);
  overflow: hidden;
}

.apps-head { text-align: center; margin-block-end: 18px; }
.apps-kicker {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--theme-color-silver);
  background: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  color: var(--theme-color2);
  margin-block-end: 16px;
}
.apps-title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.18;
  color: var(--headings-color);
}

/* the lead sits above the stage: nothing but the buttons is below it,
   so a card can never land on a paragraph again */
.apps-lead {
  margin: 14px auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: 16.5px; line-height: 1.9;
  color: var(--text-color);
}

.apps-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 680px;
  margin-block-start: clamp(18px, 3vw, 34px);
}

/* ------------------------------------------------------------ phone */
.apps-phone {
  position: relative;
  z-index: 3;
  width: 236px;
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  padding: 7px;
  background: linear-gradient(160deg, #2B2140 0%, #14101F 100%);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, .10) inset,
    0 34px 70px rgba(26, 19, 50, .32);
}
.apps-phone__notch {
  position: absolute;
  inset-block-start: 15px; inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 84px; height: 22px;
  border-radius: 999px;
  background: #0B0812;
  z-index: 2;
}
.apps-phone__screen {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  border-radius: 31px;
  overflow: hidden;
  background: #0F0A1E;
}
.apps-phone__shot { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ------------------------------------------------------------- fan */
.apps-fan {
  position: absolute;
  inset: 0;
  margin: 0; padding: 0;
  list-style: none;
  pointer-events: none;
}
/* English pages carry no dir attribute — only the Arabic ones declare
   dir="rtl" — so "html[dir=ltr]" never matched and every LTR override in
   this file was silently dead: the cards took the RTL transform and sat a
   full card-width to the right. Target "not RTL" instead. Same specificity. */
.apps-card {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: 146px;
  pointer-events: auto;
  /* the 50%/-50% is the centring — see the note at the top */
  transform: translate(calc(50% - var(--x)), calc(-50% + var(--y))) rotate(var(--r));
  transition: transform .35s ease, box-shadow .35s ease;
}
html:not([dir="rtl"]) .apps-card { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)); }

.apps-card a,
.apps-card__plate {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(26, 19, 50, .16);
  text-decoration: none;
}
.apps-card__media {
  display: block;
  aspect-ratio: 9 / 19.5;
  background: #0F0A1E;
}
.apps-card__shot { width: 100%; height: 100%; object-fit: cover; display: block; }
.apps-card__body { display: block; padding: 9px 11px 11px; text-align: center; }
.apps-card__name {
  display: block;
  font-size: 12.5px; font-weight: 600;
  color: var(--headings-color);
  line-height: 1.35;
  /* room for two lines, so a long name does not make its card shorter
     than the one beside it */
  min-height: 2.7em;
}

.apps-card:hover { transform: translate(calc(50% - var(--x)), calc(-50% + var(--y) - 10px)) rotate(0deg); z-index: 4; }
html:not([dir="rtl"]) .apps-card:hover { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 10px)) rotate(0deg); }
.apps-card:hover a,
.apps-card:hover .apps-card__plate { box-shadow: 0 26px 54px rgba(26, 19, 50, .24); }

/* Positive --x is toward the inline start, so the same numbers mirror
   themselves in English. The outer pair sits lower and turns further,
   which is what makes it read as a fan rather than a row. */
/* Three a side, inner to outer. The inner pair clears the phone rather
   than tucking under it: the phone sits above the fan, so any overlap
   eats the card's caption — which is how the longest name came out cut
   in half. Half the phone (118) plus half a card (73) is the smallest
   --x that keeps the label readable; the depth comes from the rotation
   and the shadows instead.

   Each step outward drops and turns a little more. Rotation widens a
   card's footprint, so the outermost pair is the one to check first
   when the stage or the container changes width. */
.apps-card--1 { --x:  194px; --y:  14px; --r:  -5deg; z-index: 3; }
.apps-card--2 { --x: -194px; --y:  14px; --r:   5deg; z-index: 3; }
.apps-card--3 { --x:  330px; --y:  56px; --r: -11deg; z-index: 2; }
.apps-card--4 { --x: -330px; --y:  56px; --r:  11deg; z-index: 2; }
.apps-card--5 { --x:  452px; --y: 112px; --r: -17deg; z-index: 1; }
.apps-card--6 { --x: -452px; --y: 112px; --r:  17deg; z-index: 1; }

.apps-cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; align-items: center;
  margin-block-start: clamp(22px, 3vw, 38px);
}
.apps-cta__ghost {
  font-weight: 600;
  color: var(--headings-color);
  border-block-end: 1px solid var(--theme-color-silver);
  padding-block-end: 2px;
}
.apps-cta__ghost:hover { color: var(--theme-color2); border-color: var(--theme-color2); }

@media (max-width: 1399px) {
  .apps-card { width: 128px; }
  .apps-phone { width: 210px; }
  .apps-stage { min-height: 600px; }
  .apps-card--1 { --x:  170px; --y:  12px; }
  .apps-card--2 { --x: -170px; --y:  12px; }
  .apps-card--3 { --x:  288px; --y:  48px; }
  .apps-card--4 { --x: -288px; --y:  48px; }
  .apps-card--5 { --x:  394px; --y:  96px; }
  .apps-card--6 { --x: -394px; --y:  96px; }
}

/* below this the six no longer fit around a phone, so the outer pair
   steps out of the fan and the rest close in */
@media (max-width: 1199px) {
  .apps-card { width: 116px; }
  .apps-phone { width: 190px; }
  .apps-stage { min-height: 520px; }
  .apps-card--1 { --x:  152px; --y:  10px; }
  .apps-card--2 { --x: -152px; --y:  10px; }
  .apps-card--3 { --x:  256px; --y:  44px; }
  .apps-card--4 { --x: -256px; --y:  44px; }
  .apps-card--5,
  .apps-card--6 { display: none; }
}

@media (max-width: 991px) {
  .apps-stage { min-height: 0; gap: 26px; margin-block-start: 30px; }
  .apps-card--5,
  .apps-card--6 { display: block; }
  .apps-fan {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 14px;
    width: 100%;
  }
  .apps-card,
  html:not([dir="rtl"]) .apps-card,
  .apps-card:hover,
  html:not([dir="rtl"]) .apps-card:hover {
    position: static;
    width: auto;
    transform: none;
  }
  .apps-phone { order: -1; width: 200px; }
}

html[data-theme="dark"] .apps-showcase { background: var(--surface); }
html[data-theme="dark"] .apps-kicker { background: var(--surface-2); border-color: var(--line); }
html[data-theme="dark"] .apps-card a,
html[data-theme="dark"] .apps-card__plate { background: var(--surface-2); }

/* ===================================================================
   38. Article tables and inline code
   ------------------------------------------------------------------
   The blog's comparison tables were published one cell per row, under
   a class nothing styles, so a two-column table read as a single
   stack. The publisher now emits a real table on Bootstrap's .table;
   these rules give it the brand's borders and a header that reads as
   one. Inline code gets the same treatment — it was previously
   published as literal backticks.
   =================================================================== */

.blog-details__content .table-responsive {
  margin-block: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
}

.blog-details__content .table-responsive > .table {
  margin: 0;
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}

.blog-details__content .table-responsive > .table > thead > tr > th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 700;
  /* logical so the divider follows the reading direction */
  border-block-end: 1px solid var(--line);
  padding: 13px 16px;
  text-align: start;
  white-space: nowrap;
}

.blog-details__content .table-responsive > .table > tbody > tr > td {
  border-block-start: 1px solid var(--line);
  padding: 12px 16px;
  vertical-align: top;
  line-height: 1.75;
}

.blog-details__content .table-responsive > .table > tbody > tr > td:first-child {
  font-weight: 600;
}

.blog-details__content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  /* identifiers stay left-to-right inside Arabic prose */
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.blog-details__content strong { font-weight: 700; color: var(--ink); }

@media (max-width: 575px) {
  .blog-details__content .table-responsive > .table { font-size: 14px; }
  .blog-details__content .table-responsive > .table > thead > tr > th,
  .blog-details__content .table-responsive > .table > tbody > tr > td { padding: 10px 12px; }
}

/* ===================================================================
   39. Hero work wall
   ------------------------------------------------------------------
   A slide can swap its background photo for a wall of the agency's
   own work: two or three columns of cards drifting in opposite
   directions beside the headline. Each slide sets the card shape with
   --ratio, because the work is not one shape — a website is 16:10, an
   app screen 9:19.5, a social post whatever the designs turn out to be.

   The loop is seamless because each track holds its list twice and
   moves by exactly one copy: half the track, plus half a gap, since
   the gap between the copies belongs to neither.
   =================================================================== */
.hero-slide--wall {
  background:
    radial-gradient(60% 70% at 78% 50%, rgba(102, 51, 153, .38) 0%, rgba(102, 51, 153, 0) 70%),
    #120D24;
}
html[dir="rtl"] .hero-slide--wall {
  background:
    radial-gradient(60% 70% at 22% 50%, rgba(102, 51, 153, .38) 0%, rgba(102, 51, 153, 0) 70%),
    #120D24;
}
.hero-slide--wall .hero-full__inner { max-width: 560px; }

.hero-wall {
  --gap: 18px;
  position: absolute;
  z-index: 1;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(54%, 820px);
  display: flex;
  justify-content: center;
  gap: var(--gap);
  padding-inline: 24px;
  overflow: hidden;
  /* fade in and out at the top and bottom so cards never cut hard
     against the header or the next section */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 85%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 85%, transparent 100%);
}
/* and toward the headline, so a card drifting under the text never
   competes with it */
.hero-wall::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 22%;
  background: linear-gradient(to right, #120D24 0%, rgba(18, 13, 36, 0) 100%);
  pointer-events: none;
}
html[dir="rtl"] .hero-wall::after { background: linear-gradient(to left, #120D24 0%, rgba(18, 13, 36, 0) 100%); }

.hero-wall__col { flex: 1 1 0; max-width: var(--col-w, 300px); min-width: 0; }
/* staggered start, so the columns never line up into a grid */
.hero-wall__col:nth-child(2) { margin-block-start: -9%; }
.hero-wall__col:nth-child(3) { margin-block-start: -4%; }

.hero-wall__track {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  animation: hero-wall-drift var(--dur, 60s) linear infinite;
}
.hero-wall__col--down .hero-wall__track { animation-direction: reverse; }

/* a hidden slide keeps its place in the DOM; no reason to animate it */
.hero-full .swiper-slide:not(.swiper-slide-active) .hero-wall__track { animation-play-state: paused; }

.hero-wall__card {
  display: block;
  aspect-ratio: var(--ratio, 4 / 5);
  border-radius: 14px;
  overflow: hidden;
  background: #1E1636;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 255, 255, .06);
}
.hero-wall__card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

@keyframes hero-wall-drift {
  to { transform: translateY(calc(-50% - var(--gap) / 2)); }
}

@media (max-width: 1199px) {
  .hero-wall { width: 50%; --gap: 14px; }
  .hero-slide--wall .hero-full__inner { max-width: 480px; }
}

/* below this the wall stops sharing the row with the text and becomes a
   band underneath it */
@media (max-width: 991px) {
  .hero-full .swiper-slide.hero-slide--wall { flex-direction: column; align-items: stretch; }
  .hero-slide--wall .hero-full__body { padding-block: 124px 20px; }
  .hero-slide--wall .hero-full__inner { max-width: none; }
  .hero-wall {
    position: relative;
    inset: auto;
    /* it precedes the copy in the markup, where it was a background */
    order: 2;
    width: 100%;
    height: 300px;
    padding-inline: 16px;
    margin-block-end: 70px;
  }
  .hero-wall::after { display: none; }
  .hero-wall__col { max-width: var(--col-w-sm, 200px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wall__track { animation: none; }
}

/* ===================================================================
   40. Images inside an article
   ------------------------------------------------------------------
   Written by the panel's image block. Width and height are on the
   <img>, so the space is held before it loads.
   =================================================================== */
.blog-details__content .blog-details__figure { margin: 28px 0; }
.blog-details__content .blog-details__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.blog-details__content .blog-details__figure figcaption {
  margin-block-start: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-color);
  text-align: center;
}

/* ===================================================================
   41. Project gallery
   ------------------------------------------------------------------
   Written by the panel when a project has more than one image — a
   social campaign, a brand identity, a set of app screens. Those mix
   square posts, tall phone screens and wide screenshots, so the grid
   is CSS columns: each image keeps its own shape instead of being
   cropped into a row of equal boxes.
   =================================================================== */
.project-gallery { padding-block: 70px 10px; }
.project-gallery__title { margin: 0 0 26px; color: var(--headings-color); }
.project-gallery__grid { columns: 3 260px; column-gap: 18px; }
.project-gallery__item {
  display: block;
  margin: 0 0 18px;
  break-inside: avoid;
  border-radius: 16px;
  overflow: hidden;
  background: var(--theme-color-lighter);
  box-shadow: 0 10px 28px rgba(26, 19, 50, .10);
  transition: transform .3s ease, box-shadow .3s ease;
}
.project-gallery__item img { display: block; width: 100%; height: auto; }
.project-gallery__item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26, 19, 50, .18); }
@media (max-width: 575px) {
  .project-gallery__grid { columns: 2 140px; column-gap: 12px; }
  .project-gallery__item { margin-block-end: 12px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-gallery__item { transition: none; }
}
html[data-theme="dark"] .project-gallery__item { background: var(--surface-2); }

/* ===================================================================
   42. A button without the template's arrow
   ------------------------------------------------------------------
   .btn-style-one pads one side for the arrow <span> it expects. Without
   the arrow the label sits off-centre in a lopsided pill. Any button can
   end up that way — an edit from the panel can drop the arrow — so this
   is general rather than a fix for one button.
   =================================================================== */
.theme-btn.btn-style-one:not(:has(> span)) {
  padding-inline: 30px;
}

/* ===================================================================
   43. Homepage blog: one large card, four small ones beside it
   ------------------------------------------------------------------
   The cards are written by the panel's ArticlePublisher from the latest
   five articles (between the home-posts markers in index.html). The
   heading is two steps below the template's 38px section titles.
   =================================================================== */
.blog-section .auto-container .sec-title .title {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.35;
}
.blog-section .auto-container .home-posts {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: repeat(2, 250px);
  gap: 20px;
}
.blog-section .home-posts .hp-card {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--theme-color2);
  box-shadow: 0 12px 30px rgba(26, 19, 50, .12);
  transition: transform .35s ease, box-shadow .35s ease;
}
.blog-section .home-posts .hp-card--lead { grid-row: 1 / span 2; }
.blog-section .home-posts .hp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(26, 19, 50, .22);
}
.blog-section .home-posts .hp-card__link {
  display: block;
  height: 100%;
  color: #fff;
}
.blog-section .home-posts .hp-card__link:focus-visible {
  outline: 3px solid var(--theme-color1);
  outline-offset: -3px;
  border-radius: 18px;
}
.blog-section .home-posts .hp-card__media {
  position: absolute;
  inset: 0;
}
.blog-section .home-posts .hp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.blog-section .home-posts .hp-card:hover .hp-card__media img { transform: scale(1.05); }
.blog-section .home-posts .hp-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 19, 50, .94) 0%, rgba(26, 19, 50, .6) 45%, rgba(26, 19, 50, .05) 80%);
}
.blog-section .home-posts .hp-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
}
.blog-section .home-posts .hp-card--lead .hp-card__body { gap: 12px; padding: 32px; }
.blog-section .home-posts .hp-card__cat {
  align-self: flex-start;
  padding: 3px 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
.blog-section .home-posts .hp-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
.blog-section .home-posts .hp-card--lead .hp-card__title {
  -webkit-line-clamp: 3;
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.4;
}
.blog-section .home-posts .hp-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: rgba(255, 255, 255, .8);
  font-size: 15px;
  line-height: 1.7;
}
.blog-section .home-posts .hp-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
}
.blog-section .auto-container .home-posts__more {
  margin-top: 40px;
  text-align: center;
}
@media (max-width: 991px) {
  .blog-section .auto-container .home-posts {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 360px repeat(2, 230px);
  }
  .blog-section .home-posts .hp-card--lead { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 575px) {
  .blog-section .auto-container .home-posts {
    grid-template-columns: 1fr;
    grid-template-rows: 340px;
    grid-auto-rows: 210px;
    gap: 14px;
  }
  .blog-section .home-posts .hp-card--lead .hp-card__body { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-section .home-posts .hp-card,
  .blog-section .home-posts .hp-card__media img { transition: none; }
  .blog-section .home-posts .hp-card:hover,
  .blog-section .home-posts .hp-card:hover .hp-card__media img { transform: none; }
}

/* ===================================================================
   44. Pricing: plan cards, the pricing page, the home section, checkout
   ------------------------------------------------------------------
   Own classes on purpose: the template's .pricing-block pins its badge
   with `right`, which collides with the icon in Arabic, and styles
   through deep chains (see the specificity note at the top). The cards
   are written by tools/pricing-pages.py from includes/packages.json.
   =================================================================== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 1199.98px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } }
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 10px 40px rgba(26, 19, 50, .06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--theme-color1);
  box-shadow: 0 18px 48px rgba(102, 51, 153, .14);
}
.plan-card--featured {
  border: 2px solid var(--theme-color1);
  box-shadow: 0 18px 48px rgba(102, 51, 153, .16);
}
.plan-card__badge {
  position: absolute;
  inset-block-start: -14px;
  inset-inline-start: 24px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--brand-gold);
  color: #1A1332;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.plan-card .plan-card__name {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
}
.plan-card .plan-card__tagline {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  min-height: 3.2em;
}
.plan-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.plan-card__amount {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.5px;
  font-family: var(--heading-font-family);
}
.plan-card__currency { font-size: 17px; font-weight: 700; }
.plan-card__period { font-size: 14px; color: var(--ink-muted); }
.plan-card .plan-card__delivery {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--theme-color1);
  font-weight: 600;
}
.plan-card__delivery svg { width: 18px; height: 18px; flex: none; }
.plan-card .plan-card__features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  flex: 1;
}
.plan-card .plan-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.plan-card__features svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(102, 51, 153, .1);
  color: var(--theme-color1);
}
.plan-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--theme-color1);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  transition: background-color .25s ease;
  cursor: pointer;
}
.plan-card__cta:hover, .plan-card__cta:focus-visible { background: var(--brand-purple-dark); color: #fff; }
.plan-card--featured .plan-card__cta { background: var(--brand-gold); color: #1A1332; }
.plan-card--featured .plan-card__cta:hover { background: var(--brand-gold-hover); color: #1A1332; }

/* pricing page */
.pricing-page { padding-block: 80px 90px; background: var(--surface); }
.pricing-page__head { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.pricing-page .pricing-page__lead { font-size: 18px; line-height: 1.8; color: var(--ink-muted); margin: 10px 0 0; }
.plan-group { margin-bottom: 56px; }
.pricing-page .plan-group .plan-group__title {
  margin: 0 0 30px;
  font-size: 26px;
  color: var(--ink);
}
.plan-extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}
.plan-extra {
  padding: 32px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.plan-extra--dark { background: var(--theme-color2); border-color: transparent; }
.pricing-page .plan-extra .plan-extra__title { margin: 0 0 10px; font-size: 22px; color: var(--ink); }
.pricing-page .plan-extra p { margin: 0 0 20px; color: var(--ink-muted); line-height: 1.7; }
.pricing-page .plan-extra--dark .plan-extra__title { color: #fff; }
.pricing-page .plan-extra--dark p { color: rgba(255, 255, 255, .78); }
.plan-extra__btn {
  display: inline-flex;
  padding: 12px 26px;
  border-radius: 12px;
  background: var(--theme-color1);
  color: #fff;
  font-weight: 700;
}
.plan-extra--dark .plan-extra__btn { background: var(--brand-gold); color: #1A1332; }
.plan-extra__btn:hover { color: #fff; background: var(--brand-purple-dark); }
.plan-extra--dark .plan-extra__btn:hover { color: #1A1332; background: var(--brand-gold-hover); }
.pricing-page .plan-notes { list-style: none; padding: 0; margin: 0; }
.pricing-page .plan-notes li {
  position: relative;
  padding-inline-start: 22px;
  margin-bottom: 8px;
  color: var(--ink-muted);
  font-size: 15px;
}
.pricing-page .plan-notes li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--theme-color1);
}
.pricing-page .plan-notes a, .checkout a:not(.plan-card__cta) { color: var(--theme-color1); text-decoration: underline; text-underline-offset: 3px; }

/* homepage section */
.home-pricing { padding-block: 100px; background: var(--surface-2); }
.home-pricing .svc-head { align-items: flex-end; }
.home-pricing .svc-head .sub-title { margin-bottom: 8px; color: var(--theme-color1); }

/* checkout */
.checkout-page { padding-block: 70px 90px; background: var(--surface); }
.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 32px;
  align-items: start;
}
.checkout__result { display: none; grid-column: 1 / -1; max-width: 640px; margin: 0 auto; text-align: center; }
.checkout[data-state="ok"] .checkout__result--ok,
.checkout[data-state="fail"] .checkout__result--fail,
.checkout[data-state="missing"] .checkout__result--missing { display: block; }
.checkout:not([data-state="form"]) .checkout__form,
.checkout:not([data-state="form"]) .checkout__summary { display: none; }
.checkout__result .plan-card__cta { width: auto; margin-top: 10px; }
.checkout__form {
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
}
.checkout__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.checkout__form input:not([type="checkbox"]), .checkout__form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}
.checkout__form input:focus, .checkout__form textarea:focus { outline: 2px solid var(--theme-color1); outline-offset: 1px; }
.checkout__row, .checkout__invoice { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.checkout__invoice { display: none; }
.checkout--invoice .checkout__invoice { display: grid; }
.checkout__form .checkout__agree { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.checkout__agree input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--theme-color1); flex: none; }
.checkout__error { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #FDECEC; color: #A61B1B; }
.checkout .checkout__secure, .checkout .checkout__intro { font-size: 14px; color: var(--ink-muted); margin: 14px 0 0; }
.checkout .checkout__intro { margin: 0 0 20px; font-size: 15px; }
.checkout__summary {
  position: sticky;
  top: 110px;
  padding: 28px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.checkout .checkout__summary-title { font-size: 20px; margin: 0 0 16px; color: var(--ink); }
.checkout .checkout__plan { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.checkout .checkout__delivery { font-size: 14px; color: var(--ink-muted); margin: 0 0 16px; }
.checkout .checkout__total {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin: 0 0 14px;
  color: var(--ink);
}
.checkout__total b { font-size: 20px; }
.checkout__change { font-size: 14px; }

/* refund policy list */
.legal .legal__list { padding-inline-start: 20px; margin: 0 0 16px; }
.legal .legal__list li { margin-bottom: 10px; line-height: 1.8; }

@media (max-width: 991.98px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout__summary { position: static; order: -1; }
  .home-pricing, .pricing-page { padding-block: 64px; }
}
@media (max-width: 575.98px) {
  .checkout__row, .checkout__invoice { grid-template-columns: 1fr; }
  .checkout__form { padding: 22px 18px; }
  .plan-card { padding: 28px 20px 22px; }
  .plan-card .plan-card__tagline { min-height: 0; }
  .plan-card__amount { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .plan-card { transition: none; }
  .plan-card:hover { transform: none; }
}
html[data-theme="dark"] .plan-card { box-shadow: none; }
html[data-theme="dark"] .plan-card__features svg { background: rgba(180, 139, 224, .14); color: #B48BE0; }
html[data-theme="dark"] .plan-card .plan-card__delivery,
html[data-theme="dark"] .home-pricing .svc-head .sub-title { color: #B48BE0; }
html[data-theme="dark"] .checkout__error { background: rgba(166, 27, 27, .2); color: #FFB4B4; }

/* ===================================================================
   45. Cost calculator (page-cost-calculator.html)
   ------------------------------------------------------------------
   Steps on the start side, a sticky estimate on the other; on phones
   the estimate follows the steps. Built by tools/pricing-pages.py from
   includes/estimator.json; assets/js/estimator.js does the sums.
   =================================================================== */
.estimator-page { padding-block: 70px 90px; background: var(--surface); }
.est {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}
.est-step { border: 0; padding: 0; margin: 0 0 44px; min-width: 0; }
.est .est-step__title {
  display: flex;
  align-items: center;
  gap: 12px;
  float: none;
  width: auto;
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.est-step__title span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--theme-color1);
  color: #fff;
  font-size: 15px;
}
.est-step[data-for] { display: none; }
.est[data-type="app"] .est-step[data-for="app"],
.est[data-type="website"] .est-step[data-for="website"] { display: block; }
.est:not(.est--ready) .est-step--needs-type { opacity: .45; pointer-events: none; }
.est-grid { display: grid; gap: 14px; }
.est-grid--types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.est-grid--features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.est-grid--design { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.est-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.est-tile[hidden] { display: none; }
.est-tile input { position: absolute; opacity: 0; pointer-events: none; }
.est-tile:hover { border-color: var(--theme-color1); }
.est-tile:has(input:checked) {
  border-color: var(--theme-color1);
  background: rgba(102, 51, 153, .06);
  box-shadow: 0 8px 24px rgba(102, 51, 153, .12);
}
.est-tile:has(input:focus-visible) { outline: 3px solid var(--theme-color1); outline-offset: 2px; }
.est-tile__icon { width: 44px; height: 44px; color: var(--theme-color1); margin-bottom: 6px; }
.est-tile__icon svg { width: 100%; height: 100%; }
.est-tile__name { font-weight: 700; font-size: 16px; color: var(--ink); line-height: 1.4; }
.est-tile__desc { font-size: 13.5px; color: var(--ink-muted); line-height: 1.55; }
.est-tile--feature { padding-inline-end: 44px; }
.est-tile__check {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 14px;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  color: transparent;
  transition: all .2s ease;
}
.est-tile__check svg { width: 100%; height: 100%; }
.est-tile:has(input:checked) .est-tile__check { background: var(--theme-color1); border-color: var(--theme-color1); color: #fff; }
.est-tile__included {
  display: none;
  align-self: flex-start;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(102, 51, 153, .12);
  color: var(--theme-color1);
  font-size: 12px;
  font-weight: 700;
}
.est-tile.is-included { cursor: default; }
.est-tile.is-included .est-tile__included { display: inline-block; }
.est-group { margin-bottom: 22px; }
.est .est-group__title { font-size: 15px; font-weight: 700; color: var(--ink-muted); margin: 0 0 10px; }
.est-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.est-chip { cursor: pointer; }
.est-chip input { position: absolute; opacity: 0; pointer-events: none; }
.est-chip span {
  display: inline-block;
  padding: 10px 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
}
.est-chip input:checked + span { border-color: var(--theme-color1); background: var(--theme-color1); color: #fff; }
.est-chip input:focus-visible + span { outline: 3px solid var(--theme-color1); outline-offset: 2px; }
.est-pages { display: flex; align-items: center; gap: 18px; max-width: 520px; }
.est-pages input { flex: 1; accent-color: var(--theme-color1); }
.est-pages__value { min-width: 48px; text-align: center; font-size: 24px; font-weight: 700; color: var(--ink); }
.est .est-hint { font-size: 14px; color: var(--ink-muted); margin: 8px 0 0; }
.est-switch { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.est-switch input { position: absolute; opacity: 0; pointer-events: none; }
.est-switch__track {
  position: relative;
  flex: none;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background-color .2s ease;
}
.est-switch__track::after {
  content: "";
  position: absolute;
  top: 4px;
  inset-inline-start: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: inset-inline-start .2s ease;
}
.est-switch input:checked + .est-switch__track { background: var(--theme-color1); }
.est-switch input:checked + .est-switch__track::after { inset-inline-start: 26px; }
.est-switch input:focus-visible + .est-switch__track { outline: 3px solid var(--theme-color1); outline-offset: 2px; }
.est-switch b { display: block; color: var(--ink); }
.est-switch small { color: var(--ink-muted); font-size: 13.5px; }

.est__summary {
  position: sticky;
  top: 110px;
  padding: 28px;
  border-radius: 20px;
  background: var(--theme-color2);
  color: #fff;
  box-shadow: 0 20px 50px rgba(26, 19, 50, .25);
}
.est .est__summary-title { color: rgba(255, 255, 255, .7); font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.est .est__empty { color: rgba(255, 255, 255, .8); margin: 0; }
.est__result { display: none; }
.est--ready .est__result { display: block; }
.est--ready .est__empty { display: none; }
.est .est__range { font-size: 30px; font-weight: 800; line-height: 1.25; color: #fff; margin: 0 0 6px; }
.est .est__range small { font-size: 16px; font-weight: 600; color: var(--brand-gold); }
.est .est__weeks { color: rgba(255, 255, 255, .85); margin: 0 0 18px; }
.est .est__weeks b { color: #fff; }
.est .est__chosen-title { color: rgba(255, 255, 255, .6); font-size: 13px; margin: 0 0 6px; }
.est .est__chosen { list-style: none; padding: 0; margin: 0 0 16px; max-height: 210px; overflow: auto; }
.est .est__chosen li {
  position: relative;
  padding-inline-start: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .9);
}
.est .est__chosen li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gold);
}
.est .est__note { font-size: 12.5px; color: rgba(255, 255, 255, .6); margin: 0 0 16px; line-height: 1.6; }
.est__summary .est__quote { background: var(--brand-gold); color: #1A1332; }
.est__summary .est__quote:hover { background: var(--brand-gold-hover); color: #1A1332; }
.est__wa, .est__consult { display: block; text-align: center; margin-top: 12px; color: #fff; font-weight: 600; }
.est__wa { padding: 12px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 12px; }
.est__wa:hover { color: #fff; border-color: #fff; }
.est__consult { font-size: 14px; color: rgba(255, 255, 255, .75); text-decoration: underline; text-underline-offset: 3px; }
.est__consult:hover { color: #fff; }
.est__form { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); }
.est__form label { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.est__form input, .est__form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 16px;
}
.est__form input:focus, .est__form textarea:focus { outline: 2px solid var(--brand-gold); outline-offset: 1px; }
.est__form .est__trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; }
.est .est__msg { color: var(--brand-gold); font-weight: 600; margin: 0 0 12px; }

.home-pricing .home-pricing__more { margin: 28px 0 0; text-align: center; color: var(--ink-muted); }
.home-pricing .home-pricing__more a { color: var(--theme-color1); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* calculator: step numbers follow the steps that are showing */
.est__steps { counter-reset: est-step; }
.est__steps > .est-step { counter-increment: est-step; }
.est .est-step__title span::before { content: counter(est-step); }
.est .est-hint--top { margin: -6px 0 16px; }
/* app ideas */
.est-grid--ideas { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.est-tile--idea { padding: 14px 14px; }
.est-tile--idea .est-tile__name { font-size: 15px; }
.est-tile--idea .est-tile__desc { font-size: 13px; }
.est-tile--other { border-style: dashed; }
.est-generic[hidden], .est-idea[hidden] { display: none; }
.est .est-idea__head {
  margin: 0 0 22px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(102, 51, 153, .06);
  border: 1px solid rgba(102, 51, 153, .18);
}
.est .est-idea__label { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink-muted); }
.est .est-idea__parts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.est .est-idea__parts li {
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--theme-color1);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.est .est-idea__similar { margin: 12px 0 0; font-size: 14px; color: var(--ink-muted); }
.est .est-idea__similar a { color: var(--theme-color1); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.est .est-idea__core {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.est .est-idea__core li { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.est .est-idea__core li span { flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--theme-color1); color: #fff; padding: 3px; }
.est .est-idea__core li svg { display: block; width: 100%; height: 100%; }
.est-idea__presets { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.est .est-idea__presets button {
  padding: 9px 18px;
  border: 1.5px solid var(--theme-color1);
  border-radius: 999px;
  background: transparent;
  color: var(--theme-color1);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.est .est-idea__presets button:hover { background: var(--theme-color1); color: #fff; }
.est .est-tile__price { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--theme-color1); }
html[data-theme="dark"] .est .est-idea__head { background: rgba(180, 139, 224, .08); border-color: rgba(180, 139, 224, .25); }
html[data-theme="dark"] .est .est-tile__price,
html[data-theme="dark"] .est .est-idea__similar a,
html[data-theme="dark"] .est .est-idea__presets button { color: #B48BE0; border-color: #B48BE0; }
@media (max-width: 1199.98px) {
  .est-grid--ideas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .est-grid--ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .est .est-idea__core { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1199.98px) {
  .est { grid-template-columns: minmax(0, 1fr) 320px; }
  .est-grid--types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .est-grid--features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.est-bar { display: none; }
@media (max-width: 991.98px) {
  .est { grid-template-columns: minmax(0, 1fr); }
  .est__summary { position: static; scroll-margin-top: 90px; }
  .est-bar:not([hidden]) {
    position: fixed;
    inset-inline: 12px;
    bottom: 12px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border: 0;
    border-radius: 14px;
    background: var(--theme-color2);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(26, 19, 50, .35);
  }
  .est-bar b { color: var(--brand-gold); font-size: 14px; }
  /* the bar has its own WhatsApp route; the floating button would sit on top of it */
  body:has(.est-bar:not([hidden])) .wa-float,
  body:has(.est-bar:not([hidden])) .back-to-top-wrapper { display: none; }
  .estimator-page { padding-bottom: 110px; }
}
@media (max-width: 575.98px) {
  .est-grid--features, .est-grid--design { grid-template-columns: minmax(0, 1fr); }
  .est .est-step__title { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .est-tile, .est-switch__track, .est-switch__track::after { transition: none; }
}
html[data-theme="dark"] .est-tile:has(input:checked) { background: rgba(180, 139, 224, .1); border-color: #B48BE0; }
html[data-theme="dark"] .est-tile__icon,
html[data-theme="dark"] .home-pricing .home-pricing__more a { color: #B48BE0; }
html[data-theme="dark"] .est__summary { background: var(--surface-2); border: 1px solid var(--line); }

/* ===================================================================
   46. Referral programme page (page-referral.html)
   ------------------------------------------------------------------
   The public face of the partner programme; the accounts themselves
   live in the panel at admin.triple-eg.com/partner.
   =================================================================== */
.referral-page { padding-block: 70px 90px; background: var(--surface); }
.ref-hero { max-width: 820px; margin: 0 auto 60px; text-align: center; }
.referral-page .ref-hero__lead { font-size: 19px; line-height: 1.9; color: var(--ink-muted); margin: 10px 0 26px; }
.referral-page .ref-hero__lead b { color: var(--ink); }
.ref-hero__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.ref-hero__cta--end { margin-top: 40px; }
.ref-btn { width: auto; min-width: 220px; }
.ref-btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border: 1.5px solid var(--theme-color1);
  border-radius: 12px;
  color: var(--theme-color1);
  font-weight: 700;
}
.ref-btn--ghost:hover { background: var(--theme-color1); color: #fff; }
.referral-page .ref-title { font-size: 28px; color: var(--ink); margin: 0 0 26px; text-align: center; }
.ref-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.ref-step {
  padding: 30px 26px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.ref-step__n {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--theme-color1);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  margin-bottom: 14px;
}
.referral-page .ref-step h3 { font-size: 20px; color: var(--ink); margin: 0 0 8px; }
.referral-page .ref-step p { margin: 0; color: var(--ink-muted); line-height: 1.75; }
.ref-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 22px; margin-bottom: 56px; }
.ref-box { padding: 32px; border-radius: 20px; border: 1px solid var(--line-strong); }
.ref-box--dark { background: var(--theme-color2); border-color: transparent; }
.referral-page .ref-box__title { font-size: 22px; color: var(--ink); margin: 0 0 12px; }
.referral-page .ref-box--dark .ref-box__title { color: #fff; }
.referral-page .ref-box--dark p { color: rgba(255, 255, 255, .85); font-size: 18px; line-height: 1.9; margin: 0; }
.referral-page .ref-box--dark b { color: var(--brand-gold); }
.referral-page .ref-perks { list-style: none; padding: 0; margin: 0; }
.referral-page .ref-perks li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--ink); line-height: 1.6; }
.ref-perks svg {
  width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%;
  background: rgba(102, 51, 153, .1); color: var(--theme-color1);
}
.ref-terms { max-width: 860px; margin: 0 auto 56px; scroll-margin-top: 100px; }
.referral-page .ref-terms ol { padding-inline-start: 22px; margin: 0; }
.referral-page .ref-terms li { margin-bottom: 12px; line-height: 1.85; color: var(--ink-muted); }
.referral-page .ref-terms b { color: var(--ink); }
.ref-faq {
  max-width: 860px;
  margin: 0 auto 12px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.ref-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.referral-page .ref-faq p { margin: 10px 0 0; color: var(--ink-muted); line-height: 1.8; }
@media (max-width: 991.98px) {
  .ref-steps, .ref-split { grid-template-columns: minmax(0, 1fr); }
}
html[data-theme="dark"] .ref-box--dark { background: var(--surface-2); border: 1px solid var(--line); }
html[data-theme="dark"] .ref-perks svg { background: rgba(180, 139, 224, .14); color: #B48BE0; }
html[data-theme="dark"] .ref-btn--ghost { border-color: #B48BE0; color: #B48BE0; }

/* ===================================================================
   47. About page FAQ: the template's demo "Sales trend 68%" card
   ------------------------------------------------------------------
   An English label, the template's old orange and an invented number
   on an Arabic page. Hidden rather than deleted, so the panel-managed
   HTML stays as it is.
   =================================================================== */
.faq-section .image-column .inner-column > div:has(> img[src$="shape-13.webp"]) { display: none; }

/* ===================================================================
   Cost calculator (page-cost-calculator.html, assets/js/calculator.js)
   =================================================================== */
.calc-page { padding-block: 60px 90px; background: var(--surface); }
.calc-intro { max-width: 820px; margin: 0 auto 44px; text-align: center; }
.calc-page .calc-intro__lead { font-size: 18px; line-height: 1.8; color: var(--ink-muted); margin: 10px 0 18px; }
.calc-page .calc-intro__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
.calc-page .calc-intro__trust li { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; color: var(--ink); }
.calc-page .calc-intro__trust svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--theme-color1); color: #fff; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 32px; align-items: start; }
.calc__steps { counter-reset: calc-step; min-width: 0; }
.calc-step { counter-increment: calc-step; border: 0; padding: 0; margin: 0 0 44px; min-width: 0; }
.calc-step[hidden] { display: none; }
.calc:not([data-kind="app"]) .calc-step[data-kind="app"] { display: none; }
.calc:not(.calc--ready) .calc-step--needs { opacity: .4; pointer-events: none; }
.calc .calc-step__title { display: flex; align-items: center; gap: 12px; float: none; width: auto; margin: 0 0 18px; font-size: 22px; font-weight: 700; color: var(--ink); }
.calc .calc-step__title span { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--theme-color1); color: #fff; font-size: 15px; }
.calc .calc-step__title span::before { content: counter(calc-step); }
.calc .calc-hint { margin: -8px 0 16px; font-size: 14px; color: var(--ink-muted); }

/* finder */
.calc-finder { position: sticky; top: 84px; z-index: 5; padding: 12px 0; margin-bottom: 8px; background: var(--surface); }
.calc .calc-search {
  width: 100%; height: 52px; padding: 0 18px; border: 1.5px solid var(--line-strong); border-radius: 14px;
  background: var(--surface); color: var(--ink); font-size: 16px;
}
.calc .calc-search:focus { outline: none; border-color: var(--theme-color1); box-shadow: 0 0 0 4px rgba(102, 51, 153, .12); }
.calc-cats { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.calc-cats::-webkit-scrollbar { display: none; }
.calc .calc-cat {
  flex: none; padding: 8px 16px; border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.calc .calc-cat:hover { border-color: var(--theme-color1); }
.calc .calc-cat.is-on { background: var(--theme-color1); border-color: var(--theme-color1); color: #fff; }
.calc-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.calc-app {
  position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px; border: 1.5px solid var(--line-strong);
  border-radius: 16px; background: var(--surface); cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.calc-app[hidden] { display: none; }
.calc-app input, .calc-feat input, .calc-tile input, .calc-chip input, .calc-switch input { position: absolute; opacity: 0; pointer-events: none; }
.calc-app:hover { border-color: var(--theme-color1); transform: translateY(-2px); }
.calc-app:has(input:checked) { border-color: var(--theme-color1); background: rgba(102, 51, 153, .06); box-shadow: 0 10px 26px rgba(102, 51, 153, .14); }
.calc-app:has(input:focus-visible), .calc-feat:has(input:focus-visible), .calc-tile:has(input:focus-visible) { outline: 3px solid var(--theme-color1); outline-offset: 2px; }
.calc-app__icon { width: 38px; height: 38px; padding: 8px; margin-bottom: 6px; border-radius: 12px; background: rgba(102, 51, 153, .1); color: var(--theme-color1); }
.calc-app__icon svg { display: block; width: 100%; height: 100%; }
.calc-app__name { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.calc-app__desc { font-size: 13px; color: var(--ink-muted); line-height: 1.5; }
.calc-app__from { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--ink-muted); }
.calc-app__from b { color: var(--theme-color1); font-weight: 800; }
.calc-app--other { border-style: dashed; }
.calc .calc-noresults { margin: 16px 0 0; padding: 14px 18px; border-radius: 12px; background: rgba(102, 51, 153, .06); color: var(--ink); }

/* features */
.calc-head:empty { display: none; }
.calc .calc-head { margin: 0 0 18px; padding: 18px 20px; border-radius: 16px; background: rgba(102, 51, 153, .06); border: 1px solid rgba(102, 51, 153, .18); }
.calc .calc-head__name { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--ink); }
.calc .calc-head__label { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.calc .calc-head__parts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.calc .calc-head__parts li { margin: 0; padding: 5px 14px; border-radius: 999px; background: var(--theme-color1); color: #fff; font-size: 13.5px; font-weight: 700; }
.calc .calc-head__similar { margin: 12px 0 0; font-size: 14px; color: var(--ink-muted); }
.calc .calc-head__similar a { color: var(--theme-color1); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.calc .calc-presets button {
  padding: 8px 18px; border: 1.5px solid var(--theme-color1); border-radius: 999px; background: transparent;
  color: var(--theme-color1); font-size: 14px; font-weight: 700; cursor: pointer;
}
.calc .calc-presets button.is-on, .calc .calc-presets button:hover { background: var(--theme-color1); color: #fff; }
.calc-group { margin-bottom: 22px; }
.calc-group[hidden] { display: none; }
.calc .calc-group__title { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--ink-muted); }
.calc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.calc-feat {
  position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 14px 12px; padding-inline-end: 42px;
  border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .2s ease, background-color .2s ease;
}
.calc-feat[hidden] { display: none; }
.calc-feat:hover { border-color: var(--theme-color1); }
.calc-feat:has(input:checked) { border-color: var(--theme-color1); background: rgba(102, 51, 153, .06); }
.calc-feat__check {
  position: absolute; inset-block-start: 14px; inset-inline-end: 12px; width: 22px; height: 22px;
  border: 1.5px solid var(--line-strong); border-radius: 6px; color: transparent;
}
.calc-feat__check svg { display: block; width: 100%; height: 100%; }
.calc-feat:has(input:checked) .calc-feat__check { background: var(--theme-color1); border-color: var(--theme-color1); color: #fff; }
.calc-feat__name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.calc-feat__desc { font-size: 13px; color: var(--ink-muted); line-height: 1.5; }
.calc-feat__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.calc-feat__price { font-size: 13px; font-weight: 700; color: var(--theme-color1); }
.calc-feat__badge { display: none; padding: 2px 10px; border-radius: 999px; background: rgba(102, 51, 153, .12); color: var(--theme-color1); font-size: 12px; font-weight: 700; }
.calc-feat.is-required { cursor: default; }
.calc-feat.is-required .calc-feat__badge { display: inline-block; }
.calc .calc-custom { display: block; margin-top: 8px; padding: 18px; border: 1.5px dashed var(--theme-color1); border-radius: 16px; }
.calc .calc-custom b { display: block; margin-bottom: 8px; color: var(--ink); }
.calc .calc-custom textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 15px; resize: vertical; }
.calc .calc-custom small { display: block; margin-top: 6px; color: var(--ink-muted); font-size: 13px; }

/* chips, tiles, switch */
.calc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-chip { position: relative; cursor: pointer; }
.calc-chip span { display: inline-block; padding: 10px 20px; border: 1.5px solid var(--line-strong); border-radius: 999px; font-weight: 600; color: var(--ink); }
.calc-chip input:checked + span { background: var(--theme-color1); border-color: var(--theme-color1); color: #fff; }
.calc-chip input:focus-visible + span { outline: 3px solid var(--theme-color1); outline-offset: 2px; }
.calc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.calc-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1.5px solid var(--line-strong); border-radius: 14px; cursor: pointer; }
.calc-tile:has(input:checked) { border-color: var(--theme-color1); background: rgba(102, 51, 153, .06); }
.calc-tile__name { font-weight: 700; color: var(--ink); }
.calc-tile__desc { font-size: 13px; color: var(--ink-muted); }
.calc-host + .calc-host { margin-top: 18px; }
.calc .calc-host__label { margin: 0 0 10px; font-weight: 700; color: var(--ink); }
.calc .calc-host__label small { font-weight: 600; color: var(--ink-muted); }
.calc-switch { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer; }
.calc-switch__track { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; background: var(--line-strong); transition: background-color .2s ease; }
.calc-switch__track::after { content: ""; position: absolute; top: 4px; inset-inline-start: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s ease; }
.calc-switch input:checked + .calc-switch__track { background: var(--theme-color1); }
.calc-switch input:checked + .calc-switch__track::after { inset-inline-start: 26px; }
.calc-switch b { display: block; color: var(--ink); }
.calc-switch small { color: var(--ink-muted); font-size: 13.5px; }

/* summary */
.calc__summary { position: sticky; top: 100px; padding: 26px; border-radius: 22px; background: var(--theme-color2); color: #fff; box-shadow: 0 22px 50px rgba(26, 19, 50, .28); }
.calc .calc-cur { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.calc .calc-cur span { font-size: 14px; color: rgba(255, 255, 255, .7); }
.calc .calc-cur select { min-width: 0; max-width: 210px; height: 40px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 14px; font-weight: 600; }
.calc .calc-cur select option { color: #1a1332; }
.calc .calc-sum__empty { margin: 0; color: rgba(255, 255, 255, .8); }
.calc-sum { display: none; }
.calc--ready .calc-sum { display: block; }
.calc--ready .calc-sum__empty { display: none; }
.calc .calc-sum__app { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--brand-gold); }
.calc .calc-sum__label { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .65); }
.calc .calc-sum__price { margin: 2px 0 0; font-size: 34px; font-weight: 800; line-height: 1.2; color: #fff; }
.calc .calc-sum__alt { margin: 2px 0 0; font-size: 14px; color: rgba(255, 255, 255, .65); }
.calc .calc-sum__alt:empty { display: none; }
.calc .calc-sum__weeks { margin: 12px 0 14px; color: rgba(255, 255, 255, .85); }
.calc .calc-sum__weeks b { color: #fff; }
.calc .calc-sum__lines { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; }
.calc .calc-sum__lines li { margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .9); }
.calc .calc-sum__yearly { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.calc .calc-sum__yearly p { margin: 0 0 4px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.calc .calc-sum__yearly ul { list-style: none; margin: 0; padding: 0; }
.calc .calc-sum__yearly li { margin: 0; font-size: 14px; color: #fff; }
.calc .calc-sum__note { margin: 0 0 16px; font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, .78); }
.calc .calc-sum__cta { display: block; width: 100%; padding: 14px; border: 0; border-radius: 12px; background: var(--brand-gold); color: #1a1332; font-size: 16px; font-weight: 800; cursor: pointer; }
.calc .calc-sum__cta:hover { filter: brightness(1.05); }
.calc .calc-sum__wa { display: block; margin-top: 10px; padding: 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; text-align: center; color: #fff; font-weight: 700; }
.calc .calc-sum__wa:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.calc .calc-form { margin-top: 16px; }
.calc .calc-form label { display: block; margin-bottom: 10px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.calc .calc-form input, .calc .calc-form textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 15px; }
.calc .calc-form__msg { margin: 6px 0 10px; font-size: 14px; color: var(--brand-gold); }
.calc .calc-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.calc-bar { display: none; }

@media (max-width: 1199.98px) {
  .calc { grid-template-columns: minmax(0, 1fr) 330px; }
  .calc-apps, .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__summary { position: static; scroll-margin-top: 90px; }
  .calc-finder { top: 70px; }
  .calc-bar:not([hidden]) {
    position: fixed; inset-inline: 12px; bottom: 12px; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; border: 0; border-radius: 14px; background: var(--theme-color2); color: #fff; font-size: 17px; font-weight: 800;
    box-shadow: 0 12px 30px rgba(26, 19, 50, .35);
  }
  .calc-bar b { color: var(--brand-gold); font-size: 14px; }
  body:has(.calc-bar:not([hidden])) .wa-float,
  body:has(.calc-bar:not([hidden])) .back-to-top-wrapper { display: none; }
  .calc-page { padding-bottom: 110px; }
}
@media (max-width: 575.98px) {
  .calc-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .calc-app { padding: 12px; }
  .calc-app__desc { display: none; }
  .calc-grid, .calc-tiles { grid-template-columns: minmax(0, 1fr); }
  .calc .calc-step__title { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .calc-app, .calc-feat, .calc-switch__track, .calc-switch__track::after { transition: none; }
}
html[data-theme="dark"] .calc-app:has(input:checked),
html[data-theme="dark"] .calc-feat:has(input:checked),
html[data-theme="dark"] .calc-tile:has(input:checked) { background: rgba(180, 139, 224, .1); border-color: #B48BE0; }
html[data-theme="dark"] .calc-app__icon { background: rgba(180, 139, 224, .15); color: #B48BE0; }
html[data-theme="dark"] .calc-app__from b,
html[data-theme="dark"] .calc-feat__price,
html[data-theme="dark"] .calc .calc-head__similar a { color: #B48BE0; }
/* the template's overflow:hidden wrapper would make the summary scroll away; clip keeps it sticky */
.page-wrapper:has(.calc) { overflow: clip; }

/* ===================================================================
   App cost pages (app-cost/*.html, page-app-costs.html)
   =================================================================== */
.ac-page { padding-block: 60px 90px; background: var(--surface); }
.ac-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.ac-main { min-width: 0; }
.ac-page .ac-intro { font-size: 18px; line-height: 1.9; color: var(--ink); margin: 0 0 22px; }
.ac-page .ac-h2 { margin: 38px 0 14px; font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.ac-page p { color: var(--ink); line-height: 1.85; }
.ac-page .ac-answer { margin: 0 0 8px; padding: 20px 22px; border-inline-start: 5px solid var(--theme-color1); border-radius: 14px; background: rgba(102, 51, 153, .06); }
.ac-page .ac-answer p { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.ac-page .ac-answer small { color: var(--ink-muted); font-size: 13.5px; }
.ac-usd { font-weight: 800; white-space: nowrap; }
.ac-table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 16px; }
.ac-page .ac-table { width: 100%; border-collapse: collapse; margin: 0; }
.ac-page .ac-table th, .ac-page .ac-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-strong); text-align: start; vertical-align: middle; color: var(--ink); }
.ac-page .ac-table thead th { background: var(--theme-color2); color: #fff; font-size: 14px; font-weight: 700; }
.ac-page .ac-table tbody tr:last-child th, .ac-page .ac-table tbody tr:last-child td { border-bottom: 0; }
.ac-page .ac-table tbody th b { display: block; font-size: 16px; }
.ac-page .ac-table tbody th small { display: block; color: var(--ink-muted); font-size: 13px; font-weight: 400; }
.ac-page .ac-table td .ac-usd { color: var(--theme-color1); font-size: 17px; }
.ac-page .ac-parts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ac-page .ac-parts li { margin: 0; padding: 7px 16px; border-radius: 999px; background: var(--theme-color1); color: #fff; font-weight: 700; font-size: 14.5px; }
.ac-page .ac-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.ac-page .ac-feats li { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 14px; }
.ac-feat__name { font-weight: 700; color: var(--ink); }
.ac-feat__name em { margin-inline-start: 8px; padding: 1px 9px; border-radius: 999px; background: rgba(102, 51, 153, .12); color: var(--theme-color1); font-size: 12px; font-style: normal; font-weight: 700; }
.ac-feat__desc { font-size: 13.5px; color: var(--ink-muted); }
.ac-feat__price { margin-top: 4px; font-size: 13.5px; color: var(--theme-color1); }
.ac-page .ac-feats--extra li { border-style: dashed; }
.ac-page .ac-checks { list-style: none; margin: 0; padding: 0; }
.ac-page .ac-checks li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; line-height: 1.8; color: var(--ink); }
.ac-page .ac-checks svg { flex: none; width: 22px; height: 22px; margin-top: 4px; padding: 4px; border-radius: 50%; background: var(--theme-color1); color: #fff; }
.ac-page .ac-list { margin: 0; padding-inline-start: 22px; }
.ac-page .ac-list li { margin: 0 0 6px; line-height: 1.8; color: var(--ink); list-style: disc; }
.ac-page .ac-similar a { color: var(--theme-color1); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ac-faq__item { margin-bottom: 10px; border: 1.5px solid var(--line-strong); border-radius: 14px; }
.ac-faq__item summary { padding: 16px 18px; font-weight: 700; color: var(--ink); cursor: pointer; }
.ac-page .ac-faq__item p { margin: 0; padding: 0 18px 16px; color: var(--ink-muted); }
.ac-side { position: sticky; top: 100px; display: grid; gap: 18px; }
.ac-cta { padding: 26px; border-radius: 22px; background: var(--theme-color2); color: #fff; box-shadow: 0 22px 50px rgba(26, 19, 50, .25); }
.ac-page .ac-cta__title { margin: 0 0 10px; font-size: 19px; font-weight: 800; line-height: 1.5; color: #fff; }
.ac-page .ac-cta__from { margin: 0 0 10px; color: rgba(255, 255, 255, .75); }
.ac-page .ac-cta__from b, .ac-page .ac-cta__from .ac-usd { color: var(--brand-gold); font-size: 24px; }
.ac-page .ac-cta__text { margin: 0 0 16px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.ac-page .ac-cta__btn { display: block; padding: 14px; border-radius: 12px; background: var(--brand-gold); color: #1a1332; text-align: center; font-weight: 800; }
.ac-page .ac-cta__btn:hover { filter: brightness(1.05); color: #1a1332; }
.ac-page .ac-cta__btn--inline { display: inline-block; padding-inline: 28px; margin-top: 6px; }
.ac-page .ac-cta__wa { display: block; margin-top: 10px; padding: 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; text-align: center; color: #fff; font-weight: 700; }
.ac-page .ac-cta__wa:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.ac-related { padding: 20px; border: 1.5px solid var(--line-strong); border-radius: 18px; }
.ac-page .ac-related p { margin: 0 0 10px; font-weight: 800; }
.ac-page .ac-related ul { list-style: none; margin: 0 0 12px; padding: 0; }
.ac-page .ac-related li { margin: 0 0 8px; }
.ac-page .ac-related a { color: var(--ink); font-weight: 600; }
.ac-page .ac-related a:hover, .ac-page .ac-related__all { color: var(--theme-color1); }
.ac-page .ac-related__all { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ac-hub-head { max-width: 820px; margin: 0 auto 20px; text-align: center; }
.ac-cat { margin-top: 30px; }
.ac-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ac-page .ac-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1.5px solid var(--line-strong); border-radius: 16px; color: var(--ink); transition: border-color .2s ease, transform .2s ease; }
.ac-page .ac-card:hover { border-color: var(--theme-color1); transform: translateY(-2px); color: var(--ink); }
.ac-card__name { font-weight: 800; font-size: 16px; }
.ac-card__desc { font-size: 13px; color: var(--ink-muted); }
.ac-card__from { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--ink-muted); }
.ac-card__from .ac-usd { color: var(--theme-color1); }
.page-wrapper:has(.ac-side) { overflow: clip; }
@media (max-width: 1199.98px) {
  .ac-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .ac-layout { grid-template-columns: minmax(0, 1fr); }
  .ac-side { position: static; }
  .ac-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .ac-page .ac-feats { grid-template-columns: minmax(0, 1fr); }
  .ac-page .ac-h2 { font-size: 21px; }
  .ac-cards { gap: 10px; }
  .ac-page .ac-card { padding: 14px; }
}
html[data-theme="dark"] .ac-page .ac-table td .ac-usd,
html[data-theme="dark"] .ac-feat__price,
html[data-theme="dark"] .ac-card__from .ac-usd,
html[data-theme="dark"] .ac-page .ac-similar a { color: #B48BE0; }
.calc-page .calc-intro__guide { margin: 14px 0 0; }
.calc-page .calc-intro__guide a { color: var(--theme-color1); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
