/* ==========================================================================
   Brixton Growth – child theme styles
   Only what Elementor cannot do natively. Colours/fonts come from the
   Elementor Site Settings (global kit) through its CSS variables.
   --------------------------------------------------------------------------
   1. Base
   2. Header (sticky state)
   3. Cards (.bg-card)
   4. Animated icons (.bg-icon)
   5. Eyebrow labels (.bg-eyebrow)
   6. Forms
   7. Accessibility / reduced motion
   ========================================================================== */

/* 1. Base ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }

/* 2. Header -------------------------------------------------------------- */
/* Sticky header gets a soft shadow + tighter padding once the page scrolls. */
.bg-header { transition: box-shadow .3s ease, padding .3s ease, background-color .3s ease; }
.bg-header.elementor-sticky--effects {
	box-shadow: 0 8px 30px rgba(4, 14, 37, .08);
	padding-top: 8px !important;
	padding-bottom: 8px !important;
}
.bg-header.elementor-sticky--effects .bg-logo img { max-width: 150px; transition: max-width .3s ease; }

/* 3. Cards --------------------------------------------------------------- */
/* Green accent line that grows on hover; lift/shadow are set in Elementor. */
.bg-card { position: relative; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.bg-card::before {
	content: "";
	position: absolute; inset: 0 auto auto 0;
	width: 100%; height: 4px;
	background: linear-gradient(90deg, var(--e-global-color-primary, #179238), var(--e-global-color-accent, #F86306));
	transform: scaleX(0); transform-origin: left;
	transition: transform .45s ease;
}
.bg-card:hover::before { transform: scaleX(1); }

/* 4. Animated icons ------------------------------------------------------ */
/* Icons are Elementor Icon widgets (inline SVG); this adds a gentle idle motion. */
.bg-icon .elementor-icon { transition: transform .4s ease, background-color .4s ease, color .4s ease; }
.bg-icon .elementor-icon svg { animation: bg-float 4s ease-in-out infinite; }
.bg-card:hover .bg-icon .elementor-icon { transform: rotate(-6deg) scale(1.06); }
@keyframes bg-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-4px); }
}

/* Pulsing ring used behind hero/CTA icons. */
.bg-pulse .elementor-icon { position: relative; }
.bg-pulse .elementor-icon::after {
	content: ""; position: absolute; inset: -6px; border-radius: inherit;
	border: 2px solid currentColor; opacity: .35;
	animation: bg-pulse 2.4s ease-out infinite;
}
@keyframes bg-pulse {
	0%   { transform: scale(.9); opacity: .45; }
	100% { transform: scale(1.35); opacity: 0; }
}

/* 5. Eyebrow labels ------------------------------------------------------ */
.bg-eyebrow .elementor-heading-title {
	display: inline-flex; align-items: center; gap: 10px;
}
.bg-eyebrow .elementor-heading-title::before {
	content: ""; width: 28px; height: 2px; border-radius: 2px;
	background: currentColor;
}

/* 6. Forms --------------------------------------------------------------- */
.elementor-form .elementor-field-textual:focus {
	border-color: var(--e-global-color-primary, #179238) !important;
	box-shadow: 0 0 0 3px rgba(23, 146, 56, .15);
	outline: none;
}

/* 7. Accessibility / reduced motion ------------------------------------- */
a:focus-visible, button:focus-visible, .elementor-button:focus-visible {
	outline: 2px solid var(--e-global-color-accent, #F86306);
	outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 8. Utilities ----------------------------------------------------------- */
/* Long checklists split into two columns on larger screens. */
@media (min-width: 768px) {
	.bg-cols-2 .elementor-icon-list-items { columns: 2; column-gap: 28px; }
	.bg-cols-2 .elementor-icon-list-item { break-inside: avoid; }
}

/* 9. Sliders ------------------------------------------------------------- */
/* Tags shown as pills, project link as an underlined text link. */
.bg-tags .elementor-icon-list-items { gap: 10px; }
.bg-tags .elementor-icon-list-item {
	padding: 8px 18px !important; margin: 0 !important;
	border-radius: 40px; background: #F3F5F8; border: 1px solid #E3E8EE;
}
.bg-tags .elementor-icon-list-item::after { display: none !important; }
.bg-tags .elementor-icon-list-icon { display: none; }

.bg-textlink .elementor-button {
	background: transparent !important; color: var(--e-global-color-secondary) !important;
	padding: 0 0 8px !important; border-radius: 0 !important;
	border-bottom: 2px solid var(--e-global-color-primary) !important;
}
.bg-textlink .elementor-button:hover { color: var(--e-global-color-primary) !important; }

/* Slider controls: "01 / 10" counter + two thin outlined round arrows.
   Desktop: top-right, level with the section title. Tablet/mobile: under the title, left. */
.bg-ctrl-top > .elementor-widget-container,
.bg-ctrl-top { position: relative; }
.bg-ctrl-top .swiper,
.bg-ctrl-top .elementor-swiper { position: static; }

.bg-ctrl-top .elementor-swiper-button {
	position: absolute; top: 0 !important; bottom: auto !important; transform: none !important; margin: 0 !important;
	width: 52px; height: 52px; border-radius: 50%;
	display: inline-flex !important; align-items: center; justify-content: center;
	background: #FFFFFF !important; border: 1.5px solid rgba(4,14,37,.2) !important; color: #040E25 !important;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease, opacity .3s ease, transform .35s ease;
}
.bg-ctrl-top .elementor-swiper-button svg { width: 20px; height: 20px; }
.bg-ctrl-top .elementor-swiper-button i { color: inherit !important; font-size: 18px; }
.bg-ctrl-top .elementor-swiper-button svg:not(.bg-line) { fill: currentColor !important; }
.bg-ctrl-top .elementor-swiper-button:hover { background: #040E25 !important; border-color: #040E25 !important; color: #FFFFFF !important; }
.bg-ctrl-top .elementor-swiper-button:active { transform: scale(.94) !important; }
.bg-ctrl-top .elementor-swiper-button.swiper-button-disabled { opacity: .35; pointer-events: none; }

.bg-ctrl-top .swiper-pagination-fraction {
	position: absolute !important; top: 0 !important; bottom: auto !important; transform: none !important; margin: 0 !important;
	width: auto !important; height: 52px; display: flex; align-items: center; gap: 5px;
	font-family: "League Spartan", sans-serif; font-size: 17px; font-weight: 600; letter-spacing: .5px;
	font-variant-numeric: tabular-nums; color: #6B7785;
}
.bg-ctrl-top .swiper-pagination-fraction .swiper-pagination-current { color: #040E25; }

@media (min-width: 1025px) {
	.bg-ctrl-top .swiper { margin-top: 112px; }
	.bg-ctrl-top .elementor-swiper-button-next { right: 0 !important; left: auto !important; }
	.bg-ctrl-top .elementor-swiper-button-prev { right: 62px !important; left: auto !important; }
	.bg-ctrl-top .swiper-pagination-fraction { right: 134px !important; left: auto !important; }
}
@media (max-width: 1024px) {
	.bg-ctrl-top .swiper { margin-top: 76px; }
	.bg-ctrl-top .swiper-pagination-fraction { left: 0 !important; right: auto !important; height: 46px; font-size: 16px; }
	.bg-ctrl-top .elementor-swiper-button { width: 46px; height: 46px; }
	.bg-ctrl-top .elementor-swiper-button-prev { left: 76px !important; right: auto !important; }
	.bg-ctrl-top .elementor-swiper-button-next { left: 132px !important; right: auto !important; }
}

/* Media carousel screenshots: show the top of each page. */
.bg-ctrl-top .elementor-carousel-image { background-position: top center !important; }

/* 10. Testimonials (.bg-testi-slider) ------------------------------------ */
.bg-testi-slider .elementor-swiper-button { top: auto !important; bottom: -84px !important; transform: none !important; }
.bg-testi-slider .elementor-swiper-button-prev { left: auto !important; right: 80px !important; }
.bg-testi-slider .elementor-swiper-button-next { right: 0 !important; left: auto !important; }
.bg-testi-slider .swiper-pagination-progressbar {
	top: auto !important; bottom: -52px !important; width: calc(100% - 176px) !important; border-radius: 4px; overflow: hidden;
}

/* 12. Slim line icons (Lucide SVGs from the media library) -------------- */
/* Elementor colours icons with "fill"; line icons need "stroke" instead. */
svg.bg-line { fill: none !important; stroke: currentColor; }
.elementor-icon-list-icon svg.bg-line { stroke: var(--e-global-color-primary); }
.e-n-accordion-item-title-icon svg.bg-line { stroke: var(--e-global-color-primary); }

/* 11. Logo strip (.bg-logos) – every logo on the same white tile. */
.bg-logos .swiper-slide-image {
	background: #FFFFFF; padding: 6px 10px; border-radius: 14px;
	border: 1px solid #E3E8EE; height: 86px; width: 100%; object-fit: contain;
}

/* 13. Premium touches ---------------------------------------------------- */
/* Frosted glass panels (hero badge, floating cards, process steps). */
.bg-glass { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* Slow floating motion for the small cards that overlap images. */
.bg-float { animation: bg-float-card 6s ease-in-out infinite; }
@keyframes bg-float-card {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-10px); }
}

/* Hero: content above the video/overlay. */
.bg-hero { position: relative; overflow: hidden; }
.bg-hero > .e-con-inner { position: relative; z-index: 1; }
.bg-hero-center .bg-hero-pill .elementor-headline-dynamic-wrapper { text-align: left; }
.bg-hero-center .elementor-icon-list-items { justify-content: center; row-gap: 10px; }
@media (max-width: 767px) {
	.bg-hero-center .elementor-icon-list-items { flex-direction: column; align-items: center; }
	.bg-hero-center .elementor-icon-list-item { margin: 0 !important; }
}

/* Testimonial cards lift and light up on hover. */
.bg-testi-card { transition: transform .35s ease, box-shadow .35s ease; }
.bg-testi-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(4,14,37,.45); }
.bg-testi .bg-eyebrow .elementor-heading-title::before { background: #FFFFFF !important; }

/* Service card number lights up on hover. */
.bg-num .elementor-heading-title { transition: color .35s ease; }
.bg-card:hover .bg-num .elementor-heading-title { color: rgba(23,146,56,.25) !important; }

/* Process steps glow on hover. */
.bg-step { transition: border-color .35s ease, background-color .35s ease, transform .35s ease; }
.bg-step:hover { border-color: rgba(23,146,56,.6) !important; background-color: rgba(23,146,56,.08) !important; }

/* Hero pill: compact, stable width while the words rotate. */
.bg-hero-pill .elementor-headline { line-height: 1.25; margin: 0; }
.bg-hero-pill .elementor-headline-dynamic-wrapper { text-align: left; vertical-align: bottom; }

/* Hero video: Elementor puts it inside the boxed inner wrapper; stretch it edge to edge. */
.bg-hero .elementor-background-video-container {
	left: calc(50% - 50vw) !important; right: auto !important; width: 100vw !important; z-index: -1;
}

/* Browser mockup bar: project name stays on one line. */
.bg-browser .elementor-heading-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) { .bg-browser .elementor-widget-heading { width: 70% !important; max-width: 70% !important; } .bg-browser .elementor-heading-title { font-size: 12px !important; } }

/* Slider controls on a coloured section (testimonials). */
.bg-ctrl-light .swiper-pagination-fraction { color: rgba(255,255,255,.75) !important; }
.bg-ctrl-light .swiper-pagination-fraction .swiper-pagination-current { color: #FFFFFF !important; }
.bg-ctrl-light .elementor-swiper-button { border-color: rgba(255,255,255,.9) !important; }
.bg-ctrl-light .elementor-swiper-button:hover { background: #040E25 !important; border-color: #040E25 !important; }
.bg-ctrl-light .swiper-slide { height: auto; }
.bg-ctrl-light .bg-testi-card:hover { transform: none; box-shadow: none; }

/* Buttons: pill shape, thin arrow that slides on hover. */
.elementor-button { transition: background-color .3s ease, color .3s ease, border-color .3s ease !important; }
.elementor-button .elementor-button-icon svg { width: 15px; height: 15px; stroke-width: 1.25px !important; transition: transform .3s ease; }
.elementor-button .elementor-button-icon svg:not(.bg-line) { width: 13px; height: 13px; }
.elementor-button:hover .elementor-button-icon svg { transform: translateX(4px); }

/* About page details. */
.bg-strike .elementor-heading-title { text-decoration: line-through; text-decoration-color: rgba(74,85,104,.5); }
.bg-svc-row { transition: padding-left .3s ease; }
.bg-svc-row:hover { padding-left: 10px !important; }
.bg-tile { transition: border-color .3s ease, transform .3s ease; }
.bg-tile:hover { border-color: #179238 !important; transform: translateY(-3px); }

/* About: lists as large lines with thin rules (no icons). */
.bg-rules .elementor-icon-list-icon { display: none !important; }
.bg-rules .elementor-icon-list-items { display: block; }
.bg-rules .elementor-icon-list-item { margin: 0 !important; padding: 16px 0 !important; border-bottom: 1px solid #DCE2E9; }
.bg-rules .elementor-icon-list-item:first-child { border-top: 1px solid #DCE2E9; }
.bg-rules .elementor-icon-list-item::after { display: none !important; }
.bg-rules .elementor-icon-list-text { padding: 0 !important; transition: color .3s ease, transform .3s ease; }
.bg-rules a .elementor-icon-list-text, .bg-rules .elementor-icon-list-item:hover .elementor-icon-list-text { display: inline-block; }
.bg-rules .elementor-icon-list-item:hover .elementor-icon-list-text { transform: translateX(6px); }
.bg-rules-dark .elementor-icon-list-item, .bg-rules-dark .elementor-icon-list-item:first-child { border-color: rgba(255,255,255,.14); }
.bg-strike-list .elementor-icon-list-text { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(255,255,255,.35); }
.bg-strike-list .elementor-icon-list-item:hover .elementor-icon-list-text { transform: none; }

/* About: What Makes Us Different as vertical tabs. */
.bg-tabs .e-n-tabs { gap: 64px; }
.bg-tabs .e-n-tabs-heading { flex: 0 0 42%; flex-direction: column; gap: 0; }
.bg-tabs .e-n-tab-title {
	background: transparent !important; border: 0 !important; border-bottom: 1px solid #DCE2E9 !important; border-radius: 0 !important;
	padding: 26px 0 26px 22px !important; justify-content: flex-start !important; text-align: left; position: relative;
	font-family: 'League Spartan', sans-serif; font-size: 24px; font-weight: 600; line-height: 1.25; color: #8A94A3 !important;
	transition: color .3s ease;
}
.bg-tabs .e-n-tab-title:first-child { border-top: 1px solid #DCE2E9 !important; }
.bg-tabs .e-n-tab-title::before { content: ''; position: absolute; left: 0; top: 26px; bottom: 26px; width: 3px; background: #179238; transform: scaleY(0); transition: transform .3s ease; }
.bg-tabs .e-n-tab-title[aria-selected='true'] { color: #040E25 !important; }
.bg-tabs .e-n-tab-title[aria-selected='true']::before { transform: scaleY(1); }
.bg-tabs .e-n-tab-title:hover { color: #040E25 !important; }
.bg-tabs .e-n-tab-title-text { font: inherit !important; color: inherit !important; }
.bg-tabs .e-n-tabs-content > .e-con { padding: 8px 0 0 !important; border: 0 !important; background: transparent !important; }
@media (max-width: 767px) {
	.bg-tabs .e-n-tab-title { font-size: 20px; padding: 20px 0 20px 18px !important; }
	.bg-tabs .e-n-tabs-content > .e-con { padding: 16px 0 24px !important; }
}
