/* Content pages: one consistent layout and type scale
   Applies to sections marked .hg-prose (FAQs, accreditations, contact,
   warranty, legal pages, Marketing Hub). */

.hg-prose {
    --hg-col: 820px;
    --hg-gold: var(--wp--preset--color--custom-golden);
    --hg-text: var(--wp--preset--color--custom-text-gray);
    --hg-line: #DEDBD0;
}

.hg-prose > .hg-intro,
.hg-prose > .hg-sections,
.hg-prose > .hg-cards,
.hg-prose > .hg-center,
.hg-prose > p.hg-meta {
    max-width: var(--hg-col) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hg-prose > .hg-cards { max-width: 1140px !important; }

/* ---- Intro: eyebrow, title, gold rule, lead ---- */
.hg-intro {
    text-align: center;
    margin-bottom: 70px !important;
}

.hg-intro > * { margin-top: 0 !important; margin-bottom: 0 !important; }

.hg-prose .hg-eyebrow {
    font-family: var(--wp--preset--font-family--cormorant-garamond);
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 1.96px;
    color: var(--hg-gold);
    margin-bottom: 16px !important;
}

.hg-prose .hg-intro-title {
    font-family: var(--wp--preset--font-family--cormorant-garamond);
    font-size: 54px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px !important;
}

.hg-prose .hg-rule {
    width: 80px;
    height: 1px;
    border: 0;
    background: var(--hg-gold);
    opacity: 1;
    margin: 0 auto 32px !important;
}

.hg-prose .hg-lead {
    font-size: 18px;
    line-height: 28px;
    color: var(--hg-text);
    max-width: 720px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hg-prose .hg-lead + .hg-lead { margin-top: 16px !important; }

/* ---- Body sections: left aligned reading column ---- */
.hg-sections { text-align: left; }

.hg-sections > * { margin-top: 0 !important; margin-bottom: 0 !important; }

.hg-prose .hg-section-title {
    font-family: var(--wp--preset--font-family--cormorant-garamond);
    font-size: 34px;
    font-weight: 400;
    line-height: 1.15;
    text-align: left;
    margin-bottom: 16px !important;
}

.hg-sections > .hg-section-title:not(:first-child) {
    padding-top: 44px;
    margin-top: 44px !important;
    border-top: 1px solid var(--hg-line);
}

.hg-prose p,
.hg-prose li {
    font-size: 17px;
    line-height: 1.75;
    color: var(--hg-text);
}

.hg-sections > p + p { margin-top: 16px !important; }

.hg-sections > ul {
    margin: 12px 0 0 !important;
    padding-left: 22px;
}

.hg-prose a:not(.wp-element-button):not(.hg-pill) {
    color: var(--hg-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hg-prose .hg-meta {
    font-size: 14px !important;
    color: #757575 !important;
    margin-top: 40px !important;
}

.hg-center { text-align: center; }
.hg-center .wp-block-buttons { justify-content: center; }

/* ---- Accreditations: logo tile + text ---- */
.hg-accreditation {
    gap: 50px !important;
    align-items: flex-start !important;
    margin: 0 !important;
    padding: 44px 0;
    border-top: 1px solid var(--hg-line);
}

.hg-accreditation:last-child { border-bottom: 1px solid var(--hg-line); }

.hg-accreditation-logo {
    flex: 0 0 200px !important;
    background: #fff;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.hg-accreditation-logo .wp-block-image { margin: 0; width: 100%; height: 100%; }

.hg-accreditation-logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 150px;
    max-height: 92px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.hg-accreditation-text > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.hg-accreditation-text p + p { margin-top: 14px !important; }

/* ---- Cards (contact, warranty) ---- */
.hg-cards {
    gap: 30px !important;
    margin-top: 0 !important;
}

.hg-card {
    background: #fff;
    padding: 44px 40px 40px !important;
    border-top: 3px solid var(--hg-gold);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.hg-card > * { margin-top: 0 !important; margin-bottom: 0 !important; }

.hg-prose .hg-card-label {
    font-size: 13px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--hg-gold);
    margin-bottom: 16px !important;
}

.hg-prose .hg-card-big,
.hg-prose .hg-card-title {
    font-family: var(--wp--preset--font-family--cormorant-garamond);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--hg-text);
    margin-bottom: 12px !important;
}

.hg-prose .hg-card-big a { color: var(--hg-text) !important; text-decoration: none !important; }

.hg-card p { font-size: 16px; line-height: 1.65; }
.hg-card p + p { margin-top: 6px !important; }

.hg-prose .hg-card-note {
    font-size: 14px !important;
    color: #757575 !important;
    margin-top: auto !important;
    padding-top: 20px;
}

.hg-prose .hg-card-link { margin-top: 14px !important; }

.hg-card .wp-block-buttons { margin-top: auto !important; padding-top: 26px; }

/* ---- FAQ ---- */
.hg-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: -30px auto 70px !important;
    max-width: var(--hg-col);
}

.hg-pill {
    display: inline-block;
    padding: 11px 24px;
    border: 1px solid var(--hg-gold);
    border-radius: 40px;
    font-size: 13px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--hg-text) !important;
    text-decoration: none !important;
    transition: background-color .2s, color .2s;
}

.hg-pill:hover { background: var(--hg-gold); color: #fff !important; }

.hg-prose .hg-faq-group { scroll-margin-top: 140px; }
.hg-prose .hg-faq-group + .hg-prose .hg-faq-group { margin-top: 70px !important; }

.hg-prose .hg-group-title {
    font-family: var(--wp--preset--font-family--cormorant-garamond);
    font-size: 44px;
    font-weight: 400;
    line-height: 1.1;
    text-align: left;
    margin: 0 0 26px !important;
}

.hg-prose .hg-faq.wp-block-accordion { border-top: 1px solid var(--hg-line); margin: 0 !important; }

.hg-prose .hg-faq .wp-block-accordion-item {
    border-bottom: 1px solid var(--hg-line);
    margin: 0 !important;
}

.hg-prose .hg-faq .wp-block-accordion-heading { margin: 0 !important; font-size: inherit; }

.hg-prose .hg-faq .wp-block-accordion-heading__toggle {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 34px;
    width: 100%;
    padding: 26px 0;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    color: var(--hg-text);
}

.hg-prose .hg-faq .wp-block-accordion-heading__toggle-title {
    flex: 1 1 auto;
    font-family: var(--wp--preset--font-family--gantari), sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2.6px;
    line-height: 1.5;
    text-transform: uppercase;
    text-decoration: none !important;
}

.hg-prose .hg-faq .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title { color: var(--hg-gold); }

.hg-prose .hg-faq .wp-block-accordion-heading__toggle-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--hg-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    position: relative;
    transition: background-color .25s, transform .35s;
}

.hg-prose .hg-faq .wp-block-accordion-heading__toggle-icon::before,
.hg-prose .hg-faq .wp-block-accordion-heading__toggle-icon::after {
    content: "" !important;
    font-size: 0 !important;
    position: absolute;
    width: 16px;
    height: 1.5px;
    background: var(--hg-gold);
    transition: transform .35s, background-color .25s;
}

.hg-prose .hg-faq .wp-block-accordion-heading__toggle-icon::after { transform: rotate(90deg); }

.hg-prose .hg-faq .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon,
.hg-prose .hg-faq [aria-expanded="true"] .wp-block-accordion-heading__toggle-icon {
    background: var(--hg-gold);
    transform: rotate(45deg);
}

.hg-prose .hg-faq .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon::before,
.hg-prose .hg-faq .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon::after,
.hg-prose .hg-faq [aria-expanded="true"] .wp-block-accordion-heading__toggle-icon::before,
.hg-prose .hg-faq [aria-expanded="true"] .wp-block-accordion-heading__toggle-icon::after { background: #fff; }

.hg-prose .hg-faq .wp-block-accordion-panel {
    padding: 0 0 0 80px;
}

.hg-prose .hg-faq .wp-block-accordion-item.is-open .wp-block-accordion-panel {
    padding-bottom: 28px;
}

.hg-prose .hg-faq .wp-block-accordion-heading__toggle-icon,
.hg-prose .hg-faq .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon:not(.x) { color: transparent; }

.hg-prose .hg-faq .wp-block-accordion-panel p {
    font-size: 17px;
    line-height: 1.75;
    margin: 0;
}

/* ---- Mobile ---- */
@media (max-width: 781px) {
    .hg-intro { margin-bottom: 44px !important; }
    .hg-prose .hg-eyebrow { font-size: 20px; }
    .hg-prose .hg-intro-title { font-size: 38px; }
    .hg-prose .hg-lead { font-size: 16px; }
    .hg-prose .hg-section-title { font-size: 28px; }
    .hg-sections > .hg-section-title:not(:first-child) { padding-top: 32px; margin-top: 32px !important; }
    .hg-prose p, .hg-prose li { font-size: 16px; }

    .hg-accreditation { gap: 20px !important; padding: 32px 0; }
    .hg-accreditation-logo { flex-basis: auto !important; width: 100%; max-width: 220px; height: 120px; }

    .hg-card { padding: 32px 24px !important; }
    .hg-prose .hg-card-big, .hg-prose .hg-card-title { font-size: 26px; }

    .hg-pills { margin: -14px auto 44px !important; gap: 8px; }
    .hg-pill { padding: 9px 16px; font-size: 12px; }
    .hg-prose .hg-group-title { font-size: 34px; }
    .hg-prose .hg-faq .wp-block-accordion-heading__toggle { gap: 18px; padding: 20px 0; }
    .hg-prose .hg-faq .wp-block-accordion-heading__toggle-icon { flex-basis: 38px; width: 38px; height: 38px; }
    .hg-prose .hg-faq .wp-block-accordion-heading__toggle-title { font-size: 13px; letter-spacing: 1.8px; }
    .hg-prose .hg-faq .wp-block-accordion-panel { padding-left: 56px; }
    .hg-prose .hg-faq .wp-block-accordion-item.is-open .wp-block-accordion-panel { padding-bottom: 22px; }
}

/* ---- Fixes after first review ---- */
.hg-prose .hg-sections .wp-block-heading,
.hg-prose .hg-card .wp-block-heading,
.hg-prose .hg-accreditation-text .wp-block-heading {
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
}

.hg-prose .hg-sections > .hg-faq-group + .hg-faq-group { margin-top: 80px !important; }

.hg-prose .hg-sections strong { font-weight: 600; }

.hg-prose .hg-card-big { font-size: 27px; white-space: nowrap; }
.hg-prose .hg-card-big a { white-space: nowrap; }

@media (max-width: 1024px) {
    .hg-prose .hg-card-big { white-space: normal; }
}

/* Marketing Hub login: outline button to match the footer LOG IN */
.hg-prose .hg-center .wp-block-button__link {
    background: transparent !important;
    color: var(--hg-text) !important;
    border: 1px solid var(--hg-text);
    border-radius: 7px;
    min-width: 300px;
    padding: 20px 40px;
    font-size: 15px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    transition: background-color .2s, color .2s;
}

.hg-prose .hg-center .wp-block-button__link:hover {
    background: var(--wp--preset--color--custom-text-gray) !important;
    color: #fff !important;
}


/* Intro outline button with arrow, same as the configurator's Find a Retailer */
.hg-prose .hg-outline-btn { margin-top: 40px !important; justify-content: center; }

.hg-prose .hg-outline-btn .wp-element-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 26px;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 7px;
    color: var(--wp--preset--color--custom-text-gray) !important;
    background-color: transparent !important;
    border: 1px solid var(--wp--preset--color--custom-text-gray);
    text-decoration: none !important;
    transition: background-color .3s, color .3s, border-color .3s;
}

.hg-prose .hg-outline-btn .wp-element-button::after {
    content: "";
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: url("public/svg/dark-arrow-right.svg") center / 20px no-repeat;
}

.hg-prose .hg-outline-btn .wp-element-button:hover {
    color: #fff !important;
    background-color: var(--wp--preset--color--custom-dark-violet) !important;
    border-color: var(--wp--preset--color--custom-dark-violet);
}

.hg-prose .hg-outline-btn .wp-element-button:hover::after {
    background-image: url("public/svg/white-arrow-right.svg");
}

@media (max-width: 781px) {
    .hg-prose .hg-eyebrow { font-size: 20px; letter-spacing: 1.4px; }
    .hg-prose .hg-intro-title { font-size: 32px; }
    .hg-prose .hg-outline-btn { margin-top: 28px !important; }
    .hg-prose .hg-outline-btn .wp-element-button { padding: 12px 16px; font-size: 12px; letter-spacing: .96px; border-radius: 5px; }
    .hg-prose.simple-content-section { padding-top: 48px !important; }
}

/* Reset constrained-layout widths/padding inside our blocks so everything lines up */
.hg-prose .hg-sections > *,
.hg-prose .hg-faq-group > *,
.hg-prose .hg-card > *,
.hg-prose .hg-accreditation-text > * {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
}

.hg-prose .hg-faq-group > .hg-faq { padding: 0; }

/* Tables (e.g. Cookie Policy) */
.hg-prose .wp-block-table { margin: 24px 0 0 !important; overflow-x: auto; }
.hg-prose .wp-block-table table { width: 100%; border-collapse: collapse; background: #fff; }
.hg-prose .wp-block-table thead { border-bottom: 0; }
.hg-prose .wp-block-table th,
.hg-prose .wp-block-table td {
    border: 0;
    border-bottom: 1px solid var(--hg-line);
    padding: 14px 18px;
    text-align: left;
    font-size: 15px;
    line-height: 1.5;
    color: var(--hg-text);
    vertical-align: top;
}
.hg-prose .wp-block-table th {
    background: var(--wp--preset--color--custom-dark-violet);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}
.hg-prose .hg-cookie-table td:last-child { white-space: nowrap; color: var(--hg-gold); }
.hg-prose .wp-block-table td { min-width: 110px; }
