/*
Theme Name:   AYBORA GLOBAL Child
Theme URI:    https://ayboraglobal.com
Description:  Child theme of AYBORA GLOBAL. Put every customisation here — CSS, template overrides and functions — so the parent theme stays clean and can be updated without losing your work.
Author:       AYBORA GLOBAL
Author URI:   https://ayboraglobal.com
Template:     aybora-global
Version:      1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GNU General Public License v3 or later
License URI:  https://www.gnu.org/licenses/gpl-3.0.html
Text Domain:  aybora-global-child
*/

/* ==========================================================================
   Your customisations go below.

   The parent's style.css and art.css are already loaded, so every --ag-*
   token is available here and anything you write wins on equal specificity.

   Overriding a token for the whole site:

     :root {
       --ag-gold: #C9A227;
     }

   Note: Elementor also stores the palette in Site Settings → Global Colors.
   To change a brand colour everywhere, change it there as well (or in the
   parent's inc/tokens.php, then Appearance → AYBORA Setup → Sync tokens).

   Overriding an Elementor container needs more weight than a plain class —
   Elementor's own rule is four classes deep. Prefix with:

     body .elementor .e-con.ag-sec { ... }

   ========================================================================== */

/* ==========================================================================
   Phase 2 — editorial pass
   Every rule here removes something. The hero's thread canvas is the page's
   one bold moment; everything below it gets quieter so that moment carries.
   Delete any block to restore the parent's behaviour.
   ========================================================================== */

/* 1. Repeated section labels.
   "02 / Supply chain", "03 / Service index", "04 / Your partner" … sat above
   headlines that already say the same thing, in tracked all-caps, six times
   over. The headlines carry it alone.
   The station labels (01 / SOURCE … 04 / DELIVER) deliberately stay: the
   supply chain really is a sequence, so there the numbering is information. */
body .elementor .ag-index { display: none !important; }

/* The supply chain section needed no exception in the end: hiding its eyebrow
   left it as the only section without a headline, so it was given the one the
   source document uses — "Our Global Supply Chain" — in the template itself. */

/* The hero's "AYBORA GLOBAL" line, same reasoning — the logo sits directly
   above it in the header. Element id comes from templates/elementor/home.json
   and is stable across rebuilds. */
body .elementor .elementor-element-f3cb002 { display: none !important; }

/* 2. Service numbering.
   01–06 implies an order to follow. The six disciplines are a set a client
   picks from, not steps, so the numbers made a promise the content doesn't keep. */
body .elementor .ag-svc__idx { display: none !important; }

/* 3. Weave captions ("Plain weave", "Twill", …).
   The weave draft is already drawn into each row. Naming it as well was
   decoration that told the reader nothing about the service. */
body .elementor .ag-svc__draft { display: none !important; }

/* 4. Row chevrons. The service rows don't link anywhere, so the arrow
   promised an interaction that doesn't exist. */
body .elementor .ag-svc__arrow { display: none !important; }

/* 5. The serif italic accent word.
   One italicised word in a headline is the most recognisable stock move in
   contemporary web design, and this one cost a 273 KB font download to set
   five characters. Jost carries the whole headline instead. */
.ag-it {
	font-family: var(--ag-font) !important;
	font-style: normal !important;
	font-weight: 500 !important;
	letter-spacing: inherit !important;
	padding-right: 0 !important;
}

/* 6. Form labels in sentence case — all-caps shouts at the person filling
   the form, and tracked caps are slower to read. */
.ag-form label {
	text-transform: none !important;
	letter-spacing: .01em !important;
}

/* 7. The partner statement held a full viewport for two lines of text. */
body .elementor .ag-partner { min-height: 520px !important; }

/* 8. Re-tune the service row grid.
   The parent reserves 78px for the number column and 56px for the chevron.
   With both gone that left the icon stranded beside a wide gap, so the row
   now holds just the icon and the content. */
body .elementor .e-con.ag-svc__row {
	grid-template-columns: 34px minmax(0, 1fr) !important;
}

/* With the caption removed, the weave draft is the only thing distinguishing
   one row from the next, so let it read a little more clearly at rest. */
.ag-svc__row.is-in::before { opacity: .28; }
@media (hover: hover) {
	.ag-svc__row:hover::before { opacity: .42; }
}

/* ==========================================================================
   Supply chain — quicker steps, no stutter
   main.js (child copy) now advances every 2.6 s, so the moves are shortened to
   match. The shuttle used to travel by animating `left`, which re-runs layout
   on every frame and stuttered on the live host. It now spans the whole track
   and travels with a transform (100% of its own width = the track), so the
   move runs on the compositor. The diamond is drawn by ::before at its left end.
   ========================================================================== */
.ag-rail__fill,
.ag-pin__rail::after {
	transition-duration: .7s;
	will-change: transform;
}
.ag-rail .ag-rail__shuttle {
	left: 0;
	width: 100%;
	height: 10px;
	background: none;
	box-shadow: none;
	pointer-events: none;
	transform: translate3d(calc(var(--ag-p, 0) * 100%), -50%, 0);
	transition: transform .7s var(--ag-ease-rev);
	will-change: transform;
}
.ag-rail .ag-rail__shuttle::before {
	content: "";
	position: absolute;
	left: -5px;
	top: 0;
	width: 10px;
	height: 10px;
	background: var(--ag-gold);
	box-shadow: 0 0 0 5px var(--ag-dark);
	transform: rotate(45deg);
}
.ag-station,
.ag-station.is-on {
	transition-duration: .5s, .65s, 0s;
}
.ag-station { transition-delay: 0s, 0s, .5s; }
.ag-station.is-on { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
	.ag-rail .ag-rail__shuttle { transition: none; }
}

/* ==========================================================================
   Hero text + story — GSAP takes over (assets/js/aybora-hero.js, child copy)
   Once the script owns an element it adds the class below; the parent's CSS
   transitions and its 3 s failsafe animation would otherwise fight the tweens.
   Without the script none of this applies and the parent's reveal runs.
   ========================================================================== */
.ag-hero.ag-hero--gsap .ag-reveal,
.ag-hero.ag-hero--gsap .ag-hl-char,
.ag-hero.ag-hero--gsap .ag-sub-word {
	transition: none !important;
	animation: none !important;
}

/* Headline letters (SplitText "flip"): keep each word's letters on one line. */
.ag-hero .ag-hl-word { white-space: nowrap; }
.ag-hero .ag-hl-char { backface-visibility: hidden; }

/* React Bits Threads draws its own soft light; the parent's radial glow behind
   the old canvas would double it. */
.ag-threads__canvas.ag-rb-threads { background: none; }

/* Gold letters: aybora-hero.js gives each one the phrase-wide gradient plus
   the ShinyText band; these lines clip both to the letter shape. */
.ag-hero .ag-gold .ag-hl-char {
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* Story paragraphs: Elementor's own entrance is replaced by line / word reveals. */
.ag-hero__story.ag-story--gsap .elementor-invisible { visibility: visible !important; }
.ag-hero__story.ag-story--gsap .animated { animation: none !important; }

/* ==========================================================================
   Footer credit — "Powered By OneHoster · Hosted By NewHoster" (inc/footer-credit.php)
   ========================================================================== */
.ag-credit { text-align: right; }
.ag-credit a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	transition: color .35s cubic-bezier(.16, 1, .3, 1);
}
.ag-credit a:hover,
.ag-credit a:focus-visible { color: var(--ag-gold); }
.ag-credit__sep {
	display: inline-block;
	width: 1px;
	height: .9em;
	margin: 0 14px;
	vertical-align: -.1em;
	background: currentColor;
	opacity: .4;
}
@media (max-width: 767px) {
	.ag-credit { text-align: left; }
}
