/* ADD2CARE palette, aligned with the current Figma direction. */
:root {
    --primary-color: #F5C51B;
    --primary-color-rgb: 245, 197, 27;
    --dark-color: #D92F2F;
    --dark-color-rgb: 217, 47, 47;
    --secondary-color: #8A8B99;
    --secondary-color-rgb: 138, 139, 153;
    --grey-color: #F5F3ED;
    --white-color: #FFFEFB;
    --white-color-rgb: 255, 254, 251;
}

body {
    background: var(--white-color);
}

/* Header colors and proportions follow the supplied ADD2CARE reference. */
header#pq-header {
    --primary-color: #ffcc00;
    --dark-color: #ed1424;
    --white-color: #ffffff;
}
header#pq-header .pq-bottom-header { background: #fff; }
header#pq-header .pq-bottom-header .navbar-toggler {
    background-color: var(--dark-color);
    flex-shrink: 0;
}
/* Center the icon in the circle instead of the reference's fixed top/left offsets. */
header#pq-header .pq-bottom-header .navbar-toggler i {
    inset: 0;
    width: auto;
    display: grid;
    place-items: center;
    line-height: 1;
}
header#pq-header .pq-bottom-header .navbar .navbar-brand img {
    width: 252px;
    height: 42px;
    object-fit: contain;
}
header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu > .menu-item > a,
header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu > .menu-item > i {
    color: var(--dark-color);
}
header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu > .menu-item.current-menu-item > a,
header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu > .menu-item:hover > a {
    color: var(--primary-color);
}
header#pq-header .pq-bottom-header .pq-header-right .pq-btn-container .pq-button.pq-button-flat {
    background: var(--dark-color);
    color: #fff;
    white-space: nowrap;
}
header#pq-header .pq-bottom-header .pq-header-right .pq-btn-container .pq-button.pq-button-flat i {
    background: #fff;
    color: var(--dark-color);
}
header#pq-header .pq-bottom-header .pq-header-right .pq-btn-container .pq-button.pq-button-flat:hover {
    background: #f4c51c;
    color: #d9302f;
}
header#pq-header .pq-bottom-header .pq-header-right .pq-btn-container .pq-button.pq-button-flat:hover i {
    background: #d9302f;
    color: #fffefb;
}
header#pq-header a:focus-visible,
header#pq-header button:focus-visible {
    outline: 2px solid #991020;
    outline-offset: 4px;
}
header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu > .menu-item:focus-within > .sub-menu {
    display: block;
}
@media (min-width: 1200px) {
    header#pq-header .pq-bottom-header { padding: 0 clamp(24px, 4vw, 76px) 0 0; }
    header#pq-header .pq-bottom-header > .container { max-width: none; padding-inline: 0; }
    header#pq-header .pq-bottom-header .navbar { min-height: 104px; gap: 24px; flex-wrap: nowrap; }
    header#pq-header .pq-bottom-header .pq-header-logo,
    header#pq-header .pq-bottom-header .pq-header-right { flex-shrink: 0; }
    header#pq-header .pq-bottom-header .navbar .navbar-brand { display: block; margin: 0; padding: 0; }
    /* The SVG has 10.41 units of left whitespace at its 897-unit viewBox width. */
    header#pq-header .pq-bottom-header .navbar .navbar-brand img { display: block; height: auto; transform: translateX(calc(-252px * 10.41 / 897)); }
    header#pq-header .pq-bottom-header .navbar .navbar-collapse { flex: 1; }
    header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu { align-items: center; gap: clamp(20px, 2.4vw, 40px); }
    header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu > .menu-item { margin: 0; white-space: nowrap; }
    header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu > .menu-item > a { font-size: 20px; line-height: 104px; }
    header#pq-header .pq-bottom-header .pq-header-right .pq-btn-container .pq-button.pq-button-flat { padding: 6px 6px 6px 32px; gap: 12px; font-size: 20px; font-weight: 500; }
    header#pq-header .pq-bottom-header .pq-header-right .pq-btn-container .pq-button.pq-button-flat i { width: 46px; height: 46px; flex-shrink: 0; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
    header#pq-header .pq-bottom-header .navbar { gap: 20px; }
    header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu { gap: 24px; }
    header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu > .menu-item > a { font-size: 18px; }
    header#pq-header .pq-bottom-header .pq-header-right .pq-btn-container .pq-button.pq-button-flat { padding-left: 24px; font-size: 18px; }
}
@media (max-width: 575px) {
    header#pq-header .pq-bottom-header .navbar .navbar-brand img { width: min(220px, 60vw); height: auto; }
}

/* Keep the product destination separate from its disclosure control. */
header#pq-header .add2care-submenu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--dark-color);
    padding: 8px;
    border-radius: 8px;
}
header#pq-header .add2care-submenu-toggle i { margin: 0; }
header#pq-header .add2care-submenu-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

@media (max-width: 1199px) {
    header#pq-header.pq-header-style-1 .pq-bottom-header,
    header#pq-header.pq-header-style-2 .pq-bottom-header { padding: 12px 20px; }
    header#pq-header .pq-bottom-header .navbar { min-height: 56px; padding: 0; }
    header#pq-header .pq-bottom-header .navbar .navbar-brand { margin: 0; padding: 0; }
    header#pq-header .pq-bottom-header .navbar-toggler { width: 48px; height: 48px; border: 0; }
    header#pq-header .pq-bottom-header .navbar-toggler i { font-size: 22px; }
    header#pq-header .pq-bottom-header .navbar-toggler[aria-expanded="true"] i::before { content: "\f00d"; }
    header#pq-header .pq-bottom-header .navbar .navbar-collapse {
        left: auto;
        right: 0;
        top: calc(100% + 12px);
        width: min(380px, 100%);
        max-height: calc(100vh - 108px);
        max-height: calc(100dvh - 108px);
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid #eee8e3;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 18px 48px rgb(33 20 15 / 16%);
    }
    header#pq-header .pq-bottom-header .pq-menu-contain { width: 100%; padding: 10px; }
    header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu { gap: 3px; }
    header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu > .menu-item { margin: 0; padding: 0; }
    header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu > .menu-item > a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 12px 16px;
        border-radius: 10px;
        color: #292321;
        font-size: 18px;
        line-height: 1.35;
        font-weight: 500;
    }
    header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu > .menu-item > a:hover,
    header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu > .menu-item > a:focus-visible {
        color: #b51220;
        background: #fff5f3;
    }
    header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu > .menu-item.current-menu-item > a {
        color: #a6111d;
        background: #fff3d1;
        box-shadow: inset 3px 0 #ffcc00;
    }
    header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu > .menu-item:has(.add2care-submenu-toggle) > a { padding-right: 58px; }
    header#pq-header .pq-submenu-icon { display: none; }
    header#pq-header .add2care-submenu-toggle {
        position: absolute;
        right: 3px;
        top: 2px;
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
    }
    header#pq-header .add2care-submenu-toggle:hover { background: #fff3d1; }
    header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu .add2care-submenu-toggle i {
        position: static;
        margin: 0;
        color: #a6111d;
        font-size: 12px;
    }
    header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu .menu-item > .sub-menu,
    header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu .menu-item:is(:hover, :focus-within) > .sub-menu {
        display: none;
        padding: 4px 0 4px 14px;
        margin: 4px 0;
        border-left: 2px solid #f3d66d;
        border-radius: 0;
    }
    header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu .menu-item.add2care-submenu-open > .sub-menu { display: block; }
    header#pq-header .pq-bottom-header .pq-menu-contain .pq-main-menu .menu-item .sub-menu .menu-item a {
        min-height: 44px;
        padding: 10px 16px;
        color: #534844;
        line-height: 1.5;
        font-size: 16px;
    }
    header#pq-header a:focus-visible,
    header#pq-header button:focus-visible { outline-offset: -3px; }
}

@media (max-width: 575px) {
    header#pq-header.pq-header-style-1 .pq-bottom-header,
    header#pq-header.pq-header-style-2 .pq-bottom-header { padding-inline: 16px; }
    header#pq-header .pq-bottom-header .navbar .navbar-brand img { width: min(200px, 58vw); }
}

@media (prefers-reduced-motion: reduce) {
    /* Keep the CTA's color and arrow feedback aligned with the hero button. */
    header#pq-header .collapsing,
    header#pq-header a:not(.pq-button),
    header#pq-header .pq-main-menu i,
    header#pq-header .navbar-toggler i { transition: none; }
}

/* Homepage footer, sized to the supplied ADD2CARE reference. */
.add2care-footer {
    --footer-yellow: #ffcc00;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #dc1b23 !important;
    color: #fff;
    font-family: var(--title-fonts);
    font-size: 18px;
    line-height: 1.6;
}

.add2care-footer .pq-footer {
    position: relative;
    z-index: 1;
    padding: clamp(72px, 7.7vw, 120px) clamp(24px, 6.65vw, 128px) clamp(60px, 6vw, 92px);
    overflow: visible;
}

.add2care-footer .container {
    width: 100%;
    max-width: 1330px;
    padding: 0;
    margin-inline: auto;
}

.add2care-footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, .9fr) minmax(0, .85fr);
    gap: clamp(40px, 6vw, 92px);
}

.add2care-footer-intro,
.add2care-footer-column { min-width: 0; }

.add2care-footer-heading { position: relative; }

.add2care-footer-heading-mark {
    position: absolute;
    left: -20px;
    top: 4px;
    width: 5px;
    height: .85em;
    border-radius: 5px;
    background: var(--footer-yellow);
    font-size: clamp(30px, 2.73vw, 42px);
}

.add2care-footer-heading h2,
.add2care-footer-column h3 {
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-weight: 600;
    text-transform: none;
}

.add2care-footer-heading h2 {
    font-size: clamp(30px, 2.73vw, 42px);
    line-height: 1.3;
}

.add2care-footer-intro > p {
    margin: 12px 0 28px;
    color: inherit;
    font-size: 18px;
    line-height: 1.8;
}

/* Reuse the header/hero button transitions and arrow rotation; only customize the footer palette. */
.add2care-footer .add2care-footer-cta {
    background: var(--footer-yellow);
    color: #111;
    white-space: nowrap;
}

.add2care-footer .add2care-footer-cta i {
    flex-shrink: 0;
    background: #111;
    color: #fff;
}

.add2care-footer .add2care-footer-cta:hover {
    background: #111;
    color: var(--footer-yellow);
}

.add2care-footer .add2care-footer-cta:hover i {
    background: var(--footer-yellow);
    color: #111;
}

.add2care-footer-tagline {
    display: block;
    margin-top: 20px;
    font-size: 18px;
}

.add2care-footer-column h3 {
    margin-bottom: 24px;
    font-size: 28px;
    line-height: 1.3;
}

.add2care-footer-column ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.add2care-footer-column li,
.add2care-footer-social li { margin: 0; padding: 0; line-height: 1.6; }

.add2care-footer-column a {
    color: inherit;
    font-size: 18px;
    text-decoration: none;
    transition: color .2s ease;
}

.add2care-footer-column a:hover { color: var(--footer-yellow); }
.add2care-footer-prompt { margin: 28px 0 0; color: inherit; font-size: 18px; }

.add2care-footer-divider {
    height: 1px;
    margin-top: 42px;
    background: rgb(255 255 255 / 50%);
}

.add2care-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-top: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.add2care-footer-social,
.add2care-footer-social ul { display: flex; align-items: center; }
.add2care-footer-social { gap: 16px; }
.add2care-footer-social > span { font-size: 20px; font-weight: 600; }

.add2care-footer-social ul {
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Accounts and privacy content are visual placeholders until supplied. */
.add2care-footer-social-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 50%;
    color: inherit;
    font-size: 18px;
}

.add2care-footer-copyright { text-align: center; }
.add2care-footer-privacy { color: inherit; }

.add2care-footer-wordmark {
    position: absolute;
    z-index: 0;
    left: 50%;
    bottom: 24px;
    color: rgb(255 255 255 / 4%);
    font-family: Arial, sans-serif;
    font-size: clamp(2rem, 14vw, 15rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: .85;
    pointer-events: none;
    user-select: none;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Override the reference theme's global outline: none !important. */
.add2care-footer a:focus-visible { outline: 2px solid #fff !important; outline-offset: 5px; }

@media (min-width: 980px) and (max-width: 1199px) {
    .add2care-footer-top { gap: 40px; }
    .add2care-footer-column h3 { font-size: 24px; }
    .add2care-footer-column a,
    .add2care-footer-prompt,
    .add2care-footer-intro > p,
    .add2care-footer-tagline { font-size: 16px; }
    .add2care-footer-bottom { font-size: 14px; }
    .add2care-footer-social { gap: 12px; }
    .add2care-footer-social > span { font-size: 18px; }
    .add2care-footer-social ul { gap: 8px; }
}

@media (max-width: 979px) {
    .add2care-footer .pq-footer { padding: 64px 32px 80px; }
    .add2care-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
    .add2care-footer-intro { grid-column: 1 / -1; max-width: 540px; }
    .add2care-footer-heading-mark { left: -16px; width: 4px; }
    .add2care-footer-bottom { flex-wrap: wrap; gap: 18px; }
    .add2care-footer-social { width: 100%; }
}

@media (max-width: 599px) {
    .add2care-footer .pq-footer { padding: 48px 24px 74px; }
    .add2care-footer-top { grid-template-columns: 1fr; gap: 36px; }
    .add2care-footer-intro { grid-column: auto; }
    .add2care-footer-heading h2 { font-size: 28px; }
    .add2care-footer-heading-mark { left: -12px; height: 24px; }
    .add2care-footer-intro > p { margin-bottom: 22px; font-size: 16px; }
    .add2care-footer-column h3 { margin-bottom: 18px; font-size: 21px; }
    .add2care-footer-column a,
    .add2care-footer-prompt,
    .add2care-footer-tagline { font-size: 16px; }
    .add2care-footer-column ul { gap: 12px; }
    .add2care-footer-divider { margin-top: 32px; }
    .add2care-footer-bottom { flex-direction: column; align-items: flex-start; font-size: 14px; }
    .add2care-footer-social { gap: 12px; }
    .add2care-footer-social > span { font-size: 18px; }
    .add2care-footer-social ul { gap: 10px; }
    .add2care-footer-social-icon { width: 36px; height: 36px; font-size: 16px; }
    .add2care-footer-wordmark { bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    /* Keep the CTA's subtle color/arrow feedback consistent with the hero button. */
    .add2care-footer a:not(.add2care-footer-cta) { transition: none; }
}
