:root {
    --brand-primary: #0247A5;
    --brand-secondary: #1A979B;
    --brand-primary-dark: #01377f;
    --brand-secondary-dark: #14777a;
    --wd-primary-color: #0247A5;
    --wd-alternative-color: #1A979B;
}

a {
    color: var(--brand-primary);
}

a:hover,
a:focus {
    color: var(--brand-secondary);
}

#menu-pht-menu .woodmart-nav-link:hover,
#menu-pht-menu .woodmart-nav-link.active-link,
.site-mobile-menu .current-menu-item > a,
.site-mobile-menu a:hover {
    color: var(--brand-primary) !important;
}

.btn,
.button,
button:not(.pswp__button),
input[type="submit"] {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn:hover,
.button:hover,
button:not(.pswp__button):hover,
input[type="submit"]:hover {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-secondary) !important;
}

::selection {
    color: #fff;
    background: var(--brand-primary);
}
/* Prominent page and slider titles */
.main-page-wrapper .vc_custom_heading,
.slider-container .slide-title,
.slider-container .slide-description {
    color: var(--brand-primary) !important;
}

/* Keep form button labels readable on the brand background */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}
/* Footer uses the secondary brand color with accessible contrast */
.footer-container {
    background: var(--brand-secondary) !important;
    color: #fff !important;
}

.footer-container .widget-title,
.footer-container .textwidget,
.footer-container .textwidget p,
.footer-container .textwidget div,
.footer-container .textwidget li,
.footer-container .textwidget span,
.footer-container .textwidget i {
    color: #fff !important;
}

.footer-container a {
    color: #fff !important;
}

.footer-container a:hover,
.footer-container a:focus {
    color: #e8f4ff !important;
    text-decoration: underline;
}
/* Supporting headings use the secondary brand color */
.main-page-wrapper .vc_custom_heading.brand-secondary-heading {
    color: var(--brand-secondary) !important;
}

/* Explicit page titles use the primary brand color */
.main-page-wrapper .brand-primary-heading {
    color: var(--brand-primary) !important;
}
/* Consistent, fast product image presentation */
.products .product-grid-item .product-element-top {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    background: #fff;
}

.products .product-grid-item .product-element-top img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: contain;
    object-position: center;
}

/* Restore the homepage hero's original edge-to-edge layout without WPBakery JavaScript */
.home .entry-content > .vc_row[data-vc-full-width="true"] {
    position: relative;
    left: 50%;
    width: 100vw !important;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
}
/* Responsive footer layout */
.footer-container .footer-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 800px) minmax(180px, 220px);
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
    padding: 36px 0 24px;
}

.footer-container .footer-column {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

.footer-container .widget-title {
    margin: 0 0 18px;
    color: #fff !important;
    font-size: 18px;
    line-height: 1.3;
    text-transform: uppercase;
}

.footer-container .footer-company {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
}

.footer-container .footer-address {
    margin: 0;
    font-style: normal;
}

.footer-container .footer-detail {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 10px;
    align-items: start;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-container .footer-detail i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 4px;
    color: #fff !important;
    font-size: 15px;
    text-align: center;
}

.footer-container .footer-detail strong,
.footer-container .footer-detail span {
    display: block;
}

.footer-container .footer-detail > div > a {
    display: block;
}

.footer-container .footer-detail a {
    width: fit-content;
}

.footer-container .footer-links .menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-container .footer-links .menu li {
    margin: 0 0 12px;
}


.footer-container,
.footer-container .main-footer {
    height: auto !important;
    min-height: 0 !important;
}

.footer-container .footer-sidebar {
    justify-content: start;
}

.footer-container .footer-detail:last-child,
.footer-container .footer-links .menu li:last-child {
    margin-bottom: 0;
}

.footer-container .footer-links,
.footer-container .footer-links a,
.footer-container .footer-links .widget-title {
    white-space: nowrap;
}

@media (min-width: 768px) and (max-width: 1100px) {
    .footer-container .footer-sidebar {
        grid-template-columns: minmax(0, 1fr) minmax(170px, 200px);
        gap: 36px;
    }
}
@media (max-width: 767px) {
    .footer-container .footer-sidebar {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 0 20px;
    }

    .footer-container .footer-links {
        padding-top: 22px;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
    }
}

/* Contact page information and map */
.contact-info-card,
.contact-map-card {
    overflow: hidden;
    border: 1px solid rgba(26, 151, 155, 0.25);
    border-top: 4px solid var(--brand-primary);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(2, 71, 165, 0.08);
}

.contact-info-card {
    margin-bottom: 32px;
    padding: 30px;
}

.contact-info-heading {
    margin: 0 0 10px;
    color: var(--brand-primary);
    font-size: 26px;
    line-height: 1.25;
}

.contact-info-company {
    margin: 0 0 24px;
    color: var(--brand-secondary);
    font-size: 17px;
    font-weight: 700;
}

.contact-info-list {
    display: grid;
    gap: 18px;
}

.contact-info-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    line-height: 1.55;
}

.contact-info-item > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    background: var(--brand-secondary);
    font-size: 15px;
}

.contact-info-item strong,
.contact-info-item span,
.contact-info-item a {
    display: block;
}

.contact-info-item strong {
    margin-bottom: 2px;
    color: var(--brand-primary);
}

.contact-info-item a {
    width: fit-content;
    color: var(--brand-secondary);
    font-weight: 600;
}

.contact-info-item a:hover,
.contact-info-item a:focus {
    color: var(--brand-primary);
    text-decoration: underline;
}

.contact-map-card {
    padding: 10px;
}

.contact-map-card .wpb_map_wraper {
    overflow: hidden;
    border-radius: 8px;
}

.contact-map-card iframe {
    display: block;
    width: 100% !important;
    height: 560px;
}

@media (max-width: 767px) {
    .contact-info-card {
        padding: 22px 18px;
    }

    .contact-info-heading {
        font-size: 23px;
    }

    .contact-map-card {
        margin-top: 24px;
        padding: 8px;
    }

    .contact-map-card iframe {
        height: 360px;
    }
}

/* Contact page equal columns and separate inquiry */
.contact-overview-row {
    align-items: stretch;
}

.contact-overview-row > .wpb_column {
    display: flex;
}

.contact-overview-row > .wpb_column > .vc_column-inner,
.contact-overview-row > .wpb_column > .vc_column-inner > .wpb_wrapper {
    display: flex;
    width: 100%;
}

.contact-overview-row .contact-info-card,
.contact-overview-row .contact-map-card {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
}

.contact-overview-row .contact-map-card {
    display: flex;
}

.contact-overview-row .contact-map-card iframe {
    flex: 1 1 auto;
    height: 100%;
    min-height: 520px;
}

.purchase-inquiry-section {
    margin-top: 38px;
}

.purchase-inquiry-card {
    padding: 30px;
    border: 1px solid rgba(26, 151, 155, 0.25);
    border-top: 4px solid var(--brand-primary);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(2, 71, 165, 0.08);
}

.purchase-inquiry-card .title-wrapper {
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    .contact-overview-row > .wpb_column:first-child {
        margin-bottom: 24px;
    }

    .contact-overview-row .contact-info-card,
    .contact-overview-row .contact-map-card {
        height: auto;
    }

    .contact-overview-row .contact-map-card iframe {
        height: 360px;
        min-height: 360px;
    }

    .purchase-inquiry-section {
        margin-top: 28px;
    }

    .purchase-inquiry-card {
        padding: 24px 18px;
    }
}

.purchase-inquiry-card .wpcf7-submit {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

/* Stable equal Contact Info and map cards */
@media (min-width: 1024px) {
    .contact-overview-row {
        display: flex !important;
        align-items: stretch;
    }

    .contact-overview-row > .wpb_column {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
    }

    .contact-overview-row .contact-info-card,
    .contact-overview-row .contact-map-card {
        height: 520px !important;
        min-height: 520px;
    }

    .contact-overview-row .contact-map-card iframe {
        flex: 1 1 auto;
        height: auto !important;
        min-height: 0;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .contact-overview-row .contact-info-card,
    .contact-overview-row .contact-map-card {
        height: 620px !important;
        min-height: 620px;
    }

    .contact-overview-row .contact-map-card iframe {
        flex: 1 1 auto;
        height: auto !important;
        min-height: 0;
    }
}

.purchase-inquiry-card .title-wrapper,
.purchase-inquiry-card .liner-continer {
    text-align: center !important;
    justify-content: center;
}

.purchase-inquiry-card .woodmart-title-container {
    text-align: center !important;
}