/* =========================================================
   Global Plus Theme — base stylesheet
   Design tokens are CSS custom properties; the Customizer
   overrides them per-site via an inline <style> in wp_head().
   ========================================================= */

:root {
	--gp-color-topbar: #0a72d3;
	--gp-color-topbar-text: #ffffff;
	--gp-color-button-bg: #f76713;
	--gp-color-button-text: #ffffff;
	--gp-color-header-bg: #ffffff;
	--gp-color-nav-text: #1a1a1a;
	--gp-color-nav-text-hover: #0a72d3;
	--gp-color-link: #0a72d3;
	--gp-color-heading: #0d1b2a;
	--gp-color-body-text: #333333;
	--gp-color-footer-main-bg: #f76713;
	--gp-color-footer-main-text: #ffffff;
	--gp-color-footer-bottom-bg: #1f41c6;
	--gp-color-footer-bottom-text: #ffffff;
	--gp-color-page-title-bg: #f4f6f8;
	--gp-color-page-title-text: #0d1b2a;

	--gp-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--gp-font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--gp-font-size-base: 16px;

	--gp-container-width: 1600px;
	--gp-radius: 4px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--gp-font-body);
	font-size: var(--gp-font-size-base);
	line-height: 1.65;
	color: var(--gp-color-body-text);
	background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gp-color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--gp-font-heading);
	color: var(--gp-color-heading);
	line-height: 1.25;
	margin: 0 0 .6em;
	font-weight: 700;
}
p { margin: 0 0 1.4em; }
ul, ol { padding-left: 1.4em; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 3px solid var(--gp-color-topbar); outline-offset: 2px; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0,0,0,0); border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100000; background: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }

.gp-container {
	max-width: var(--gp-container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* ---------- Buttons (shared) ---------- */
.gp-btn, .wp-block-button__link {
	display: inline-block;
	background: var(--gp-color-button-bg);
	color: var(--gp-color-button-text);
	padding: .7em 1.6em;
	border-radius: var(--gp-radius);
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: opacity .15s ease;
}
.gp-btn:hover, .wp-block-button__link:hover { opacity: .88; color: var(--gp-color-button-text); text-decoration: none; }

/* ---------- Top utility bar ---------- */
.gp-topbar {
	background: var(--gp-color-topbar);
	color: var(--gp-color-topbar-text);
}
.gp-topbar .gp-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
	padding-top: 6px;
	padding-bottom: 6px;
}
.gp-topbar-left { display: flex; align-items: center; gap: 12px; }
.gp-topbar-right { display: flex; align-items: center; gap: 16px; }
.gp-topbar .gp-btn { padding: .4em 1.2em; font-size: .9rem; }
.gp-topbar-search-toggle {
	background: none; border: none; color: inherit; cursor: pointer; font-size: 1rem; padding: 4px;
}
.gp-social-icons { display: flex; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.gp-social-icons a {
	color: var(--gp-color-topbar-text);
	width: 28px; height: 28px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	font-size: .85rem;
}
.gp-social-icons a:hover { opacity: .8; text-decoration: none; }

.gp-topbar-search {
	display: none;
	background: rgba(0,0,0,.08);
}
.gp-topbar-search.is-open { display: block; }
.gp-topbar-search form {
	display: flex;
	max-width: var(--gp-container-width);
	margin: 0 auto;
	padding: 10px 24px;
}
.gp-topbar-search input[type="search"] {
	flex: 1;
	padding: .5em .8em;
	border: none;
	border-radius: var(--gp-radius) 0 0 var(--gp-radius);
}
.gp-topbar-search button {
	border: none;
	background: var(--gp-color-button-bg);
	color: var(--gp-color-button-text);
	padding: 0 1.2em;
	border-radius: 0 var(--gp-radius) var(--gp-radius) 0;
	cursor: pointer;
}

/* ---------- Main header ---------- */
.gp-header {
	background: var(--gp-color-header-bg);
	border-bottom: 1px solid rgba(0,0,0,.06);
}
.gp-header .gp-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 14px;
	padding-bottom: 14px;
}
.gp-branding { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gp-branding img.gp-logo { max-width: 64px; width: 100%; height: auto; flex-shrink: 0; }
.gp-branding-text { min-width: 0; }
.gp-site-title { font-size: 1.4rem; margin: 0; line-height: 1.2; }
.gp-site-title a { color: var(--gp-color-heading); text-decoration: none; }
.gp-site-tagline { margin: 2px 0 0; font-size: .85rem; color: var(--gp-color-body-text); letter-spacing: .02em; }

/* ---------- Primary nav ---------- */
.gp-primary-nav { display: flex; }
.gp-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
}
.gp-menu li { position: relative; }
.gp-menu a {
	display: block;
	padding: 10px 14px;
	color: var(--gp-color-nav-text);
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none;
	white-space: nowrap;
}
.gp-menu > li > a:hover, .gp-menu > li.current-menu-item > a { color: var(--gp-color-nav-text-hover); }
.gp-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	background: #fff;
	min-width: 220px;
	box-shadow: 0 10px 30px rgba(0,0,0,.12);
	border-radius: var(--gp-radius);
	padding: 8px 0;
	z-index: 50;
	list-style: none;
	margin: 0;
}
.gp-menu li:hover > .sub-menu,
.gp-menu li.gp-submenu-open > .sub-menu { display: block; }
.gp-menu .sub-menu a { padding: 8px 18px; color: #333; font-weight: 500; }
.gp-menu .menu-item-has-children > a::after { content: "\25BE"; margin-left: 6px; font-size: .7em; }

.gp-mobile-toggle {
	display: none;
	background: none;
	border: 2px solid var(--gp-color-nav-text);
	color: var(--gp-color-nav-text);
	border-radius: var(--gp-radius);
	padding: 8px 12px;
	font-size: 1.1rem;
	cursor: pointer;
}

/* ---------- Page title / banner ---------- */
.gp-page-title {
	background: var(--gp-color-page-title-bg);
	padding: 26px 0;
	text-align: center;
}
.gp-page-title h1 { margin: 0; font-size: 1.9rem; color: var(--gp-color-page-title-text); }

/* ---------- Colored section banner (block style for core Group) ---------- */
.is-style-gp-banner {
	padding: 22px 24px;
	text-align: center;
}
.is-style-gp-banner h1, .is-style-gp-banner h2, .is-style-gp-banner h3,
.is-style-gp-banner p { color: #fff; margin: 0; }

/* ---------- Logo / card grid (block style for core Gallery/Columns) ---------- */
.is-style-gp-logo-grid.wp-block-gallery {
	gap: 16px;
}
.is-style-gp-logo-grid .wp-block-image {
	border: 1px solid #e6e6e6;
	border-radius: var(--gp-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: #fff;
}
.is-style-gp-logo-grid .wp-block-image img { object-fit: contain; max-height: 110px; width: auto; margin: 0 auto; }

/* ---------- Client logo grid ([gp_clients]) ---------- */
.gp-client-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	padding: 40px 0;
}
.gp-client-logo {
	border: 1px solid #e6e6e6;
	border-radius: var(--gp-radius);
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	min-height: 110px;
}
.gp-client-logo img { max-height: 90px; width: auto; object-fit: contain; }

/* ---------- Photo galleries ([gp_photo_galleries]) ---------- */
.gp-gallery-section { margin-bottom: 0; }
.gp-gallery-banner { padding: 22px 24px; text-align: center; }
.gp-gallery-banner h2 { color: #fff; margin: 0; font-size: 1.4rem; }
.gp-gallery-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	background: #fff;
}
.gp-gallery-row img { width: 100%; height: 260px; object-fit: cover; }

/* ---------- Video grid ([gp_videos]) ---------- */
.gp-video-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	padding: 40px 0;
}
.gp-video-item h3 { margin-bottom: 12px; }
.gp-video-item iframe, .gp-video-item .wp-embed-responsive .wp-block-embed__wrapper { width: 100%; aspect-ratio: 16/9; }
.gp-video-item iframe { border: 0; border-radius: var(--gp-radius); }

@media (max-width: 960px) {
	.gp-client-grid { grid-template-columns: repeat(3, 1fr); }
	.gp-gallery-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.gp-client-grid { grid-template-columns: repeat(2, 1fr); }
	.gp-gallery-row { grid-template-columns: 1fr; }
	.gp-video-grid { grid-template-columns: 1fr; }
}

/* ---------- Hero slider ---------- */
.gp-hero-slider { position: relative; overflow: hidden; background: #0d1b2a; min-height: 320px; }
.gp-hero-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	z-index: 1;
	transition: opacity 1s ease;
}
.gp-hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; position: relative; }
.gp-hero-slide::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.42); z-index: 1; }
.gp-hero-slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 6s ease-out, opacity 1s ease;
}
.gp-hero-slide > .gp-container { position: relative; z-index: 2; }
.gp-hero-slide-inner { color: #fff; max-width: 640px; padding: 60px 24px; transition: opacity .8s ease .2s, transform .8s ease .2s; }
.gp-hero-slide-inner h2 { color: #fff; font-size: 2.2rem; }
.gp-hero-slide-inner p { color: #f1f1f1; font-size: 1.1rem; }

/* Background animation variants (Customizer: Background Animation) */
.gp-bg-anim-zoom .gp-hero-slide-bg { transform: scale(1); }
.gp-bg-anim-zoom .gp-hero-slide.is-active .gp-hero-slide-bg { transform: scale(1.12); }
.gp-bg-anim-slide-left .gp-hero-slide-bg { transform: translateX(0); }
.gp-bg-anim-slide-left .gp-hero-slide:not(.is-active) .gp-hero-slide-bg { transform: translateX(6%); }
.gp-bg-anim-slide-right .gp-hero-slide-bg { transform: translateX(0); }
.gp-bg-anim-slide-right .gp-hero-slide:not(.is-active) .gp-hero-slide-bg { transform: translateX(-6%); }
.gp-bg-anim-none .gp-hero-slide-bg { transition: none; }

/* Text animation variants (Customizer: Text Animation) — start slightly
   after the background so both move in sync but stay visually distinct. */
.gp-text-anim-fade-up .gp-hero-slide:not(.is-active) .gp-hero-slide-inner { opacity: 0; transform: translateY(26px); }
.gp-text-anim-fade-in .gp-hero-slide:not(.is-active) .gp-hero-slide-inner { opacity: 0; }
.gp-text-anim-slide-left .gp-hero-slide:not(.is-active) .gp-hero-slide-inner { opacity: 0; transform: translateX(40px); }
.gp-text-anim-slide-right .gp-hero-slide:not(.is-active) .gp-hero-slide-inner { opacity: 0; transform: translateX(-40px); }
.gp-text-anim-zoom .gp-hero-slide:not(.is-active) .gp-hero-slide-inner { opacity: 0; transform: scale(.85); }
.gp-text-anim-none .gp-hero-slide-inner { transition: none; }
.gp-hero-slide.is-active .gp-hero-slide-inner { opacity: 1; transform: none; }
.gp-hero-dots { position: absolute; z-index: 3; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.gp-hero-dots button {
	width: 10px; height: 10px; border-radius: 50%;
	border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0;
}
.gp-hero-dots button.is-active { background: #fff; }
.gp-hero-arrow {
	position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
	background: rgba(0,0,0,.35); color: #fff; border: none;
	width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
}
.gp-hero-arrow.is-prev { left: 16px; }
.gp-hero-arrow.is-next { right: 16px; }

/* ---------- Contact page band ---------- */
.gp-contact-band { background: var(--gp-color-footer-bottom-bg); color: #fff; padding: 50px 0; margin-top: 20px; }
.gp-contact-band h2 { color: #fff; }
.gp-contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.gp-contact-map iframe { width: 100%; height: 360px; border: 0; border-radius: var(--gp-radius); }
.gp-contact-info a { color: #fff; text-decoration: underline; }
@media (max-width: 782px) {
	.gp-contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.gp-footer-main { background: var(--gp-color-footer-main-bg); color: var(--gp-color-footer-main-text); padding: 44px 0; }
.gp-footer-main a { color: var(--gp-color-footer-main-text); }
.gp-footer-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.gp-footer-columns h3 { color: var(--gp-color-footer-main-text); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.gp-footer-columns ul { list-style: none; margin: 0; padding: 0; }
.gp-footer-columns li { margin-bottom: 8px; }
.gp-footer-bottom { background: var(--gp-color-footer-bottom-bg); color: var(--gp-color-footer-bottom-text); padding: 14px 0; text-align: center; font-size: .9rem; }
.gp-footer-bottom a { color: var(--gp-color-footer-bottom-text); text-decoration: underline; }

/* ---------- Blog listing / single ---------- */
.gp-content-area { padding: 48px 0; }
.gp-entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.gp-entry-card { border: 1px solid #eee; border-radius: var(--gp-radius); overflow: hidden; }
.gp-entry-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.gp-entry-card-body { padding: 16px; }
.gp-entry-card h2 { font-size: 1.15rem; }
.gp-entry-meta { color: #777; font-size: .82rem; margin-bottom: 10px; }
.gp-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.gp-pagination a, .gp-pagination span { padding: 8px 14px; border: 1px solid #ddd; border-radius: var(--gp-radius); }

.gp-single-entry { max-width: 860px; margin: 0 auto; }
.gp-single-entry .gp-entry-meta { margin-bottom: 20px; }
.gp-single-entry img { border-radius: var(--gp-radius); }
.gp-single-entry .wp-block-image { margin: 1.6em 0; }

/* ---------- Comments ---------- */
.gp-comments { max-width: 860px; margin: 40px auto 0; }
.gp-comments ol.comment-list { list-style: none; margin: 0; padding: 0; }
.gp-comments .comment-body { border: 1px solid #eee; border-radius: var(--gp-radius); padding: 16px; margin-bottom: 16px; }
.gp-comments .comment-form input,
.gp-comments .comment-form textarea { width: 100%; padding: .6em .8em; border: 1px solid #ddd; border-radius: var(--gp-radius); margin-bottom: 12px; }

/* ---------- Forms ---------- */
.gp-search-form { display: flex; gap: 8px; }
.gp-search-form input[type="search"] { flex: 1; padding: .6em .8em; border: 1px solid #ddd; border-radius: var(--gp-radius); }

/* ---------- WhatsApp floating button ---------- */
.gp-whatsapp-button {
	position: fixed;
	bottom: 20px;
	z-index: 9000;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25D366;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.gp-whatsapp-button:hover { opacity: .92; text-decoration: none; }
.gp-whatsapp-button.is-right { right: 20px; }
.gp-whatsapp-button.is-left { left: 20px; }

/* ---------- Mobile bottom navigation ---------- */
.gp-bottom-nav {
	display: none;
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 8000;
	background: #fff;
	border-top: 1px solid #eee;
	box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.gp-bottom-nav a {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 8px 4px 10px;
	color: var(--gp-color-nav-text);
	text-decoration: none;
	font-size: .68rem;
	font-weight: 600;
}
.gp-bottom-nav a:hover { color: var(--gp-color-nav-text-hover); text-decoration: none; }
body.gp-has-bottom-nav { padding-bottom: 62px; }

/* ---------- Downloads list ---------- */
.gp-downloads-list { list-style: none; margin: 0; padding: 0; }
.gp-downloads-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border: 1px solid #eee;
	border-radius: var(--gp-radius);
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.gp-download-btn { padding: .4em 1.2em; font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 782px) {
	.gp-bottom-nav { display: flex; }
	.gp-whatsapp-button { bottom: 74px; width: 50px; height: 50px; }
}

@media (max-width: 960px) {
	.gp-footer-columns { grid-template-columns: 1fr 1fr; }
	.gp-entry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) {
	.gp-topbar .gp-container { flex-wrap: wrap; }
	.gp-mobile-toggle { display: inline-flex; align-items: center; gap: 8px; }
	.gp-primary-nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: #fff;
		box-shadow: 0 12px 24px rgba(0,0,0,.12);
		z-index: 60;
	}
	.gp-primary-nav.is-open { display: block; }
	.gp-header .gp-container { position: relative; flex-wrap: wrap; }
	.gp-menu { flex-direction: column; align-items: stretch; padding: 10px 0; }
	.gp-menu .sub-menu { position: static; box-shadow: none; display: none; padding-left: 14px; }
	.gp-menu li.gp-submenu-open > .sub-menu { display: block; }
	.gp-footer-columns { grid-template-columns: 1fr; }
	.gp-entry-grid { grid-template-columns: 1fr; }
	.gp-hero-slide-inner h2 { font-size: 1.6rem; }
}
