/* ==========================================================================
   Al Bosta — CMS layer
   --------------------------------------------------------------------------
   Additions on top of the approved design (style-en.css / style-ar.css) for
   things that only exist on the dynamic site: drop-down sub-menus managed in
   the admin, content written in the rich-text editor, and CMS form parts.
   Uses the design tokens and logical properties, so it works in LTR and RTL.
   ========================================================================== */

/* 01. Sub-menus (Admin → Menus) ============================================ */
.main-nav li { position: relative; }
.main-nav .has-sub > a { padding-inline-end: 1.35rem; }
.main-nav .has-sub > a::before {            /* small chevron */
  content: "";
  position: absolute;
  inset-inline-end: .55rem;
  top: 50%;
  width: 6px;
  height: 6px;
  border-inline-end: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  opacity: .7;
}
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  z-index: 10;
  display: block;
  min-width: 230px;
  margin: 0;
  padding: .5rem;
  list-style: none;
  background: var(--darker);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.main-nav .has-sub:hover > .sub-menu,
.main-nav .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu li { display: block; }
.main-nav .sub-menu a { padding: .6rem .85rem; border-radius: 6px; font-size: .875rem; white-space: nowrap; }
.main-nav .sub-menu a::after { display: none; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu a.active { background: rgba(255, 255, 255, .06); color: var(--primary); }

.mobile-subnav { list-style: none; margin: -.35rem 0 .6rem; padding: 0 0 0 1rem; padding-inline: 1rem 0; }
.mobile-subnav li { border: 0 !important; opacity: 1 !important; transform: none !important; }
.mobile-subnav a { padding: .45rem 0 !important; font-size: .9375rem !important; color: rgba(255, 255, 255, .65) !important; }
.mobile-subnav a:hover, .mobile-subnav a.active { color: var(--primary) !important; }

/* 02. Editor content ========================================================= */
.cms-content > :last-child { margin-bottom: 0; }
.cms-content img { max-width: 100%; height: auto; }
.cms-content table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.cms-content th, .cms-content td { padding: .6rem .75rem; border: 1px solid var(--border); }
.cms-content a:not(.btn) { color: var(--primary-text); text-decoration: underline; text-underline-offset: 3px; }
.cms-content a.btn { text-decoration: none; }
.cms-content p:empty { display: none; }

/* section heads written in the editor: <h2> + <p> (classes added by cms.js) */
.section-head--center .cms-head .section-lead { margin-inline: auto; }
.cms-head .section-lead + .section-lead { margin-top: .75rem; }

/* a paragraph holding only buttons = the design's button row */
.cms-content > p:has(> .btn) { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.cms-content > p:has(> .btn):last-child { margin-bottom: 0; }

/* hero slides: editor content inside .hero-slide__content */
.hero-slide__content p:not(.hero-slide__text):not(.eyebrow) { color: var(--gray-300); }

/* tech CTA + contact intro: text paragraphs get the design classes from cms.js */
.cms-tech > p:has(> .btn) { margin-top: 0; }
.brand-card__text > p:last-child { margin-bottom: 0; }

/* about story: the design's story points, icons drawn with CSS */
.story-points li::before {
  content: "";
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft) no-repeat center / 18px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8611A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E");
}
.story-points li:nth-child(3n+1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8611A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z'/%3E%3Cpath d='M6 18h12'/%3E%3Cpath d='M6 14h12'/%3E%3Crect width='12' height='12' x='6' y='10'/%3E%3C/svg%3E");
}
.story-points li:nth-child(3n+2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8611A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}
.story-points li:nth-child(3n)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8611A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.477 12.89 17 22l-5-3-5 3 1.523-9.11'/%3E%3C/svg%3E");
}

/* help CTA written in the editor: <h2> + <p> … + last <p> holding the buttons */
.cms-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; row-gap: 0; align-items: center; }
.cms-cta > * { grid-column: 1; margin: 0; }
.cms-cta > p:last-child:has(.btn) { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: .75rem; max-width: none; }
@media (max-width: 767.98px) {
  .cms-cta { grid-template-columns: 1fr; }
  .cms-cta > p:last-child:has(.btn) { grid-column: 1; grid-row: auto; margin-top: 2rem; }
}

/* quote sidebar written in the editor */
.cms-sidebar > h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 1.1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--border); }

/* generic page */
.cms-page { max-width: 880px; }
.cms-page .story-lead-wrap p { font-size: 1.0625rem; line-height: 1.8; color: var(--text); }
.cms-page .cms-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .85rem; }
.cms-page .cms-content p, .cms-page .cms-content li { line-height: 1.85; color: var(--text-body); }

/* 03. CMS forms ================================================================ */
.check-count { color: var(--text-muted); }
.check-count strong { color: var(--primary-text); }
.file-upload .file-drop small { display: block; }
.form-status.mb-3:not(:empty) { display: block; }
.doc-row--simple { grid-template-columns: minmax(0, 1fr) auto auto; }

/* 04. Footer social links (Admin → Social Media) ================================= */
.footer-social { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; }
.footer-social a { display: inline-flex; padding: .35rem .75rem; border: 1px solid rgba(255, 255, 255, .15); border-radius: 100px; font-size: .8125rem; }
.footer-social a:hover { border-color: var(--primary); color: var(--primary); }

/* editors may wrap a lone eyebrow span in a paragraph — keep the design spacing */
.cms-content > p:has(> .eyebrow:only-child) { margin: 0; }
.cms-content p.eyebrow { display: inline-flex; }

/* 05. 2026 logo ==============================================================
   Two-line logo (icon + AlBosta / Plastic Pipes & Fittings, 800×222). The image has no inner padding,
   so its box is the logo itself: it lines up with the container edge and is centred on the nav row. */
.brand { align-items: center; line-height: 0; }
.brand img { height: 4rem; width: auto; }               /* rem: grows with the root size on very large screens (section 14) */
.is-scrolled .brand img { height: 3.25rem; }
.mobile-menu .offcanvas-header img { height: 48px; width: auto; }
.footer-brand a { display: inline-block; line-height: 0; }
.footer-brand img { height: 3.875rem; width: auto; }
/* 1200–1399 the container is only 1140px: logo + 8 links + actions must fit inside it (they overflowed the
   right edge at 1280 / 1366) — the compact nav of style.css (1200–1299) is used for this whole range */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-header .container { gap: .75rem; }
  .main-nav a { padding-inline: .45rem; font-size: .8125rem; }
  .main-nav a::after { inset-inline: .45rem; }
  .header-actions { gap: .4rem; }
  .header-cta { --bs-btn-padding-x: .9rem; }
  .brand img { height: 48px; }
  .is-scrolled .brand img { height: 44px; }
}
@media (max-width: 1199.98px) { .brand img { height: 56px; } .is-scrolled .brand img { height: 50px; } }
@media (max-width: 480px) { .brand img, .is-scrolled .brand img { height: 46px; } }
@media (max-width: 359.98px) { .brand img, .is-scrolled .brand img { height: 40px; } }

/* 06. Brand tiles with a short description (home) ==============================
   Hover / keyboard focus shows a small card above the logo; on touch screens cms.js opens it on the first tap. */
.brand-tile { padding: 0; }
.brand-tile__logo { display: grid; place-items: center; width: 100%; height: 100%; min-height: inherit; padding: .5rem 1rem; }
.brand-tile__logo img { max-height: 92px; max-width: 100%; width: auto; height: auto; filter: grayscale(.15); transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease); }
.brand-tile:hover .brand-tile__logo img, .brand-tile.is-open .brand-tile__logo img { transform: scale(1.06); filter: none; }
.brand-tile__info {
  position: absolute;
  z-index: 6;
  bottom: calc(100% + 12px);
  left: 50%;
  width: min(300px, calc(100vw - 2rem));
  display: grid;
  gap: .45rem;
  padding: 1rem 1.1rem 1.05rem;
  text-align: start;
  background: var(--surface);
  color: var(--text-body);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
  pointer-events: none;
}
.brand-tile__info::after {               /* arrow pointing at the logo */
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: inherit;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}
.brand-tile__info::before {              /* invisible bridge so the pointer can move onto the card */
  content: "";
  position: absolute;
  inset: 100% 0 -14px;
}
.brand-tile__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.brand-tile__name { font-family: var(--font-heading); font-size: 1rem; color: var(--text); letter-spacing: .02em; }
.brand-tile__country { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-text); }
.brand-tile__text { font-size: .8125rem; line-height: 1.6; color: var(--text-muted); }
.brand-tile__more { display: inline-flex; align-items: center; gap: .35rem; font-size: .8125rem; font-weight: 600; color: var(--primary-text); }
.brand-tile__more:hover { text-decoration: underline; }
.brand-tile.is-open .brand-tile__info,
.brand-tile:focus-within .brand-tile__info { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
@media (hover: hover) {
  .brand-tile:hover .brand-tile__info { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
}
.brand-tile:hover, .brand-tile:focus-within, .brand-tile.is-open { z-index: 7; }
/* two columns on phones: keep the card on screen by aligning it with the tile's outer edge */
@media (max-width: 768px) {
  .brand-tile__info { left: auto; inset-inline-start: 0; transform: translateY(8px); width: min(280px, calc(200% - 1px)); }
  .brand-tile:nth-child(even) .brand-tile__info { inset-inline-start: auto; inset-inline-end: 0; }
  .brand-tile.is-open .brand-tile__info, .brand-tile:focus-within .brand-tile__info { transform: none; }
  .brand-tile__info::after { left: auto; inset-inline-start: 25%; }
  .brand-tile:nth-child(even) .brand-tile__info::after { inset-inline-start: auto; inset-inline-end: 25%; }
  .brand-tile__logo img { max-height: 64px; }
}

/* 07. Catalogue cards with the real cover · grid / list views ==================== */
.catalog-toolbar__end { display: flex; align-items: center; gap: 1rem; margin-inline-start: auto; }
.view-toggle { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); }
.view-toggle__btn { display: grid; place-items: center; width: 38px; height: 34px; border: 0; border-radius: 100px; background: transparent; color: var(--text-muted); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.view-toggle__btn .icon { width: 18px; height: 18px; }
.view-toggle__btn:hover { color: var(--text); }
.view-toggle__btn[aria-pressed="true"] { background: var(--primary); color: var(--white); }
.view-toggle__btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.cat-grid--covers { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.cat-grid--covers.cat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cat-card--book .cat-card__media { aspect-ratio: 600 / 848; background: var(--surface-2); padding: 0; }
.cat-card--book .cat-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cat-card:not(.cat-card--book) .cat-card__media img { object-fit: contain; }
.cat-card__title { font-size: 1.0625rem; line-height: 1.35; }
.cat-card__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-top: auto; padding-top: .85rem; border-top: 1px dashed var(--border); }
.cat-card__facts { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--text-muted); white-space: nowrap; }
.cat-card__facts .icon { color: var(--primary); width: 15px; height: 15px; }
.cat-card__actions { display: inline-flex; align-items: center; gap: .75rem; margin-inline-start: auto; }
.cat-card .cat-card__actions .link-arrow { margin-top: 0; }
.cat-card__download { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); color: var(--text); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.cat-card__download .icon { width: 16px; height: 16px; }
.cat-card__download:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* Home "Explore Our Catalogs": wide cards (878×494) with the tile's landscape image shown whole —
   no crop, no hover zoom; an image of another shape is letterboxed on a soft panel instead of cut. */
.catalog-card__media--whole { display: block; aspect-ratio: 878 / 494; overflow: hidden; background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.catalog-card__media--whole img { display: block; width: 100%; height: 100%; object-fit: contain; }
.catalog-card:hover .catalog-card__media--whole img { transform: none; }

/* list view: covers on the side, one catalogue per row */
.cat-grid--covers.is-list { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.cat-grid--covers.is-list .cat-card { flex-direction: row; align-items: stretch; }
.cat-grid--covers.is-list .cat-card__media { flex: 0 0 132px; width: 132px; aspect-ratio: auto; border-bottom: 0; border-inline-end: 1px solid var(--border); }
.cat-grid--covers.is-list .cat-card:not(.cat-card--book) .cat-card__media { flex-basis: 260px; width: 260px; }
.cat-grid--covers.is-list .cat-card__body { justify-content: center; padding: 1.15rem 1.5rem; }
.cat-grid--covers.is-list .cat-card__text { -webkit-line-clamp: 3; max-width: 760px; }
.cat-grid--covers.is-list .cat-card__foot { border-top: 0; padding-top: .25rem; margin-top: .25rem; justify-content: flex-start; }
.cat-grid--covers.is-list .cat-card:hover { transform: translateY(-2px); }

@media (max-width: 1199.98px) { .cat-grid--covers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .cat-grid--covers, .cat-grid--covers.cat-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .catalog-toolbar__end { width: 100%; justify-content: space-between; margin-inline-start: 0; }
  .cat-grid--covers { gap: 1rem; }
  .cat-grid--covers .cat-card__body { padding: .9rem 1rem 1rem; }
  .cat-grid--covers .cat-card__text { display: none; }
  .cat-grid--covers .cat-card__title { font-size: .9375rem; }
  .cat-grid--covers .cat-card .link-arrow { font-size: .8125rem; white-space: nowrap; }
  /* narrow two-column cards: the download button stays in the list view and on the catalogue page */
  .cat-grid--covers:not(.is-list) .cat-card__download { display: none; }
  .cat-grid--covers:not(.is-list) .cat-card__actions { margin-inline-start: 0; }
  .cat-grid--covers.is-list .cat-card__media { flex-basis: 92px; width: 92px; }
  .cat-grid--covers.is-list .cat-card__body { padding: .85rem 1rem; }
}
@media (max-width: 400px) {
  .cat-grid--covers:not(.is-list) .cat-card__facts { display: none; }
}

/* download centre rows + catalogue page frame with the real (portrait) cover */
.doc-row--book { grid-template-columns: 76px minmax(0, 1fr) auto auto; }
.doc-row--book .doc-row__cover { aspect-ratio: 600 / 848; }
.doc-row--book .doc-row__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@media (max-width: 1199.98px) { .doc-row--book { grid-template-columns: 76px minmax(0, 1fr) auto; } }
@media (max-width: 767.98px) {
  .doc-row--book { grid-template-columns: 64px minmax(0, 1fr); }
  .doc-row--book .doc-row__meta, .doc-row--book .doc-row__actions { grid-column: 1 / -1; }
}
.cover-frame--book { max-width: 400px; margin-inline: auto; }
.cover-frame--book .cover-frame__img { overflow: hidden; }
.cover-frame--book .cover-frame__img img { aspect-ratio: 600 / 848; object-fit: cover; object-position: top center; }

/* 08. Branches on the Contact page ============================================== */
.branch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.branch-grid--single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.branch-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.branch-card:hover { box-shadow: var(--shadow); border-color: var(--primary-line); }
.branch-card__map { position: relative; height: 240px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.branch-card__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
[data-theme="dark"] .branch-card__map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }
.branch-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.75rem 1.75rem; }
.branch-card__label { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; padding: .3rem .7rem; margin-bottom: .75rem; border-radius: 100px; background: var(--primary-soft); color: var(--primary-text); font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.branch-card__label .icon { width: 14px; height: 14px; }
.branch-card__name { font-size: 1.625rem; font-weight: 800; margin: 0 0 .65rem; }
.branch-card__address { display: grid; gap: .15rem; margin: 0 0 1.25rem; font-style: normal; font-size: .9375rem; line-height: 1.6; color: var(--text-body); }
.branch-card__address span:first-child { font-weight: 600; color: var(--text); }
/* icon · label · value: the value sits right after the label (start side in both directions — the dir="ltr"
   phone/fax spans used to stretch the column and end up on the far left in Arabic); the rows share the
   label column (subgrid) so the values still line up */
.branch-card__contacts { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: 20px max-content minmax(0, 1fr); gap: .6rem; }
.branch-card__contacts li { display: grid; grid-column: 1 / -1; grid-template-columns: 20px 90px minmax(0, 1fr); grid-template-columns: subgrid; align-items: center; column-gap: .75rem; font-size: .9375rem; }
.branch-card__contacts li > :last-child { justify-self: start; }
.branch-card__contacts .icon { width: 18px; height: 18px; color: var(--primary); }
.branch-card__key { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.branch-card__contacts a { color: var(--text); font-weight: 600; word-break: break-word; }
.branch-card__contacts a:hover { color: var(--primary-text); }
.branch-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; }
.branch-card__actions .btn { display: inline-flex; align-items: center; gap: .45rem; }
@media (max-width: 991.98px) { .branch-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575.98px) {
  .branch-card__map { height: 200px; }
  .branch-card__body { padding: 1.25rem; }
  .branch-card__contacts { grid-template-columns: 20px minmax(0, 1fr); }
  .branch-card__contacts li { grid-template-columns: 20px minmax(0, 1fr); grid-template-columns: subgrid; }
  .branch-card__key { display: none; }
  .branch-card__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* 09. Download centre · list ↔ grid of covers ===================================== */
.doc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.doc-toolbar .filter-count { margin: 0; }
.doc-list:not(.is-list) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.doc-list:not(.is-list) .doc-row { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; align-items: stretch; gap: .85rem; padding: .85rem .85rem 1rem; }
.doc-list:not(.is-list) .doc-row__cover { aspect-ratio: 600 / 848; }
.doc-list:not(.is-list) .doc-row__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doc-list:not(.is-list) .doc-row:not(.doc-row--book) .doc-row__cover img { object-fit: contain; object-position: center; }
.doc-list:not(.is-list) .doc-row__meta,
.doc-list:not(.is-list) .doc-row__actions { grid-column: auto; grid-row: auto; }
.doc-list:not(.is-list) .doc-row__meta { flex-wrap: wrap; gap: .35rem 1rem; }
.doc-list:not(.is-list) .doc-row__actions { flex-direction: row; }
.doc-list:not(.is-list) .doc-row__actions .btn { flex: 1; justify-content: center; padding-inline: .5rem; }
@media (max-width: 1199.98px) { .doc-list:not(.is-list) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .doc-list:not(.is-list) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; } }
@media (max-width: 479.98px) {
  .doc-list:not(.is-list) .doc-row { padding: .6rem .6rem .8rem; gap: .6rem; }
  .doc-list:not(.is-list) .doc-row__title { font-size: .9375rem; }
  .doc-list:not(.is-list) .doc-row__actions { flex-direction: column; }
}

/* 10. Footer · branches + credit ================================================= */
.footer-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.footer-branch__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--white); margin: 0 0 .85rem; }
.footer-branch__label { font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.footer-branch .footer-contact { margin: 0; gap: .65rem; }
.footer-branch .footer-contact a { color: var(--gray-300); line-height: 1.6; transition: color var(--dur) var(--ease); }
.footer-branch .footer-contact a:hover { color: var(--primary); }
.footer-bottom__end { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; }
.footer-credit a { color: var(--white); font-weight: 600; }
.footer-credit a:hover { color: var(--primary); }
@media (max-width: 575.98px) { .footer-branches { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767.98px) { .footer-bottom__end { flex-direction: column; } }

/* 11. Company profile (About) ===================================================== */
.profile-card { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius-lg); background: var(--darker); color: var(--gray-300); overflow: hidden; }
.profile-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 120% at 100% 0%, rgba(232, 97, 26, .3), transparent 60%); pointer-events: none; }
.profile-card > * { position: relative; }
.profile-card__doc { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 600 / 848; padding: 1.4rem 1.2rem; border-radius: var(--radius); background: linear-gradient(160deg, #23262b 0%, #15171a 100%); border: 1px solid rgba(255, 255, 255, .1); border-inline-start: 6px solid var(--primary); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); transform: rotate(calc(var(--dir) * -3deg)); transition: transform var(--dur) var(--ease); }
.profile-card__doc:hover { transform: rotate(0) translateY(-4px); }
.profile-card__doc img { width: 100%; height: auto; }
.profile-card__doc-title { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--white); }
.profile-card__doc-year { font-size: 2.5rem; font-weight: 800; line-height: 1; color: var(--primary); }
.profile-card__title { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); font-weight: 700; color: var(--white); margin: .25rem 0 .75rem; }
.profile-card__text { max-width: 640px; line-height: 1.8; margin-bottom: 1.25rem; }
.profile-card__meta { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.5rem; padding: 0; font-size: .875rem; }
.profile-card__meta li { display: inline-flex; align-items: center; gap: .4rem; }
.profile-card__meta .icon { color: var(--primary); }
.profile-card__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.profile-card__actions .btn { display: inline-flex; align-items: center; gap: .45rem; }
@media (max-width: 767.98px) {
  .profile-card { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .profile-card__doc { width: 160px; margin-inline: auto; }
  .profile-card__text { margin-inline: auto; }
  .profile-card__meta, .profile-card__actions { justify-content: center; }
  .profile-card__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* 12. Vision & Mission (About) ==================================================== */
.vm-content > h2 { text-align: center; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 700; margin: 0 0 clamp(1.75rem, 3vw, 2.5rem); }
.vm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.vm-card { position: relative; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.vm-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.vm-card h3 { font-size: 1.375rem; font-weight: 700; margin: 0 0 .85rem; color: var(--text); }
.vm-card p { margin: 0; font-size: 1rem; line-height: 1.85; color: var(--text-body); }
@media (max-width: 767.98px) { .vm-grid { grid-template-columns: minmax(0, 1fr); } }

/* 13. Brands page · logo + name + one intro line =================================== */
.brand-intros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.brand-intro { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.25rem 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); scroll-margin-top: calc(var(--header-h-sm) + 1rem); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.brand-intro:hover { border-color: var(--primary-line); box-shadow: var(--shadow); transform: translateY(-4px); }
.brand-intro:target { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow); }
/* a shorter box (5:2) that the logo fills: the logo files are 640×300 with little margin of their own */
.brand-intro__logo { display: grid; place-items: center; width: 100%; aspect-ratio: 5 / 2; padding: .5rem .75rem; margin-bottom: 1rem; overflow: hidden; background: var(--logo-tile); border: 1px solid var(--border); border-radius: var(--radius); }
.brand-intro__logo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; transition: transform var(--dur) var(--ease); }
.brand-intro:hover .brand-intro__logo img { transform: scale(1.05); }
.brand-intro__mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary); font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; }
.brand-intro__name { font-size: 1.25rem; font-weight: 700; margin: 0 0 .45rem; }
.brand-intro__text { margin: 0; max-width: 340px; font-size: .9375rem; line-height: 1.65; color: var(--text-body); }
@media (max-width: 991.98px) { .brand-intros { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .brand-intros { grid-template-columns: minmax(0, 1fr); gap: 1rem; } .brand-intro { padding: 1.25rem; } }

/* 14. Large & high-resolution screens ================================================
   The design is drawn for 1320px of content. On wider screens that column became a narrow strip with very wide
   empty margins (≈300px a side at 1920, ≈620px at 2560). From 1600px the content gets wider in steps, and from
   2200px the whole layout (text, spacing, components — all in rem) scales up with the root size, so sections keep
   the proportions of the approved design instead of floating in empty space. ≤1599px is unchanged. */
/* reading widths in rem (same size at 16px) so they grow together with the text on big screens */
.section-head--center { max-width: 38.75rem; }
.section-lead { max-width: 28.75rem; }
.section-lead--wide { max-width: 40rem; }
.hero-slide__content { max-width: 48.5rem; }
.hero-slide__text { max-width: 38.25rem; }
.tech-cta__content { max-width: 42.5rem; }
.tech-cta__text { max-width: 29.5rem; }
.footer-brand p { max-width: 20rem; }
.help-cta p { max-width: 35rem; }

@media (min-width: 1600px) { .container { max-width: 1440px; } }   /* leaves ≥70px a side for the project slider arrows */
@media (min-width: 1800px) { .container { max-width: 1640px; } }
@media (min-width: 2200px) { html { font-size: 106.25%; } .container { max-width: 1880px; } }   /* 17px */
@media (min-width: 2500px) { html { font-size: 112.5%; } .container { max-width: 2120px; } }   /* 18px */
@media (min-width: 3000px) { html { font-size: 125%; } .container { max-width: 2480px; } }     /* 20px */
@media (min-width: 3600px) { html { font-size: 137.5%; } .container { max-width: 2960px; } }   /* 22px — 4K at 100% */
/* project cards are 3:4 but capped at 600px high — on wide containers that cap made them narrower than their
   slides (gaps between cards). Let them fill the slide with a slightly squarer shape instead. */
@media (min-width: 1600px) { .project-card { max-height: none; aspect-ratio: 4 / 5; } }
@media (min-width: 2200px) { .project-card { aspect-ratio: 10 / 11; } }
/* keep comfortable line lengths in the wide two-column text blocks */
@media (min-width: 1600px) { .about-content { max-width: 46rem; } }
@media (min-width: 1600px) {
  /* reading pages (news article + sidebar) keep the designed 1320px measure, centred — the wider container
     made article lines ~150–190 characters long */
  .article-layout { max-width: 82.5rem; margin-inline: auto; }
  /* About / catalogue / project intros: text column stays at a comfortable line length */
  .story-content, .catalog-intro__text { max-width: 50rem; }
  /* the old project photos are small (215–800px): keep the overview photo near its designed size */
  .cover-frame:has(.project-photo) { max-width: 36rem; margin-inline: auto; }
}

/* 15. Developer brief · Nov 2026 ===================================================
   (a) Slider + inner-page cover: no zoom movement (images keep their real framing) */
.hero-slide__media img, .hero-slide__media video { transform: none; transition: none; }
.page-hero__bg img { animation: none; }
.page-hero__lead { max-width: 46rem; margin: -.25rem 0 1.25rem; font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); color: rgba(255, 255, 255, .82); }

/* (b) Brands page: the whole card opens the brand page */
.brand-intro { position: relative; }
.brand-intro__name a { color: inherit; }
.brand-intro__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.brand-intro__name a:focus-visible { outline: none; }
.brand-intro:has(a:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
.brand-intro__more { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: 1rem; font-size: .875rem; font-weight: 600; color: var(--primary-text); }
.brand-intro__more .icon { transition: transform var(--dur) var(--ease); }
.brand-intro:hover .brand-intro__more .icon-dir { transform: scaleX(var(--dir)) translateX(4px); }
.section-head .cms-head .section-kicker { font-size: 1.125rem; font-weight: 600; color: var(--text); margin-bottom: .5rem; }

/* (c) Brand detail page */
.brand-detail__card { position: sticky; top: calc(var(--header-h-sm) + 1.5rem); padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.brand-detail__logo { display: grid; place-items: center; aspect-ratio: 32 / 15; padding: 1rem; background: var(--logo-tile); border: 1px solid var(--border); border-radius: var(--radius); }
.brand-detail__logo img { max-width: 100%; height: auto; }
.brand-detail__badge { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; padding: .4rem .85rem; border-radius: 100px; background: var(--primary); color: var(--white); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; }
.brand-detail__badge .icon { width: 16px; height: 16px; }
.brand-detail__facts { margin: 1.1rem 0 0; display: grid; gap: .6rem; }
.brand-detail__facts > div { display: flex; justify-content: space-between; gap: 1rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.brand-detail__facts dt { font-size: .8125rem; font-weight: 600; color: var(--text-muted); }
.brand-detail__facts dd { margin: 0; font-weight: 700; color: var(--text); }
.brand-detail__title { margin-bottom: 1rem; }
.brand-detail__text p { font-size: 1.0625rem; line-height: 1.85; color: var(--text-body); }
.brand-lines { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .75rem; }
.brand-lines li { position: relative; padding: .95rem 1.1rem; padding-inline-start: 2.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); line-height: 1.6; color: var(--text-body); }
.brand-lines li::before { content: ""; position: absolute; inset-inline-start: 1.1rem; top: 1.35rem; width: .7rem; height: .7rem; border-radius: 50%; border: 3px solid var(--primary); }
.brand-detail__none { color: var(--text-muted); }
.brand-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.brand-strip a { display: grid; place-items: center; height: 100%; aspect-ratio: 32 / 15; padding: .6rem; background: var(--logo-tile); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.brand-strip a:hover { border-color: var(--primary); transform: translateY(-3px); }
.brand-strip img { max-width: 100%; height: auto; }
.brand-strip span { font-weight: 800; color: #1b1d21; letter-spacing: .06em; }
@media (max-width: 991.98px) { .brand-detail__card { position: static; max-width: 420px; } .brand-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .brand-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; } }

/* (d) Projects: static cards (no pages), place line, 24 at a time */
.proj-card--static { cursor: default; }
.proj-card--static .proj-card__media { overflow: hidden; background: var(--white); }
.proj-card--static .proj-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj-card__place { display: flex; align-items: flex-start; gap: .35rem; margin: 0 0 .5rem; font-size: .875rem; font-weight: 500; color: var(--text); }
.proj-card__place .icon { flex: none; width: 15px; height: 15px; margin-top: .2rem; color: var(--primary); }
.proj-card--static .proj-card__text { margin: auto 0 0; padding-top: .6rem; border-top: 1px solid var(--border); font-size: .8125rem; }
.proj-card.is-paged { display: none; }
.load-more { display: flex; justify-content: center; margin-top: 2.25rem; }
.load-more[hidden] { display: none; }
.project-card__place { display: flex; align-items: center; gap: .35rem; }
.project-card__place .icon { width: 15px; height: 15px; color: var(--primary); }

/* (e) About Us sections (written as <h2> blocks in the page editor) */
.about-block__body > h2 { font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem); font-weight: 700; line-height: 1.2; margin: 0 0 1.5rem; }
.about-block__body p { font-size: 1.0625rem; line-height: 1.85; color: var(--text-body); }
.about-block--split .about-block__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: start; }
.about-block--split .about-block__body > h2 { position: relative; padding-top: 1.1rem; }
.about-block--split .about-block__body > h2::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--primary); }
.about-split > p:last-child { margin-bottom: 0; }
.about-block__body .about-quote { font-family: var(--font-heading); font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem); font-weight: 700; line-height: 1.45; color: var(--text); padding-inline-start: 1.1rem; border-inline-start: 4px solid var(--primary); }
.about-logos { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.about-logos a { display: grid; place-items: center; aspect-ratio: 32 / 15; padding: .5rem; background: var(--logo-tile); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.about-logos a:hover { border-color: var(--primary); transform: translateY(-3px); }
.about-logos img { max-width: 100%; height: auto; }
.about-block--cards .about-block__body > h2 { text-align: center; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.values-grid, .audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.value-card, .audience-card { padding: clamp(1.4rem, 2.5vw, 2rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.value-card { border-top: 4px solid var(--primary); }
.value-card:hover, .audience-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.value-card h3, .audience-card h3 { font-size: 1.1875rem; font-weight: 700; margin: 0 0 .5rem; color: var(--text); }
.about-block__body .value-card p, .about-block__body .audience-card p { margin: 0; font-size: .9875rem; line-height: 1.7; }
.audience-card h3::before { content: ""; display: inline-block; width: .55rem; height: .55rem; margin-inline-end: .55rem; border-radius: 50%; background: var(--primary); vertical-align: middle; }
.glance-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.glance-grid > li { padding: 1.4rem 1.5rem; background: var(--surface); font-size: 1rem; font-weight: 500; line-height: 1.6; color: var(--text); }
.glance-grid strong { display: block; margin-bottom: .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-text); }
.glance-grid .glance-value { display: block; }
.supply-list { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; display: grid; gap: .6rem; }
.supply-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.supply-list strong { font-weight: 700; color: var(--text); }
.supply-list li { color: var(--primary-text); font-weight: 600; }   /* brand names (text after the label) */
.sector-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.sector-list li { padding: .7rem 1.35rem; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; color: var(--text); }
[dir="rtl"] .glance-grid strong { letter-spacing: 0; }
@media (max-width: 991.98px) {
  .about-block--split .about-block__body { grid-template-columns: minmax(0, 1fr); }
  .values-grid, .audience-grid, .glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .values-grid, .audience-grid, .glance-grid { grid-template-columns: minmax(0, 1fr); }
  .supply-list li { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .about-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
