:root {
    --pcg-ink: #1f2a28;
    --pcg-clay: #c97f5f;
    --pcg-sand: #f3ede5;
    --pcg-mist: #e8f0ec;
}

#logo .brand-mark {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    box-shadow: 0 14px 35px rgba(31, 42, 40, 0.12);
    display: inline-flex;
    gap: 0.75rem;
    padding: 0.55rem 0.95rem;
    text-decoration: none;
}

#logo .brand-mark__icon {
    align-items: center;
    background: linear-gradient(135deg, var(--pcg-clay), #e5b08c);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    height: 2.6rem;
    justify-content: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: 2.6rem;
}

#logo .brand-mark__text {
    color: var(--pcg-ink);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

#logo .brand-mark__eyebrow {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

#logo .brand-mark__name {
    font-size: 1rem;
    font-weight: 700;
}

.footer-brand {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.footer-brand span {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.pcg-note,
.portal-status {
    background: var(--pcg-sand);
    border-left: 4px solid var(--pcg-clay);
    border-radius: 0.75rem;
    color: var(--pcg-ink);
    padding: 1rem 1.1rem;
}

.portal-status {
    margin-top: 1rem;
}

.pcg-muted {
    color: rgba(31, 42, 40, 0.78);
}

.pcg-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 16px 40px rgba(31, 42, 40, 0.08);
    padding: 2rem;
}

.pcg-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pcg-checklist li {
    margin-bottom: 0.75rem;
    padding-left: 1.4rem;
    position: relative;
}

.pcg-checklist li::before {
    color: var(--pcg-clay);
    content: "+";
    font-weight: 700;
    left: 0;
    position: absolute;
    top: 0;
}

@media (max-width: 767.98px) {
    #logo .brand-mark {
        padding: 0.5rem 0.75rem;
    }

    #logo .brand-mark__name {
        font-size: 0.88rem;
    }
}
/* ====== Navigation Fix ====== */
header.transparent #mainmenu > li > a,
header.transparent #mainmenu > li.has-child:after {
    color: var(--pcg-ink) !important;
}
header.transparent #topbar,
header.transparent #topbar a,
header.transparent .topbar-widget a {
    color: var(--pcg-ink);
}
header.transparent .social-icons a i {
    color: var(--pcg-ink);
}
header.smaller #mainmenu > li > a,
header.smaller #mainmenu > li.has-child:after {
    color: var(--pcg-ink) !important;
}
header.smaller {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
#mainmenu > li > a:hover {
    color: var(--pcg-clay) !important;
}
#mainmenu > li > a {
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 14px 6px;
    position: relative;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.btn-main.btn-line {
    border-color: var(--pcg-clay);
    color: var(--pcg-clay);
}
.btn-main.btn-line:hover {
    background: var(--pcg-clay);
    color: #fff;
}
/* ====== Header business info bar ====== */
.pcg-info-bar {
    background: var(--pcg-ink);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    padding: 6px 0;
    letter-spacing: 0.02em;
}
.pcg-info-bar a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}
.pcg-info-bar a:hover {
    color: #fff;
}
.pcg-info-bar .fa-solid,
.pcg-info-bar .icofont-location-pin,
.pcg-info-bar .icofont-phone {
    color: var(--pcg-clay);
    margin-right: 5px;
}

/* ====== Premium Footer ====== */
footer {
    background: linear-gradient(160deg, #1a2522 0%, #0f1a17 100%) !important;
    padding-top: 60px !important;
}
footer .footer-brand {
    font-size: 1.6rem;
    margin-bottom: 10px;
}
footer .widget h2 {
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.95);
}
footer .widget ul li {
    margin-bottom: 8px;
}
footer .widget ul li a {
    color: rgba(255,255,255,0.65);
    transition: color 0.2s, padding-left 0.2s;
}
footer .widget ul li a:hover {
    color: var(--pcg-clay);
    padding-left: 4px;
}
footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    margin-right: 6px;
    transition: all 0.3s;
}
footer .social-icons a:hover {
    background: var(--pcg-clay);
    border-color: var(--pcg-clay);
}
footer .pcg-footer-contact {
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}
footer .pcg-footer-contact .fw-bold {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.subfooter {
    margin-top: 40px;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}
.subfooter a {
    color: rgba(255,255,255,0.55) !important;
}
.subfooter a:hover {
    color: var(--pcg-clay) !important;
}

/* ====== Dropdown animation ====== */
#mainmenu li ul {
    transition: opacity 0.25s ease, visibility 0.25s ease;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}
#mainmenu li li a {
    padding: 8px 18px;
    font-size: 13px;
    transition: all 0.2s;
}
#mainmenu li li a:hover,
#mainmenu ul li:hover > a {
    background: var(--pcg-sand) !important;
    color: var(--pcg-ink) !important;
}

/* ====== Hero Slider Background Fallback ====== */
.swiper-inner[data-bgimage] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}


/* ====== Nav Visibility Fix: frosted glass header ====== */
header.transparent {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* ====== Hero Text Readability ====== */
/* Dark gradient overlay on all swiper slides for text contrast */
.swiper-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(31, 42, 40, 0.55) 0%,
        rgba(31, 42, 40, 0.35) 40%,
        rgba(31, 42, 40, 0.15) 70%,
        rgba(31, 42, 40, 0.05) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Center-aligned hero (home3) gets a uniform overlay instead */
.sw-caption.text-center ~ .sw-overlay,
.text-center .sw-overlay {
    display: none;
}
section .sw-caption.text-center {
    /* override handled by the ::after overlay */
}

/* Ensure caption text sits above the overlay */
.sw-caption {
    z-index: 2 !important;
}

/* Hero text styles for max readability */
.sw-caption h1,
.sw-caption .fs-84,
.sw-caption .fs-72 {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45),
                 0 1px 3px rgba(0, 0, 0, 0.3);
}

.sw-caption .subtitle {
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.sw-caption p,
.sw-caption .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* Swiper nav arrows visible on overlay */
.swiper-button-next,
.swiper-button-prev,
.swiper-button-next.dark,
.swiper-button-prev.dark {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.swiper-pagination {
    color: #ffffff !important;
}

/* Home4 hero (non-slider) already has bg-dark - just ensure text readability */
.section-dark h1 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Hide duplicate topbar (pcg-info-bar provides this info) */
#topbar { display: none !important; }

/* Hover card overlay text */
.hover-op-1 p {
    color: #fff !important;
}

/* === SITE NORMALIZATION OVERRIDES === */

/* =========================================================================
   SITE NORMALIZATION OVERRIDES (match reference insurance.html look)
   Purpose:
     1) Unify font sizes across all pages/sites
     2) Prevent grey background from bleeding past the hero (subheader)
     3) Keep the main navigation on a single row
   ========================================================================= */

/* 1) Font size normalization */
:root,
* {
    --body-font-size: 16px;
    --body-font-line-height: 30px;
    --mainmenu-font-size: 15px;
    --h1-font-size: 60px;
    --h2-font-size: 48px;
    --h3-font-size: 26px;
    --h4-font-size: 22px;
    --h5-font-size: 18px;
    --h6-font-size: 16px;
    --subheader-title-font-size: 60px;
    --btn-font-size: 15px;
    --subtitle-font-size: 11px;
}

body {
    font-size: 16px;
    line-height: 30px;
}

#subheader h1,
#subheader h1.cam-style {
    font-size: 60px !important;
    line-height: 1.15em !important;
}

@media (max-width: 767px) {
    #subheader h1,
    #subheader h1.cam-style {
        font-size: 40px !important;
    }
}

/* 2) Prevent the grey bg-light (or bg-grey) section immediately after the
      hero from creating a grey band that visually "covers" the hero. */
#subheader + section.bg-light,
#subheader + section.bg-grey,
main > section#subheader + section.bg-light,
main > section#subheader + section.bg-grey {
    background: transparent !important;
    background-color: transparent !important;
}

/* 3) Keep the main navigation on a single row */
#mainmenu {
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    justify-content: center !important;
}

#mainmenu > li {
    margin-right: 2px !important;
    white-space: nowrap !important;
}

#mainmenu > li > a,
#mainmenu > li > a.menu-item {
    font-size: var(--mainmenu-font-size) !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    letter-spacing: 0.01em !important;
    white-space: nowrap !important;
}

@media (max-width: 1199.98px) {
    #mainmenu > li > a,
    #mainmenu > li > a.menu-item {
        padding-left: 4px !important;
        padding-right: 4px !important;
        font-size: 14px !important;
    }
}


/* === HERO OVERLAY CONSTRAINED === */
/* Keep the subheader (hero) strictly bounded and its overlay pinned to it. */
section#subheader,
#subheader.jarallax,
#subheader.relative {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
}

/* Force .sw-overlay inside the hero to stick to #subheader's box only.
   Avoid affecting other sections (e.g. CTA) that also use .sw-overlay. */
section#subheader > .sw-overlay,
section#subheader > div.sw-overlay {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    opacity: 0.35 !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    pointer-events: none;
}

/* Overlay's opacity-utility classes (op-4, op-5) pile extra dimming on top
   of the already-heavy dark gradient; tone them down across the hero. */
section#subheader > .sw-overlay.op-2 { opacity: 0.2 !important; }
section#subheader > .sw-overlay.op-3 { opacity: 0.25 !important; }
section#subheader > .sw-overlay.op-4 { opacity: 0.3 !important; }
section#subheader > .sw-overlay.op-5 { opacity: 0.35 !important; }

/* Jarallax sometimes promotes its own img; make sure it never leaks past
   the hero's overflow box. */
section#subheader > .jarallax-img,
section#subheader .jarallax-img {
    max-height: 100% !important;
}

/* === CARD OVERLAY TONED DOWN === */
/* Per-card .sw-overlay tints inside service/feature cards (not in the hero)
   were creating the illusion that the hero overlay extended downward into
   the card section. Lighten them so cards read as bright thumbnails. */
.rounded-10px > .sw-overlay,
div.relative.overflow-hidden > .sw-overlay,
.relative.overflow-hidden.rounded-10px > .sw-overlay {
    opacity: 0.18 !important;
}
.rounded-10px > .sw-overlay.op-3,
div.relative.overflow-hidden > .sw-overlay.op-3 { opacity: 0.15 !important; }
.rounded-10px > .sw-overlay.op-4,
div.relative.overflow-hidden > .sw-overlay.op-4 { opacity: 0.18 !important; }
.rounded-10px > .sw-overlay.op-5,
div.relative.overflow-hidden > .sw-overlay.op-5 { opacity: 0.22 !important; }


/* === PLAIN SECTION BG TRANSPARENT === */
/* The unclassed <section> between #subheader and any following section was
   picking up a dark/grey background on some pages, making it look like the
   hero overlay was extending into the cards area. Force plain sections
   (without any intentional bg-* class) back to transparent. */
main > section:not([class*="bg-"]):not(.jarallax):not(#subheader) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}


/* === OVERLAY CONTAINMENT FIX (GLOBAL) ===
   Any section that contains a .sw-overlay (or .jarallax-img) must be a
   positioning context. Without this, a `position:absolute` .sw-overlay
   climbs ancestors to find a positioned one and, finding none, anchors to
   the viewport — producing a giant grey layer covering the whole page
   from the top of the hero down through the cards section. */
main > section.jarallax,
main > section.relative,
main > section:has(> .sw-overlay),
main > section:has(> .jarallax-img) {
    position: relative !important;
    overflow: hidden !important;
}

/* Explicitly scope any direct .sw-overlay child of ANY section (not just
   the hero) so overlays are always bounded to their parent section box. */
main > section > .sw-overlay,
main > section > div.sw-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
}




/* === DROPDOWN SUBMENU FIX ===
   Default submenu width is a fixed 190px, which truncates longer labels
   like "Complementary Therapy Options". Allow width to fit content and
   keep the submenu from overflowing the viewport on the right side. */
#mainmenu li ul {
    width: auto !important;
    min-width: 220px !important;
    max-width: none !important;
    white-space: nowrap !important;
}

#mainmenu li li {
    white-space: nowrap !important;
}

#mainmenu li li a {
    white-space: nowrap !important;
    padding: 6px 18px !important;
    line-height: 1.35em !important;
}

/* Right-align submenus for the last couple of top-level items so they
   don't get clipped by the viewport edge. */
#mainmenu > li:nth-last-child(-n+3) > ul {
    left: auto !important;
    right: 0 !important;
}

/* Nested (second-level) submenus on right-aligned branches flip too. */
#mainmenu > li:nth-last-child(-n+3) ul ul:not(.ul-list) {
    left: auto !important;
    right: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
