/* Hercules Building homepage — matches Google Sites / Tailwind HTML design */

:root {
    --hb-green: #1e6a3b;
    --hb-green-dark: #18542f;
    --hb-ink: #0b1726;
    --hb-muted: #475569;
    --hb-body: #27313a;
    --hb-page-bg: #f6f7f8;
    --hb-footer: #0e1a12;
}

body {
    font-family: Inter, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}

#wrapwrap.homepage {
    background-color: var(--hb-page-bg);
}

/* Hide Odoo default footer — HTML design uses custom dark footer only */
#wrapwrap.homepage footer#bottom {
    display: none !important;
}

#wrap.hb-home-page {
    background-color: var(--hb-page-bg);
    color: var(--hb-body);
    padding: 0 !important;
    max-width: none !important;
}

.hb-home-page > section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important;
    border: none !important;
}

.hb-home-page .hb-hero-block,
.hb-home-page .hb-cta-block {
    background: transparent !important;
}

.hb-home-page .hb-site-footer {
    background: var(--hb-footer) !important;
}

@media (prefers-reduced-motion: no-preference) {
    .hb-home-page .hb-fade-up {
        opacity: 0;
        transform: translateY(18px);
        animation: hbFadeUp 0.7s ease-out forwards;
    }

    .hb-home-page .hb-delay-1 {
        animation-delay: 0.1s;
    }

    .hb-home-page .hb-delay-2 {
        animation-delay: 0.2s;
    }

    .hb-home-page .hb-delay-3 {
        animation-delay: 0.3s;
    }

    @keyframes hbFadeUp {
        to {
            opacity: 1;
            transform: none;
        }
    }
}

.hb-home-page .hb-section,
.hb-home-page .container.hb-section {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 640px) {
    .hb-home-page .hb-section,
    .hb-home-page .container.hb-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .hb-home-page .hb-section,
    .hb-home-page .container.hb-section {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hb-home-page .hb-section,
    .hb-home-page .container.hb-section {
        padding-left: 3.5rem;
        padding-right: 3.5rem;
    }
}

.hb-home-page .hb-eyebrow {
    letter-spacing: 0.12em;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--hb-green);
    font-size: inherit;
    margin-bottom: 0;
}

.hb-home-page .hb-eyebrow-light {
    color: rgba(255, 255, 255, 0.9);
}

.hb-home-page .hb-eyebrow.d-block {
    display: block;
}

.hb-home-page .hb-h2 {
    font-weight: 800;
    color: var(--hb-ink);
    font-size: clamp(28px, 4.6vw, 44px);
    line-height: 1.15;
}

.hb-home-page .hb-h2-lg {
    font-size: clamp(28px, 4.8vw, 56px);
}

.hb-home-page .hb-h2-cta {
    font-size: clamp(28px, 5.2vw, 58px);
}

.hb-home-page .hb-text-muted {
    color: #4b5563;
}

.hb-home-page .hb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    font-weight: 700;
    padding: 0.95rem 1.35rem;
    white-space: nowrap;
    text-decoration: none;
    transition: 0.2s ease;
}

.hb-home-page .hb-btn-primary {
    background: var(--hb-green);
    color: #fff !important;
    border: none;
}

.hb-home-page .hb-btn-primary:hover {
    background: var(--hb-green-dark);
    color: #fff !important;
}

.hb-home-page .hb-btn-ghost {
    border: 2px solid #fff;
    color: #fff !important;
    background: transparent;
}

.hb-home-page .hb-btn-ghost:hover {
    background: #fff;
    color: var(--hb-green) !important;
}

.hb-home-page .hb-btn-white {
    background: #fff;
    color: var(--hb-green) !important;
}

.hb-home-page .hb-btn-white:hover {
    background: #f3f4f6;
    color: var(--hb-green) !important;
}

.hb-home-page .hb-card {
    box-shadow: 0 10px 30px rgba(10, 20, 30, 0.07);
}

/* —— Hero: full-width image, content + chips in editable max-width columns —— */
.hb-home-page .hb-hero-block.s_cover {
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 !important;
    min-height: 0;
    border-radius: 0;
    background: transparent !important;
}

@media (min-width: 640px) {
    .hb-home-page .hb-hero-block.s_cover {
        margin-bottom: 2.25rem;
    }
}

.hb-home-page .hb-hero-stage {
    position: relative;
    z-index: 2;
    min-height: 68vh;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .hb-home-page .hb-hero-stage {
        min-height: 72vh;
    }
}

@media (min-width: 1024px) {
    .hb-home-page .hb-hero-stage {
        min-height: 76vh;
    }
}

.hb-home-page .hb-hero-content-container {
    position: relative;
    z-index: 3;
    padding-top: calc(env(safe-area-inset-top, 0px) + 2.5vh);
    padding-bottom: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    color: #fff;
}

@media (min-width: 640px) {
    .hb-home-page .hb-hero-content-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .hb-home-page .hb-hero-content-container {
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hb-home-page .hb-hero-content-container {
        padding-left: 3.5rem;
        padding-right: 3.5rem;
    }
}

.hb-home-page .hb-hero-block .oe_img_bg,
.hb-home-page .hb-hero-block .hb-hero-gradient,
.hb-home-page .hb-hero-block .hb-hero-gradient-mobile {
    border-radius: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: 68vh;
    pointer-events: none;
}

@media (min-width: 768px) {
    .hb-home-page .hb-hero-block .oe_img_bg,
    .hb-home-page .hb-hero-block .hb-hero-gradient,
    .hb-home-page .hb-hero-block .hb-hero-gradient-mobile {
        height: 72vh;
    }
}

@media (min-width: 1024px) {
    .hb-home-page .hb-hero-block .oe_img_bg,
    .hb-home-page .hb-hero-block .hb-hero-gradient,
    .hb-home-page .hb-hero-block .hb-hero-gradient-mobile {
        height: 76vh;
    }
}

.hb-home-page .hb-hero-block .oe_img_bg {
    position: absolute;
    background-size: cover !important;
    background-repeat: no-repeat;
    background-position: center center;
}

.hb-home-page .hb-hero-gradient {
    position: absolute;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(24, 84, 47, 0.8) 0%,
        rgba(24, 84, 47, 0.55) 38%,
        rgba(24, 84, 47, 0.3) 62%,
        rgba(24, 84, 47, 0) 88%
    ) !important;
    pointer-events: none;
}

.hb-home-page .hb-hero-gradient-mobile {
    display: block;
    position: absolute;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 40%) !important;
    pointer-events: none;
}

@media (min-width: 768px) {
    .hb-home-page .hb-hero-gradient-mobile {
        display: none;
    }
}

.hb-home-page .hb-hero-headline {
    font-weight: 800;
    line-height: 1.05;
    font-size: clamp(28px, 7vw, 64px);
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 760px;
}

.hb-home-page .hb-hero-content-container .hb-eyebrow-light {
    color: rgba(255, 255, 255, 0.9);
}

.hb-home-page .hb-hero-sub {
    font-size: clamp(16px, 3.8vw, 20px);
    color: rgba(255, 255, 255, 0.95);
}

.hb-home-page .hb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .hb-home-page .hb-hero-actions {
        margin-top: 2rem;
    }
}

/* —— Trust chips: straddle hero bottom — half on image, half on page bg —— */
.hb-home-page .hb-hero-block .hb-trust-wrap {
    position: relative;
    z-index: 10;
    transform: none;
    margin: -1.25rem auto 0;
    width: 100%;
    max-width: 1400px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    pointer-events: auto;
}

@media (min-width: 640px) {
    .hb-home-page .hb-hero-block .hb-trust-wrap {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(50%);
        margin: 0 auto;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .hb-home-page .hb-hero-block .hb-trust-wrap {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hb-home-page .hb-hero-block .hb-trust-wrap {
        padding-left: 3.5rem;
        padding-right: 3.5rem;
    }
}

.hb-home-page .hb-trust-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    max-width: 1100px;
    margin: 0;
}

@media (min-width: 640px) {
    .hb-home-page .hb-trust-flex {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 1rem;
    }
}

.hb-home-page .hb-trust-chip-item {
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 639px) {
    .hb-home-page .hb-trust-chip-item {
        flex: none;
        width: auto;
        min-width: 0;
    }

    .hb-home-page .hb-about-section {
        margin-top: 2.5rem;
        position: relative;
        z-index: 2;
    }
}

.hb-home-page .hb-chip.s_card,
.hb-home-page .hb-chip.card {
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(10, 20, 30, 0.07) !important;
    overflow: hidden;
    margin: 0;
    height: 100%;
}

.hb-home-page .hb-chip .card-body {
    padding: 0.75rem 1rem !important;
}

.hb-home-page .hb-chip-text {
    display: block;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--hb-body);
}

.hb-home-page .hb-chip-label,
.hb-home-page .hb-chip strong,
.hb-home-page .hb-chip .text-o-color-1 {
    color: var(--hb-green) !important;
    font-weight: 600;
}

/* —— About (HTML mt-12 / mt-16) —— */
.hb-home-page .hb-about-section {
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .hb-home-page .hb-about-section {
        margin-top: 4rem;
    }
}
.hb-home-page .hb-gap-about {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
}

@media (min-width: 1024px) {
    .hb-home-page .hb-gap-about {
        --bs-gutter-x: 3rem;
        --bs-gutter-y: 3rem;
    }
}

.hb-home-page .hb-services-head {
    margin-bottom: 2.5rem;
}

.hb-home-page .hb-gap-services {
    --bs-gutter-x: 1.75rem;
    --bs-gutter-y: 1.75rem;
}

.hb-home-page .hb-gap-split {
    --bs-gutter-x: 2.5rem;
    --bs-gutter-y: 2.5rem;
}

.hb-home-page .hb-featured-head {
    margin-bottom: 2.5rem;
}

.hb-home-page .hb-gap-featured {
    --bs-gutter-x: 1.75rem;
    --bs-gutter-y: 1.75rem;
}

.hb-home-page .hb-about-grid img {
    border-radius: 1.5rem;
    object-fit: cover;
    width: 100%;
    height: 14rem;
}

@media (min-width: 768px) {
    .hb-home-page .hb-about-grid img {
        height: 16rem;
    }
}

@media (min-width: 1024px) {
    .hb-home-page .hb-about-grid img {
        height: 18rem;
    }
}

/* —— Services —— */
.hb-home-page .hb-services-section {
    margin-top: 3.5rem;
}

@media (min-width: 768px) {
    .hb-home-page .hb-services-section {
        margin-top: 5rem;
    }
}

.hb-home-page .hb-service-card {
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 100%;
}

.hb-home-page .hb-service-card-img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .hb-home-page .hb-service-card-img {
        height: 16rem;
    }
}

.hb-home-page .hb-service-card-body {
    padding: 1.5rem 1.75rem;
}

@media (min-width: 768px) {
    .hb-home-page .hb-service-card-body {
        padding: 1.75rem;
    }
}

.hb-home-page .hb-service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--hb-ink);
}

.hb-home-page .hb-service-card .btn-primary,
.hb-home-page .hb-service-btn {
    background: var(--hb-green) !important;
    border-color: var(--hb-green) !important;
    border-radius: 9999px !important;
    font-weight: 700;
    padding: 0.95rem 1.35rem;
    border: none;
}

.hb-home-page .hb-service-card .btn-primary:hover,
.hb-home-page .hb-service-btn:hover {
    background: var(--hb-green-dark) !important;
    border-color: var(--hb-green-dark) !important;
}

/* —— Interiors / Outdoor —— */
.hb-home-page .hb-split-section {
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .hb-home-page .hb-split-section {
        margin-top: 5rem;
    }
}

.hb-home-page .hb-split-img-wrap {
    border-radius: 1.5rem;
    overflow: hidden;
}

.hb-home-page .hb-split-img-wrap img {
    width: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

/* —— Featured —— */
.hb-home-page .hb-featured-section {
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .hb-home-page .hb-featured-section {
        margin-top: 5rem;
    }
}

.hb-home-page .hb-featured-grid img {
    border-radius: 1.5rem;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .hb-home-page .hb-featured-grid img {
        height: 360px;
    }
}

/* —— CTA: s_cover matching HTML max-width + rounded corners —— */
.hb-home-page .hb-cta-block.s_cover {
    position: relative;
    overflow: hidden;
    width: calc(100% - 1rem);
    max-width: 1400px;
    margin: 4rem auto 0;
    padding: 0 !important;
    min-height: 280px;
    border-radius: 1.5rem;
    background: transparent !important;
}

@media (min-width: 768px) {
    .hb-home-page .hb-cta-block.s_cover {
        width: calc(100% - 2rem);
        margin-top: 5rem;
        border-radius: 28px;
    }
}

.hb-home-page .hb-cta-block .oe_img_bg {
    position: absolute;
    inset: 0;
    background-size: cover !important;
}

.hb-home-page .hb-cta-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(24, 84, 47, 0.86) !important;
    pointer-events: none;
}

.hb-home-page .hb-cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 3rem 1.25rem;
    max-width: 1400px;
}

@media (min-width: 768px) {
    .hb-home-page .hb-cta-inner {
        padding: 4rem 2.5rem;
    }
}

.hb-home-page .hb-cta-inner .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hb-home-page .hb-cta-inner .lead {
        font-size: 1.25rem;
    }
}

.hb-home-page .hb-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* —— Footer —— */
.hb-home-page .hb-site-footer {
    margin-top: 4rem;
    background: var(--hb-footer);
    color: #fff;
    margin-bottom: 0 !important;
}

.hb-home-page .hb-site-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.hb-home-page .hb-site-footer a:hover {
    text-decoration: underline;
}

.hb-home-page .hb-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.hb-home-page .hb-footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .hb-home-page .hb-footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Full bleed: no side gaps on homepage main */
#wrapwrap.homepage main {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Odoo editor: editable areas visible, animations off while editing */
.editor_enable .hb-home-page .hb-fade-up {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.editor_enable .hb-home-page .hb-hero-block .oe_img_bg {
    cursor: pointer;
    pointer-events: auto;
}

.editor_enable .hb-home-page .hb-hero-content-container .s_allow_columns,
.editor_enable .hb-home-page .hb-hero-actions,
.editor_enable .hb-home-page .hb-hero-actions * {
    pointer-events: auto;
}

.hb-home-page .hb-service-card-body .card-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Global Hercules footer — auto-applied on new website pages */
.hb-site-footer {
    margin-top: 4rem;
    background: var(--hb-footer, #0e1a12);
    color: #fff;
    margin-bottom: 0 !important;
}

.hb-site-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.hb-site-footer a:hover {
    text-decoration: underline;
}

.hb-site-footer .hb-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.hb-site-footer .hb-footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .hb-site-footer .hb-footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
