/* Hercules Building — Design & Construct page */

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

#wrapwrap:has(.hb-design-construct-page) {
    background-color: var(--hb-page-bg);
    overflow-x: clip;
}

#wrapwrap:has(.hb-design-construct-page) footer#bottom {
    display: none !important;
}

#wrapwrap:has(.hb-design-construct-page) main {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

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

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

.hb-design-construct-page .container.hb-dc-section,
.hb-design-construct-page .hb-dc-section.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

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

@media (min-width: 1024px) {
    .hb-design-construct-page .container.hb-dc-section,
    .hb-design-construct-page .hb-dc-section.container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* Typography */
.hb-design-construct-page .hb-dc-eyebrow {
    letter-spacing: 0.12em;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.hb-design-construct-page .hb-dc-title {
    font-weight: 800;
    line-height: 1.1;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    color: var(--hb-ink);
}

.hb-design-construct-page .hb-dc-h3 {
    font-weight: 800;
    line-height: 1.15;
    font-size: clamp(1.5rem, 2.8vw, 1.875rem);
    color: var(--hb-ink);
}

.hb-design-construct-page .hb-dc-lead {
    font-size: clamp(1rem, 2.4vw, 1.125rem);
    line-height: 1.55;
    max-width: 42rem;
}

.hb-design-construct-page .hb-dc-lead-lg {
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.65;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.hb-design-construct-page .hb-dc-lead-light {
    color: rgba(255, 255, 255, 0.9);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hb-design-construct-page .hb-dc-muted {
    color: var(--hb-muted);
}

.hb-design-construct-page .hb-dc-accent {
    color: var(--hb-green);
}

.hb-design-construct-page .hb-dc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #374151;
}

.hb-design-construct-page .hb-dc-list li {
    margin-bottom: 0.75rem;
}

.hb-design-construct-page .hb-dc-bullet-list {
    color: #374151;
    padding-left: 1.25rem;
}

.hb-design-construct-page .hb-dc-bullet-list li {
    margin-bottom: 0.35rem;
}

/* Buttons */
.hb-design-construct-page .hb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 0.9rem 1.25rem;
    text-decoration: none;
    transition: transform 0.16s ease, background-color 0.16s ease;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.06), 0 6px 20px rgba(2, 54, 20, 0.08);
}

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

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

.hb-design-construct-page .hb-btn-outline {
    background: #fff;
    color: var(--hb-green) !important;
    border: 2px solid var(--hb-green);
}

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

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

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

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

.hb-design-construct-page .hb-dc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 28rem;
}

.hb-design-construct-page .hb-dc-actions.justify-content-center {
    justify-content: center;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 639px) {
    .hb-design-construct-page .hb-dc-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: none;
    }

    .hb-design-construct-page .hb-dc-actions .hb-btn {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}

/* Hero */
.hb-design-construct-page .hb-dc-hero-section {
    padding-top: 1.5rem !important;
    padding-bottom: 1rem !important;
}

.hb-design-construct-page .hb-dc-hero-wrap {
    position: relative;
    isolation: isolate;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 20, 30, 0.07);
    min-height: 460px;
}

@media (min-width: 640px) {
    .hb-design-construct-page .hb-dc-hero-wrap {
        min-height: 520px;
        border-radius: 1.25rem;
    }
}

@media (min-width: 768px) {
    .hb-design-construct-page .hb-dc-hero-wrap {
        min-height: 560px;
    }
}

@media (min-width: 1024px) {
    .hb-design-construct-page .hb-dc-hero-wrap {
        min-height: 620px;
        border-radius: 1.5rem;
    }
}

.hb-design-construct-page .hb-dc-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hb-design-construct-page .hb-dc-hero-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
    z-index: 1;
}

@media (min-width: 768px) {
    .hb-design-construct-page .hb-dc-hero-shade {
        background: rgba(0, 0, 0, 0.4);
    }
}

.hb-design-construct-page .hb-dc-hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    color: #fff;
}

@media (min-width: 640px) {
    .hb-design-construct-page .hb-dc-hero-content {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) {
    .hb-design-construct-page .hb-dc-hero-content {
        justify-content: center;
        padding: 2.5rem;
    }
}

.hb-design-construct-page .hb-dc-trust-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .hb-design-construct-page .hb-dc-trust-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .hb-design-construct-page .hb-dc-trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hb-design-construct-page .hb-dc-chip {
    border-radius: 18px !important;
    background: #fff !important;
    font-size: 0.875rem;
    color: #1f2937;
}

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

/* Intro */
.hb-design-construct-page .hb-dc-intro-section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

.hb-design-construct-page .hb-dc-intro-inner {
    text-align: center;
}

/* Split */
.hb-design-construct-page .hb-dc-split-section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

.hb-design-construct-page .hb-dc-split-img {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 20, 30, 0.07);
}

.hb-design-construct-page .hb-dc-split-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

@media (min-width: 640px) {
    .hb-design-construct-page .hb-dc-split-photo {
        height: 340px;
    }
}

@media (min-width: 768px) {
    .hb-design-construct-page .hb-dc-split-photo {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .hb-design-construct-page .hb-dc-split-photo {
        height: 440px;
    }
}

/* Process */
.hb-design-construct-page .hb-dc-process-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    background: #f3f4f6 !important;
}

.hb-design-construct-page .hb-dc-process-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .hb-design-construct-page .hb-dc-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hb-design-construct-page .hb-dc-process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hb-design-construct-page .hb-dc-process-card {
    border-radius: 1rem !important;
}

.hb-design-construct-page .hb-dc-step-label {
    color: var(--hb-green);
    font-weight: 700;
    font-size: 0.875rem;
}

.hb-design-construct-page .hb-dc-process-card .card-body {
    padding: 1.5rem !important;
}

/* Inclusions */
.hb-design-construct-page .hb-dc-inclusions-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    background: #fff !important;
}

/* Banner image */
.hb-design-construct-page .hb-dc-banner-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.hb-design-construct-page .hb-dc-banner-img {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 20, 30, 0.07);
}

.hb-design-construct-page .hb-dc-banner-photo {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

@media (min-width: 640px) {
    .hb-design-construct-page .hb-dc-banner-photo {
        height: 320px;
    }
}

@media (min-width: 768px) {
    .hb-design-construct-page .hb-dc-banner-photo {
        height: 380px;
    }
}

@media (min-width: 1024px) {
    .hb-design-construct-page .hb-dc-banner-photo {
        height: 420px;
    }
}

/* Case studies */
.hb-design-construct-page .hb-dc-cases-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    background: #f3f4f6 !important;
}

.hb-design-construct-page .hb-dc-cases-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .hb-design-construct-page .hb-dc-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hb-design-construct-page .hb-dc-cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hb-design-construct-page .hb-dc-case-card {
    border-radius: 1rem !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 20, 30, 0.07);
    background: #fff !important;
}

.hb-design-construct-page .hb-dc-case-img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    display: block;
}

@media (min-width: 640px) {
    .hb-design-construct-page .hb-dc-case-img {
        height: 16rem;
    }
}

.hb-design-construct-page .hb-dc-case-card .card-body {
    padding: 1.25rem !important;
}

@media (max-width: 639px) {
    .hb-design-construct-page .hb-dc-cases-grid {
        grid-template-columns: 1fr;
    }

    .hb-design-construct-page .hb-dc-case-img {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .hb-design-construct-page .hb-dc-case-card .hb-btn {
        width: 100%;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .hb-design-construct-page .hb-dc-case-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}

/* CTA */
.hb-design-construct-page .hb-dc-cta-section {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
    background: linear-gradient(135deg, #1e6a3b 0%, #18542f 100%) !important;
}

.hb-design-construct-page .hb-dc-cta-inner {
    text-align: center;
    color: #fff;
}

/* Footer */
.hb-design-construct-page .hb-site-footer {
    background: var(--hb-footer) !important;
    color: #fff;
}

.hb-design-construct-page .hb-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
}

.hb-design-construct-page .hb-site-footer a {
    color: #c7ead4;
    text-decoration: none;
}

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

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

/* Odoo editor — same layout, clickable images */
.editor_enable .hb-design-construct-page .hb-dc-hero-shade {
    pointer-events: none;
}

.editor_enable .hb-design-construct-page .hb-dc-hero-content {
    pointer-events: none;
}

.editor_enable .hb-design-construct-page .hb-dc-hero-content .s_allow_columns,
.editor_enable .hb-design-construct-page .hb-dc-hero-content .hb-dc-actions,
.editor_enable .hb-design-construct-page .hb-dc-hero-content .hb-dc-actions * {
    pointer-events: auto;
}

.editor_enable .hb-design-construct-page .hb-dc-hero-img,
.editor_enable .hb-design-construct-page .o_we_custom_image {
    cursor: pointer;
    pointer-events: auto;
}
