/*
Theme Name: RBProd Production Company
Description: A modern, clean WordPress theme designed for production companies. Fully compatible with Elementor page builder.
Version: 1.0
Author: Your Production Company
License: GPL v2 or later
*/

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

a {
    color: #007cba;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #dc2626;
}

/* Layout & Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: #005a87;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #007cba;
    border: 2px solid #007cba;
}

.btn-outline:hover {
    background-color: #007cba;
    color: white;
}

/* Red Button Variant */
.btn-red {
    background-color: #dc2626;
}

.btn-red:hover {
    background-color: #b91c1c;
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-outline-red {
    background-color: transparent;
    color: #dc2626;
    border: 2px solid #dc2626;
}

.btn-outline-red:hover {
    background-color: #dc2626;
    color: white;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section-padding {
        padding: 40px 0;
    }
}

/* WordPress Core Styles */
.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #666;
    padding: 0.5rem;
    text-align: center;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Elementor Compatibility */
.elementor-page .site-header {
    position: relative;
    z-index: 999;
}

.elementor-page .site-content {
    overflow: hidden;
}

/* Full Width Elementor Support */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
}

.elementor-section.elementor-section-full_width > .elementor-container {
    width: 100%;
    max-width: 100%;
}

/* Remove default padding/margins for Elementor pages */
.elementor-page .site-main {
    padding: 0;
    margin: 0;
}

.elementor-page .container {
    padding: 0;
    max-width: 100%;
}

/* Elementor Header and Footer Support */
.elementor-location-header {
    position: relative;
    z-index: 999;
}

.elementor-location-footer {
    margin-top: auto;
}

/* Hide theme header/footer when Elementor is used */
.elementor-header-footer-page .site-header,
.elementor-header-footer-page .site-footer {
    display: none;
}

/* Ensure Elementor content takes full width */
.elementor-page .page-content-area {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* Better Elementor widget styling */
.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4,
.elementor-widget-heading h5,
.elementor-widget-heading h6 {
    font-family: inherit;
    line-height: inherit;
}

/* Elementor button styling inheritance */
.elementor-widget-button .elementor-button {
    font-family: inherit;
    transition: all 0.3s ease;
}

.elementor-widget-button .elementor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

/* Header Styles */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Site Title/Logo Styling with Red Hover Effect */
.site-branding .site-title a {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Default state - REDblock is black */
.site-branding .site-title .redblock-text {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

/* Hover state - REDblock becomes red */
.site-branding .site-title a:hover .redblock-text {
    color: #dc2626;
}

/* Navigation Menu Styles */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #1a1a1a;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #dc2626; /* Red hover for menu items */
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #dc2626;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #1a1a1a;
    margin: 2px 0;
    transition: 0.3s;
}

/* Header Contact Info */
.header-contact {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-phone a,
.header-email a {
    color: #1a1a1a;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-phone a:hover,
.header-email a:hover {
    color: #dc2626;
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget-title {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-widget a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #dc2626; /* Red hover for footer links */
}

/* Company name in footer - make "REDblock" red */
.footer-widget-title:first-of-type,
.company-info h4 {
    color: #ffffff;
}

/* Special styling for company name in footer */
.footer-company-info h4 {
    background: linear-gradient(90deg, #dc2626 0%, #dc2626 50%, #ffffff 50%, #ffffff 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.3s ease;
}

.footer-company-info h4:hover {
    background-position: 0% 0;
}

/* Alternative approach - simpler red "REDblock" in footer */
.footer-redblock {
    color: #dc2626 !important;
}

.footer-productions {
    color: #ffffff !important;
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 1rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #dc2626;
}

/* Responsive Design for Header */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 0;
    }
    
    .header-contact {
        display: none;
    }
    
    .site-branding .site-title a {
        font-size: 1.4rem;
    }
}

/* WordPress Admin Bar Compatibility */
#wpadminbar {
    position: fixed !important;
    top: 0 !important;
    z-index: 99999 !important;
}

body.admin-bar {
    margin-top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        margin-top: 46px !important;
    }
}