
body.phg-agent-dark {
    --pd-bg: #131313; --pd-surface: #1b1b1b; --pd-line: #333;
    --pd-cream: #eeece6; --pd-gray: #b9b9b9; --pd-gray-d: #8a8a8a; --pd-gold: #d0b857;
    background: var(--pd-bg); color: #fff;
}
body.phg-agent-dark #main,
body.phg-agent-dark #content,
body.phg-agent-dark .the-content,
body.phg-agent-dark #footer { background: var(--pd-bg) !important; color: #fff; }

body.phg-agent-dark #main { max-width: none !important; padding: 0 !important; }


body.phg-agent-dark .phg-agent-hero {
    display: grid; grid-template-columns: minmax(320px, 42%) 1fr; align-items: stretch;
    max-width: 1320px; margin: 0 auto;
}
body.phg-agent-dark .phg-agent-hero__media { position: relative; min-height: 580px; background: #0c0c0c; }
body.phg-agent-dark .phg-agent-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
body.phg-agent-dark .phg-agent-hero__panel {
    background: #161616; padding: 64px 56px; display: flex; flex-direction: column; justify-content: center;
}
body.phg-agent-dark .phg-agent-pos {
    color: var(--pd-gold) !important; text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; margin: 0 0 14px;
}
body.phg-agent-dark .phg-agent-name {
    color: #fff !important; font-size: 3rem; line-height: 1.05; font-weight: 500; margin: 0 0 22px; letter-spacing: .01em;
}
body.phg-agent-dark .phg-agent-desc,
body.phg-agent-dark .phg-agent-desc p { color: var(--pd-gray) !important; line-height: 1.85; font-size: .98rem; }


body.phg-agent-dark .phg-agent-rule { display: block; width: 54px; height: 2px; background: var(--pd-gold); margin: 0 0 24px; }


body.phg-agent-dark .phg-agent-contact { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--pd-line); }
body.phg-agent-dark .phg-agent-contact h3 { color: #fff !important; text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; margin: 0 0 18px; }
body.phg-agent-dark .phg-agent-contact__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
body.phg-agent-dark .phg-agent-contact__list li { margin: 0; }
body.phg-agent-dark .phg-agent-contact__list li.is-wide { grid-column: 1 / -1; }
body.phg-agent-dark .phg-agent-contact a { color: var(--pd-cream) !important; text-decoration: none; display: inline-flex; align-items: center; gap: 13px; transition: color .25s ease; font-size: .92rem; }
body.phg-agent-dark .phg-agent-contact a:hover { color: var(--pd-gold) !important; }

body.phg-agent-dark .phg-agent-contact .ic {
    flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--pd-gold); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; color: var(--pd-gold);
    transition: background .25s ease, color .25s ease;
}
body.phg-agent-dark .phg-agent-contact a:hover .ic { background: var(--pd-gold); color: #131313; }
body.phg-agent-dark .phg-agent-contact .ic i { font-size: .95rem; }


body.phg-agent-dark .phg-agent-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
body.phg-agent-dark .phg-agent-cta .phg-btn { width: 100%; justify-content: center; }
body.phg-agent-dark .phg-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px;
    font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1;
    border: 1px solid transparent; border-radius: 0; cursor: pointer; text-decoration: none; transition: all .25s ease;
}
body.phg-agent-dark .phg-btn i { font-size: .9rem; }
body.phg-agent-dark .phg-btn--primary { background: var(--pd-gold); color: #131313 !important; border-color: var(--pd-gold); }
body.phg-agent-dark .phg-btn--primary:hover { background: transparent; color: var(--pd-gold) !important; }
body.phg-agent-dark .phg-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.4); }
body.phg-agent-dark .phg-btn--ghost:hover { border-color: var(--pd-gold); color: var(--pd-gold) !important; }
@media (max-width: 480px) { body.phg-agent-dark .phg-agent-contact__list { grid-template-columns: 1fr; } body.phg-agent-dark .phg-agent-cta { grid-template-columns: 1fr; } }


body.phg-agent-dark .phg-agent-offers { padding: 72px 24px; max-width: 1320px; margin: 0 auto; }
body.phg-agent-dark .phg-agent-offers__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
body.phg-agent-dark .phg-agent-eyebrow { color: var(--pd-gold) !important; text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; margin: 0 0 8px; }
body.phg-agent-dark .phg-agent-offers__head h2 { color: #fff !important; font-size: 2.1rem; margin: 0; font-weight: 500; }
body.phg-agent-dark .phg-agent-more {
    color: var(--pd-cream) !important; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
    text-decoration: none; border-bottom: 1px solid var(--pd-gold); padding-bottom: 3px; transition: color .25s ease; white-space: nowrap;
}
body.phg-agent-dark .phg-agent-more:hover { color: var(--pd-gold) !important; }


body.phg-agent-dark .widget-offers .holder { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 991px) { body.phg-agent-dark .widget-offers .holder { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) { body.phg-agent-dark .widget-offers .holder { grid-template-columns: 1fr !important; } }


body.phg-agent-dark #contact { background: var(--pd-surface) !important; padding: 64px 24px; }
body.phg-agent-dark #contact .width-4 { max-width: 880px; margin: 0 auto; }
body.phg-agent-dark #contact h2 { color: #fff !important; text-transform: uppercase; letter-spacing: .06em; }
body.phg-agent-dark #contact label { color: var(--pd-gray) !important; }
body.phg-agent-dark #contact input,
body.phg-agent-dark #contact textarea,
body.phg-agent-dark #contact select { background: #131313 !important; border: 1px solid var(--pd-line) !important; color: #fff !important; }
body.phg-agent-dark #contact input::placeholder,
body.phg-agent-dark #contact textarea::placeholder { color: var(--pd-gray-d) !important; }

body.phg-agent-dark #contact input[type=submit],
body.phg-agent-dark #contact button[type=submit],
body.phg-agent-dark #contact .btn {
    background: var(--pd-gold) !important; color: #131313 !important; border: 1px solid var(--pd-gold) !important;
    border-radius: 0 !important; text-transform: uppercase; letter-spacing: .12em; transition: all .25s ease;
}
body.phg-agent-dark #contact input[type=submit]:hover,
body.phg-agent-dark #contact button[type=submit]:hover,
body.phg-agent-dark #contact .btn:hover { background: transparent !important; color: var(--pd-gold) !important; }


body.phg-agent-dark .phg-agent-offers__head > div { position: relative; }
body.phg-agent-dark .phg-agent-eyebrow { display: inline-flex; align-items: center; gap: 12px; }
body.phg-agent-dark .phg-agent-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--pd-gold); display: inline-block; }


@media (max-width: 900px) {
    body.phg-agent-dark .phg-agent-hero { grid-template-columns: 1fr; }
    body.phg-agent-dark .phg-agent-hero__media { min-height: 440px; }
    body.phg-agent-dark .phg-agent-hero__panel { padding: 40px 24px; }
    body.phg-agent-dark .phg-agent-name { font-size: 2.2rem; }
}



@keyframes phgMixUp    { from { opacity: 0; transform: translateY(95px); }                  to { opacity: 1; transform: none; } }
@keyframes phgMixLeft  { from { opacity: 0; transform: translate3d(-62px, 55px, 0); }        to { opacity: 1; transform: none; } }
@keyframes phgMixRight { from { opacity: 0; transform: translate3d(62px, 55px, 0); }         to { opacity: 1; transform: none; } }
@keyframes phgMixZoom  { from { opacity: 0; transform: translateY(60px) scale(.88); }        to { opacity: 1; transform: none; } }


body.phg-agent-dark .phg-agent-offers, body.phg-agent-dark #contact { overflow-x: clip; }


html.phg-anim body.phg-agent-dark .phg-agent-hero__panel > * { opacity: 0; animation: phgMixLeft 1.9s cubic-bezier(.16, 1, .3, 1) both; }
html.phg-anim body.phg-agent-dark .phg-agent-hero__panel > *:nth-child(1) { animation-delay: .2s; }
html.phg-anim body.phg-agent-dark .phg-agent-hero__panel > *:nth-child(2) { animation-delay: .42s; }
html.phg-anim body.phg-agent-dark .phg-agent-hero__panel > *:nth-child(3) { animation-delay: .64s; }
html.phg-anim body.phg-agent-dark .phg-agent-hero__panel > *:nth-child(4) { animation-delay: .86s; }
html.phg-anim body.phg-agent-dark .phg-agent-hero__panel > *:nth-child(5) { animation-delay: 1.08s; }
html.phg-anim body.phg-agent-dark .phg-agent-hero__panel > *:nth-child(6) { animation-delay: 1.3s; }


html.phg-anim body.phg-agent-dark .phg-agent-offers__head,
html.phg-anim body.phg-agent-dark .phg-agent-offers .property,
html.phg-anim body.phg-agent-dark #contact .width-4 > * { opacity: 0; }
html.phg-anim body.phg-agent-dark .phg-agent-offers__head.is-in,
html.phg-anim body.phg-agent-dark .phg-agent-offers .property.is-in,
html.phg-anim body.phg-agent-dark #contact .width-4 > *.is-in {
    animation: phgMixUp 1.3s cubic-bezier(.16, 1, .3, 1) both;
}
html.phg-anim body.phg-agent-dark .phg-agent-offers .property:nth-child(3n+2).is-in { animation-name: phgMixZoom; animation-delay: .1s; }
html.phg-anim body.phg-agent-dark .phg-agent-offers .property:nth-child(3n+3).is-in { animation-name: phgMixRight; animation-delay: .2s; }


body.phg-agent-dark .phg-agent-hero__media img { animation: phgAgentHeroIn 2s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes phgAgentHeroIn { from { opacity: 0; transform: scale(1.09); } to { opacity: 1; transform: scale(1); } }


@media (prefers-reduced-motion: reduce) {
    html.phg-anim body.phg-agent-dark .phg-agent-hero__panel > *,
    html.phg-anim body.phg-agent-dark .phg-agent-offers__head,
    html.phg-anim body.phg-agent-dark .phg-agent-offers .property,
    html.phg-anim body.phg-agent-dark #contact .width-4 > * { opacity: 1 !important; transform: none !important; animation: none !important; }
    body.phg-agent-dark .phg-agent-hero__media img { animation: none; }
}

html:has(body.phg-agent-dark) { scroll-behavior: smooth; }
