/*
Theme Name: SunPro
Theme URI: https://sunprohandyman.com
Author: Rick
Description: Custom block theme for SunPro
Version: 1.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: sunpro
*/

/* =============================== */
/* ROOT VARIABLES */
/* =============================== */

:root {
    --gold: #d4af37;
    --black: #111;
    --white: #fff;
    --gray: #f5f5f5;
    --dark-gray: #333;
    --font-main: 'Inter', sans-serif;
}

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    background: var(--white);
    color: var(--black);
}

/* =============================== */
/* HERO SECTION */
/* =============================== */

.hero-handyman {
    position: relative;
    height: 70vh;
    background: url('/wp-content/uploads/hero-handyman.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-handyman .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.hero-handyman .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-handyman h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-handyman p {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-right: 10px;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

/* =============================== */
/* QUICK SERVICE ICONS */
/* =============================== */

.quick-services {
    padding: 60px 20px;
    background: var(--gray);
    text-align: center;
}

.quick-services h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.service-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.service-item {
    width: 140px;
}

.service-item img {
    width: 60px;
    margin-bottom: 10px;
}

.service-item h3 {
    font-size: 1rem;
    font-weight: 600;
}

/* =============================== */
/* ABOUT SECTION */
/* =============================== */

.about-handyman {
    padding: 60px 20px;
    text-align: center;
    max-width: 900px;
    margin: auto;
}

/* =============================== */
/* FEATURED SERVICES GRID */
/* =============================== */

.featured-services {
    padding: 60px 20px;
    background: var(--white);
}

.featured-services h2 {
    text-align: center;
    margin-bottom: 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--gray);
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
}

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

.service-card h3 {
    padding: 15px;
    font-size: 1.2rem;
}

/* =============================== */
/* GALLERY */
/* =============================== */

.gallery-handyman {
    padding: 60px 20px;
    background: var(--black);
    color: var(--white);
}

.gallery-handyman h2 {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 4px;
}

/* =============================== */
/* TESTIMONIALS */
/* =============================== */

.testimonials-handyman {
    padding: 60px 20px;
    background: var(--gray);
}

.testimonials-handyman h2 {
    text-align: center;
    margin-bottom: 30px;
}

.testimonials blockquote {
    background: var(--white);
    padding: 20px;
    border-left: 4px solid var(--gold);
    margin: 20px auto;
    max-width: 700px;
    font-style: italic;
}

/* =============================== */
/* CONTACT SECTION */
/* =============================== */

.contact-handyman {
    padding: 60px 20px;
    background: var(--white);
}

.contact-handyman h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* =============================== */
/* HEADER */
/* =============================== */

.sp-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.sp-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sp-logo img {
    height: 110px !important;
    width: auto !important;
}

.logo-sunpro {
    width: 300px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

.sp-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
}

.sp-nav a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
    font-size: 18px;
}

.sp-header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sp-phone {
    color: #111;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
}

.sp-btn {
    background: var(--gold);
    color: #111;
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
}

/* =============================== */
/* TESTIMONIAL PAGE IMAGE */
/* =============================== */

.sp-testimonial-bottom-logo {
    width: 100%;
    text-align: center;
    overflow: hidden;
}

.sp-testimonial-bottom-logo img {
    max-width: 400px !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    outline: 3px solid #fff;
}

@media (max-width: 480px) {
    .sp-testimonial-bottom-logo img {
        max-width: 200px !important;
    }
}

/* =============================== */
/* MOBILE MENU — BOTTOM SLIDE-UP */
/* =============================== */

.sp-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.sp-mobile-toggle span {
    width: 28px;
    height: 3px;
    background: #111;
    border-radius: 3px;
}

.sp-mobile-menu {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    height: 60%;
    background: #fff;
    padding: 25px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    transition: bottom 0.35s ease;
    z-index: 99999;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.sp-mobile-menu.open {
    bottom: 0;
}

.sp-mobile-menu ul {
    list-style: none;
    padding: 0;
}

.sp-mobile-menu a {
    display: block;
    padding: 14px 0;
    font-size: 20px;
    color: #111;
    text-decoration: none;
}

@media (max-width: 900px) {
    .sp-nav,
    .sp-header-cta {
        display: none;
    }

    .sp-mobile-toggle {
        display: flex;
    }

    .sp-mobile-menu {
        display: block;
    }
}

/* =============================== */
/* HEADER SHRINK ON SMALL PHONES */
/* =============================== */

@media (max-width: 480px) {
    .sp-logo img {
        height: 70px !important;
    }

    .sp-header-inner {
        padding: 8px 14px !important;
    }
}

/* =============================== */
/* SAFARI FIX */
/* =============================== */

.no-lazy {
    loading: eager !important;
}

/* =============================== */
/* INFORMATION CENTER PAGE PADDING */
/* =============================== */

.information-center-page .wp-block-column:first-child {
    padding-left: 20px !important;
    padding-right: 20px !important;
}
/* ========================================= */
/* INFORMATION CENTER — MATCH TESTIMONIAL PAGE */
/* ========================================= */

/* Desktop stays the same — 50/50 columns */

/* Mobile layout: match testimonial page */
@media (max-width: 900px) {

    /* Apply to BOTH columns on this page */
    .information-center-page .wp-block-column {
        padding-left: 20px !important;
        padding-right: 20px !important;
        max-width: 600px;      /* matches testimonial readability */
        margin: 0 auto;        /* centers the column */
    }
}
/* ========================================= */
/* HOMEPAGE — REMOVE TOP GAP ABOVE HERO LOGO */
/* ========================================= */

.home-hero-tight {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove WordPress default page title spacing */
.home-hero-tight h1.wp-block-post-title {
    display: none !important;
}

/* Remove theme’s default content padding */
.home-hero-tight .wp-block-group,
.home-hero-tight .wp-block-columns {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Make the hero logo sit flush at the top */
.home-hero-tight img {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* DEBUG: Show true image boundaries */
.debug-image-outline img {
    outline: 3px solid black !important;
    background: rgba(255,0,0,0.1); /* optional light red to see padding */
}
/* ========================================= */
/* HOMEPAGE — REMOVE BOTTOM GAP UNDER HERO LOGO */
/* ========================================= */

.home-hero-tight + h1,
.home-hero-tight + .wp-block-heading,
.home-hero-tight + .wp-block-group,
.home-hero-tight + .wp-block-columns {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* ========================================= */
/* HOMEPAGE — TIGHTEN SPACE UNDER HERO IMAGE */
/* ========================================= */

.home-hero-tight figure.wp-block-image {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.home-hero-tight + h1,
.home-hero-tight + .wp-block-heading {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove global block gap for this section */
.home-hero-tight {
    --wp--style--block-gap: 0px !important;
}
/* WOOD-GRAIN TEXT FILL */
.hero-top-text {
    font-size: 48px;
    font-weight: 900;
    margin: 0 !important;
    padding: 0 !important;
    background: url('https://i.imgur.com/8uZqF8E.jpg') center/cover;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

/* ========================================= */
/* WELCOME MESSAGE STYLING */
/* ========================================= */

.home-welcome-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    line-height: 1.55;
    margin: 20px auto 0 auto !important;
    max-width: 750px;
    text-align: center;
    color: #222;
}

/* First line stronger */
.home-welcome-text strong {
    font-weight: 600;
}

/* Key words italic */
.home-welcome-text em {
    font-style: italic;
    font-weight: 500;
}
/* ========================================= */
/* WELCOME MESSAGE — STYLISH + BOLD */
/* ========================================= */

.home-welcome-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px; /* larger text */
    font-weight: 700; /* bold like the rest of your site */
    line-height: 1.55;
    margin: 10px auto 0 auto !important;
    max-width: 780px;
    text-align: center;
    color: #222;
}

/* Fancier first line */
.welcome-fancy {
    font-family: 'Playfair Display', serif; /* elegant, stylish */
    font-size: 28px;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

/* Key words italic */
.home-welcome-text em {
    font-style: italic;
    font-weight: 700;
}

/* Remove unwanted spacing between lines */
.home-welcome-text br {
    line-height: 0;
}
/* Request Link Button */
.sunpro-quote-btn {
    background:#f4a100 !important;
    color:#000 !important;
    padding:14px 28px !important;
    border-radius:6px !important;
    font-weight:700 !important;
    text-decoration:none !important;
    display:inline-block !important;
    font-size:18px !important;
}







