/*
Theme Name: Multi-Brand Business Theme
Theme URI: 
Author: YohDev
Author URI: 
Description: A flexible WordPress block theme designed for multiple brands and industries. Easily customizable through the WordPress Customizer.
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 5.7
GitHub Repo: canterpower/cp-blocks
Version: 0.1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: multi-brand-theme
Tags: block-theme, business, customizable, multi-brand
*/

/* Wp overides */
.wp-block-cover .wp-block-embed {
    min-height: 220px;
}


/* Utility Classes */
@media (min-width: 767px) {
    .hide-desktop {
        display: none;
    }
}

@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

.no-padding-group {
    padding: 0;
    margin-block-start: 0;
}

@media (max-width: 767px) {
    .reverse-columns-mobile .wp-block-columns {
        display: flex;
        flex-direction: column-reverse;
    }
}

@media (min-width: 768px) {
    .reverse-columns-mobile .wp-block-columns {
        flex-direction: row;
    }
}

/* Navigation styles are handled in functions.php for frontend only */

/* Hero Pattern Styles */
.cover-hub-hero.has-left-gradient-overlay::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
}

.cover-hub-hero .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

.col-hub-text {
    z-index: 3;
}

/* Mobile responsiveness for hero */
@media (max-width: 768px) {
    .reverse-columns-mobile .wp-block-columns {
        flex-direction: column-reverse;
    }
    
    .hide-mobile {
        display: none !important;
    }
    
    .cover-hub-hero.has-left-gradient-overlay::before {
        width: 100%;
        background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

.footer-bottom {
    a:hover {
        color: #fff;
    }
}


.wp-block-cover {
    margin-block-start: 0;
    margin-block-end: 0;
}

.wp-block-columns {
    gap: 64px;
}

@media (max-width: 767px) {
    .wp-block-columns {
        gap: 24px;
    }

    .footer-top {
        .wp-block-navigation__container {
            width: 100%;
            align-items: center;

            li {
                line-height: 3rem;
            }
        }
    }
}

.wp-block-button__link:hover {
    background: var(--brand-primary, var(--wp--preset--color--primary)) !important;
    transform: scale(1.05);
    transition: background 0.3s ease, transform 0.3s ease;
}

.wp-block-separator {
    width: 100%;
    max-width: 100%;
}

.logo-column {
    position: relative;
    bottom: 32px;
}

.footer-top {
    border-top: 1px solid #ddd;
    border-bottom: 2px solid #ddd;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);

    .wp-block-navigation-item__content {
        &:hover {
            color: var(--brand-primary, var(--wp--preset--color--primary)) !important;
        }
    }
}

.footer-bottom {
    background-color: #ddd;
}


/* Patterns */
  @media (max-width: 768px) {
    .col-hub-text {
        text-align: center;
        max-width: 327px;
        margin: auto !important;
    }
}

.cover-hub-hero {
    height: 600px; /* Default height for larger screens */
}

@media (max-width: 768px) {
    .cover-hub-hero {
        height: auto; /* Height for mobile screens */

        .wp-block-columns {
            gap: 24px !important;
        }
    }
    
    .hero-pattern {
        min-height: 200px !important;

        h1,p {
            text-align: center;
        }
    }

    .wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0 {
        opacity: .70;
    }
}

.what-to-expect {
    .wp-block-column {
        max-width: 220px;
        margin: auto;
    }
}



/* Custom left-side gradient overlay for wp-block-cover */
.wp-block-cover.has-left-gradient-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  z-index: 1;
  pointer-events: none;
}

/* Make sure the cover block is positioned relative */
.wp-block-cover.has-left-gradient-overlay {
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
    .wp-block-cover.has-left-gradient-overlay::before {
        background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
    }
}

.home-generator {
    position: relative;
    bottom: 100px;
    z-index: 2;
}

.brand-phone-number {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  justify-content: center;
}

.brand-phone-number:hover {
  color: var(--brand-primary, #007BFF);
}

.number {
  font-size: 16px;
  font-weight: bold;
}


/* Custom left-side gradient overlay for wp-block-cover */
.wp-block-cover.has-left-gradient-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  z-index: 1;
  pointer-events: none;
}

/* Make sure the cover block is positioned relative */
.wp-block-cover.has-left-gradient-overlay {
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
    .wp-block-cover.has-left-gradient-overlay::before {
        background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
    }
}

.home-generator {
    position: relative;
    bottom: 100px;
    z-index: 2;
}

