/* ==========================================================================
   PGEM Group — Champagne Gold theme
   1. Tokens  2. Base  3. Layout & utilities  4. Buttons  5. Header
   6. Hero slider  7. Homepage sections  8. CTA & footer  9. Inner pages
   10. Animations  11. Responsive
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
	--pgem-gold: #C9A050;
	--pgem-royal: #305CDE;
	--pgem-teal: #0F6E73;

	--gold-metal: linear-gradient(135deg, #B8892E 0%, #E6CB86 50%, #BF9440 100%);
	--gold-soft: #F5ECD8;
	--bronze: #8E6A22;
	--royal-deep: #1F3FA8;
	--teal-2: #16938C;

	--ink: var(--pgem-royal);
	--text: #26324A;
	--muted: #5E6676;
	--line: #ECE4D4;
	--ivory: #FBF7EF;
	--white: #fff;

	--radius: 14px;
	--radius-lg: 22px;
	--radius-btn: 10px;
	--shadow: 0 14px 40px rgba(60, 45, 15, .08);
	--shadow-lg: 0 24px 60px rgba(16, 40, 90, .16);

	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Inter Tight", "Inter", system-ui, sans-serif;
	--wrap: 1240px;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--pgem-teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--royal-deep); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--pgem-gold); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.pgem-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--pgem-royal); color: #fff; padding: 10px 16px; border-radius: 8px; }
.pgem-skip:focus { left: 8px; color: #fff; }

/* 3. Layout & utilities ------------------------------------------------- */
.pgem-wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.pgem-section { padding: 110px 0; position: relative; }
.pgem-section--alt { background: var(--ivory); }
.pgem-section__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 52px; }
.pgem-section__top .pgem-lead { max-width: 440px; margin: 0; }
.pgem-heading { display: flex; flex-direction: column; gap: 18px; max-width: 700px; }
.pgem-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--bronze); }
.pgem-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--pgem-gold), var(--pgem-teal)); }
.pgem-h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; margin: 0; }
.pgem-lead { font-size: 17px; line-height: 1.7; color: var(--muted); }
.pgem-grid { display: grid; gap: 24px; }
.pgem-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pgem-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pgem-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.pgem-split--wide { grid-template-columns: 1.1fr .9fr; }
.pgem-split--presence { grid-template-columns: .9fr 1.1fr; gap: 70px; }
.pgem-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.pgem-icon-box { width: 60px; height: 60px; border-radius: 14px; background: var(--gold-soft); color: var(--pgem-teal); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pgem-icon-box--sm { width: 52px; height: 52px; }
.pgem-placeholder { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 200px; background: #F3EEE4; color: var(--muted); font-size: 13px; overflow: hidden;
	background-image: linear-gradient(transparent 0 0), repeating-linear-gradient(90deg, transparent 0 59px, rgba(216, 203, 175, .5) 59px 60px), repeating-linear-gradient(0deg, transparent 0 59px, rgba(216, 203, 175, .5) 59px 60px); }
.pgem-placeholder span { background: rgba(255, 255, 255, .9); padding: 6px 12px; border-radius: 4px; }
.pgem-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--pgem-teal); }
.pgem-link .pgem-icon { transition: transform .25s var(--ease); }
.pgem-link:hover .pgem-icon { transform: translateX(4px); }
.pgem-checklist, .pgem-ticks { list-style: none; display: grid; gap: 12px; }
.pgem-checklist li, .pgem-ticks li { display: flex; gap: 10px; align-items: flex-start; }
.pgem-checklist li { font-size: 14px; line-height: 1.5; color: var(--muted); }
.pgem-checklist .pgem-icon, .pgem-ticks .pgem-icon { color: var(--pgem-teal); flex-shrink: 0; margin-top: 3px; }

/* 4. Buttons ------------------------------------------------------------ */
.pgem-btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; padding: 16px 28px; border-radius: var(--radius-btn); white-space: nowrap; border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background-position .5s; }
.pgem-btn:hover { transform: translateY(-2px); }
.pgem-btn .pgem-icon { transition: transform .25s var(--ease); }
.pgem-btn:hover .pgem-icon { transform: translateX(3px); }
.pgem-btn--primary { background: linear-gradient(135deg, var(--pgem-teal), var(--teal-2)); color: #fff; box-shadow: 0 12px 28px rgba(15, 110, 115, .28); }
.pgem-btn--primary:hover { color: #fff; box-shadow: 0 16px 34px rgba(15, 110, 115, .35); }
.pgem-btn--accent { background: var(--gold-metal); background-size: 200% 100%; color: var(--royal-deep); }
.pgem-btn--accent:hover { background-position: 100% 0; color: var(--royal-deep); }
.pgem-btn--outline { border-color: var(--pgem-royal); color: var(--pgem-royal); background: rgba(255, 255, 255, .55); }
.pgem-btn--outline:hover { background: var(--pgem-royal); color: #fff; }
.pgem-btn--dark { background: var(--pgem-royal); color: #fff; }
.pgem-btn--dark:hover { background: var(--royal-deep); color: #fff; }

/* 5. Header ------------------------------------------------------------- */
.pgem-topbar { background: linear-gradient(90deg, var(--pgem-royal), var(--pgem-teal)); color: #F4EBD7; font-size: 13.5px; font-weight: 500; }
.pgem-topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 46px; gap: 20px; }
.pgem-topbar__info { list-style: none; display: flex; gap: 30px; }
.pgem-topbar__info li, .pgem-topbar__right > span { display: inline-flex; align-items: center; gap: 8px; }
.pgem-topbar .pgem-icon { color: #E6CB86; }
.pgem-topbar a { color: inherit; }
.pgem-topbar a:hover { color: #fff; }
.pgem-topbar__right { display: flex; align-items: center; gap: 20px; }
.pgem-social { list-style: none; display: flex; gap: 10px; }
.pgem-social a { display: inline-flex; align-items: center; justify-content: center; }
.pgem-social--top a { color: #F4EBD7; }

.pgem-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(10px); box-shadow: 0 6px 24px rgba(16, 40, 90, .06); transition: box-shadow .3s; }
.pgem-header.is-scrolled { box-shadow: 0 10px 30px rgba(16, 40, 90, .12); }
.pgem-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 24px; transition: min-height .3s; }
.pgem-header.is-scrolled .pgem-header__inner { min-height: 78px; }
.pgem-header__brand img, .custom-logo { height: 70px; width: auto; transition: height .3s; }
.pgem-header.is-scrolled .pgem-header__brand img { height: 58px; }
.pgem-menu { list-style: none; display: flex; align-items: center; gap: 26px; }
.pgem-menu a { display: block; padding: 6px 0; font-weight: 600; font-size: 14.5px; color: var(--pgem-royal); white-space: nowrap; position: relative; }
.pgem-menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 2px; background: var(--pgem-gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.pgem-menu a:hover::after, .pgem-menu .current-menu-item > a::after, .pgem-menu .current_page_item > a::after { transform: scaleX(1); }
.pgem-menu .sub-menu { list-style: none; position: absolute; min-width: 220px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px 18px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s; }
.pgem-menu li { position: relative; }
.pgem-menu li:hover > .sub-menu, .pgem-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.pgem-nav-toggle { display: none; background: none; border: 0; color: var(--pgem-royal); padding: 8px; }
.pgem-nav-toggle__close { display: none; }

/* 6. Hero slider -------------------------------------------------------- */
.pgem-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #FCF9F2 0%, #F6ECD6 55%, #EEDFBE 100%); }
.pgem-hero__bg { position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(circle at 85% 0%, rgba(201, 160, 80, .30), transparent 45%),
		radial-gradient(circle at 0% 95%, rgba(15, 124, 122, .12), transparent 40%),
		radial-gradient(#E2D3AE 1.2px, transparent 1.2px) 0 0 / 30px 30px; }
.pgem-hero__inner { position: relative; padding: 70px 0 170px; }
.pgem-hero__track { display: grid; }
.pgem-slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.pgem-slide.is-active { opacity: 1; visibility: visible; }
.pgem-slide__content { display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 2; }
.pgem-hero__title { font-family: var(--font-head); font-size: clamp(38px, 4.6vw, 66px); line-height: 1.05; font-weight: 800; color: var(--pgem-royal); margin: 0; letter-spacing: -.025em; }
.pgem-hl { background: linear-gradient(90deg, #8E6A22, #C49A45 50%, #8E6A22); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: pgem-shine 6s linear infinite; }
.pgem-hero__text { font-size: 19px; line-height: 1.65; color: #4A4F5C; max-width: 590px; margin: 0; }
.pgem-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.pgem-slide__media { display: flex; justify-content: flex-end; }
.pgem-slide__media img { width: 100%; max-width: 640px; height: auto; border-radius: var(--radius-lg); }
.pgem-slide__media img[src$=".svg"] { border-radius: 0; filter: drop-shadow(0 30px 40px rgba(19, 41, 75, .15)); }
/* Slide-in choreography */
.pgem-slide .pgem-slide__content > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.pgem-slide.is-active .pgem-slide__content > * { opacity: 1; transform: none; }
.pgem-slide.is-active .pgem-slide__content > *:nth-child(2) { transition-delay: .1s; }
.pgem-slide.is-active .pgem-slide__content > *:nth-child(3) { transition-delay: .2s; }
.pgem-slide.is-active .pgem-slide__content > *:nth-child(4) { transition-delay: .3s; }
.pgem-slide .pgem-slide__media { opacity: 0; transform: translateX(30px) scale(.98); transition: opacity .9s var(--ease) .15s, transform .9s var(--ease) .15s; }
.pgem-slide.is-active .pgem-slide__media { opacity: 1; transform: none; }
.pgem-slide.is-active .pgem-slide__media img { animation: pgem-float 7s ease-in-out infinite; }

.pgem-hero__controls { position: absolute; left: 0; bottom: 120px; display: flex; align-items: center; gap: 18px; z-index: 3; }
.pgem-hero__arrow { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(48, 92, 222, .3); background: rgba(255, 255, 255, .7); color: var(--pgem-royal); display: inline-flex; align-items: center; justify-content: center; transition: .25s; }
.pgem-hero__arrow:hover { background: var(--pgem-royal); color: #fff; border-color: var(--pgem-royal); }
.pgem-hero__count { white-space: nowrap; font-family: var(--font-head); font-size: 16px; color: rgba(48, 92, 222, .55); font-weight: 600; }
.pgem-hero__count b { font-size: 20px; color: var(--pgem-royal); font-weight: 800; }
.pgem-hero__dots { display: flex; gap: 8px; }
.pgem-hero__dot { width: 22px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: rgba(48, 92, 222, .2); transition: width .4s var(--ease), background .4s; }
.pgem-hero__dot.is-active { width: 44px; background: var(--pgem-teal); }

/* 7. Homepage sections -------------------------------------------------- */
/* Mission / Vision / Objectives */
.pgem-mvo { position: relative; z-index: 4; margin-top: -100px; padding-bottom: 30px; }
.pgem-mvo__grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; }
.pgem-mvo__card { padding: 38px 34px; display: flex; flex-direction: column; gap: 16px; border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s; }
.pgem-mvo__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pgem-mvo__card p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0; }
.pgem-mvo__card--mission { border-top: 4px solid var(--pgem-teal); }
.pgem-mvo__card--objectives { border-top: 4px solid var(--pgem-royal); }
.pgem-mvo__card--vision { background: var(--gold-metal); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pgem-mvo__card--vision::after { content: ""; position: absolute; right: -80px; top: -120px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 0 0 60px rgba(255, 255, 255, .06); }
.pgem-mvo__card--vision h2 { color: var(--royal-deep); }
.pgem-mvo__card--vision p { color: #2E2510; }
.pgem-mvo__card--vision .pgem-icon-box { background: var(--pgem-royal); color: #E6CB86; }
.pgem-mvo__head { display: flex; align-items: center; gap: 16px; }
.pgem-mvo__head h2 { font-size: 24px; margin: 0; }

/* Companies */
.pgem-companies { padding-top: 90px; }
.pgem-company { display: flex; flex-direction: column; overflow: hidden; border-bottom: 4px solid var(--pgem-gold); transition: transform .35s var(--ease), box-shadow .35s; }
.pgem-company--royal { border-bottom-color: var(--pgem-royal); }
.pgem-company--teal { border-bottom-color: var(--pgem-teal); }
.pgem-company:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pgem-company__logo { height: 150px; display: flex; align-items: center; justify-content: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.pgem-company__logo img { width: 100%; max-height: 100px; object-fit: contain; transition: transform .4s var(--ease); }
.pgem-company:hover .pgem-company__logo img { transform: scale(1.04); }
.pgem-company__name { font-family: var(--font-head); font-weight: 800; color: var(--pgem-royal); text-align: center; }
.pgem-company__body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pgem-company__meta { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); margin: 0; }
.pgem-company__text { font-size: 14.5px; line-height: 1.65; color: var(--muted); flex: 1; margin: 0; }

/* About */
.pgem-about { padding-top: 120px; }
.pgem-about__media { position: relative; height: 560px; }
.pgem-about__img { position: absolute; border-radius: var(--radius); overflow: hidden; }
.pgem-about__img img { width: 100%; height: 100%; object-fit: cover; }
.pgem-about__img--main { left: 0; top: 0; width: 72%; height: 84%; }
.pgem-about__img--small { right: 0; bottom: 0; width: 54%; height: 57%; border: 10px solid #fff; box-shadow: var(--shadow); }
.pgem-badge { position: absolute; left: 30px; bottom: 20px; background: var(--gold-metal); color: var(--royal-deep); padding: 24px 28px; border-radius: var(--radius); display: flex; align-items: center; gap: 16px; box-shadow: 0 12px 28px rgba(15, 110, 115, .25); z-index: 2; }
.pgem-badge strong { font-family: var(--font-head); font-size: 52px; line-height: 1; font-weight: 800; }
.pgem-badge span { font-size: 15px; font-weight: 600; line-height: 1.35; max-width: 90px; }
.pgem-about__content { display: flex; flex-direction: column; gap: 22px; }
.pgem-about__content p { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0; }
.pgem-ticks { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.pgem-ticks li { font-weight: 600; color: var(--pgem-royal); }
.pgem-about__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.pgem-person { display: flex; align-items: center; gap: 12px; }
.pgem-person__photo { width: 52px; height: 52px; border-radius: 50%; background: var(--ivory); overflow: hidden; display: block; }
.pgem-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.pgem-person strong { display: block; color: var(--pgem-royal); }
.pgem-person small { color: var(--muted); font-size: 13px; }

/* Stats */
.pgem-stats { position: relative; overflow: hidden; background: linear-gradient(110deg, var(--pgem-royal) 0%, #2A66C8 50%, var(--pgem-teal) 100%); }
.pgem-stats::after { content: ""; position: absolute; right: -60px; top: -150px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(230, 203, 134, .25); box-shadow: 0 0 0 70px rgba(230, 203, 134, .05); }
.pgem-stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 70px 0; position: relative; z-index: 1; }
.pgem-stat { display: flex; align-items: center; gap: 20px; padding: 0 26px; border-right: 1px solid rgba(255, 255, 255, .18); }
.pgem-stat:last-child { border-right: 0; }
.pgem-stat__num { font-family: var(--font-head); font-size: 58px; line-height: 1; font-weight: 800; color: #F1DDA6; white-space: nowrap; }
.pgem-stat__num em { font-style: normal; color: #E6CB86; }
.pgem-stat__label { font-size: 16px; font-weight: 600; line-height: 1.35; color: #DCE7EA; max-width: 110px; }

/* Strengthening */
.pgem-strength { padding: 120px 0; }
.pgem-strength__content { display: flex; flex-direction: column; gap: 22px; }
.pgem-strength__content .pgem-lead { margin: 0; }
.pgem-features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 16px; }
.pgem-feature { display: flex; gap: 16px; }
.pgem-feature h3 { font-size: 17px; margin: 0 0 4px; }
.pgem-feature p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }
.pgem-feature .pgem-icon-box { transition: background .3s, color .3s, transform .3s var(--ease); }
.pgem-feature:hover .pgem-icon-box { background: var(--pgem-teal); color: #fff; transform: rotate(-6deg); }
.pgem-strength__media { position: relative; height: 600px; border-radius: var(--radius); }
.pgem-strength__media > img, .pgem-strength__media > .pgem-placeholder { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.pgem-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 50%; background: var(--gold-metal); color: var(--royal-deep); display: flex; align-items: center; justify-content: center; animation: pgem-pulse 2.4s ease-out infinite; }
.pgem-play:hover { color: var(--royal-deep); }
.pgem-promise { position: absolute; left: -40px; bottom: 40px; background: var(--pgem-royal); padding: 28px 30px; border-radius: var(--radius); width: 300px; box-shadow: var(--shadow-lg); }
.pgem-promise span { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #E6CB86; font-weight: 700; margin-bottom: 8px; }
.pgem-promise p { font-family: var(--font-head); font-size: 20px; font-weight: 700; line-height: 1.35; color: #fff; margin: 0; }

/* Presence */
.pgem-split--presence > div:first-child { display: flex; flex-direction: column; gap: 20px; }
.pgem-split--presence .pgem-lead { margin: 0; }
.pgem-offices { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pgem-office { padding: 26px; display: flex; gap: 16px; align-items: center; transition: transform .35s var(--ease), box-shadow .35s; }
.pgem-office:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pgem-office strong { display: block; font-size: 18px; color: var(--pgem-royal); font-family: var(--font-head); }
.pgem-office small { display: block; font-size: 14px; color: var(--muted); }
.pgem-office__map { font-size: 13px; font-weight: 600; }

/* Posts (cards) */
.pgem-insights { padding-bottom: 200px; }
.pgem-post { overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.pgem-post:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pgem-post__media { position: relative; display: block; height: 220px; overflow: hidden; background: #F3EEE4; }
.pgem-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pgem-post:hover .pgem-post__media img { transform: scale(1.06); }
.pgem-post__media .pgem-placeholder { min-height: 220px; }
.pgem-post__date { position: absolute; left: 20px; bottom: 0; background: var(--pgem-teal); color: #fff; padding: 10px 14px; text-align: center; line-height: 1.1; border-radius: 8px 8px 0 0; font-size: 12px; }
.pgem-post__date b { display: block; font-size: 22px; font-weight: 800; }
.pgem-post__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.pgem-post__cat { font-size: 13px; color: var(--bronze); font-weight: 700; }
.pgem-post__title { font-size: 20px; line-height: 1.35; margin: 0; }
.pgem-post__title a { color: var(--pgem-royal); }
.pgem-post__title a:hover { color: var(--pgem-teal); }
.pgem-post__excerpt { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0; }

/* 8. CTA & footer ------------------------------------------------------- */
.pgem-cta { position: relative; z-index: 5; margin-top: -110px; margin-bottom: -90px; }
.pgem-cta__box { background: var(--gold-metal); background-size: 200% 100%; animation: pgem-shine-bg 10s ease-in-out infinite alternate; border-radius: var(--radius-lg); padding: 56px 64px; display: flex; justify-content: space-between; align-items: center; gap: 30px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.pgem-cta__box::after { content: ""; position: absolute; right: 40px; top: -120px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 0 0 60px rgba(255, 255, 255, .07); pointer-events: none; }
.pgem-cta__text { position: relative; z-index: 1; }
.pgem-cta h2 { font-size: clamp(26px, 2.6vw, 36px); color: var(--royal-deep); margin: 0 0 10px; }
.pgem-cta p { font-size: 17px; color: #3A2F14; margin: 0; }
.pgem-cta .pgem-btn { position: relative; z-index: 1; padding: 18px 30px; }

.pgem-footer { position: relative; background: linear-gradient(180deg, var(--pgem-royal), var(--royal-deep)); color: #E3EAFB; padding-top: 80px; }
.pgem-footer--cta { padding-top: 170px; }
.pgem-footer a { color: #E3EAFB; }
.pgem-footer a:hover { color: #E6CB86; }
.pgem-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.pgem-footer__brand { display: flex; flex-direction: column; gap: 20px; }
.pgem-footer__brand p { font-size: 15px; line-height: 1.7; margin: 0; }
.pgem-footer__logo { display: flex; align-items: center; gap: 14px; }
.pgem-footer__emblem { width: 80px; height: 80px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pgem-footer__emblem img { width: 62px; height: auto; }
.pgem-footer__name { border-left: 2px solid var(--pgem-gold); padding-left: 14px; line-height: 1.2; }
.pgem-footer__name strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 18px; color: #fff; white-space: nowrap; }
.pgem-footer__name small { display: block; font-size: 11.5px; letter-spacing: .25em; margin-top: 4px; }
.pgem-footer__title { font-size: 18px; color: #fff; margin: 0 0 22px; }
.pgem-footer__links { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.pgem-footer__contact { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.pgem-footer__contact li { display: flex; gap: 14px; align-items: flex-start; }
.pgem-footer__contact small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #B9C8F2; }
.pgem-footer__icon, .pgem-social--footer a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #E6CB86; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .25s, transform .25s; }
.pgem-social--footer a { width: 40px; height: 40px; color: #fff; }
.pgem-social--footer a:hover { background: var(--pgem-gold); color: var(--royal-deep); transform: translateY(-3px); }
.pgem-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .14); }
.pgem-footer__bottom-inner { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 14px; color: #B9C8F2; }
.pgem-footer__bottom p { margin: 0; }
.pgem-totop { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--gold-metal); color: var(--royal-deep) !important; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); transform: rotate(90deg) translateX(20px); opacity: 0; visibility: hidden; transition: .3s; z-index: 60; }
.pgem-totop.is-visible { opacity: 1; visibility: visible; transform: rotate(90deg); }

/* 9. Inner pages -------------------------------------------------------- */
.pgem-banner { position: relative; overflow: hidden; background: linear-gradient(120deg, #FCF9F2 0%, #F6ECD6 55%, #EEDFBE 100%); padding: 80px 0 90px; }
.pgem-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 0%, rgba(201, 160, 80, .3), transparent 45%), radial-gradient(#E2D3AE 1.2px, transparent 1.2px) 0 0 / 30px 30px; }
.pgem-banner .pgem-wrap { position: relative; }
.pgem-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.pgem-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--pgem-gold); }
.pgem-crumbs a { color: var(--pgem-teal); }
.pgem-banner__title { font-size: clamp(34px, 4vw, 54px); margin: 0; }
.pgem-banner__sub { font-size: 18px; color: var(--muted); max-width: 680px; margin: 14px 0 0; }
.pgem-content-area { padding: 80px 0 200px; }
.pgem-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 50px; align-items: start; }
.pgem-prose { font-size: 17px; line-height: 1.8; color: var(--text); }
.pgem-prose > * { max-width: 820px; }
.pgem-prose h2 { font-size: 30px; margin: 1.6em 0 .6em; }
.pgem-prose h3 { font-size: 23px; margin: 1.4em 0 .5em; }
.pgem-prose img { border-radius: var(--radius); }
.pgem-prose blockquote { border-left: 4px solid var(--pgem-gold); background: var(--ivory); margin: 1.5em 0; padding: 18px 24px; border-radius: 0 12px 12px 0; }
.pgem-prose ul, .pgem-prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.pgem-prose a { text-decoration: underline; text-underline-offset: 3px; }
.pgem-single__media { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 34px; }
.pgem-single__media img { width: 100%; }
.pgem-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--muted); margin-top: 16px; }
.pgem-meta a { color: var(--pgem-teal); font-weight: 600; }
.pgem-tags { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.pgem-tags a { background: var(--ivory); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 13px; text-decoration: none; }
.pgem-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; }
.pgem-postnav a { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.pgem-postnav small { display: block; color: var(--muted); }
.pgem-postnav .nav-next { text-align: right; }
.pgem-sidebar { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 110px; }
.pgem-sidebar .widget { background: var(--ivory); border-radius: var(--radius); padding: 26px; }
.pgem-sidebar .widget-title { font-size: 19px; border-bottom: 2px solid var(--pgem-gold); padding-bottom: 10px; display: inline-block; }
.pgem-sidebar ul { list-style: none; }
.pgem-sidebar li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.pgem-pagination { margin-top: 50px; }
.pgem-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pgem-pagination .page-numbers { min-width: 46px; height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--pgem-royal); }
.pgem-pagination .page-numbers.current, .pgem-pagination .page-numbers:hover { background: var(--pgem-royal); border-color: var(--pgem-royal); color: #fff; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 13px 16px; border: 1px solid #D8CBAF; border-radius: 10px; font: inherit; }
.search-submit { padding: 13px 20px; border: 0; border-radius: 10px; background: var(--pgem-teal); color: #fff; font-weight: 600; }
.pgem-404 { text-align: center; padding: 120px 0 220px; }
.pgem-404 strong { display: block; font-family: var(--font-head); font-size: 140px; line-height: 1; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pgem-company-hero { display: flex; align-items: center; gap: 30px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px; margin-bottom: 40px; }
.pgem-company-hero img { max-height: 90px; width: auto; }
.comments-area { margin-top: 60px; }
.comment-list { list-style: none; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #D8CBAF; border-radius: 10px; font: inherit; }
.comment-form .submit { padding: 14px 26px; border: 0; border-radius: 10px; background: var(--pgem-teal); color: #fff; font-weight: 600; }
.alignwide { max-width: 1100px; }
.alignfull { max-width: none; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); }

/* 10. Animations -------------------------------------------------------- */
@keyframes pgem-shine { to { background-position: 200% 0; } }
@keyframes pgem-shine-bg { from { background-position: 0 0; } to { background-position: 100% 0; } }
@keyframes pgem-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pgem-pulse { 0% { box-shadow: 0 0 0 0 rgba(201, 160, 80, .55); } 100% { box-shadow: 0 0 0 26px rgba(201, 160, 80, 0); } }

/* Scroll reveal (only when JS is running). */
.pgem-js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.pgem-js [data-reveal="left"] { transform: translateX(-36px); }
.pgem-js [data-reveal="right"] { transform: translateX(36px); }
.pgem-js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.pgem-js [data-reveal] { opacity: 1; transform: none; }
}

/* 11. Responsive -------------------------------------------------------- */
@media (max-width: 1240px) {
	.pgem-nav-toggle { display: inline-flex; }
	.pgem-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: var(--shadow-lg); max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
	.pgem-nav.is-open { max-height: 80vh; overflow: auto; }
	.pgem-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 20px; }
	.pgem-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); }
	.pgem-menu a::after { display: none; }
	.pgem-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; }
	.pgem-nav-toggle[aria-expanded="true"] .pgem-nav-toggle__open { display: none; }
	.pgem-nav-toggle[aria-expanded="true"] .pgem-nav-toggle__close { display: block; }
	.pgem-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pgem-stat__num { font-size: 46px; }
}
@media (max-width: 1024px) {
	.pgem-section { padding: 80px 0; }
	.pgem-slide { grid-template-columns: 1fr; }
	.pgem-slide__media { justify-content: center; }
	.pgem-slide__media img { max-width: 520px; }
	.pgem-hero__inner { padding: 50px 0 150px; }
	.pgem-hero__controls { position: static; margin-top: 30px; }
	.pgem-mvo { margin-top: -80px; }
	.pgem-mvo__grid { grid-template-columns: 1fr; }
	.pgem-split, .pgem-split--wide, .pgem-split--presence { grid-template-columns: 1fr; gap: 50px; }
	.pgem-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pgem-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 0; }
	.pgem-stat:nth-child(2) { border-right: 0; }
	.pgem-promise { left: 20px; }
	.pgem-footer__grid { grid-template-columns: 1fr 1fr; }
	.pgem-layout { grid-template-columns: 1fr; }
	.pgem-sidebar { position: static; }
	.pgem-cta__box { flex-direction: column; align-items: flex-start; padding: 44px 40px; }
	.pgem-hide-md { display: none !important; }
}
@media (max-width: 720px) {
	body { font-size: 15px; }
	.pgem-wrap { width: calc(100% - 36px); }
	.pgem-topbar__info { gap: 16px; }
	.pgem-hide-sm, .pgem-topbar__info li:nth-child(2) { display: none !important; }
	.pgem-header__inner, .pgem-header.is-scrolled .pgem-header__inner { min-height: 70px; }
	.pgem-header__brand img, .custom-logo { height: 54px; }
	.pgem-section__top { flex-direction: column; align-items: flex-start; gap: 20px; }
	.pgem-grid--4, .pgem-grid--3, .pgem-offices, .pgem-features, .pgem-ticks { grid-template-columns: 1fr; }
	.pgem-stats__grid { grid-template-columns: 1fr; }
	.pgem-stat { border-right: 0; padding: 0; }
	.pgem-about__media { height: 420px; }
	.pgem-strength__media { height: 420px; }
	.pgem-promise { position: relative; left: 0; bottom: 0; width: auto; margin-top: -60px; margin-inline: 16px; }
	.pgem-footer__grid { grid-template-columns: 1fr; gap: 36px; }
	.pgem-footer__bottom-inner { flex-direction: column; gap: 6px; }
	.pgem-postnav { grid-template-columns: 1fr; }
	.pgem-btn { padding: 14px 22px; }
	.pgem-cta__box { padding: 36px 26px; }
}

/* Blog grid next to the sidebar: two columns. */
.pgem-layout .pgem-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .pgem-layout .pgem-grid--3 { grid-template-columns: 1fr; } }

/* Core block widgets in the sidebar. */
.pgem-sidebar .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.pgem-sidebar .wp-block-search__input { flex: 1; padding: 12px 14px; border: 1px solid #D8CBAF; border-radius: 10px; font: inherit; background: #fff; }
.pgem-sidebar .wp-block-search__button { margin: 0; padding: 12px 18px; border: 0; border-radius: 10px; background: var(--pgem-teal); color: #fff; font-weight: 600; }
.pgem-sidebar .wp-block-search__label, .pgem-sidebar h2.wp-block-heading { font-family: var(--font-head); font-size: 19px; font-weight: 800; color: var(--ink); display: inline-block; border-bottom: 2px solid var(--pgem-gold); padding-bottom: 10px; margin-bottom: 14px; }
.pgem-sidebar .wp-block-latest-posts, .pgem-sidebar .wp-block-latest-comments { padding: 0; margin: 0; }
.pgem-sidebar .wp-block-latest-comments__comment { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .pgem-hero__controls { flex-wrap: wrap; gap: 14px; } }

/* ==========================================================================
   12. Company pages
   ========================================================================== */
.pgem-banner--company { padding: 70px 0 80px; }
.pgem-pill { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 9px 16px; border-radius: 999px; background: rgba(201, 160, 80, .16); border: 1px solid rgba(201, 160, 80, .5); color: var(--bronze); font-weight: 600; font-size: 14px; }

/* Sticky section menu */
.pgem-secnav { position: sticky; top: var(--pgem-stick, 96px); z-index: 40; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px rgba(16, 40, 90, .06); transition: top .3s var(--ease); }
.pgem-secnav__list { list-style: none; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.pgem-secnav__list::-webkit-scrollbar { display: none; }
.pgem-secnav__list a { position: relative; display: block; padding: 18px 14px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .25s; }
.pgem-secnav__list a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--pgem-gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.pgem-secnav__list a:hover { color: var(--pgem-royal); }
.pgem-secnav__list a.is-active { color: var(--pgem-royal); }
.pgem-secnav__list a.is-active::after { transform: scaleX(1); }
.pgem-secnav__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--pgem-teal), var(--pgem-gold)); transform: scaleX(var(--pgem-progress, 0)); transform-origin: left; }
.pgem-cs-sec { scroll-margin-top: var(--pgem-offset, 170px); }
/* Arrival highlight when jumping to a section */
.pgem-cs-sec.is-target .pgem-eyebrow::before { animation: pgem-grow .9s var(--ease); }
.pgem-cs-sec.is-target .pgem-h2 { animation: pgem-arrive .9s var(--ease); }
@keyframes pgem-grow { from { width: 0; } to { width: 28px; } }
@keyframes pgem-arrive { 0% { opacity: .2; transform: translateY(14px); } 100% { opacity: 1; transform: none; } }

.pgem-section__top--center { justify-content: center; text-align: center; }
.pgem-section__top--center .pgem-heading { align-items: center; }
.pgem-section__aside .pgem-lead { margin: 0; max-width: 440px; }
.pgem-cs-sub { margin: -24px 0 36px; max-width: 760px; }
.pgem-company-page__end { height: 150px; }
.pgem-company-page > .pgem-cs-sec:last-of-type { padding-bottom: 60px; }

/* Introduction */
.pgem-cs-intro__media { position: relative; height: 540px; }
.pgem-cs-intro__img { position: absolute; inset: 0 60px 0 0; border-radius: var(--radius); overflow: hidden; }
.pgem-cs-intro__img img, .pgem-cs-intro__img .pgem-placeholder { width: 100%; height: 100%; object-fit: cover; }
.pgem-cs-intro__media .pgem-badge { left: auto; right: 0; bottom: 40px; }
.pgem-cs-intro__content { display: flex; flex-direction: column; gap: 20px; }
.pgem-cs-intro__logo { align-self: flex-start; display: flex; flex-direction: column; gap: 8px; padding: 16px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pgem-cs-intro__logo img { height: 74px; width: auto; max-width: 340px; object-fit: contain; }
.pgem-cs-intro__logo span { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.pgem-cs-intro__text p { font-size: 17px; line-height: 1.75; color: var(--muted); }
.pgem-cs-intro__text p:last-child { margin-bottom: 0; }
.pgem-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 0; }
.pgem-fact { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; transition: border-color .3s, transform .3s var(--ease); }
.pgem-fact:hover { border-color: var(--pgem-gold); transform: translateY(-3px); }
.pgem-fact dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pgem-fact dd { margin: 4px 0 0; font-family: var(--font-head); font-size: 19px; font-weight: 800; color: var(--pgem-royal); }

/* Values & vision */
.pgem-cs-values { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; }
.pgem-cs-values--novision { grid-template-columns: 1fr; }
.pgem-cs-vision { position: relative; overflow: hidden; background: var(--gold-metal); border-radius: var(--radius); padding: 44px 40px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.pgem-cs-vision::after { content: ""; position: absolute; right: -90px; top: -110px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 0 0 60px rgba(255, 255, 255, .06); }
.pgem-cs-vision .pgem-icon-box { background: var(--pgem-royal); color: #E6CB86; }
.pgem-cs-vision h3 { font-size: 28px; color: var(--royal-deep); margin: 0; }
.pgem-cs-vision p { font-size: 16.5px; line-height: 1.75; color: #2E2510; margin: 0; position: relative; }
.pgem-cs-values__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pgem-cs-values--novision .pgem-cs-values__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pgem-cs-value { padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: transform .35s var(--ease), box-shadow .35s; }
.pgem-cs-value:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pgem-cs-value h3 { font-size: 19px; margin: 0; }
.pgem-cs-value p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* Solutions & products */
.pgem-solution { padding: 32px; display: flex; flex-direction: column; gap: 14px; border-bottom: 4px solid transparent; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.pgem-solution:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-bottom-color: var(--pgem-gold); }
.pgem-solution__top { display: flex; justify-content: space-between; align-items: center; }
.pgem-solution__num { font-family: var(--font-head); font-size: 42px; font-weight: 800; color: #EFE7D6; line-height: 1; transition: color .35s; }
.pgem-solution:hover .pgem-solution__num { color: var(--pgem-gold); }
.pgem-solution h3, .pgem-product h3 { font-size: 20px; margin: 0; }
.pgem-solution p, .pgem-product p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0; }
.pgem-product { overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.pgem-product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pgem-product__img { height: 200px; background: #F3EEE4; overflow: hidden; }
.pgem-product__img img, .pgem-product__img .pgem-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pgem-product:hover .pgem-product__img img { transform: scale(1.06); }
.pgem-product__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.pgem-product__cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); }

/* Resources (dark band) */
.pgem-cs-resources { background: linear-gradient(120deg, var(--pgem-royal), var(--royal-deep) 70%, #173A8C); color: #DCE3F5; overflow: hidden; }
.pgem-cs-resources::before { content: ""; position: absolute; left: -100px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(230, 203, 134, .2); box-shadow: 0 0 0 80px rgba(230, 203, 134, .04); }
.pgem-cs-resources__grid { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.pgem-cs-resources .pgem-h2 { color: #fff; }
.pgem-cs-resources .pgem-eyebrow { color: #E6CB86; }
.pgem-cs-resources__intro { display: flex; flex-direction: column; gap: 18px; }
.pgem-cs-resources__intro p { font-size: 17px; line-height: 1.7; margin: 0; }
.pgem-docs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pgem-doc { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #fff; transition: background .3s, transform .3s var(--ease); }
.pgem-doc:hover { background: rgba(255, 255, 255, .13); transform: translateY(-3px); color: #fff; }
.pgem-doc__type { width: 54px; height: 62px; border-radius: 6px; background: #fff; border-top: 10px solid var(--pgem-gold); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-size: 11px; font-weight: 800; color: var(--pgem-royal); flex-shrink: 0; }
.pgem-doc__text { flex: 1; min-width: 0; }
.pgem-doc__text strong { display: block; font-size: 16.5px; }
.pgem-doc__text small { display: block; font-size: 13px; color: #B9C8F2; margin-top: 3px; }
.pgem-doc__dl { width: 42px; height: 42px; border-radius: 50%; background: var(--gold-metal); color: var(--royal-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .3s var(--ease); }
.pgem-doc:hover .pgem-doc__dl { transform: translateY(3px); }

/* Team */
.pgem-member { display: flex; flex-direction: column; }
.pgem-member__photo { height: 320px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: #F3EEE4; }
.pgem-member__photo img, .pgem-member__photo .pgem-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pgem-member:hover .pgem-member__photo img { transform: scale(1.05); }
.pgem-member__body { position: relative; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 26px 20px 22px; text-align: center; box-shadow: var(--shadow); }
.pgem-member__body h3 { font-size: 19px; margin: 0; }
.pgem-member__body p { font-size: 14px; color: var(--bronze); font-weight: 600; margin: 4px 0 0; }
.pgem-member__social { list-style: none; position: absolute; left: 50%; top: -20px; transform: translateX(-50%); display: flex; gap: 8px; }
.pgem-member__social a { width: 38px; height: 38px; border-radius: 50%; background: var(--pgem-royal); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .25s, transform .25s; }
.pgem-member__social a:hover { background: var(--pgem-teal); color: #fff; transform: translateY(-3px); }

/* Partners */
.pgem-partners { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.pgem-partner { background: #fff; border: 1px solid var(--line); border-radius: 12px; height: 104px; display: flex; align-items: center; justify-content: center; padding: 16px; transition: border-color .3s, box-shadow .3s; }
.pgem-partner:hover { border-color: var(--pgem-gold); box-shadow: var(--shadow); }
.pgem-partner a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.pgem-partner img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.pgem-partner:hover img { filter: none; opacity: 1; }
.pgem-partner span { font-weight: 700; color: var(--muted); text-align: center; font-size: 14px; }

/* Projects */
.pgem-project { overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.pgem-project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pgem-project__img { position: relative; height: 250px; overflow: hidden; background: #F3EEE4; }
.pgem-project__img img, .pgem-project__img .pgem-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pgem-project:hover .pgem-project__img img { transform: scale(1.06); }
.pgem-project__tag { position: absolute; top: 16px; left: 16px; background: var(--gold-metal); color: var(--royal-deep); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 6px; }
.pgem-project__body { padding: 24px 26px 28px; }
.pgem-project__body h3 { font-size: 20px; margin: 0 0 10px; }
.pgem-project__body h3 a { color: var(--pgem-royal); }
.pgem-project__meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); margin: 0; }
.pgem-project__meta span { display: inline-flex; align-items: center; gap: 6px; }
.pgem-project__meta .pgem-icon { color: var(--pgem-gold); }
.pgem-project__scope { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 12px 0 0; }

/* Market trends */
.pgem-trends { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; }
.pgem-trends--single { grid-template-columns: 1fr; }
.pgem-trend-feature { overflow: hidden; display: flex; flex-direction: column; }
.pgem-trend-feature__img { display: block; height: 300px; overflow: hidden; background: #F3EEE4; }
.pgem-trend-feature__img img, .pgem-trend-feature__img .pgem-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pgem-trend-feature:hover .pgem-trend-feature__img img { transform: scale(1.05); }
.pgem-trend-feature__body { padding: 30px; }
.pgem-trend-feature__body h3 { font-size: 26px; line-height: 1.3; margin: 6px 0 12px; }
.pgem-trend-feature__body h3 a, .pgem-trend h3 a { color: var(--pgem-royal); }
.pgem-trend-feature__body p:last-child { color: var(--muted); margin: 0; }
.pgem-trend-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.pgem-trend { display: flex; gap: 20px; align-items: center; padding: 20px; transition: transform .35s var(--ease), box-shadow .35s; }
.pgem-trend:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.pgem-trend__img { width: 120px; height: 100px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #F3EEE4; display: block; }
.pgem-trend__img img, .pgem-trend__img .pgem-placeholder { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.pgem-trend h3 { font-size: 17px; line-height: 1.35; margin: 4px 0 0; }
.pgem-trend .pgem-post__cat, .pgem-trend-feature .pgem-post__cat { margin: 0; }

/* Contact */
.pgem-contact { display: grid; grid-template-columns: .85fr 1.15fr; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.pgem-contact__info { background: linear-gradient(160deg, var(--pgem-royal), var(--royal-deep)); color: #DCE3F5; padding: 46px 42px; display: flex; flex-direction: column; gap: 22px; }
.pgem-contact__info h3 { color: #fff; font-size: 26px; margin: 0; }
.pgem-contact__lead { margin: 0; line-height: 1.7; }
.pgem-contact__info ul { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.pgem-contact__info li { display: flex; gap: 16px; align-items: flex-start; color: #fff; font-weight: 600; }
.pgem-contact__info small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #B9C8F2; font-weight: 500; }
.pgem-contact__info a { color: #fff; }
.pgem-contact__info a:hover { color: #E6CB86; }
.pgem-contact__map { border-radius: 12px; overflow: hidden; height: 200px; margin-top: auto; }
.pgem-contact__map iframe { width: 100%; height: 100%; border: 0; }
.pgem-contact__form { padding: 46px 42px; }
.pgem-contact__form h3 { font-size: 26px; margin: 0 0 18px; }
.pgem-contact__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.pgem-contact__form input:not([type=submit]):not([type=checkbox]):not([type=radio]), .pgem-contact__form textarea, .pgem-contact__form select { width: 100%; padding: 13px 15px; border: 1px solid #D8CBAF; border-radius: 10px; font: inherit; background: #fff; transition: border-color .25s, box-shadow .25s; }
.pgem-contact__form input:focus, .pgem-contact__form textarea:focus { outline: none; border-color: var(--pgem-teal); box-shadow: 0 0 0 4px rgba(15, 110, 115, .12); }
.pgem-contact__form input[type=submit], .pgem-contact__form button[type=submit] { padding: 15px 30px; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--pgem-teal), var(--teal-2)); color: #fff; font-weight: 600; cursor: pointer; }

/* Certifications */
.pgem-certs { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.pgem-cert { padding: 30px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; border-bottom: 4px solid var(--pgem-gold); transition: transform .35s var(--ease), box-shadow .35s; }
.pgem-cert:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pgem-cert__badge { width: 100px; height: 100px; border-radius: 50%; border: 2px dashed #D8CBAF; display: flex; align-items: center; justify-content: center; color: var(--bronze); overflow: hidden; margin-bottom: 6px; transition: transform .5s var(--ease); }
.pgem-cert:hover .pgem-cert__badge { transform: rotate(-8deg) scale(1.05); }
.pgem-cert__badge img { width: 80%; height: 80%; object-fit: contain; }
.pgem-cert strong { font-size: 18px; color: var(--pgem-royal); font-family: var(--font-head); }
.pgem-cert small { font-size: 14px; color: var(--muted); }

@media (max-width: 1240px) {
	.pgem-partners { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	.pgem-cs-values, .pgem-trends, .pgem-contact, .pgem-cs-resources__grid { grid-template-columns: 1fr; }
	.pgem-cs-values--novision .pgem-cs-values__grid, .pgem-certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pgem-cs-intro__media { height: 440px; }
}
@media (max-width: 720px) {
	.pgem-secnav__list a { padding: 15px 12px; font-size: 13.5px; }
	.pgem-facts, .pgem-cs-values__grid, .pgem-cs-values--novision .pgem-cs-values__grid, .pgem-docs, .pgem-certs { grid-template-columns: 1fr; }
	.pgem-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pgem-cs-intro__media { height: 360px; }
	.pgem-cs-intro__img { inset: 0; }
	.pgem-cs-intro__logo img { height: 56px; }
	.pgem-contact__info, .pgem-contact__form { padding: 32px 24px; }
	.pgem-trend__img { width: 90px; height: 80px; }
}

/* Logged-in admin bar: keep the sticky header below it. */
.admin-bar .pgem-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .pgem-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .pgem-header { top: 0; } }

/* ==========================================================================
   13. Contact form, contact page & office map
   ========================================================================== */
/* Form */
.pgem-form { position: relative; }
.pgem-form__title { font-size: 24px; margin: 0 0 18px; }
.pgem-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.pgem-field { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.pgem-field--full { grid-column: 1 / -1; }
.pgem-field label { font-size: 14px; font-weight: 600; color: var(--text); }
.pgem-field label span { color: var(--bronze); }
.pgem-form input[type=text], .pgem-form input[type=email], .pgem-form input[type=tel], .pgem-form select, .pgem-form textarea {
	width: 100%; padding: 14px 16px; border: 1.5px solid #E2D7C1; border-radius: 12px; font: inherit; font-size: 15px; color: var(--text); background: #FFFDF9;
	transition: border-color .25s, box-shadow .25s, background .25s; appearance: none; -webkit-appearance: none; }
.pgem-form textarea { resize: vertical; min-height: 140px; }
.pgem-form input:hover, .pgem-form select:hover, .pgem-form textarea:hover { border-color: #D2BE93; }
.pgem-form input:focus, .pgem-form select:focus, .pgem-form textarea:focus { outline: none; border-color: var(--pgem-teal); background: #fff; box-shadow: 0 0 0 4px rgba(15, 110, 115, .12); }
.pgem-select { position: relative; display: block; }
.pgem-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--pgem-royal); border-bottom: 2px solid var(--pgem-royal); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pgem-select select { padding-right: 44px; cursor: pointer; }
.pgem-field.has-error input, .pgem-field.has-error textarea { border-color: #C0392B; box-shadow: 0 0 0 4px rgba(192, 57, 43, .08); }
.pgem-field__error { font-size: 13px; color: #B03A2E; min-height: 0; }
.pgem-field__error:empty { display: none; }
.pgem-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pgem-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.pgem-form__note { color: var(--muted); font-size: 13px; }
.pgem-form button[type=submit] { border: 0; cursor: pointer; }
.pgem-form button[disabled] { opacity: .75; cursor: progress; transform: none; }
.pgem-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: pgem-spin .8s linear infinite; }
.pgem-form.is-sending .pgem-spinner { display: inline-block; }
.pgem-form.is-sending button .pgem-icon { display: none; }
.pgem-form__status:empty { display: none; }
.pgem-form__status p { margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; animation: pgem-pop-in .45s var(--ease); }
.pgem-form__status .is-success { background: #E7F5F2; color: #0B5A5E; border: 1px solid #BFE3DC; }
.pgem-form__status .is-success::before { content: "✓ "; }
.pgem-form__status .is-error { background: #FCEDEB; color: #8E2B21; border: 1px solid #F2C6C0; }
.pgem-form.is-shake { animation: pgem-shake .45s; }
.pgem-form.is-sent .pgem-form__grid { animation: pgem-fade .9s var(--ease); }
@keyframes pgem-spin { to { transform: rotate(360deg); } }
@keyframes pgem-pop-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pgem-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes pgem-fade { 0% { opacity: .3; } 100% { opacity: 1; } }

/* Company contact section with the built-in form */
.pgem-contact__form .pgem-form__title { font-size: 26px; }
.pgem-contact__map--leaflet { height: auto; }
.pgem-contact__map--leaflet .pgem-map { border-radius: 12px; }

/* Contact page */
.pgem-cp-cards { position: relative; z-index: 3; margin-top: -54px; }
.pgem-cp-cards__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pgem-cp-card { padding: 28px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--pgem-gold); box-shadow: 0 18px 44px rgba(16, 40, 90, .1); transition: transform .35s var(--ease), box-shadow .35s; }
.pgem-cp-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pgem-cp-card__label { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pgem-cp-card__value { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--pgem-royal); word-break: break-word; }
.pgem-cp-card__value a { color: var(--pgem-royal); }
.pgem-cp-card__value a:hover { color: var(--pgem-teal); }
.pgem-cp-form { padding-top: 90px; }
.pgem-cp-form__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.pgem-cp-form__intro { display: flex; flex-direction: column; gap: 18px; }
.pgem-cp-form__intro .pgem-lead { margin: 0; }
.pgem-cp-form__card { padding: 40px; border-top: 5px solid var(--pgem-teal); }
.pgem-cp-dir__title { font-size: 19px; margin: 16px 0 0; }
.pgem-cp-dir { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pgem-cp-dir__item { display: flex; align-items: center; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.pgem-cp-dir__item:hover { border-color: var(--pgem-gold); transform: translateX(4px); box-shadow: var(--shadow); }
.pgem-cp-dir__logo { flex: 0 0 150px; display: flex; align-items: center; }
.pgem-cp-dir__logo img { max-height: 46px; width: auto; max-width: 150px; object-fit: contain; }
.pgem-cp-dir__meta { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; min-width: 0; }
.pgem-cp-dir__meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); word-break: break-all; }
.pgem-cp-dir__meta a:hover { color: var(--pgem-teal); }
.pgem-cp-dir__meta .pgem-icon { color: var(--pgem-gold); flex-shrink: 0; }
.pgem-cp-dir__more { font-weight: 700; color: var(--pgem-teal) !important; }

/* Office map */
.pgem-mapbox { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.pgem-mapbox--list { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.pgem-map { height: var(--map-h, 520px); width: 100%; background: #EEF1F5; z-index: 1; }
.pgem-map .leaflet-control-attribution { font-size: 10px; }
.pgem-maplist { list-style: none; max-height: var(--map-h, 560px); overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--ivory); border-left: 1px solid var(--line); }
.pgem-maplist__item { width: 100%; display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 16px; border-radius: 14px; border: 1.5px solid transparent; background: #fff; font: inherit; color: var(--text); cursor: pointer; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.pgem-maplist__item:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.pgem-maplist__item.is-active { border-color: var(--pgem-gold); box-shadow: var(--shadow); }
.pgem-maplist__pin { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); color: var(--bronze); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .3s, color .3s; }
.pgem-maplist__item.is-active .pgem-maplist__pin { background: var(--pgem-royal); color: #E6CB86; }
.pgem-maplist__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pgem-maplist__text strong { font-family: var(--font-head); font-size: 16.5px; color: var(--pgem-royal); }
.pgem-maplist__text small { font-size: 13px; font-weight: 700; color: var(--bronze); }
.pgem-maplist__text span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.pgem-pin { background: none; border: 0; }
.pgem-pin__inner { display: block; animation: pgem-drop .7s var(--ease) both; filter: drop-shadow(0 6px 8px rgba(19, 41, 75, .3)); transform-origin: bottom center; transition: transform .25s var(--ease); }
.pgem-pin:hover .pgem-pin__inner { transform: translateY(-4px) scale(1.06); }
@keyframes pgem-drop { 0% { opacity: 0; transform: translateY(-40px); } 60% { opacity: 1; transform: translateY(4px); } 100% { transform: none; } }
.pgem-map .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow-lg); padding: 4px; }
.pgem-map .leaflet-popup-content { margin: 14px 16px; font-family: var(--font); }
.pgem-pop { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.pgem-pop__company { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); }
.pgem-pop__title { font-family: var(--font-head); font-size: 17px; color: var(--pgem-royal); }
.pgem-pop__city { font-size: 13px; font-weight: 600; color: var(--muted); }
.pgem-pop__addr { margin: 4px 0; font-size: 13px; color: var(--text); }
.pgem-pop__line { font-size: 13px; color: var(--pgem-teal) !important; }
.pgem-pop__dir { margin-top: 8px; font-weight: 700; font-size: 13px; color: var(--pgem-royal) !important; }
.pgem-map__all { background: #fff; border: 0; border-radius: 10px; padding: 9px 14px; font: 600 13px var(--font); color: var(--pgem-royal); box-shadow: 0 4px 14px rgba(16, 40, 90, .18); cursor: pointer; }
.pgem-map__all:hover { background: var(--pgem-royal); color: #fff; }

@media (max-width: 1024px) {
	.pgem-cp-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pgem-cp-form__grid { grid-template-columns: 1fr; gap: 40px; }
	.pgem-mapbox--list { grid-template-columns: 1fr; }
	.pgem-maplist { max-height: none; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.pgem-form__grid, .pgem-cp-cards__grid, .pgem-maplist { grid-template-columns: 1fr; }
	.pgem-cp-form__card { padding: 26px 20px; }
	.pgem-map { height: 380px; }
	.pgem-cp-dir__item { flex-direction: column; align-items: flex-start; }
	.pgem-cp-dir__logo { flex-basis: auto; }
}
