/**
 * GeniusDesign — Stratos Template for Joomla 6 (UIkit 3)
 * Theme layer on top of uikit.min.css, inspired by the Stratos design language:
 * dark hero, gradient accents, pill buttons, rounded cards, lilac soft sections.
 *
 * Brand tokens (--gds-*) are injected by index.php from the template params.
 * Site-specific tweaks belong in custom.css, loaded after this file.
 */

:root {
	--gds-dark: #006666;
	--gds-accent: #009999;
	--gds-accent-2: #64c7ab;
	--gds-light: #eef7f6;
	--gds-text: #5c5c5c;
	--gds-heading: #16324f;
	--gds-footer-bg: #006666;
	--gds-c1: #64c7ab;
	--gds-c2: #009999;
	--gds-c3: #688abe;
	--gds-c4: #63acc7;
	--gds-font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--gds-font-heading: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--gds-gradient: linear-gradient(100deg, var(--gds-accent) 0%, var(--gds-accent-2) 100%);
	--gds-radius: 20px;
	--gds-radius-pill: 999px;
	--gds-shadow: 0 20px 50px rgba(22, 50, 79, 0.10);
	--gds-shadow-hover: 0 28px 60px rgba(22, 50, 79, 0.18);
}

/* ===== Base ============================================================== */

html {
	scroll-behavior: smooth;
}

body.gd-stratos {
	font-family: var(--gds-font-body);
	color: var(--gds-text);
	background: #fff;
}

.gd-stratos h1, .gd-stratos h2, .gd-stratos h3,
.gd-stratos h4, .gd-stratos h5, .gd-stratos h6,
.gd-stratos .uk-h1, .gd-stratos .uk-h2, .gd-stratos .uk-h3 {
	font-family: var(--gds-font-heading);
	color: var(--gds-heading);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.gd-stratos a {
	color: var(--gds-accent);
	transition: color 0.2s ease;
}

.gd-stratos a:hover {
	color: var(--gds-accent-2);
	text-decoration: none;
}

.uk-light h1, .uk-light h2, .uk-light h3, .uk-light h4,
.uk-light .gd-section-title {
	color: #fff;
}

/* ===== Buttons (pill + gradient, Stratos style) ========================== */

.gd-stratos .uk-button {
	border-radius: var(--gds-radius-pill);
	font-family: var(--gds-font-heading);
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.3s ease;
}

.gd-stratos .uk-button:hover {
	transform: translateY(-2px);
}

.gd-stratos .uk-button-primary,
.gd-stratos .gd-button-gradient {
	background: var(--gds-gradient);
	background-size: 150% 100%;
	background-position: 0 0;
	color: #fff;
	border: none;
	box-shadow: 0 10px 25px rgba(0, 153, 153, 0.35);
}

.gd-stratos .uk-button-primary:hover,
.gd-stratos .gd-button-gradient:hover {
	background-position: 100% 0;
	color: #fff;
	box-shadow: 0 14px 30px rgba(0, 153, 153, 0.35);
}

.gd-stratos .uk-button-secondary {
	background: var(--gds-dark);
	color: #fff;
}

.gd-stratos .uk-button-default {
	border: 2px solid currentColor;
	background: transparent;
}

/* ===== Header / navbar =================================================== */

.gd-header {
	z-index: 980;
}

.gd-header-overlay {
	position: absolute;
	inset: auto 0;
	left: 0;
	right: 0;
	width: 100%;
}

body.gd-header-is-overlay .gd-header-overlay {
	position: absolute;
}

.gd-navbar {
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* gd-navbar-center */
.gd-navbar > .uk-container > .uk-navbar,
.gd-navbar .uk-navbar-right {align-items: center;}
.gd-navbar .gd-show-nav {position: relative; top: auto; left: auto; right: auto; margin: 0; transform: none; flex-grow: 1; display: flex; justify-content: center;}
/* gd-navbar-right */
.gd-navbar .gd-plain-module {height: fit-content;}
.gd-navbar-cta {align-items: center;}

/* Beat UIkit's .uk-navbar-container:not(.uk-navbar-transparent) background. */
.uk-navbar-container.gd-navbar-overlay {
	background: transparent;
}

.uk-navbar-container.gd-navbar-solid {
	background: #fff;
	box-shadow: 0 6px 24px rgba(22, 50, 79, 0.08);
	padding: 10px 0;
}

/* When sticky kicks in over the hero, drop the light treatment. */
.gd-navbar.uk-navbar-sticky .gd-logo img {height: 28px;}
.gd-navbar.uk-navbar-sticky .uk-navbar-item {min-height: fit-content;}

.gd-navbar-solid.uk-light .uk-navbar-nav > li > a {min-height: fit-content;}
.gd-navbar-solid.uk-light .uk-navbar-nav > li > a,
.gd-navbar-solid .uk-navbar-nav > li > a {
	color: var(--gds-heading);
}

/* Compact menu items while the sticky header is active (UIkit default: 80px). */
.gd-navbar.uk-navbar-sticky .uk-navbar-nav > li > a {
	min-height: 50px;
}

.gd-navbar .uk-navbar {
	min-height: fit-content;
}

.gd-navbar-nav > li > a {
	font-family: var(--gds-font-heading);
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0 13px;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: 0;
	color: var(--gds-heading);
	position: relative;
	transition: color 0.2s ease;
}

.gd-navbar-overlay.uk-light .gd-navbar-nav > li > a {
	color: rgba(255, 255, 255, 0.85);
}

.gd-navbar-overlay.uk-light .gd-navbar-nav > li > a:hover,
.gd-navbar-overlay.uk-light .gd-navbar-nav > li.uk-active > a {
	color: #fff;
}

.gd-navbar-nav > li > a::after {
	content: "";
	position: absolute;
	left: 15px;
	right: 15px;
	bottom: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--gds-gradient);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

/* Compact sticky header (50px items): keep the underline close to the label. */
.gd-navbar.uk-navbar-sticky .gd-navbar-nav > li > a::after {
	bottom: 6px;
}

.gd-navbar-nav > li > a:hover::after,
.gd-navbar-nav > li.uk-active > a::after {
	transform: scaleX(1);
}

.gd-navbar-dropdown {
	border-radius: 14px;
	box-shadow: var(--gds-shadow-hover);
	padding: 20px;
}

/* Until the UIkit navbar JS attaches the drop behavior (adds .uk-drop), the
   dropdown markup has no positioning CSS — keep it hidden to avoid a flash
   of unstyled, inline dropdowns on load. */
.gd-navbar-nav .uk-navbar-dropdown:not(.uk-drop) {
	display: none;
}

/* Explicit height + max-width:none — UIkit's base `img { max-width: 100%;
   height: auto }` otherwise collapses the logo to 0×0 inside the flex
   navbar item (circular sizing). */
.gd-logo img {
	height: 44px;
	width: auto;
	max-width: none;
}

/* Logo swap between overlay (light) and solid states. */
.gd-logo .gd-logo-light { display: none; }
.gd-navbar-overlay .gd-logo .gd-logo-light { display: block; }
.gd-navbar-overlay .gd-logo .gd-logo-light + .gd-logo-default,
.gd-navbar-overlay .gd-logo:has(.gd-logo-light) .gd-logo-default { display: none; }

.gd-logo-text {
	font-family: var(--gds-font-heading);
	font-weight: 800;
	font-size: 1.05rem;
	line-height: 1.2;
	max-width: 240px;
	white-space: normal;
	color: inherit;
}

/* Legacy logo modules ship a fixed-size <img>; keep it inside the bar. */
.gd-logo .moduletable img {
	height: 40px;
	width: auto;
	max-width: none;
}

/* ===== Hero ============================================================== */

.gd-hero {
	background:
		radial-gradient(1000px 500px at 85% 20%, rgba(0, 153, 153, 0.35), transparent 60%),
		radial-gradient(700px 420px at 10% 85%, rgba(100, 199, 171, 0.20), transparent 60%),
		var(--gds-dark);
	overflow: hidden;
	padding-top: 160px;
}

/* Photo background variant: brand-tinted overlay above the image, keeping
   text contrast (image set via --gds-hero-image from the template params). */
.gd-hero-has-image {
	background:
		linear-gradient(100deg, rgba(0, 61, 61, 0.93) 0%, rgba(0, 88, 88, 0.80) 45%, rgba(0, 128, 128, 0.55) 100%),
		var(--gds-hero-image) center / cover no-repeat,
		var(--gds-dark);
}

/* Slideshow background variant: uk-slideshow items pinned behind the content,
   brand overlay above them, modules on top. */
.gd-hero-slideshow {
	background: var(--gds-dark);
}

.gd-hero .uk-slideshow-items {
	z-index: 0;
}

.gd-hero .uk-slideshow-items,
.gd-hero .uk-slideshow-items > * {
	min-height: 100%;
}

/* Robust cover even before the uk-cover JS kicks in. */
.gd-hero .uk-slideshow-items img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gd-hero-overlay {
	background: linear-gradient(100deg, rgba(0, 61, 61, 0.93) 0%, rgba(0, 88, 88, 0.80) 45%, rgba(0, 128, 128, 0.55) 100%);
	pointer-events: none;
}

/* Full first fold: the hero fills the viewport (minus the toolbar band),
   with the transparent navbar overlaid and the content vertically centered. */
.gd-hero-full {
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding-top: 140px;
	padding-bottom: 80px;
}

.gd-hero-full > .uk-container {
	width: 100%;
}

body:not(.gd-header-is-overlay) .gd-hero {
	padding-top: 70px;
}

.gd-hero h1,
.gd-hero .uk-heading-large {
	font-size: clamp(2rem, 4.5vw, 3.4rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: #fff;
}

.gd-hero .uk-text-lead,
.gd-hero p {
	color: rgba(255, 255, 255, 0.75);
}

/* Gradient highlight for a span inside the hero title. */
.gd-hero em,
.gd-text-gradient {
	font-style: normal;
	background: var(--gds-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.gd-hero-ornament {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.5;
	pointer-events: none;
}

.gd-hero-ornament-1 {
	width: 420px;
	height: 420px;
	top: -120px;
	right: -80px;
	background: var(--gds-accent-2);
}

.gd-hero-ornament-2 {
	width: 320px;
	height: 320px;
	bottom: -140px;
	left: -100px;
	background: var(--gds-accent);
	opacity: 0.35;
}

.gd-hero-glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(600px 300px at 50% 0%, rgba(255, 255, 255, 0.06), transparent 70%);
	pointer-events: none;
}

/* Hero trust badges + floating panel card. */
.gd-hero-badges {
	gap: 24px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.9rem;
}

.gd-hero-badges > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.gd-hero-badges .uk-icon {
	color: var(--gds-c1);
}

.gd-hero .gd-hero-card {
	border-radius: var(--gds-radius);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);
	box-shadow: 0 30px 60px rgba(10, 25, 41, 0.45);
	color: rgba(255, 255, 255, 0.85);
}

.gd-hero .gd-hero-card .uk-card-title {
	color: #fff;
	font-size: 1.2rem;
}

.gd-hero .gd-hero-card a {
	color: rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	gap: 10px;
}

.gd-hero .gd-hero-card a:hover {
	color: #fff;
}

.gd-hero .gd-hero-card a .uk-icon {
	color: var(--gds-c1);
	flex: none;
}

/* ===== Stats band ======================================================== */

.gd-stats {
	background: #fff;
}

.gd-stats .gd-stat,
.gd-stat {
	text-align: center;
	height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gd-stat-number {
	font-family: var(--gds-font-heading);
	font-weight: 800;
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	background: var(--gds-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Linked stat card: image row above the number, subtle lift on hover. */
.gd-stat-link {
	display: block;
	padding: 18px 10px;
	border-radius: var(--gds-radius);
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gd-stat-link:hover {
	color: inherit;
	background: #fff;
	transform: translateY(-4px);
	box-shadow: var(--gds-shadow);
}

.gd-stat-media {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 44px;
	margin-bottom: 12px;
}

/* Explicit sizing — UIkit's img reset (max-width:100%; height:auto) would
   otherwise ignore the height attribute. */
.gd-stat-media img {
	height: 40px;
	width: auto;
	max-width: none;
}

.gd-stat-media .gd-star-on {
	color: #f6b01e;
}
.gd-stat-media .gd-star-on polygon {
	fill: #f6b01e;
}
/* ===== Sections ========================================================== */

.gd-section {
	position: relative;
}

.gd-section-dark {
	background:
		radial-gradient(900px 480px at 90% 10%, rgba(0, 153, 153, 0.28), transparent 60%),
		var(--gds-dark);
}

.gd-bg-lilac {
	background: var(--gds-light);
}

/* Top-A band (breadcrumbs / page intro): brand gradient with white content. */
.gd-top-a {
	background: var(--gds-gradient);
}

.gd-top-a,
.gd-top-a a,
.gd-top-a h1, .gd-top-a h2, .gd-top-a h3, .gd-top-a h4, .gd-top-a h5, .gd-top-a h6,
.gd-top-a .gd-module-title,
.gd-top-a .uk-breadcrumb > * > *,
.gd-top-a .uk-breadcrumb > :last-child > * {
	color: #fff;
}

.gd-top-a a:hover {
	color: #fff;
	opacity: 0.8;
}

/* Breadcrumb separators and current item on the gradient. */
.gd-top-a .uk-breadcrumb > * + *::before {
	color: rgba(255, 255, 255, 0.6);
}

.gd-section-head {
	max-width: 720px;
	margin: 0 auto 40px;
}

.gd-eyebrow {
	font-family: var(--gds-font-heading);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gds-accent);
	margin-bottom: 10px;
}

.uk-light .gd-eyebrow,
.gd-section-dark .gd-eyebrow {
	color: rgba(255, 255, 255, 0.6);
}

.gd-section-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	line-height: 1.15;
	margin: 0;
}

.gd-module-title {
	font-size: 1.15rem;
	margin-bottom: 15px;
}

/* ===== Cards ============================================================= */

.gd-card,
.gd-stratos .uk-card-default {
	border-radius: var(--gds-radius);
	box-shadow: var(--gds-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gd-stratos .uk-card-default:hover {
	transform: translateY(-6px);
	box-shadow: var(--gds-shadow-hover);
}

.gd-card-title {
	font-size: 1.15rem;
}

/* Feature cards on dark sections. */
.gd-section-dark .uk-card-default {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: none;
	color: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(6px);
}

.gd-section-dark .uk-card-default .uk-card-title,
.gd-section-dark .uk-card-default h3 {
	color: #fff;
}

/* Feature/service card icon (brand colors cycle by card position). */
.gd-feature-icon {
	display: inline-flex;
	width: 64px;
	height: 64px;
	align-items: center;
	justify-content: center;
	border-radius: 18px;
	margin-bottom: 18px;
	color: #fff;
	background: var(--gds-c2);
}

.uk-grid > div:nth-child(4n+1) .gd-feature-icon { background: var(--gds-c1); }
.uk-grid > div:nth-child(4n+2) .gd-feature-icon { background: var(--gds-c2); }
.uk-grid > div:nth-child(4n+3) .gd-feature-icon { background: var(--gds-c3); }
.uk-grid > div:nth-child(4n+4) .gd-feature-icon { background: var(--gds-c4); }

/* Pills / switcher (Quem atendemos). */
.gd-pills.uk-subnav-pill > * > a {
	border-radius: var(--gds-radius-pill);
	padding: 10px 22px;
	font-family: var(--gds-font-heading);
	font-weight: 600;
	text-transform: none;
	border: 1px solid rgba(22, 50, 79, 0.15);
	color: var(--gds-heading);
	transition: all 0.2s ease;
}

.gd-pills.uk-subnav-pill > .uk-active > a {
	background: var(--gds-gradient);
	border-color: transparent;
	color: #fff;
}

.gd-switcher > li {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	font-size: 1.05rem;
}

/* Inline (horizontal) footer menu, e.g. the legal links. */
.gd-menu-inline .uk-nav,
.gd-menu-inline.uk-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
}

.gd-menu-inline .uk-nav > li > a {
	padding: 0;
}

.gd-social-row {
	gap: 16px;
}

.gd-footer .uk-icon-button {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	transition: background 0.2s ease, transform 0.2s ease;
}

.gd-footer .uk-icon-button:hover {
	background: var(--gds-accent);
	transform: translateY(-2px);
}

/* ===== Blog cards (category blog + mod_articles gdcards) ================= */

.gd-blog-card {
	background: #fff;
	border-radius: var(--gds-radius);
	overflow: hidden;
	box-shadow: var(--gds-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.gd-blog-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--gds-shadow-hover);
}

.gd-blog-card-media {
	position: relative;
	overflow: hidden;
}

.gd-blog-card-media img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gd-blog-card:hover .gd-blog-card-media img {
	transform: scale(1.05);
}

.gd-date-pill {
	position: absolute;
	left: 16px;
	bottom: 16px;
	background: #fff;
	color: var(--gds-heading);
	font-size: 0.78rem;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: var(--gds-radius-pill);
	box-shadow: 0 6px 18px rgba(22, 50, 79, 0.18);
}

.gd-date-pill time {
	color: inherit;
}

.gd-blog-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: 28px;
}

.gd-blog-card-category {
	align-self: flex-start;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gds-accent);
	background: var(--gds-light);
	padding: 4px 12px;
	border-radius: var(--gds-radius-pill);
}

.gd-blog-card-title {
	font-size: 1.2rem;
	line-height: 1.3;
	margin: 0;
}

.gd-blog-card-title a {
	color: var(--gds-heading);
}

.gd-blog-card-title a:hover {
	color: var(--gds-accent);
}

.gd-blog-card-intro {
	margin: 0;
	color: var(--gds-text);
	font-size: 0.95rem;
}

.gd-readmore {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--gds-font-heading);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--gds-heading);
}

.gd-readmore .uk-icon {
	transition: transform 0.2s ease;
}

.gd-readmore:hover {
	color: var(--gds-accent);
}

.gd-readmore:hover .uk-icon {
	transform: translateX(5px);
}

/* ===== Slideshow ================ */
.uk-slidenav {width: 27px; height: 27px; background: #f3f3f3; border-radius: 50%; line-height: 15px;
}
.uk-slidenav-next {margin-left: 1px;}
.uk-slidenav-prev {margin-right: 1px;}
.uk-slidenav svg {color: #333;}
.uk-slidenav:hover {background: #009999;}
.uk-slidenav:hover svg {color: #fff;}

/* ===== Testimonials (mod_gd_gmaps_testimonials) + sliders ================ */

.gd-testimonial-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-style: normal;
	font-size: 0.95rem;
}

.gd-testimonial-text {
	margin: 0;
	flex: 1;
}

.gd-testimonial-author {
	gap: 12px;
}

.gd-testimonial-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.gd-testimonials-stars .gd-star-on {
	color: #f6b01e;
}

.gd-testimonials-stars .gd-star-off {
	color: rgba(22, 50, 79, 0.2);
}

.gd-slider-nav {
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff;
	color: var(--gds-heading);
	box-shadow: var(--gds-shadow);
	transition: color 0.2s ease, transform 0.2s ease;
}

.gd-slider-nav:hover {
	color: var(--gds-accent);
	transform: translateY(-2px);
}

.uk-light .gd-slider-nav,
.gd-section-dark .gd-slider-nav {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.gd-stratos .uk-dotnav > .uk-active > * {
	background: var(--gds-accent);
	border-color: var(--gds-accent);
}

/* Slider items need breathing room for card hover shadows. */
.gd-rss-slideset .uk-slider-container,
.gd-testimonials .uk-slider-container {
	padding: 10px;
	margin: -10px;
}

/* ===== Article =========================================================== */

/* Full-width header band with the article's full image (uk-parallax on the
   background position gives the scroll effect) plus the page title overlaid
   on the GD-tinted gradient — same treatment as the home hero. */
.gd-article-hero {
	min-height: clamp(280px, 44vh, 520px);
	background-position: center 30%;
	background-size: cover;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
}

.gd-article-hero-inner {
	width: 100%;
	padding-top: 60px;
	padding-bottom: 44px;
}

.gd-article-hero-title {
	color: #fff;
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0;
	max-width: 900px;
	text-shadow: 0 2px 24px rgba(0, 40, 40, 0.45);
}

/* Articles without a full image still get a header: the same band over the
   brand gradient, a bit shorter since there is only the title to carry. */
.gd-article-hero-plain {
	min-height: clamp(180px, 26vh, 320px);
	background-image: linear-gradient(100deg, var(--gds-dark) 0%, var(--gds-accent) 100%);
}

@media (max-width: 639px) {
	.gd-article-hero {
		min-height: 240px;
	}

	.gd-article-hero-plain {
		min-height: 170px;
	}
}

/* Language selector (mod_languages override): pill with flag + current code,
   hover/focus dropdown with flag + native name — PaperCount-style. */
.gd-lang {
	position: relative;
	margin-right: 14px;
}

.gd-lang-current {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 10px;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	background: #fff;
	color: #6e6e6e;
	font-family: var(--gds-font-heading);
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	line-height: 1;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.gd-lang-current:hover {
	color: var(--gds-heading);
	border-color: #cfcfcf;
	text-decoration: none;
}

/* Over the transparent hero navbar the pill keeps its white ground. */
.gd-navbar-overlay .gd-lang-current {
	border-color: rgba(255, 255, 255, 0.35);
}

.gd-lang-flag {
	width: 20px;
	height: 14px;
	max-width: none;
	border-radius: 2px;
	object-fit: cover;
	display: block;
}

.gd-lang-list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 1030;
	margin: 0;
	padding: 6px;
	list-style: none;
	min-width: 168px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.13s ease, transform 0.13s ease, visibility 0.13s ease;
}

.gd-lang:hover .gd-lang-list,
.gd-lang:focus-within .gd-lang-list {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.gd-lang-item {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 7px 9px;
	border-radius: 7px;
	color: #111;
	font-size: 0.88rem;
	line-height: 1.3;
}

.gd-lang-item:hover {
	background: #f5f5f5;
	color: #111;
	text-decoration: none;
}

.gd-lang-item-active {
	background: #efefef;
	font-weight: 600;
}

/* Contact line in the copyright area (horizontal). */
.gd-contact-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 20px;
	color: rgba(255, 255, 255, 0.65);
}

.gd-contact-line a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.gd-footer-bottom-modules {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px 28px;
}


.gd-article-title {
	font-size: clamp(1.9rem, 4.5vw, 2.8rem);
	line-height: 1.15;
	margin-bottom: 10px;
}

.gd-article-meta {
	gap: 18px;
	margin: 18px 0 28px;
}

.gd-article-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.gd-article-image img {
	width: 100%;
	border-radius: var(--gds-radius);
}

/* Long-form rich text. The article body and the category descriptions share a
   single reading style: the descriptions used to carry UIkit's .uk-text-lead,
   which rendered them much larger than the article text they introduce. Add
   .gd-richtext to any block of editor-authored content. */
.gd-article-body,
.gd-richtext {
	font-size: 1.06rem;
	line-height: 1.75;
}

.gd-article-body img,
.gd-richtext img {
	border-radius: calc(var(--gds-radius) / 2);
	max-width: 100%;
	height: auto;
}

/* ===== Category GRID (institutional default) ============================ */

.gd-grid-card {
	display: block;
	position: relative;
	border-radius: var(--gds-radius);
	overflow: hidden;
	height: 100%;
	min-height: 200px;
	box-shadow: var(--gds-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gd-grid-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--gds-shadow-hover);
}

.gd-grid-card-media {
	display: block;
	position: relative;
	height: 100%;
	min-height: 200px;
}

.gd-grid-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gd-grid-card:hover .gd-grid-card-img {
	transform: scale(1.06);
}

/* Branded fallback when the article has no image. */
.gd-grid-card-media-empty {
	background: var(--gds-gradient);
}

.gd-grid-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 51, 51, 0) 30%, rgba(0, 45, 45, 0.55) 60%, rgba(0, 40, 40, 0.9) 100%);
}

.gd-grid-card-media-empty .gd-grid-card-overlay {
	background: linear-gradient(180deg, rgba(0, 61, 61, 0.15) 0%, rgba(0, 61, 61, 0.45) 100%);
}

.gd-grid-card-title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 18px 18px 20px;
	color: #fff;
	font-family: var(--gds-font-heading);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.25;
	z-index: 1;
}

.gd-category-links a,
.gd-blog-more a {
	font-weight: 600;
}

/* ===== Blog MAGAZINE (periodicoeletronico-style) ======================== */

.gd-chip {
	display: inline-block;
	font-family: var(--gds-font-heading);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gds-accent);
	background: var(--gds-light);
	padding: 4px 11px;
	border-radius: var(--gds-radius-pill);
	margin-bottom: 12px;
}

.gd-blog-heading,
.gd-stream-heading {
	font-size: clamp(1.3rem, 3vw, 1.7rem);
	margin: 0 0 24px;
}

/* Featured slider cards */
.gd-fcard {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--gds-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--gds-shadow);
	color: inherit;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gd-fcard:hover {
	transform: translateY(-6px);
	box-shadow: var(--gds-shadow-hover);
	color: inherit;
}

.gd-fcard-media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.gd-fcard-media-empty {
	background: var(--gds-gradient);
}

.gd-fcard-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gd-fcard:hover .gd-fcard-img {
	transform: scale(1.05);
}

.gd-fcard-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px;
}

.gd-fcard-title {
	font-family: var(--gds-font-heading);
	font-weight: 800;
	font-size: 1.15rem;
	line-height: 1.3;
	color: var(--gds-heading);
}

.gd-fcard-date {
	font-size: 0.82rem;
	color: var(--gds-text);
	margin-top: auto;
}

/* A single featured post reads as a wide hero (media beside body ≥ tablet)
   and drops the carousel controls. */
.gd-fslider-single .gd-slider-nav,
.gd-fslider-single .uk-slider-nav {
	display: none;
}

@media (min-width: 640px) {
	.gd-fslider-single .gd-fcard {
		flex-direction: row;
	}

	.gd-fslider-single .gd-fcard-media {
		flex: 0 0 55%;
		aspect-ratio: auto;
	}

	.gd-fslider-single .gd-fcard-body {
		flex: 1;
		justify-content: center;
		padding: 34px;
	}

	.gd-fslider-single .gd-fcard-title {
		font-size: 1.5rem;
	}
}

/* Post stream (media + body rows) */
.gd-stream {
	display: flex;
	flex-direction: column;
	gap: 34px;
}

.gd-post {
	padding-bottom: 34px;
	border-bottom: 1px solid rgba(22, 50, 79, 0.10);
}

.gd-post:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.gd-post-media {
	display: block;
	border-radius: var(--gds-radius);
	overflow: hidden;
}

.gd-post-img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gd-post-media:hover .gd-post-img {
	transform: scale(1.04);
}

.gd-post-title {
	font-size: clamp(1.15rem, 2.4vw, 1.55rem);
	line-height: 1.25;
	margin: 0 0 10px;
}

.gd-post-title a {
	color: var(--gds-heading);
}

.gd-post-title a:hover {
	color: var(--gds-accent);
}

/* Rich metadata bar (author, date, views, reading time) — periodicoeletronico style. */
.gd-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 6px 0 14px;
	font-size: 0.82rem;
	color: var(--gds-text);
}

.gd-meta-avatar {
	flex: none;
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--gds-gradient);
	color: #fff;
	font-family: var(--gds-font-heading);
	font-weight: 700;
	font-size: 0.8rem;
	margin-right: -6px;
}

.gd-meta-author strong {
	color: var(--gds-heading);
	font-weight: 700;
}

.gd-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.gd-meta-item .uk-icon {
	color: var(--gds-accent);
}

.gd-post-intro {
	color: var(--gds-text);
	line-height: 1.6;
	margin-bottom: 14px;
}

/* ===== Knowledge base (help center) ===================================== */

/* Break the KB search hero out of the (narrow, no-sidebar) content container
   to a full-width brand band, like a help center home. */
/* Inside a column (page with sidebar) the hero stays a contained rounded band. */
.gd-kb-hero {
	position: relative;
	margin: 0 0 36px;
	padding: 48px 24px;
	border-radius: var(--gds-radius);
	background:
		radial-gradient(700px 360px at 80% 15%, rgba(0, 153, 153, 0.35), transparent 60%),
		var(--gds-dark);
	overflow: hidden;
}

/* Without a sidebar it breaks out to the full window width. */
/* The negative top margin cancels the .gd-main section's top padding, so the
   band sits flush under the header. It must track UIkit's .uk-section padding:
   40px below 960px, 70px from 960px up. */
body:not(.gd-has-sidebar) .gd-kb-hero {
	margin: -40px calc(50% - 50vw) 40px;
	padding: 64px 24px;
	border-radius: 0;
}

@media (min-width: 960px) {
	body:not(.gd-has-sidebar) .gd-kb-hero {
		margin-top: -70px;
	}
}

/* Grouped topics: subcategory heading + its own articles below. */
.gd-kb-group {
	margin-bottom: 36px;
}

.gd-kb-group-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: clamp(1.1rem, 2.6vw, 1.45rem);
	margin: 0 0 14px;
}

.gd-kb-group-title a {
	color: var(--gds-heading);
}

.gd-kb-group-title a:hover {
	color: var(--gds-accent);
}

.gd-kb-group-count {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--gds-accent);
	background: var(--gds-light);
	padding: 3px 11px;
	border-radius: var(--gds-radius-pill);
}

.gd-kb-group-desc {
	font-size: 0.9rem;
	color: var(--gds-text);
	margin: -6px 0 12px;
}

.gd-kb-hero-inner {
	max-width: 720px;
	margin: 0 auto;
}

.gd-kb-hero .gd-eyebrow {
	color: rgba(255, 255, 255, 0.7);
}

.gd-kb-title {
	color: #fff;
	font-size: clamp(1.7rem, 4vw, 2.6rem);
	margin: 0 0 26px;
}

.gd-kb-search {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 560px;
	margin: 0 auto;
	background: #fff;
	border-radius: var(--gds-radius-pill);
	padding: 6px 6px 6px 18px;
	box-shadow: 0 20px 45px rgba(0, 40, 40, 0.30);
}

.gd-kb-search [uk-search-icon] {
	color: var(--gds-text);
	flex: none;
}

.gd-kb-search .uk-input {
	flex: 1;
	border: 0;
	background: transparent;
	height: 44px;
	font-size: 1rem;
	box-shadow: none;
	padding: 0 6px;
}

.gd-kb-search .uk-input:focus {
	background: transparent;
	box-shadow: none;
}

.gd-kb-search .uk-button {
	flex: none;
	border-radius: var(--gds-radius-pill);
	padding: 0 22px;
	height: 44px;
	line-height: 44px;
}

.gd-kb-desc {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

/* Topic tiles (child categories) */
.gd-kb-topic {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 100%;
	padding: 22px;
	border-radius: var(--gds-radius);
	background: #fff;
	box-shadow: var(--gds-shadow);
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gd-kb-topic:hover {
	transform: translateY(-4px);
	box-shadow: var(--gds-shadow-hover);
	color: inherit;
}

.gd-kb-topic-icon {
	flex: none;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	background: var(--gds-light);
	color: var(--gds-accent);
}

.gd-kb-topic-icon img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.gd-kb-topic-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
	min-width: 0;
}

.gd-kb-topic-title {
	font-family: var(--gds-font-heading);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--gds-heading);
}

.gd-kb-topic-desc {
	font-size: 0.85rem;
	color: var(--gds-text);
}

.gd-kb-topic-count {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--gds-accent);
	margin-top: 2px;
}

.gd-kb-topic-arrow {
	flex: none;
	color: rgba(22, 50, 79, 0.3);
	transition: transform 0.2s ease, color 0.2s ease;
}

.gd-kb-topic:hover .gd-kb-topic-arrow {
	color: var(--gds-accent);
	transform: translateX(3px);
}

/* Article directory */
.gd-kb-section-title {
	font-size: clamp(1.2rem, 3vw, 1.6rem);
	margin: 0 0 18px;
}

.gd-kb-list {
	margin: 0;
	border-radius: var(--gds-radius);
	overflow: hidden;
	box-shadow: var(--gds-shadow);
	background: #fff;
}

.gd-kb-list > li {
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(22, 50, 79, 0.08);
}

.gd-kb-list > li:first-child {
	border-top: 0;
}

.gd-kb-article {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 22px;
	color: inherit;
	transition: background 0.15s ease;
}

.gd-kb-article:hover {
	background: var(--gds-light);
	color: inherit;
}

.gd-kb-article-icon {
	flex: none;
	color: var(--gds-accent);
}

.gd-kb-article-main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
}

.gd-kb-article-title {
	font-family: var(--gds-font-heading);
	font-weight: 600;
	color: var(--gds-heading);
}

.gd-kb-article-intro {
	font-size: 0.86rem;
	color: var(--gds-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gd-kb-article-arrow {
	flex: none;
	color: rgba(22, 50, 79, 0.3);
	transition: transform 0.2s ease, color 0.2s ease;
}

.gd-kb-article:hover .gd-kb-article-arrow {
	color: var(--gds-accent);
	transform: translateX(3px);
}

/* ===== Breadcrumbs / page headings ====================================== */

.gd-breadcrumbs .uk-breadcrumb {
	font-size: 0.85rem;
}

.gd-page-heading,
.gd-category-title {
	font-size: clamp(1.7rem, 4vw, 2.4rem);
}

/* ===== CTA band ========================================================== */

.gd-cta {
	background: var(--gds-gradient);
	color: #fff;
}

.gd-cta h2, .gd-cta h3 {
	color: #fff;
}

.gd-cta .uk-button-primary {
	background: #fff;
	color: var(--gds-heading);
	box-shadow: 0 10px 25px rgba(22, 50, 79, 0.25);
}

/* ===== Footer ============================================================ */

.gd-footer {
	background:
		radial-gradient(900px 400px at 15% 0%, rgba(0, 153, 153, 0.20), transparent 60%),
		var(--gds-footer-bg);
	color: rgba(255, 255, 255, 0.7);
}

.gd-footer h3, .gd-footer h4, .gd-footer h5,
.gd-footer .gd-module-title {
	color: #fff;
	font-size: 1rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 18px;
}

.gd-footer a {
	color: rgba(255, 255, 255, 0.7);
}

.gd-footer a:hover {
	color: #fff;
}

.gd-footer .uk-nav > li > a,
.gd-footer .uk-list > li > a {
	padding: 4px 0;
}

/* Sub-items in the footer sitemap: indented, slightly smaller and dimmer. */
.gd-footer .uk-nav-sub {
	padding: 2px 0 6px 14px;
	border-left: 1px solid rgba(255, 255, 255, 0.15);
	margin-left: 2px;
}

.gd-footer .uk-nav-sub > li > a {
	padding: 3px 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.55);
	display: block;
}

.gd-footer .uk-nav-sub > li > a:hover {
	color: #fff;
}

.gd-footer-divider {
	border-color: rgba(255, 255, 255, 0.12);
	margin: 30px 0;
}

.gd-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 24px;
	gap: 12px;
}

/* ===== Offcanvas ========================================================= */

.gd-offcanvas-bar {
	background: var(--gds-dark);
}

.gd-offcanvas-bar .gd-nav > li > a {
	color: rgba(255, 255, 255, 0.8);
	font-family: var(--gds-font-heading);
	font-weight: 600;
	padding: 10px 0;
}

.gd-offcanvas-bar .gd-nav > li > a:hover,
.gd-offcanvas-bar .gd-nav > li.uk-active > a {
	color: #fff;
}

/* ===== Floating buttons ================================================== */

.gd-backtop {
	position: fixed;
	right: 24px;
	bottom: 96px;
	z-index: 990;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff;
	color: var(--gds-heading);
	box-shadow: var(--gds-shadow);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

body.gd-scrolled .gd-backtop {
	opacity: 1;
	visibility: visible;
}

.gd-backtop:hover {
	transform: translateY(-3px);
	color: var(--gds-accent-2);
}

.gd-whatsapp {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 990;
	width: 54px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gd-whatsapp:hover {
	transform: translateY(-3px) scale(1.05);
	color: #fff;
	box-shadow: 0 16px 36px rgba(37, 211, 102, 0.55);
}

/* The generic link colour (.gd-stratos a / a:hover) outranks .gd-whatsapp, so
   the icon came out teal. Colour-only override, so the mobile position rule
   below keeps working. */
.gd-stratos a.gd-whatsapp,
.gd-stratos a.gd-whatsapp:hover {
	color: #fff;
}

/* ===== Pagination ======================================================== */

.gd-pagination .pagination,
.gd-pagination ul {
	display: flex;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
}

.gd-pagination .page-link,
.gd-pagination a,
.gd-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: var(--gds-radius-pill);
	border: 1px solid rgba(22, 50, 79, 0.12);
	color: var(--gds-heading);
	font-weight: 600;
	font-size: 0.9rem;
}

.gd-pagination .active .page-link,
.gd-pagination .active span {
	background: var(--gds-gradient);
	border: none;
	color: #fff;
}

/* Arrow buttons (start/prev/next/end) use inline SVG from the pagination
   override — keep them square and let the chevron inherit the text colour. */
.gd-pagination .gd-page-icon {
	display: block;
	width: 18px;
	height: 18px;
}

.gd-pagination .page-item .page-link:has(.gd-page-icon) {
	padding: 0;
}

.gd-pagination .disabled .page-link,
.gd-pagination .disabled span {
	opacity: 0.35;
	cursor: default;
}

.gd-pagination .page-link:hover {
	border-color: var(--gds-accent);
	color: var(--gds-accent);
}

.gd-pagination .active .page-link:hover {
	color: #fff;
}

/* The core wrapper carries Bootstrap spacing classes this template does not
   load — neutralise the stray bottom margin. */
.gd-pagination .pagination {
	margin-bottom: 0;
}

/* ===== Forms ============================================================= */

.gd-stratos .uk-input,
.gd-stratos .uk-select,
.gd-stratos .uk-textarea,
.gd-stratos input[type="text"],
.gd-stratos input[type="email"],
.gd-stratos input[type="search"] {
	border-radius: var(--gds-radius-pill);
	border: 1px solid rgba(22, 50, 79, 0.15);
	padding-left: 18px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gd-stratos .uk-textarea {
	border-radius: var(--gds-radius);
}

.gd-stratos .uk-input:focus,
.gd-stratos .uk-select:focus,
.gd-stratos .uk-textarea:focus {
	border-color: var(--gds-accent-2);
	box-shadow: 0 0 0 3px rgba(0, 153, 153, 0.15);
}

/* ===== Utilities ========================================================= */

.gd-show-desktop { display: none; }
.gd-hide-desktop { display: flex; }

@media (min-width: 960px) {
	.gd-show-desktop { display: flex; }
	.gd-hide-desktop { display: none; }
}

/* The main menu needs more room than the 960px breakpoint offers (long
   labels): show it only from 1200px, keep the hamburger below that. */
.gd-show-nav { display: none; }
.gd-hide-nav { display: flex; }

@media (min-width: 1200px) {
	.gd-show-nav { display: flex; }
	.gd-hide-nav { display: none; }
}

/* Safety net: an absolutely-centered navbar can't cause page-level
   horizontal scroll. */
body.gd-stratos {
	overflow-x: clip;
}

/* Fluid media inside content. */
.gd-content img {
	max-width: 100%;
	height: auto;
}

/* Skip link */
.uk-skip-nav {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: #fff;
	padding: 10px 18px;
	border-radius: 0 0 10px 0;
}

.uk-skip-nav:focus {
	left: 0;
}

/* ===== Mobile fine-tuning =============================================== */

@media (max-width: 639px) {
	.gd-hero {
		padding-top: 120px;
	}

	.gd-navbar .uk-navbar {
		min-height: 68px;
	}

	.gd-blog-card-media img {
		height: 190px;
	}

	.gd-backtop {
		right: 16px;
		bottom: 88px;
	}

	.gd-whatsapp {
		right: 16px;
		bottom: 16px;
	}
}
