/* HappyGREEN: softer surfaces, clear actions, and a deliberate quantity step. */
body.hg-platform {
    --hg-green: #146447;
    --hg-button: #146447;
    --hg-action: #146447;
    --hg-action-hover: #0c4938;
    --hg-action-active: #08372b;
    --hg-action-focus: #146447;
    --hg-line: #dce9df;
}
body.hg-platform #page :is(.hg-button, .hg-purchase-table-download, .hg-nav-table,
    a.button, button.button, input.button, input[type="submit"], input[type="button"],
    button[type="submit"], .elementor-button, .wp-block-button__link, .ur-submit-button,
    .user-registration-Button, .ur-button-container button, .ff-btn-submit,
    .hg-mobile-menu > summary, .villa-details, .added_to_cart) {
    border-radius: 14px !important;
    font-weight: 600;
}
body.hg-platform #page :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
body.hg-platform #user-registration input:not([type="checkbox"]):not([type="radio"]) {
    border-radius: 12px;
}
body.hg-platform .hg-search-row {
    background: linear-gradient(110deg, #edf7ef, #f5f9ef 60%, #e9f4f1);
    border-color: #dce9df;
}
body.hg-platform .hg-search-row form { max-width: 710px; }
body.hg-platform #page .hg-search-row input[type="search"] {
    border-radius: 999px 0 0 999px;
    height: 48px;
    padding-left: 20px;
    border-color: #b6cebd;
}
body.hg-platform #page .hg-search-row button {
    border-radius: 0 999px 999px 0 !important;
    height: 48px;
    padding-inline: 22px;
}
body.hg-platform .hg-search-row > div > a {
    color: #164d3b;
    font-weight: 600;
}
body.hg-platform .hg-network { background: #f0f7f1; }
body.hg-platform.woocommerce #content {
    background: radial-gradient(ellipse at 95% 0%, #edf7ee 0, transparent 42%),
        linear-gradient(180deg, #fafcf9, #f1f7f3);
}
body.hg-platform.woocommerce ul.products { gap: 24px; padding-top: 10px; }
body.hg-platform.woocommerce ul.products li.product {
    border: 1px solid #dce9df;
    border-radius: 24px;
    padding: 20px !important;
    background: linear-gradient(180deg, #fff 65%, #f6faf7);
    box-shadow: 0 8px 24px #184c3510;
    transition: border-color .18s ease, box-shadow .18s ease;
    overflow: visible;
}
body.hg-platform.woocommerce ul.products li.product:hover {
    border-color: #99c5a9;
    box-shadow: 0 12px 30px #184c351c;
}
body.hg-platform.woocommerce ul.products li.product .item-img {
    order: 1;
    margin-bottom: 16px;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}
body.hg-platform.woocommerce ul.products li.product .item-img a img { margin: 0; height: 175px; }
body.hg-platform.woocommerce ul.products li.product .block-item-title { order: 2; margin: 0 0 14px; }
body.hg-platform.woocommerce ul.products li.product .block-item-title h3 { margin: 0; }
body.hg-platform.woocommerce ul.products li.product .block-item-title a {
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    color: #243e32;
    font-weight: 600;
    line-height: 1.4;
    min-height: 2.8em;
}
body.hg-platform.woocommerce ul.products li.product .product-price-wrap {
    order: 3;
    border: 0;
    border-radius: 12px;
    background: #eaf5ed;
    padding: 6px 12px;
    margin: 0 0 14px;
    color: #164d3b;
}
body.hg-platform.woocommerce ul.products li.product .price { color: #164d3b; font-size: 15px; line-height: 1.5; margin: 0; }
body.hg-platform.woocommerce ul.products li.product .price .amount { font-size: 19px; font-weight: 700; }
body.hg-platform.woocommerce ul.products li.product .product-button-wrap { order: 4; margin: auto 0 0; padding-top: 0; }
body.hg-platform.woocommerce ul.products li.product .add-to-links { order: 5; }
body.hg-platform.woocommerce ul.products li.product .add-to-links:empty { display: none; }
body.hg-platform #page .product-button-wrap :is(a.button, a.villa-details, a.added_to_cart) {
    float: none;
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 12px 10px;
    position: static;
    text-align: center;
    font: 600 14px/1.4 Arial, Helvetica, sans-serif;
    text-transform: none;
    text-decoration: none;
    transition: box-shadow .15s ease, border-color .15s ease;
}
body.hg-platform #page .product-button-wrap :is(a.button, a.added_to_cart)::before,
body.hg-platform #page .product-button-wrap a.hg-quantity-trigger::after { display: none; }
body.hg-platform #page .product-button-wrap a.added_to_cart {
    background: #e6f3eb !important;
    color: #164d3b !important;
    border: 1px solid #85b79a !important;
    text-shadow: none;
}
body.hg-platform #page .product-button-wrap a.added_to_cart:is(:hover, :focus-visible, :active) {
    background: #0c4938 !important;
    color: #fff !important;
    border-color: #0c4938 !important;
}
body.hg-platform .hg-cart-feedback {
    color: #17573d;
    background: #edf8f0;
    border-radius: 10px;
    padding: 9px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}
body.hg-platform :is(.hg-home-hero, .hg-table-panel, .hg-network-panel, .hg-interior-banner) {
    border-radius: 28px;
    background: linear-gradient(120deg, #eaf5e9, #f1f7e7 55%, #e0f1e9) !important;
}
body.hg-platform :is(.hg-home-hero figure, .hg-slides, .hg-article-grid img) { border-radius: 20px; }
body.hg-platform :is(.woocommerce form.login, .woocommerce form.register, #user-registration,
    .ur-frontend-form, .woocommerce-MyAccount-content, .woocommerce table.shop_table,
    .woocommerce-message, .woocommerce-info, .woocommerce-error) { border-radius: 18px; }
body.hg-platform .woocommerce-MyAccount-navigation a { border-radius: 12px; margin-bottom: 6px; }
body.hg-platform #colophon {
    background: radial-gradient(ellipse at 90% 100%, #d3e9c1, transparent 60%),
        linear-gradient(115deg, #e7f4eb, #edf4de 60%, #dcefe8);
    border-top: 1px solid #c8ddca;
    border-radius: 32px 32px 0 0;
    padding-top: 44px;
}
/* Native modal provides focus containment and Escape without a dependency. */
body.hg-platform .hg-quantity-dialog {
    width: min(440px, calc(100% - 32px));
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 32px;
    border: 1px solid #d2e5d9;
    border-radius: 26px;
    background: linear-gradient(155deg, #fff 55%, #edf7ed);
    color: #243e32;
    box-shadow: 0 24px 80px #072c3940;
    font: 16px/1.5 Arial, Helvetica, sans-serif;
    overflow-y: auto;
}
.hg-quantity-dialog::backdrop { background: #12362970; backdrop-filter: blur(4px); }
body.hg-platform .hg-quantity-dialog[open] { display: block; }
body.hg-platform .hg-quantity-dialog .hg-quantity-eyebrow { color: #146447; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 10px; }
body.hg-platform .hg-quantity-dialog h2 { font-size: 27px; line-height: 1.15; margin: 0 24px 10px 0; }
#hg-quantity-product { color: #53675b; margin: 0 0 24px; overflow-wrap: anywhere; }
#hg-quantity-form { margin: 0; }
#hg-quantity-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.hg-quantity-dialog button { cursor: pointer; font-family: inherit; text-shadow: none; box-shadow: none; }
body.hg-platform .hg-quantity-dialog .hg-quantity-close {
    position: absolute; right: 14px; top: 14px; width: 36px; height: 36px;
    border: 0; border-radius: 50%; padding: 0; background: #e8f2e9; color: #164d3b; font-size: 26px; line-height: 1;
}
.hg-quantity-stepper { display: grid; grid-template-columns: 50px minmax(0, 1fr) 50px; gap: 10px; }
body.hg-platform .hg-quantity-stepper button { height: 52px; border: 1px solid #9dbda9; border-radius: 14px; background: #e9f5ed; color: #164d3b; font-size: 25px; padding: 0; }
body.hg-platform #hg-quantity-value { width: 100%; height: 52px; min-width: 0; margin: 0; border: 1px solid #9dbda9; border-radius: 14px; background: #fff; color: #243e32; font: 600 23px Arial, sans-serif; text-align: center; padding: 8px; appearance: textfield; }
#hg-quantity-value::-webkit-inner-spin-button, #hg-quantity-value::-webkit-outer-spin-button { appearance: none; margin: 0; }
.hg-quantity-help { color: #596d60; font-size: 13px; margin: 12px 0 22px; }
body.hg-platform .hg-quantity-dialog .hg-quantity-confirm { display: block; width: 100%; padding: 15px 12px; border: 1px solid #146447; border-radius: 14px; background: #146447; color: #fff; font-size: 15px; font-weight: 600; }
body.hg-platform .hg-quantity-dialog .hg-quantity-cancel { display: block; margin: 12px auto 0; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: #164d3b; font-size: 14px; }
body.hg-platform .hg-quantity-dialog button:is(:hover, :focus-visible):not(:disabled) { background: #0c4938; color: #fff; }
body.hg-platform .hg-quantity-dialog :is(button, input, a):focus-visible { outline: 3px solid #146447; outline-offset: 3px; }
body.hg-platform .hg-quantity-dialog button:disabled { background: #e0e8e2; color: #4c6052; border-color: #b9cbbd; cursor: not-allowed; opacity: 1; }
.hg-quantity-error { background: #fff1e9; color: #843a18; border: 1px solid #e9b493; border-radius: 12px; padding: 12px; font-size: 14px; }
.hg-quantity-review { color: #164d3b; display: block; margin-bottom: 16px; text-decoration: underline; }
.hg-quantity-dialog [hidden] { display: none !important; }
@media (max-width: 780px) {
    body.hg-platform.woocommerce ul.products { gap: 14px; }
    body.hg-platform.woocommerce ul.products li.product { border-radius: 20px; padding: 14px !important; }
    body.hg-platform.woocommerce ul.products li.product .item-img { padding: 4px; }
    body.hg-platform.woocommerce ul.products li.product .item-img a img { height: 140px; }
    body.hg-platform #page .hg-search-row button { padding-inline: 16px; }
}
@media (max-width: 480px) {
    body.hg-platform.woocommerce ul.products { grid-template-columns: 1fr; }
    body.hg-platform.woocommerce ul.products li.product { padding: 20px !important; }
    body.hg-platform.woocommerce ul.products li.product .item-img a img { height: 185px; }
    body.hg-platform.woocommerce ul.products li.product .block-item-title a { min-height: 0; }
    body.hg-platform .hg-quantity-dialog { padding: 28px 22px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    body.hg-platform.woocommerce ul.products li.product { transition: none; }
}

/* Three steps: distinct colours and one gentle entrance as each card comes into view. */
body.hg-platform .hg-process-grid { gap: 24px; margin-top: 32px; }
body.hg-platform .hg-process-grid .hg-step-card {
    --step-accent: #146447;
    --step-wash: #e5f4e9;
    --step-glow: #d7efd9;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px;
    border: 1px solid #dbe8de;
    border-radius: 26px;
    background: radial-gradient(circle at 100% 0, var(--step-glow), transparent 48%),
        linear-gradient(150deg, #fff 35%, var(--step-wash));
    box-shadow: 0 8px 24px #164b3510;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body.hg-platform .hg-process-grid .hg-step-card:nth-child(2) {
    --step-accent: #596a25;
    --step-wash: #f2f5df;
    --step-glow: #e6efc5;
    --step-delay: 100ms;
}
body.hg-platform .hg-process-grid .hg-step-card:nth-child(3) {
    --step-accent: #17665e;
    --step-wash: #e7f4f1;
    --step-glow: #d1eae5;
    --step-delay: 200ms;
}
.hg-step-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.hg-step-number {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 20px;
    background: var(--step-accent);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 7px #ffffff9c, 0 7px 14px #174e3215;
    transition: border-radius .25s ease, transform .25s ease;
}
.hg-step-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffffb8;
    border: 1px solid #ffffff;
    color: var(--step-accent);
    transition: transform .3s ease;
}
.hg-step-icon svg { display: block; width: 34px; height: 34px; }
body.hg-platform .hg-process-grid .hg-step-card h3 { font-size: 24px; line-height: 1.25; margin: 0 0 14px; color: #253f32; }
body.hg-platform .hg-process-grid .hg-step-card p { color: #4c6053; font-size: 15px; line-height: 1.7; margin: 0 0 24px; }
body.hg-platform .hg-process-grid .hg-step-card > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #bfd1c2;
    color: var(--step-accent);
    font-weight: 700;
    text-decoration: none;
}
.hg-step-arrow { display: inline-block; font-size: 23px; line-height: 1; transition: transform .25s ease; }
body.hg-platform .hg-process-grid .hg-step-card > a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    body.hg-platform .hg-process-grid .hg-step-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 32px #164b351c;
        border-color: #9cbc9e;
    }
    .hg-step-card:hover .hg-step-number { border-radius: 50%; transform: rotate(-5deg); }
    .hg-step-card:hover .hg-step-icon { transform: translateY(-3px) rotate(5deg); }
    .hg-step-card:hover .hg-step-arrow { transform: translateX(4px); }
}
body.hg-platform .hg-process-grid .hg-step-card:focus-within { border-color: var(--step-accent); box-shadow: 0 12px 28px #164b351c; }
@media (prefers-reduced-motion: no-preference) {
    .hg-step-card.hg-step-visible { animation: hg-step-arrive .65s cubic-bezier(.2,.7,.3,1) var(--step-delay, 0ms) backwards; }
    .hg-step-card.hg-step-visible .hg-step-icon { animation: hg-step-icon-arrive .85s ease var(--step-delay, 0ms) backwards; }
}
@keyframes hg-step-arrive { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hg-step-icon-arrive { from { transform: scale(.85) rotate(-8deg); } to { transform: scale(1) rotate(0); } }
@media (max-width: 1000px) and (min-width: 781px) {
    body.hg-platform .hg-process-grid { gap: 16px; }
    body.hg-platform .hg-process-grid .hg-step-card { padding: 22px; }
    body.hg-platform .hg-process-grid .hg-step-card h3 { font-size: 22px; }
}
@media (max-width: 780px) {
    body.hg-platform .hg-process-grid { gap: 20px; }
    body.hg-platform .hg-process-grid .hg-step-card { padding: 26px; }
    .hg-step-head { margin-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    body.hg-platform .hg-process-grid :is(.hg-step-card, .hg-step-number, .hg-step-icon, .hg-step-arrow) {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
