/* ==================================================
DREAM BUILDERS DESIGN SYSTEM
Shared styles for service and project pages
================================================== */


/* ==================================================
1. GLOBAL BASE
================================================== */

html {
    scroll-behavior: smooth;
}

body {
    color: #4f5f59;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.75;
}

img {
    max-width: 100%;
    height: auto;
}

section[id] {
    scroll-margin-top: 170px;
}

a {
    transition: color .3s ease;
}


/* ==================================================
2. HEADINGS AND TYPOGRAPHY
================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #0e211c;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.section-eyebrow {
    position: relative;
    display: inline-block;
    color: #d6ab59;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .20em;
    line-height: 1.4;
    text-transform: uppercase;
    margin-bottom: 35px;
}

.section-eyebrow::after {
    content: "";
    display: block;
    width: 110px;
    height: 3px;
    background: #d6ab59;
    margin-top: 12px;
}

.text-center .section-eyebrow::after {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    color: #0e211c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.12;
    margin-bottom: 25px;
}

.section-lead {
    color: #4f5f59;
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.text-center .section-lead {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}


/* ==================================================
3. STANDARD SECTIONS
================================================== */

.db-section {
    padding: 100px 0;
}

.db-section-white {
    background: #ffffff;
}

.db-section-cream {
    background: #f8f6f1;
}

.db-section-dark {
    background: #0e211c;
}

.db-section-dark .section-title {
    color: #ffffff;
}

.db-section-dark .section-lead,
.db-section-dark p {
    color: rgba(255,255,255,.82);
}


/* ==================================================
4. BUTTONS
================================================== */

.db-btn {
    display: inline-block;
    border: 2px solid transparent;
    padding: 16px 34px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .10em;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background .3s ease,
        border-color .3s ease,
        color .3s ease,
        transform .3s ease;
}

.db-btn:hover {
    text-decoration: none;
    transform: translateY(-3px);
}

.db-btn-gold {
    background: #b88a3b;
    border-color: #b88a3b;
    color: #ffffff;
}

.db-btn-gold:hover {
    background: #a67b31;
    border-color: #a67b31;
    color: #ffffff;
}

.db-btn-outline {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.db-btn-outline:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #0e211c;
}

.db-btn-glass {
    background: rgba(255,255,255,.25);
    border-color: rgba(255,255,255,.60);
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.db-btn-glass:hover {
    background: rgba(255,255,255,.42);
    border-color: #ffffff;
    color: #ffffff;
}

.db-btn-dark-outline {
    background: transparent;
    border-color: #0e211c;
    color: #0e211c;
}

.db-btn-dark-outline:hover {
    background: #0e211c;
    border-color: #0e211c;
    color: #ffffff;
}

.hero-buttons,
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}


/* ==================================================
5. STANDARD CARDS
================================================== */


.db-card {
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(14,33,28,.10);
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.db-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(0,0,0,.16);
    border-color: #b88a3b;
}

.db-card-cream {
    background: #f8f6f1;
}

.db-card-dark {
    background: #0e211c;
    border-color: rgba(255,255,255,.12);
    color: #ffffff;
}

.db-card-dark h3 {
    color: #d6ab59;
}

.db-card-dark p {
    color: rgba(255,255,255,.82);
}

.db-card-content {
    padding: 32px;
}


/* ==================================================
6. HOVER CARDS
================================================== */

.db-hover-card {
    height: 100%;
    background: #f8f6f1;
    border: 1px solid rgba(14,33,28,.10);
    padding: 40px 35px;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.db-hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
    border-color: #b88a3b;
}

.db-hover-card h3 {
    color: #0e211c;
    font-size: 1.45rem;
    margin-bottom: 18px;
}

.db-hover-card p {
    color: #5f6d68;
    line-height: 1.8;
    margin-bottom: 0;
}


/* ==================================================
7. IMAGE TREATMENTS
================================================== */

.db-image {
    display: block;
    width: 100%;
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

.db-image-cover {
    display: block;
    width: 100%;
    height: 550px;
    object-fit: cover;
}

.db-image-contain {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.db-image-hover {
    overflow: hidden;
}

.db-image-hover img {
    transition: transform .45s ease;
}

.db-image-hover:hover img {
    transform: scale(1.05);
}


/* ==================================================
8. BENEFIT LISTS
================================================== */

.db-benefit-list {
    margin-top: 35px;
}

.db-benefit-item {
    padding: 12px 0;
    color: #0e211c;
    font-weight: 700;
    border-bottom: 1px solid rgba(14,33,28,.10);
}

.db-benefit-item:last-child {
    border-bottom: none;
}


/* ==================================================
9. FEATURE BOXES
================================================== */

.db-feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.db-feature-box {
    width: calc(33.333% - 10px);
    background: #f8f6f1;
    border: 1px solid rgba(14,33,28,.10);
    padding: 22px 18px;
    color: #0e211c;
    font-weight: 700;
    text-align: center;
    transition:
        background .3s ease,
        border-color .3s ease,
        color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.db-feature-box:hover {
    background: #0e211c;
    border-color: #b88a3b;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

.db-feature-box i {
    display: block;
    color: #b88a3b;
    font-size: 1.7rem;
    margin-bottom: 14px;
}

.db-feature-box:hover i {
    color: #d6ab59;
}


/* ==================================================
10. ICON CIRCLES
================================================== */

.db-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #0e211c;
    color: #b88a3b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
}


/* ==================================================
11. CALLOUT BOXES
================================================== */

.db-callout {
    background: #ffffff;
    border-left: 4px solid #b88a3b;
    padding: 20px 22px;
    color: #4f5f59;
    line-height: 1.7;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}

.db-callout-dark {
    background: #0e211c;
    border-left: 4px solid #d6ab59;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(0,0,0,.16);
}

.db-callout-dark h3 {
    color: #d6ab59;
}

.db-callout-dark p {
    color: rgba(255,255,255,.82);
}


/* ==================================================
12. CONTENT COLUMNS
================================================== */

.db-two-column {
    display: flex;
    align-items: center;
    gap: 55px;
}

.db-two-column > div {
    width: 50%;
}

.db-three-column {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.db-three-column > div {
    width: calc(33.333% - 20px);
}

.db-four-column {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.db-four-column > div {
    width: calc(25% - 23px);
}


/* ==================================================
13. PROJECT OR SERVICE CARD IMAGE
================================================== */

.db-project-card {
    display: block;
    height: 100%;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.db-project-card:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(0,0,0,.15);
}

.db-project-card-image {
    overflow: hidden;
}

.db-project-card-image img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform .45s ease;
}

.db-project-card:hover .db-project-card-image img {
    transform: scale(1.05);
}

.db-project-card-content {
    padding: 28px;
}

.db-project-card-category {
    display: block;
    color: #b88a3b;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.db-project-card h3 {
    color: #0e211c;
    margin-bottom: 12px;
}

.db-project-card p {
    color: #5f6d68;
    line-height: 1.75;
    margin-bottom: 0;
}


/* ==================================================
14. PROCESS STEPS
================================================== */

.db-process-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 60px;
}

.db-process-step {
    width: calc(25% - 23px);
    background: #ffffff;
    border: 1px solid rgba(14,33,28,.08);
    padding: 40px 30px;
    text-align: center;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.db-process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
    border-color: #b88a3b;
}

.db-process-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #0e211c;
    color: #b88a3b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto 25px;
}

.db-process-step h3 {
    color: #0e211c;
    font-size: 1.45rem;
    margin-bottom: 18px;
}

.db-process-step p {
    color: #5f6d68;
    line-height: 1.8;
    margin-bottom: 0;
}


/* ==================================================
15. FAQ ACCORDION
================================================== */

.db-faq {
    max-width: 900px;
    margin: 60px auto 0;
}

.db-faq-item {
    background: #ffffff;
    border: 1px solid rgba(14,33,28,.08);
    margin-bottom: 18px;
    overflow: hidden;
}

.db-faq-question {
    width: 100%;
    border: none;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 30px;
    color: #0e211c;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background .3s ease;
}

.db-faq-question:hover {
    background: #fdfbf6;
}

.db-faq-question span,
.db-faq-question i {
    color: #b88a3b;
    font-size: 1.5rem;
    transition: transform .3s ease;
}

.db-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.db-faq-answer p {
    padding: 0 30px 30px;
    margin: 0;
    color: #5f6d68;
    line-height: 1.8;
}

.db-faq-item.active .db-faq-answer {
    max-height: 400px;
}

.db-faq-item.active .db-faq-question span {
    transform: rotate(45deg);
}

.db-faq-item.active .db-faq-question i {
    transform: rotate(180deg);
}


/* ==================================================
16. FINAL CTA
================================================== */

.final-cta-section {
    background: #0e211c;
    padding: 110px 0;
}

.final-cta-section .section-eyebrow {
    color: #d6ab59;
}

.final-cta-section .section-title {
    color: #ffffff;
}

.final-cta-section .section-lead {
    color: rgba(255,255,255,.82);
    max-width: 760px;
    margin: 0 auto 42px;
}


/* ==================================================
17. SCROLL ANIMATIONS
================================================== */

.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(.22,1,.36,1);
}

.reveal-up {
    transform: translateY(60px);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-scale {
    transform: scale(.94);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: translate(0,0) scale(1);
}

.delay-1 {
    transition-delay: .12s;
}

.delay-2 {
    transition-delay: .24s;
}

.delay-3 {
    transition-delay: .36s;
}

.delay-4 {
    transition-delay: .48s;
}

.delay-5 {
    transition-delay: .60s;
}

.delay-6 {
    transition-delay: .72s;
}


/* ==================================================
18. TABLET / SMALL COMPUTER
================================================== */

@media (max-width: 1199.98px) {

    .db-section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.65rem;
    }

    .db-image-cover {
        height: 500px;
    }

    .db-two-column {
        gap: 40px;
    }

    .db-four-column > div {
        width: calc(50% - 15px);
    }

    .db-process-step {
        width: calc(50% - 15px);
    }

}


/* ==================================================
19. TABLET / PORTRAIT TABLET
================================================== */

@media (max-width: 991.98px) {

    .db-two-column {
        display: block;
    }

    .db-two-column > div {
        width: 100%;
    }

    .db-two-column > div + div {
        margin-top: 40px;
    }

    .db-three-column > div {
        width: calc(50% - 15px);
    }

    .db-feature-box {
        width: calc(50% - 8px);
    }

}


/* ==================================================
20. MOBILE
================================================== */

@media (max-width: 767.98px) {

    section[id] {
        scroll-margin-top: 120px;
    }

    .db-section,
    .final-cta-section {
        padding: 65px 0;
    }

    .section-eyebrow {
        font-size: .72rem;
        letter-spacing: .16em;
        margin-bottom: 30px;
    }

    .section-eyebrow::after {
        width: 90px;
    }

    .section-title {
        font-size: 2.15rem;
        line-height: 1.15;
    }

    .section-lead {
        font-size: 1rem;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .db-btn,
    .cta-buttons .db-btn {
        width: 100%;
    }

    .db-btn {
        padding: 15px 24px;
    }

    .db-image-cover {
        height: auto;
    }

    .db-three-column > div,
    .db-four-column > div,
    .db-feature-box,
    .db-process-step {
        width: 100%;
    }

    .db-card-content,
    .db-project-card-content {

        padding: 28px 24px;
    }

    .db-hover-card {
        padding: 32px 26px;
    }

    .db-project-card-image img {
        height: 280px;
    }

    .db-faq-question {
        padding: 22px 24px;
        font-size: 1rem;
    }

    .db-faq-answer p {
        padding: 0 24px 24px;
    }

}


/* ==================================================
21. SMALL MOBILE
================================================== */

@media (max-width: 575.98px) {

    .section-title {
        font-size: 1.95rem;
    }

    .section-eyebrow {
        letter-spacing: .14em;
    }

    .db-icon-circle {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }

}


/* ==================================================
22. REDUCED MOTION ACCESSIBILITY
================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }

}