/* ==========================================================================
   Construction Packages Section & Detail Styling (Light Theme)
   ========================================================================== */

.construction-packages {
    position: relative;
    padding: 100px 0 75px;
    background: #f8fafc;
    border-top: 1px solid #eef2f6;
    overflow: hidden;
}

.construction-packages .sec-title_title {
    color: #f7621e !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.construction-packages .sec-title_heading {
    color: #171b21 !important;
}

.construction-packages .sec-title_desc {
    color: #64748b !important;
    max-width: 720px;
    margin: 15px auto 0;
    font-size: 15px;
    line-height: 1.6;
}

.package-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 30px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.package-card:hover {
    transform: translateY(-8px);
    border-color: rgba(247, 98, 30, 0.5);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.1), 0 0 25px rgba(247, 98, 30, 0.12);
}

.package-card.featured {
    background: #ffffff;
    border: 2px solid #f7621e;
    box-shadow: 0 18px 45px rgba(247, 98, 30, 0.15);
}

.package-card .badge-ribbon {
    position: absolute;
    top: -14px;
    right: 25px;
    background: linear-gradient(135deg, #f7621e, #ff8c42);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(247, 98, 30, 0.35);
}

.package-card .badge-luxury {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.package-card .badge-silver {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.package-header {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 25px;
}

.package-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: all 0.3s ease;
}

.package-card:hover .package-icon {
    transform: scale(1.1);
}

.package-icon.silver { color: #64748b; background: #f1f5f9; }
.package-icon.gold { color: #f7621e; background: #fff7ed; }
.package-icon.diamond { color: #0284c7; background: #f0f9ff; }

.package-title {
    font-size: 24px;
    font-weight: 800;
    color: #171b21;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
}

.package-price .currency {
    font-size: 24px;
    font-weight: 700;
    color: #f7621e;
}

.package-price .amount {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.package-price .unit {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

.package-tax-info {
    font-size: 12px;
    color: #0284c7;
    margin-top: 6px;
    font-weight: 600;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.package-features li {
    position: relative;
    padding: 10px 0 10px 28px;
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
    border-bottom: 1px dashed #e2e8f0;
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li i {
    position: absolute;
    left: 0;
    top: 13px;
    color: #f7621e;
    font-size: 14px;
}

.package-features li.highlight {
    color: #9a3412;
    font-weight: 600;
    background: #fff7ed;
    border-radius: 8px;
    padding-left: 30px;
    padding-right: 10px;
    border-bottom: none;
    margin-bottom: 4px;
}

.package-features li.highlight i {
    color: #ea580c;
    left: 8px;
}

.package-actions {
    text-align: center;
    margin-top: auto;
}

.package-actions .theme-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 50px;
}

.package-actions .theme-btn .btn-wrap {
    float: none;
    display: inline-block;
    position: relative;
    text-align: center;
    margin: 0 auto;
}

.package-actions .theme-btn .btn-wrap .text-one,
.package-actions .theme-btn .btn-wrap .text-two {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    white-space: nowrap;
}

.package-actions .theme-btn .btn-wrap .text-two {
    left: 0;
    right: 0;
}

.package-actions .btn-secondary-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    color: #64748b;
    text-decoration: underline;
    transition: color 0.3s;
}

.package-actions .btn-secondary-link:hover {
    color: #f7621e;
}

/* ==========================================================================
   Home page packages (premium 4-line cards, scoped to #packages on index.php)
   ========================================================================== */

.packages-home {
    --pk-navy: #0f1f45;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f8 100%);
}

.packages-home .sec-title_heading {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 0;
}

.packages-home .sec-title_heading,
.packages-home .sec-title_desc,
.packages-home .package-title,
.packages-home .package-subtitle,
.packages-home .package-price .amount,
.packages-home .package-price .unit,
.packages-home .package-tax-info,
.packages-home .package-features li,
.packages-home .package-features li.highlight {
    color: var(--pk-navy) !important;
}

.packages-home .sec-title_desc,
.packages-home .package-subtitle,
.packages-home .package-price .unit {
    opacity: 0.8;
}

.packages-home .package-card {
    border-radius: 24px;
    padding: 44px 30px 32px;
    border: 1px solid #e3e9f3;
    box-shadow: 0 12px 34px rgba(15, 31, 69, 0.08);
}

.packages-home .package-card:hover {
    box-shadow: 0 24px 50px rgba(15, 31, 69, 0.14);
}

.packages-home .package-card.featured {
    border: 1px solid #f7621e;
    box-shadow: 0 0 0 1px #f7621e, 0 20px 50px rgba(247, 98, 30, 0.18);
}

.packages-home .package-title {
    font-size: clamp(19px, 1.7vw, 24px);
    white-space: nowrap;
}

.packages-home .package-card .badge-ribbon {
    z-index: 3;
}

.packages-home .package-media {
    margin: -44px -30px 0;
    height: 230px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.packages-home .package-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.packages-home .package-card:hover .package-media img {
    transform: scale(1.06);
}

.packages-home .package-header {
    padding-bottom: 22px;
    margin-bottom: 8px;
}

.packages-home .package-icon {
    position: relative;
    z-index: 2;
    margin-top: -36px;
    border: 4px solid #ffffff;
}

.packages-home .package-icon {
    width: 72px;
    height: 72px;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(15, 31, 69, 0.1);
}

.packages-home .package-features {
    margin-bottom: 30px;
}

.packages-home .package-features li,
.packages-home .package-features li.highlight {
    min-height: 56px;
    padding: 16px 0 16px 58px;
    display: block;
    line-height: 24px;
    font-size: 15px;
    font-weight: 400;
    background: none;
    border-radius: 0;
    border-bottom: 1px dashed #e3e9f3;
    margin-bottom: 0;
}

.packages-home .package-features li strong {
    font-weight: 700;
    margin-right: 4px;
}

.packages-home .package-features li:last-child {
    border-bottom: none;
}

.packages-home .package-features li i,
.packages-home .package-features li.highlight i {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--pk-navy);
    font-size: 16px;
}

.packages-home .package-card.featured .package-features li i {
    background: #fff1e6;
}

@media (max-width: 991px) {
    .packages-home .package-card {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .packages-home .sec-title_heading {
        font-size: 34px;
    }

    .packages-home .package-card {
        padding: 40px 20px 26px;
    }

    .packages-home .package-media {
        margin: -40px -20px 0;
        height: 200px;
    }
}
/* ==========================================================================
   Package Detail Page Styling
   ========================================================================== */

.package-detail-section {
    padding: 80px 0 100px;
    background: #fbfbfb;
}

.package-detail-header {
    background: linear-gradient(135deg, #171b21 0%, #232932 100%);
    border-radius: 20px;
    padding: 40px;
    color: #ffffff;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.package-nav-pills {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.package-nav-pill {
    padding: 12px 28px;
    border-radius: 50px;
    background: #ffffff;
    color: #171b21;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.package-nav-pill:hover,
.package-nav-pill.active {
    background: #f7621e;
    color: #ffffff;
    border-color: #f7621e;
    box-shadow: 0 6px 20px rgba(247, 98, 30, 0.35);
}

.spec-category-card {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.spec-category-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    border-color: rgba(247, 98, 30, 0.2);
}

.spec-category-title {
    font-size: 20px;
    font-weight: 800;
    color: #171b21;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f7621e;
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec-category-title i {
    color: #f7621e;
    font-size: 22px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 14px;
}

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

.spec-item-label {
    font-weight: 600;
    color: #374151;
    flex: 1;
}

.spec-item-val {
    color: #111827;
    font-weight: 500;
    text-align: right;
    flex: 1.5;
}

.comparison-table-wrapper {
    background: #ffffff;
    border-radius: 16px;
    overflow-x: auto;
    border: 1px solid #eef0f3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: #171b21;
    color: #ffffff;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
}

.comparison-table th.highlight {
    background: #f7621e;
}

.comparison-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #eef0f3;
    font-size: 14px;
    color: #4b5563;
}

.comparison-table tr:hover td {
    background: #fafbfc;
}

/* ==========================================================================
   Packages page comparison matrix (scoped to .price-compare on price.php)
   ========================================================================== */

.price-compare {
    --pk-navy: #0f1f45;
    border-radius: 20px;
    border: 1px solid #e3e9f3;
    box-shadow: 0 12px 34px rgba(15, 31, 69, 0.08);
}

.price-compare h3 {
    color: var(--pk-navy) !important;
}

.price-compare .comparison-table {
    min-width: 780px;
}

.price-compare .comparison-table th {
    background: var(--pk-navy);
    padding: 18px 22px;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.price-compare .comparison-table th.highlight {
    background: #f7621e;
}

.price-compare .comparison-table td {
    padding: 16px 22px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--pk-navy);
    border-bottom: 1px solid #e9eef6;
    vertical-align: middle;
}

.price-compare .comparison-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.price-compare .comparison-table td:first-child {
    border-right: 1px solid #e9eef6;
}

.price-compare .comparison-table td:nth-child(3) {
    background: #fff7ed;
    border-left: 1px solid #fed7aa;
    border-right: 1px solid #fed7aa;
}

.price-compare .comparison-table tbody tr:nth-child(even) td:nth-child(3) {
    background: #ffefdc;
}

.price-compare .comparison-table tbody tr:last-child td:nth-child(3) {
    border-bottom: 1px solid #fed7aa;
}

.price-compare .comparison-table tr:hover td {
    background: #f1f5fb;
}

.price-compare .comparison-table tr:hover td:nth-child(3) {
    background: #ffe8d1;
}

.price-compare .comparison-table .theme-btn {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .price-compare h3 {
        font-size: 20px !important;
    }

    .price-compare .comparison-table th,
    .price-compare .comparison-table td {
        padding: 14px 16px;
    }
}

/* ==========================================================================
   Mobile fixes: package page hero, comparison tables
   ========================================================================== */

.comparison-table {
    min-width: 760px;
}

.comparison-table .theme-btn {
    white-space: nowrap;
}

@media (max-width: 575px) {
    .pk-hero-btns .theme-btn {
        width: 100%;
    }

    .pk-hero-btns .theme-btn .text-one,
    .pk-hero-btns .theme-btn .text-two {
        white-space: nowrap;
        font-size: 12.5px;
    }

    .pk-rate-row {
        flex-wrap: nowrap;
    }

    .pk-rate-num {
        font-size: 42px !important;
    }
}

/* Hero headline: outlined accent word is hard to read on small screens, use normal solid text */
@media (max-width: 991px) {
    .slider-one_heading span {
        color: inherit;
        font-family: inherit;
        font-weight: inherit;
        -webkit-text-stroke: 0;
    }
}

/* Mobile menu: no dark screen behind the panel (layer kept so tapping outside still closes the menu) */
.mobile-menu .menu-backdrop {
    background: transparent;
}

/* ==========================================================================
   Phone layout (Samsung S24 360px and similar): package switcher + hero buttons
   ========================================================================== */
@media (max-width: 575px) {
    .package-nav-pills {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .package-nav-pill {
        box-sizing: border-box;
        width: 100%;
        min-height: 58px;
        justify-content: flex-start;
        padding: 10px 20px;
        gap: 12px;
        font-size: 14px;
        line-height: 1.35;
    }

    .package-nav-pill i {
        flex: 0 0 22px;
        width: 22px;
        text-align: center;
    }

    .pk-hero-btns {
        flex-direction: column;
        gap: 14px;
    }

    .pk-hero-btns .theme-btn {
        box-sizing: border-box;
        display: block;
        width: 100%;
        padding: 8px 8px 8px 24px;
    }

    .pk-hero-btns .theme-btn .btn-wrap {
        float: none;
        display: block;
        width: 100%;
    }

    .pk-hero-btns .theme-btn .text-one {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        font-size: 13px;
        white-space: nowrap;
    }

    .pk-hero-btns .theme-btn .text-two {
        display: none;
    }

    .pk-hero-btns .theme-btn i {
        flex: 0 0 46px;
        width: 46px;
        height: 46px;
        line-height: 46px;
        margin-left: 12px;
    }
}

/* Home services: landscape frame so labelled photos (plumbing, approvals) are not cropped */
.service-one_image > img {
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* Home services: position image downward on desktop to align with service items and fill bottom space */
@media only screen and (min-width: 991px) {
    .service-one_image {
        top: auto;
        bottom: 0px;
    }
}

/* Home "Our Process": new photos keep the original card shape */
.project-block_one-image img {
    aspect-ratio: 1290 / 600;
    object-fit: cover;
}

/* FAQ section: real site photo styling */
.faq-one_image {
    margin-left: 0;
}
.faq-one_image img {
    border-radius: 25px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    width: 100%;
    height: auto;
    display: block;
}

@media only screen and (min-width: 992px) {
    .faq-one .row {
        align-items: stretch;
    }
    .faq-one_image-column {
        display: flex;
        flex-direction: column;
    }
    .faq-one_image {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .faq-one_image img {
        height: 100%;
        flex: 1;
        object-fit: cover;
    }
}

/* Mobile responsive spacing: eliminate unwanted whitespace on mobile only */
@media (max-width: 767px) {
    .construction-packages,
    .construction-packages.packages-home {
        padding: 40px 0 30px !important;
    }
    .package-detail-section {
        padding: 35px 0 30px !important;
    }
    .package-detail-header {
        padding: 25px 18px !important;
        margin-bottom: 24px !important;
    }
    .package-card {
        padding: 28px 20px !important;
        margin-bottom: 20px !important;
    }
    .comparison-table-wrapper {
        margin-top: 30px !important;
        padding: 0 10px !important;
    }
}

/* ==========================================================================
   Who We Are / About One Alignment & Button Alignment (Desktop)
   - Left column stretched so "Learn More" button aligns with the bottom of right image
   - Under-construction cone sits at the bottom of the first image right above button
   ========================================================================== */
@media (min-width: 992px) {
    .about-one_image-outer .row {
        display: flex;
        align-items: stretch;
    }
    .about-one_image-column .column:first-child {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
    }
    .about-one_image-column .column:first-child .about-one_button {
        margin-top: auto !important;
        margin-bottom: 0 !important;
        position: relative;
        z-index: 2;
        display: flex;
        align-items: flex-end;
    }
    .about-one_image-column .column:first-child .about-one_button .theme-btn {
        margin-bottom: 0;
    }
    .about-one_image-column .column:first-child .about-construction_image {
        position: absolute;
        left: 20px;
        bottom: 75px;
        z-index: 1;
        pointer-events: none;
    }
}

/* Mobile only: hide desktop button and show after quality checks */
.about-one_button-mobile {
    display: none;
}

@media (max-width: 991px) {
    .about-one_button-desktop {
        display: none !important;
    }
    .about-one_button-mobile {
        display: block !important;
        margin-top: 20px;
        margin-bottom: 20px;
        text-align: left;
    }
    .about-one_button-mobile .theme-btn {
        display: inline-block;
    }
}
