/*
Theme Name: Ventura Roof Cleaners
Theme URI: https://venturacountyroofcleaning.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: Professional roof cleaning WordPress theme for Ventura County
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ventura-roof-cleaners
*/

/* CSS Variables */
:root {
    --primary-navy: #1e3a5f;
    --secondary-blue: #4a90e2;
    --light-blue: #e8f4f8;
    --accent-cyan: #3db4d8;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --text-gray: #5a6c7d;
    --dark-gray: #2c3e50;
    --header-height: 80px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FIX: Prevent Horizontal Scroll Globally */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-gray);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: var(--white);
    padding: 10px 0;
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    z-index: 1001; /* Ensure logo stays above mobile menu */
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Desktop Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    align-items: center;
}

.nav-menu a, 
.menu-item-has-children > .locations-toggle {
    text-decoration: none;
    color: var(--primary-navy);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.nav-menu a:hover,
.menu-item-has-children > .locations-toggle:hover {
    color: var(--accent-cyan);
}

/* Dropdown Menu Styles */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -20px;
    background: var(--white);
    min-width: 240px;
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    margin-top: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Desktop Hover Logic */
@media (min-width: 769px) {
    .menu-item-has-children:hover .sub-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        margin-top: 10px;
    }
}

.sub-menu li {
    list-style: none;
    padding: 0;
}

.sub-menu a {
    display: block;
    padding: 10px 25px;
    color: var(--primary-navy);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.sub-menu a:hover {
    background: var(--light-blue);
    color: var(--accent-cyan);
    padding-left: 30px;
}

.cta-button {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--primary-navy);
    color: var(--white);
}

/* --- HAMBURGER MENU STYLES --- */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1002; /* Above the menu overlay */
    padding: 0;
}

/* The lines of the hamburger */
.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-navy);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--primary-navy);
    position: absolute;
    left: 0;
    transition: transform 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Hamburger Animation when Active */
.mobile-menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent; /* Hide middle line */
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}


/* --- CONTENT SECTIONS --- */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    padding: 80px 40px;
    overflow: hidden; 
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.phone-button {
    padding: 15px 35px;
    background: var(--primary-navy);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.phone-button:hover {
    background: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    padding: 10px 20px;
    background: rgba(255,255,255,0.8);
    border-radius: 25px;
    font-size: 14px;
    color: var(--primary-navy);
    font-weight: 600;
    border: 1px solid rgba(30,58,95,0.2);
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-navy);
}

.feature-card h3 {
    font-size: 18px;
    color: var(--primary-navy);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Stats Section */
.stats { padding: 72px 20px; background: #fff; }
.stats-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 360px));
    justify-content: center;
    gap: 32px;
}

.stat-card {
    position: relative;
    background: var(--light-gray);
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    padding: 22px 24px 26px;
    width: min(100%, 360px);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(16,24,40,0.05);
    transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 10px 28px rgba(16,24,40,0.08);
}
.stat-accent {
    position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, #f5c518, #ffd84d);
    border-radius: 18px 18px 0 0;
    opacity: .9;
}
.stat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.stat-icon { color: #f5c518; display: inline-flex; }
.stat-kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-gray); font-weight: 600; }
.stat-body { text-align: center; padding: 6px 0 0; }
.stat-number {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.05; font-weight: 800; color: var(--primary-navy);
    margin-bottom: 6px;
}
.stat-label { font-size: 14px; color: var(--text-gray); font-weight: 600; }

/* Services */
.services-section { padding: 80px 40px; background: var(--white); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 48px; font-weight: 800; color: var(--primary-navy); margin-bottom: 15px; text-transform: uppercase; }
.section-header p { font-size: 18px; color: var(--text-gray); }
.section-header .underline { width: 80px; height: 4px; background: var(--accent-cyan); margin: 20px auto; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.service-image { width: 100%; height: 250px; object-fit: cover; position: relative; }
.service-badge { position: absolute; top: 20px; left: 20px; background: var(--white); padding: 8px 20px; border-radius: 25px; font-size: 13px; font-weight: 600; color: var(--primary-navy); }
.service-content { padding: 30px; }
.service-content h3 { font-size: 24px; color: var(--primary-navy); margin-bottom: 15px; text-transform: uppercase; font-weight: 700; }
.service-content p { font-size: 16px; color: var(--text-gray); line-height: 1.8; }

/* Process */
.process-section { padding: 80px 40px; background: var(--light-gray); }
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}
.process-card { background: var(--white); padding: 40px 30px; border-radius: 20px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.08); transition: transform 0.3s; }
.process-card:hover { transform: translateY(-5px); }
.process-number { font-size: 64px; font-weight: 800; color: var(--accent-cyan); margin-bottom: 15px; }
.process-card h3 { font-size: 20px; color: var(--primary-navy); margin-bottom: 15px; text-transform: uppercase; font-weight: 700; }
.process-card p { font-size: 15px; color: var(--text-gray); line-height: 1.7; }

/* Locations */
.locations-section { padding: 80px 40px; background: var(--light-blue); }
.locations-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 40px; }
.location-tag { padding: 12px 30px; background: var(--white); color: var(--primary-navy); border-radius: 30px; font-weight: 600; font-size: 15px; border: 2px solid rgba(30,58,95,0.1); transition: all 0.3s; }
.location-tag:hover { background: var(--primary-navy); color: var(--white); transform: scale(1.05); }

/* Testimonials */
.testimonials-section { padding: 80px 40px; background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 1200px; margin: 40px auto 0; }
.testimonial-card { background: var(--light-gray); padding: 40px; border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.stars { color: #ffc107; font-size: 24px; margin-bottom: 20px; }
.testimonial-text { font-size: 17px; color: var(--text-gray); line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.testimonial-author { font-size: 15px; color: var(--primary-navy); font-weight: 600; }

/* CTA */
.cta-section { background: var(--primary-navy); padding: 60px 40px; margin: 60px 40px; border-radius: 30px; }
.cta-content { text-align: center; max-width: 800px; margin: 0 auto; }
.cta-content h2 { font-size: 42px; color: var(--white); margin-bottom: 15px; text-transform: uppercase; font-weight: 700; }
.cta-content p { font-size: 18px; color: rgba(255,255,255,0.9); margin-bottom: 30px; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cta-button-white { padding: 15px 35px; background: var(--white); color: var(--primary-navy); border: none; border-radius: 50px; font-weight: 600; font-size: 16px; cursor: pointer; transition: all 0.3s; text-decoration: none; display: inline-block; }
.cta-button-white:hover { background: var(--accent-cyan); color: var(--white); transform: scale(1.05); }
.cta-button-outline { padding: 15px 35px; background: transparent; color: var(--white); border: 2px solid var(--white); border-radius: 50px; font-weight: 600; font-size: 16px; cursor: pointer; transition: all 0.3s; text-decoration: none; display: inline-block; }
.cta-button-outline:hover { background: var(--white); color: var(--primary-navy); }

/* Contact */
.contact-section { padding: 80px 40px; background: var(--white); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1200px; margin: 0 auto; }
.contact-form-container h2 { font-size: 38px; color: var(--primary-navy); margin-bottom: 10px; text-transform: uppercase; font-weight: 700; }
.contact-form-container p { font-size: 16px; color: var(--text-gray); margin-bottom: 30px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--primary-navy); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { padding: 15px; border: 2px solid rgba(30,58,95,0.1); border-radius: 10px; font-size: 15px; background: var(--light-gray); transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-cyan); }
.form-group textarea { min-height: 120px; resize: vertical; }
.submit-button { padding: 15px; background: var(--primary-navy); color: var(--white); border: none; border-radius: 50px; font-weight: 600; font-size: 16px; cursor: pointer; text-transform: uppercase; transition: all 0.3s; }
.submit-button:hover { background: var(--accent-cyan); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.contact-info { background: var(--light-blue); padding: 40px; border-radius: 20px; }
.contact-info h3 { font-size: 28px; color: var(--primary-navy); margin-bottom: 30px; text-transform: uppercase; font-weight: 700; }
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; font-size: 16px; color: var(--text-gray); }
.contact-icon { font-size: 24px; color: var(--primary-navy); }
.contact-item a { color: var(--text-gray); text-decoration: none; transition: color 0.3s; }
.contact-item a:hover { color: var(--accent-cyan); }
.feature-badge { display: inline-block; padding: 8px 20px; background: var(--white); border: 2px solid var(--primary-navy); border-radius: 25px; font-size: 13px; font-weight: 600; color: var(--primary-navy); margin-top: 15px; }

/* Footer */
.site-footer { background: var(--primary-navy); color: var(--white); padding: 30px 40px; text-align: center; }
.footer-content { display: flex; flex-direction: column; gap: 20px; align-items: center; max-width: 1400px; margin: 0 auto; }
@media(min-width: 768px) {
    .footer-content { flex-direction: row; justify-content: space-between; }
}
.back-to-top { color: var(--white); text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.3s; }
.back-to-top:hover { color: var(--accent-cyan); }


/* --- MOBILE RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
    }

    /* Show Toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Navigation styling for Mobile */
    .main-navigation {
        display: block; /* Setup for transform animation */
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 85%; /* Don't cover full screen so user sees overlay context */
        max-width: 320px;
        background: var(--white);
        padding: 100px 30px 30px; /* Top padding for logo/close area */
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transform: translateX(100%); /* Hide off canvas */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 1000;
    }
    
    /* The Active State (toggled by JS) */
    .main-navigation.active {
        transform: translateX(0) !important; /* Force override */
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-menu a, 
    .menu-item-has-children > .locations-toggle {
        font-size: 18px;
        padding: 15px 0;
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    /* Mobile Submenu */
    .sub-menu {
        position: static;
        box-shadow: none;
        padding: 0;
        margin: 0;
        display: none; /* Hidden by default */
        background: var(--light-gray);
        width: 100%;
        visibility: visible;
        opacity: 1;
        transform: none;
        border-radius: 5px;
    }
    
    /* JS will add .active to parent */
    .menu-item-has-children.active .sub-menu {
        display: block;
    }
    
    .sub-menu a {
        padding: 15px 20px;
        font-size: 16px;
    }

    .cta-button {
        margin-top: 20px;
        width: 100%;
        text-align: center;
        display: block;
    }

    /* General Layout Fixes to prevent horizontal scroll */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 20px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-cards, .stats-wrap, .process-grid, .testimonials-grid {
        grid-template-columns: 1fr; /* Force single column */
    }
    
    .stat-card {
        width: 100%; /* Ensure cards don't overflow */
    }

    .section-header h2 {
        font-size: 32px;
    }

    .cta-content h2 {
        font-size: 28px;
    }
    
    /* Adjust padding to prevent overflow */
    .section-header, .hero-section, .services-section, .process-section, .locations-section, .testimonials-section, .contact-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cta-section {
        margin: 60px 20px; /* Reduce margin on mobile */
    }
}

:root {
  /* ===== Plugin token bridge (GoDetail) ===== */
  --color-white: var(--white);
  --color-bg-light: var(--light-gray);
  --color-bg-white-hover: rgba(0,0,0,0.03);

  --color-text-muted: var(--text-gray);
  --color-text-inverted: var(--white);
  --color-text-body-dark: var(--dark-gray);

  --color-border-light: rgba(30,58,95,0.12);
  --color-border-medium: rgba(30,58,95,0.18);
  --color-border-brand: var(--accent-cyan);

  /* Brand colors used by plugin */
  --color-brand-primary-start: var(--primary-navy);
  --color-brand-primary-mid: var(--secondary-blue);
  --color-brand-primary: linear-gradient(90deg, var(--primary-navy), var(--secondary-blue));

  /* RGB helpers (needed for rgba(var(--rgb-...))) */
  --rgb-black: 0, 0, 0;
  --rgb-brand-primary: 30, 58, 95; /* primary navy */

  /* Shadows (approximate to your theme look) */
  --shadow-card: 0 5px 20px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-brand-tabs: 0 5px 20px rgba(30,58,95,0.18);

  /* Optional: used by datepicker hover in your plugin css */
  --color-bg-brand-light: rgba(61, 180, 216, 0.12); /* accent-cyan at low opacity */
}


/* Submit button - matches theme “filled” button style */
.gdb-submit-button{
  width: 100%;
  padding: 15px 35px;
  background: var(--color-brand-primary, var(--primary-navy));
  color: var(--color-text-inverted, #fff);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gdb-submit-button:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  filter: brightness(1.02);
}

 .gdb-submit-button:active{
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

 .gdb-submit-button:disabled{
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
