/*
Theme Name: Astra Child - Digital Marketing
Description: Custom child theme for digital marketing consultancy with brand colors and Roboto fonts
Author: Your Name
Template: astra
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* Import Roboto Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* Import Parent Theme Styles */
@import url("../astra/style.css");

/* ==========================================================================
   GLOBAL BRAND STYLES - Base utilities only
   ========================================================================== */

/* Body and Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #202020;
    color: #f7f7f7;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    color: #f7f7f7;
    line-height: 1.2;
}

p, span, div {
    font-family: 'Roboto', sans-serif;
    color: #f7f7f7;
}

/* Links */
a {
    color: #8ac13f;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #6da82f;
}

/* ==========================================================================
   ASTRA THEME OVERRIDES - Minimal global overrides
   ========================================================================== */

/* Header Styles */
.ast-site-header-wrap,
.main-header-bar,
.ast-primary-header {
    background-color: #202020;
    border-bottom: 1px solid #333;
}

.site-header .main-header-bar .ast-site-identity .site-logo-img,
.site-header .main-header-bar .ast-site-identity .custom-logo-link {
    max-height: 60px;
}

/* Navigation Styles */
.main-header-menu .menu-link {
    color: #f7f7f7;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

.main-header-menu .menu-link:hover {
    color: #8ac13f;
}

.main-header-menu .current-menu-item .menu-link {
    color: #8ac13f;
}

/* Mobile Menu */
.ast-mobile-menu-buttons .ast-button-wrap .menu-toggle {
    color: #f7f7f7;
    background: rgba(138, 193, 63, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.ast-mobile-menu-buttons .ast-button-wrap .menu-toggle:hover {
    background: rgba(138, 193, 63, 0.2);
    color: #8ac13f;
}

.ast-mobile-popup-content {
    background-color: rgba(32, 32, 32, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ast-mobile-popup-content .ast-mobile-menu a {
    color: #f7f7f7;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(138, 193, 63, 0.1);
}

.ast-mobile-popup-content .ast-mobile-menu a:hover {
    color: #8ac13f;
    background: rgba(138, 193, 63, 0.1);
}

/* Footer Styles */
.site-footer,
.ast-small-footer {
    background-color: #1a1a1a;
    color: #f7f7f7;
    border-top: 1px solid #333;
}

.site-footer a,
.ast-small-footer a {
    color: #8ac13f;
}

.site-footer a:hover,
.ast-small-footer a:hover {
    color: #6da82f;
}

/* ==========================================================================
   UTILITY CLASSES - Reusable components
   ========================================================================== */

/* Container utility class */
.ryza-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: #8ac13f;
    z-index: 9999;
    transition: width 0.3s ease;
}

/* ==========================================================================
   BUTTONS AND FORMS - Global button styles
   ========================================================================== */

/* Primary Button Styles (Green) */
.wp-block-button .wp-block-button__link,
.ast-button,
input[type="submit"]:not(.ryza-contact-wrapper *),
button:not(.ryza-contact-wrapper *),
.btn-primary {
    background-color: #8ac13f;
    color: #ffffff;
    border: 2px solid #8ac13f;
    border-radius: 8px;
    padding: 15px 30px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Force white text on all button states */
.wp-block-button .wp-block-button__link,
.wp-block-button .wp-block-button__link:visited,
.wp-block-button .wp-block-button__link:active,
.wp-block-button .wp-block-button__link:focus,
.ast-button,
.ast-button:visited,
.ast-button:active,
.ast-button:focus,
input[type="submit"]:not(.ryza-contact-wrapper *),
input[type="submit"]:not(.ryza-contact-wrapper *):visited,
input[type="submit"]:not(.ryza-contact-wrapper *):active,
input[type="submit"]:not(.ryza-contact-wrapper *):focus,
button:not(.ryza-contact-wrapper *),
button:not(.ryza-contact-wrapper *):visited,
button:not(.ryza-contact-wrapper *):active,
button:not(.ryza-contact-wrapper *):focus,
.btn-primary,
.btn-primary:visited,
.btn-primary:active,
.btn-primary:focus {
    color: #ffffff;
    text-decoration: none;
}

.wp-block-button .wp-block-button__link:hover,
.ast-button:hover,
input[type="submit"]:not(.ryza-contact-wrapper *):hover,
button:not(.ryza-contact-wrapper *):hover,
.btn-primary:hover {
    background-color: #6da82f;
    border-color: #6da82f;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 193, 63, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Secondary Button Styles (Light) */
.btn-secondary {
    background-color: #f7f7f7;
    color: #202020;
    border: 2px solid #f7f7f7;
    border-radius: 8px;
    padding: 15px 30px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
    color: #202020;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 247, 247, 0.3);
}

/* Form Styles - Exclude CTA section forms */
input[type="text"]:not(.ryza-contact-wrapper input),
input[type="email"]:not(.ryza-contact-wrapper input),
input[type="tel"]:not(.ryza-contact-wrapper input),
input[type="url"]:not(.ryza-contact-wrapper input),
textarea:not(.ryza-contact-wrapper textarea),
select:not(.ryza-contact-wrapper select) {
    background-color: #2a2a2a;
    border: 1px solid #333;
    color: #f7f7f7;
    border-radius: 5px;
    padding: 12px 15px;
    font-family: 'Roboto', sans-serif;
}

input[type="text"]:not(.ryza-contact-wrapper input):focus,
input[type="email"]:not(.ryza-contact-wrapper input):focus,
input[type="tel"]:not(.ryza-contact-wrapper input):focus,
input[type="url"]:not(.ryza-contact-wrapper input):focus,
textarea:not(.ryza-contact-wrapper textarea):focus,
select:not(.ryza-contact-wrapper select):focus {
    border-color: #8ac13f;
    outline: none;
    box-shadow: 0 0 0 2px rgba(138, 193, 63, 0.2);
}

/* ==========================================================================
   CTA SECTION LIGHT THEME - Clean override without excessive !important
   ========================================================================== */

/* CTA Section Scoped Container Override */
.ryza-contact-section {
    background: #f8f9fa !important;
}

/* Nuclear override for CTA section to prevent inheritance issues */
.ryza-contact-section,
.ryza-contact-section * {
    color: #202020 !important;
    background-color: inherit !important;
}

/* CTA Section Light Theme Override */
.ryza-contact-wrapper {
    background: #f7f7f8;
    color: #202020;
}

/* Reset all text elements in CTA to use dark text */
.ryza-contact-wrapper,
.ryza-contact-wrapper h1,
.ryza-contact-wrapper h2,
.ryza-contact-wrapper h3,
.ryza-contact-wrapper h4,
.ryza-contact-wrapper h5,
.ryza-contact-wrapper h6,
.ryza-contact-wrapper p,
.ryza-contact-wrapper span,
.ryza-contact-wrapper div,
.ryza-contact-wrapper label {
    color: #202020;
}

/* CTA section links */
.ryza-contact-wrapper a:not(.ryza-contact-button):not(.ryza-social-action) {
    color: #0066cc;
}

.ryza-contact-wrapper a:not(.ryza-contact-button):not(.ryza-social-action):hover {
    color: #004499;
}

/* CTA form elements with light theme */
.ryza-contact-wrapper input,
.ryza-contact-wrapper textarea,
.ryza-contact-wrapper select {
    background: #ffffff !important;
    border: 1px solid #ced4da;
    color: #202020 !important;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.15s ease;
}

.ryza-contact-wrapper input:focus,
.ryza-contact-wrapper textarea:focus,
.ryza-contact-wrapper select:focus {
    border-color: #8ac13f;
    outline: none;
    box-shadow: 0 0 0 2px rgba(138, 193, 63, 0.25);
    background: #ffffff !important;
    color: #202020 !important;
}

.ryza-contact-wrapper input::placeholder,
.ryza-contact-wrapper textarea::placeholder {
    color: #6c757d !important;
    opacity: 1;
}

/* CTA buttons maintain brand styling */
.ryza-contact-wrapper .ryza-contact-button,
.ryza-contact-wrapper button[type="submit"] {
    background: linear-gradient(135deg, #8ac13f 0%, #6da82f 100%) !important;
    color: #ffffff !important;
    border: 1px solid #8ac13f;
}

.ryza-contact-wrapper .ryza-contact-button:hover,
.ryza-contact-wrapper button[type="submit"]:hover {
    background: linear-gradient(135deg, #7bb240 0%, #5c8f27 100%) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   WORDPRESS BLOCKS COMPATIBILITY
   ========================================================================== */

/* Block Editor Styles */
.wp-block-group {
    background-color: #202020;
}

.wp-block-heading {
    color: #f7f7f7;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
}

.wp-block-paragraph {
    color: #f7f7f7;
    font-family: 'Roboto', sans-serif;
}

/* ==========================================================================
   LAYOUT CLEANUP - Remove conflicting Astra styles
   ========================================================================== */

/* Remove default Astra margins/padding for full-width sections */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
    margin: 0;
    padding: 0;
    background: transparent;
}

.entry-content {
    margin: 0;
    padding: 0;
}

/* Ensure full width for sections */
.ast-container {
    max-width: 100%;
    padding: 0;
}

/* Hide default page title if present */
.ast-archive-description,
.page-header,
.entry-header {
    display: none;
}

/* Content area adjustments */
#primary {
    margin: 0;
    padding: 0;
}

#main {
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   CUSTOM HAMBURGER MENU BUTTON - Fixed Centering
   ========================================================================== */

/* Override the hamburger button to use proper flexbox centering */
.ryza-header-mobile-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(138, 193, 63, 0.1) !important;
    border: 2px solid rgba(138, 193, 63, 0.3) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 1001 !important;
    gap: 4px !important; /* Even spacing between bars */
    padding: 0 !important; /* Remove any padding interference */
}

.ryza-header-mobile-toggle:hover {
    background: rgba(138, 193, 63, 0.2) !important;
    border-color: rgba(138, 193, 63, 0.6) !important;
    transform: scale(1.05) !important;
}

/* Hamburger bars - remove margins and use flex gap for spacing */
.ryza-header-mobile-toggle span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    background: #f7f7f7 !important;
    transition: all 0.3s ease !important;
    transform-origin: center !important;
    margin: 0 !important; /* Remove all margins - flexbox gap handles spacing */
}

/* Active state - transform to X */
.ryza-header-mobile-toggle.active {
    gap: 0 !important; /* Remove gap when transforming to X */
}

.ryza-header-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0, 6px) !important;
}

.ryza-header-mobile-toggle.active span:nth-child(2) {
    opacity: 0 !important;
    transform: scale(0) !important;
}

.ryza-header-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0, -6px) !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet Styles */
@media (max-width: 1024px) {
    .ryza-container {
        padding: 0 30px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .site-header .main-header-bar {
        padding: 10px 15px;
    }
    
    .main-header-menu .menu-link {
        font-size: 14px;
    }
    
    .ryza-container {
        padding: 0 20px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .ryza-container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .wp-block-button .wp-block-button__link,
    .ast-button,
    input[type="submit"]:not(.ryza-contact-wrapper *),
    button:not(.ryza-contact-wrapper *) {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* ==========================================================================
   ACCESSIBILITY AND PERFORMANCE
   ========================================================================== */

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #8ac13f;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background-color: #000000;
        color: #ffffff;
    }
    
    .ryza-contact-wrapper {
        background: #ffffff;
        border: 2px solid #000000;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    body {
        background: white;
        color: black;
    }
    
    .progress-bar {
        display: none;
    }
    
    /* Hide interactive elements */
    .ryza-header,
    .site-footer,
    button,
    input[type="submit"] {
        display: none;
    }
}