/*
Theme Name: Leary Construction Company
Theme URI: https://learyconstruction.com
Author: Leary Construction Company
Author URI: https://learyconstruction.com
Description: Water Tank Maintenance Specialists - Custom single-page WordPress theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lcc-theme
*/

* {
    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;
}

/* 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);
}

/* Desktop logo */
.logo-image {
    max-height: 100px;
    width: auto;
    height: auto;
    min-width: 300px;
    object-fit: contain;
}

/* Mobile logo */
@media (max-width: 768px) {
    .logo-image {
        max-height: 55px;
        min-width: 200px;
    }
}

/* Custom logo from WordPress */
.custom-logo-link {
    display: inline-block;
}

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

/* Site name fallback if no logo */
.site-name {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

@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-nav .logo-text {
    font-size: 1.2rem;
}

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

.container {
    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);
}

section {
    margin-bottom: 3rem;
}

h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-orange);
}

h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
}

p {
    margin-bottom: 1rem;
}

/* Service Cards */
.service-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.service-card h3 {
    margin-top: 0;
    color: var(--accent-orange);
}

/* Coating Systems */
.coating-system {
    background: #f5f5f5;
    padding: 1rem;
    border-left: 4px solid var(--accent-orange);
    margin-bottom: 1rem;
}

/* Lists */
ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

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

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

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

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

    .logo-text {
        font-size: 1.8rem;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
