/*
Theme Name: MunyTech Theme
Theme URI: https://munytech.com
Author: MunyTech
Author URI: https://munytech.com
Description: Custom theme for MunyTech based on canvas design.
Version: 1.0.0
Text Domain: munytech
*/

:root {
    --color-primary-blue: #1e0b96;
    --color-accent-yellow: #fec315;
    --color-text-white: #ffffff;
    --color-text-dark: #333333;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-script: 'Dancing Script', cursive;
    
    --spacing-container: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Flex Utilities */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent-yellow);
    color: var(--color-primary-blue);
}

/* =========================================
   Global Styles & Typography
   ========================================= */
body {
    background-color: var(--color-primary-blue);
    color: var(--color-text-white);
    overflow-x: hidden; /* Handle shape overflows */
}

/* =========================================
   Block Theme Overrides
   ========================================= */

/* Hero Button */
.wp-block-button.btn-primary .wp-block-button__link {
    background-color: var(--wp--preset--color--accent-yellow) !important;
    color: var(--wp--preset--color--primary-blue) !important;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.wp-block-button.btn-primary .wp-block-button__link:hover {
    transform: translateY(-2px);
    background-color: #e5b014 !important;
}

/* Handwritten Headings */
.handwritten-title {
    font-family: 'Dancing Script', cursive;
    color: var(--wp--preset--color--accent-yellow);
    transform: rotate(-5deg);
    line-height: 1.2;
}

.handwritten-title.white {
    color: var(--wp--preset--color--white);
}

/* Shapes & Layouts */
.image-wrapper-yellow {
    position: relative;
    z-index: 1;
}

.image-wrapper-yellow img {
    border-radius: 0 !important;
}

.image-wrapper-yellow::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -50px;
    width: 100%;
    height: 100%;
    background-color: var(--wp--preset--color--accent-yellow);
    border-radius: 50px 0 0 50px;
    z-index: -1;
    max-width: 500px;
    max-height: 400px;
}

/* Solution Arrows */
.proposal-card {
    background: #fff;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.card-left {
    clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
    padding-right: 4rem;
}

.card-right {
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 25% 100%, 0% 50%);
    padding-left: 4rem;
}

/* Contact Bubble */
.contact-bubble {
    background: #fff;
    padding: 3rem;
    border-radius: 30px 30px 30px 0;
    position: relative;
}

.contact-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    border-top: 20px solid #fff;
    border-right: 20px solid transparent;
}

/* Mobile Responsiveness for Blocks */
@media (max-width: 780px) {
    .wp-block-columns {
        flex-wrap: wrap;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .proposal-card {
        clip-path: none;
        border-radius: 10px;
        margin-bottom: 1rem;
    }
    
    .hero-image {
        display: none;
    }
}

