/* Tiewrap — redesigned Services, Packages, Contact and Footer (Oct 2026).
   Uses the original template's colours and font (Hind) so the new sections
   sit naturally next to "What we do", "Portfolio" and "MAS ERP". */
:root {
  --tw-slate: #515769;
  --tw-slate-dark: #2f3341;
  --tw-orange: #fd871f;
  --tw-orange-dark: #e2700b;
  --tw-text: #81848f;
  --tw-ink: #3d4250;
  --tw-line: #e8eaef;
  --tw-soft: #fafafa;
}

/* ---------- shared ---------- */
.tw-head { max-width: 640px; margin-bottom: 44px; }
.tw-head h2 { margin: 0 0 10px; }
.tw-head p { font-size: 16px; color: var(--tw-text); margin: 0; line-height: 1.6; }
.tw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: Hind, sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .02em; padding: 12px 22px; border-radius: 4px; border: 2px solid transparent; text-decoration: none !important; transition: background-color .2s, color .2s, border-color .2s; line-height: 1.2; }
.tw-btn:focus-visible, .tw-more:focus-visible, .tw-gallery-tab:focus-visible { outline: 3px solid var(--tw-orange); outline-offset: 2px; }
.tw-btn-orange { background: var(--tw-orange); color: #fff !important; }
.tw-btn-orange:hover { background: var(--tw-orange-dark); }
.tw-btn-dark { background: var(--tw-slate); color: #fff !important; }
.tw-btn-dark:hover { background: var(--tw-slate-dark); }
.tw-btn-line { border-color: #cfd2da; color: var(--tw-slate) !important; background: #fff; }
.tw-btn-line:hover { border-color: var(--tw-slate); }
.tw-btn-whatsapp { background: #25d366; color: #fff !important; }
.tw-btn-whatsapp:hover { background: #1ebe5a; }
.tw-btn-block { width: 100%; }

/* ---------- services ---------- */
.tw-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tw-card { background: #fff; border: 1px solid var(--tw-line); border-top: 3px solid var(--tw-line); border-radius: 0 0 4px 4px; display: flex; flex-direction: column; transition: border-top-color .2s; }
.tw-card:hover { border-top-color: var(--tw-orange); }
.tw-card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.tw-card-body { padding: 26px 26px 24px; display: flex; flex-direction: column; flex: 1; }
.tw-card h3 { font-size: 22px; margin: 0 0 2px; }
.tw-sub { color: var(--tw-orange); font-weight: 600; font-size: 14px; margin: 0 0 12px; }
.tw-intro { color: var(--tw-text); font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.tw-checks { list-style: none; padding: 0; margin: 0; font-size: 15px; color: var(--tw-ink); }
.tw-checks li { position: relative; padding: 7px 0 7px 26px; border-top: 1px solid #f1f2f5; line-height: 1.5; }
.tw-checks li::before { content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; top: 8px; font-size: 13px; color: var(--tw-orange); }
.tw-checks a { color: var(--tw-slate); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(253, 135, 31, .5); text-underline-offset: 3px; }
.tw-checks .tw-extra { display: none; }
.tw-checks.is-open .tw-extra { display: block; }
.tw-more { margin-top: auto; align-self: flex-start; background: none; border: 0; padding: 14px 0 0; color: var(--tw-slate); font-weight: 600; font-size: 14px; cursor: pointer; }
.tw-more::after { content: " \f107"; font-family: FontAwesome; }
.tw-more[aria-expanded="true"]::after { content: " \f106"; }
.tw-more:hover { color: var(--tw-orange); }
.tw-services-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- packages ---------- */
.tw-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: end; }
.tw-plan { position: relative; background: #fff; border: 1px solid var(--tw-line); border-radius: 4px; padding: 30px 28px 24px; text-align: center; }
.tw-plan.is-featured { border: 2px solid var(--tw-orange); padding-top: 42px; box-shadow: 0 18px 40px rgba(81, 87, 105, .12); }
.tw-plan-flag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--tw-orange); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; white-space: nowrap; }
.tw-plan h3 { font-size: 20px; margin: 0; }
.tw-plan-for { color: var(--tw-text); font-size: 14px; margin: 2px 0 18px; min-height: 21px; }
.tw-price { font-family: Hind, sans-serif; font-size: 48px; font-weight: 700; color: var(--tw-slate); line-height: 1; margin: 0 0 6px; }
.tw-price span { font-size: 18px; font-weight: 600; color: var(--tw-text); }
.tw-plan-count { font-size: 13px; color: var(--tw-text); margin: 0 0 20px; }
.tw-plan-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--tw-slate); text-decoration: underline; text-underline-offset: 3px; }
.tw-plan-link:hover { color: var(--tw-orange); }

.tw-compare-wrap { margin-top: 48px; background: #fff; border: 1px solid var(--tw-line); border-radius: 4px; overflow-x: auto; }
.tw-compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.tw-compare caption { caption-side: top; text-align: left; padding: 18px 20px 6px; font-family: Hind, sans-serif; font-weight: 700; font-size: 18px; color: var(--tw-slate); }
.tw-compare th, .tw-compare td { padding: 10px 20px; border-top: 1px solid #f1f2f5; }
.tw-compare thead th { font-family: Hind, sans-serif; font-weight: 700; color: var(--tw-slate); vertical-align: bottom; text-align: center; border-top: 0; }
.tw-compare thead th:first-child { text-align: left; color: var(--tw-text); font-weight: 600; }
.tw-compare thead th span { display: block; font-weight: 500; font-size: 13px; color: var(--tw-text); }
.tw-compare tbody th { font-weight: 500; color: var(--tw-ink); text-align: left; }
.tw-compare td { text-align: center; width: 18%; }
.tw-compare td.yes { color: var(--tw-orange); }
.tw-compare td.no { color: #c5c7ce; }
.tw-compare .is-featured { background: #fff8f1; }
.tw-compare tbody tr:hover th, .tw-compare tbody tr:hover td { background-color: #fbfbfc; }
.tw-compare tbody tr:hover .is-featured { background-color: #fff2e4; }

.tw-gallery { margin-top: 48px; }
.tw-gallery-head h3 { font-size: 22px; margin: 0 0 4px; }
.tw-gallery-head p { color: var(--tw-text); margin: 0 0 18px; }
.tw-gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tw-gallery-tab { background: #fff; border: 1px solid #d9dce3; border-radius: 20px; padding: 7px 14px; font-size: 14px; color: var(--tw-ink); cursor: pointer; line-height: 1.2; }
.tw-gallery-tab:hover { border-color: var(--tw-slate); }
.tw-gallery-tab[aria-selected="true"] { background: var(--tw-orange); border-color: var(--tw-orange); color: #fff; font-weight: 600; }
.tw-gallery-view { margin: 0; background: #fff; border: 1px solid var(--tw-line); border-radius: 4px; padding: 12px; }
.tw-gallery-view img { width: 100%; height: auto; display: block; border-radius: 2px; }
.tw-plans-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- contact ---------- */
.tw-contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
.tw-offices { display: grid; gap: 18px; }
.tw-office { border: 1px solid var(--tw-line); border-left: 3px solid var(--tw-orange); border-radius: 0 4px 4px 0; padding: 20px 22px; background: #fff; }
.tw-office h3 { font-size: 20px; margin: 0 0 8px; }
.tw-office h3 span { font-size: 13px; font-weight: 600; color: var(--tw-text); text-transform: uppercase; letter-spacing: .06em; margin-left: 8px; }
.tw-office-addr { color: var(--tw-text); margin: 0 0 10px; }
.tw-office i { color: var(--tw-orange); width: 22px; display: inline-block; }
.tw-office li { margin-bottom: 6px; }
.tw-office a { color: var(--tw-ink); }
.tw-office a:hover { color: var(--tw-orange); }
.tw-office-quick { border: 0; padding: 0; background: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tw-office-quick i { color: inherit; width: auto; }
.tw-form { background: var(--tw-soft); border: 1px solid var(--tw-line); border-radius: 4px; padding: 30px; }
.tw-form h3 { font-size: 22px; margin: 0 0 18px; }
.tw-form-row { margin-bottom: 16px; }
.tw-form label { display: block; font-weight: 600; color: var(--tw-slate); margin-bottom: 6px; font-size: 14px; }
.tw-form input, .tw-form textarea { width: 100%; border: 1px solid #d4d7de; border-radius: 4px; padding: 11px 13px; font-size: 15px; color: var(--tw-ink); background: #fff; font-family: inherit; }
.tw-form input:focus, .tw-form textarea:focus { outline: none; border-color: var(--tw-orange); box-shadow: 0 0 0 3px rgba(253, 135, 31, .18); }
.tw-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.tw-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.tw-form-status { margin: 0; font-size: 14px; }
.tw-form-status.ok { color: #1f8a46; }
.tw-form-status.err { color: #c62828; }

/* ---------- footer ---------- */
.tw-footer { background: var(--tw-slate-dark); color: #b3b7c3; font-size: 15px; }
.tw-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.4fr; gap: 40px; padding: 64px 0 48px; }
.tw-footer h2 { color: #fff; font-size: 15px; letter-spacing: .04em; margin: 4px 0 16px; }
.tw-footer a { color: #d7dae2; }
.tw-footer a:hover, .tw-footer a:focus { color: var(--tw-orange); text-decoration: none; }
.tw-footer li { margin-bottom: 9px; }
.tw-footer-logo { display: inline-block; background: #fff; border-radius: 4px; padding: 8px 12px; }
.tw-footer-logo img { height: 56px; width: auto; display: block; }
.tw-footer-about p { margin: 16px 0 12px; line-height: 1.6; max-width: 32em; }
.tw-footer-profile i { color: var(--tw-orange); margin-right: 4px; }
.tw-footer-contact i { color: var(--tw-orange); width: 22px; display: inline-block; }
.tw-social { display: flex; gap: 10px; margin-top: 14px; }
.tw-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.tw-social a:hover { background: var(--tw-orange); border-color: var(--tw-orange); color: #fff; }
.tw-footer-bar { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: 14px; }
.tw-footer-bar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.tw-footer-bar p { margin: 0; }
.tw-footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- smaller screens ---------- */
@media (max-width: 991px) {
  .tw-services-grid { grid-template-columns: 1fr 1fr; }
  .tw-plans { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .tw-plan { padding-left: 16px; padding-right: 16px; }
  .tw-price { font-size: 38px; }
  .tw-contact-grid { grid-template-columns: 1fr; }
  .tw-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .tw-services-grid, .tw-plans { grid-template-columns: 1fr; }
  .tw-plan.is-featured { order: -1; }
  .tw-gallery-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .tw-gallery-tab { white-space: nowrap; }
  .tw-form { padding: 22px; }
  .tw-compare { min-width: 0; font-size: 13px; table-layout: fixed; }
  .tw-compare th, .tw-compare td { padding: 8px 6px; }
  .tw-compare tbody th { padding-left: 12px; width: 40%; }
  .tw-compare thead th { font-size: 12px; line-height: 1.25; }
  .tw-compare thead th:first-child { padding-left: 12px; width: 40%; }
  .tw-compare caption { padding-left: 12px; }
  .tw-compare td { width: auto; }
  .tw-footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) { .tw-card, .tw-btn { transition: none; } }
/* Bootstrap 3 adds clearfix pseudo-elements to .container; keep them out of the flex bar */
.tw-footer-bar .container::before, .tw-footer-bar .container::after { display: none; }

/* ---------- main menu: titles with drop-down sub-items (Oct 2026) ---------- */
.tw-menu .tw-caret { font-size: 13px; margin-left: 3px; opacity: .8; }
.tw-sub-toggle { display: none; }
.tw-drop { list-style: none; margin: 0; padding: 8px; white-space: normal; }
.tw-drop a { display: block; padding: 10px 14px 10px 16px; border-radius: 3px; border-left: 3px solid transparent; text-decoration: none !important; }
.tw-drop a strong { display: block; font-family: Hind, sans-serif; font-size: 14px; font-weight: 600; color: var(--tw-slate); line-height: 1.3; }
.tw-drop a span { display: block; font-size: 13px; color: var(--tw-text); line-height: 1.35; margin-top: 2px; }
.tw-drop a:hover, .tw-drop a:focus { background: var(--tw-soft); border-left-color: var(--tw-orange); outline: none; }
.tw-drop a:hover strong, .tw-drop a:focus strong { color: var(--tw-orange); }
.tw-drop a:focus-visible { box-shadow: inset 0 0 0 2px var(--tw-orange); }

@media (min-width: 992px) {
  .tw-menu .tw-has-drop { position: relative; }
  .tw-menu .tw-has-drop > span { display: block; }
  .tw-drop {
    position: absolute; top: 100%; left: 0; z-index: 1001; width: 310px;
    background: #fff; border-top: 3px solid var(--tw-orange); border-radius: 0 0 4px 4px;
    box-shadow: 0 18px 40px rgba(33, 38, 51, .18);
    visibility: hidden; opacity: 0; transform: translateY(8px);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
  }
  .tw-menu .tw-has-drop:last-child .tw-drop, .tw-menu .tw-has-drop:nth-last-child(2) .tw-drop { left: auto; right: 0; }
  .tw-menu .tw-has-drop:hover > .tw-drop,
  .tw-menu .tw-has-drop:focus-within > .tw-drop,
  .tw-menu .tw-has-drop.is-open > .tw-drop {
    visibility: visible; opacity: 1; transform: none; transition: opacity .15s ease, transform .15s ease, visibility 0s;
  }
  .tw-menu .tw-has-drop:hover .tw-caret, .tw-menu .tw-has-drop.is-open .tw-caret { transform: rotate(180deg); }
  .tw-menu .tw-caret { transition: transform .15s; display: inline-block; }
}

/* phones and small tablets: the template shows the menu as a white list */
@media (max-width: 991px) {
  .tw-menu .tw-has-drop { position: relative; }
  .tw-menu .tw-caret { display: none; }
  .tw-sub-toggle {
    display: block; position: absolute; right: 4px; top: 4px; width: 40px; height: 40px;
    background: none; border: 0; color: var(--tw-slate); font-size: 20px; cursor: pointer;
  }
  .tw-sub-toggle i { transition: transform .15s; }
  .tw-sub-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
  .tw-drop { display: none; padding: 0 0 8px 12px; }
  .tw-has-drop.is-open > .tw-drop { display: block; }
  .tw-drop a { padding: 8px 12px; }
  .tw-drop a span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .tw-drop, .tw-caret, .tw-sub-toggle i { transition: none !important; } }

/* =====================================================================
   Header menu (redesigned Oct 2026) — replaces css/header-fix.css
   ===================================================================== */
.tw-header .logo { width: 140px; height: auto; max-height: none; line-height: normal; }
.tw-header .logo-wrap { padding: 14px 0; }
.tw-header .logo-img { width: auto; height: 64px; max-width: none; }
.tw-header .navbar { border-bottom: 0; }
.tw-nav .nav-item-child { font-family: Hind, sans-serif; font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: .01em; line-height: 24px; padding: 34px 11px 34px; background: none; border: 0; }
.tw-nav .nav-item-hover:after { content: ""; position: absolute; top: auto; bottom: 26px; left: 11px; width: 18px; height: 3px; border-radius: 2px; background: var(--tw-orange); opacity: 0; transition: opacity .2s; }
.tw-nav .nav-item:hover .nav-item-hover:after { opacity: 1; }
/* orange (not the old red) for the current and hovered item */
.header .tw-nav .nav-item-child:hover, .page-on-scroll .header .tw-nav .nav-item-child:hover, .header .tw-nav li.active .nav-item-child, .header .tw-nav .tw-dd-toggle[aria-expanded="true"] { color: var(--tw-orange); }
.tw-nav .nav-item.active .nav-item-hover:after { opacity: 1; }
.tw-dd-toggle { position: relative; cursor: pointer; }
.tw-dd-toggle .fa { margin-left: 2px; transition: transform .2s; }
.tw-dd-toggle[aria-expanded="true"] .fa { transform: rotate(180deg); }
.tw-dd-panel { display: none; }
.tw-dd-panel a { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 4px; color: var(--tw-ink); text-decoration: none; }
.tw-dd-panel a:hover, .tw-dd-panel a:focus { background: #fff6ee; text-decoration: none; }
.tw-dd-panel i { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #fff1e3; color: var(--tw-orange); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.tw-dd-panel strong { display: block; font-family: Hind, sans-serif; font-size: 15px; color: var(--tw-slate); line-height: 1.3; }
.tw-dd-panel small { display: block; font-size: 13px; color: var(--tw-text); line-height: 1.4; margin-top: 2px; }
.tw-nav-cta .tw-btn, .tw-nav > li.tw-nav-cta > a { display: flex; padding: 10px 18px; }

@media (min-width: 992px) {
  /* a soft shade at the top keeps the white menu readable on any slide */
  body:not(.page-on-scroll) .tw-header::before { content: ""; position: absolute; inset: 0 0 -40px 0; background: linear-gradient(rgba(20, 23, 33, .55), rgba(20, 23, 33, 0)); pointer-events: none; z-index: -1; }
  .tw-header .navbar { position: relative; }
  .tw-nav { white-space: nowrap; display: flex; align-items: center; }
  .tw-nav > li { float: none; }
  .tw-nav-cta { margin-left: 12px; }
  .tw-dd { position: relative; }
  .tw-dd-panel { position: absolute; top: calc(100% - 14px); right: 0; width: 340px; background: #fff; border-radius: 6px; box-shadow: 0 18px 44px rgba(20, 23, 33, .2); padding: 8px; white-space: normal; z-index: 1000; }
  .tw-dd:hover .tw-dd-panel, .tw-dd-toggle[aria-expanded="true"] + .tw-dd-panel { display: block; }
  .page-on-scroll .tw-header .navbar { box-shadow: 0 2px 16px rgba(20, 23, 33, .08); }
  .page-on-scroll .tw-header .logo-wrap { padding: 8px 0; }
  .page-on-scroll .tw-header .logo-img { height: 54px; }
  .page-on-scroll .header .tw-nav .nav-item-child { padding-top: 26px; padding-bottom: 26px !important; }
  .page-on-scroll .header .tw-nav .nav-item-hover:after { top: auto; bottom: 18px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .tw-header .logo { width: 110px; }
  .tw-header .logo-img { height: 54px; }
  .tw-nav .nav-item-child { font-size: 14px; padding-left: 7px; padding-right: 7px; }
  .tw-nav .nav-item-hover:after { left: 7px; }
  .tw-nav-cta { margin-left: 6px; }
  .tw-nav-cta .tw-btn { padding: 9px 12px; font-size: 13px; }
}
@media (max-width: 991px) {
  .tw-header .logo-img { height: 52px; }
  .tw-header .navbar-toggle { margin: 27px 0; }
  .tw-nav { padding: 6px 0 16px; }
  .tw-nav .nav-item-child { color: var(--tw-slate); padding: 11px 15px; display: block; width: 100%; text-align: left; }
  .tw-nav .nav-item-hover:after { display: none; }
  .tw-dd-toggle .fa { display: none; }
  .tw-dd-panel { display: block; padding: 0 8px 6px; }
  .tw-dd-toggle { pointer-events: none; color: var(--tw-text) !important; font-size: 13px !important; text-transform: uppercase; letter-spacing: .06em; padding-top: 16px !important; }
  .tw-nav-cta { padding: 10px 15px 0; }
  .tw-nav-cta .tw-btn { width: 100%; }
  .tw-header .navbar-collapse { max-height: calc(100vh - 106px); overflow-y: auto; }
}

/* =====================================================================
   Section titles and subtitles — one style for every section
   ===================================================================== */
.tw-head h2 { position: relative; padding-top: 20px; font-size: 34px; line-height: 1.2; letter-spacing: -.01em; text-transform: none; }
.tw-head h2::before { content: ""; position: absolute; top: 0; left: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--tw-orange); }
.tw-head p { font-size: 16px; line-height: 1.65; }
.row > .tw-head { margin-bottom: 0; }
.tw-head .tw-head-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; color: var(--tw-slate); text-decoration: underline; text-decoration-color: rgba(253, 135, 31, .6); text-underline-offset: 4px; }
.tw-head .tw-head-link i { color: var(--tw-orange); }
.tw-head .tw-head-link:hover { color: var(--tw-orange); }
@media (max-width: 767px) { .tw-head h2 { font-size: 28px; } }

/* =====================================================================
   Language button, cookie bar, page without banner (Oct 2026, v3)
   ===================================================================== */
.tw-lang { font-family: Hind, Cairo, sans-serif; }
.tw-nav .tw-lang .fa { margin-inline-end: 4px; opacity: .85; }
.tw-lang-mobile { display: none; }
@media (max-width: 991px) {
  .tw-lang-item { display: none; }
  .tw-lang-mobile { display: inline-block; float: right; margin: 32px 16px 0 0; font-weight: 600; color: var(--tw-slate); font-size: 15px; text-decoration: none !important; }
  .tw-lang-mobile:hover { color: var(--tw-orange); }
}
/* the "See the screens" part follows the packages on the same light background */
#tw-sec-packages .tw-packages { padding-bottom: 40px; }
.tw-screens { padding-top: 10px; padding-bottom: 90px; }
.tw-screens .tw-gallery { margin-top: 0; }
/* when the banner is switched off, the header is white from the start */
@media (min-width: 992px) {
  body.tw-no-banner .tw-header::before { display: none; }
  body.tw-no-banner .tw-header .navbar { background: #fff; box-shadow: 0 2px 16px rgba(20, 23, 33, .08); }
  body.tw-no-banner .tw-header .logo-img-main { display: none; }
  body.tw-no-banner .tw-header .logo-img-active { display: inline-block; }
  body.tw-no-banner .header .tw-nav .nav-item-child { color: var(--tw-slate); }
}
body.tw-no-banner { padding-top: 92px; }
/* cookie notice */
.tw-cookie { position: fixed; left: 20px; bottom: 20px; z-index: 1050; max-width: 440px; background: #fff; border-radius: 6px; box-shadow: 0 12px 40px rgba(20, 23, 33, .25); padding: 16px 18px; display: flex; gap: 14px; align-items: center; font-size: 14px; }
.tw-cookie[hidden] { display: none; }
.tw-cookie p { margin: 0; color: var(--tw-ink); }
.tw-cookie a { color: var(--tw-slate); font-weight: 600; text-decoration: underline; }
.tw-cookie .tw-btn { padding: 8px 16px; flex: none; }
@media (max-width: 575px) { .tw-cookie { left: 12px; right: 90px; bottom: 12px; } }

/* Partner logos of any shape sit in the same box, centred */
#tw-sec-partners .swiper-clients .swiper-slide { display: flex; align-items: center; justify-content: center; min-height: 190px; }
#tw-sec-partners .swiper-clients .swiper-slide > a { display: block; }
#tw-sec-partners .swiper-clients-img { max-height: 190px; object-fit: contain; }

/* Links to /#contact-form (request buttons on other pages, old proposal links) stop below the fixed header */
#contact-form { scroll-margin-top: 110px; }

/* ---------- Portfolio: a fixed grid, so the boxes always line up (the masonry layout jumped while videos loaded) ----------
   3 columns; Normal = 1 box (16:9), Wide = 2 columns (16:9), Tall = 2 rows (height comes from the boxes next to it). */
.tw-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 30px; }
.tw-work { position: relative; min-width: 0; background: #1f2330; overflow: hidden; }
.tw-work-small, .tw-work-wide { aspect-ratio: 16 / 9; }
.tw-work-wide { grid-column: span 2; }
.tw-work-tall { grid-row: span 2; min-height: 400px; }
.tw-work > .work, .tw-work > .tw-work-media, .tw-work .work > .work-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.tw-work-media video, .tw-work-media img, .tw-work-media iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; border: 0; object-fit: cover; background: #1f2330;
}
.tw-work .work { cursor: pointer; }
@media (max-width: 991px) {
    .tw-works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 767px) {
    .tw-works { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .tw-work-wide { grid-column: auto; }
    .tw-work-tall { grid-row: auto; min-height: 0; aspect-ratio: 9 / 14; }
}

/* ---------- Pop-up window (rebuilt Oct 2026; content: Admin → Pop-up window) ---------- */
.tw-pop { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.tw-pop[hidden] { display: none; }
.tw-pop-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 48, .72); opacity: 0; transition: opacity .25s; }
.tw-pop-card {
    position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto;
    background: #fff; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .25s, transform .25s;
}
.tw-pop.is-open .tw-pop-backdrop { opacity: 1; }
.tw-pop.is-open .tw-pop-card { opacity: 1; transform: none; }
.tw-pop-x {
    position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: #515769; font-size: 26px; line-height: 38px; text-align: center; cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.tw-pop-x span { display: block; font-size: 28px; line-height: 38px; color: inherit; }
.tw-pop-x:hover, .tw-pop-x:focus-visible { background: #fff; color: var(--tw-accent, #f7931e); outline: none; }
html[dir="rtl"] .tw-pop-x { right: auto; left: 10px; }
.tw-pop-media img { display: block; width: 100%; height: auto; border-radius: 10px 10px 0 0; }
.tw-pop-video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px 10px 0 0; overflow: hidden; }
.tw-pop-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tw-pop-body { padding: 26px 28px 30px; text-align: center; }
.tw-pop-body h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.3; color: #515769; }
.tw-pop-body p { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: #6b7080; }
.tw-pop-body p:last-child { margin-bottom: 0; }
.tw-pop-media + .tw-pop-body { padding-top: 22px; }
.tw-pop-card > .tw-pop-x + .tw-pop-body { padding-top: 46px; }
body.tw-pop-lock { overflow: hidden; }
@media (max-width: 480px) { .tw-pop { padding: 12px; } .tw-pop-body { padding: 20px 18px 24px; } .tw-pop-body h2 { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .tw-pop-backdrop, .tw-pop-card { transition: none; } }
