/*
Theme Name: Leary Construction Company - Elementor
Theme URI: https://learyconstruction.com
Author: Leary Construction Company
Author URI: https://learyconstruction.com
Description: Water Tank Maintenance Specialists - Elementor Pro compatible single-page theme with drag-and-drop editing
Version: 3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lcc-theme
Tags: elementor, one-page, business, custom-logo, responsive
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #4a5f7f;
    --accent-orange: #167fc2;
    --dark-overlay: rgba(0, 0, 0, 0.1);
}

body {
    font-family: Times New Roman;
    line-height: 1.6;
    color: #167fc2;
    overflow-x: hidden;
    background: linear-gradient(var(--dark-overlay), var(--dark-overlay)), 
                url('assets/images/water-tank-bg.png') center/cover fixed;
    min-height: 100vh;
}

/* Fallback gradient for body if image doesn't load */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #6a7f9f 100%);
    z-index: -2;
}

/* Elementor compatibility - ensure full width */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100%;
}

/* Hide Elementor editor bar on front-end for cleaner look */
body:not(.elementor-editor-active) #elementor-device-mode {
    display: none;
}

/* Header with Background */
.hero-header {
    position: relative;
    height: 100vh;
    background: linear-gradient(var(--dark-overlay), var(--dark-overlay)), 
                url('assets/images/water-tank-bg.png') center/cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    color: white;
}

/* Fallback if image doesn't load */
.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #6a7f9f 100%);
    z-index: -1;
}

/* Background for content pages */
#contentArea {
    position: relative;
}

#contentArea::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(var(--dark-overlay), var(--dark-overlay)), 
                url('assets/images/water-tank-bg.png') center/cover fixed;
    z-index: -1;
}

/* Top Navigation Bar */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
    z-index: 1000;
    flex-direction: row-reverse;
}

.hamburger-menu {
    background: none;
    border: none;
    color: #167fc2;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s;
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background: #167fc2;
    transition: all 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Logo styling - supports WordPress custom logo */
.logo {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo {
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Fallback site name if no logo */
.site-name {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

/* Mobile logo */
@media (max-width: 768px) {
    .custom-logo {
        max-height: 55px;
    }
    
    .site-name {
        font-size: 1.2rem;
    }
}

/* Side Navigation Menu */
.side-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--primary-blue);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.side-nav.active {
    left: 0;
}

.side-nav-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-nav-header h3 {
    color: white;
    font-size: 1.2rem;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
}

.nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    transition: background-color 0.3s, padding-left 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 2.5rem;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1500;
    display: none;
}

.overlay.active {
    display: block;
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: 1.2rem;
    color: #003366;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button.primary {
    background: #167fc2;
    color: white;
}

.cta-button.primary:hover {
    background: #000000;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: #167fc2;
    color: white;
}

.cta-button.secondary:hover {
    background: #000000;
    transform: translateY(-2px);
}

/* Content Sections */
.content-section {
    display: none;
    min-height: 100vh;
}

.content-section.active {
    display: block;
}

/* Fixed Top Navigation for Content Pages */
.content-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-blue);
    z-index: 999;
    padding: 1rem 2rem;
    display: none;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    flex-direction: row-reverse;
}

.content-nav.active {
    display: flex;
}

.content-nav .hamburger-menu {
    color: #167fc2;
}

.content-nav .logo {
    color: white;
}

.content-wrapper {
    padding-top: 80px;
}

/* Elementor section wrapper */
.elementor-section-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Override Elementor's default padding for our sections */
.content-section .elementor-section {
    padding: 0 !important;
}

/* Ensure Elementor content displays properly */
.content-section .elementor-inner {
    padding: 3rem 1rem;
}

/* Footer */
footer {
    background: #167fc2;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

/* Elementor Edit Button - Make it more prominent */
.elementor-edit-link {
    display: inline-block;
    background: #93003c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.elementor-edit-link:hover {
    background: #b8004d;
    color: white;
}

/* Responsive */
@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-tagline {
        font-size: 1.4rem;
    }
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 4rem;
    }
}

/* Elementor-specific fixes */
.elementor-widget-heading .elementor-heading-title {
    color: var(--primary-blue);
}

.elementor-button {
    font-family: Times New Roman;
}

/* Ensure Elementor sections work with our background */
.elementor-section {
    position: relative;
}
