
/*
Theme Name: Mesmerize Child
Template: mesmerize
Description: Custom child theme for Canstar Printing
Version: 1.0.0
*/

/* Custom CSS goes below this line */

/* Test: Change the homepage buttons */
.button {
    background-color: #e63946 !important;
    border-radius: 30px !important;
}


/* Business Cards cover hover effect */
.service-cover-hover {
    overflow: hidden;
    border-radius: 8px;
}

/* Hide description until hover */
.service-cover-hover .wp-block-cover__inner-container {
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Show description on hover or keyboard focus */
.service-cover-hover:hover .wp-block-cover__inner-container,
.service-cover-hover:focus-within .wp-block-cover__inner-container {
    opacity: 1;
}

/* Darken image when hovered */
.service-cover-hover .wp-block-cover__background {
    opacity: 0 !important;
    transition: opacity 0.35s ease;
}

.service-cover-hover:hover .wp-block-cover__background,
.service-cover-hover:focus-within .wp-block-cover__background {
    opacity: 0.7 !important;
}

/* Mobile devices don't have hover */
@media (hover: none) {
    .service-cover-hover .wp-block-cover__inner-container {
        opacity: 1;
    }

    .service-cover-hover .wp-block-cover__background {
        opacity: 0.7 !important;
    }
}

/* Hide inner-page hero content, keep navigation */
body:not(.home) .inner-header-description {
    display: none !important;
}

/* Center navigation menu on all pages */
.navigation-bar .main_menu_col {
    display: flex;
    justify-content: center;
}

.navigation-bar .main-menu {
    display: flex;
    justify-content: center;
}

/* Inner pages: remove purple navigation background */
body:not(.home) .navigation-bar {
    background: #ffffff !important;
}

/* Inner pages: dark navigation links */
body:not(.home) .navigation-bar .main-menu > li > a {
    color: #30343b !important;
}

/* Inner pages: keep active/hover underline */
body:not(.home) .navigation-bar .main-menu > li > a:hover,
body:not(.home) .navigation-bar .main-menu > li.current-menu-item > a {
    color: #30343b !important;
}


/* Contact Form 7 - labels */
.wpcf7 label {
    color: #30343b !important;
    font-size: 14px;
    font-weight: 500;
}

/* Contact Form 7 - input fields */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd2da;
    border-radius: 6px;
    background: #ffffff;
    font-size: 14px;
}

/* Contact Form 7 - focus effect */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: #30343b;
    outline: none;
}

/* Contact Form 7 - Send button */
.wpcf7 input[type="submit"] {
    background: #30343b !important;
    color: #ffffff !important;
    padding: 10px 24px !important;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
    background: #505660 !important;
}

/* Contact Us - Send Button */
.wpcf7 input.wpcf7-submit {
    background: #ef3340 !important;
    background-color: #ef3340 !important;
    color: white !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.wpcf7 input.wpcf7-submit:hover {
    background: #d92332 !important;
    background-color: #d92332 !important;
}

/* Contact form labels */
.wpcf7 label {
    color: #374151;
    font-weight: 500;
}

/* Contact form fields */
.wpcf7 input:not([type="submit"]),
.wpcf7 textarea {
    color: #374151;
}

/* Contact Us - Mobile Responsive Layout */
@media (max-width: 767px) {

    .page-id-2 .wp-block-columns {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }

    .page-id-2 .wp-block-column {
        width: 100% !important;
        flex-basis: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }

    .page-id-2 .wpcf7,
    .page-id-2 .wpcf7-form,
    .page-id-2 .wpcf7-form-control-wrap,
    .page-id-2 .wpcf7 input,
    .page-id-2 .wpcf7 textarea,
    .page-id-2 iframe {
        max-width: 100% !important;
        box-sizing: border-box;
    }
}


/* CONTACT US PAGE - VISUAL IMPROVEMENTS */

/* Contact information */
.page-id-2 .wp-block-columns {
    gap: 35px;
}

/* Form labels */
.page-id-2 .wpcf7-form label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #333b46;
    margin-bottom: 8px;
}

/* Form fields */
.page-id-2 .wpcf7 input:not([type="submit"]),
.page-id-2 .wpcf7 textarea {
    width: 100%;
    max-width: 100%;
    padding: 13px 15px;
    border: 1px solid #d5dce5;
    border-radius: 8px;
    background: #ffffff;
    font-size: 15px;
    box-sizing: border-box;
}

/* Highlight active field */
.page-id-2 .wpcf7 input:focus,
.page-id-2 .wpcf7 textarea:focus {
    border-color: #ef3340;
    outline: 2px solid rgba(239, 51, 64, 0.12);
}

/* Message box */
.page-id-2 .wpcf7 textarea {
    min-height: 170px;
    height: 170px;
}

/* Send button */
.page-id-2 .wpcf7 input[type="submit"] {
    background: #ef3340;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.page-id-2 .wpcf7 input[type="submit"]:hover {
    background: #d72835;
}

/* Mobile improvements */
@media (max-width: 767px) {
    .page-id-2 .wp-block-columns {
        gap: 12px !important;
    }

    .page-id-2 .wpcf7 textarea {
        height: 150px;
        min-height: 150px;
    }

    .page-id-2 .wpcf7 input[type="submit"] {
        width: 100%;
    }
}

/* Contact Us - Phone and Email alignment */
.contact-info-row {
    align-items: stretch !important;
    margin-bottom: 40px;
}

.contact-info-row > .wp-block-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}

/* Remove uneven paragraph spacing */
.contact-info-row p {
    margin: 0 !important;
}

/* Keep icons consistent */
.contact-info-row .wp-block-image {
    margin: 0 !important;
}

.contact-info-row .wp-block-image img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Contact Us - Message box height */
.wpcf7 textarea[name="your-message"] {
    height: 280px;
    min-height: 280px;
    resize: vertical;
}

/* Compact contact address section */
.contact-address-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
}

.contact-address-group > * {
    margin: 0 !important;
    padding: 0 !important;
}

.contact-address-group figure,
.contact-address-group h3,
.contact-address-group p {
    margin: 0 !important;
    padding: 0 !important;
}

.contact-address-group img {
    display: block;
    width: 25px;
    height: 25px;
}

/* Contact form send button */
.wpcf7 input[type="submit"] {
    background-color: #40566F !important;
    border-color: #40566F !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 12px 28px;
    transition: background-color 0.2s ease;
}

/* Hover effect */
.wpcf7 input[type="submit"]:hover {
    background-color: #2D4055 !important;
    border-color: #2D4055 !important;
}


/* Canstar footer logo */
footer img.wp-image-270 {
    width: 200px !important;
    max-width: 200px !important;
    height: auto !important;
}


/* Footer logo */
footer img.wp-image-270 {
    width: 200px !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Footer description */
footer .widget p {
    font-size: 14px;
    line-height: 1.6;
}

/* Footer headings */
footer .widget h2,
footer .widget h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

/* ======================================
   CANSTAR SERVICE CARDS - BLUE THEME
====================================== */

/* Default WordPress Group blocks */
.wp-block-group {
    background-color: #f0f5fa;
    padding: 25px;
    margin-bottom: 18px;
    border-left: 4px solid #173b68;
    border-radius: 8px;
}

/* Business Cards step boxes */
.business-card-steps > .wp-block-group {
    background-color: #f0f5fa;
    padding: 25px;
    margin-bottom: 18px;
    border-left: 4px solid #173b68;
    border-radius: 8px;
}

/* Business Cards outer container */
.business-card-steps {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Responsive footer */
.footer.footer-content-lists {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.footer .footer-content,
.footer .gridContainer,
.footer .row {
    max-width: 100%;
    box-sizing: border-box;
}

.footer .row {
    display: flex;
    flex-wrap: wrap;
}

.footer .row > div {
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .footer .row > div {
        width: 100%;
        max-width: 100%;
    }
}



/* ==========================================
   CANSTAR - CUSTOM SEARCH RESULTS PAGE
========================================== */

.canstar-search-results-page {
    background: #f4f8fc;
    min-height: 70vh;
    padding: 70px 20px 90px;
}

.canstar-search-results-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* HEADER */

.canstar-results-header {
    text-align: center;
    margin-bottom: 45px;
}

.canstar-results-header h1 {
    color: #173b68;
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 12px;
}

.canstar-results-header p {
    color: #64788c;
    font-size: 16px;
    margin: 0 0 28px;
}

/* SEARCH BAR */

.canstar-results-search-form {
    display: flex;
    align-items: center;
    gap: 10px;

    max-width: 650px;
    margin: 0 auto;

    padding: 8px;

    background: #ffffff;
    border: 1px solid #d8e5f0;
    border-radius: 35px;

    box-shadow: 0 4px 15px rgba(23, 59, 104, 0.05);
}

.canstar-results-search-form input {
    flex: 1;
    min-width: 0;

    padding: 12px 18px;

    border: none !important;
    outline: none !important;

    background: transparent !important;
    color: #173b68;

    font-size: 15px;
    box-shadow: none !important;
}

.canstar-results-search-form button {
    background: #173b68;
    color: #ffffff;

    border: none;
    border-radius: 25px;

    padding: 12px 26px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: background 0.25s ease;
}

.canstar-results-search-form button:hover {
    background: #24558c;
}

/* RESULTS GRID */

.canstar-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

/* INDIVIDUAL RESULT CARD */

.canstar-result-card {
    display: flex;
    flex-direction: column;

    background: #ffffff;
    border: 1px solid #dce7f1;
    border-radius: 14px;

    overflow: hidden;

    box-shadow: 0 4px 15px rgba(23, 59, 104, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.canstar-result-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 28px rgba(23, 59, 104, 0.12);
}

/* RESULT IMAGE */

.canstar-result-image {
    overflow: hidden;
}

.canstar-result-image img {
    display: block;
    width: 100%;
    height: 220px;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.canstar-result-card:hover .canstar-result-image img {
    transform: scale(1.04);
}

/* RESULT CONTENT */

.canstar-result-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.canstar-result-content h2 {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 14px;
}

.canstar-result-content h2 a {
    color: #173b68;
    text-decoration: none;
}

.canstar-result-content h2 a:hover {
    color: #24558c;
}

.canstar-result-content p {
    color: #64788c;
    font-size: 14px;
    line-height: 1.75;
    margin: 0 0 22px;
}

/* VIEW SERVICE LINK */

.canstar-result-link {
    display: inline-block;
    margin-top: auto;

    color: #173b68 !important;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.canstar-result-link:hover {
    text-decoration: underline !important;
}

/* PAGINATION */

.canstar-results-pagination {
    margin-top: 45px;
    text-align: center;
}

.canstar-results-pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.canstar-results-pagination .page-numbers {
    padding: 9px 15px;

    background: #ffffff;
    border: 1px solid #d8e5f0;
    border-radius: 8px;

    color: #173b68;
    text-decoration: none;
}

.canstar-results-pagination .current {
    background: #173b68;
    color: #ffffff;
}

/* NO RESULTS */

.canstar-no-results {
    max-width: 650px;
    margin: 0 auto;

    padding: 50px 30px;

    background: #ffffff;
    border-radius: 14px;

    text-align: center;
}

.canstar-no-results h2 {
    color: #173b68;
    margin-bottom: 15px;
}

.canstar-no-results p {
    color: #64788c;
    line-height: 1.7;
    margin-bottom: 25px;
}

.canstar-browse-button {
    display: inline-block;

    padding: 13px 26px;

    background: #173b68;
    color: #ffffff !important;

    border-radius: 30px;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none !important;
}

.canstar-browse-button:hover {
    background: #24558c;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 768px) {

    .canstar-search-results-page {
        padding: 45px 15px 60px;
    }

    .canstar-results-header h1 {
        font-size: 29px;
    }

    .canstar-results-grid {
        grid-template-columns: 1fr;
    }

    .canstar-result-content {
        padding: 22px;
    }

    .canstar-result-content h2 {
        font-size: 21px;
    }

    .canstar-result-image img {
        height: 190px;
    }

    .canstar-results-search-form button {
        padding: 12px 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .canstar-result-card,
    .canstar-result-image img {
        transition: none;
    }

    .canstar-result-card:hover,
    .canstar-result-card:hover img {
        transform: none;
    }
}
