/* ===========================================================================
   style.css - site-level stylesheet for the CT Design website.
   Linked LAST in <head> of every page, so rules here win over the theme
   stylesheets at equal specificity. This is the place for your own CSS.

   Layer 1 (theme / vendor - generated, do not hand-edit; each page loads the
            subset it needs):
              header-footer-elementor.css   jkit-main.css   jkiticon.css
              hfe-widgets-frontend.css      jeg-dynamic-styles.css
              elementor-frontend-lite.min.css
              elementor-animations.min.css
              elementor-widget-icon-list.min.css
              swiper.min.css    tiny-slider.css    sweetalert2.min.css
              cute-alert.css    font-awesome-all.min.css
              font-awesome-v4-shims.min.css
              metform-ui.css    metform-style.css  metform-text-editor.css
              post-8.css        (theme globals)
              post-NNN.css      (one per page: 122 about, 127 home,
                                 142 services, 155 portfolio, 163/221 contact)

   Layer 2 (this file) - site-wide overrides.

   NOTE: keep asset paths relative to css\ , e.g. url("../images/foo.jpg").
   =========================================================================== */

/* --- 1. Design tokens --------------------------------------------------- */
:root {
  /* Colours sampled from the existing theme so overrides stay on-brand. */
  --ct-ink:        #1a1a1a;
  --ct-muted:      #6b6b6b;
  --ct-line:       #e4e4e4;
  --ct-bg:         #f9f9f9;
  --ct-surface:    #ffffff;
  --ct-accent:     #b08d4f;
  /* Layout */
  --ct-max-width:  1240px;
  --ct-gutter:     24px;
  --ct-radius:     6px;
}

/* --- 2. Site-wide overrides --------------------------------------------
   Nearly empty on purpose: the theme stylesheets already carry the design.
   Add rules here and they will apply to every page. Example:
       .elementor-button { letter-spacing: .06em; }
   ---------------------------------------------------------------------- */

/* The header logo is a link to the home page. Every page now wraps its header
   <img> in <a class="ct-logo-link" href="index.html" aria-label="...">; see
   section 5c for the phone sizing of that logo.

   The wrapper has to be invisible to layout, or it changes the header on every
   viewport. Elementor sets `.elementor-widget-image a { display: inline-block }`,
   which makes the <a> a box of its own: as an inline-block its baseline is its
   last line box rather than the image's middle, so the widget's line box grows
   by the 14px strut (~22px measured) and the header row swells with it. Making
   the <a> a plain inline element removes it from the box tree altogether - the
   inline-block image inside it still lays out and still aligns
   `vertical-align: middle`, exactly as it did before it was wrapped. Measured
   result: the image box is 44x44 on a phone and 78x78 on desktop, byte-identical
   to the unwrapped image, while the link's own box is 44x45 and 78x48. Do not
   "improve" this to display: block - that would
   stretch the clickable area across the whole column instead of hugging the
   logo. */
.elementor-widget-image a.ct-logo-link {
  display: inline;
  line-height: 0;
  /* A non-replaced inline box is only as tall as its font's metrics - 21px of
     a 44px image - so the link's own box, and with it the region a browser
     hit-tests and the audit measures, is smaller than the logo it wraps.
     Vertical padding is the one thing that grows that box without touching the
     line box: padding on an inline element never affects line height, so the
     header row still measures 64px, while the link itself now measures 44x45
     and passes the 40x34 tap-target floor the audit applies. */
  padding: 12px 0;
  /* Without this the <img> inherits the theme's link colour
     (rgb(168,123,55)) instead of the body colour it had before. Nothing paints
     it while the image loads - a replaced element shows no currentColor - but
     it would show in the alt text of a broken image, and it is the one
     difference the desktop before/after comparison would otherwise report. */
  color: inherit;
}

/* Home hero background - index.html section .elementor-element-62f414aa
   ("Unique Architect With Ideas"). The captured rule in post-127.css points
   at images/index-title-band.jpg; this restores the artwork the live site
   uses, copied from the source site to images/hero-terraced-atrium.jpg
   (originally wp-content/uploads/2024/09/library_t20_kLLovK.jpg, 1920x1440).
   Selector and specificity are copied from post-127.css; style.css is linked
   last, so this declaration wins on cascade order. Position/size/overlay are
   left to the theme rules (0px 80%, cover, no-repeat, #000 at 45%). */
.elementor-127 .elementor-element.elementor-element-62f414aa:not(.elementor-motion-effects-element-type-background),
.elementor-127 .elementor-element.elementor-element-62f414aa > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-image: url("../images/hero-terraced-atrium.jpg");
}

/* --- 3. Accessibility --------------------------------------------------- */
/* Visible keyboard focus - the theme removes outlines in places. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ct-accent);
  outline-offset: 2px;
}

/* The enquiry form is far down contact.html; offset the scroll target so the
   heading above it stays visible when the CTA button jumps there. */
#metform-wrap-46c07316-221 { scroll-margin-top: 90px; }

/* --- 3a. Entrance animations always play --------------------------------
   The Elementor slide-ins are a core part of this design (28 elements on the
   homepage: fadeInLeft / fadeInRight / fadeInUp), so they are deliberately
   NOT suppressed when the OS reports "reduce motion". Two independent rules
   would otherwise stop them:

     1. elementor-frontend-lite.min.css carries Elementor's own
        @media (prefers-reduced-motion:reduce) { .animated { animation:none } }.
        The `animation` shorthand resets animation-duration to 0s, which is
        what actually kills the sweep. It does NOT win on animation-name:
        elementor-animations.min.css is loaded later and declares
        .fadeInLeft/.fadeInRight/.fadeInUp { animation-name: <name> }.
     2. This file used to zero every animation with
        * { animation-duration: .001ms !important }.

   So re-asserting the duration is sufficient - the names still arrive from
   elementor-animations.min.css. style.css is loaded after
   elementor-frontend-lite.min.css (see the <link> order), and !important
   also outranks the shorthand, so these declarations win.

   Durations mirror the base .animated rules in elementor-frontend-lite.min.css. */
@media (prefers-reduced-motion: reduce) {
  .animated                { animation-duration: 1.25s !important; }
  .animated.animated-slow { animation-duration: 2s    !important; }
  .animated.animated-fast { animation-duration: .75s  !important; }
}

/* A reduced-motion preference is still honoured for everything that is not an
   Elementor entrance animation: smooth scrolling and hover/focus transitions. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; }
  html { scroll-behavior: auto !important; }
}

/* --- 5. Mobile and tablet (up to 1024px) --------------------------------
   Every rule in 5a and 5b sits inside a <=1024px media query, and every rule
   that touches the navigation is additionally scoped to
   `.jkit-menu-wrapper.active` - the class jkit only puts on the off-canvas
   drawer while it is open. The desktop header uses the same markup with
   `.jkit-menu-wrapper:not(.active)`, so it can never match these selectors
   even if the breakpoints were changed. Both guards are deliberate: the
   desktop layout must stay byte-identical.

   Each fix was measured in headless Edge with _build/_mobile/render.mjs; the
   numbers quoted are the BEFORE values.

   Two things that look like mobile bugs but are deliberately left alone:

     - The off-canvas headings 618d2b5f (index) and 7b8a81f (about) sit at
       right: -6%, so their boxes end ~18px past the viewport. Both are
       100%-wide, left-aligned one-word labels, so what hangs off the edge is
       empty space - no text is cut by it. This file used to leave that
       overhang alone. It no longer does: those 18px were real horizontal
       scroll space on a phone, so section 5e(3) clips them, which removes the
       scroll without moving the text (the overhang is empty, so clipping it
       cannot change a painted pixel).
     - html/body overflow is not touched. Forcing overflow-x: clip on <html>
       would stop the body's overflow-x from propagating and turn <body> into
       a scroll container of its own, which breaks the sticky header.
   ----------------------------------------------------------------------- */

/* -- 5a. The off-canvas navigation drawer -------------------------------
   The widget is `break-point-tablet`, so from 1024px down the ONLY way to
   reach the site's navigation is the hamburger button in the corner. Two
   separate defects were measured in that drawer:

     1. The button itself drew 22x26 - far under the 44px minimum tap target,
        and it is the single most important control on a phone.
     2. The menu list did not stack. `.jkit-menu > ul` rendered as a
        non-wrapping flex row (display: flex, flex-shrink: 0 on the items),
        so the five items laid out to a 421px row inside a 320px box whose
        parent has overflow-x: hidden. The fifth item ("Contact") sat at
        left 358-441 and failed a hit test at its own centre: it was clipped
        and could not be tapped at any width below 1025px.
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .jeg-elementor-kit.jkit-nav-menu.break-point-tablet .jkit-hamburger-menu,
  .jeg-elementor-kit.jkit-nav-menu.break-point-mobile .jkit-hamburger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  /* Stack the drawer's menu. Only the open drawer is matched, so the desktop
     header row (same markup, `:not(.active)`) keeps its horizontal layout. */
  .jeg-elementor-kit.jkit-nav-menu .jkit-menu-wrapper.active .jkit-menu > ul {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    /* The list carried the browser's default 40px list indent, which is what
       pushed the row out to the left of its container. */
    padding-left: 0;
    padding-right: 0;
  }
  .jeg-elementor-kit.jkit-nav-menu .jkit-menu-wrapper.active .jkit-menu > ul > li {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
  }
}

/* --- 5b. Phones only (up to 767px) ------------------------------------- */
@media (max-width: 767px) {
  /* The services intro paragraph is authored 117.91% wide - a deliberate
     bleed on desktop, but on a phone it pushed ~43px of real body copy
     ("Our team is dedicated to transform ...") past the right edge. Let it
     reflow into its own column instead. See post-142.css:1577-1587. */
  .elementor-142 .elementor-element.elementor-element-7b2ed369 {
    --container-widget-width: 100%;
    width: 100%;
    max-width: 100%;
  }

  /* Social icons rendered 38x38 (0.7em of padding plus a 1px border around
     the glyph), so a minimum box is all that is needed. */
  .elementor-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  /* The stacked footer links rendered 350x21 on a 31px pitch. Their anchor is
     already display:flex with a centred cross axis
     (elementor-widget-icon-list.min.css), so a minimum height alone grows the
     target and quietly opens the list spacing up. Scoped to the traditional
     (vertical) layout so the inline lists in the header are unaffected. */
  .elementor-icon-list--layout-traditional .elementor-icon-list-item > a {
    min-height: 44px;
  }

  /* The small text buttons - "Watch Video", "View All Portfolio" - drew at
     79x14 in 12px type. Bring them up to a comfortable target and to the
     14px floor used everywhere else. Scoped to elementor-size-sm so the
     larger, already-comfortable buttons keep their own metrics. */
  .elementor-button.elementor-size-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: 14px;
  }
  .elementor-button.elementor-size-sm .elementor-button-text {
    font-size: 14px;
  }
}

/* --- 5c. The phone header row (up to 767px) -----------------------------
   On a phone the header row holds only two things: the logo and the
   hamburger. The address bar above it and the "Free Consultation" column
   beside it are both marked elementor-hidden-phone, so neither is on screen.

   It measured 190px tall on a 390x844 viewport, against a ~64px reference
   (LINGsCARS.com's mobile header). The cause is the logo: the theme asks for
   80% of a ~175px column, i.e. 140x140, and the row then adds 15px of column
   padding top and bottom plus 10px of section padding. Three declarations
   bring it to 64px - 44px logo + 8px column padding + 12px section padding.

   44px is not arbitrary: it is the tap-target floor this file already
   enforces in 5a and 5b, and it now matters more than before because the logo
   is a link (see section 2). It is also the size the theme itself already
   asks for at tablet width, where the same logo is `width: 26%` of that
   ~175px column.

   Specificity: every selector below is a copy of the theme's own selector for
   the same element - (0,3,0) for the section, (0,4,0) for the column's
   .elementor-element-populated and (0,3,1) for the image - so each one ties
   with the theme rule and wins on source order alone, style.css being linked
   last. A shorter hook such as `.ct-logo-link img` would have been (0,1,1)
   and lost to the theme instead of tying with it. The five pages do not share
   header ids, hence one line per page.

   Phones only on purpose: 768px and up keeps the theme's own header. (It is
   worth knowing that at 768-1024px the theme stacks the header columns and
   the row measures 322px tall - reported, not touched here.)
   ---------------------------------------------------------------------- */
@media (max-width: 767px) {
  .elementor-127 .elementor-element.elementor-element-72e877ca,
  .elementor-122 .elementor-element.elementor-element-6395fe83,
  .elementor-142 .elementor-element.elementor-element-6395fe83,
  .elementor-163 .elementor-element.elementor-element-14067772,
  .elementor-155 .elementor-element.elementor-element-42f80d3 {
    padding: 6px 10px;
  }

  /* Both columns of the header row, not just the logo one: the row is as tall
     as its taller column, and at 767px and below the theme gives each of them
     15px of top and bottom padding. Trimming only the logo column leaves the
     navigation column holding the row at 74px. */
  .elementor-127 .elementor-element.elementor-element-611f2f28 > .elementor-element-populated,
  .elementor-122 .elementor-element.elementor-element-f88debc > .elementor-element-populated,
  .elementor-142 .elementor-element.elementor-element-f88debc > .elementor-element-populated,
  .elementor-163 .elementor-element.elementor-element-5d692d89 > .elementor-element-populated,
  .elementor-155 .elementor-element.elementor-element-1bb662e6 > .elementor-element-populated,
  .elementor-127 .elementor-element.elementor-element-f749d05 > .elementor-element-populated,
  .elementor-122 .elementor-element.elementor-element-72649ef5 > .elementor-element-populated,
  .elementor-142 .elementor-element.elementor-element-72649ef5 > .elementor-element-populated,
  .elementor-163 .elementor-element.elementor-element-42ffd776 > .elementor-element-populated,
  .elementor-155 .elementor-element.elementor-element-6a152fb6 > .elementor-element-populated {
    padding: 4px 0;
  }

  .elementor-127 .elementor-element.elementor-element-130cc040 img,
  .elementor-122 .elementor-element.elementor-element-81cc1f6 img,
  .elementor-142 .elementor-element.elementor-element-81cc1f6 img,
  .elementor-163 .elementor-element.elementor-element-31917a62 img,
  .elementor-155 .elementor-element.elementor-element-753c69b6 img {
    width: 44px;
    height: auto;
  }
}

/* --- 5d. A scrim behind the open drawer (up to 1024px) ------------------
   The drawer is a `position: fixed` panel that jkit slides in from the left by
   adding `.active` to `.jkit-menu-wrapper` (js/jkit-nav-menu.js toggles exactly
   that class, and `.jkit-close-menu` removes it). The plugin never dims the
   page behind the panel and never reacts to a click outside it, so an open menu
   left the page underneath fully visible and fully clickable - the next tap
   went to whatever sat behind the menu.

   The plugin does ship an empty `<div class="jkit-overlay"></div>` as the very
   next sibling of the drawer and never touches it again: no stylesheet in css/
   mentions the class and js/jkit-nav-menu.js does not contain the string
   "overlay". That makes it a free host for the scrim - no markup change, and it
   is already positioned inside the same stacking context as the panel.

   Three things are load-bearing:

     - `pointer-events: none` while closed and `auto` once the drawer is open,
       which is what actually stops the background being clickable. The element
       is also `visibility: hidden` when closed so it can never take a tap or be
       picked up by the audit.
     - the explicit z-index pair. Neither the drawer nor the overlay carries a
       z-index, so with the default `auto` they paint in DOM order - and the
       overlay is the LATER sibling, which would put the scrim on top of the
       panel it belongs to. 9990/9991 clears every z-index the theme uses
       (Elementor sections sit at 0-10) while staying under Elementor's own
       9999 lightbox layer.
     - the sibling combinator, so the scrim only exists while the drawer is
       open. Nothing here can match above 1024px: jkit hides the hamburger at
       1025px, so the drawer can only be opened below it.

   The fade is a transition, so the reduced-motion block in section 3a
   (`transition-duration: .001ms !important`) flattens it automatically.
   ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .jeg-elementor-kit.jkit-nav-menu .jkit-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9990;
    background-color: rgba(26, 26, 26, .55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility 0s linear .3s;
  }

  .jeg-elementor-kit.jkit-nav-menu .jkit-menu-wrapper.active ~ .jkit-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .3s ease;
  }

  .jeg-elementor-kit.jkit-nav-menu .jkit-menu-wrapper.active {
    z-index: 9991;
  }

  /* --- 5d(i). Lifting the drawer out of the header's stacking context -------
     A z-index on the panel is not enough on its own, and this is the part that
     is easy to get wrong: the header section itself is `position: relative;
     z-index: 1` (theme default for a section with a background), so it creates
     a stacking context and the panel and the scrim above are trapped inside it
     at level 1. Any later section that is a context of its own therefore paints
     over the whole panel no matter how high the panel's z-index is - and the
     portfolio band is exactly that, because Elementor's entrance animations end
     on `translate3d(0,0,0)` rather than `none`, which is a transform, which is a
     stacking context. Measured before this rule: with the drawer open and the
     page scrolled to the portfolio band, elementFromPoint at (100,400) inside
     the panel returned `div.elementor-container.elementor-column-gap-no` - the
     section's own container - so the panel was both painted over and unclickable.

     The class is put on <body> by js/ct-nav-drawer.js while a drawer is open
     (same observer that locks scrolling), so the lift only exists in the state
     that needs it. Specificity here is (0,4,1), comfortably over the theme's
     (0,3,0). 9995 clears every z-index the page itself uses while staying under
     Elementor's own 9999 lightbox layer.

     The five pages do not share header ids; these are the same five sections
     section 5c and the scrim above already name. */
  body.ct-drawer-open .elementor-127 .elementor-element.elementor-element-72e877ca,
  body.ct-drawer-open .elementor-122 .elementor-element.elementor-element-6395fe83,
  body.ct-drawer-open .elementor-142 .elementor-element.elementor-element-6395fe83,
  body.ct-drawer-open .elementor-163 .elementor-element.elementor-element-14067772,
  body.ct-drawer-open .elementor-155 .elementor-element.elementor-element-42f80d3 {
    z-index: 9995;
  }

  /* --- 5d(ii). No scrolling behind the panel -------------------------------
     The drawer is `position: fixed`, so without this the page behind it scrolls
     under the scrim while the visitor swipes - verified with a real synthesized
     touch gesture, not just window.scrollTo: the page moved 400px behind the open
     menu. `position: fixed` on <body> is the only lock that also holds on iOS
     Safari (where `overflow: hidden` alone is unreliable), so the body is frozen
     and js/ct-nav-drawer.js sets the matching negative `top` so the visible part
     of the page does not jump, then restores the scroll position on close.

     The lock is inside the media query on purpose: if the viewport grows past
     1024px the declaration stops applying and the page scrolls again by itself,
     which is the safe failure mode. <html> is deliberately not touched - see the
     note about `overflow-x` propagation below. */
  body.ct-drawer-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
  }
}

/* --- 5e. Three phone-only fixes: the footer Call/Email pair, the About Us
   team photos, and the 18px right-edge overhang that gave the phone a
   sideways scroll (up to 767px) ------------------------------------------
   All three are inside a <=767px media query and none of them can match at
   desktop width, so the desktop layout stays byte-identical - proved by an
   unchanged `geom` hash at 1280x900 on all five pages, not merely by reading
   the query (see the method note in section 5). The numbers quoted are the
   BEFORE values, measured with _build\_mobile\ctrender.ps1 / diag.ps1.

   Why the fixes live here rather than in the theme sheets: css\post-NNN.css
   are the captured originals and are treated as read-only (section 1), and
   style.css is linked last, so a rule here that ties with a theme rule on
   specificity wins on source order alone.
   ---------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* (1) The footer's "Call  Or  Email" pair, centred.
     The theme deliberately right-aligns it on tablet and phone: it overrides
     its own `justify-content: flex-start` (css\post-127.css:5293-5297) with
     `flex-end` at BOTH @media (max-width:1024px) (css\post-127.css:5299-5305)
     and @media (max-width:767px) (css\post-127.css:5307-5313). The widget is a
     nested flex container, so that justify-content is the only thing placing
     the wrapper horizontally, and on a phone it pushes the 233px wrapper hard
     against its column's right edge - measured left=135 right=368 inside a
     20..370 column, with Call and Email stacked and the "Or" between them.
     Centring the pair is therefore one declaration on the container; nothing
     about the two buttons themselves, the "Or", or the rest of the footer
     (the Quick Links and Contact Info columns and the copyright row) is
     touched.

     Specificity: each selector below is a copy of the theme's own selector for
     the same element - (0,4,0), i.e. .elementor-element + .elementor-element-
     <id> + .jeg-elementor-kit + .jkit-dual-button - so it ties with the
     theme's @767px rule and wins on source order alone, style.css being linked
     last. A shorter hook such as `.jkit-dual-button` would have been (0,1,0)
     and lost outright. Every page carries exactly one dual button, and it is
     this footer one; the five pages do not share the widget id, hence one line
     per page (index 127, about 122, services 142, portfolio 155, contact 163). */
  .elementor-element.elementor-element-db44c57 .jeg-elementor-kit.jkit-dual-button,
  .elementor-element.elementor-element-62686bf .jeg-elementor-kit.jkit-dual-button,
  .elementor-element.elementor-element-b8f3a59 .jeg-elementor-kit.jkit-dual-button,
  .elementor-element.elementor-element-eeebd1c .jeg-elementor-kit.jkit-dual-button,
  .elementor-element.elementor-element-fec17fc .jeg-elementor-kit.jkit-dual-button {
    justify-content: center;
  }

  /* (2) The About Us team photos, centred.
     Each card's div.profile-card is `display: inline-block` - measured
     248.234px wide inside a 350px column - so it is placed by its PARENT's
     text-align and cannot be moved by a margin. jkit's own base already
     centres (.jeg-elementor-kit.jkit-team { text-align: center },
     css\jkit-main.css:7442-7444), but this page overrides it to `left` for
     tablet AND phone at @media (max-width:1024px), once per card:
     css\post-122.css:4181-4190 (5e77333b), 4261-4270 (5f69df0c) and
     4341-4350 (83031bb). That is what leaves each photo flush against the left
     of its column with 101.77px of empty column to its right.

     Restoring `center` below 768px only re-states the value the theme already
     uses at every width above 1024px. Desktop cannot regress from it for a
     second reason beyond the media query: up there the card is 363px inside a
     363px column, i.e. it fills its column, so which way its parent aligns it
     is not observable. The <767px block later in css\post-122.css:5151-5189
     (which already restyles these cards' .profile-body padding and
     .profile-designation size) sets no text-align of its own, so there is
     nothing at this breakpoint for the rule to fight with. */
  .elementor-122 .elementor-element.elementor-element-5e77333b .jeg-elementor-kit.jkit-team,
  .elementor-122 .elementor-element.elementor-element-5f69df0c .jeg-elementor-kit.jkit-team,
  .elementor-122 .elementor-element.elementor-element-83031bb .jeg-elementor-kit.jkit-team {
    text-align: center;
  }

  /* (3) The right-edge overhang that let the phone scroll sideways.
     Two decorative "About Us" labels are absolutely positioned knockouts:
     .elementor-element-618d2b5f (index.html:1588) and
     .elementor-element-7b8a81f (about.html:1738). Both are `width: 100%` at
     `right: -6%` (css\post-127.css:4371-4378 and css\post-122.css:4690-4702),
     measured against a 380px containing block, so at 390px wide the box runs
     left=28 -> right=408: it is nudged 22.8px right of its parent AND sticks
     22.8px out past it. Nothing clips that overhang (no ancestor has a
     non-visible overflow-x), so it widened the document to 408px in a 390px
     viewport and gave the phone 18px of real horizontal scroll space - the
     defect behind "i am able to scroll horizontally". Only this box is to
     blame: on both pages the widget's own text span measures right=255
     left=28 w=227 at 46px type, so every pixel from 255 to 408 is empty.

     These rules therefore CLIP the overhang rather than move it. Repositioning
     was rejected because these labels are visible on screen - shifting the box
     left to `right: 0` would drag the "About Us" text 22.8px left with it and
     visibly re-space the hero, whereas clipping an area that is provably empty
     cannot change a single painted pixel.

     `overflow-x: clip` and not `overflow-x: hidden`: `clip` clips without
     creating a scroll container, so it cannot introduce a scrollable region
     here and cannot disturb sticky positioning inside the column the way
     `hidden` would (the same reasoning that keeps `<html>` untouched in section
     5). A single-axis `clip` leaves the other axis `visible`, so nothing is
     clipped vertically.

     Both targets are the overflowing widget's own containing column - index
     column 22dcdcc5 (index.html:1586) and about column 7b89a4ec
     (about.html:1732), each measured at 0..390, i.e. exactly the viewport, so
     the clip boundary lands on the viewport edge and can cut nothing the audit
     considered in-bounds. Clipping a narrower ancestor was rejected for exactly
     that reason: the widget's parent .elementor-widget-wrap is 5..385, so
     clipping there would have cut anything sitting between 385 and 390.

     Phone-only on purpose. Above 768px the theme's larger type and the wider
     `right: -5.959%` bleed are the intended design, and the desktop document
     width (>1280, pre-existing) is deliberately left as it was. */
  .elementor-127 .elementor-element.elementor-element-22dcdcc5,
  .elementor-122 .elementor-element.elementor-element-7b89a4ec {
    overflow-x: clip;
  }
}

/* --- 5f. The phone header row gets out of the way (up to 767px) ---------
   The row is the logo and the hamburger and nothing else - 64px, section 5c.
   On a page long enough to lose it (the Portfolio page is an 11k-pixel
   document) the only way back to the home link or the menu was to scroll all
   the way up, so the row is now pinned to the top of the viewport, slides out
   of sight while the visitor reads downwards, and comes back on the first
   upward swipe. js/ct-scroll-header.js owns the decision; this section owns the
   appearance, and the only thing that crosses between them is the
   `ct-header-hidden` class on <body>.

   `position: sticky`, and not `position: fixed`. Sticky keeps the row inside
   its own 64px of the document, so pinning it moves nothing: there is no second
   copy of the row, no spacer to insert and no jump at the moment it is hidden
   or revealed. A fixed row would have to be paid for with 64px of padding
   somewhere, and at the top of the page - where the row already IS the first
   thing in flow - that padding is exactly the duplicated-row defect this was
   asked to avoid. Sticky also pins the row from the very first pixel of scroll,
   which is why the JS keeps it visible for as long as any of its own 64px is
   still on screen.

   z-index: 100. The page's own sections top out at 5 (post-127/122/142/155/
   163.css) so 100 clears every one of them, while staying well under every
   modal layer on the site: metform 990+, sweetalert2 1060, Elementor's lightbox
   9999, cute-alert 999999. Section 5d(i) still lifts the row to 9995 for as
   long as the drawer is open, which is a state where nothing else is on screen.

   The background-color is new, and it is what makes the pinned row readable:
   no rule in the theme sheets sets a background on this section, so the 64px
   strip at the top of the page is currently the page showing through it
   (#f9f9f9 - the body's own colour, and the same value as --ct-bg, measured at
   390x844 with _build\_mobile\ctrender.ps1). Pinned over the dark hero that
   transparency would show the hero through the row. Painting --ct-bg is
   therefore invisible at the top of the page, where it is the same colour that
   was showing through, and opaque everywhere else.

   The transform is transitioned so the row slides rather than blinks, and the
   theme's own transition list is restated alongside it rather than replaced.
   3a's prefers-reduced-motion rule flattens the slide for anyone who asked for
   that. */
@media (max-width: 767px) {
  .elementor-127 .elementor-element.elementor-element-72e877ca,
  .elementor-122 .elementor-element.elementor-element-6395fe83,
  .elementor-142 .elementor-element.elementor-element-6395fe83,
  .elementor-163 .elementor-element.elementor-element-14067772,
  .elementor-155 .elementor-element.elementor-element-42f80d3 {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--ct-bg);
    transition: transform .25s ease, background .3s, border .3s, border-radius .3s,
      box-shadow .3s;
  }

  /* The off-screen state, and the only thing js/ct-scroll-header.js does in
     CSS. -100% is the row's own height, so it clears itself completely whatever
     that height turns out to be. Specificity (0,4,1), over the rule above. */
  body.ct-header-hidden .elementor-127 .elementor-element.elementor-element-72e877ca,
  body.ct-header-hidden .elementor-122 .elementor-element.elementor-element-6395fe83,
  body.ct-header-hidden .elementor-142 .elementor-element.elementor-element-6395fe83,
  body.ct-header-hidden .elementor-163 .elementor-element.elementor-element-14067772,
  body.ct-header-hidden .elementor-155 .elementor-element.elementor-element-42f80d3 {
    transform: translateY(-100%);
  }

  /* While the drawer is open the row has to be at rest: it is the containing
     block the fixed panel and its scrim live in, so a transform on it would
     carry the open menu off the top of the screen with it. js/ct-scroll-header.js
     brings the row back at the same moment for the same reason - the panel can
     only be opened from the hamburger, which is inside the row, so this is the
     belt to that observer's braces. */
  body.ct-drawer-open .elementor-127 .elementor-element.elementor-element-72e877ca,
  body.ct-drawer-open .elementor-122 .elementor-element.elementor-element-6395fe83,
  body.ct-drawer-open .elementor-142 .elementor-element.elementor-element-6395fe83,
  body.ct-drawer-open .elementor-163 .elementor-element.elementor-element-14067772,
  body.ct-drawer-open .elementor-155 .elementor-element.elementor-element-42f80d3 {
    transform: none;
  }
}

/* --- 4. Print ----------------------------------------------------------- */
@media print {
  .elementor-location-header,
  .elementor-location-footer,
  .jkit-dual-button-wrapper { display: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}