/*
Theme Name: Home Fix Helpers
Theme URI: https://homefixhelpers.com
Description: Custom child theme for Home Fix Helpers - Professional Gutter Services
Author: Home Fix Helpers
Author URI: https://homefixhelpers.com
Template: hello-elementor
Version: 1.0.0
Text Domain: homefixhelp-child
*/

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --secondary: #FF8F00;
    --secondary-dark: #E65100;
    --secondary-light: #FFB300;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
* { box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }

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

a:hover { color: var(--primary-dark); }

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

.container, .site-content .page-content,
.site-content .entry-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== STICKY TOP BAR ===== */
.top-bar-sticky {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 99999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.top-bar-sticky a {
    color: var(--secondary);
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
}

.top-bar-sticky a:hover {
    color: var(--secondary-light);
}

/* ===== HEADER / NAVIGATION ===== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 38px;
    z-index: 9999;
}

.site-header .site-branding img,
.site-header .site-logo img,
.custom-logo-link img {
    max-height: 60px;
    width: auto;
    cursor: pointer;
}

.site-navigation ul {
    list-style: none;
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.site-navigation a {
    color: var(--dark);
    font-weight: 600;
    padding: 10px 15px;
    border-radius: var(--radius);
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
}

.site-navigation a:hover,
.site-navigation .current-menu-item > a {
    color: var(--primary);
    background: rgba(46, 125, 50, 0.08);
}

/* Dropdown */
.site-navigation .sub-menu {
    display: none;
    position: absolute;
    background: var(--white);
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    min-width: 220px;
    padding: 10px 0;
    z-index: 10000;
}

.site-navigation li:hover > .sub-menu { display: block; }

.site-navigation .sub-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
}

.site-navigation .sub-menu a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===== BUTTONS ===== */
.btn-primary, .wp-block-button__link,
a.btn-primary, button.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 15px;
}

.btn-primary:hover, .wp-block-button__link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary, a.btn-secondary {
    background: var(--secondary);
    color: var(--white) !important;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

/* ===== SERVICE CARDS GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--primary);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card .service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===== TRUST BADGES GRID ===== */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    padding: 40px 0;
    text-align: center;
}

.trust-badge {
    padding: 25px 15px;
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.trust-badge:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.trust-badge .badge-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.trust-badge h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.trust-badge p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ===== CTA SECTIONS ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    border-radius: var(--radius);
    margin: 40px 0;
}

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

.cta-section .cta-phone {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    display: block;
    margin: 15px 0 20px;
}

/* ===== FEATURES / WHY CHOOSE US ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.feature-item {
    text-align: center;
    padding: 25px;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 40px 0;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.testimonial-card .stars {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 15px;
}

/* ===== PAGES CONTENT ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 { color: var(--white); font-size: 2.5rem; }

.page-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== BLOG STYLES ===== */
.blog .post, .archive .post {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
    transition: var(--transition);
}

.blog .post:hover, .archive .post:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.blog .entry-title a, .archive .entry-title a {
    color: var(--dark);
    font-size: 1.5rem;
}

.blog .entry-title a:hover { color: var(--primary); }

.blog .entry-content, .archive .entry-content {
    padding: 25px;
}

.blog .entry-meta, .archive .entry-meta {
    padding: 0 25px;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Single Post */
.single .entry-header {
    margin-bottom: 30px;
}

.single .entry-title {
    font-size: 2.2rem;
    color: var(--dark);
}

.single .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.single .entry-content h2 {
    color: var(--primary-dark);
    margin-top: 2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.single .entry-content h3 {
    color: var(--primary);
    margin-top: 1.5rem;
}

.single .entry-content ul, .single .entry-content ol {
    margin-left: 20px;
    margin-bottom: 1.5rem;
}

.single .entry-content li {
    margin-bottom: 8px;
}

.single .entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 25px;
    background: var(--light);
    margin: 2rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

/* ===== SIDEBAR ===== */
.widget {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.widget-title {
    color: var(--primary-dark);
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 15px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 50px 20px 20px;
}

.site-footer h3, .site-footer h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.site-footer a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.site-footer a:hover { color: var(--secondary); }

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* ===== FORMS (WPForms) ===== */
.wpforms-container {
    max-width: 700px;
    margin: 0 auto;
}

.wpforms-container .wpforms-form .wpforms-field input,
.wpforms-container .wpforms-form .wpforms-field textarea {
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 12px 15px;
    transition: var(--transition);
}

.wpforms-container .wpforms-form .wpforms-field input:focus,
.wpforms-container .wpforms-form .wpforms-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.wpforms-container .wpforms-submit-container button {
    background: var(--primary) !important;
    border-radius: 50px !important;
    padding: 14px 40px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition) !important;
}

.wpforms-container .wpforms-submit-container button:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
}

/* ===== FLOATING MOBILE CTA ===== */
.floating-cta-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 12px;
    z-index: 99998;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.2);
}

.floating-cta-mobile a {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.floating-cta-mobile a i { font-size: 1.3rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section { padding: 60px 20px; }
}

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    .hero-section { padding: 40px 15px; }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section p { font-size: 1rem; }
    
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .trust-badges { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .features-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    
    .site-header { top: 0; }
    .top-bar-sticky { font-size: 12px; padding: 6px 10px; }
    
    .floating-cta-mobile { display: block; }
    
    body { padding-bottom: 55px; }
    
    .cta-section { padding: 40px 15px; }
    .cta-section .cta-phone { font-size: 1.5rem; }
    
    .page-header { padding: 30px 15px; }
    .page-header h1 { font-size: 1.8rem; }
    
    .single .entry-title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .trust-badges { grid-template-columns: 1fr; }
    .hero-section h1 { font-size: 1.5rem; }
    h1 { font-size: 1.5rem; }
    .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 14px; }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.bg-light { background: var(--light); }
.bg-primary { background: var(--primary); color: var(--white); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* ===== CLICKABLE LOGO ===== */
.site-branding a, .custom-logo-link {
    cursor: pointer;
    display: inline-block;
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 9997;
    border: none;
    box-shadow: var(--shadow);
}

.scroll-to-top.visible { opacity: 1; }
.scroll-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

@media (min-width: 769px) {
    .scroll-to-top { bottom: 30px; }
}
