/*
Theme Name: Behaviour Group
Theme URI: https://www.behaviour-group.com
Author: Behaviour Group
Description: Tema de blocos do site internacional da Behaviour Group (EN/PT). Textos, cores, tipos de letra e imagens editáveis em Aparência > Editor.
Version: 1.0.7
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: behaviour-group
*/

/* Layout: blocks touch each other between full-width sections */
.wp-site-blocks > * + *,
.wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }
.wp-block-post-content > .alignfull:first-child { margin-block-start: 0; }
:where(.wp-block-group.has-background) { padding-left: var(--wp--style--root--padding-left); padding-right: var(--wp--style--root--padding-right); }
.wp-block-group.alignfull.has-background { padding-left: var(--wp--style--root--padding-left); padding-right: var(--wp--style--root--padding-right); }
p { margin-block: 0; }

/* Logo (text) */
.bg-logo { margin: 0; line-height: 1; }
.bg-logo a { text-decoration: none; display: inline-flex; align-items: baseline; gap: 8px; color: var(--wp--preset--color--ink); }
.bg-logo strong { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 22px; letter-spacing: 1.5px; }
.bg-logo__sub { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 14px; letter-spacing: 3px; color: var(--wp--preset--color--olive); }

/* Main navigation */
.bg-nav a { text-decoration: none; }
.bg-nav .current-menu-item > a,
.bg-nav a[aria-current="page"] { font-weight: 700; border-bottom: 2px solid var(--wp--preset--color--olive); padding-bottom: 4px; }

/* Language switcher */
.bg-lang { display: flex; gap: 4px; font-size: 14px; font-weight: 600; }
.bg-lang__item { padding: 10px 12px; border-radius: 6px; text-decoration: none; line-height: 1; color: var(--wp--preset--color--ink); }
.bg-lang__item.is-current { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); }
a.bg-lang__item:hover { background: var(--wp--preset--color--sand); }

/* Links inside cards */
.bg-cta a, .bg-door-title a, .bg-toc a, .bg-accent-link a { text-decoration: none; }
.bg-cta a { color: var(--wp--preset--color--olive); }
.bg-door-title a { color: inherit; }
.bg-door-title a:hover, .bg-cta a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bg-footer .bg-accent-link a { color: var(--wp--preset--color--lime); }
.bg-footer a:hover { color: var(--wp--preset--color--lime); }
.has-ink-background-color a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--lime); }
.has-ink-background-color .bg-scene a { text-decoration: none; }

/* Buttons */
.wp-block-button__link { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.wp-block-button.is-style-outline > .wp-block-button__link { border-color: currentColor; padding-top: 13.5px; padding-bottom: 13.5px; font-weight: 600; background: transparent; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(186, 205, 53, .15); }

/* Scenes */
.bg-scene { margin: 0; }
.bg-scene .wp-block-image { margin: 0; height: 120px; display: flex; align-items: center; }
.bg-scene:last-child { border-right: 0 !important; }
@media (max-width: 781px) { .bg-scene { border-right: 0 !important; border-bottom: 1px solid var(--wp--preset--color--moss); } }

/* Hero with rotating globe */
.bg-hero { position: relative; overflow: hidden; }
.bg-hero > .bg-hero__content, .bg-hero > *:not(.bg-globe-wrap) { position: relative; z-index: 1; }
.bg-globe-wrap { position: absolute !important; inset: 0; margin: 0 !important; max-width: none !important; z-index: 0 !important; }
.bg-hero__fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,27,20,.96) 0%, rgba(22,27,20,.88) 36%, rgba(22,27,20,0) 62%); pointer-events: none; }
.bg-hero__toggle { position: absolute; right: 24px; bottom: 16px; z-index: 3; width: 44px; height: 44px; border: 1px solid var(--wp--preset--color--moss); background: rgba(16,20,14,.8); color: #fff; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bg-hero__toggle:focus-visible { outline: 2px solid var(--wp--preset--color--lime); outline-offset: 2px; }
.bg-hero__toggle .i-play { display: none; }
.bh-paused .bg-hero__toggle .i-play { display: block; }
.bh-paused .bg-hero__toggle .i-pause { display: none; }
.bg-facts { background: rgba(16,20,14,.82) !important; }

.bh-globe { position: absolute; top: 50%; right: max(24px, calc(50% - 700px)); width: 600px; height: 600px; margin-top: -300px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 40% 35%, #26301F 0, #1A2017 60%, #12160F 100%); box-shadow: 0 0 0 1px rgba(186,205,53,.28), 0 0 120px rgba(186,205,53,.16); }
.bh-strip { position: absolute; top: 0; left: 0; width: 2400px; height: 600px; display: flex; animation: bhSpin 70s linear infinite; }
.bh-face { position: relative; flex: none; width: 1200px; height: 600px; }
.bh-face img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; max-width: none; }
.bh-face svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bh-shade { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 33% 28%, rgba(245,247,236,.13) 0, rgba(245,247,236,0) 40%), radial-gradient(circle at 50% 50%, rgba(18,22,15,0) 48%, rgba(18,22,15,.55) 74%, rgba(18,22,15,.97) 100%); }
.bh-link { fill: none; stroke: #BACD35; stroke-opacity: .42; stroke-width: 1.6; }
.bh-pkt { fill: none; stroke: #F5F7EC; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 200; animation: bhPkt 3.6s linear infinite; }
.bh-ring { transform-box: fill-box; transform-origin: center; animation: bhRing 3s ease-out infinite; }
@keyframes bhSpin { from { transform: translateX(-1200px); } to { transform: translateX(0); } }
@keyframes bhPkt { from { stroke-dashoffset: 6; } to { stroke-dashoffset: -100; } }
@keyframes bhRing { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(2.2); opacity: 0; } }
.bh-paused .bh-strip, .bh-paused .bh-globe * { animation-play-state: paused !important; }
@media (max-width: 1100px) { .bh-globe { opacity: .4; right: -180px; } }

/* Entrance and floating animations (add the class in Advanced > Additional CSS class) */
@keyframes bhRise { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes bhFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.bg-rise { animation: bhRise .9s ease-out both; }
.bg-float img { animation: bhFloat 4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
	.bg-rise, .bg-float img, .bh-strip, .bh-pkt, .bh-ring { animation: none !important; }
}

/* Grid cards: keep the rule lines tidy */
.wp-block-group.is-layout-grid > * { margin: 0; }

/* 404 */
.bg-404 { user-select: none; }

/* Editor: show the globe area as a calm placeholder */
.editor-styles-wrapper .bg-hero .wp-block-shortcode { position: absolute; top: 8px; right: 8px; z-index: 2; opacity: .6; max-width: 240px; }

/* Highlighted words in titles (Highlight tool): colour only, no background */
mark.has-inline-color { background-color: transparent; }

/* Footer links */
.bg-footer a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--mist); text-decoration: none; }
.bg-footer .bg-accent-link a { color: var(--wp--preset--color--lime); }
.bg-footer a:hover { color: var(--wp--preset--color--lime); text-decoration: underline; text-underline-offset: 3px; }

/* Fluent Forms: match the theme */
.fluentform .ff-el-input--label label { font-weight: 600; font-size: 15px; color: var(--wp--preset--color--ink); }
.fluentform .ff-el-form-control { font-family: inherit; font-size: 16px; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--wp--preset--color--line); border-radius: 8px; background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); }
.fluentform textarea.ff-el-form-control { min-height: 140px; }
.fluentform .ff-el-form-control:focus { border-color: var(--wp--preset--color--olive); outline: 2px solid var(--wp--preset--color--olive); outline-offset: 1px; box-shadow: none; }
.fluentform .ff-el-tc label, .fluentform .ff_t_c { font-size: 15px; line-height: 1.5; color: var(--wp--preset--color--body); }
.fluentform .ff-el-tc a { color: var(--wp--preset--color--olive); }
.fluentform .ff-btn-submit { font-family: inherit; font-weight: 700; font-size: 17px; min-height: 52px; padding: 0 26px; border-radius: 8px; }
.fluentform .error, .fluentform .text-danger { color: #A32A12; font-size: 14px; }
.ff-message-success { border: 1px solid var(--wp--preset--color--line); border-left-width: 1px; border-radius: 8px; background: var(--wp--preset--color--sand); color: var(--wp--preset--color--ink); padding: 20px 24px; box-shadow: none; }

/* Timeline (About): 5 per row on desktop, fewer on smaller screens */
@media (max-width: 1100px) { .bg-timeline.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 480px) { .bg-timeline.is-layout-grid { grid-template-columns: minmax(0, 1fr) !important; } }
