/* 
 * Main Stylesheet for Independent Electric
 * Author: Your Name
 */

/* ---------- Base Styles ---------- */
:root {
    /* Color variables - customize these to match client's branding */
    --primary-color: #0057b8;     /* Blue - primary brand color */
    --secondary-color: #ffcc00;   /* Yellow/Gold - accent color */
    --dark-color: #333333;        /* Dark gray for text */
    --light-color: #f8f9fa;       /* Light gray for backgrounds */
    --white: #ffffff;
    --success-color: #28a745;     /* Green for success messages */
    --warning-color: #ffc107;     /* Yellow for warnings */
    --error-color: #dc3545;       /* Red for errors */
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border radius */
    --border-radius: 4px;
}

/* ---------- Reset & Base Elements ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #003d82; /* Darker shade of primary color */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-md);
}

ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

section {
    padding: var(--spacing-xl) 0;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ---------- Buttons ---------- */
.primary-button, .secondary-button, .cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.primary-button:hover {
    background-color: #003d82; /* Darker */
    border-color: #003d82;
    color: var(--white);
}

.secondary-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.secondary-button:hover {
    background-color: #003d82; /* Darker */
    border-color: #003d82;
    color: var(--white);
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border: 2px solid var(--secondary-color);
}

.cta-button:hover {
    background-color: #e6b800; /* Darker */
    border-color: #e6b800;
}

.learn-more {
    font-weight: 600;
    display: inline-block;
    margin-top: var(--spacing-sm);
}

.learn-more:after {
    content: " →";
    transition: transform 0.3s ease;
}

.learn-more:hover:after {
    transform: translateX(4px);
}

/* ---------- Header ---------- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 60px;
}

/* Add these styles to your existing CSS for the header with license and social icons */

/* Override the header container display */
header .container {
    display: block;
    padding: var(--spacing-md) 0;
}

/* Header content layout */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Logo wrapper with license */
.logo-wrapper {
    display: flex;
    align-items: center;
}

/* License container for positioning */
.license-container {
    margin-left: 20px;
    text-align: left;
}

/* License number styling */
.license-header {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Right side of header */
.header-right {
    display: flex;
    align-items: center;
}

/* Social icons in header - now inside nav menu */
.header-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-right: var(--spacing-sm);
}

/* Social menu item in the navigation */
.social-menu-item {
    display: flex;
    align-items: center;
    margin-left: var(--spacing-lg);
    
}

/* Styling for social icons in header - matching footer styles */
.header-social .social-icon {
    width: 24px;
    height: 24px;
    color: var(--dark-color );
    transition: color 0.3s ease, transform 0.3s ease;
}

.header-social .social-icon:hover {
    transform: translateY(-3px);
}

.header-social .instagram:hover {
    color: #E1306C;
}

.header-social .yelp-icon {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-social .yelp-icon:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }
    
    .logo-wrapper {
        margin-bottom: var(--spacing-md);
        flex-direction: column;
    }
    
    .license-container {
        margin-left: 0;
        margin-top: var(--spacing-xs);
    }
    
    .header-right {
        align-items: center;
    }
    
    /* Update nav menu for mobile */
    nav .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    nav .nav-menu li {
        margin: var(--spacing-xs) 0;
    }
    
    .social-menu-item {
        margin: var(--spacing-sm) 0;
        order: 10; /* Push to end of flex items */
    }
}

    
 

/* ---------- Navigation ---------- */
nav .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav .nav-menu li {
    margin-left: var(--spacing-lg);
}

nav .nav-menu a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
}

nav .nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav .nav-menu a:hover:after,
nav .nav-menu a.active:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: transform 0.3s ease;
}

/* ---------- Hero Section ---------- */
.hero {
    background-image: linear-gradient(rgba(222, 219, 219, 0.29), rgba(0, 0, 0, 0.499)), url('../images/herobackdrop.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 8rem 0;
    color: var(--white);
    position: relative;
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
}

.hero p {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.2rem;
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

/* ---------- Services Overview ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3, 
.service-card p, 
.service-card a {
    padding: 0 var(--spacing-md);
}

.service-card h3 {
    margin-top: var(--spacing-md);
}

.service-card a {
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

/* ---------- Testimonials ---------- */
.testimonials {
    background-color: var(--light-color);
    text-align: center;
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.testimonial blockquote {
    font-size: 1.2rem;
    font-style: italic;
    position: relative;
}

.testimonial blockquote:before,
.testimonial blockquote:after {
    content: '"';
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.4;
    position: absolute;
}

.testimonial blockquote:before {
    top: -20px;
    left: -20px;
}

.testimonial blockquote:after {
    bottom: -40px;
    right: -20px;
}

.testimonial cite {
    font-style: normal;
    font-weight: 600;
    display: block;
    margin-top: var(--spacing-md);
}

/* ---------- CTA Section ---------- */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
}

.cta-section .primary-button {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border-color: var(--secondary-color);
}

.cta-section .primary-button:hover {
    background-color: #e6b800; /* Darker */
    border-color: #e6b800;
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-content h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.footer-contact a {
    color: var(--white);
    opacity: 0.8;
}
/* Add specific styling for the license text */
.license {
    margin-bottom: 0;
  }

.footer-contact a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-left: var(--spacing-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}
/*Add ons for clarity */

.spacer {
    height: 30px; /* Adjust as needed */
}
/* 
 * Gallery Styles for Independent Electric
 */

/* ---------- Gallery Page Banner ---------- */
.page-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/herobackdrop.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.page-banner h1,
.page-banner p {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ---------- Gallery Filter Buttons ---------- */
.gallery-filters {
    padding: 2rem 0;
    background-color: var(--light-color);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-btn {
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ---------- Masonry Gallery ---------- */
.gallery-section {
    padding: 3rem 0;
}

.masonry-gallery {
    columns: 1;
    column-gap: 0.75rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 0.75rem;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.gallery-item img,
.video-container video {
    display: block;
    width: 100%;
    height: auto;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.2rem;
    color: var(--white);
}

.gallery-caption p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}
/* Temporarily hide gallery captions */
.gallery-caption {
    display: none;
}

/* ---------- Video Items ---------- */
.video-item {
    display: block;
    position: relative;
    cursor: pointer;
}

.video-container {
    position: relative;
    width: 100%;
}

.video-container video {
    width: 100%;
    display: block;
    border-radius: var(--border-radius);
}

.video-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.video-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 53%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent var(--white);
    z-index: 2;
    pointer-events: none;
}

.video-container:hover::before {
    background-color: var(--primary-color);
}

/* ---------- Lightbox Customization ---------- */
.lightbox {
    z-index: 1050;
}

/* ---------- Responsive Adjustments ---------- */
@media (min-width: 576px) {
    .masonry-gallery {
        columns: 2;
    }
}

@media (min-width: 992px) {
    .masonry-gallery {
        columns: 3;
    }
    
    .page-banner {
        padding: 6rem 0;
    }
}

@media (min-width: 1200px) {
    .masonry-gallery {
        columns: 4;
    }
}

/* Contact page Service Areas */
.service-areas-section {
    background-color: var(--light-color);
    padding: var(--spacing-lg) 0;
}

.service-areas {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    list-style: none;
    padding: 0;
}

.areas-list li {
    background-color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* ---------- Social Media Icons ---------- */
.social-media {
    margin-top: var(--spacing-sm);
    display: flex;
    gap: var(--spacing-md);
}

.social-icon {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: var(--white);
    transform: translateY(-3px);
}

/* Specific colors on hover if desired */
.instagram:hover {
    color: #E1306C;
}

.yelp:hover {
    color: #FF1A1A;
}
.yelp-icon {
    width: 40px;
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.yelp-icon:hover {
    opacity: 1;
    transform: translateY(-3px);
}