/**
 * Theme Name: Twenty Twenty-Five Child
 * Theme URI: https://wordpress.org/themes/twentytwentyfive/
 * Description: My custom child theme for Twenty Twenty-Five to protect my design.
 * Author: Your Name
 * Template: twentytwentyfive
 * Version: 1.0.0
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: twentytwentyfive-child
 */

/* Add your custom CSS below this line */

/* ==========================================================================
   Playful SVG Icon Animations
   ========================================================================== */

/* 1. Set up the wrapper for a smooth, bouncy animation */
.icon-wrapper {
    display: inline-flex;
    /* This cubic-bezier creates a subtle "spring" or bounce effect */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer; /* Makes it feel interactive */
}

/* 2. The Hover State: Scale up and slightly rotate */
.icon-wrapper:hover {
    transform: scale(1.2) rotate(8deg);
}

/* 3. Ensure the SVG scales smoothly and inherits text colors */
.my-custom-icon {
    width: 1.5em;  /* Sizes the icon relative to the surrounding text */
    height: 1.5em;
    transition: color 0.3s ease;
}

/* Optional: Add a playful pop of color on hover */
.icon-wrapper:hover .my-custom-icon {
    stroke: #ff4757; /* Changes the icon line color to a playful red/pink */
}


/* ==========================================================================
   Neon Border and Text Effects
   ========================================================================== */

/* The Neon Container (Groups & Columns) */
.is-style-neon-border {
    border: 2px solid #e41f26;
    border-radius: 12px; /* Smooth, modern corners */
    /* Multiple box-shadows create the high-def glow */
    box-shadow: 0 0 5px rgba(228, 31, 38, 0.4), 
                0 0 12px rgba(228, 31, 38, 0.3), 
                inset 0 0 8px rgba(228, 31, 38, 0.2);
    animation: neonPulseBorder 4s infinite alternate;
}

/* The Neon Text (Headings) */
.is-style-neon-text {
    color: #ffffff; /* Bright white core */
    /* Multiple text-shadows create the glowing text */
    text-shadow: 0 0 4px rgba(228, 31, 38, 0.8), 
                 0 0 10px rgba(228, 31, 38, 0.6), 
                 0 0 18px rgba(228, 31, 38, 0.4);
    animation: neonPulseText 4s infinite alternate;
}

/* The Flicker Animations */
@keyframes neonPulseBorder {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; box-shadow: 0 0 2px rgba(228, 31, 38, 0.2); }
    /* The subtle, quick flickers */
    20%, 24%, 55% { opacity: 0.95; }
    22%, 56% { opacity: 0.7; }
}

@keyframes neonPulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; text-shadow: 0 0 2px rgba(228, 31, 38, 0.4); }
    /* The subtle, quick flickers */
    20%, 24%, 55% { opacity: 0.95; }
    22%, 56% { opacity: 0.7; }
}


/* ==========================================================================
   Ultra Electric Neon Effects
   ========================================================================== */

/* Define our Electric Colors as variables for easy reuse */
:root {
    --electric-red: #e41f26;
    --electric-cyan: #00ffff; /* A bright cyan-blue for contrast */
}

/* The Ultra Electric Container (Groups & Columns) */
.is-style-ultra-electric-neon-border {
    border: 3px solid var(--electric-red);
    border-radius: 12px;
    
    /* Multiple box-shadows create the "ultra" depth.
       1. Inner red inset glow
       2. Soft, primary red outer glow
       3. Large, secondary cyan-blue outer glow
    */
    box-shadow: inset 0 0 10px rgba(228, 31, 38, 0.6),
                0 0 10px rgba(228, 31, 38, 0.8),
                0 0 30px rgba(0, 255, 255, 0.4);

    animation: ultraNeonPulseBorder 4s infinite alternate;
}

/* The Ultra Electric Text (Headings) */
.is-style-ultra-electric-neon-text {
    color: #ffffff; /* Intense white center */
    
    /* Multi-layered text-shadows for a proper electric hue
       1. Sharp red core glow
       2. Soft red wider glow
       3. Large cyan-blue outer "aura"
    */
    text-shadow: 0 0 4px rgba(228, 31, 38, 0.9), 
                 0 0 12px rgba(228, 31, 38, 0.7), 
                 0 0 25px rgba(0, 255, 255, 0.5);

    animation: ultraNeonPulseText 4s infinite alternate;
}


/* ==========================================================================
   Custom Scalable Pill Badges
   ========================================================================== */

/* Base Pill Structure (Scalable & Responsive) */
.is-style-pill-grayscale,
.is-style-pill-red {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    /* Using 'em' means padding scales perfectly if font-size changes */
    padding: 0.4em 1.2em; 
    border-radius: 999px; /* Perfect pill shape always */
    font-size: 0.75rem; /* Base small size */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem; /* Space below to push down the big heading */
    width: fit-content;
    
    /* Smooth animation for all state changes (hover, focus) */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* The Hover Animation (Subtle lift) */
.is-style-pill-grayscale:hover,
.is-style-pill-red:hover {
    transform: translateY(-2px);
    cursor: default; /* Keeps it looking like a badge, not a link */
}

/* 1. Pill Grayscale Design */
.is-style-pill-grayscale {
    background-color: var(--wp--preset--color--contrast); /* Dark grey/black */
    color: var(--wp--preset--color--base); /* White text */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}
/* Lift and glow slightly more on hover */
.is-style-pill-grayscale:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 2. Pill Red Design */
.is-style-pill-red {
    background-color: rgba(228, 31, 38, 0.08); /* Extremely soft, transparent red */
    color: #e41f26; /* Your primary red */
    border: 1px solid rgba(228, 31, 38, 0.3);
    box-shadow: 0 4px 6px rgba(228, 31, 38, 0.05);
}
/* Invert to a solid red block with white text on hover */
.is-style-pill-red:hover {
    background-color: #e41f26;
    color: #ffffff;
    box-shadow: 0 6px 12px rgba(228, 31, 38, 0.2);
}


/* ==========================================================================
   Advanced Heading Styles
   ========================================================================== */

/* 1. Magic Marker Highlight */
.is-style-magic-marker {
    display: inline-block;
    /* A soft red highlight using your primary brand color */
    background-image: linear-gradient(120deg, rgba(228, 31, 38, 0.2) 0%, rgba(228, 31, 38, 0.2) 100%);
    background-repeat: no-repeat;
    /* Starts at 0% width, height is 35% of the text */
    background-size: 0% 35%; 
    background-position: 0 95%; /* Positions it at the bottom of the letters */
    /* Animates in smoothly half a second after the page loads */
    animation: markerSweep 1s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}
@keyframes markerSweep {
    to { background-size: 100% 35%; }
}

/* 2. Ghost Outline to Solid */
.is-style-ghost-outline {
    color: transparent !important;
    /* Creates a 1.5px dark outline around the transparent text */
    -webkit-text-stroke: 1.5px var(--wp--preset--color--contrast);
    transition: all 0.4s ease;
    cursor: default;
}
/* Fills in solid on hover */
.is-style-ghost-outline:hover {
    color: var(--wp--preset--color--contrast) !important;
    -webkit-text-stroke: 1.5px transparent;
}

/* 3. Gradient Mask Text (Flowing Liquid Effect) */
.is-style-gradient-mask {
    /* Mixes your red, cyan, and red again for a seamless loop */
    background: linear-gradient(135deg, #e41f26 0%, #00ffff 50%, #e41f26 100%);
    background-size: 200% auto;
    color: transparent !important;
    -webkit-background-clip: text; /* Clips the background to the text shape */
    background-clip: text;
    animation: gradientFlow 4s linear infinite;
    display: inline-block;
}
@keyframes gradientFlow {
    to { background-position: 200% center; }
}

/* 4. Typewriter / Terminal Reveal */
.is-style-typewriter {
    display: inline-block;
    overflow: hidden; /* Hides text before it types */
    white-space: nowrap; /* Keeps it on one line */
    border-right: 3px solid #e41f26; /* The blinking cursor */
    max-width: 0; /* Starts completely hidden */
    animation: 
        typingReveal 2s steps(40, end) 0.5s forwards,
        blinkCursor 0.75s step-end infinite;
}
@keyframes typingReveal {
    to { max-width: 100%; }
}
@keyframes blinkCursor {
    from, to { border-color: transparent; }
    50% { border-color: #e41f26; }
}





/* ==========================================================================
   Sleek Sticky Header with Glassmorphism
   ========================================================================== */

/* Target the main WordPress header template part */
header.wp-block-template-part,
.wp-site-header {
    position: sticky !important;
    top: 0;
    z-index: 9999; /* Ensures it floats above all other page content */
    
    /* The Glassmorphism (Blur) Effect */
    background-color: rgba(255, 255, 255, 0.85) !important; /* Slightly transparent white */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* For Safari support */
    
    /* Subtle bottom border and shadow to separate it from the content */
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    
    /* Smooth transition */
    transition: all 0.3s ease;
}

/* Fix for logged-in admins: Pushes the header down so the WP Admin Bar doesn't cover it */
.admin-bar header.wp-block-template-part,
.admin-bar .wp-site-header {
    top: 32px; 
}

/* Mobile admin bar fix */
@media screen and (max-width: 782px) {
    .admin-bar header.wp-block-template-part,
    .admin-bar .wp-site-header {
        top: 46px; 
    }
}





/* ==========================================================================
   Smooth Scrolling for Anchor Links
   ========================================================================== */

/* Apply smooth scrolling to the entire HTML document */
html {
    scroll-behavior: smooth !important;
}

/* Optional Accessibility Best Practice: 
   If a user has "Reduced Motion" turned on in their operating system settings, 
   this gracefully turns the animation off for them so they don't get dizzy. */
@media screen and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
}





/* ==========================================================================
   Modern Contact Block (Header/Floating)
   ========================================================================== */

.modern-contact-block {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: inherit;
    line-height: 1; /* Tighter overall spacing */
}

/* The "Call Now" Text */
.modern-contact-block .contact-title {
    font-size: 0.85em; /* Slightly smaller for proportion */
    font-weight: 500;
    margin-bottom: 2px; /* Pulled much closer to the number */
    opacity: 0.9;
}

/* The wrapper for Icon + Number */
.modern-contact-block .contact-details {
    display: flex;
    align-items: center; 
    gap: 8px; 
}

/* The Icon Sizing */
.modern-contact-block .contact-icon-wrapper svg {
    width: 1.8em; 
    height: 1.8em;
    display: block; /* Removes any invisible bottom spacing on the SVG */
}

/* The Phone Number (Updated per your request!) */
.modern-contact-block .contact-number {
    font-size: 1.8em; 
    font-weight: 700 !important; /* Forces the bold weight */
    letter-spacing: -0.04em !important; /* Negative letter spacing for a sleek look */
    text-decoration: none !important; 
    color: inherit;
    position: relative;
    padding-bottom: 2px;
    white-space: nowrap !important; /* This is the magic rule that stops it from wrapping! */
}

/* The Custom Crisp Underline */
.modern-contact-block .contact-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px; 
    background-color: currentColor; 
    border-radius: 2px;
    transition: opacity 0.3s ease;
}

.modern-contact-block .contact-number:hover::after {
    opacity: 0.5; 
}